56e8802e733ad44a1c29713d75b063b1a9805131
[gnulib.git] / ChangeLog
1 2011-10-09  Bruno Haible  <bruno@clisp.org>
2
3         isfinite: Fix for platforms where 'long double' == 'double'.
4         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
5         Don't blindly assume 80-bit 'long double'.
6
7         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
8         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
9         * modules/isfinite-tests (configure.ac): Require
10         gl_LONG_DOUBLE_VS_DOUBLE.
11         * modules/isinf-tests (configure.ac): Likewise.
12         * modules/isnan-tests (configure.ac): Likewise.
13         * modules/isnanl-tests (configure.ac): Likewise.
14         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
15         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
16         tests on platforms where 'long double' is the same as 'double'.
17         * tests/test-isinf.c (test_isinfl): Likewise.
18         * tests/test-isnan.c (test_long_double): Likewise.
19         * tests/test-isnanl.h (main): Likewise.
20
21 2011-10-08  Bruno Haible  <bruno@clisp.org>
22
23         Tests for module 'tanhf'.
24         * modules/tanhf-tests: New file.
25         * tests/test-tanhf.c: New file.
26
27         New module 'tanhf'.
28         * lib/math.in.h (tanhf): New declaration.
29         * lib/tanhf.c: New file.
30         * m4/tanhf.m4: New file.
31         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
32         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
33         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
34         * modules/tanhf: New file.
35         * tests/test-math-c++.cc: Check the declaration of tanhf.
36         * doc/posix-functions/tanhf.texi: Mention the new module.
37
38         tanh: Use a .m4 file.
39         * m4/tanh.m4: New file.
40         * modules/tanh (Files): Add it.
41         (configure.ac): Just invoke gl_FUNC_TANH.
42
43 2011-10-08  Bruno Haible  <bruno@clisp.org>
44
45         Tests for module 'coshf'.
46         * modules/coshf-tests: New file.
47         * tests/test-coshf.c: New file.
48
49         New module 'coshf'.
50         * lib/math.in.h (coshf): New declaration.
51         * lib/coshf.c: New file.
52         * m4/coshf.m4: New file.
53         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
54         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
55         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
56         * modules/coshf: New file.
57         * tests/test-math-c++.cc: Check the declaration of coshf.
58         * doc/posix-functions/coshf.texi: Mention the new module.
59
60         cosh: Use a .m4 file.
61         * m4/cosh.m4: New file.
62         * modules/cosh (Files): Add it.
63         (configure.ac): Just invoke gl_FUNC_COSH.
64
65 2011-10-08  Bruno Haible  <bruno@clisp.org>
66
67         Tests for module 'sinhf'.
68         * modules/sinhf-tests: New file.
69         * tests/test-sinhf.c: New file.
70
71         New module 'sinhf'.
72         * lib/math.in.h (sinhf): New declaration.
73         * lib/sinhf.c: New file.
74         * m4/sinhf.m4: New file.
75         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
76         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
77         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
78         * modules/sinhf: New file.
79         * tests/test-math-c++.cc: Check the declaration of sinhf.
80         * doc/posix-functions/sinhf.texi: Mention the new module.
81
82         sinh: Use a .m4 file.
83         * m4/sinh.m4: New file.
84         * modules/sinh (Files): Add it.
85         (configure.ac): Just invoke gl_FUNC_SINH.
86
87 2011-10-08  Bruno Haible  <bruno@clisp.org>
88
89         Tests for module 'atan2f'.
90         * modules/atan2f-tests: New file.
91         * tests/test-atan2f.c: New file.
92
93         New module 'atan2f'.
94         * lib/math.in.h (atan2f): New declaration.
95         * lib/atan2f.c: New file.
96         * m4/atan2f.m4: New file.
97         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
98         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
99         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
100         * modules/atan2f: New file.
101         * tests/test-math-c++.cc: Check the declaration of atan2f.
102         * doc/posix-functions/atan2f.texi: Mention the new module.
103
104         atan2: Use a .m4 file.
105         * m4/atan2.m4: New file.
106         * modules/atan2 (Files): Add it.
107         (configure.ac): Just invoke gl_FUNC_ATAN2.
108
109 2011-10-08  Bruno Haible  <bruno@clisp.org>
110
111         Tests for module 'atanf'.
112         * modules/atanf-tests: New file.
113         * tests/test-atanf.c: New file.
114
115         New module 'atanf'.
116         * lib/math.in.h (atanf): New declaration.
117         * lib/atanf.c: New file.
118         * m4/atanf.m4: New file.
119         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
120         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
121         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
122         * modules/atanf: New file.
123         * tests/test-math-c++.cc: Check the declaration of atanf.
124         * doc/posix-functions/atanf.texi: Mention the new module.
125
126         atan: Use a .m4 file.
127         * m4/atan.m4: New file.
128         * modules/atan (Files): Add it.
129         (configure.ac): Just invoke gl_FUNC_ATAN.
130
131 2011-10-08  Bruno Haible  <bruno@clisp.org>
132
133         Tests for module 'acosf'.
134         * modules/acosf-tests: New file.
135         * tests/test-acosf.c: New file.
136
137         New module 'acosf'.
138         * lib/math.in.h (acosf): New declaration.
139         * lib/acosf.c: New file.
140         * m4/acosf.m4: New file.
141         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
142         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
143         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
144         * modules/acosf: New file.
145         * tests/test-math-c++.cc: Check the declaration of acosf.
146         * doc/posix-functions/acosf.texi: Mention the new module.
147
148         acos: Use a .m4 file.
149         * m4/acos.m4: New file.
150         * modules/acos (Files): Add it.
151         (configure.ac): Just invoke gl_FUNC_ACOS.
152
153 2011-10-08  Bruno Haible  <bruno@clisp.org>
154
155         Tests for module 'asinf'.
156         * modules/asinf-tests: New file.
157         * tests/test-asinf.c: New file.
158
159         New module 'asinf'.
160         * lib/math.in.h (asinf): New declaration.
161         * lib/asinf.c: New file.
162         * m4/asinf.m4: New file.
163         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
164         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
165         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
166         * modules/asinf: New file.
167         * tests/test-math-c++.cc: Check the declaration of asinf.
168         * doc/posix-functions/asinf.texi: Mention the new module.
169
170         asin: Use a .m4 file.
171         * m4/asin.m4: New file.
172         * modules/asin (Files): Add it.
173         (configure.ac): Just invoke gl_FUNC_ASIN.
174
175 2011-10-08  Bruno Haible  <bruno@clisp.org>
176
177         Tests for module 'tanf'.
178         * modules/tanf-tests: New file.
179         * tests/test-tanf.c: New file.
180
181         New module 'tanf'.
182         * lib/math.in.h (tanf): New declaration.
183         * lib/tanf.c: New file.
184         * m4/tanf.m4: New file.
185         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
186         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
187         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
188         * modules/tanf: New file.
189         * tests/test-math-c++.cc: Check the declaration of tanf.
190         * doc/posix-functions/tanf.texi: Mention the new module.
191
192         tan: Use a .m4 file.
193         * m4/tan.m4: New file.
194         * modules/tan (Files): Add it.
195         (configure.ac): Just invoke gl_FUNC_TAN.
196
197 2011-10-08  Bruno Haible  <bruno@clisp.org>
198
199         Tests for module 'cosf'.
200         * modules/cosf-tests: New file.
201         * tests/test-cosf.c: New file.
202
203         New module 'cosf'.
204         * lib/math.in.h (cosf): New declaration.
205         * lib/cosf.c: New file.
206         * m4/cosf.m4: New file.
207         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
208         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
209         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
210         * modules/cosf: New file.
211         * tests/test-math-c++.cc: Check the declaration of cosf.
212         * doc/posix-functions/cosf.texi: Mention the new module.
213
214         cos: Use a .m4 file.
215         * m4/cos.m4: New file.
216         * modules/cos (Files): Add it.
217         (configure.ac): Just invoke gl_FUNC_COS.
218
219 2011-10-08  Bruno Haible  <bruno@clisp.org>
220
221         Tests for module 'sinf'.
222         * modules/sinf-tests: New file.
223         * tests/test-sinf.c: New file.
224
225         New module 'sinf'.
226         * lib/math.in.h (sinf): New declaration.
227         * lib/sinf.c: New file.
228         * m4/sinf.m4: New file.
229         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
230         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
231         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
232         * modules/sinf: New file.
233         * tests/test-math-c++.cc: Check the declaration of sinf.
234         * doc/posix-functions/sinf.texi: Mention the new module.
235
236         sin: Use a .m4 file.
237         * m4/sin.m4: New file.
238         * modules/sin (Files): Add it.
239         (configure.ac): Just invoke gl_FUNC_SIN.
240
241 2011-10-08  Bruno Haible  <bruno@clisp.org>
242
243         Tests for module 'powf'.
244         * modules/powf-tests: New file.
245         * tests/test-powf.c: New file.
246
247         New module 'powf'.
248         * lib/math.in.h (powf): New declaration.
249         * lib/powf.c: New file.
250         * m4/powf.m4: New file.
251         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
252         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
253         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
254         * modules/powf: New file.
255         * tests/test-math-c++.cc: Check the declaration of powf.
256         * doc/posix-functions/powf.texi: Mention the new module.
257
258         pow: Use a .m4 file.
259         * m4/pow.m4: New file.
260         * modules/pow (Files): Add it.
261         (configure.ac): Just invoke gl_FUNC_POW.
262
263 2011-10-08  Bruno Haible  <bruno@clisp.org>
264
265         Tests for module 'log10f'.
266         * modules/log10f-tests: New file.
267         * tests/test-log10f.c: New file.
268
269         New module 'log10f'.
270         * lib/math.in.h (log10f): New declaration.
271         * lib/log10f.c: New file.
272         * m4/log10f.m4: New file.
273         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
274         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
275         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
276         * modules/log10f: New file.
277         * tests/test-math-c++.cc: Check the declaration of log10f.
278         * doc/posix-functions/log10f.texi: Mention the new module.
279
280         log10: Use a .m4 file.
281         * m4/log10.m4: New file.
282         * modules/log10 (Files): Add it.
283         (configure.ac): Just invoke gl_FUNC_LOG10.
284
285 2011-10-08  Bruno Haible  <bruno@clisp.org>
286
287         Tests for module 'logf'.
288         * modules/logf-tests: New file.
289         * tests/test-logf.c: New file.
290
291         New module 'logf'.
292         * lib/math.in.h (logf): New declaration.
293         * lib/logf.c: New file.
294         * m4/logf.m4: New file.
295         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
296         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
297         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
298         * modules/logf: New file.
299         * tests/test-math-c++.cc: Check the declaration of logf.
300         * doc/posix-functions/logf.texi: Mention the new module.
301
302         log: Use a .m4 file.
303         * m4/log.m4: New file.
304         * modules/log (Files): Add it.
305         (configure.ac): Just invoke gl_FUNC_LOG.
306
307 2011-10-08  Bruno Haible  <bruno@clisp.org>
308
309         Tests for module 'expf'.
310         * modules/expf-tests: New file.
311         * tests/test-expf.c: New file.
312
313         New module 'expf'.
314         * lib/math.in.h (expf): New declaration.
315         * lib/expf.c: New file.
316         * m4/expf.m4: New file.
317         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
318         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
319         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
320         * modules/expf: New file.
321         * tests/test-math-c++.cc: Check the declaration of expf.
322         * doc/posix-functions/expf.texi: Mention the new module.
323
324         exp: Use a .m4 file.
325         * m4/exp.m4: New file.
326         * modules/exp (Files): Add it.
327         (configure.ac): Just invoke gl_FUNC_EXP.
328
329 2011-10-08  Bruno Haible  <bruno@clisp.org>
330
331         Tests for module 'sqrtf'.
332         * modules/sqrtf-tests: New file.
333         * tests/test-sqrtf.c: New file.
334
335         New module 'sqrtf'.
336         * lib/math.in.h (sqrtf): New declaration.
337         * lib/sqrtf.c: New file.
338         * m4/sqrtf.m4: New file.
339         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
340         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
341         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
342         * modules/sqrtf: New file.
343         * tests/test-math-c++.cc: Check the declaration of sqrtf.
344         * doc/posix-functions/sqrtf.texi: Mention the new module.
345
346 2011-10-08  Bruno Haible  <bruno@clisp.org>
347
348         Tests: Avoid link failures w.r.t. libintl.
349         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
350         $(LIBINTL).
351         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
352         $(LIBINTL).
353         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
354         against $(LIBINTL).
355         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
356         $(LIBINTL).
357         * modules/openat-tests (Makefile.am): Link test-fchmodat against
358         $(LIBINTL).
359         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
360
361 2011-10-08  Bruno Haible  <bruno@clisp.org>
362
363         pow tests: Defeat compiler optimizations.
364         * tests/test-pow.c (main): Assign arguments to x and y before use.
365
366 2011-10-08  Bruno Haible  <bruno@clisp.org>
367
368         gnulib-tool: Improve last commit.
369         * gnulib-tool (func_modules_transitive_closure): Simplify code.
370         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
371         ignore dependencies that are not among the modules list.
372
373 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
374
375         gnulib-tool: don't follow dependencies to avoided modules
376         This fixes a bug that is related to the previous one.
377         * gnulib-tool (func_modules_transitive_closure)
378         (func_emit_autoconf_snippets):
379         Check whether a dependency is acceptable before using it.
380         (--extract-dependencies): Report an error if --avoid is also used,
381         since this combination of options is not yet supported.
382
383         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
384         Problem reported by Peter Dyballa in
385         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
386         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
387         when echoing "$condition".
388
389 2011-10-07  Bruno Haible  <bruno@clisp.org>
390
391         Fix documentation about math functions on MacOS X.
392         * doc/posix-functions/exp2.texi: Don't say the function is missing on
393         MacOS X 10.5.
394         * doc/posix-functions/fdim.texi: Likewise.
395         * doc/posix-functions/feclearexcept.texi: Likewise.
396         * doc/posix-functions/fegetenv.texi: Likewise.
397         * doc/posix-functions/fegetround.texi: Likewise.
398         * doc/posix-functions/feholdexcept.texi: Likewise.
399         * doc/posix-functions/feraiseexcept.texi: Likewise.
400         * doc/posix-functions/fesetenv.texi: Likewise.
401         * doc/posix-functions/fesetround.texi: Likewise.
402         * doc/posix-functions/fetestexcept.texi: Likewise.
403         * doc/posix-functions/feupdateenv.texi: Likewise.
404         * doc/posix-functions/fmax.texi: Likewise.
405         * doc/posix-functions/fmin.texi: Likewise.
406         * doc/posix-functions/log2.texi: Likewise.
407         * doc/posix-functions/modff.texi: Likewise.
408         * doc/posix-functions/nan.texi: Likewise.
409         * doc/posix-functions/nanf.texi: Likewise.
410         * doc/posix-functions/nextafterf.texi: Likewise.
411         * doc/posix-functions/remquo.texi: Likewise.
412
413 2011-10-07  Bruno Haible  <bruno@clisp.org>
414
415         modff: Drop assumption about library that defines modff.
416         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
417         AC_CHECK_FUNCS.
418         * modules/modff (Files): Add m4/mathfunc.m4.
419
420 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
421
422         raise tests: Avoid a GCC warning.
423         * tests/test-raise.c (handler): Use _Noreturn.
424
425 2011-10-07  Bruno Haible  <bruno@clisp.org>
426
427         Tests for module 'ldexpf'.
428         * modules/ldexpf-tests: New file.
429         * tests/test-ldexpf.c: New file.
430
431         New module 'ldexpf'.
432         * lib/math.in.h (ldexpf): New declaration.
433         * lib/ldexpf.c: New file.
434         * m4/ldexpf.m4: New file.
435         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
436         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
437         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
438         * modules/ldexpf: New file.
439         * tests/test-math-c++.cc: Check the declaration of ldexpf.
440         * doc/posix-functions/ldexpf.texi: Mention the new module.
441
442 2011-10-06  Bruno Haible  <bruno@clisp.org>
443
444         frexpf: Work around problems on IRIX and mingw.
445         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
446         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
447         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
448         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
449         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
450         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
451         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
452
453 2011-10-06  Bruno Haible  <bruno@clisp.org>
454
455         fabsf: Drop assumption about library that defines fabsf.
456         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
457         AC_CHECK_FUNCS.
458         * modules/fabsf (Files): Add m4/mathfunc.m4.
459
460 2011-10-06  Bruno Haible  <bruno@clisp.org>
461
462         frexpf: Drop assumption about library that defines frexpf.
463         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
464         'int *', 'float *', 'long double *', 'float', 'long double'.
465         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
466         AC_CHECK_FUNCS.
467         * modules/frexpf (Files): Add m4/mathfunc.m4.
468
469         Tests for module 'frexpf'.
470         * modules/frexpf-tests: New file.
471         * tests/test-frexpf.c: New file.
472
473         New module 'frexpf'.
474         * lib/math.in.h (frexpf): New declaration.
475         * lib/frexpf.c: New file.
476         * m4/frexpf.m4: New file.
477         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
478         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
479         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
480         * modules/frexpf: New file.
481         * tests/test-math-c++.cc: Check the declaration of frexpf.
482         * doc/posix-functions/frexpf.texi: Mention the new module.
483
484 2011-10-06  Bruno Haible  <bruno@clisp.org>
485
486         math: Sort function declarations of math.in.h.
487         * lib/math.in.h (frexp, logb): Move declarations.
488
489 2011-10-05  Bruno Haible  <bruno@clisp.org>
490
491         Tests for module 'modff'.
492         * modules/modff-tests: New file.
493         * tests/test-modff.c: New file.
494
495         New module 'modff'.
496         * lib/math.in.h (modff): New declaration.
497         * lib/modff.c: New file.
498         * m4/modff.m4: New file.
499         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
500         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
501         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
502         * modules/modff: New file.
503         * tests/test-math-c++.cc: Check the declaration of modff.
504         * doc/posix-functions/modff.texi: Mention the new module.
505
506         modf tests: Make test sharper.
507         * tests/test-modf.c (main): Strengthen upper bound.
508
509         modf: Use a .m4 file.
510         * m4/modf.m4: New file.
511         * modules/modf (Files): Add it.
512         (configure.ac): Just invoke gl_FUNC_MODF.
513
514 2011-10-05  Bruno Haible  <bruno@clisp.org>
515
516         Tests for module 'fmodf'.
517         * modules/fmodf-tests: New file.
518         * tests/test-fmodf.c: New file.
519
520         New module 'fmodf'.
521         * lib/math.in.h (fmodf): New declaration.
522         * lib/fmodf.c: New file.
523         * m4/fmodf.m4: New file.
524         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
525         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
526         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
527         * modules/fmodf: New file.
528         * tests/test-math-c++.cc: Check the declaration of fmodf.
529         * doc/posix-functions/fmodf.texi: Mention the new module.
530
531         fmod: Use a .m4 file.
532         * m4/fmod.m4: New file.
533         * modules/fmod (Files): Add it.
534         (configure.ac): Just invoke gl_FUNC_FMOD.
535
536 2011-10-05  Bruno Haible  <bruno@clisp.org>
537
538         Tests for module 'fabsf'.
539         * modules/fabsf-tests: New file.
540         * tests/test-fabsf.c: New file.
541
542         New module 'fabsf'.
543         * lib/math.in.h (fabsf): New declaration.
544         * lib/fabsf.c: New file.
545         * m4/fabsf.m4: New file.
546         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
547         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
548         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
549         * modules/fabsf: New file.
550         * tests/test-math-c++.cc: Check the declaration of fabsf.
551         * doc/posix-functions/fabsf.texi: Mention the new module.
552
553         fabs: Use a .m4 file.
554         * m4/fabs.m4: New file.
555         * modules/fabs (Files): Add it.
556         (configure.ac): Just invoke gl_FUNC_FABS.
557
558 2011-10-05  Jim Meyering  <meyering@redhat.com>
559
560         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
561         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
562         ls -lL regression introduced in coreutils-8.12, it does so at the
563         cost of an additional stat call in the common case.  Besides, now
564         that the kernel change that prompted commit 95f7c57f has been reverted
565         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
566         we have no use for commit 95f7c57f, "file-has-acl: use
567         acl_extended_file_nofollow if available".
568
569 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
570
571         file-has-acl: revert unintended change in behavior of ls -L
572         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
573         derived from...
574         (file_has_acl): ...code here.  Call it.
575         This problem was introduced with 2011-07-22 commit 95f7c57f,
576         "file-has-acl: use acl_extended_file_nofollow if available".
577         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
578
579 2011-10-03  Bruno Haible  <bruno@clisp.org>
580
581         poll: Avoid link errors on MSVC.
582         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
583         * modules/poll (Depends-on): Add sockets.
584         (Link): New section.
585         * NEWS: Mention the change.
586         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
587         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
588         $(LIB_POLL) instead of $(LIBSOCKET).
589
590 2011-10-03  Bruno Haible  <bruno@clisp.org>
591
592         sys_select tests: Fix link error on MSVC 9.
593         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
594         with $(LIB_SELECT) instead of $(LIBSOCKET).
595
596 2011-10-03  Bruno Haible  <bruno@clisp.org>
597
598         sys_select: Fix compilation error on mingw.
599         * lib/sys_select.in.h: On native Windows, include <io.h>.
600
601 2011-10-03  Bruno Haible  <bruno@clisp.org>
602
603         wmemset: Support for MSVC.
604         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
605         whether wmemset() exists.
606
607 2011-10-03  Bruno Haible  <bruno@clisp.org>
608
609         wmemmove: Support for MSVC.
610         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
611         whether wmemmove() exists.
612
613 2011-10-03  Bruno Haible  <bruno@clisp.org>
614
615         wmemcpy: Support for MSVC.
616         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
617         whether wmemcpy() exists.
618
619 2011-10-03  Bruno Haible  <bruno@clisp.org>
620
621         wmemcmp: Support for MSVC.
622         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
623         whether wmemcmp() exists.
624
625 2011-10-03  Bruno Haible  <bruno@clisp.org>
626
627         wmemchr: Support for MSVC.
628         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
629         whether wmemchr() exists.
630
631 2011-10-03  Bruno Haible  <bruno@clisp.org>
632
633         glthread/*, strsignal: Support for MSVC.
634         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
635         including <winsock.h> on MSVC 9.
636         * lib/glthread/lock.h: Likewise.
637         * lib/glthread/thread.h: Likewise.
638         * lib/glthread/tls.h: Likewise.
639         * lib/glthread/yield.h: Likewise.
640         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
641         if HAVE_UNISTD_H is false.
642         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
643
644 2011-10-03  Bruno Haible  <bruno@clisp.org>
645
646         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
647         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
648         Set to 100000.
649
650 2011-10-03  Bruno Haible  <bruno@clisp.org>
651
652         acl: Fix specification.
653         * lib/file-has-acl.c (file_has_acl): Fix specification.
654
655 2011-10-03  Bruno Haible  <bruno@clisp.org>
656
657         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
658         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
659         (compute_curr_prefix, shared_library_fullname,
660         find_shared_library_fullname, get_shared_library_fullname, relocate):
661         Use it together with PIC && INSTALLDIR.
662         Reported by <jojelino@gmail.com>
663         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
664
665 2011-10-01  Jim Meyering  <meyering@redhat.com>
666
667         maint.mk: adjust a release-related rule not to require use of gzip
668         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
669         Instead, check each file in $(DIST_ARCHIVES).  This is better for
670         projects that build only .tar.xz files.  Also fix an erroneous test.
671
672         test-linkat: don't leave behind a temporary file
673         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
674         Otherwise, coreutils' "make distcheck" would fail with this:
675           Only in /c/cu/tests/torture/coreutils/test/\
676             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
677           make[2]: *** [my-distcheck] Error 1
678
679         float, math: add omitted file
680         * lib/itold.c: Add file, required for yesterday's float change.
681
682 2011-10-01  Bruno Haible  <bruno@clisp.org>
683
684         isinf: Fix for OpenBSD/x86.
685         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
686         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
687         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
688
689 2011-10-01  Bruno Haible  <bruno@clisp.org>
690
691         isfinite: Fix syntax error in configure test.
692         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
693
694         isfinite: Fix typo.
695         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
696         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
697
698 2011-10-01  Bruno Haible  <bruno@clisp.org>
699
700         nonblocking tests: Fix test failure on Linux/IA-64.
701         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
702         Set to 270000.
703
704 2011-10-01  Bruno Haible  <bruno@clisp.org>
705
706         mkfifoat tests: Fix a test failure on mingw.
707         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
708         with error ENOSYS.
709
710 2011-09-30  Bruno Haible  <bruno@clisp.org>
711
712         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
713         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
714         'long double'. Set REPLACE_ITOLD.
715         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
716         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
717         * lib/itold.c: New file.
718         * modules/float (Files): Add lib/itold.c.
719         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
720         (Makefile.am): Substitute REPLACE_ITOLD.
721         * modules/math (Depends-on): Add float.
722         (Makefile.am): Substitute REPLACE_ITOLD.
723         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
724         * doc/posix-headers/math.texi: Likewise.
725         * doc/posix-functions/logl.texi: Likewise.
726
727 2011-09-30  Bruno Haible  <bruno@clisp.org>
728
729         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
730         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
731         Set to 140000.
732
733 2011-09-30  Bruno Haible  <bruno@clisp.org>
734
735         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
736         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
737         invocation, say "right after AC_PROG_CC_STDC", not "right after
738         AC_PROG_CC".
739         Reported by Gary V. Vaughan <gary@gnu.org>.
740
741 2011-09-30  Bruno Haible  <bruno@clisp.org>
742
743         Centralize C99 requirement.
744         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
745         * modules/stdarg (configure.ac-early): Invoke it instead of
746         AC_PROG_CC_STDC.
747         Reported by Gary V. Vaughan and Paul Eggert.
748
749 2011-09-29  Bruno Haible  <bruno@clisp.org>
750
751         float: Fix LDBL_MAX value on Linux/PowerPC.
752         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
753         on Linux/PowerPC.
754         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
755         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
756         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
757         platform.
758         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
759
760 2011-09-29  Bruno Haible  <bruno@clisp.org>
761
762         doc: Improve doc about gl_EARLY.
763         * doc/gnulib-tool.texi (Initial import): Mention where to place an
764         AC_PROG_CC_STDC invocation.
765         Reported by Gary V. Vaughan <gary@gnu.org>.
766
767 2011-09-28  Bruno Haible  <bruno@clisp.org>
768
769         fgetc, fputc, fread, fwrite tests: Fix link error.
770         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
771         on non-MSVC platforms.
772         * tests/test-fputc.c (main): Likewise.
773         * tests/test-fread.c (main): Likewise.
774         * tests/test-fwrite.c (main): Likewise.
775         Reported by Jim Meyering.
776
777 2011-09-27  Bruno Haible  <bruno@clisp.org>
778
779         fputc, fwrite tests: Avoid test failure on MSVC.
780         * tests/test-fgetc.c: Include msvc-inval.h.
781         (main): Invoke gl_msvc_inval_ensure_handler.
782         * tests/test-fputc.c: Include msvc-inval.h.
783         (main): Invoke gl_msvc_inval_ensure_handler.
784         * tests/test-fread.c: Include msvc-inval.h.
785         (main): Invoke gl_msvc_inval_ensure_handler.
786         * tests/test-fwrite.c: Include msvc-inval.h.
787         (main): Invoke gl_msvc_inval_ensure_handler.
788         * modules/fgetc-tests (Depends-on): Add msvc-inval.
789         * modules/fputc-tests (Depends-on): Likewise.
790         * modules/fread-tests (Depends-on): Likewise.
791         * modules/fwrite-tests (Depends-on): Likewise.
792
793 2011-09-27  Bruno Haible  <bruno@clisp.org>
794
795         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
796         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
797         (raise): Remove older, duplicated declaration.
798         (_gl_raise_SIGPIPE): New declaration.
799         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
800         (rpl_raise): Remove function.
801         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
802         a gnulib-defined SIGPIPE here.
803         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
804         'sigprocmask' has detected missing signal-blocking and the module
805         'sigpipe' is enabled.
806         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
807
808 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
809
810         base64-tests: avoid memory leak
811         * tests/test-base64.c (main): Plug memory leak.
812
813         base32: new module
814         * modules/base32: New module.
815         * lib/base32.c: New file.
816         * lib/base32.h: Likewise.
817         * m4/base32.m4: Likewise.
818         * modules/base32-tests: New test.
819         * tests/test-base32.c: Likewise.
820         * MODULES.html.sh (Misc): Mention it.
821
822 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
823
824         gnulib: use more-standard license notice wording
825         * gnulib-tool (func_emit_copyright_notice): When emitting a
826         license notice into a file, use the standard wording as suggested
827         by the current information for GNU maintainers, except say "file"
828         rather than "program".  The new wording gives a license version
829         number, which addresses an issue raised by Glenn Morris in
830         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
831         * m4/onceonly.m4: Use that same wording here, too.
832
833         dup2: minor simplification
834         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
835         as lib/dup2.c no longer uses 'inline'.
836
837 2011-09-25  Bruno Haible  <bruno@clisp.org>
838
839         strings: Fix compilation error on MSVC.
840         * lib/strings.in.h: Include <stddef.h> for size_t.
841
842 2011-09-25  Bruno Haible  <bruno@clisp.org>
843
844         fflush et al.: Document limitation on MSVC.
845         * doc/posix-functions/fflush.texi: Document possible crash in handling
846         mode other than DEFAULT_HANDLING.
847         * doc/posix-functions/fgetc.texi: Likewise.
848         * doc/posix-functions/fputc.texi: Likewise.
849         * doc/posix-functions/fread.texi: Likewise.
850         * doc/posix-functions/fwrite.texi: Likewise.
851
852 2011-09-25  Bruno Haible  <bruno@clisp.org>
853
854         msvc-inval: Allow three invalid parameter handling modes.
855         * lib/msvc-inval.h: Don't include <stdlib.h> here.
856         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
857         macros.
858         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
859         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
860         SANE_LIBRARY_HANDLING as a no-op.
861         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
862         <stdlib.h>.
863         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
864
865 2011-09-25  Bruno Haible  <bruno@clisp.org>
866
867         msvc-inval: Make handler multithread-safe.
868         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
869         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
870         declarations.
871         (gl_msvc_inval_current): New declaration.
872         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
873         Operate on the structure returned by gl_msvc_inval_current().
874         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
875         Remove varaiables.
876         (tls_index, tls_initialized): New variables.
877         (not_per_thread): New variable.
878         (gl_msvc_inval_current): New function.
879         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
880         returned by gl_msvc_inval_current().
881
882 2011-09-25  Bruno Haible  <bruno@clisp.org>
883
884         msvc-inval: Install handler globally.
885         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
886         !_MSC_VER.
887         (gl_msvc_invalid_parameter_handler): Remove declaration.
888         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
889         declarations.
890         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
891         Install the handler globally, don't uninstall it.
892         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
893         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
894         currently valid, call RaiseException instead.
895         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
896         for !_MSC_VER.
897
898 2011-09-25  Bruno Haible  <bruno@clisp.org>
899
900         strerror_r-posix: Fix for MSVC 9.
901         * lib/strerror_r.c (local_snprintf): New function.
902         (snprintf): Define to local_snprintf, not to _snprintf.
903
904 2011-09-25  Bruno Haible  <bruno@clisp.org>
905
906         ftruncate: Support for MSVC 9.
907         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
908         (chsize_nothrow): New function.
909         (chsize): Redefine as a macro.
910         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
911         * modules/ftruncate (Depends-on): Add msvc-inval.
912
913 2011-09-25  Bruno Haible  <bruno@clisp.org>
914
915         New module 'fstat'.
916         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
917         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
918         * lib/fchdir.c (rpl_fstat): Remove function.
919         * m4/fstat.m4: New file.
920         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
921         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
922         declared.
923         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
924         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
925         * modules/fstat: New file.
926         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
927         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
928         is set.
929         * doc/posix-functions/fstat.texi: Mention the new module and the
930         problem on MSVC.
931         * NEWS: Mention the change.
932         * modules/acl (Depends-on): Add fstat.
933         * modules/chdir-safer (Depends-on): Likewise.
934         * modules/chown (Depends-on): Likewise.
935         * modules/copy-file (Depends-on): Likewise.
936         * modules/fchdir (Depends-on): Likewise.
937         * modules/fdopendir (Depends-on): Likewise.
938         * modules/fopen (Depends-on): Likewise.
939         * modules/fts (Depends-on): Likewise.
940         * modules/getcwd (Depends-on): Likewise.
941         * modules/isapipe (Depends-on): Likewise.
942         * modules/linkat (Depends-on): Likewise.
943         * modules/lseek (Depends-on): Likewise.
944         * modules/mkdir-p (Depends-on): Likewise.
945         * modules/open (Depends-on): Likewise.
946         * modules/openat (Depends-on): Likewise.
947         * modules/read-file (Depends-on): Likewise.
948         * modules/renameat (Depends-on): Likewise.
949         * modules/utimens (Depends-on): Likewise.
950
951 2011-09-25  Bruno Haible  <bruno@clisp.org>
952
953         linkat: Fix compilation on MSVC 9.
954         * lib/linkat.c: Don't include <stdint.h>.
955
956 2011-09-25  Bruno Haible  <bruno@clisp.org>
957
958         fclose: Support for MSVC 9.
959         * lib/fclose.c: Include msvc-inval.h.
960         (fclose_nothrow): New function.
961         (rpl_fclose): Use it.
962         * modules/fclose (Depends-on): Add msvc-inval.
963         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
964
965 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
966
967         dup2: minor simplifications
968         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
969         that it's a performance win.
970         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
971         ! defined __CYGWIN__)" to "ifdef F_GETFL".
972
973 2011-09-24  Jim Meyering  <meyering@redhat.com>
974
975         test-futimens: avoid a warning from gcc -Wshadow
976         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
977         to avoid a shadowing warning.
978
979 2011-09-24  Bruno Haible  <bruno@clisp.org>
980
981         fdopen: Support for MSVC 9.
982         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
983         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
984         * lib/fdopen.c: Include msvc-inval.h.
985         (fdopen_nothrow): New function.
986         (rpl_fdopen): Use it.
987         * modules/fdopen (Depends-on): Add msvc-inval.
988         * modules/fclose-tests (Depends-on): Add fdopen.
989         * modules/fflush-tests (Depends-on): Likewise.
990         * modules/fgetc-tests (Depends-on): Likewise.
991         * modules/fputc-tests (Depends-on): Likewise.
992         * modules/fread-tests (Depends-on): Likewise.
993         * modules/freopen-tests (Depends-on): Likewise.
994         * modules/fseeko-tests (Depends-on): Likewise.
995         * modules/ftello-tests (Depends-on): Likewise.
996         * modules/fwrite-tests  (Depends-on): Likewise.
997         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
998
999 2011-09-24  Bruno Haible  <bruno@clisp.org>
1000
1001         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
1002         * modules/fgetc-tests (Depends-on): Add unistd.
1003         * modules/fputc-tests (Depends-on): Likewise.
1004         * modules/fread-tests (Depends-on): Likewise.
1005         * modules/fwrite-tests (Depends-on): Likewise.
1006
1007 2011-09-24  Bruno Haible  <bruno@clisp.org>
1008
1009         dup: Simplify autoconf test.
1010         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
1011         on gl_MSVC_INVAL's result.
1012
1013 2011-09-24  Bruno Haible  <bruno@clisp.org>
1014
1015         Tests for function fwrite().
1016         * modules/fwrite-tests: New file.
1017         * tests/test-fwrite.c: New file.
1018         * modules/stdio-tests (Depends-on): Add fwrite-tests.
1019
1020         Tests for function fread().
1021         * modules/fread-tests: New file.
1022         * tests/test-fread.c: New file.
1023         * modules/stdio-tests (Depends-on): Add fread-tests.
1024
1025         Activate fputc tests.
1026         * modules/stdio-tests (Depends-on): Add fputc-tests.
1027
1028         Enhance fgetc, fputc tests.
1029         * tests/test-fgetc.c (main): Also test the stream's error indicator.
1030         * tests/test-fputc.c (main): Likewise.
1031
1032 2011-09-24  Bruno Haible  <bruno@clisp.org>
1033
1034         write: Support for MSVC 9.
1035         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
1036         is not 1.
1037         * lib/write.c (write_nothrow): New function.
1038         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
1039         not 1. Use write_nothrow.
1040         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
1041         invalid parameter handler.
1042         (gl_PREREQ_WRITE): New macro.
1043         * modules/write (Depends-on): Add msvc-inval.
1044         (configure.ac): Invoke gl_PREREQ_WRITE.
1045         * doc/posix-functions/write.texi: Mention the problem on MSVC.
1046
1047 2011-09-24  Bruno Haible  <bruno@clisp.org>
1048
1049         read: Fix last commit.
1050         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
1051
1052 2011-09-24  Bruno Haible  <bruno@clisp.org>
1053
1054         dup2: Fix last commit.
1055         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
1056         (rpl_dup2): Disable fcntl workaround on native Windows.
1057
1058         sigprocmask: Make code safer.
1059         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
1060         section that changes macro definitions for this compilation unit.
1061
1062 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
1063
1064         dup2: clarify by coalescing Windows-specific material
1065         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
1066         "msvc-nothrow.h"' to the Windows-specific section, so that the
1067         Emacs source need not contain these include files.
1068         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
1069         Windows-specific fixes into this function rather than just the
1070         nothrow fix, as this shortens and clarifies the code.  Always
1071         define as a function, as that's a bit cleaner than having it be
1072         sometimes a function and sometimes a macro.
1073         (rpl_dup2): Move the Windows-specific stuff out of here and into
1074         ms_windows_dup2.  Don't protect the Haiku-related fix with
1075         "#if !defined __linux__", as the same code also works around
1076         a Linux kernel bug, and it doesn't add any system calls on any
1077         platform.  Add comment about FreeBSD 6.1.
1078
1079         sigprocmask: move #include directive
1080         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
1081         Windows-specific section, so that the Emacs source need not
1082         contain msvc-inval.h.
1083
1084 2011-09-23  Bruno Haible  <bruno@clisp.org>
1085
1086         read: Support for MSVC 9.
1087         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
1088         is not 1.
1089         * lib/read.c (read_nothrow): New function.
1090         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
1091         read_nothrow.
1092         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
1093         invalid parameter handler.
1094         (gl_PREREQ_READ): New macro.
1095         * modules/read (Depends-on): Add msvc-inval.
1096         (configure.ac): Invoke gl_PREREQ_READ.
1097         * doc/posix-functions/read.texi: Mention the problem on MSVC.
1098
1099 2011-09-23  Bruno Haible  <bruno@clisp.org>
1100
1101         close: Support for MSVC 9.
1102         * lib/close.c: Include <errno.h>, msvc-inval.h.
1103         (close_nothrow): New function.
1104         (rpl_close): Use it.
1105         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
1106         invalid parameter handler.
1107         * modules/close (Depends-on): Add msvc-inval.
1108         * modules/dup2-tests (Depends-on): Add close.
1109         * modules/dup3-tests (Depends-on): Likewise.
1110         * modules/fcntl-tests (Depends-on): Likewise.
1111         * modules/spawn-pipe-tests (Depends-on): Likewise.
1112         * modules/unistd-safer-tests (Depends-on): Likewise.
1113         * doc/posix-functions/close.texi: Mention the problem on MSVC.
1114
1115 2011-09-23  Bruno Haible  <bruno@clisp.org>
1116
1117         New module 'dup'.
1118         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
1119         Allow replacement.
1120         * lib/dup.c: New file.
1121         * lib/fchdir.c (rpl_dup): Remove function.
1122         * m4/dup.m4: New file.
1123         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
1124         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
1125         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
1126         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
1127         * modules/dup: New file.
1128         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
1129         'dup' module is in use.
1130         * modules/fdopendir (Depends-on): Add dup.
1131         * modules/fdutimensat-tests (Depends-on): Likewise.
1132         * modules/fts (Depends-on): Likewise.
1133         * modules/futimens-tests (Depends-on): Likewise.
1134         * modules/posix_spawnp-tests (Depends-on): Likewise.
1135         * modules/unistd-safer-tests (Depends-on): Likewise.
1136         * modules/utimens-tests (Depends-on): Likewise.
1137         * doc/posix-functions/dup.texi: Mention the new module and the problem
1138         on MSVC.
1139
1140 2011-09-23  Bruno Haible  <bruno@clisp.org>
1141
1142         getdtablesize: Support for MSVC 9.
1143         * lib/getdtablesize.c: Include msvc-inval.h.
1144         (_setmaxstdio_nothrow): New function.
1145         (_setmaxstdio): Redefine it.
1146         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
1147         * modules/getdtablesize (Depends-on): Add msvc-inval.
1148         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
1149
1150 2011-09-23  Bruno Haible  <bruno@clisp.org>
1151
1152         signal-h: Rename from signal.
1153         * modules/signal-h: Renamed from modules/signal.
1154         * modules/pthread_sigmask (Depends-on): Update.
1155         * modules/raise (Depends-on): Likewise.
1156         * modules/sigaction (Depends-on): Likewise.
1157         * modules/sigpipe (Depends-on): Likewise.
1158         * modules/sigprocmask (Depends-on): Likewise.
1159         * modules/sys_select (Depends-on): Likewise.
1160         * modules/signal-h-tests: Renamed from modules/signal-tests.
1161         (Files, Depends-on, Makefile.am): Update.
1162         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
1163         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
1164         (Files, Makefile.am): Update.
1165         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
1166         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
1167         * modules/signal: New placeholder file.
1168         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
1169         * doc/posix-headers/signal.texi: Update.
1170         * NEWS: Mention the change.
1171
1172 2011-09-23  Bruno Haible  <bruno@clisp.org>
1173
1174         sigprocmask: Avoid crashes through signal() on MSVC 9.
1175         * lib/sigprocmask.c: Include msvc-inval.h.
1176         (signal_nothrow): New function.
1177         (signal): Redefine it.
1178         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
1179         * modules/sigprocmask (Depends-on): Add msvc-inval.
1180         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
1181
1182 2011-09-23  Bruno Haible  <bruno@clisp.org>
1183
1184         Tests for module 'raise'.
1185         * modules/raise-tests: New file.
1186         * tests/test-raise.c: New file.
1187
1188         raise: Support for MSVC.
1189         * lib/signal.in.h (raise): New declaration.
1190         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
1191         for native Windows platforms.
1192         * m4/raise.m4: New file.
1193         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
1194         HAVE_RAISE, REPLACE_RAISE.
1195         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
1196         REPLACE_RAISE.
1197         * modules/raise (Status, Notice): Remove fields.
1198         (Files): Add m4/raise.m4.
1199         (Depends-on): Add signal, msvc-inval.
1200         (configure.ac): Use the common idioms.
1201         (Maintainer): Add me.
1202         * tests/test-signal-c++.cc: Check the signature of raise.
1203         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
1204
1205 2011-09-23  Bruno Haible  <bruno@clisp.org>
1206
1207         pipe2: Fix compilation on pre-C99 compilers.
1208         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
1209
1210 2011-09-23  Bruno Haible  <bruno@clisp.org>
1211
1212         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
1213         * lib/msvc-nothrow.h: New file.
1214         * lib/msvc-nothrow.c: New file.
1215         * m4/msvc-nothrow.m4: New file.
1216         * modules/msvc-nothrow: New file.
1217         * lib/dup2.c: Include msvc-nothrow.h.
1218         (rpl_dup2): No need to protect _get_osfhandle call here.
1219         * lib/accept4.c: Include msvc-nothrow.h.
1220         * lib/error.c: Likewise.
1221         * lib/fcntl.c: Likewise.
1222         * lib/lseek.c: Likewise.
1223         * lib/nonblocking.c: Likewise.
1224         * lib/poll.c: Likewise.
1225         * lib/read.c: Likewise.
1226         * lib/select.c: Likewise.
1227         * lib/sockets.h: Likewise.
1228         * lib/sockets.c: Likewise.
1229         * lib/stdio-read.c: Likewise.
1230         * lib/stdio-write.c: Likewise.
1231         * lib/write.c: Likewise.
1232         * lib/w32sock.h: Likewise.
1233         * lib/w32spawn.h: Likewise.
1234         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
1235         * lib/fsync.c: Likewise.
1236         * lib/isapipe.c: Likewise.
1237         * modules/dup2 (Depends-on): Add msvc-nothrow.
1238         * modules/accept4 (Depends-on): Likewise.
1239         * modules/error (Depends-on): Likewise.
1240         * modules/fcntl (Depends-on): Likewise.
1241         * modules/lseek (Depends-on): Likewise.
1242         * modules/nonblocking (Depends-on): Likewise.
1243         * modules/poll (Depends-on): Likewise.
1244         * modules/read (Depends-on): Likewise.
1245         * modules/select (Depends-on): Likewise.
1246         * modules/sockets (Depends-on): Likewise.
1247         * modules/sigpipe (Depends-on): Likewise.
1248         * modules/write (Depends-on): Likewise.
1249         * modules/accept (Depends-on): Likewise.
1250         * modules/bind (Depends-on): Likewise.
1251         * modules/connect (Depends-on): Likewise.
1252         * modules/gethostname (Depends-on): Likewise.
1253         * modules/getpeername (Depends-on): Likewise.
1254         * modules/getsockname (Depends-on): Likewise.
1255         * modules/getsockopt (Depends-on): Likewise.
1256         * modules/ioctl (Depends-on): Likewise.
1257         * modules/listen (Depends-on): Likewise.
1258         * modules/recv (Depends-on): Likewise.
1259         * modules/recvfrom (Depends-on): Likewise.
1260         * modules/send (Depends-on): Likewise.
1261         * modules/sendto (Depends-on): Likewise.
1262         * modules/setsockopt (Depends-on): Likewise.
1263         * modules/shutdown (Depends-on): Likewise.
1264         * modules/socket (Depends-on): Likewise.
1265         * modules/execute (Depends-on): Likewise.
1266         * modules/spawn-pipe (Depends-on): Likewise.
1267         * modules/flock (Depends-on): Likewise.
1268         * modules/fsync (Depends-on): Likewise.
1269         * modules/isapipe (Depends-on): Likewise.
1270         * tests/test-cloexec.c: Include msvc-nothrow.h.
1271         * tests/test-dup-safer.c: Likewise.
1272         * tests/test-dup2.c: Likewise.
1273         * tests/test-dup3.c: Likewise.
1274         * tests/test-fcntl.c: Likewise.
1275         * tests/test-pipe.c: Likewise.
1276         * tests/test-pipe2.c: Likewise.
1277         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
1278         * modules/unistd-safer-tests (Depends-on): Likewise.
1279         * modules/dup2-tests (Depends-on): Likewise.
1280         * modules/dup3-tests (Depends-on): Likewise.
1281         * modules/fcntl-tests (Depends-on): Likewise.
1282         * modules/pipe-posix-tests (Depends-on): Likewise.
1283         * modules/pipe2-tests (Depends-on): Likewise.
1284
1285 2011-09-23  Bruno Haible  <bruno@clisp.org>
1286
1287         dup2: Make code more maintainable.
1288         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
1289         (rpl_dup2): Use it.
1290         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
1291         * modules/dup2 (configure.ac): Invoke it.
1292         Reported by Paul Eggert.
1293
1294 2011-09-23  Bruno Haible  <bruno@clisp.org>
1295
1296         msvc-inval: Fix compilation error.
1297         * lib/msvc-inval.h: Include <excpt.h>.
1298
1299 2011-09-23  Bruno Haible  <bruno@clisp.org>
1300
1301         mkdir: Tweak for MSVC 9.
1302         * lib/sys_stat.in.h: Update comments.
1303         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
1304
1305         Tests for module 'chdir'.
1306         * modules/chdir-tests: New file.
1307         * tests/test-chdir.c: New file.
1308
1309         New module 'chdir'.
1310         * modules/chdir: New file.
1311         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
1312         (chdir): New declaration.
1313         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
1314         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
1315         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
1316         * tests/test-unistd-c++.cc: Check signature of chdir.
1317         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
1318         * modules/chdir-long (Depends-on): Add chdir.
1319         * modules/fchdir (Depends-on): Likewise.
1320         * modules/rename (Depends-on): Likewise.
1321         * modules/savewd (Depends-on): Likewise.
1322
1323         rmdir: Support for mingw, MSVC 9.
1324         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
1325         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
1326
1327         getcwd: Tweak for MSVC 9.
1328         * lib/unistd.in.h: Update comments.
1329         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
1330
1331 2011-09-22  Bruno Haible  <bruno@clisp.org>
1332
1333         strerror_r-posix: Avoid a link error on MSVC.
1334         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
1335         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
1336
1337 2011-09-22  Bruno Haible  <bruno@clisp.org>
1338
1339         select: Avoid link errors on MSVC.
1340         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
1341         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
1342         * modules/pselect (Link): Likewise.
1343         * NEWS: Mention the change.
1344         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
1345         test-select-stdin against $(LIB_SELECT).
1346         * modules/pselect-tests (Makefile.am): Link test-pselect against
1347         $(LIB_SELECT).
1348
1349 2011-09-22  Bruno Haible  <bruno@clisp.org>
1350
1351         select: Avoid compilation error on MSVC.
1352         * lib/select.c: Don't include <stdbool.h>.
1353
1354 2011-09-21  Bruno Haible  <bruno@clisp.org>
1355
1356         Consolidate all uses of PATH_MAX in *.m4 files.
1357         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
1358         macros.
1359         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
1360         and gl_PATHMAX_SNIPPET.
1361         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
1362         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
1363         * modules/chdir-long (Files): Add m4/pathmax.m4.
1364         * modules/getcwd (Files): Likewise.
1365
1366 2011-09-21  Bruno Haible  <bruno@clisp.org>
1367
1368         ftruncate: Un-deprecate, concentrate on Win32 support.
1369         * modules/ftruncate (Status, Notice): Remove sections.
1370         (Depends-on): Add largefile.
1371         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
1372         non-mingw platforms.
1373         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
1374         include <io.h>.
1375         * modules/perror-tests (Depends-on): Add ftruncate.
1376         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
1377         'ftruncate' module.
1378
1379 2011-09-21  Bruno Haible  <bruno@clisp.org>
1380
1381         Add dependencies to new dirent related modules.
1382         * modules/opendir (Depends-on): Add closedir.
1383         * modules/getcwd (Depends-on): Add opendir, closedir.
1384         * modules/dirent-safer-tests (Depends-on): Likewise.
1385         * modules/fdopendir-tests (Depends-on): Likewise.
1386         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
1387         * modules/renameat-tests (Depends-on): Likewise.
1388
1389 2011-09-21  Bruno Haible  <bruno@clisp.org>
1390
1391         opendir: Avoid compilation error on mingw.
1392         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
1393         * modules/opendir (Depends-on): Add unistd.
1394
1395 2011-09-21  Bruno Haible  <bruno@clisp.org>
1396
1397         ftruncate tests: Avoid a test failure on mingw.
1398         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
1399
1400 2011-09-21  Bruno Haible  <bruno@clisp.org>
1401
1402         select tests: Avoid test failures on OSF/1 5.1 and mingw.
1403         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
1404         native Windows.
1405
1406 2011-09-21  Bruno Haible  <bruno@clisp.org>
1407
1408         New module 'fdopen'.
1409         * lib/stdio.in.h (fdopen): New declaration.
1410         * lib/fdopen.c: New file.
1411         * m4/fdopen.m4: New file.
1412         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
1413         REPLACE_FDOPEN.
1414         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
1415         REPLACE_FDOPEN.
1416         * modules/fdopen: New file.
1417         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
1418         * tests/test-stdio-c++.cc: Check signature of fdopen.
1419         * doc/posix-functions/fdopen.texi: Mention the new module.
1420
1421 2011-09-21  Bruno Haible  <bruno@clisp.org>
1422
1423         unlockpt tests: Avoid test failure on NetBSD 5.1.
1424         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
1425         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
1426
1427 2011-09-21  Bruno Haible  <bruno@clisp.org>
1428
1429         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
1430         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
1431         * tests/test-getlogin_r.c (main): Likewise.
1432
1433 2011-09-20  Bruno Haible  <bruno@clisp.org>
1434
1435         time tests: Don't require pid_t.
1436         * doc/posix-headers/time.texi: Revert last change.
1437         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
1438         * tests/test-time.c: Comment out the check for pid_t.
1439
1440 2011-09-20  Bruno Haible  <bruno@clisp.org>
1441
1442         fsync tests: Avoid a test failure on mingw.
1443         * tests/test-fsync.c (main): Allow a failure with EIO.
1444
1445 2011-09-20  Bruno Haible  <bruno@clisp.org>
1446
1447         euidaccess: Update comments.
1448         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
1449
1450 2011-09-20  Bruno Haible  <bruno@clisp.org>
1451
1452         Ensure EBADF returns for socket functions on mingw.
1453         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
1454         descriptor is invalid.
1455         * lib/bind.c (rpl_bind): Likewise.
1456         * lib/connect.c (rpl_connect): Likewise.
1457         * lib/getpeername.c (rpl_getpeername): Likewise.
1458         * lib/getsockname.c (rpl_getsockname): Likewise.
1459         * lib/getsockopt.c (rpl_getsockopt): Likewise.
1460         * lib/listen.c (rpl_listen): Likewise.
1461         * lib/recv.c (rpl_recv): Likewise.
1462         * lib/recvfrom.c (rpl_recvfrom): Likewise.
1463         * lib/send.c (rpl_send): Likewise.
1464         * lib/sendto.c (rpl_sendto): Likewise.
1465         * lib/setsockopt.c (rpl_setsockopt): Likewise.
1466         * lib/shutdown.c (rpl_shutdown): Likewise.
1467
1468 2011-09-20  Bruno Haible  <bruno@clisp.org>
1469
1470         select tests: EBADF tests.
1471         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
1472         test_bad_fd): New functions.
1473         (test_function): Invoke also test_bad_fd.
1474
1475 2011-09-20  Bruno Haible  <bruno@clisp.org>
1476
1477         Tests for module 'posix_spawn_file_actions_addopen.
1478         * modules/posix_spawn_file_actions_addopen-tests: New file.
1479         * tests/test-posix_spawn_file_actions_addopen.c: New file.
1480
1481         Tests for module 'posix_spawn_file_actions_adddup2'.
1482         * modules/posix_spawn_file_actions_adddup2-tests: New file.
1483         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
1484
1485         Tests for module 'posix_spawn_file_actions_addclose'.
1486         * modules/posix_spawn_file_actions_addclose-tests: New file.
1487         * tests/test-posix_spawn_file_actions_addclose.c: New file.
1488
1489 2011-09-20  Bruno Haible  <bruno@clisp.org>
1490
1491         Tests for module 'unlockpt'.
1492         * modules/unlockpt-tests: New file.
1493         * tests/test-unlockpt.c: New file.
1494         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
1495
1496         Tests for module 'grantpt'.
1497         * modules/grantpt-tests: New file.
1498         * tests/test-grantpt.c: New file.
1499         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
1500
1501 2011-09-20  Bruno Haible  <bruno@clisp.org>
1502
1503         freopen tests: EBADF tests.
1504         * tests/test-freopen.c: Include errno.h, unistd.h.
1505         (main): Add tests for EBADF, commented out for the moment.
1506
1507         fclose tests: EBADF tests.
1508         * tests/test-fclose.c (main): Add tests for EBADF.
1509
1510         fflush tests: EBADF tests.
1511         * tests/test-fflush.c: Include errno.h, macros.h.
1512         (main): Add tests for EBADF.
1513
1514         ftello tests: EBADF tests.
1515         * tests/test-ftello4.sh: New file.
1516         * tests/test-ftello4.c: New file.
1517         * modules/ftello-tests (Files): Add them.
1518         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
1519
1520         fseeko tests: EBADF tests.
1521         * tests/test-fseeko4.sh: New file.
1522         * tests/test-fseeko4.c: New file.
1523         * modules/fseeko-tests (Files): Add them.
1524         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
1525
1526         Tests for function fputc().
1527         * modules/fputc-tests: New file.
1528         * tests/test-fputc.c: New file.
1529         * modules/stdio-tests (Depends-on): Add fputc-tests.
1530
1531         Tests for function fgetc().
1532         * modules/fgetc-tests: New file.
1533         * tests/test-fgetc.c: New file.
1534         * modules/stdio-tests (Depends-on): Add fgetc-tests.
1535
1536         Tests for function fdopen().
1537         * modules/fdopen-tests: New file.
1538         * tests/test-fdopen.c: New file.
1539         * modules/stdio-tests (Depends-on): Add fdopen-tests.
1540
1541         Tests for module 'vdprintf'.
1542         * modules/vdprintf-tests: New file.
1543         * tests/test-vdprintf.c: New file.
1544
1545         Tests for module 'dprintf'.
1546         * modules/dprintf-tests: New file.
1547         * tests/test-dprintf.c: New file.
1548
1549 2011-09-20  Bruno Haible  <bruno@clisp.org>
1550
1551         Tests for module 'ioctl'.
1552         * modules/ioctl-tests: New file.
1553         * tests/test-ioctl.c: New file.
1554
1555 2011-09-20  Bruno Haible  <bruno@clisp.org>
1556
1557         fcntl tests: EBADF tests.
1558         * tests/test-fcntl.c (main): Add more tests for EBADF.
1559
1560 2011-09-20  Bruno Haible  <bruno@clisp.org>
1561
1562         utimensat tests: EBADF tests.
1563         * tests/test-utimensat.c (main): Add tests for EBADF.
1564
1565         renameat tests: EBADF tests.
1566         * tests/test-renameat.c (main): Add tests for EBADF.
1567
1568         mkfifoat tests: EBADF tests.
1569         * tests/test-mkfifoat.c (main): Add tests for EBADF.
1570
1571         readlinkat tests: EBADF tests.
1572         * tests/test-readlinkat.c (main): Add tests for EBADF.
1573
1574         symlinkat tests: EBADF tests.
1575         * tests/test-symlinkat.c (main): Add tests for EBADF.
1576
1577         linkat tests: EBADF tests.
1578         * tests/test-linkat.c (main): Add tests for EBADF.
1579
1580         Tests for module 'faccessat'.
1581         * modules/faccessat-tests: New file.
1582         * tests/test-faccessat.c: New file.
1583
1584         fdopendir tests: EBADF tests.
1585         * tests/test-fdopendir.c (main): Add more tests for EBADF.
1586
1587         openat tests: EBADF tests.
1588         * tests/test-fchownat.c (main): Add tests for EBADF.
1589         * tests/test-fstatat.c (main): Likewise.
1590         * tests/test-mkdirat.c (main): Likewise.
1591         * tests/test-openat.c (main): Likewise.
1592         * tests/test-unlinkat.c (main): Likewise.
1593         * tests/test-fchmodat.c: New file.
1594         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
1595         (Makefile.am): Also run 'test-fchmodat'.
1596
1597 2011-09-20  Bruno Haible  <bruno@clisp.org>
1598
1599         utimens, futimens, fdutimensat tests: EBADF tests.
1600         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
1601
1602         Tests for function fstat().
1603         * modules/fstat-tests: New file.
1604         * tests/test-fstat.c: New file.
1605         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
1606
1607 2011-09-20  Bruno Haible  <bruno@clisp.org>
1608
1609         test-ttyname_r tests: EBADF tests.
1610         * tests/test-ttyname_r.c (main): Add tests for EBADF.
1611
1612         Tests for module 'isatty'.
1613         * modules/isatty-tests: New file.
1614         * tests/test-isatty.c: New file.
1615
1616         Tests for module 'write'.
1617         * modules/write-tests: New file.
1618         * tests/test-write.c: New file.
1619
1620         Tests for module 'read'.
1621         * modules/read-tests: New file.
1622         * tests/test-read.c: New file.
1623
1624         pwrite tests: EBADF tests.
1625         * tests/test-pwrite.c (main): Add tests for EBADF.
1626
1627         pread tests: EBADF tests.
1628         * tests/test-pread.c (main): Add tests for EBADF.
1629
1630         lseek tests: EBADF tests.
1631         * tests/test-lseek.c (main): Add more tests for EBADF.
1632
1633         Tests for module 'ftruncate'.
1634         * modules/ftruncate-tests: New file.
1635         * tests/test-ftruncate.sh: New file.
1636         * tests/test-ftruncate.c: New file.
1637
1638         fsync tests: EBADF tests.
1639         * tests/test-fsync.c (main): Add more tests for EBADF.
1640
1641         fdatasync tests: EBADF tests.
1642         * tests/test-fdatasync.c (main): Add more tests for EBADF.
1643
1644         Tests for module 'fchown'.
1645         * modules/fchown-tests: New file.
1646         * tests/test-fchown.c: New file.
1647
1648         Tests for module 'fchmod'.
1649         * modules/fchmod-tests: New file.
1650         * tests/test-fchmod.c: New file.
1651
1652         fchdir tests: EBADF tests.
1653         * tests/test-fchdir.c (main): Add more tests for EBADF.
1654
1655         dup2 tests: EBADF tests.
1656         * tests/test-dup2.c (main): Add more tests for EBADF.
1657
1658         Tests for module 'dup'.
1659         * modules/dup-tests: New file.
1660         * tests/test-dup.c: New file.
1661
1662         Tests for module 'close'.
1663         * modules/close-tests: New file.
1664         * tests/test-close.c: New file.
1665
1666 2011-09-20  Bruno Haible  <bruno@clisp.org>
1667
1668         Tests for module 'shutdown'.
1669         * modules/shutdown-tests: New file.
1670         * tests/test-shutdown.c: New file.
1671
1672         Tests for module 'setsockopt'.
1673         * modules/setsockopt-tests: New file.
1674         * tests/test-setsockopt.c: New file.
1675
1676         Tests for module 'sendto'.
1677         * modules/sendto-tests: New file.
1678         * tests/test-sendto.c: New file.
1679
1680         Tests for module 'send'.
1681         * modules/send-tests: New file.
1682         * tests/test-send.c: New file.
1683
1684         Tests for module 'recvfrom'.
1685         * modules/recvfrom-tests: New file.
1686         * tests/test-recvfrom.c: New file.
1687
1688         Tests for module 'recv'.
1689         * modules/recv-tests: New file.
1690         * tests/test-recv.c: New file.
1691
1692         Tests for module 'listen'.
1693         * modules/listen-tests: New file.
1694         * tests/test-listen.c: New file.
1695
1696         Tests for module 'getsockopt'.
1697         * modules/getsockopt-tests: New file.
1698         * tests/test-getsockopt.c: New file.
1699
1700         Tests for module 'getsockname'.
1701         * modules/getsockname-tests: New file.
1702         * tests/test-getsockname.c: New file.
1703
1704         Tests for module 'getpeername'.
1705         * modules/getpeername-tests: New file.
1706         * tests/test-getpeername.c: New file.
1707
1708         Tests for module 'connect'.
1709         * modules/connect-tests: New file.
1710         * tests/test-connect.c: New file.
1711
1712         Tests for module 'bind'.
1713         * modules/bind-tests: New file.
1714         * tests/test-bind.c: New file.
1715
1716         accept4 tests: Fix for native Windows.
1717         * tests/test-accept4.c: Include sockets.h.
1718         (main): Invoke gl_sockets_startup.
1719         * modules/accept4-tests (Depends-on): Add sockets.
1720
1721         accept tests: Fix for native Windows.
1722         * tests/test-accept.c: Include sockets.h.
1723         (main): Invoke gl_sockets_startup.
1724         * modules/accept-tests (Depends-on): Add sockets.
1725
1726 2011-09-19  Bruno Haible  <bruno@clisp.org>
1727
1728         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
1729         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
1730         do...while(0).
1731         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
1732         Suggested by Paul Eggert.
1733
1734 2011-09-19  Bruno Haible  <bruno@clisp.org>
1735
1736         sched: Ensure pid_t is defined.
1737         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
1738         not define pid_t.
1739         * lib/sched.in.h: Include <sys/types.h>.
1740         * doc/posix-headers/sched.texi: Mention the pid_t problem.
1741         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1742
1743 2011-09-19  Bruno Haible  <bruno@clisp.org>
1744
1745         msvc-inval: Ensure the entire expansion is a single statement.
1746         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
1747         of braces.
1748
1749 2011-09-19  Jim Meyering  <meyering@redhat.com>
1750
1751         tests: use printf, not echo in init.sh's warn_ function
1752         * tests/init.sh (warn_): Use printf, not echo.  The latter would
1753         misbehave when given strings containing a backslash or starting
1754         with e.g., -n.  James Youngman suggested setting IFS.
1755
1756 2011-09-19  Eric Blake  <eblake@redhat.com>
1757
1758         futimens: enhance test
1759         * tests/test-futimens.h (test_futimens): Also check for EBADF on
1760         closed non-negative fd.
1761
1762         date: accept 'hence' as opposite of 'ago'
1763         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
1764         * tests/test-parse-datetime.c (main): Enhance test.
1765         Suggested by Jesse Wilson.
1766
1767 2011-09-19  Jim Meyering  <meyering@redhat.com>
1768
1769         getcwd: don't fail in a deep directory on a system without openat
1770         Before this change, getcwd would fail when called from a directory
1771         of depth PATH_MAX / 3 or greater.  That was due to the fact that
1772         the non-openat implementation used "..", "../..", "../../..", etc.
1773         to access ancestor directories.  With too many, that string would
1774         be longer than PATH_MAX.
1775         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
1776         using gnulib's openat replacement.
1777         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
1778         we're using the replacement function.
1779
1780 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
1781
1782         maint.mk: avoid warnings from perl about missing files
1783         * top/maint.mk (def_sym_regex): Ignore files listed in
1784         $(gl_other_headers_) that do not exist, say because a project
1785         does not use a corresponding module.
1786
1787 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
1788
1789         stat: use pathmax.h only if needed
1790         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
1791         This is better for Emacs, which does not have a mingw port and
1792         therefore can avoid the pathmax module.
1793
1794         utimens: remove dependency on dup2
1795         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
1796         to work around the Linux kernel bug.
1797         * modules/utimens (Depends-on): Remove dup2.
1798
1799 2011-09-18  Bruno Haible  <bruno@clisp.org>
1800
1801         inet_ntop, inet_pton: Look for it also in libresolv.
1802         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
1803         libnsl, search for it in libresolv.
1804         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
1805         Needed on Solaris 7.
1806
1807 2011-09-18  Bruno Haible  <bruno@clisp.org>
1808
1809         accept, accept4 tests: Avoid link error on Solaris.
1810         * modules/accept-tests (Makefile.am): Link test-accept against
1811         $(LIBSOCKET).
1812         * modules/accept4-tests (Makefile.am): Link test-accept4 against
1813         $(LIBSOCKET).
1814
1815         accept4: Avoid link error on Solaris.
1816         * modules/accept4 (Link): New section.
1817
1818         socket functions: Avoid link errors on Solaris.
1819         * modules/accept (Depends-on): Add socketlib.
1820         (Link): New section.
1821         * modules/bind (Depends-on): Add socketlib.
1822         (Link): New section.
1823         * modules/connect (Depends-on): Add socketlib.
1824         (Link): New section.
1825         * modules/getpeername (Depends-on): Add socketlib.
1826         (Link): New section.
1827         * modules/getsockname (Depends-on): Add socketlib.
1828         (Link): New section.
1829         * modules/getsockopt (Depends-on): Add socketlib.
1830         (Link): New section.
1831         * modules/listen (Depends-on): Add socketlib.
1832         (Link): New section.
1833         * modules/recv (Depends-on): Add socketlib.
1834         (Link): New section.
1835         * modules/recvfrom (Depends-on): Add socketlib.
1836         (Link): New section.
1837         * modules/send (Depends-on): Add socketlib.
1838         (Link): New section.
1839         * modules/sendto (Depends-on): Add socketlib.
1840         (Link): New section.
1841         * modules/setsockopt (Depends-on): Add socketlib.
1842         (Link): New section.
1843         * modules/shutdown (Depends-on): Add socketlib.
1844         (Link): New section.
1845         * modules/socket (Depends-on): Add socketlib.
1846         (Link): New section.
1847
1848 2011-09-18  Bruno Haible  <bruno@clisp.org>
1849
1850         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
1851         * tests/test-ptsname.c (main): Terminate the test if it takes longer
1852         than 5 seconds.
1853         * modules/ptsname-tests (configure.ac): Test for alarm.
1854
1855 2011-09-18  Bruno Haible  <bruno@clisp.org>
1856
1857         posix_spawn_file_actions_add*: Fix module dependencies.
1858         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
1859         posix_spawn_file_actions_init.
1860         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
1861         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
1862
1863 2011-09-18  Bruno Haible  <bruno@clisp.org>
1864
1865         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
1866         * tests/test-rename.h (test_rename): Allow error code EEXIST.
1867         * tests/test-renameat.c (main): Likewise.
1868
1869 2011-09-18  Bruno Haible  <bruno@clisp.org>
1870
1871         Tests for module 'accept4'.
1872         * modules/accept4-tests: New file.
1873         * tests/test-accept4.c: New file.
1874
1875 2011-09-18  Bruno Haible  <bruno@clisp.org>
1876
1877         Tests for module 'accept'.
1878         * modules/accept-tests: New file.
1879         * tests/test-accept.c: New file.
1880
1881 2011-09-18  Bruno Haible  <bruno@clisp.org>
1882
1883         dup2: Support for MSVC.
1884         * lib/dup2.c: Include msvc-inval.h.
1885         (rpl_dup2): Handle invalid parameter notifications during dup2 and
1886         _get_osfhandle calls.
1887         * modules/dup2 (Depends-on): Add msvc-inval.
1888         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
1889
1890         New module 'msvc-inval'.
1891         * lib/msvc-inval.h: New file.
1892         * lib/msvc-inval.c: New file.
1893         * m4/msvc-inval.m4: New file.
1894         * modules/msvc-inval: New file.
1895
1896 2011-09-17  Bruno Haible  <bruno@clisp.org>
1897
1898         Tests for module 'pclose'.
1899         * modules/pclose-tests: New file.
1900
1901         New module 'pclose'.
1902         * lib/stdio.in.h (pclose): New declaration.
1903         * lib/pclose.c: New file.
1904         * m4/pclose.m4: New file.
1905         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
1906         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
1907         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
1908         * modules/pclose: New file.
1909         * modules/popen-tests (Depends-on): Add pclose.
1910         * modules/popen-safer-tests (Depends-on): Likewise.
1911         * doc/posix-functions/pclose.texi: Mention the new module.
1912
1913 2011-09-17  Bruno Haible  <bruno@clisp.org>
1914
1915         popen: Support for MSVC.
1916         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
1917         * lib/popen.c (popen): Provide alternate definition for native Windows.
1918         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
1919         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
1920         * modules/popen (Depends-on, configure.ac): Update condition.
1921         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
1922         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
1923         fixed.
1924
1925 2011-09-17  Bruno Haible  <bruno@clisp.org>
1926
1927         isnanl, isnand, isnanf: Work around MSVC bug.
1928         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
1929
1930 2011-09-17  Bruno Haible  <bruno@clisp.org>
1931
1932         sys_socket tests: Fix recent mistake.
1933         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
1934
1935 2011-09-17  Bruno Haible  <bruno@clisp.org>
1936
1937         putenv: Support for MSVC.
1938         * modules/putenv (Depends-on): Add environ.
1939         * lib/putenv.c (environ): Disable declaration.
1940         * lib/unistd.in.h: Update comment.
1941
1942 2011-09-17  Bruno Haible  <bruno@clisp.org>
1943
1944         math: Avoid macro redefinition warnings on MSVC.
1945         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
1946         Undefine before redefining.
1947
1948 2011-09-17  Bruno Haible  <bruno@clisp.org>
1949
1950         doc: Mention functions which are declared as macros.
1951         * doc/posix-functions/*[fl].texi: Mention that some functions are
1952         defined as macros with arguments only.
1953
1954 2011-09-17  Bruno Haible  <bruno@clisp.org>
1955
1956         Add dependencies to new dirent related modules.
1957         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
1958         * modules/fts (Depends-on): Likewise.
1959         * modules/glob (Depends-on): Likewise.
1960         * modules/savedir (Depends-on): Likewise.
1961         * modules/scandir (Depends-on): Likewise.
1962         * modules/dirent-safer (Depends-on): Add opendir, closedir.
1963         * modules/fdopendir (Depends-on): Add opendir.
1964
1965 2011-09-17  Bruno Haible  <bruno@clisp.org>
1966
1967         inet_pton: Support for MSVC on Windows Vista or newer.
1968         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
1969         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
1970         HAVE_DECL_INET_PTON is defined.
1971         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
1972         On platforms with <winsock2.h>, test whether inet_pton is declared in
1973         <ws2tcpip.h>. If so, arrange to replace it.
1974         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
1975         REPLACE_INET_PTON.
1976         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
1977         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
1978         (Depends-on, configure.ac): Update condition.
1979         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
1980
1981 2011-09-17  Bruno Haible  <bruno@clisp.org>
1982
1983         inet_ntop: Support for MSVC on Windows Vista or newer.
1984         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
1985         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
1986         HAVE_DECL_INET_NTOP is defined.
1987         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
1988         On platforms with <winsock2.h>, test whether inet_ntop is declared in
1989         <ws2tcpip.h>. If so, arrange to replace it.
1990         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
1991         REPLACE_INET_NTOP.
1992         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
1993         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
1994         (Depends-on, configure.ac): Update condition.
1995         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
1996
1997 2011-09-16  Eric Blake  <eblake@redhat.com>
1998
1999         test-fsync: yet another enhancement
2000         * tests/test-fsync.c (main): Also test behavior on read-only text
2001         file.
2002
2003 2011-09-16  Bruno Haible  <bruno@clisp.org>
2004
2005         Enhance fsync, fdatasync tests.
2006         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
2007         * tests/test-fdatasync.c (main): Likewise.
2008
2009 2011-09-16  Bruno Haible  <bruno@clisp.org>
2010
2011         Support for MSVC compiler: Ensure mode_t gets defined.
2012         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
2013         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2014         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2015         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
2016         * tests/test-fcntl-h.c: Check that mode_t is defined.
2017         * tests/test-sys_stat.c: Likewise.
2018         * tests/test-sys_types.c: Likewise.
2019         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
2020         * doc/posix-headers/sys_stat.texi: Likewise.
2021         * doc/posix-headers/sys_types.texi: Likewise.
2022
2023 2011-09-16  Bruno Haible  <bruno@clisp.org>
2024
2025         sys_stat: Support for MSVC.
2026         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
2027         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
2028         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
2029         MSVC.
2030
2031 2011-09-16  Bruno Haible  <bruno@clisp.org>
2032
2033         Support for MSVC compiler: Ensure off_t gets defined.
2034         * lib/unistd.in.h: Include <sys/types.h>.
2035         * tests/test-fcntl-h.c: Check that off_t is defined.
2036         * tests/test-sys_stat.c: Likewise.
2037         * tests/test-sys_types.c: Likewise.
2038
2039 2011-09-16  Eric Blake  <eblake@redhat.com>
2040
2041         fdatasync: port to Solaris
2042         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
2043         * modules/fdatasync (Link): Document it.
2044         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
2045
2046         fdatasync: port to MacOS X 10.7
2047         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
2048         declared.
2049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
2050         * modules/unistd (Makefile.am): Substitute it.
2051         * lib/unistd.in.h (fdatasync): Declare on MacOS.
2052         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
2053
2054         fdatasync: minor improvements
2055         * modules/fdatasync (Depends-on): Add condition for fsync.
2056         * lib/fdatasync.c (fdatasync): Add comment.
2057         * tests/test-unistd-c++.cc: Test fdatasync.
2058
2059         unistd: update refs to newer POSIX
2060         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
2061         Suggested by Bruno Haible.
2062
2063         fdatasync: new module
2064         * modules/fsync (Description): Document difference to fdatasync.
2065         * modules/fdatasync: New module.
2066         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
2067         * lib/fdatasync.c (fdatasync): Likewise.
2068         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
2069         defaults.
2070         * modules/unistd (Makefile.am): Set witnesses.
2071         * lib/unistd.in.h (fdatasync): Declare.
2072         * MODULES.html.sh: Document it.
2073         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
2074         * modules/fdatasync-tests: New test.
2075         * tests/test-fdatasync.c: Likewise.
2076
2077 2011-09-16  Eric Blake  <eblake@redhat.com>
2078
2079         test-fsync: enhance tests
2080         * modules/fsync-tests (Depends-on): Add errno, for mingw.
2081         * tests/test-fsync.c (main): Enhance test.
2082
2083 2011-09-15  Bruno Haible  <bruno@clisp.org>
2084
2085         Support for MSVC compiler: Ensure ssize_t gets defined.
2086         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
2087         * doc/posix-headers/stdio.texi: Likewise.
2088         * modules/stdio (Depends-on): Add ssize_t.
2089         * modules/sys_socket (Depends-on): Likewise.
2090         * modules/sys_types (Depends-on): Likewise.
2091         * modules/sys_uio (Depends-on): Likewise.
2092         * modules/unistd (Depends-on): Likewise.
2093         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
2094         * tests/test-sys_types.c: Check that ssize_t is defined.
2095
2096 2011-09-14  Bruno Haible  <bruno@clisp.org>
2097
2098         Avoid using #, the m4 comment starter character, near brackets.
2099         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
2100         delimiter character in sed expressions.
2101         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2102         Suggested by Eric Blake.
2103
2104         Properly quote AC_CHECK_DECLS' 4th argument.
2105         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
2106         argument.
2107         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2108         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2109         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
2110         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
2111         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
2112         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
2113         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
2114         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
2115         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
2116         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
2117         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
2118         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2119         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
2120         * m4/isinf.m4 (gl_ISINF): Likewise.
2121         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2122         * m4/readutmp.m4 (gl_READUTMP): Likewise.
2123         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2124         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2125         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2126         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2127         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
2128         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
2129         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
2130         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2131         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2132         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2133         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
2134         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2135         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2136         Reported by Eric Blake.
2137
2138         Properly quote AC_CHECK_DECL's 4th argument.
2139         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
2140         argument.
2141         * m4/argp.m4 (gl_ARGP): Likewise.
2142         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
2143         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2144         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
2145         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2146         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
2147         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
2148         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2149         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
2150         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
2151         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
2152         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
2153         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
2154         Reported by Eric Blake.
2155
2156 2011-09-14  Eric Blake  <eblake@redhat.com>
2157
2158         opendir: avoid compile warning
2159         * lib/opendir.c (includes): Always include errno.h.
2160         Reported by Tatsuro MATSUOKA.
2161
2162 2011-09-14  Jim Meyering  <meyering@redhat.com>
2163
2164         maint.mk: sc_tight_scope: propagate failure from sub-make
2165         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
2166         Reported by Martin von Gagern.
2167
2168 2011-09-13  Bruno Haible  <bruno@clisp.org>
2169
2170         tempname: Support for MSVC.
2171         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
2172         MSVC.
2173         * modules/tempname (Depends-on): Add fcntl-h.
2174
2175 2011-09-13  Bruno Haible  <bruno@clisp.org>
2176
2177         sys_time: Support for MSVC.
2178         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
2179         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
2180         include <winsock2.h>.
2181         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
2182         function declarations that collide with POSIX.
2183         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
2184         (Makefile.am): Substitute HAVE_WINSOCK2_H.
2185
2186 2011-09-13  Bruno Haible  <bruno@clisp.org>
2187
2188         stat: Support for MSVC.
2189         * lib/stat.c: Include pathmax.h.
2190         * modules/stat (Depends-on): Add pathmax.
2191
2192         pathmax: Support for native Windows.
2193         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
2194
2195 2011-09-12  Bruno Haible  <bruno@clisp.org>
2196
2197         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
2198         * lib/dirent.in.h (struct dirent): New type.
2199         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
2200         DT_WHT): New macros.
2201         (DIR): New type.
2202         (opendir, closedir): Declare only if the module 'opendir' is enabled.
2203         (readdir, rewinddir): New declarations.
2204         * lib/dirent-private.h: New file.
2205         * lib/opendir.c: New file.
2206         * lib/readdir.c: New file.
2207         * lib/rewinddir.c: New file.
2208         * lib/closedir.c: New file.
2209         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
2210         * m4/opendir.m4: New file.
2211         * m4/readdir.m4: New file.
2212         * m4/rewinddir.m4: New file.
2213         * m4/closedir.m4: New file.
2214         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
2215         REPLACE_CLOSEDIR here.
2216         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
2217         readdir, rewinddir are declared.
2218         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
2219         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
2220         HAVE_REWINDDIR, HAVE_CLOSEDIR.
2221         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
2222         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
2223         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
2224         * modules/opendir: New file.
2225         * modules/readdir: New file.
2226         * modules/rewinddir: New file.
2227         * modules/closedir: New file.
2228         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
2229         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
2230         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
2231         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
2232         * NEWS: Mention the 'fchdir' change.
2233
2234 2011-09-11  Bruno Haible  <bruno@clisp.org>
2235
2236         asm-underscore.m4: Support for MSVC.
2237         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
2238         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
2239
2240 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
2241
2242         Doc about crypt functions.
2243         * doc/posix-functions/crypt.texi: Expand range of glibc versions
2244         needing for _GNU_SOURCE to get crypt.
2245         * doc/posix-functions/encrypt.texi: Likewise.
2246         * doc/posix-functions/setkey.texi: Likewise.
2247
2248 2011-09-11  Bruno Haible  <bruno@clisp.org>
2249
2250         doc: Update regarding MSVC 9.
2251         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
2252         tested".
2253         * doc/posix-functions/*.texi: Update with info about MSVC 9.
2254         * doc/posix-headers/*.texi: Likewise.
2255         * doc/pastposix-functions/*.texi: Likewise.
2256         * doc/glibc-functions/*.texi: Likewise.
2257         * doc/glibc-headers/*.texi: Likewise.
2258
2259 2011-09-11  Bruno Haible  <bruno@clisp.org>
2260
2261         unistd et al.: Don't assume <unistd.h> exists.
2262         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
2263         does not exist.
2264         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
2265         exist. But include <stdlib.h>.
2266         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
2267         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
2268         symlink() does not exist.
2269         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
2270         include <io.h> instead.
2271         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
2272         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
2273         include <direct.h> instead.
2274         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
2275         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2276         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
2277         <io.h> instead.
2278         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
2279         correctly if the system does not have hard links.
2280         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
2281         <direct.h> instead.
2282         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
2283         it when looking for function declarations.
2284         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
2285         <direct.h> and <io.h> instead.
2286         * doc/posix-headers/unistd.texi: More details about MSVC problem.
2287
2288 2011-09-11  Bruno Haible  <bruno@clisp.org>
2289
2290         strcase: Support for MSVC.
2291         * modules/strcase (Status, Notice): Remove obsoletion mark.
2292         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
2293         * doc/posix-functions/strncasecmp.texi: Likewise.
2294
2295         strings: Don't assume <strings.h> exists.
2296         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
2297         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
2298         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
2299         * doc/posix-headers/strings.texi: Mention the MSVC problem.
2300
2301 2011-09-11  Bruno Haible  <bruno@clisp.org>
2302
2303         dirent: Don't assume <dirent.h> exists.
2304         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
2305         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
2306         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
2307         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
2308
2309 2011-09-11  Bruno Haible  <bruno@clisp.org>
2310
2311         Fix wint_t on MSVC.
2312         * lib/wchar.in.h (wint_t): On MSVC, override it.
2313         * lib/wctype.in.h (wint_t): Likewise.
2314         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
2315         MSVC.
2316         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
2317         * doc/posix-headers/wctype.texi: Likewise.
2318
2319 2011-09-11  Bruno Haible  <bruno@clisp.org>
2320
2321         sys_types: Fix typo.
2322         * lib/sys_types.in.h: Fix typo in comment.
2323         Reported by Paul Eggert.
2324
2325         Support for MSVC compiler: Ensure size_t gets defined.
2326         * modules/strings (Depends-on): Add 'sys_types'.
2327         * modules/sys_uio (Depends-on): Likewise.
2328         * lib/sys_uio.in.h: Update comment.
2329
2330         C++ tests for module 'sys_types'.
2331         * modules/sys_types-c++-tests: New file.
2332         * tests/test-sys_types-c++.cc: New file.
2333
2334         Tests for module 'sys_types'.
2335         * modules/sys_types-tests: New file.
2336         * tests/test-sys_types.c: New file.
2337
2338         New module 'sys_types'.
2339         * lib/sys_types.in.h: New file.
2340         * m4/sys_types_h.m4: New file.
2341         * modules/sys_types: New file.
2342         * doc/posix-headers/sys_types.texi: Mention the new module and the
2343         size_t problem on MSVC 9.
2344
2345 2011-09-11  Bruno Haible  <bruno@clisp.org>
2346
2347         Support for MSVC compiler: Avoid division by a literal 0.
2348         * lib/math.in.h (NAN): Define through a function call also on MSVC.
2349         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
2350         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
2351         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
2352         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
2353         * tests/infinity.h: New file.
2354         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
2355         on MSVC.
2356         * tests/test-ceilf1.c: Include infinity.h.
2357         (main): Use Infinityf.
2358         * tests/test-ceil1.c: Include infinity.h.
2359         (main): Use Infinityd.
2360         * tests/test-ceill.c: Include infinity.h.
2361         (main): Use Infinityl.
2362         * tests/test-dprintf-posix.c: Include infinity.h.
2363         (test_function): Use Infinityd.
2364         * tests/test-floorf1.c: Include infinity.h.
2365         (main): Use Infinityf.
2366         * tests/test-floor1.c: Include infinity.h.
2367         (main): Use Infinityd.
2368         * tests/test-floorl.c: Include infinity.h.
2369         (main): Use Infinityl.
2370         * tests/test-fprintf-posix.c: Include infinity.h.
2371         (test_function): Use Infinityd.
2372         * tests/test-frexp.c: Include infinity.h.
2373         (main): Use Infinityd.
2374         * tests/test-frexpl.c: Include infinity.h.
2375         (main): Use Infinityl.
2376         * tests/test-isfinite.c: Include infinity.h.
2377         (test_isfinitef): Use Infinityf.
2378         (test_isfinited): Use Infinityd.
2379         (test_isfinitel): Use Infinityl.
2380         * tests/test-isinf.c: Include infinity.h.
2381         (test_isinff): Use Infinityf.
2382         (test_isinfd): Use Infinityd.
2383         (test_isinfl): Use Infinityl.
2384         * tests/test-isnan.c: Include infinity.h.
2385         (test_float): Use Infinityf.
2386         (test_double): Use Infinityd.
2387         (test_long_double): Use Infinityl.
2388         * tests/test-isnanf.h: Include infinity.h.
2389         (main): Use Infinityf.
2390         * tests/test-isnand.h: Include infinity.h.
2391         (main): Use Infinityd.
2392         * tests/test-isnanl.h: Include infinity.h.
2393         (main): Use Infinityl.
2394         * tests/test-ldexpl.c: Include infinity.h.
2395         (main): Use Infinityl.
2396         * tests/test-printf-posix.h: Include infinity.h.
2397         (test_function): Use Infinityd.
2398         * tests/test-roundf1.c: Include infinity.h.
2399         (main): Use Infinityf.
2400         * tests/test-round1.c: Include infinity.h.
2401         (main): Use Infinityd.
2402         * tests/test-roundl.c: Include infinity.h.
2403         (main): Use Infinityl.
2404         * tests/test-signbit.c: Include infinity.h.
2405         (test_signbitf): Use Infinityf.
2406         (test_signbitd): Use Infinityd.
2407         (test_signbitl): Use Infinityl.
2408         * tests/test-snprintf-posix.h: Include infinity.h.
2409         (test_function): Use Infinityd, Infinityl.
2410         * tests/test-sprintf-posix.h: Include infinity.h.
2411         (test_function): Use Infinityd, Infinityl.
2412         * tests/test-truncf1.c: Include infinity.h.
2413         (main): Use Infinityf.
2414         * tests/test-trunc1.c: Include infinity.h.
2415         (main): Use Infinityd.
2416         * tests/test-truncl.c: Include infinity.h.
2417         (main): Use Infinityl.
2418         * tests/test-vasnprintf-posix.c: Include infinity.h.
2419         (test_function): Use Infinityd, Infinityl.
2420         * tests/test-vasprintf-posix.c: Include infinity.h.
2421         (test_function): Use Infinityd, Infinityl.
2422         * modules/ceilf-tests (Files): Add tests/infinity.h.
2423         * modules/ceil-tests (Files): Likewise.
2424         * modules/ceill-tests (Files): Likewise.
2425         * modules/dprintf-posix-tests (Files): Likewise.
2426         * modules/floorf-tests (Files): Likewise.
2427         * modules/floor-tests (Files): Likewise.
2428         * modules/floorl-tests (Files): Likewise.
2429         * modules/fprintf-posix-tests (Files): Likewise.
2430         * modules/frexp-tests (Files): Likewise.
2431         * modules/frexp-nolibm-tests (Files): Likewise.
2432         * modules/frexpl-tests (Files): Likewise.
2433         * modules/frexpl-nolibm-tests (Files): Likewise.
2434         * modules/isfinite-tests (Files): Likewise.
2435         * modules/isinf-tests (Files): Likewise.
2436         * modules/isnan-tests (Files): Likewise.
2437         * modules/isnanf-tests (Files): Likewise.
2438         * modules/isnanf-nolibm-tests (Files): Likewise.
2439         * modules/isnand-tests (Files): Likewise.
2440         * modules/isnand-nolibm-tests (Files): Likewise.
2441         * modules/isnanl-tests (Files): Likewise.
2442         * modules/isnanl-nolibm-tests (Files): Likewise.
2443         * modules/ldexpl-tests (Files): Likewise.
2444         * modules/printf-posix-tests (Files): Likewise.
2445         * modules/roundf-tests (Files): Likewise.
2446         * modules/round-tests (Files): Likewise.
2447         * modules/roundl-tests (Files): Likewise.
2448         * modules/signbit-tests (Files): Likewise.
2449         * modules/snprintf-posix-tests (Files): Likewise.
2450         * modules/sprintf-posix-tests (Files): Likewise.
2451         * modules/truncf-tests (Files): Likewise.
2452         * modules/trunc-tests (Files): Likewise.
2453         * modules/truncl-tests (Files): Likewise.
2454         * modules/vasnprintf-posix-tests (Files): Likewise.
2455         * modules/vasprintf-posix-tests (Files): Likewise.
2456         * modules/vdprintf-posix-tests (Files): Likewise.
2457         * modules/vfprintf-posix-tests (Files): Likewise.
2458         * modules/vprintf-posix-tests (Files): Likewise.
2459         * modules/vsnprintf-posix-tests (Files): Likewise.
2460         * modules/vsprintf-posix-tests (Files): Likewise.
2461         * modules/xprintf-posix-tests (Files): Likewise.
2462
2463 2011-09-11  Bruno Haible  <bruno@clisp.org>
2464
2465         Ensure pid_t gets defined.
2466         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
2467         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
2468         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2469         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2470         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
2471         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
2472         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
2473         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2474         * tests/test-fcntl-h.c: Check that pid_t is defined.
2475         * tests/test-sched.c: Likewise.
2476         * tests/test-termios.c: Likewise.
2477         * tests/test-time.c: Likewise.
2478         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
2479         * doc/posix-headers/signal.texi: Likewise.
2480         * doc/posix-headers/sys_types.texi: Likewise.
2481         * doc/posix-headers/time.texi: Likewise.
2482
2483 2011-09-11  Bruno Haible  <bruno@clisp.org>
2484
2485         acl: Fix compilation on Solaris 10 (older version).
2486         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
2487         of ACE_EVERYONE.
2488         * lib/set-mode-acl.c (qset_acl): Likewise.
2489         Reported by Christian Jullien <eligis@orange.fr>.
2490
2491 2011-09-10  Bruno Haible  <bruno@clisp.org>
2492
2493         iconv, unsetenv: Add support for MSVC compiler.
2494         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
2495         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
2496
2497 2011-09-10  Bruno Haible  <bruno@clisp.org>
2498
2499         *printf: Add support for MSVC compiler.
2500         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
2501         handles the exception caused by the %n directive. When cross-compiling,
2502         guess no on native Windows.
2503         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
2504         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
2505         emulate it through vsnprintf.
2506         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
2507         * doc/posix-functions/dprintf.texi: Update documentation regarding
2508         MSVC 9.
2509         * doc/posix-functions/fprintf.texi: Likewise.
2510         * doc/posix-functions/printf.texi: Likewise.
2511         * doc/posix-functions/snprintf.texi: Likewise.
2512         * doc/posix-functions/sprintf.texi: Likewise.
2513         * doc/posix-functions/swprintf.texi: Likewise.
2514         * doc/posix-functions/vdprintf.texi: Likewise.
2515         * doc/posix-functions/vfprintf.texi: Likewise.
2516         * doc/posix-functions/vprintf.texi: Likewise.
2517         * doc/posix-functions/vsnprintf.texi: Likewise.
2518         * doc/posix-functions/vsprintf.texi: Likewise.
2519         * doc/glibc-functions/asprintf.texi: Likewise.
2520         * doc/glibc-functions/obstack_printf.texi: Likewise.
2521         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
2522         * doc/glibc-functions/vasprintf.texi: Likewise.
2523
2524 2011-09-10  Bruno Haible  <bruno@clisp.org>
2525
2526         nocrash: Add support for native Windows.
2527         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
2528
2529 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
2530             Bruno Haible  <bruno@clisp.org>
2531
2532         absolute-header, include-next: Add support for MSVC compiler.
2533         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
2534         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
2535         directory separator in #line directives.
2536         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
2537         recognize also backslash as directory separator in #line directives.
2538
2539 2011-09-08  Jim Meyering  <meyering@redhat.com>
2540
2541         maint.mk: mark the post-release commit log with "maint: " prefix
2542         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
2543         one-line commit-log summary.
2544
2545 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
2546             Bruno Haible  <bruno@clisp.org>
2547
2548         Doc about crypt functions.
2549         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
2550         systems.
2551         * doc/posix-functions/encrypt.texi: Likewise.
2552         * doc/posix-functions/setkey.texi: Likewise.
2553
2554 2011-09-08  Simon Josefsson  <simon@josefsson.org>
2555
2556         * lib/gc.h: Fix copyright header.
2557
2558 2011-09-07  Bruno Haible  <bruno@clisp.org>
2559
2560         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
2561         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
2562         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
2563
2564 2011-09-07  Bruno Haible  <bruno@clisp.org>
2565
2566         openat: Work around compilation error with OSF/1 5.1 DTK cc.
2567         * lib/fopen.c: Use different syntax for include of <stdio.h>.
2568         * lib/freopen.c: Likewise.
2569         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
2570         * lib/lstat.c: Likewise.
2571         * lib/stat.c: Likewise.
2572         * lib/open.c: Use different syntax for include of <fcntl.h>.
2573         * lib/openat.c: Include fcntl.h again, explicitly.
2574
2575 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
2576
2577         parse-datetime: document the newly accepted format
2578         * doc/parse-datetime.texi (Combined date and time of day items):
2579         New section.
2580
2581 2011-09-06  Bruno Haible  <bruno@clisp.org>
2582
2583         acl: Fix a test failure on newer Solaris 10 with ZFS.
2584         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
2585         ENOSYS as no ACL.
2586         Reported by Jim Meyering.
2587
2588 2011-09-06  Bruno Haible  <bruno@clisp.org>
2589
2590         acl: Update for AIX >= 5.3 with NFS.
2591         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
2592         ENOSYS as no ACL.
2593
2594         acl: Fix a test failure on AIX >= 5.3 with NFS.
2595         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
2596         as no ACL.
2597
2598 2011-09-06  Bruno Haible  <bruno@clisp.org>
2599
2600         acl: Fix a test failure on IRIX 6.5 with NFS.
2601         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
2602         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
2603         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
2604         * lib/copy-acl.c (qcopy_acl): Likewise.
2605
2606 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
2607
2608         openat: port to AIX 7.1 with large files
2609         AIX 7.1 does a "#define openat open64at" if large files are in use,
2610         so we can't simply #undef openat.  Use the orig_openat trick (similar
2611         to orig_open in lib/open.c) to work around the problem.  Problem
2612         reported by Kevin Brott for GNU tar, in the thread containing
2613         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
2614         * lib/openat.c (__need_system_fcntl_h): Define first.
2615         Include <fcntl.h> and <sys/types.h> before undefining.
2616         (orig_openat) [HAVE_OPENAT]: New inline function.
2617         (openat) [HAVE_OPENAT]: Do not undef.
2618         (rpl_openat): Use orig_openat, not openat.
2619
2620 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
2621             Bruno Haible  <bruno@clisp.org>
2622
2623         acl: Avoid errors on NonStop Kernel.
2624         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
2625         ENOTSUP errors.
2626
2627 2011-09-05  Bruno Haible  <bruno@clisp.org>
2628
2629         acl: Clean up Solaris code.
2630         * lib/acl-internal.h: Remove no-op #if.
2631         * lib/file-has-acl.c: Likewise.
2632         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
2633         * lib/copy-acl.c (qcopy_acl): Likewise.
2634
2635 2011-09-05  Bruno Haible  <bruno@clisp.org>
2636
2637         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
2638         binaries built on the original Solaris 10.
2639         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
2640         trivial.
2641
2642 2011-09-05  Bruno Haible  <bruno@clisp.org>
2643
2644         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
2645         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
2646         10.
2647         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
2648         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
2649         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
2650         instead of acl_get, facl_get, acl_set, facl_set.
2651
2652 2011-09-05  Bruno Haible  <bruno@clisp.org>
2653
2654         copy-file: Try unit tests on more file systems.
2655         * tests/test-copy-file-1.sh: New file.
2656         * tests/test-copy-file-2.sh: New file.
2657         * modules/copy-file-tests (Files): Add them.
2658         (Makefile.am): Add them to TESTS.
2659
2660         acl: Try unit tests on more file systems.
2661         * tests/test-file-has-acl-1.sh: New file.
2662         * tests/test-file-has-acl-2.sh: New file.
2663         * tests/test-set-mode-acl-1.sh: New file.
2664         * tests/test-set-mode-acl-2.sh: New file.
2665         * tests/test-copy-acl-1.sh: New file.
2666         * tests/test-copy-acl-2.sh: New file.
2667         * modules/acl-tests (Files): Add them.
2668         (Makefile.am): Add them to TESTS.
2669
2670 2011-09-04  Bruno Haible  <bruno@clisp.org>
2671
2672         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
2673         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
2674         10.
2675         (OLD_ALLOW, OLD_DENY): New macros.
2676         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
2677         ACE_ACCESS_ALLOWED_ACE_TYPE.
2678         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
2679         ACE_ACCESS_DENIED_ACE_TYPE.
2680         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
2681         (NEW_ACE_EXECUTE): Fix value.
2682         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
2683         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
2684         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
2685         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
2686         NEW_ACE_SYNCHRONIZE): New macros.
2687         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
2688         instead of acl_fromtext, acl_set, facl_set.
2689         Fixes a coreutils/tests/cp/perm failure.
2690
2691 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
2692
2693         openat: test for fstatat (..., 0) bug
2694         Further testing with tar suggests that fstatat (..., 0)
2695         does not work in general, on AIX 7.1; see
2696         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
2697         So, give up entirely on AIX 7.1's fstatat, and fall back on our
2698         replacement fstatat (which is what older AIX releases were using
2699         anyway).
2700         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
2701         use is now changed to orig_fstatat.  This was probably the right
2702         thing to do anyway.
2703         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
2704         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
2705         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
2706         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
2707         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
2708         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
2709         if the bug is found.
2710
2711         openat: test for fstatat (AT_FDCWD, ..., 0) bug
2712         This tests for another fstatat bug on AIX 7.1:
2713         fstatat (AT_FDCWD, ..., 0) does not work.  See
2714         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
2715         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
2716         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
2717         (rpl_fstatat): Adjust so that it works around either (or both)
2718         bugs if present.
2719         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
2720
2721 2011-09-03  Karl Berry  <karl@gnu.org>
2722
2723         * doc/regex.texi (Character Class Operators): Avoid literal ":"
2724         in index entries.
2725
2726 2011-09-02  Bruno Haible  <bruno@clisp.org>
2727
2728         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
2729         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
2730         values of AR, ARFLAGS, RANLIB.
2731         Reported by John W. Eaton <jwe@gnu.org> for Octave.
2732
2733 2011-09-02  Bruno Haible  <bruno@clisp.org>
2734
2735         Find 'ar' program that fits with --host argument.
2736         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
2737
2738 2011-09-02  Bruno Haible  <bruno@clisp.org>
2739
2740         tests: init.sh: Support any non-GNU diff.
2741         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
2742         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
2743         Solaris 8.
2744
2745 2011-09-02  Bruno Haible  <bruno@clisp.org>
2746
2747         tests: init.sh: work also with any non-GNU diff that supports -u
2748         * tests/init.sh: Relax check for diff -u support.
2749         Rather than checking for GNU diff via --version, simply check
2750         for support for -u itself.  Useful at least on OpenBSD 4.9,
2751         AIX 7.1, IRIX 6.5, and Solaris 10.
2752
2753 2011-09-01  Bruno Haible  <bruno@clisp.org>
2754
2755         strtoimax, strtoumax: Document problem on HP-UX 11.
2756         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
2757         * doc/posix-functions/strtoumax.texi: Likewise.
2758
2759 2011-09-01  Bruno Haible  <bruno@clisp.org>
2760
2761         strtoumax: Avoid link error on OSF/1 with DTK cc.
2762         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
2763         defined as a function.
2764         * modules/strtoumax (Depends-on, configure.ac): Test only whether
2765         strtoumax is defined, not whether it is declared.
2766
2767 2011-09-01  Bruno Haible  <bruno@clisp.org>
2768
2769         strtoimax: Avoid link error on OSF/1 with DTK cc.
2770         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
2771         defined as a function.
2772         * modules/strtoimax (Depends-on, configure.ac): Test only whether
2773         strtoimax is defined, not whether it is declared.
2774
2775 2011-09-01  Bruno Haible  <bruno@clisp.org>
2776
2777         imaxdiv: Avoid link error on OSF/1 with DTK cc.
2778         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
2779         as a function.
2780         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
2781         whether it is declared.
2782
2783 2011-09-01  Bruno Haible  <bruno@clisp.org>
2784
2785         imaxabs: Avoid link error on OSF/1 with DTK cc.
2786         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
2787         as a function.
2788         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
2789         whether it is declared.
2790
2791 2011-09-01  Bruno Haible  <bruno@clisp.org>
2792
2793         Tests for module 'strtoumax'.
2794         * modules/strtoumax-tests: New file.
2795         * tests/test-strtoumax.c: New file.
2796
2797         Tests for module 'strtoimax'.
2798         * modules/strtoimax-tests: New file.
2799         * tests/test-strtoimax.c: New file.
2800
2801         Tests for module 'imaxdiv'.
2802         * modules/imaxdiv-tests: New file.
2803         * tests/test-imaxdiv.c: New file.
2804
2805         Tests for module 'imaxabs'.
2806         * modules/imaxabs-tests: New file.
2807         * tests/test-imaxabs.c: New file.
2808
2809 2011-09-01  Bruno Haible  <bruno@clisp.org>
2810
2811         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
2812         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
2813         pthread_create.
2814
2815 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2816
2817         openat: work around AIX 7.1 fstatat issue
2818         This should fix the problem that was not properly fixed
2819         in the previous change, dated 2011-08-30.
2820         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
2821         __need_system_stat_h defined.
2822         (orig_fstatat) [HAVE_FSTATAT]: New function.
2823         (rpl_fstatat): Go back to the old way of doing things,
2824         except call orig_fstatat instead of fstatat.
2825         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
2826         Remove unnecessary check whether fstatat fills in st_size etc.
2827
2828 2011-09-01  Bruno Haible  <bruno@clisp.org>
2829
2830         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
2831         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
2832         just include the system's header.
2833
2834 2011-08-31  Jim Meyering  <meyering@redhat.com>
2835
2836         tests: avoid spurious assertion failure in test-float.c on ppc64
2837         * tests/test-float.c (test_long_double): Comment out an assertion,
2838         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
2839         with gcc-4.4.4.
2840
2841         maint: indent with spaces, not TABs
2842         I need to get in the habit of running gnulib's "make check".
2843         Both of these would have been caught.
2844         * m4/largefile.m4: Indent with spaces, not TABs.
2845         * lib/parse-datetime.y (iso_8601_time): Likewise.
2846         Spotted by Pádraig Brady.
2847
2848         test-parse-datetime.c: accommodate a relatively strict gcc warning
2849         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
2850         to avoid a warning from gcc's -Werror=missing-declarations.
2851         Insert a few spaces-before-funcall-parenthesis.
2852
2853 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
2854
2855         parse-datetime: accept ISO 8601 date and time rep with "T" separator
2856         The parser now accepts ISO 8601 date-time strings with "T" as the
2857         separator.  It has long parsed dates like "2004-02-29 16:21:42"
2858         with a space between the date and time strings.  Now it also parses
2859         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
2860         variants like "2004-02-29T16:21:42.333-07:00"
2861         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
2862         of day representation using the 'T' separator character.
2863         * doc/parse-datetime.texi (General date syntax): replace use of
2864         deprecated --iso-8601 option with --rfc-3339 in example of date
2865         command output formats that can be parsed.
2866         * tests/test-parse-datetime.c (tm_diff): New function, taken from
2867         lib/parse-datetime.y.
2868         (gmt_offset): New function.
2869         (main): Add additional test cases to validate ISO8601 extended
2870         date and time of day parsing.
2871
2872 2011-08-31  Bruno Haible  <bruno@clisp.org>
2873
2874         freopen: Documentation.
2875         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
2876         name.
2877         Reported by Claudio Bley <claudio.bley@gmail.com>.
2878
2879 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
2880
2881         freopen: Don't crash if the filename argument is NULL.
2882         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
2883         NULL.
2884
2885 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
2886
2887         openat: work around AIX 7.1 fstatat bug
2888         Problem reported by Kevin Brott for GNU tar, in the thread containing
2889         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
2890         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
2891         FSTATAT_ST_SIZE_ETC_BROKEN.
2892         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
2893         rpl_fstatat.
2894         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
2895         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
2896         AC_CHECK_FUNCS_ONCE for fstatat.
2897         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
2898         fchmodat, mkdirat, openat and unlinkat.
2899
2900 2011-08-30  Bruno Haible  <bruno@clisp.org>
2901
2902         Avoid endless recursions if config.h includes some header files.
2903         * lib/fopen.c (__need_FILE): Define already before including config.h.
2904         * lib/freopen.c (__need_FILE): Likewise.
2905         * lib/open.c (__need_system_fcntl_h): Likewise.
2906         * lib/stat.c (__need_system_sys_stat_h): Likewise.
2907         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
2908         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2909
2910 2011-08-25  Karl Berry  <karl@gnu.org>
2911
2912         * config/srclist.txt (ylwrap): new try.
2913         * build-aux/ylwrap: new file.
2914
2915 2011-08-23  Bruno Haible  <bruno@clisp.org>
2916
2917         tmpdir: Use a good default directory on native Windows.
2918         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
2919         (P_tmpdir): Default to _P_tmpdir on native Windows.
2920         (path_search): On native Windows, try the value returned by GetTempPath
2921         before trying P_tmpdir.
2922         * modules/tmpdir (Depends-on): Add pathmax.
2923         Suggested by John Darrington <john@darrington.wattle.id.au>.
2924
2925 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
2926
2927         doc: fix typo in README-release
2928         * top/README-release: Capitalize first word of a sentence.
2929
2930 2011-08-19  Jim Meyering  <meyering@redhat.com>
2931
2932         fts: do not exhaust memory when processing million-entry directories
2933         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
2934         directory would require about 256*N bytes of memory.  Thus, it was
2935         easy to construct a directory too large to be processed by any of
2936         those tools.  With this change, fts' maximum memory utilization is
2937         now limited to around 30MB.
2938         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
2939         (fts_read): When we've processed the final entry (i.e., when
2940         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
2941         using the parent entry to read any remaining entries.  Dispatch
2942         depending on what fts_build returns:
2943         - NULL+stop, aka failure: stop
2944         - NULL otherwise: move up in the dir hierarchy
2945         - non-NULL: handle this new entry
2946         (fts_build): Declare and use new local, continue_readdir.
2947         Prepare to be called from fts_read, when the entries
2948         from a partially-read directory have just been exhausted.
2949         In that case, we'll skip the opendir and instead use the parent's
2950         fts_dirp and derive dir_fd from that.
2951         Finally, in the readdir loop, if we read max_entries entries,
2952         exit the loop ensuring *not* to call closedir.  This is required
2953         so that fts_dirp can be reused on a subsequent call.
2954         Prompted by Ben England's report of memory exhaustion in find
2955         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
2956
2957         maint: fts: move decl of `dp' down into while loop; split a long line
2958         * lib/fts.c (fts_build): No semantic change.
2959
2960         fts: add/use new struct member, fts_dirp
2961         We are about to use this to manage any directory with
2962         too many entries to read all of them into memory at once.
2963         To do that, we'll need to save the DIR* pointer in each
2964         affected FTSENT struct.
2965         * lib/fts_.h: Include <dirent.h>.
2966         (struct FTSENT) [fts_dirp]: New member.
2967         * lib/fts.c (closedir_and_clear): Define.
2968         Use it in place of closedir so that we are sure to
2969         clear the new fts_dirp member when done with it.
2970         (fts_alloc): Initialize the new member.
2971         (fts_lfree): Free, if needed.
2972
2973         maint: fts: give __opendir2 a new parameter and rename
2974         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
2975         than surreptitiously using sole caller's "dir_fd".
2976         (fts_opendir): Rename from __opendir2.
2977
2978         maint: fts.c: remove __opendir2's now-unused parameter, oflag
2979         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
2980
2981         maint: fts.c: correct off-by-one indentation
2982         * lib/fts.c (fts_build): Correct indentation, change style
2983         of a couple of block comments, and bracing style.
2984
2985         maint: fts.c: move __opendir2 #define "up" out of function body
2986         * lib/fts.c (__opendir2): Move "up".  No semantic change.
2987
2988         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
2989         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
2990         out for a long time and besides was useful only on BSD systems.
2991
2992 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
2993
2994         regex: port to Stratus OpenVOS
2995         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
2996         define to empty, rather than attempting nonportable optimizations.
2997         Problem reported by Paul Green in:
2998         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
2999         and fix suggested by Eric Blake in:
3000         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
3001
3002 2011-08-17  Eric Blake  <eblake@redhat.com>
3003
3004         getcwd: fix test failures on mingw
3005         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
3006         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
3007         test if long directory cannot be created, and allow mingw errno.
3008
3009         getcwd-lgpl: fix m4 to match relaxed test for BSD
3010         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
3011         (gl_FUNC_GETCWD_SIGNATURE): New macro.
3012         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
3013         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
3014         signature problem.
3015
3016         getcwd: fix compilation on mingw64
3017         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
3018         getcwd.
3019         Reported by Marc-André Lureau.
3020
3021         pipe2: silence compiler warning
3022         * lib/pipe2.c (pipe2): Hide label if it is not used.
3023
3024 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
3025
3026         relocatable-prog: fix link error
3027         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
3028         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
3029         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
3030         into modules/relocatable-lib without noticing that
3031         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
3032         also needs to build relocatable.c.
3033
3034 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
3035
3036         getaddrinfo: fix sh typo in gai_strerrorA decl checking
3037         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
3038         shell code: it contained a 'break' that was not in a loop.
3039         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
3040         via a shell-language loop; this may have been true in old Autoconf
3041         versions, but it's not true in Autoconf 2.68.  I found this bug
3042         when testing coreutils git on Solaris 8, whose shell complains
3043         about the syntax error.
3044
3045 2011-08-12  Simon Josefsson  <simon@josefsson.org>
3046
3047         * lib/base64.c: Fix comment to reference RFC 4648.
3048         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
3049         <gvtulder@gmail.com>.
3050
3051 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
3052
3053         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
3054
3055         po/Makefile.in.in: fix make -q problem
3056         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
3057         rule, since there's no file named 'check-macro-version' and its
3058         use as a file breaks make -q.
3059         (all): Don't depend on check-macro-version.
3060         (CHECK_MACRO_VERSION): New macro.
3061         (stamp-po): Use it.
3062
3063         configmake: fix make -q problem
3064         * modules/configmake (configmake.h): Update configmake.h's time stamp
3065         even if the file does not change.  Otherwise, 'make -q' fails.
3066         Problem reported by Simon Josefsson in
3067         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
3068
3069 2011-08-11  Jim Meyering  <meyering@redhat.com>
3070
3071         git-version-gen: correct the advice in a comment
3072         * build-aux/git-version-gen: Correct comment.
3073         Don't recommend to list .tarball-version in .gitignore.
3074
3075 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3076
3077         base64: fix off-by-one buffer size bug
3078         Problem and (trivial) fix reported by Gijs van Tulder in
3079         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
3080         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
3081         * tests/test-base64.c (main): Catch the bug.
3082
3083 2011-08-10  Eric Blake  <eblake@redhat.com>
3084
3085         closein: correct comments
3086         * lib/closein.c (close_stdin): Improve comments.
3087
3088 2011-08-09  Bruno Haible  <bruno@clisp.org>
3089
3090         More tests for 'fseeko'.
3091         * tests/test-fseeko3.c: New file, from Eric Blake.
3092         * tests/test-fseeko3.sh: New file.
3093         * modules/fseeko-tests (Files): Add them.
3094         (TESTS): Add test-fseeko3.sh.
3095         (check_PROGRAMS): Add test-fseeko3.
3096
3097 2011-08-09  Eric Blake  <eblake@redhat.com>
3098
3099         fseeko: remove unneeded hack
3100         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
3101
3102         fseeko: fix bug on glibc
3103         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
3104         Reported by John W. Eaton.
3105
3106 2011-08-08  Bruno Haible  <bruno@clisp.org>
3107
3108         unictype/base: Fix interoperability with preinstalled libunistring.
3109         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
3110         Reported by Simon Josefsson.
3111
3112 2011-08-08  Bruno Haible  <bruno@clisp.org>
3113
3114         iswblank: Detect declaration correctly.
3115         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
3116         AC_CHECK_DECLS invocation.
3117
3118 2011-08-08  Bruno Haible  <bruno@clisp.org>
3119
3120         tcgetsid: Detect declaration correctly.
3121         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
3122         AC_CHECK_DECLS invocation.
3123         Reported by Simon Josefsson.
3124
3125 2011-08-08  Eric Blake  <eblake@redhat.com>
3126
3127         largefile: fix typo that regressed large file support
3128         * modules/largefile (configure.ac-early): Fix section name.
3129
3130 2011-08-06  Karl Berry  <karl@gnu.org>
3131
3132         * MODULES.html.sh (func_all_files): _Noreturn is no longer
3133         a separate module.
3134
3135 2011-08-05  Simon Josefsson  <simon@josefsson.org>
3136
3137         openat: Fix warnings and commens when building unlinkat.c on Hurd.
3138         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
3139         get prototype for free.
3140
3141 2011-08-04  Bruno Haible  <bruno@clisp.org>
3142
3143         Tests for module 'pathmax'.
3144         * modules/pathmax-tests: New file.
3145         * tests/test-pathmax.c: New file.
3146
3147         canonicalize-lgpl: Support larger filenames on the Hurd.
3148         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
3149         Reported by Paul Eggert.
3150
3151         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
3152         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
3153         * lib/chdir-long.h: Include pathmax.h.
3154         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
3155         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
3156         (PATH_MAX): Remove code that is done by pathmax.h.
3157         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
3158         * lib/tmpfile.c: Add a comment.
3159         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
3160         * modules/chdir-long (Depends-on): Add pathmax.
3161         * modules/getcwd (Depends-on): Add pathmax.
3162         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
3163         is not defined.
3164         * doc/posix-headers/limits.texi: Mention the pathmax module.
3165         * NEWS: Mention the change.
3166
3167 2011-08-02  Bruno Haible  <bruno@clisp.org>
3168
3169         pthread_sigmask: Actually use results of gl_THREADLIB.
3170         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
3171         gl_THREADLIB, not gl_[]THREADLIB.
3172         Reported by Eric Blake.
3173
3174 2011-08-02  Jim Meyering  <meyering@redhat.com>
3175
3176         maint.mk: relax the default _gl_TS_function_match regexp
3177         * top/maint.mk (_gl_TS_function_match): Don't require at least one
3178         space between function name and "(" in an "extern" declaration.
3179         That would fail to match a decl with no space there: extern void foo();
3180
3181 2011-07-31  Iain Nicol  <iain@thenicols.net>
3182
3183         git-version-gen: document that EXTRA_DIST must include .version
3184         * build-aux/git-version-gen: In the how-to-use comment, document
3185         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
3186         will fail when run from an unpacked distribution tarball.
3187
3188 2011-08-01  Bruno Haible  <bruno@clisp.org>
3189
3190         wctype-h: Fix last change.
3191         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
3192         REPLACE_TOWLOWER to 0.
3193         Reported by Sam Steingold <sds@gnu.org>.
3194
3195 2011-07-31  Bruno Haible  <bruno@clisp.org>
3196
3197         frexpl: Update autoconf test.
3198         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
3199         according to changes of 2011-06-20.
3200
3201 2011-07-31  Bruno Haible  <bruno@clisp.org>
3202
3203         sys_utsname: Add support for Minix.
3204         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
3205         <sys/utsname.h>.
3206         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3207         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
3208
3209 2011-07-31  Bruno Haible  <bruno@clisp.org>
3210
3211         strings: Add support for Minix.
3212         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
3213         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
3214         * doc/posix-headers/strings.texi: Document the Minix problem.
3215
3216 2011-07-31  Bruno Haible  <bruno@clisp.org>
3217
3218         wctype-h: Add support for Minix.
3219         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
3220         REPLACE_TOWLOWER.
3221         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
3222         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
3223         REPLACE_ISWCNTRL.
3224
3225 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
3226
3227         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
3228         This is a performance improvement for 64-bit hosts: it causes the
3229         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
3230
3231 2011-07-31  Bruno Haible  <bruno@clisp.org>
3232
3233         stdioext: Add support for Minix.
3234         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
3235         * lib/fpurge.c (fpurge): Likewise.
3236         * lib/freadahead.c (freadahead): Likewise.
3237         * lib/freadable.c (freadable): Likewise.
3238         * lib/freading.c (freading): Likewise.
3239         * lib/freadptr.c (freadptr): Likewise.
3240         * lib/freadseek.c (freadptrinc): Likewise.
3241         * lib/fseeko.c (rpl_fseeko): Likewise.
3242         * lib/fseterr.c (fseterr): Likewise.
3243         * lib/fwritable.c (fwritable): Likewise.
3244         * lib/fwriting.c (fwriting): Likewise.
3245         * lib/fflush.c (clear_ungetc_buffer): Update comment.
3246         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
3247
3248 2011-07-31  Bruno Haible  <bruno@clisp.org>
3249
3250         errno: Port to Minix.
3251         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
3252         ECONNABORTED are defined.
3253         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
3254         GNULIB_defined_ECONNABORTED): New macros.
3255         * lib/strerror-override.h (strerror_override): Test also
3256         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
3257         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
3258         ECONNABORTED.
3259         * doc/posix-headers/errno.texi: Mention the Minix problem.
3260
3261 2011-07-31  Bruno Haible  <bruno@clisp.org>
3262
3263         Work around declaration collisions on Minix.
3264         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
3265         defined, set REPLACE_MBSINIT.
3266         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
3267         defined, set REPLACE_MBRTOWC.
3268         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
3269         set REPLACE_MBRLEN.
3270         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
3271         defined, set REPLACE_MBSRTOWCS.
3272         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
3273         defined, set REPLACE_WCRTOMB.
3274         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
3275         defined, set REPLACE_WCSRTOMBS.
3276
3277 2011-07-31  Bruno Haible  <bruno@clisp.org>
3278
3279         Add support for Minix with ACK compiler.
3280         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
3281         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
3282         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
3283
3284 2011-07-31  Bruno Haible  <bruno@clisp.org>
3285
3286         Documentation about Minix.
3287         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
3288         * doc/glibc-headers/*.texi: Likewise.
3289         * doc/posix-functions/*.texi: Likewise.
3290         * doc/glibc-functions/*.texi: Likewise.
3291
3292 2011-07-31  Bruno Haible  <bruno@clisp.org>
3293
3294         snippet/warn-on-use: Fix indentation.
3295         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
3296
3297 2011-07-25  Jim Meyering  <meyering@redhat.com>
3298
3299         tests: test-update-copyright.sh: remove unnecessary "rm" commands
3300         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
3301         commands.
3302
3303 2011-07-27  Jim Meyering  <meyering@redhat.com>
3304
3305         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
3306         * top/maint.mk (gl_extract_significant_defines_): Now that
3307         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
3308         gnulib/lib/signal.in.h, and now that we recommend to
3309         define-if-undefined those two symbols in application code,
3310         we must filter them out of the "significant" list.
3311         This avoids a "make syntax-check" failure in coreutils.
3312
3313 2011-07-26  Eric Blake  <eblake@redhat.com>
3314
3315         warnings: add comments about previous patch
3316         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
3317         * m4/include_next.m4: Likewise.
3318         * m4/warn-on-use.m4: Likewise.
3319         * m4/warnings.m4: Likewise, and simplify use.
3320         Suggested by Stefano Lattarini.
3321
3322         include-next, warnings: support older autoconf
3323         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
3324         AS_VAR_PUSHDEF in a way that works with older autoconf.
3325         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
3326         Reported by Daniel P. Berrange.
3327
3328 2011-07-25  Bruno Haible  <bruno@clisp.org>
3329
3330         fseek, ftell: Fix doc.
3331         * doc/posix-functions/fseek.texi: Reword statement about
3332         AC_SYS_LARGEFILE.
3333         * doc/posix-functions/ftell.texi: Likewise.
3334
3335 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
3336             Bruno Haible  <bruno@clisp.org>
3337
3338         Add dependencies to the 'largefile' module.
3339         * modules/fopen (Depends-on): Add 'largefile'.
3340         * modules/freopen (Depends-on): Likewise.
3341         * modules/fseeko (Depends-on): Likewise.
3342         * modules/ftello (Depends-on): Likewise.
3343         * modules/glob (Depends-on): Likewise.
3344         * modules/lseek (Depends-on): Likewise.
3345         * modules/lstat (Depends-on): Likewise.
3346         * modules/mkostemp (Depends-on): Likewise.
3347         * modules/mkostemps (Depends-on): Likewise.
3348         * modules/mkstemp (Depends-on): Likewise.
3349         * modules/mkstemps (Depends-on): Likewise.
3350         * modules/open (Depends-on): Likewise.
3351         * modules/openat (Depends-on): Likewise.
3352         * modules/pread (Depends-on): Likewise.
3353         * modules/pwrite (Depends-on): Likewise.
3354         * modules/scandir (Depends-on): Likewise.
3355         * modules/stat (Depends-on): Likewise.
3356         * modules/tmpfile (Depends-on): Likewise.
3357         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
3358         since the containing module now depends on the largefile module.
3359         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
3360         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
3361         off_t is fixed by gnulib.
3362         * doc/posix-functions/freopen.texi: Likewise.
3363         * doc/posix-functions/fseeko.texi: Likewise.
3364         * doc/posix-functions/fstatat.texi: Likewise.
3365         * doc/posix-functions/ftello.texi: Likewise.
3366         * doc/posix-functions/glob.texi: Likewise.
3367         * doc/posix-functions/lseek.texi: Likewise.
3368         * doc/posix-functions/lstat.texi: Likewise.
3369         * doc/posix-functions/mkstemp.texi: Likewise.
3370         * doc/posix-functions/open.texi: Likewise.
3371         * doc/posix-functions/openat.texi: Likewise.
3372         * doc/posix-functions/pread.texi: Likewise.
3373         * doc/posix-functions/pwrite.texi: Likewise.
3374         * doc/posix-functions/scandir.texi: Likewise.
3375         * doc/posix-functions/stat.texi: Likewise.
3376         * doc/posix-functions/tmpfile.texi: Likewise.
3377         * doc/glibc-functions/mkostemp.texi: Likewise.
3378         * doc/glibc-functions/mkostemps.texi: Likewise.
3379         * doc/glibc-functions/mkstemps.texi: Likewise.
3380
3381 2011-07-25  Bruno Haible  <bruno@clisp.org>
3382
3383         fcntl: Move AC_LIBOBJ invocation to module description.
3384         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
3385         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
3386
3387         fcntl: Remove call-in from fchdir.m4.
3388         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
3389         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
3390
3391         dup3: Remove potential call-in from fchdir.m4.
3392         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
3393         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
3394
3395         dup2: Move AC_LIBOBJ invocation to module description.
3396         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
3397         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
3398         Don't invoke AC_LIBOBJ.
3399         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
3400
3401         dup2: Remove call-in from fchdir.m4.
3402         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
3403         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
3404
3405         fclose: Move AC_LIBOBJ invocation to module description.
3406         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
3407         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
3408         to 1.
3409         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
3410
3411         fclose: Remove call-in from close.m4.
3412         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
3413         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
3414
3415         close: Move AC_LIBOBJ invocation to module description.
3416         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
3417         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
3418         1.
3419         * modules/close (configure.ac): Invoke AC_LIBOBJ.
3420
3421         close: Remove call-in from fchdir.m4.
3422         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
3423         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
3424
3425         open: Move AC_LIBOBJ invocation to module description.
3426         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
3427         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
3428         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
3429
3430         open: Remove call-in from fchdir.m4.
3431         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
3432         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
3433
3434         fchdir: Start to remove gl_REPLACE_* idiom.
3435         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
3436         (gl_FUNC_FCHDIR): Invoke it.
3437
3438 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
3439
3440         * lib/ftell.c (ftell): Comment out cast.
3441
3442         close: use gl_REPLACE_FCLOSE only if defined
3443         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
3444         is defined.  The close module doesn't depend on the fclose module
3445         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
3446         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
3447         I reproduced the problem with "./gnulib-tool --test close sys_socket".
3448
3449 2011-07-24  Jim Meyering  <meyering@redhat.com>
3450
3451         test-select.h: avoid warning when using gcc's -Wmissing-declarations
3452         * tests/test-select.h (test_function): Declare as "static".
3453
3454 2011-07-24  Bruno Haible  <bruno@clisp.org>
3455
3456         doc: Mention the effects of AC_SYS_LARGEFILE.
3457         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
3458         on this function.
3459         * doc/posix-functions/aio_error.texi: Likewise.
3460         * doc/posix-functions/aio_fsync.texi: Likewise.
3461         * doc/posix-functions/aio_read.texi: Likewise.
3462         * doc/posix-functions/aio_return.texi: Likewise.
3463         * doc/posix-functions/aio_suspend.texi: Likewise.
3464         * doc/posix-functions/aio_write.texi: Likewise.
3465         * doc/posix-functions/fgetpos.texi: Likewise.
3466         * doc/posix-functions/fopen.texi: Likewise.
3467         * doc/posix-functions/freopen.texi: Likewise.
3468         * doc/posix-functions/fsetpos.texi: Likewise.
3469         * doc/posix-functions/fstatvfs.texi: Likewise.
3470         * doc/posix-functions/ftruncate.texi: Likewise.
3471         * doc/posix-functions/ftw.texi: Likewise.
3472         * doc/posix-functions/getrlimit.texi: Likewise.
3473         * doc/posix-functions/glob.texi: Likewise.
3474         * doc/posix-functions/lio_listio.texi: Likewise.
3475         * doc/posix-functions/lockf.texi: Likewise.
3476         * doc/posix-functions/mkstemp.texi: Likewise.
3477         * doc/posix-functions/mmap.texi: Likewise.
3478         * doc/posix-functions/nftw.texi: Likewise.
3479         * doc/posix-functions/openat.texi: Likewise.
3480         * doc/posix-functions/opendir.texi: Likewise.
3481         * doc/posix-functions/posix_fadvise.texi: Likewise.
3482         * doc/posix-functions/posix_fallocate.texi: Likewise.
3483         * doc/posix-functions/pread.texi: Likewise.
3484         * doc/posix-functions/pwrite.texi: Likewise.
3485         * doc/posix-functions/readdir.texi: Likewise.
3486         * doc/posix-functions/readdir_r.texi: Likewise.
3487         * doc/posix-functions/rewinddir.texi: Likewise.
3488         * doc/posix-functions/scandir.texi: Likewise.
3489         * doc/posix-functions/seekdir.texi: Likewise.
3490         * doc/posix-functions/setrlimit.texi: Likewise.
3491         * doc/posix-functions/statvfs.texi: Likewise.
3492         * doc/posix-functions/telldir.texi: Likewise.
3493         * doc/posix-functions/tmpfile.texi: Likewise.
3494         * doc/posix-functions/truncate.texi: Likewise.
3495         * doc/glibc-functions/fallocate.texi: Likewise.
3496         * doc/glibc-functions/fstatfs.texi: Likewise.
3497         * doc/glibc-functions/fts_children.texi: Likewise.
3498         * doc/glibc-functions/fts_read.texi: Likewise.
3499         * doc/glibc-functions/getdirentries.texi: Likewise.
3500         * doc/glibc-functions/mkostemp.texi: Likewise.
3501         * doc/glibc-functions/mkostemps.texi: Likewise.
3502         * doc/glibc-functions/mkstemps.texi: Likewise.
3503         * doc/glibc-functions/preadv.texi: Likewise.
3504         * doc/glibc-functions/pwritev.texi: Likewise.
3505         * doc/glibc-functions/sendfile.texi: Likewise.
3506         * doc/glibc-functions/statfs.texi: Likewise.
3507
3508 2011-07-24  Bruno Haible  <bruno@clisp.org>
3509
3510         doc: Fix typo.
3511         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
3512
3513 2011-07-24  Bruno Haible  <bruno@clisp.org>
3514
3515         doc: Mention fsusage.
3516         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
3517
3518 2011-07-24  Bruno Haible  <bruno@clisp.org>
3519
3520         doc: Mention new glibc headers and functions.
3521         * doc/glibc-headers/gshadow.texi: New file.
3522         * doc/glibc-functions/endsgent.texi: New file.
3523         * doc/glibc-functions/fgetsgent.texi: New file.
3524         * doc/glibc-functions/fgetsgent_r.texi: New file.
3525         * doc/glibc-functions/getsgent.texi: New file.
3526         * doc/glibc-functions/getsgent_r.texi: New file.
3527         * doc/glibc-functions/getsgnam.texi: New file.
3528         * doc/glibc-functions/getsgnam_r.texi: New file.
3529         * doc/glibc-functions/putsgent.texi: New file.
3530         * doc/glibc-functions/setsgent.texi: New file.
3531         * doc/glibc-functions/sgetsgent.texi: New file.
3532         * doc/glibc-functions/sgetsgent_r.texi: New file.
3533         * doc/glibc-functions/malloc_info.texi: New file.
3534         * doc/glibc-functions/preadv.texi: New file.
3535         * doc/glibc-functions/pwritev.texi: New file.
3536         * doc/glibc-functions/register_printf_modifier.texi: New file.
3537         * doc/glibc-functions/register_printf_specifier.texi: New file.
3538         * doc/glibc-functions/register_printf_type.texi: New file.
3539         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
3540         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
3541         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
3542         * doc/glibc-functions/pthread_getname_np.texi: New file.
3543         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
3544         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
3545         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
3546         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
3547         * doc/glibc-functions/pthread_setname_np.texi: New file.
3548         * doc/glibc-functions/pthread_sigqueue.texi: New file.
3549         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
3550         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
3551         * doc/glibc-functions/qsort_r.texi: New file.
3552         * doc/glibc-functions/quick_exit.texi: New file.
3553         * doc/glibc-functions/syncfs.texi: New file.
3554         * doc/gnulib.texi: Include them.
3555         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
3556         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
3557         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
3558         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
3559         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
3560         * doc/glibc-functions/execvpe.texi: Likewise.
3561
3562 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
3563
3564         ftell: don't include <unistd.h>
3565         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
3566         guaranteed to define off_t, and the ftell module depends on the
3567         stdio module.
3568
3569         ftell: do not assume wraparound signed arithmetic
3570         * lib/ftell.c: Include <limits.h>.
3571         (ftell): Don't assume wraparound signed arithmetic.
3572
3573 2011-07-24  Bruno Haible  <bruno@clisp.org>
3574
3575         close: No longer depend on module 'fclose'.
3576         * modules/close (Depends-on): Remove fclose.
3577         * NEWS: Mention the change.
3578         Suggested by Sam Steingold <sds@gnu.org>.
3579
3580 2011-07-24  Bruno Haible  <bruno@clisp.org>
3581
3582         fsusage: Enable large volume support on AIX >= 5.2.
3583         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
3584         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
3585         instead of STAT_STATVFS.
3586         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
3587
3588         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
3589         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
3590         f_blocks field only on MacOS X.
3591
3592         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
3593         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
3594         * modules/fsusage (Depends-on): Add largefile.
3595
3596 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
3597
3598         * README: Modernize discussion of signed integers.
3599         Assuming overflow wraparound is no longer safe.
3600         Mention ones' complement and signed magnitude.
3601
3602 2011-07-22  Bruno Haible  <bruno@clisp.org>
3603
3604         select tests, pselect tests: Refactor.
3605         * tests/test-select.h: New file, extracted from tests/test-select.c.
3606         (select_fn): New type.
3607         (test, do_select, do_select_nowait, do_select_wait, test_tty,
3608         test_connect_first, test_accept_first, test_pair, test_socket_pair,
3609         test_pipe): Add my_select argument.
3610         (test_function): Renamed from main. Add my_select argument.
3611         * tests/test-select.c: Move most code to tests/test-select.h. Include
3612         test-select.h.
3613         * modules/select-tests (Files): Add tests/test-select.h.
3614         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
3615         (my_select, main): New functions.
3616         * modules/pselect-tests (Files): Add tests/test-select.h,
3617         tests/macros.h, tests/signature.h.
3618         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
3619         (configure.ac): Check for <sys/wait.h>.
3620
3621 2011-07-22  Bruno Haible  <bruno@clisp.org>
3622
3623         sys_select tests: Check the signature of FD_*.
3624         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
3625         signature tests from here...
3626         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
3627         here.
3628         * modules/sys_select-tests (Files): Add tests/signature.h.
3629
3630 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
3631
3632         largefile: new module, replacing large-inode
3633         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
3634         * MODULES.html.sh: Add largefile, remove large-inode.
3635         * modules/largefile, m4/largefile.m4: New files.
3636         * modules/large-inode, m4/large-inode.m4: Remove.
3637
3638         fsusage: port to MacOS X 10.7 with 4 TiB file systems
3639         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
3640         implementations that use only 32 bits to count blocks.
3641         On typical hosts with 1024-byte blocks, this fails with file
3642         systems as small as 4 TiB.  Problem reported by Herb Wartens
3643         <http://debbugs.gnu.org/9140> and this should also fix a similar
3644         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
3645
3646         large-inode: New module
3647         * MODULES.html.sh: Add it.
3648         * modules/large-inode, m4/large-inode.m4: New files.
3649
3650         extensions: Enable extensions on MacOS X 10.5 and later.
3651         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
3652
3653 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
3654
3655         file-has-acl: use acl_extended_file_nofollow if available
3656         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
3657         (acl_extended_file): New macro.
3658         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
3659         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
3660
3661 2011-07-21  Bruno Haible  <bruno@clisp.org>
3662
3663         Declare system functions in a way that works with C++.
3664         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
3665         declare fdopendir as extern "C".
3666         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
3667         declare frexpl as extern "C".
3668         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
3669         declare gai_strerror as extern "C".
3670         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
3671         programs, declare gai_strerror as extern "C".
3672         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
3673         declare getlogin_r as extern "C".
3674         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
3675         as extern "C".
3676         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
3677         declare ldexpl as extern "C".
3678         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
3679         as extern "C".
3680         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
3681         program, declare getmntinfo as extern "C".
3682         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
3683         stpncpy as extern "C".
3684         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
3685         program, declare __xpg_strerror_r as extern "C".
3686         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
3687         strndup as extern "C".
3688         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
3689         declare memset and bzero as extern "C".
3690         Reported by Sam Steingold <sds@gnu.org>.
3691
3692 2011-07-12  Jim Meyering  <meyering@redhat.com>
3693
3694         maint.mk: prohibit inclusion of "verify.h" without use
3695         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
3696
3697 2011-07-19  Pádraig Brady  <P@draigBrady.com>
3698
3699         timer-time: A new module to check for timer_settime()
3700         * m4/timer_time.m4: Check for the posix function.
3701         * modules/timer-time: Add the new module.
3702         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
3703         Mention it.
3704
3705 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
3706             Bruno Haible  <bruno@clisp.org>
3707
3708         pthread_sigmask: assume POSIX threads if --avoid=threadlib
3709         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
3710         not defined, assume POSIX threads and look for pthread_sigmask in
3711         $LIBS, without changing $CPPFLAGS.
3712
3713 2011-07-19  Bruno Haible  <bruno@clisp.org>
3714
3715         strstr: Update cross-compilation guess.
3716         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
3717         CPUs, guess no, in view of glibc
3718         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
3719         Suggested by Eric Blake. Reported by Reuben Thomas.
3720
3721 2011-07-19  Pádraig Brady  <P@draigBrady.com>
3722
3723         getopt-gnu: suppress core dumps from detection code
3724         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
3725         to suppress core dumps that may well occur on glibc systems.
3726         * modules/getopt-gnu: Depend on nocrash.
3727
3728 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
3729
3730         pthread_sigmask: ensure usleep is declared
3731         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
3732         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
3733
3734 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
3735
3736         doc: Document NonStop portability issues.
3737         * doc/posix-functions/sigaction.texi (sigaction):
3738         * doc/posix-headers/signal.texi (signal.h):
3739         Document NonStop.  See Joachim Schmitz in
3740         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
3741
3742 2011-07-15  Bruno Haible  <bruno@clisp.org>
3743
3744         ffsl, ffsll: Avoid unportable behaviour.
3745         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
3746
3747 2011-07-15  Bruno Haible  <bruno@clisp.org>
3748
3749         ffs: More tests.
3750         * tests/test-ffs.c (NBITS): New macro.
3751         (main): Add more tests.
3752         * tests/test-ffsl.c (NBITS): New macro.
3753         (main): Add more tests.
3754         * tests/test-ffsll.c (NBITS): New macro.
3755         (main): Add more tests.
3756
3757 2011-07-15  Eric Blake  <eblake@redhat.com>
3758
3759         ffsl, ffsll: new modules
3760         * modules/ffsl: New file.
3761         * modules/ffsll: Likewise.
3762         * m4/ffsl.m4: Likewise.
3763         * m4/ffsll.m4: Likewise.
3764         * lib/ffsl.c: Likewise.
3765         * lib/ffsl.h: Likewise.
3766         * lib/ffsll.c: Likewise.
3767         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
3768         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
3769         * modules/string (Makefile.am): Substitute witnesses.
3770         * lib/strings.in.h (ffsl, ffsll): Declare.
3771         * modules/ffsl-tests: New test file.
3772         * modules/ffsll-tests: Likewise.
3773         * tests/test-ffsl.c: Likewise.
3774         * tests/test-ffsll.c: Likewise.
3775         * MODULES.html.sh (Integer arithmetic functions): Mention it.
3776         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
3777         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
3778
3779         ffs: fix m4 prerequisite
3780         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
3781
3782         ffs: avoid undefined behavior
3783         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
3784         * tests/test-ffs.c (naive, main): Avoid signed shifts.
3785         Reported by Bruno Haible.
3786
3787 2011-07-12  Bruno Haible  <bruno@clisp.org>
3788
3789         pthread_sigmask: Rely on module 'threadlib'.
3790         * modules/pthread_sigmask (Depends-on): Add threadlib.
3791         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
3792         is defined.
3793
3794 2011-07-12  Bruno Haible  <bruno@clisp.org>
3795
3796         regex: Depend on module 'strcase'.
3797         * modules/regex (Depends-on): Add strcase, for strcasecmp().
3798
3799 2011-07-12  Jim Meyering  <meyering@redhat.com>
3800
3801         warn-on-use: fix typo in file name
3802         * modules/snippet/warn-on-use (Files): Correct file name:
3803         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
3804
3805 2011-07-12  Bruno Haible  <bruno@clisp.org>
3806
3807         strings: Document module.
3808         * doc/posix-headers/strings.texi: Mention module 'strings'.
3809
3810 2011-07-12  Bruno Haible  <bruno@clisp.org>
3811
3812         Rename module '_Noreturn' to 'snippet/_Noreturn'.
3813         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
3814         (Files, Makefile.am): Update.
3815         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
3816         * modules/stdlib (Depends-on): Update.
3817
3818 2011-07-12  Bruno Haible  <bruno@clisp.org>
3819
3820         * NEWS: Mention the changes.
3821
3822         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
3823         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
3824         (Files, Makefile.am): Update.
3825         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
3826         * modules/arpa_inet (Depends-on): Update.
3827         * modules/ctype (Depends-on): Update.
3828         * modules/dirent (Depends-on): Update.
3829         * modules/fcntl-h (Depends-on): Update.
3830         * modules/glob (Depends-on): Update.
3831         * modules/iconv-h (Depends-on): Update.
3832         * modules/inttypes-incomplete (Depends-on): Update.
3833         * modules/langinfo (Depends-on): Update.
3834         * modules/locale (Depends-on): Update.
3835         * modules/math (Depends-on): Update.
3836         * modules/netdb (Depends-on): Update.
3837         * modules/poll-h (Depends-on): Update.
3838         * modules/pty (Depends-on): Update.
3839         * modules/search (Depends-on): Update.
3840         * modules/signal (Depends-on): Update.
3841         * modules/spawn (Depends-on): Update.
3842         * modules/stdio (Depends-on): Update.
3843         * modules/stdlib (Depends-on): Update.
3844         * modules/string (Depends-on): Update.
3845         * modules/strings (Depends-on): Update.
3846         * modules/sys_file (Depends-on): Update.
3847         * modules/sys_ioctl (Depends-on): Update.
3848         * modules/sys_select (Depends-on): Update.
3849         * modules/sys_socket (Depends-on): Update.
3850         * modules/sys_stat (Depends-on): Update.
3851         * modules/sys_time (Depends-on): Update.
3852         * modules/sys_times (Depends-on): Update.
3853         * modules/sys_utsname (Depends-on): Update.
3854         * modules/sys_wait (Depends-on): Update.
3855         * modules/termios (Depends-on): Update.
3856         * modules/time (Depends-on): Update.
3857         * modules/unistd (Depends-on): Update.
3858         * modules/wchar (Depends-on): Update.
3859         * modules/wctype-h (Depends-on): Update.
3860         * MODULES.html.sh (Support for building libraries and executables):
3861         Update.
3862
3863         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
3864         * modules/snippet/unused-parameter: Renamed from
3865         modules/unused-parameter.
3866         (Files, Makefile.am): Update.
3867         * build-aux/snippet/unused-parameter.h: Renamed from
3868         build-aux/unused-parameter.h.
3869         * modules/selinux-h (Depends-on): Update.
3870         * modules/unistr/base (Depends-on): Update.
3871         * MODULES.html.sh (Core language properties): Update.
3872
3873         Rename module 'link-warning' to 'snippet/link-warning'.
3874         * modules/snippet/link-warning: Renamed from modules/link-warning.
3875         (Files, Makefile.am): Update.
3876         * build-aux/snippet/link-warning.h: Renamed from
3877         build-aux/link-warning.h.
3878         * MODULES.html.sh (Support for building libraries and executables):
3879         Update.
3880
3881         Rename module 'c++defs' to 'snippet/c++defs'.
3882         * modules/snippet/c++defs: Renamed from modules/c++defs.
3883         (Files, Makefile.am): Update.
3884         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
3885         * modules/arpa_inet (Depends-on): Update.
3886         * modules/ctype (Depends-on): Update.
3887         * modules/dirent (Depends-on): Update.
3888         * modules/fcntl-h (Depends-on): Update.
3889         * modules/glob (Depends-on): Update.
3890         * modules/iconv-h (Depends-on): Update.
3891         * modules/langinfo (Depends-on): Update.
3892         * modules/locale (Depends-on): Update.
3893         * modules/math (Depends-on): Update.
3894         * modules/netdb (Depends-on): Update.
3895         * modules/poll-h (Depends-on): Update.
3896         * modules/pty (Depends-on): Update.
3897         * modules/search (Depends-on): Update.
3898         * modules/signal (Depends-on): Update.
3899         * modules/spawn (Depends-on): Update.
3900         * modules/stdio (Depends-on): Update.
3901         * modules/stdlib (Depends-on): Update.
3902         * modules/string (Depends-on): Update.
3903         * modules/strings (Depends-on): Update.
3904         * modules/sys_ioctl (Depends-on): Update.
3905         * modules/sys_select (Depends-on): Update.
3906         * modules/sys_socket (Depends-on): Update.
3907         * modules/sys_stat (Depends-on): Update.
3908         * modules/sys_time (Depends-on): Update.
3909         * modules/sys_wait (Depends-on): Update.
3910         * modules/termios (Depends-on): Update.
3911         * modules/time (Depends-on): Update.
3912         * modules/unistd (Depends-on): Update.
3913         * modules/wchar (Depends-on): Update.
3914         * modules/wctype-h (Depends-on): Update.
3915
3916         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
3917         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
3918         (Files, Makefile.am): Update.
3919         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
3920         * modules/argv-iter (Depends-on): Update.
3921         * modules/arpa_inet (Depends-on): Update.
3922         * modules/dirent (Depends-on): Update.
3923         * modules/fcntl-h (Depends-on): Update.
3924         * modules/fnmatch (Depends-on): Update.
3925         * modules/getopt-posix (Depends-on): Update.
3926         * modules/glob (Depends-on): Update.
3927         * modules/iconv-h (Depends-on): Update.
3928         * modules/inttypes-incomplete (Depends-on): Update.
3929         * modules/locale (Depends-on): Update.
3930         * modules/math (Depends-on): Update.
3931         * modules/netdb (Depends-on): Update.
3932         * modules/search (Depends-on): Update.
3933         * modules/signal (Depends-on): Update.
3934         * modules/spawn (Depends-on): Update.
3935         * modules/stdio (Depends-on): Update.
3936         * modules/stdlib (Depends-on): Update.
3937         * modules/string (Depends-on): Update.
3938         * modules/strings (Depends-on): Update.
3939         * modules/sys_socket (Depends-on): Update.
3940         * modules/sys_stat (Depends-on): Update.
3941         * modules/sys_time (Depends-on): Update.
3942         * modules/sys_times (Depends-on): Update.
3943         * modules/sys_utsname (Depends-on): Update.
3944         * modules/time (Depends-on): Update.
3945         * modules/unistd (Depends-on): Update.
3946         * modules/wchar (Depends-on): Update.
3947         * MODULES.html.sh (Support for building libraries and executables):
3948         Update.
3949
3950 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
3951
3952         Improvements on _Noreturn and related modules.
3953
3954         modules/_Exit-tests: test _Noreturn too
3955         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
3956         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
3957         (main): Use them.
3958
3959         stdnoreturn, stdnoreturn-tests: remove modules
3960         They're not needed here and a bit premature for use elsewhere.  See
3961         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
3962         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3963         * tests/test-stdnoreturn.c: Remove files.
3964         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
3965         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
3966         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
3967         and using noreturn.
3968         * modules/openat, modules/sigpipe-die, modules/xalloc:
3969         * modules/xmemdup0, modules/xstrtol:
3970         Remove dependency on stdnoreturn.
3971
3972         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
3973         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
3974         Reparenthesize to avoid GCC warning.
3975         Support Microsoft's syntax.
3976         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
3977
3978         _Noreturn-tests: remove module
3979         * modules/_Noreturn-tests: Remove.
3980         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
3981         * tests/test-_Noreturn.c: Remove.
3982         * tests/test-stdnoreturn.c: Merge from the old
3983         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
3984
3985 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
3986
3987         _Noreturn, stdnoreturn, and related modules.
3988
3989         * top/maint.mk: Adjust to new noreturn support.
3990         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
3991         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
3992
3993         xalloc: use stdnoreturn.h
3994         * lib/xalloc.h: Include <stdnoreturn.h>.
3995         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
3996         * modules/xalloc (Depends-on): Add stdnoreturn.
3997
3998         xstrtol: use stdnoreturn.h
3999         * lib/xstrtol.h: Include <stdnoreturn.h>.
4000         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4001         * modules/xstrtol (Depends-on): Add stdnoreturn.
4002
4003         xmemdup0: use stdnoreturn.h
4004         * lib/xmemdup0.h: Include <stdnoreturn.h>.
4005         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4006         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
4007
4008         sigpipe-die: use stdnoreturn.h
4009         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
4010         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4011         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
4012
4013         openat: use stdnoreturn.h
4014         * lib/openat.h: Include <stdnoreturn.h>.
4015         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4016         * modules/openat (Depends-on): Add stdnoreturn.
4017
4018         * lib/openat-die.c (openat_save_fail): Modernize comment.
4019
4020         * lib/xalloc-die.c (xalloc_die): Modernize comment.
4021
4022         * lib/glthread/thread.h: Modernize comment.
4023
4024         obstack: use _Noreturn
4025         * lib/obstack.c (__attribute__): Remove macro.
4026         (print_and_abort): Use _Noreturn.
4027
4028         c-stack: use _Noreturn
4029         * lib/c-stack.c (die, overflow_handler, segv_handler):
4030         Use _Noreturn rather than __attribute__((noreturn)).
4031
4032         argmatch-tests, exclude_tests: use _Noreturn
4033         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
4034         Remove.
4035         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
4036
4037         stdlib: use _Noreturn
4038         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
4039         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
4040         * modules/stdlib (Depends-on): Add _Noreturn.
4041         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
4042
4043         stdnoreturn-tests: new module
4044         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
4045
4046         stdnoreturn: new module
4047         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
4048         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
4049
4050         _Noreturn-tests: new module
4051         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
4052
4053         _Noreturn: new module
4054         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
4055         New section, mentioning it.
4056         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
4057
4058         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
4059
4060 2011-07-11  Eric Blake  <eblake@redhat.com>
4061
4062         ffs: new module
4063         * modules/ffs: New file.
4064         * m4/ffs.m4: Likewise.
4065         * lib/ffs.c: Likewise.
4066         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
4067         * modules/strings (Makefile.am): Substitute witness.
4068         (Depends-on): Add c++defs.
4069         * lib/strings.in.h (ffs): Declare.
4070         * modules/ffs-tests: New test file.
4071         * tests/test-ffs.c: Test new module.
4072         * MODULES.html.sh (Integer arithmetic functions): Mention it.
4073         * doc/posix-functions/ffs.texi (ffs): Likewise.
4074
4075         regex: avoid compiler warning
4076         * lib/regex.c (includes): Include <strings.h>, for use of
4077         strcasecmp in regcomp.c.
4078         Reported by Joachim Schmitz.
4079
4080 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4081
4082         stdint: respect system's intmax_t if INTMAX_MAX
4083         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
4084         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
4085         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
4086         long but int64_t is long long, and where we will clash with the
4087         system intmax_t if we override it.  See
4088         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
4089         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
4090         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
4091         similarly for UINTMAX_C.
4092
4093 2011-07-08  Bruno Haible  <bruno@clisp.org>
4094
4095         pthread_sigmask tests: Avoid a compiler warning.
4096         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
4097         non-zero.
4098
4099         sigprocmask tests: A better way to avoid a compiler warning.
4100         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
4101         (main): Complain if system() returns non-zero.
4102         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
4103
4104 2011-07-08  Bruno Haible  <bruno@clisp.org>
4105
4106         pthread_sigmask: Work around IRIX bug.
4107         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
4108         bug.
4109         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
4110         there may be unblocked pending signals.
4111         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
4112
4113 2011-07-08  Bruno Haible  <bruno@clisp.org>
4114
4115         pthread_sigmask: Work around Cygwin bug.
4116         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
4117         bug.
4118         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
4119         the system's pthread_sigmask function.
4120         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
4121
4122 2011-07-08  Bruno Haible  <bruno@clisp.org>
4123
4124         pthread_sigmask: Work around bug in single-threaded implementation.
4125         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
4126         FreeBSD, HP-UX, Solaris bug.
4127         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
4128         * lib/pthread_sigmask.c: Include <stddef.h>.
4129         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
4130         the system's pthread_sigmask function.
4131         * modules/pthread_sigmask (configure.ac): Invoke
4132         gl_PREREQ_PTHREAD_SIGMASK.
4133         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
4134         HP-UX, Solaris.
4135
4136 2011-07-08  Eric Blake  <eblake@redhat.com>
4137
4138         test-sigprocmask: avoid compiler warning
4139         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
4140         * tests/test-sigprocmask.c (main): Use it to silence warning.
4141         Reported by Jim Meyering.
4142
4143         test-snprintf: avoid compiler warning
4144         * tests/test-snprintf.c (main): Avoid shadowed declaration.
4145         * tests/test-vsnprintf.c (main): Likewise.
4146         Reported by Jim Meyering.
4147
4148 2011-07-08  Bruno Haible  <bruno@clisp.org>
4149
4150         Tests for module 'pthread_sigmask'.
4151         * modules/pthread_sigmask-tests: New file.
4152         * tests/test-pthread_sigmask1.c: New file, based on
4153         tests/test-sigprocmask.c.
4154         * tests/test-pthread_sigmask2.c: New file.
4155
4156 2011-07-08  Jim Meyering  <meyering@redhat.com>
4157
4158         test-getopt.h: avoid warning about an unused variable
4159         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
4160
4161 2011-07-07  Jim Meyering  <meyering@redhat.com>
4162
4163         maint: reduce list of files exempt from sc_prohibit_leading_TABs
4164         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
4165         now that it no longer contains leading TABs.
4166         Remove unused "url=FIXME" statement.
4167
4168 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
4169
4170         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
4171         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
4172         When gl_THREADLIB is not in use, assume that the POSIX sematics
4173         are desired.  This is better for Emacs, which uses POSIX semantics
4174         on GNUish and/or POSIXish platforms, and does not use threads at
4175         all otherwise.
4176
4177         pthread_sigmask: fix typo when testing for libraries
4178         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
4179         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
4180
4181 2011-07-08  Eric Blake  <eblake@redhat.com>
4182
4183         fts: introduce FTS_NOATIME
4184         * lib/fts_.h (FTS_NOATIME): New bit flag.
4185         (FTS_OPTIONMASK): Adjust.
4186         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
4187         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
4188
4189 2011-07-08  Bruno Haible  <bruno@clisp.org>
4190
4191         Tests for module 'thread'.
4192         * modules/thread-tests: New file.
4193         * tests/test-thread_self.c: New file.
4194         * tests/test-thread_create.cc: New file.
4195
4196 2011-07-08  Bruno Haible  <bruno@clisp.org>
4197
4198         thread: Avoid gcc warnings when using gl_thread_self().
4199         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
4200         'void *'.
4201         (gl_thread_self_pointer): Update.
4202
4203 2011-07-07  Bruno Haible  <bruno@clisp.org>
4204
4205         signal-c++-tests: Check declaration of pthread_sigmask.
4206         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
4207         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
4208         $(LIB_PTHREAD_SIGMASK).
4209
4210 2011-07-07  Bruno Haible  <bruno@clisp.org>
4211
4212         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
4213         * lib/signal.in.h (pthread_sigmask): Override if
4214         REPLACE_PTHREAD_SIGMASK is 1.
4215         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
4216         REPLACE_PTHREAD_SIGMASK.
4217         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
4218         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
4219         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
4220         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
4221         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
4222
4223 2011-07-07  Bruno Haible  <bruno@clisp.org>
4224
4225         pthread_sigmask: Ensure declaration in <signal.h>.
4226         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
4227         include <pthread.h>.
4228         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
4229         problem.
4230
4231 2011-07-07  Bruno Haible  <bruno@clisp.org>
4232
4233         pthread_sigmask: Document the module.
4234         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
4235
4236 2011-07-07  Bruno Haible  <bruno@clisp.org>
4237
4238         pthread_sigmask: Follow gnulib conventions.
4239         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
4240         gl_PTHREAD_SIGMASK.
4241         * modules/pthread_sigmask (configure.ac): Update.
4242
4243 2011-07-07  Bruno Haible  <bruno@clisp.org>
4244
4245         pthread_sigmask: Make declaration C++ safe.
4246         * lib/signal.in.h: In two special conditions, just do an #include_next.
4247         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
4248         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
4249         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
4250         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
4251         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
4252         not REPLACE_PTHREAD_MASK.
4253         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
4254         not REPLACE_PTHREAD_MASK.
4255         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
4256
4257 2011-07-07  Bruno Haible  <bruno@clisp.org>
4258
4259         pthread_sigmask: Fix return value.
4260         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
4261         * lib/pthread_sigmask.c: New file.
4262         * modules/pthread_sigmask (Files): Add it.
4263         (configure.ac): Invoke AC_LIBOBJ.
4264
4265 2011-07-07  Eric Blake  <eblake@redhat.com>
4266
4267         getopt: more portable argv creation
4268         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
4269         const, use char arrays rather than strings.
4270         Suggested by Paul Eggert.
4271
4272 2011-07-07  Bruno Haible  <bruno@clisp.org>
4273
4274         Tests for module 'sigprocmask'.
4275         * modules/sigprocmask-tests: New file.
4276         * tests/test-sigprocmask.c: New file.
4277
4278 2011-07-07  Bruno Haible  <bruno@clisp.org>
4279
4280         float tests: Tweak.
4281         * tests/test-float.c (main): Tweak skip message.
4282
4283 2011-07-07  Eric Blake  <eblake@redhat.com>
4284
4285         getopt: avoid compiler warning during configure
4286         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
4287         assigning string literals to non-const pointer.
4288
4289         getopt-gnu: avoid crash in glibc getopt
4290         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
4291         * tests/test-getopt.h (test_getopt): Enhance test.
4292         * tests/test-getopt_long.h (test_getopt_long): Likewise.
4293         * doc/posix-functions/getopt.texi (getopt): Document it.
4294         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4295         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4296         Likewise.
4297
4298 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
4299
4300         getopt: handle W; without long options in getopt [BZ #12922]
4301         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
4302         but no long options are defined, just return 'W'.
4303
4304 2011-07-07  Bruno Haible  <bruno@clisp.org>
4305
4306         Avoid literal tabs.
4307         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
4308         variable containing a tab instead of a literal tab.
4309         Reported by Jim Meyering.
4310
4311 2011-07-07  Bruno Haible  <bruno@clisp.org>
4312
4313         Comments.
4314         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
4315
4316 2011-07-06  Bruno Haible  <bruno@clisp.org>
4317
4318         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
4319         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
4320         <winsock2.h>.
4321         (rpl_fd_isset, FD_ISSET): New definitions, copied from
4322         lib/sys_socket.in.h.
4323         (close, gethostname): Hide declarations from <winsock2.h>.
4324         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
4325         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
4326         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
4327         (select): Don't override if gnulib's <sys/select.h> was already
4328         included.
4329         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
4330         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
4331         setsockopt, shutdown, select): Tweak indentation.
4332
4333 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4334
4335         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
4336         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
4337         in an application that does not use the sys_select module.
4338
4339 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
4340
4341         poll: do not return 0 on timeout=-1
4342         * lib/poll.c: Loop with yield if no events occured
4343
4344 2011-07-06  Eric Blake  <eblake@redhat.com>
4345
4346         pthread_sigmask: always replace when not using pthread
4347         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
4348         replacement when using some threading other than pthread.  Fix
4349         logic bug.
4350
4351 2011-07-06  Bruno Haible  <bruno@clisp.org>
4352
4353         Comments.
4354         * m4/printf.m4: Update comments about mingw.
4355
4356 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4357
4358         sys_select: define sigset_t more portably
4359         * lib/sys_select.in.h: Always include <sys/types.h>, since
4360         we now need sigset_t and mingw defines it there.
4361         Include <signal.h> before split inclusion guard, to avoid
4362         mishaps on Solaris, whose <signal.h> eventually includes us.
4363         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
4364         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
4365         which come from ...
4366         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
4367         gl_CHECK_TYPE_SIGSET_T.
4368         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
4369         does the real work.
4370         * modules/sys_select (Depends-on): Add 'signal'.
4371
4372         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
4373         Suggested by Bruno Haible.
4374
4375         pselect: Use pthread_sigmask, not sigprocmask.
4376         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
4377         multithreaded apps better than sigprocmask does.
4378         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
4379         sigprocmask directly.
4380
4381 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
4382
4383         * lib/pselect.c (pselect): Use plain name, without "rpl_".
4384         Don't #undef,  since we don't need any underlying pselect.
4385         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
4386         (Depends-on): Add select.
4387         (Link): Add $(LIBSOCKET).
4388         These changes suggested by Bruno Haible.
4389
4390         pselect: document better
4391         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
4392         * doc/posix-functions/pselect.texi (pselect): Document new module.
4393
4394         pthread_sigmask: new module
4395         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
4396         * doc/posix-functions/pthread_sigmask.texi: Document new module.
4397         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
4398         This is done only as a macro; I don't know how well that'll
4399         work for C++.  Move <sys/types.h> include before the include_next,
4400         to avoid mishap on Solaris.
4401         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
4402         * modules/signal (Makefile.am): Substitute the check's results.
4403         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
4404
4405         test-pselect: new module
4406         * modules/pselect-tests, tests/test-pselect.c: New files.
4407         * tests/test-select.c, tests/test-sys_select-c++.cc:
4408         If TEST_PSELECT is defined, test pselect instead of testing select.
4409
4410         * tests/test-sys_select.c (sigset_t): Test for it, too.
4411         Suggested by Bruno Haible.
4412
4413 2011-07-05  Eric Blake  <eblake@redhat.com>
4414
4415         snprintf: guarantee %1$d, for libintl
4416         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
4417         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
4418         * doc/posix-functions/snprintf.texi (snprintf): Update.
4419         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
4420         * tests/test-snprintf.c (main): Enhance test.
4421         * tests/test-vsnprintf.c (main): Likewise.
4422
4423 2011-07-05  Jim Meyering  <meyering@redhat.com>
4424
4425         maint: exempt stdio-read.c and stdio-write.c from the cppi check
4426         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
4427         per Bruno's request, to accommodate this idiom (no space after "#")
4428         even when the function is inside an #if block:
4429         char *
4430         gets (char *s)
4431         #undef gets
4432         {
4433           ...
4434         }
4435
4436 2011-07-04  Jim Meyering  <meyering@redhat.com>
4437
4438         maint: indent with spaces, not TABs, and add a rule to check this
4439         * tests/test-userspec.c: Indent with spaces, not TABs.
4440         * tests/test-argp.c: Likewise.
4441         * tests/test-c-stack2.sh: Likewise.
4442         * tests/test-parse-duration.sh: Likewise
4443         * m4/strtod.m4: Likewise.
4444         * m4/alloca.m4: Likewise.
4445         * m4/pselect.m4: Likewise.
4446         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
4447
4448 2011-07-03  Jim Meyering  <meyering@redhat.com>
4449
4450         maint.mk: correct omissions in prohibit_argmatch_without_use check
4451         This rule would mistakenly report that argmatch.h is included without
4452         use even when both the argmatch and invalid_arg macro were used.
4453         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
4454         of argmatch and invalid_arg.
4455
4456 2011-07-03  Bruno Haible  <bruno@clisp.org>
4457
4458         Comments about EINTR.
4459         * lib/safe-read.h: Explain the purpose of this module.
4460         * lib/safe-write.h: Likewise.
4461         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
4462         module.
4463         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
4464         module.
4465         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4466
4467 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
4468
4469         xnanosleep: Rewrite to use new dtotimespec module.
4470         It has the conversion code that used to be in xnanosleep.
4471         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
4472         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
4473         (TIME_T_MAX): Remove.
4474         (xnanosleep): Rewrite in terms of dtotimespec.
4475         * modules/xnanosleep (Depends-on): Add dtotimespec.
4476         Remove intprops, stdbool.
4477
4478         timespec-add, timespec-sub: new modules
4479         * lib/timespec.h (timespec_add, timespec_sub): New decls.
4480         * lib/timespec-add.c, lib/timespec-sub.c:
4481         * modules/timespec-add, modules/timespec-sub: New files.
4482
4483         dtotimespec: new module
4484         * lib/timespec.h (dtotimespec): New decl.
4485         * lib/dtotimespec.c, modules/dtotimespec: New files.
4486
4487         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
4488
4489         pselect: new module
4490         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
4491         (pselect): New decls.
4492         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
4493         since the standard pselect decl uses 'restrict'.
4494         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
4495         HAVE_PSELECT, REPLACE_PSELECT.
4496         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
4497         HAVE_PSELECT, REPLACE_PSELECT.
4498         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
4499
4500         sys_select: don't depend on sys_socket
4501         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
4502         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
4503         This fix works on GNU and GNU-like platforms, but has not been tested
4504         on native Windows.
4505         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
4506         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
4507         gl_HEADER_SYS_SOCKET.
4508         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
4509         gl_PREREQ_SYS_H_WINSOCK2.
4510
4511 2011-06-29  Eric Blake  <eblake@redhat.com>
4512
4513         pipe2: fix C89 compile problem
4514         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
4515         Reported by Bruno Haible.
4516
4517         pipe, pipe2: don't corrupt fd on error
4518         * lib/pipe.c (pipe): Leave fd unchanged on error.
4519         * lib/pipe2.c (pipe2): Likewise.
4520         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
4521         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
4522
4523 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
4524
4525         mmap-anon: do not use regular expressions inadvertently
4526         * m4/mmap-anon.m4: Remove trailing period from strings sought
4527         in the output.
4528
4529 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
4530
4531         nanosleep: fix integer overflow problem
4532         * lib/nanosleep.c (my_usleep): Don't assume signed integer
4533         arithmetic wraps around on overflow.
4534
4535         nanosleep: simplify carrying
4536         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
4537         first call to the underyling nanosleep, not for the last one.
4538         This doesn't fix any bugs, but it simplifies the computation of
4539         the remaining delay.  Found while auditing integer overflow issues.
4540
4541         dup2: remove test for existence of fcntl
4542         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
4543         "#if HAVE_FCNTL", in the configure-time test program.
4544         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
4545         and therefore speeds up "configure" a bit.  Found while
4546         adding the dup2 module to Emacs.
4547
4548 2011-06-24  Eric Blake  <eblake@redhat.com>
4549
4550         maint.mk: enhance useless header checks
4551         * top/maint.mk (_sc_header_without_use): Check both include
4552         styles.
4553         (sc_prohibit_assert_without_use)
4554         (sc_prohibit_close_stream_without_use)
4555         (sc_prohibit_getopt_without_use)
4556         (sc_prohibit_quotearg_without_use)
4557         (sc_prohibit_quote_without_use)
4558         (sc_prohibit_long_options_without_use)
4559         (sc_prohibit_inttostr_without_use)
4560         (sc_prohibit_ignore_value_without_use)
4561         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
4562         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
4563         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
4564         (sc_prohibit_hash_pjw_without_use)
4565         (sc_prohibit_safe_read_without_use)
4566         (sc_prohibit_argmatch_without_use)
4567         (sc_prohibit_canonicalize_without_use)
4568         (sc_prohibit_root_dev_ino_without_use)
4569         (sc_prohibit_openat_without_use)
4570         (sc_prohibit_c_ctype_without_use)
4571         (sc_prohibit_signal_without_use)
4572         (sc_prohibit_stdio--_without_use)
4573         (sc_prohibit_stdio-safer_without_use)
4574         (sc_prohibit_strings_without_use)
4575         (sc_prohibit_intprops_without_use)
4576         (sc_prohibit_stddef_without_use)
4577         (sc_prohibit_xfreopen_without_use): Update clients.
4578
4579 2011-06-24  Jim Meyering  <meyering@redhat.com>
4580
4581         syntax-check: keep one maint.mk rule in sync with its header
4582         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
4583         of the bug Eric has just fixed, with today's commit 25e4c2ec.
4584         I prefer to avoid temporary files here, so use <(...), but that
4585         is not supported by /bin/sh, so...
4586         (SHELL): Define to /bin/bash.
4587
4588 2011-06-24  Eric Blake  <eblake@redhat.com>
4589
4590         maint.mk: update sc_prohibit_intprops_without_use
4591         * top/maint.mk (_intprops_names): Match recent changes.
4592
4593 2011-06-24  Bruno Haible  <bruno@clisp.org>
4594
4595         strerror-override: No-op tweak.
4596         * lib/strerror-override.h (strerror_override): Reorder conditions,
4597         for consistency with lib/strerror-override.c.
4598
4599 2011-06-23  Eric Blake  <eblake@redhat.com>
4600
4601         maint.mk: test further PATH_MAX issues
4602         * top/maint.mk (sc_prohibit_path_max_array): Rename...
4603         (sc_prohibit_path_max_allocation): ...and also test alloca.
4604         Suggested by Jim Meyering.
4605
4606 2011-06-22  Eric Blake  <eblake@redhat.com>
4607
4608         maint.mk: add syntax-check to avoid char[PATH_MAX]
4609         * top/maint.mk (sc_prohibit_path_max_array): New rule.
4610
4611         stat: be robust to PATH_MAX definition
4612         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
4613         * modules/stat (Depends-on): Add verify.
4614
4615         link: work around IRIX bug
4616         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
4617         * lib/link.c (rpl_link): Work around it.
4618         * tests/test-link.h (test_link): Enhance test.
4619         * doc/posix-functions/link.texi (link): Document the bug.
4620
4621         getopt: silence clang warning
4622         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
4623         dereference.
4624         Reported by Gustavo Martin Domato.
4625
4626 2011-06-22  Jim Meyering  <meyering@redhat.com>
4627
4628         bootstrap: do not insert a blank line into each .gitignore file
4629         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
4630
4631 2011-06-21  Eric Blake  <eblake@redhat.com>
4632
4633         perror: test for output mismatch
4634         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
4635         perror on IRIX.
4636
4637         strerror_r: fix OpenBSD behavior on out-of-range
4638         * lib/strerror_r.c (strerror_r): Always use maximal string.
4639         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4640
4641         strerror_r: fix OpenBSD behavior on 0
4642         * lib/strerror-override.c (strerror_override): Also override 0
4643         when needed.
4644         * lib/strerror-override.h (strerror_override): Likewise.
4645         * lib/strerror.c (strerror): Simplify, now that 0 override is done
4646         earlier.
4647         * lib/strerror_r.c (strerror_r): Likewise.
4648         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
4649         behavior...
4650         (gl_FUNC_STRERROR_0): ...into new macro.
4651         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
4652         is overridden.
4653         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
4654         * modules/strerror-override (Files): Add strerror.m4.
4655         (configure.ac): Also provide override for 0 when needed.
4656         * doc/posix-functions/strerror.texi (strerror): Document this.
4657         * doc/posix-functions/perror.texi (perror): Likewise.
4658
4659         perror: adjust array size
4660         * modules/perror (Depends-on): Add strerror-override.
4661         * lib/perror.c (perror): Use it to avoid magic number.
4662
4663         strerror-override: reduce size
4664         * lib/strerror-override.c (strerror_override): Use fewer lines.
4665
4666 2011-06-20  Bruno Haible  <bruno@clisp.org>
4667
4668         pathmax: Ensure correct value for PATH_MAX on HP-UX.
4669         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
4670
4671 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
4672
4673         alloca: port to compilers that can optimize like GCC 4.6.0
4674         * lib/alloca.c (find_stack_direction): New signature, taken from
4675         Autoconf git.  This works with GCC 4.6.0.  This code should never
4676         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
4677         be used with other compilers that optimize as well as GCC 4.6.0 does.
4678         (alloca): Adjust to new signature.
4679         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
4680         New macro, which patches Autoconf in a similar way.
4681
4682         c-stack: stop worrying about stack direction
4683         * lib/c-stack.c (find_stack_direction): Remove.
4684         (segv_handler): Don't worry about stack direction growth, as it's
4685         too much of a pain to configure this correctly, given how compilers
4686         are optimizing-away our stack-growth detection code.  Instead, assume
4687         that any access to just before or just after the stack is OK.
4688         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
4689         Don't require AC_FUNC_ALLOCA; no longer needed.
4690
4691 2011-06-20  Eric Blake  <eblake@redhat.com>
4692
4693         test-stat: don't allocate PATH_MAX bytes
4694         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
4695         PATH_MAX-sized buffer.
4696         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
4697         * modules/stat-tests (Depends-on): Likewise.
4698         * tests/test-fstatat.c (includes): Drop pathmax.h.
4699         * tests/test-stat.c (includes): Likewise.
4700         Reported by Bruno Haible.
4701
4702 2011-06-20  Bruno Haible  <bruno@clisp.org>
4703
4704         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
4705         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
4706         * lib/float.c: New file.
4707         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
4708         REPLACE_FLOAT_LDBL.
4709         * modules/float (Files): Add lib/float.c.
4710         (configure.ac): Invoke AC_LIBOBJ.
4711         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
4712
4713 2011-06-20  Bruno Haible  <bruno@clisp.org>
4714
4715         Tests for module 'float'.
4716         * modules/float-tests: New file.
4717         * tests/test-float.c: New file.
4718
4719 2011-06-19  Bruno Haible  <bruno@clisp.org>
4720
4721         isinf: Coding style.
4722         * lib/isinf.c: Use GNU coding style.
4723
4724 2011-06-19  Bruno Haible  <bruno@clisp.org>
4725
4726         linkat test: Avoid test failure on AIX 7.1.
4727         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
4728         * tests/test-link.h (test_link): Likewise.
4729
4730 2011-06-19  Bruno Haible  <bruno@clisp.org>
4731
4732         pread test: Avoid test failure on OpenBSD 4.9.
4733         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
4734
4735 2011-06-19  Bruno Haible  <bruno@clisp.org>
4736
4737         sprintf-posix: Fix test failure on AIX 7.1.
4738         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
4739         * doc/posix-functions/dprintf.texi: Mention limited precision problem
4740         on AIX.
4741         * doc/posix-functions/fprintf.texi: Likewise.
4742         * doc/posix-functions/printf.texi: Likewise.
4743         * doc/posix-functions/snprintf.texi: Likewise.
4744         * doc/posix-functions/sprintf.texi: Likewise.
4745         * doc/posix-functions/vdprintf.texi: Likewise.
4746         * doc/posix-functions/vfprintf.texi: Likewise.
4747         * doc/posix-functions/vprintf.texi: Likewise.
4748         * doc/posix-functions/vsnprintf.texi: Likewise.
4749         * doc/posix-functions/vsprintf.texi: Likewise.
4750
4751 2011-06-19  Bruno Haible  <bruno@clisp.org>
4752
4753         roundl-ieee: Fix test failure on AIX 7.1.
4754         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
4755         * doc/posix-functions/roundl.texi: Mention problem with negative
4756         arguments.
4757
4758 2011-06-19  Bruno Haible  <bruno@clisp.org>
4759
4760         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
4761         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
4762         * doc/posix-functions/round.texi: Mention problem with negative
4763         arguments.
4764         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
4765
4766 2011-06-19  Bruno Haible  <bruno@clisp.org>
4767
4768         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
4769         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
4770         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
4771         * doc/posix-functions/roundf.texi: Mention problem with negative
4772         arguments.
4773         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
4774
4775 2011-06-19  Bruno Haible  <bruno@clisp.org>
4776
4777         ceilf-ieee: Work around bug on MacOS X 10.5.
4778         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
4779
4780         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
4781         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
4782         IEEE compliant, avoid compiler optimizations.
4783         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
4784         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4785         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
4786         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4787         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4788         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4789         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4790         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4791         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4792         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4793
4794 2011-06-19  Bruno Haible  <bruno@clisp.org>
4795
4796         ceilf-ieee: Work around bug on AIX 7.1.
4797         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
4798         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
4799
4800 2011-06-19  Bruno Haible  <bruno@clisp.org>
4801
4802         ceil-ieee: Work around bug on AIX 7.1.
4803         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
4804         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
4805
4806 2011-06-18  Bruno Haible  <bruno@clisp.org>
4807
4808         fsync test: Avoid test failure on MacOS X and AIX.
4809         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
4810         EINVAL.
4811
4812 2011-06-18  Bruno Haible  <bruno@clisp.org>
4813
4814         openat, fdopendir tests: Fix link errors.
4815         * modules/openat-tests (Depends-on): Add progname.
4816         * modules/fdopendir-tests (Depends-on): Likewise.
4817         * tests/test-fchownat.c: Include progname.h.
4818         (main): Call set_program_name.
4819         * tests/test-fstatat.c: Include progname.h.
4820         (main): Call set_program_name.
4821         * tests/test-mkdirat.c: Include progname.h.
4822         (main): Call set_program_name.
4823         * tests/test-openat.c: Include progname.h.
4824         (main): Call set_program_name.
4825         * tests/test-unlinkat.c: Include progname.h.
4826         (main): Call set_program_name.
4827         * tests/test-fdopendir.c: Include progname.h.
4828         (main): Call set_program_name.
4829
4830 2011-06-18  Bruno Haible  <bruno@clisp.org>
4831
4832         Doc update.
4833         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
4834         HP-UX.
4835         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
4836
4837 2011-06-18  Bruno Haible  <bruno@clisp.org>
4838
4839         getcwd tests: Avoid compilation error on HP-UX 11.31.
4840         * modules/getcwd-tests (Depends-on): Add pathmax.
4841         * tests/test-getcwd.c: Include pathmax.h.
4842
4843 2011-06-18  Bruno Haible  <bruno@clisp.org>
4844
4845         isfinite, isinf: Fix link error on AIX 6 and 7.
4846         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
4847         needed, also test the macro with a 'float' argument.
4848         * m4/isinf.m4 (gl_ISINF): Likewise.
4849
4850 2011-06-18  Bruno Haible  <bruno@clisp.org>
4851
4852         getloadavg: Don't clobber LIBS. Regression from previous commit.
4853         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
4854         AC_CHECK_LIB from here...
4855         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
4856         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
4857         gl_func_getloadavg_done.
4858         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4859
4860 2011-06-18  Bruno Haible  <bruno@clisp.org>
4861
4862         clean-temp: Improve documentation.
4863         * lib/clean-temp.h: Explain better how to use this module.
4864         Reported by John Darrington <john@darrington.wattle.id.au>.
4865
4866 2011-06-17  Bruno Haible  <bruno@clisp.org>
4867
4868         pread, pwrite: Avoid cc warning on AIX.
4869         * lib/unistd.in.h (pread): Undefine before defining as a macro.
4870         (pwrite): Likewise.
4871
4872 2011-06-17  Bruno Haible  <bruno@clisp.org>
4873
4874         spawn-pipe tests: Fix link error.
4875         * tests/test-spawn-pipe-child.c: Undefine fprintf.
4876         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4877
4878 2011-06-17  Bruno Haible  <bruno@clisp.org>
4879
4880         Tests: Remove unnecessary dependency.
4881         * modules/canonicalize-tests (Depends-on): Remove progname.
4882         * modules/chown-tests (Depends-on): Likewise.
4883         * modules/dirname-tests (Depends-on): Likewise.
4884         * modules/fdopendir-tests (Depends-on): Likewise.
4885         * modules/fdutimensat-tests (Depends-on): Likewise.
4886         * modules/hash-tests (Depends-on): Likewise.
4887         * modules/lchown-tests (Depends-on): Likewise.
4888         * modules/linkat-tests (Depends-on): Likewise.
4889         * modules/renameat-tests (Depends-on): Likewise.
4890         * modules/spawn-pipe-tests (Depends-on): Likewise.
4891         * modules/utimensat-tests (Depends-on): Likewise.
4892
4893 2011-06-17  Bruno Haible  <bruno@clisp.org>
4894
4895         spawn-pipe tests: Fix link error.
4896         * tests/test-spawn-pipe-child.c: Undefine fflush.
4897
4898 2011-06-17  Bruno Haible  <bruno@clisp.org>
4899
4900         Fix tests link errors.
4901         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
4902         * modules/chown-tests (Makefile.am): Don't link test-chown with
4903         LIBINTL.
4904         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
4905         LIBINTL.
4906         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
4907         LIBINTL.
4908         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
4909         LIBINTL.
4910
4911 2011-06-16  Bruno Haible  <bruno@clisp.org>
4912
4913         crypto/gc-sha1: Fix recent regression.
4914         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
4915         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
4916
4917         crypto/gc-md5: Fix recent regression.
4918         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
4919
4920         crypto/gc-md4: Fix recent regression.
4921         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
4922         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
4923
4924         crypto/gc-arctwo: Fix recent regression.
4925         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
4926         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
4927
4928         crypto/gc-rijndael: Fix recent regression.
4929         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
4930         (configure.ac): Invoke AC_LIBOBJ here.
4931         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
4932         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4933
4934         crypto/gc-hmac-sha1: Fix recent regression.
4935         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
4936         (configure.ac): Invoke AC_LIBOBJ here.
4937         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
4938         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4939
4940         crypto/gc-hmac-md5: Fix recent regression.
4941         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
4942         (configure.ac): Invoke AC_LIBOBJ here.
4943         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
4944         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4945
4946         crypto/gc-des: Fix recent regression.
4947         * modules/crypto/gc-des (Files): Remove m4/des.m4.
4948         (configure.ac): Invoke AC_LIBOBJ here.
4949         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
4950         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4951
4952         crypto/gc-arcfour: Fix recent regression.
4953         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
4954         (configure.ac): Invoke AC_LIBOBJ here.
4955         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
4956         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4957
4958 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
4959
4960         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
4961         After the 2011-05-21 change, this macro requires
4962         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
4963         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
4964
4965 2011-06-16  Bruno Haible  <bruno@clisp.org>
4966
4967         fprintftime: Move AC_LIBOBJ invocations to module description.
4968         * m4/fprintftime.m4: Remove file.
4969         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
4970         (configure.ac): Remove gl_FPRINTFTIME call.
4971         (Makefile.am): Augment lib_SOURCES.
4972         Reported by Jim Meyering.
4973
4974 2011-06-16  Bruno Haible  <bruno@clisp.org>
4975
4976         tmpfile-safer: Finish 2011-05-23 commit.
4977         * m4/stdio-safer.m4: Really remove file.
4978         Reported by Jim Meyering.
4979
4980 2011-06-16  Bruno Haible  <bruno@clisp.org>
4981
4982         syntax-check: Fix typo.
4983         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
4984         printf-posix.m4.
4985         Reported by Jim Meyering.
4986
4987 2011-06-13  Jim Meyering  <meyering@redhat.com>
4988
4989         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
4990         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
4991
4992 2011-05-23  Bruno Haible  <bruno@clisp.org>
4993
4994         yesno: Move AC_LIBOBJ invocations to module description.
4995         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
4996         * modules/yesno (Makefile.am): Augment lib_SOURCES.
4997
4998 2011-05-23  Bruno Haible  <bruno@clisp.org>
4999
5000         xstrtol: Move AC_LIBOBJ invocations to module description.
5001         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
5002         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
5003
5004 2011-05-23  Bruno Haible  <bruno@clisp.org>
5005
5006         xstrtold: Move AC_LIBOBJ invocations to module description.
5007         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
5008         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
5009
5010 2011-05-23  Bruno Haible  <bruno@clisp.org>
5011
5012         xstrtod: Move AC_LIBOBJ invocations to module description.
5013         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
5014         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
5015
5016 2011-05-23  Bruno Haible  <bruno@clisp.org>
5017
5018         xnanosleep: Move AC_LIBOBJ invocations to module description.
5019         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
5020         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
5021
5022 2011-05-23  Bruno Haible  <bruno@clisp.org>
5023
5024         xgetcwd: Move AC_LIBOBJ invocations to module description.
5025         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
5026         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
5027
5028 2011-05-23  Bruno Haible  <bruno@clisp.org>
5029
5030         xalloc: Move AC_LIBOBJ invocations to module description.
5031         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
5032         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
5033
5034 2011-05-23  Bruno Haible  <bruno@clisp.org>
5035
5036         write-any-file: Move AC_LIBOBJ invocations to module description.
5037         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
5038         invocation.
5039         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
5040
5041 2011-05-23  Bruno Haible  <bruno@clisp.org>
5042
5043         utimens: Move AC_LIBOBJ invocations to module description.
5044         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
5045         * modules/utimens (Makefile.am): Augment lib_SOURCES.
5046
5047 2011-05-23  Bruno Haible  <bruno@clisp.org>
5048
5049         utimecmp: Move AC_LIBOBJ invocations to module description.
5050         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
5051         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
5052
5053 2011-05-23  Bruno Haible  <bruno@clisp.org>
5054
5055         userspec: Move AC_LIBOBJ invocations to module description.
5056         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
5057         * modules/userspec (Makefile.am): Augment lib_SOURCES.
5058
5059 2011-05-23  Bruno Haible  <bruno@clisp.org>
5060
5061         unlinkdir: Move AC_LIBOBJ invocations to module description.
5062         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
5063         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
5064
5065 2011-05-23  Bruno Haible  <bruno@clisp.org>
5066
5067         unistd-safer: Move AC_LIBOBJ invocations to module description.
5068         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
5069         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
5070
5071 2011-05-23  Bruno Haible  <bruno@clisp.org>
5072
5073         tempname: Move AC_LIBOBJ invocations to module description.
5074         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
5075         * modules/tempname (Makefile.am): Augment lib_SOURCES.
5076
5077 2011-05-23  Bruno Haible  <bruno@clisp.org>
5078
5079         strftime: Move AC_LIBOBJ invocations to module description.
5080         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
5081         * modules/strftime (Makefile.am): Augment lib_SOURCES.
5082
5083 2011-05-23  Bruno Haible  <bruno@clisp.org>
5084
5085         stdlib-safer: Move AC_LIBOBJ invocations to module description.
5086         * m4/stdlib-safer.m4: Remove file.
5087         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
5088         (configure.ac): Remove gl_STDLIB_SAFER call.
5089         (Makefile.am): Augment lib_SOURCES.
5090
5091 2011-05-23  Bruno Haible  <bruno@clisp.org>
5092
5093         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
5094         * m4/stdio-safer.m4: Remove file.
5095         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
5096         (configure.ac): Remove gl_TMPFILE_SAFER call.
5097         (Makefile.am): Augment lib_SOURCES.
5098
5099 2011-05-23  Bruno Haible  <bruno@clisp.org>
5100
5101         popen-safer: Move AC_LIBOBJ invocations to module description.
5102         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
5103         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
5104         (configure.ac): Remove gl_POPEN_SAFER call.
5105         (Makefile.am): Augment lib_SOURCES.
5106
5107 2011-05-23  Bruno Haible  <bruno@clisp.org>
5108
5109         freopen-safer: Move AC_LIBOBJ invocations to module description.
5110         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
5111         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
5112         (configure.ac): Remove gl_FREOPEN_SAFER call.
5113         (Makefile.am): Augment lib_SOURCES.
5114
5115 2011-05-23  Bruno Haible  <bruno@clisp.org>
5116
5117         fopen-safer: Move AC_LIBOBJ invocations to module description.
5118         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
5119         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
5120         (configure.ac): Remove gl_FOPEN_SAFER call.
5121         (Makefile.am): Augment lib_SOURCES.
5122
5123 2011-05-23  Bruno Haible  <bruno@clisp.org>
5124
5125         crypto/sha512: Move AC_LIBOBJ invocations to module description.
5126         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
5127         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
5128
5129 2011-05-23  Bruno Haible  <bruno@clisp.org>
5130
5131         crypto/sha256: Move AC_LIBOBJ invocations to module description.
5132         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
5133         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
5134
5135 2011-05-23  Bruno Haible  <bruno@clisp.org>
5136
5137         crypto/sha1: Move AC_LIBOBJ invocations to module description.
5138         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
5139         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
5140
5141 2011-05-23  Bruno Haible  <bruno@clisp.org>
5142
5143         settime: Move AC_LIBOBJ invocations to module description.
5144         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
5145         * modules/settime (Makefile.am): Augment lib_SOURCES.
5146
5147 2011-05-23  Bruno Haible  <bruno@clisp.org>
5148
5149         savedir: Move AC_LIBOBJ invocations to module description.
5150         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
5151         * modules/savedir (Makefile.am): Augment lib_SOURCES.
5152
5153 2011-05-23  Bruno Haible  <bruno@clisp.org>
5154
5155         save-cwd: Move AC_LIBOBJ invocations to module description.
5156         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
5157         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
5158
5159 2011-05-23  Bruno Haible  <bruno@clisp.org>
5160
5161         same: Move AC_LIBOBJ invocations to module description.
5162         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
5163         * modules/same (Makefile.am): Augment lib_SOURCES.
5164
5165 2011-05-23  Bruno Haible  <bruno@clisp.org>
5166
5167         safe-write: Move AC_LIBOBJ invocations to module description.
5168         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
5169         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
5170         instead of gl_SAFE_WRITE.
5171         (Makefile.am): Augment lib_SOURCES.
5172
5173 2011-05-23  Bruno Haible  <bruno@clisp.org>
5174
5175         safe-read: Move AC_LIBOBJ invocations to module description.
5176         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
5177         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
5178         of gl_SAFE_READ.
5179         (Makefile.am): Augment lib_SOURCES.
5180
5181 2011-05-23  Bruno Haible  <bruno@clisp.org>
5182
5183         safe-alloc: Move AC_LIBOBJ invocations to module description.
5184         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
5185         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
5186
5187 2011-05-23  Bruno Haible  <bruno@clisp.org>
5188
5189         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
5190         * m4/rijndael.m4: Remove file.
5191         * modules/crypto/rijndael (Files): Remove it.
5192         (configure.ac): Remove gl_RIJNDAEL call.
5193         (Makefile.am): Augment lib_SOURCES.
5194
5195 2011-05-23  Bruno Haible  <bruno@clisp.org>
5196
5197         readtokens: Move AC_LIBOBJ invocations to module description.
5198         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
5199         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
5200
5201 2011-05-23  Bruno Haible  <bruno@clisp.org>
5202
5203         read-file: Move AC_LIBOBJ invocations to module description.
5204         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
5205         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
5206         of gl_FUNC_READ_FILE.
5207         (Makefile.am): Augment lib_SOURCES.
5208
5209 2011-05-23  Bruno Haible  <bruno@clisp.org>
5210
5211         quotearg: Move AC_LIBOBJ invocations to module description.
5212         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
5213         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
5214
5215 2011-05-23  Bruno Haible  <bruno@clisp.org>
5216
5217         quote: Move AC_LIBOBJ invocations to module description.
5218         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
5219         * modules/quote (Makefile.am): Augment lib_SOURCES.
5220
5221 2011-05-23  Bruno Haible  <bruno@clisp.org>
5222
5223         posixver: Move AC_LIBOBJ invocations to module description.
5224         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
5225         * modules/posixver (Makefile.am): Augment lib_SOURCES.
5226
5227 2011-05-23  Bruno Haible  <bruno@clisp.org>
5228
5229         posixtm: Move AC_LIBOBJ invocations to module description.
5230         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
5231         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
5232
5233 2011-05-23  Bruno Haible  <bruno@clisp.org>
5234
5235         physmem: Move AC_LIBOBJ invocations to module description.
5236         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
5237         * modules/physmem (Makefile.am): Augment lib_SOURCES.
5238
5239 2011-05-23  Bruno Haible  <bruno@clisp.org>
5240
5241         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
5242         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
5243         invocation.
5244         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
5245
5246 2011-05-23  Bruno Haible  <bruno@clisp.org>
5247
5248         mpsort: Move AC_LIBOBJ invocations to module description.
5249         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
5250         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
5251
5252 2011-05-23  Bruno Haible  <bruno@clisp.org>
5253
5254         modechange: Move AC_LIBOBJ invocations to module description.
5255         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
5256         * modules/modechange (Makefile.am): Augment lib_SOURCES.
5257
5258 2011-05-23  Bruno Haible  <bruno@clisp.org>
5259
5260         mkdir-p: Move AC_LIBOBJ invocations to module description.
5261         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
5262         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
5263
5264 2011-05-23  Bruno Haible  <bruno@clisp.org>
5265
5266         mkancesdirs: Move AC_LIBOBJ invocations to module description.
5267         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
5268         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
5269
5270 2011-05-23  Bruno Haible  <bruno@clisp.org>
5271
5272         mgetgroups: Move AC_LIBOBJ invocations to module description.
5273         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
5274         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
5275
5276 2011-05-23  Bruno Haible  <bruno@clisp.org>
5277
5278         memxor: Move AC_LIBOBJ invocations to module description.
5279         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
5280         * modules/memxor (Makefile.am): Augment lib_SOURCES.
5281
5282 2011-05-23  Bruno Haible  <bruno@clisp.org>
5283
5284         memcoll: Move AC_LIBOBJ invocations to module description.
5285         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
5286         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
5287
5288 2011-05-23  Bruno Haible  <bruno@clisp.org>
5289
5290         memcasecmp: Move AC_LIBOBJ invocations to module description.
5291         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
5292         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
5293
5294 2011-05-23  Bruno Haible  <bruno@clisp.org>
5295
5296         crypto/md5: Move AC_LIBOBJ invocations to module description.
5297         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
5298         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
5299
5300 2011-05-23  Bruno Haible  <bruno@clisp.org>
5301
5302         crypto/md4: Move AC_LIBOBJ invocations to module description.
5303         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
5304         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
5305
5306 2011-05-23  Bruno Haible  <bruno@clisp.org>
5307
5308         crypto/md2: Move AC_LIBOBJ invocations to module description.
5309         * m4/md2.m4: Remove file.
5310         * modules/crypto/md2 (Files): Remove it.
5311         (configure.ac): Remove gl_MD2 call.
5312         (Makefile.am): Augment lib_SOURCES.
5313
5314 2011-05-23  Bruno Haible  <bruno@clisp.org>
5315
5316         long-options: Move AC_LIBOBJ invocations to module description.
5317         * m4/long-options.m4: Remove file.
5318         * modules/long-options (Files): Remove it.
5319         (configure.ac): Remove gl_LONG_OPTIONS call.
5320         (Makefile.am): Augment lib_SOURCES.
5321
5322 2011-05-23  Bruno Haible  <bruno@clisp.org>
5323
5324         i-ring: Move AC_LIBOBJ invocations to module description.
5325         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
5326         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
5327
5328 2011-05-23  Bruno Haible  <bruno@clisp.org>
5329
5330         idcache: Move AC_LIBOBJ invocations to module description.
5331         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
5332         * modules/idcache (Makefile.am): Augment lib_SOURCES.
5333
5334 2011-05-23  Bruno Haible  <bruno@clisp.org>
5335
5336         human: Move AC_LIBOBJ invocations to module description.
5337         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
5338         * modules/human (Makefile.am): Augment lib_SOURCES.
5339
5340 2011-05-23  Bruno Haible  <bruno@clisp.org>
5341
5342         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
5343         * m4/hmac-sha1.m4: Remove file.
5344         * modules/crypto/hmac-sha1 (Files): Remove it.
5345         (configure.ac): Remove gl_HMAC_SHA1 call.
5346         (Makefile.am): Augment lib_SOURCES.
5347
5348 2011-05-23  Bruno Haible  <bruno@clisp.org>
5349
5350         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
5351         * m4/hmac-md5.m4: Remove file.
5352         * modules/crypto/hmac-md5 (Files): Remove it.
5353         (configure.ac): Remove gl_HMAC_MD5 call.
5354         (Makefile.am): Augment lib_SOURCES.
5355
5356 2011-05-23  Bruno Haible  <bruno@clisp.org>
5357
5358         hash: Move AC_LIBOBJ invocations to module description.
5359         * m4/hash.m4: Remove file.
5360         * modules/hash (Files): Remove it.
5361         (configure.ac): Remove gl_HASH call.
5362         (Makefile.am): Augment lib_SOURCES.
5363
5364 2011-05-23  Bruno Haible  <bruno@clisp.org>
5365
5366         hard-locale: Move AC_LIBOBJ invocations to module description.
5367         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
5368         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
5369
5370 2011-05-23  Bruno Haible  <bruno@clisp.org>
5371
5372         getugroups: Move AC_LIBOBJ invocations to module description.
5373         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
5374         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
5375
5376 2011-05-23  Bruno Haible  <bruno@clisp.org>
5377
5378         gettime: Move AC_LIBOBJ invocations to module description.
5379         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
5380         * modules/gettime (Makefile.am): Augment lib_SOURCES.
5381
5382 2011-05-23  Bruno Haible  <bruno@clisp.org>
5383
5384         getndelim2: Move AC_LIBOBJ invocations to module description.
5385         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
5386         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
5387
5388 2011-05-23  Bruno Haible  <bruno@clisp.org>
5389
5390         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
5391         * m4/gc-pbkdf2-sha1.m4: Remove file.
5392         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
5393         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
5394         (Makefile.am): Augment lib_SOURCES.
5395
5396 2011-05-23  Bruno Haible  <bruno@clisp.org>
5397
5398         fts: Move AC_LIBOBJ invocations to module description.
5399         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
5400         * modules/fts (configure.ac): ... to here.
5401
5402 2011-05-23  Bruno Haible  <bruno@clisp.org>
5403
5404         file-type: Move AC_LIBOBJ invocations to module description.
5405         * m4/file-type.m4: Remove file.
5406         * modules/file-type (Files): Remove it.
5407         (configure.ac): Remove gl_FILE_TYPE call.
5408         (Makefile.am): Augment lib_SOURCES.
5409
5410 2011-05-23  Bruno Haible  <bruno@clisp.org>
5411
5412         filenamecat*: Respect rules for use of AC_LIBOBJ.
5413         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
5414         Remove AC_LIBOBJ invocation.
5415         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
5416         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
5417
5418 2011-05-23  Bruno Haible  <bruno@clisp.org>
5419
5420         filemode: Move AC_LIBOBJ invocations to module description.
5421         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
5422         * modules/filemode (Makefile.am): Augment lib_SOURCES.
5423
5424 2011-05-23  Bruno Haible  <bruno@clisp.org>
5425
5426         openat-safer: Move AC_LIBOBJ invocations to module description.
5427         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
5428         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
5429
5430 2011-05-23  Bruno Haible  <bruno@clisp.org>
5431
5432         fcntl-safer: Move AC_LIBOBJ invocations to module description.
5433         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
5434         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
5435
5436 2011-05-23  Bruno Haible  <bruno@clisp.org>
5437
5438         exclude: Move AC_LIBOBJ invocations to module description.
5439         * m4/exclude.m4: Remove file.
5440         * modules/exclude (Files): Remove it.
5441         (configure.ac): Remove gl_EXCLUDE call.
5442         (Makefile.am): Augment lib_SOURCES.
5443
5444 2011-05-23  Bruno Haible  <bruno@clisp.org>
5445
5446         dirname*: Respect rules for use of AC_LIBOBJ.
5447         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
5448         invocations.
5449         * modules/dirname (Makefile.am): Augment lib_SOURCES.
5450         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
5451
5452 2011-05-23  Bruno Haible  <bruno@clisp.org>
5453
5454         dirent-safer: Move AC_LIBOBJ invocations to module description.
5455         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
5456         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
5457
5458 2011-05-23  Bruno Haible  <bruno@clisp.org>
5459
5460         crypto/des: Move AC_LIBOBJ invocations to module description.
5461         * m4/des.m4: Remove file.
5462         * modules/crypto/des (Files): Remove it.
5463         (configure.ac): Remove gl_DES call.
5464         (Makefile.am): Augment lib_SOURCES.
5465
5466 2011-05-23  Bruno Haible  <bruno@clisp.org>
5467
5468         cycle-check: Move AC_LIBOBJ invocations to module description.
5469         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
5470         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
5471
5472 2011-05-23  Bruno Haible  <bruno@clisp.org>
5473
5474         c-strtold: Move AC_LIBOBJ invocations to module description.
5475         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
5476         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
5477
5478 2011-05-23  Bruno Haible  <bruno@clisp.org>
5479
5480         c-strtod: Move AC_LIBOBJ invocations to module description.
5481         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
5482         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
5483
5484 2011-05-23  Bruno Haible  <bruno@clisp.org>
5485
5486         crc: Move AC_LIBOBJ invocations to module description.
5487         * m4/crc.m4: Remove file.
5488         * modules/crc (Files): Remove it.
5489         (configure.ac): Remove gl_CRC call.
5490         (Makefile.am): Augment lib_SOURCES.
5491
5492 2011-05-23  Bruno Haible  <bruno@clisp.org>
5493
5494         close-stream: Move AC_LIBOBJ invocations to module description.
5495         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
5496         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
5497
5498 2011-05-23  Bruno Haible  <bruno@clisp.org>
5499
5500         closeout: Move AC_LIBOBJ invocations to module description.
5501         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
5502         * modules/closeout (Makefile.am): Augment lib_SOURCES.
5503
5504 2011-05-23  Bruno Haible  <bruno@clisp.org>
5505
5506         closein: Move AC_LIBOBJ invocations to module description.
5507         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
5508         * modules/closein (Makefile.am): Augment lib_SOURCES.
5509
5510 2011-05-23  Bruno Haible  <bruno@clisp.org>
5511
5512         cloexec: Move AC_LIBOBJ invocations to module description.
5513         * m4/cloexec.m4: Remove file.
5514         * modules/cloexec (Files): Remove it.
5515         (configure.ac): Remove gl_CLOEXEC call.
5516         (Makefile.am): Augment lib_SOURCES.
5517
5518 2011-05-23  Bruno Haible  <bruno@clisp.org>
5519
5520         check-version: Move AC_LIBOBJ invocations to module description.
5521         * m4/check-version.m4: Remove file.
5522         * modules/check-version (Files): Remove it.
5523         (configure.ac): Remove gl_CHECK_VERSION call.
5524         (Makefile.am): Augment lib_SOURCES.
5525
5526 2011-05-23  Bruno Haible  <bruno@clisp.org>
5527
5528         chdir-safer: Move AC_LIBOBJ invocations to module description.
5529         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
5530         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
5531
5532 2011-05-23  Bruno Haible  <bruno@clisp.org>
5533
5534         canonicalize: Move AC_LIBOBJ invocations to module description.
5535         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
5536         AC_LIBOBJ invocation.
5537         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
5538
5539 2011-05-23  Bruno Haible  <bruno@clisp.org>
5540
5541         canon-host: Move AC_LIBOBJ invocations to module description.
5542         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
5543         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
5544         instead of gl_CANON_HOST.
5545         (Makefile.am): Augment lib_SOURCES.
5546
5547 2011-05-23  Bruno Haible  <bruno@clisp.org>
5548
5549         backupfile: Move AC_LIBOBJ invocations to module description.
5550         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
5551         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
5552
5553 2011-05-23  Bruno Haible  <bruno@clisp.org>
5554
5555         argmatch: Move AC_LIBOBJ invocations to module description.
5556         * m4/argmatch.m4: Remove file.
5557         * modules/argmatch (Files): Remove it.
5558         (configure.ac): Remove gl_ARGMATCH call.
5559         (Makefile.am): Augment lib_SOURCES.
5560
5561 2011-05-23  Bruno Haible  <bruno@clisp.org>
5562
5563         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
5564         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
5565         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
5566
5567 2011-05-23  Bruno Haible  <bruno@clisp.org>
5568
5569         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
5570         * m4/arcfour.m4: Remove file.
5571         * modules/crypto/arcfour (Files): Remove it.
5572         (configure.ac): Remove gl_ARCFOUR call.
5573         (Makefile.am): Augment lib_SOURCES.
5574
5575 2011-05-22  Bruno Haible  <bruno@clisp.org>
5576
5577         write: Move AC_LIBOBJ invocations to module description.
5578         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
5579         * modules/write (configure.ac): ... to here.
5580
5581 2011-05-22  Bruno Haible  <bruno@clisp.org>
5582
5583         wmemset: Move AC_LIBOBJ invocations to module description.
5584         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
5585         here...
5586         * modules/wmemset (configure.ac): ... to here.
5587
5588 2011-05-22  Bruno Haible  <bruno@clisp.org>
5589
5590         wmemmove: Move AC_LIBOBJ invocations to module description.
5591         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
5592         here...
5593         * modules/wmemmove (configure.ac): ... to here.
5594
5595 2011-05-22  Bruno Haible  <bruno@clisp.org>
5596
5597         wmemcpy: Move AC_LIBOBJ invocations to module description.
5598         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
5599         here...
5600         * modules/wmemcpy (configure.ac): ... to here.
5601
5602 2011-05-22  Bruno Haible  <bruno@clisp.org>
5603
5604         wmemcmp: Move AC_LIBOBJ invocations to module description.
5605         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
5606         here...
5607         * modules/wmemcmp (configure.ac): ... to here.
5608
5609 2011-05-22  Bruno Haible  <bruno@clisp.org>
5610
5611         wmemchr: Move AC_LIBOBJ invocations to module description.
5612         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
5613         here...
5614         * modules/wmemchr (configure.ac): ... to here.
5615
5616 2011-05-22  Bruno Haible  <bruno@clisp.org>
5617
5618         wcswidth: Move AC_LIBOBJ invocations to module description.
5619         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
5620         here...
5621         * modules/wcswidth (configure.ac): ... to here.
5622
5623 2011-05-22  Bruno Haible  <bruno@clisp.org>
5624
5625         wcwidth: Respect rules for use of AC_LIBOBJ.
5626         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
5627         invocation from here...
5628         * modules/wcwidth (configure.ac): ... to here.
5629         (Depends-on): Update conditions.
5630
5631 2011-05-22  Bruno Haible  <bruno@clisp.org>
5632
5633         wctype: Move AC_LIBOBJ invocations to module description.
5634         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
5635         invocation from here...
5636         * modules/wctype (configure.ac): ... to here.
5637         (Depends-on): Update conditions.
5638
5639 2011-05-22  Bruno Haible  <bruno@clisp.org>
5640
5641         wctrans: Move AC_LIBOBJ invocations to module description.
5642         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
5643         invocation from here...
5644         * modules/wctrans (configure.ac): ... to here.
5645
5646 2011-05-22  Bruno Haible  <bruno@clisp.org>
5647
5648         wctomb: Move AC_LIBOBJ invocations to module description.
5649         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
5650         invocations from here...
5651         * modules/wctomb (configure.ac): ... to here.
5652
5653 2011-05-22  Bruno Haible  <bruno@clisp.org>
5654
5655         wctob: Move AC_LIBOBJ invocations to module description.
5656         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
5657         gl_PREREQ_WCTOB invocations from here...
5658         * modules/wctob (configure.ac): ... to here.
5659         (Depends-on): Update conditions.
5660
5661 2011-05-22  Bruno Haible  <bruno@clisp.org>
5662
5663         wcsxfrm: Move AC_LIBOBJ invocations to module description.
5664         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
5665         here...
5666         * modules/wcsxfrm (configure.ac): ... to here.
5667
5668 2011-05-22  Bruno Haible  <bruno@clisp.org>
5669
5670         wcstok: Move AC_LIBOBJ invocations to module description.
5671         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
5672         * modules/wcstok (configure.ac): ... to here.
5673
5674 2011-05-22  Bruno Haible  <bruno@clisp.org>
5675
5676         wcsstr: Move AC_LIBOBJ invocations to module description.
5677         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
5678         * modules/wcsstr (configure.ac): ... to here.
5679
5680 2011-05-22  Bruno Haible  <bruno@clisp.org>
5681
5682         wcsspn: Move AC_LIBOBJ invocations to module description.
5683         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
5684         * modules/wcsspn (configure.ac): ... to here.
5685
5686 2011-05-22  Bruno Haible  <bruno@clisp.org>
5687
5688         wcsrtombs: Move AC_LIBOBJ invocations to module description.
5689         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
5690         gl_PREREQ_WCSRTOMBS invocations from here...
5691         * modules/wcsrtombs (configure.ac): ... to here.
5692
5693 2011-05-22  Bruno Haible  <bruno@clisp.org>
5694
5695         wcsrchr: Move AC_LIBOBJ invocations to module description.
5696         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
5697         here...
5698         * modules/wcsrchr (configure.ac): ... to here.
5699
5700 2011-05-22  Bruno Haible  <bruno@clisp.org>
5701
5702         wcspbrk: Move AC_LIBOBJ invocations to module description.
5703         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
5704         here...
5705         * modules/wcspbrk (configure.ac): ... to here.
5706
5707 2011-05-22  Bruno Haible  <bruno@clisp.org>
5708
5709         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
5710         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
5711         gl_PREREQ_WCSNRTOMBS invocations from here...
5712         * modules/wcsnrtombs (configure.ac): ... to here.
5713
5714 2011-05-22  Bruno Haible  <bruno@clisp.org>
5715
5716         wcsnlen: Move AC_LIBOBJ invocations to module description.
5717         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
5718         here...
5719         * modules/wcsnlen (configure.ac): ... to here.
5720
5721 2011-05-22  Bruno Haible  <bruno@clisp.org>
5722
5723         wcsncpy: Move AC_LIBOBJ invocations to module description.
5724         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
5725         here...
5726         * modules/wcsncpy (configure.ac): ... to here.
5727
5728 2011-05-22  Bruno Haible  <bruno@clisp.org>
5729
5730         wcsncmp: Move AC_LIBOBJ invocations to module description.
5731         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
5732         here...
5733         * modules/wcsncmp (configure.ac): ... to here.
5734
5735 2011-05-22  Bruno Haible  <bruno@clisp.org>
5736
5737         wcsncat: Move AC_LIBOBJ invocations to module description.
5738         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
5739         here...
5740         * modules/wcsncat (configure.ac): ... to here.
5741
5742 2011-05-22  Bruno Haible  <bruno@clisp.org>
5743
5744         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
5745         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
5746         from here...
5747         * modules/wcsncasecmp (configure.ac): ... to here.
5748
5749 2011-05-22  Bruno Haible  <bruno@clisp.org>
5750
5751         wcslen: Move AC_LIBOBJ invocations to module description.
5752         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
5753         * modules/wcslen (configure.ac): ... to here.
5754
5755 2011-05-22  Bruno Haible  <bruno@clisp.org>
5756
5757         wcsdup: Move AC_LIBOBJ invocations to module description.
5758         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
5759         * modules/wcsdup (configure.ac): ... to here.
5760
5761 2011-05-22  Bruno Haible  <bruno@clisp.org>
5762
5763         wcscspn: Move AC_LIBOBJ invocations to module description.
5764         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
5765         here...
5766         * modules/wcscspn (configure.ac): ... to here.
5767
5768 2011-05-22  Bruno Haible  <bruno@clisp.org>
5769
5770         wcscpy: Move AC_LIBOBJ invocations to module description.
5771         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
5772         * modules/wcscpy (configure.ac): ... to here.
5773
5774 2011-05-22  Bruno Haible  <bruno@clisp.org>
5775
5776         wcscoll: Move AC_LIBOBJ invocations to module description.
5777         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
5778         here...
5779         * modules/wcscoll (configure.ac): ... to here.
5780
5781 2011-05-22  Bruno Haible  <bruno@clisp.org>
5782
5783         wcscmp: Move AC_LIBOBJ invocations to module description.
5784         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
5785         * modules/wcscmp (configure.ac): ... to here.
5786
5787 2011-05-22  Bruno Haible  <bruno@clisp.org>
5788
5789         wcschr: Move AC_LIBOBJ invocations to module description.
5790         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
5791         * modules/wcschr (configure.ac): ... to here.
5792
5793 2011-05-22  Bruno Haible  <bruno@clisp.org>
5794
5795         wcscat: Move AC_LIBOBJ invocations to module description.
5796         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
5797         * modules/wcscat (configure.ac): ... to here.
5798
5799 2011-05-22  Bruno Haible  <bruno@clisp.org>
5800
5801         wcscasecmp: Move AC_LIBOBJ invocations to module description.
5802         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
5803         here...
5804         * modules/wcscasecmp (configure.ac): ... to here.
5805
5806 2011-05-22  Bruno Haible  <bruno@clisp.org>
5807
5808         wcrtomb: Move AC_LIBOBJ invocations to module description.
5809         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
5810         invocations from here...
5811         * modules/wcrtomb (configure.ac): ... to here.
5812
5813 2011-05-22  Bruno Haible  <bruno@clisp.org>
5814
5815         wcpncpy: Move AC_LIBOBJ invocations to module description.
5816         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
5817         here...
5818         * modules/wcpncpy (configure.ac): ... to here.
5819
5820 2011-05-22  Bruno Haible  <bruno@clisp.org>
5821
5822         wcpcpy: Move AC_LIBOBJ invocations to module description.
5823         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
5824         * modules/wcpcpy (configure.ac): ... to here.
5825
5826 2011-05-22  Bruno Haible  <bruno@clisp.org>
5827
5828         waitpid: Move AC_LIBOBJ invocations to module description.
5829         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
5830         invocation from here...
5831         * modules/waitpid (configure.ac): ... to here.
5832
5833 2011-05-22  Bruno Haible  <bruno@clisp.org>
5834
5835         utimensat: Move AC_LIBOBJ invocations to module description.
5836         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
5837         here...
5838         * modules/utimensat (configure.ac): ... to here.
5839
5840 2011-05-22  Bruno Haible  <bruno@clisp.org>
5841
5842         usleep: Move AC_LIBOBJ invocations to module description.
5843         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
5844         here...
5845         * modules/usleep (configure.ac): ... to here.
5846
5847 2011-05-22  Bruno Haible  <bruno@clisp.org>
5848
5849         unlockpt: Move AC_LIBOBJ invocations to module description.
5850         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
5851         gl_PREREQ_UNLOCKPT invocations from here...
5852         * modules/unlockpt (configure.ac): ... to here.
5853
5854 2011-05-22  Bruno Haible  <bruno@clisp.org>
5855
5856         unlink: Respect rules for use of AC_LIBOBJ.
5857         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
5858         * modules/unlink (configure.ac): ... to here.
5859
5860 2011-05-22  Bruno Haible  <bruno@clisp.org>
5861
5862         uname: Move AC_LIBOBJ invocations to module description.
5863         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
5864         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
5865         here...
5866         * modules/uname (configure.ac): ... to here.
5867
5868 2011-05-22  Bruno Haible  <bruno@clisp.org>
5869
5870         ttyname_r: Move AC_LIBOBJ invocations to module description.
5871         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
5872         gl_PREREQ_TTYNAME_R invocations from here...
5873         * modules/ttyname_r (configure.ac): ... to here.
5874
5875 2011-05-22  Bruno Haible  <bruno@clisp.org>
5876
5877         tsearch: Move AC_LIBOBJ invocations to module description.
5878         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
5879         invocations from here...
5880         * modules/tsearch (configure.ac): ... to here.
5881
5882 2011-05-22  Bruno Haible  <bruno@clisp.org>
5883
5884         towctrans: Move AC_LIBOBJ invocations to module description.
5885         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
5886         AC_LIBOBJ invocation from here...
5887         * modules/towctrans (configure.ac): ... to here.
5888
5889 2011-05-22  Bruno Haible  <bruno@clisp.org>
5890
5891         tmpfile: Move AC_LIBOBJ invocations to module description.
5892         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
5893         invocations from here...
5894         * modules/tmpfile (configure.ac): ... to here.
5895
5896 2011-05-22  Bruno Haible  <bruno@clisp.org>
5897
5898         times: Move AC_LIBOBJ invocations to module description.
5899         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
5900         * modules/times (configure.ac): ... to here.
5901
5902 2011-05-22  Bruno Haible  <bruno@clisp.org>
5903
5904         time_r: Move AC_LIBOBJ invocations to module description.
5905         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
5906         invocations from here...
5907         * modules/time_r (configure.ac): ... to here.
5908
5909 2011-05-22  Bruno Haible  <bruno@clisp.org>
5910
5911         timegm: Move AC_LIBOBJ invocations to module description.
5912         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
5913         invocations from here...
5914         * modules/timegm (configure.ac): ... to here.
5915
5916 2011-05-22  Bruno Haible  <bruno@clisp.org>
5917
5918         tcgetsid: Move AC_LIBOBJ invocations to module description.
5919         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
5920         and gl_PREREQ_TCGETSID invocations from here...
5921         * modules/tcgetsid (configure.ac): ... to here.
5922         (Depends-on): Update conditions.
5923
5924 2011-05-22  Bruno Haible  <bruno@clisp.org>
5925
5926         symlinkat: Move AC_LIBOBJ invocations to module description.
5927         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
5928         here...
5929         * modules/symlinkat (configure.ac): ... to here.
5930
5931 2011-05-22  Bruno Haible  <bruno@clisp.org>
5932
5933         symlink: Move AC_LIBOBJ invocations to module description.
5934         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
5935         here...
5936         * modules/symlink (configure.ac): ... to here.
5937
5938 2011-05-22  Bruno Haible  <bruno@clisp.org>
5939
5940         strverscmp: Move AC_LIBOBJ invocations to module description.
5941         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
5942         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
5943         from here...
5944         * modules/strverscmp (configure.ac): ... to here.
5945
5946 2011-05-22  Bruno Haible  <bruno@clisp.org>
5947
5948         strtok_r: Move AC_LIBOBJ invocations to module description.
5949         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
5950         and gl_PREREQ_STRTOK_R invocations from here...
5951         * modules/strtok_r (configure.ac): ... to here.
5952         (Depends-on): Update conditions.
5953
5954 2011-05-22  Bruno Haible  <bruno@clisp.org>
5955
5956         strtoumax: Move AC_LIBOBJ invocations to module description.
5957         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
5958         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
5959         from here...
5960         * modules/strtoumax (configure.ac): ... to here.
5961
5962 2011-05-22  Bruno Haible  <bruno@clisp.org>
5963
5964         strtoimax: Move AC_LIBOBJ invocations to module description.
5965         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
5966         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
5967         from here...
5968         * modules/strtoimax (configure.ac): ... to here.
5969
5970 2011-05-22  Bruno Haible  <bruno@clisp.org>
5971
5972         strtoull: Move AC_LIBOBJ invocations to module description.
5973         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
5974         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
5975         from here...
5976         * modules/strtoull (configure.ac): ... to here.
5977
5978 2011-05-22  Bruno Haible  <bruno@clisp.org>
5979
5980         strtoll: Move AC_LIBOBJ invocations to module description.
5981         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
5982         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
5983         here...
5984         * modules/strtoll (configure.ac): ... to here.
5985
5986 2011-05-22  Bruno Haible  <bruno@clisp.org>
5987
5988         strtoul: Move AC_LIBOBJ invocations to module description.
5989         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
5990         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
5991         * modules/strtoul (configure.ac): ... to here.
5992
5993 2011-05-22  Bruno Haible  <bruno@clisp.org>
5994
5995         strtol: Move AC_LIBOBJ invocations to module description.
5996         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
5997         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
5998         * modules/strtol (configure.ac): ... to here.
5999
6000 2011-05-22  Bruno Haible  <bruno@clisp.org>
6001
6002         strtod: Move AC_LIBOBJ invocations to module description.
6003         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
6004         invocations from here...
6005         * modules/strtod (configure.ac): ... to here.
6006
6007 2011-05-22  Bruno Haible  <bruno@clisp.org>
6008
6009         strstr*: Move AC_LIBOBJ invocations to module description.
6010         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
6011         invocations from here...
6012         * modules/strstr-simple (configure.ac): ... to here.
6013         * modules/strstr (configure.ac): ... and here.
6014
6015 2011-05-22  Bruno Haible  <bruno@clisp.org>
6016
6017         strsignal: Move AC_LIBOBJ invocations to module description.
6018         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
6019         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
6020         * modules/strsignal (configure.ac): ... to here.
6021         (Depends-on): Update conditions.
6022
6023 2011-05-22  Bruno Haible  <bruno@clisp.org>
6024
6025         strsep: Move AC_LIBOBJ invocations to module description.
6026         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
6027         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
6028         here...
6029         * modules/strsep (configure.ac): ... to here.
6030
6031 2011-05-22  Bruno Haible  <bruno@clisp.org>
6032
6033         strptime: Move AC_LIBOBJ invocations to module description.
6034         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
6035         gl_PREREQ_STRPTIME invocations from here...
6036         * modules/strptime (configure.ac): ... to here.
6037
6038 2011-05-22  Bruno Haible  <bruno@clisp.org>
6039
6040         strpbrk: Move AC_LIBOBJ invocations to module description.
6041         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
6042         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
6043         here...
6044         * modules/strpbrk (configure.ac): ... to here.
6045
6046 2011-05-22  Bruno Haible  <bruno@clisp.org>
6047
6048         strnlen: Move AC_LIBOBJ invocations to module description.
6049         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
6050         invocations from here...
6051         * modules/strnlen (configure.ac): ... to here.
6052
6053 2011-05-22  Bruno Haible  <bruno@clisp.org>
6054
6055         strndup: Move AC_LIBOBJ invocations to module description.
6056         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
6057         invocations from here...
6058         * modules/strndup (configure.ac): ... to here.
6059         (Depends-on): Update conditions.
6060
6061 2011-05-22  Bruno Haible  <bruno@clisp.org>
6062
6063         strncat: Move AC_LIBOBJ invocations to module description.
6064         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
6065         invocations from here...
6066         * modules/strncat (configure.ac): ... to here.
6067
6068 2011-05-22  Bruno Haible  <bruno@clisp.org>
6069
6070         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
6071         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
6072         invocations from here...
6073         * modules/strdup (configure.ac): ... to here.
6074         * modules/strdup-posix (configure.ac): ... and here.
6075
6076 2011-05-22  Bruno Haible  <bruno@clisp.org>
6077
6078         strcspn: Move AC_LIBOBJ invocations to module description.
6079         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
6080         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
6081         here...
6082         * modules/strcspn (configure.ac): ... to here.
6083
6084 2011-05-22  Bruno Haible  <bruno@clisp.org>
6085
6086         strchrnul: Move AC_LIBOBJ invocations to module description.
6087         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
6088         gl_PREREQ_STRCHRNUL invocations from here...
6089         * modules/strchrnul (configure.ac): ... to here.
6090
6091 2011-05-22  Bruno Haible  <bruno@clisp.org>
6092
6093         strcasestr*: Move AC_LIBOBJ invocations to module description.
6094         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
6095         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
6096         * modules/strcasestr-simple (configure.ac): ... to here.
6097         * modules/strcasestr (configure.ac): ... and here.
6098
6099 2011-05-22  Bruno Haible  <bruno@clisp.org>
6100
6101         strcase: Move AC_LIBOBJ invocations to module description.
6102         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
6103         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
6104         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
6105         gl_PREREQ_STRNCASECMP invocations from here...
6106         * modules/strcase (configure.ac): ... to here.
6107
6108 2011-05-22  Bruno Haible  <bruno@clisp.org>
6109
6110         stpncpy: Move AC_LIBOBJ invocations to module description.
6111         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
6112         here...
6113         * modules/stpncpy (configure.ac): ... to here.
6114
6115 2011-05-22  Bruno Haible  <bruno@clisp.org>
6116
6117         stpcpy: Move AC_LIBOBJ invocations to module description.
6118         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
6119         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
6120         here...
6121         * modules/stpcpy (configure.ac): ... to here.
6122
6123 2011-05-21  Bruno Haible  <bruno@clisp.org>
6124
6125         stat: Move AC_LIBOBJ invocations to module description.
6126         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
6127         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
6128         here...
6129         * modules/stat (configure.ac): ... to here.
6130
6131 2011-05-21  Bruno Haible  <bruno@clisp.org>
6132
6133         sleep: Move AC_LIBOBJ invocations to module description.
6134         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
6135         * modules/sleep (configure.ac): ... to here.
6136
6137 2011-05-21  Bruno Haible  <bruno@clisp.org>
6138
6139         signbit: Move AC_LIBOBJ invocations to module description.
6140         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
6141         * modules/signbit (configure.ac): ... to here.
6142
6143 2011-05-21  Bruno Haible  <bruno@clisp.org>
6144
6145         sigprocmask: Move AC_LIBOBJ invocations to module description.
6146         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
6147         gl_PREREQ_SIGPROMASK invocations from here...
6148         * modules/sigprocmask (configure.ac): ... to here.
6149
6150 2011-05-21  Bruno Haible  <bruno@clisp.org>
6151
6152         sigaction: Move AC_LIBOBJ invocations to module description.
6153         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
6154         gl_PREREQ_SIGACTION invocations from here...
6155         * modules/sigaction (configure.ac): ... to here.
6156
6157 2011-05-21  Bruno Haible  <bruno@clisp.org>
6158
6159         sig2str: Move AC_LIBOBJ invocations to module description.
6160         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
6161         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
6162         here...
6163         * modules/sig2str (configure.ac): ... to here.
6164
6165 2011-05-21  Bruno Haible  <bruno@clisp.org>
6166
6167         setlocale: Move AC_LIBOBJ invocations to module description.
6168         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
6169         gl_PREREQ_SETLOCALE invocations from here...
6170         * modules/setlocale (configure.ac): ... to here.
6171
6172 2011-05-21  Bruno Haible  <bruno@clisp.org>
6173
6174         unsetenv: Move AC_LIBOBJ invocations to module description.
6175         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
6176         and gl_PREREQ_UNSETENV invocations from here...
6177         * modules/unsetenv (configure.ac): ... to here.
6178         (Depends-on): Update.
6179
6180 2011-05-21  Bruno Haible  <bruno@clisp.org>
6181
6182         setenv: Move AC_LIBOBJ invocations to module description.
6183         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
6184         here...
6185         * modules/setenv (configure.ac): ... to here.
6186
6187 2011-05-21  Bruno Haible  <bruno@clisp.org>
6188
6189         selinux-h: Move AC_LIBOBJ invocations to module description.
6190         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
6191         AC_LIBOBJ invocation from here...
6192         * modules/selinux-h (configure.ac): ... to here.
6193
6194 2011-05-21  Bruno Haible  <bruno@clisp.org>
6195
6196         select: Respect rules for use of AC_LIBOBJ.
6197         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
6198         here...
6199         * modules/select (configure.ac): ... to here.
6200
6201 2011-05-21  Bruno Haible  <bruno@clisp.org>
6202
6203         scandir: Move AC_LIBOBJ invocations to module description.
6204         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
6205         invocations from here...
6206         * modules/scandir (configure.ac): ... to here.
6207
6208 2011-05-21  Bruno Haible  <bruno@clisp.org>
6209
6210         rpmatch: Move AC_LIBOBJ invocations to module description.
6211         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
6212         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
6213         here...
6214         * modules/rpmatch (configure.ac): ... to here.
6215
6216 2011-05-21  Bruno Haible  <bruno@clisp.org>
6217
6218         rmdir: Respect rules for use of AC_LIBOBJ.
6219         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
6220         * modules/rmdir (configure.ac): ... to here.
6221
6222 2011-05-21  Bruno Haible  <bruno@clisp.org>
6223
6224         renameat: Move AC_LIBOBJ invocations to module description.
6225         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
6226         here...
6227         * modules/renameat (configure.ac): ... to here.
6228
6229 2011-05-21  Bruno Haible  <bruno@clisp.org>
6230
6231         rename: Respect rules for use of AC_LIBOBJ.
6232         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
6233         here...
6234         * modules/rename (configure.ac): ... to here.
6235
6236 2011-05-21  Bruno Haible  <bruno@clisp.org>
6237
6238         remove: Move AC_LIBOBJ invocations to module description.
6239         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
6240         here...
6241         * modules/remove (configure.ac): ... to here.
6242
6243 2011-05-21  Bruno Haible  <bruno@clisp.org>
6244
6245         relocatable-lib: Move AC_LIBOBJ invocations to module description.
6246         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
6247         macro.
6248         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
6249         * modules/relocatable-lib (configure.ac): ... to here.
6250         * modules/relocatable-prog-wrapper (configure.ac): Invoke
6251         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
6252
6253 2011-05-21  Bruno Haible  <bruno@clisp.org>
6254
6255         relocatable-prog: Move AC_LIBOBJ invocations to module description.
6256         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
6257         here...
6258         * modules/relocatable-prog (configure.ac): ... to here.
6259
6260 2011-05-21  Bruno Haible  <bruno@clisp.org>
6261
6262         regex: Move AC_LIBOBJ invocations to module description.
6263         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
6264         invocations from here...
6265         * modules/regex (configure.ac): ... to here.
6266
6267 2011-05-21  Bruno Haible  <bruno@clisp.org>
6268
6269         realloc-*: Move AC_LIBOBJ invocations to module description.
6270         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
6271         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
6272         AC_LIBOBJ invocations from here...
6273         * modules/realloc-gnu (configure.ac): ... to here.
6274         * modules/realloc-posix (configure.ac): ... and here.
6275
6276 2011-05-21  Bruno Haible  <bruno@clisp.org>
6277
6278         readutmp: Move AC_LIBOBJ invocations to module description.
6279         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
6280         * modules/readutmp (configure.ac): ... to here.
6281
6282 2011-05-21  Bruno Haible  <bruno@clisp.org>
6283
6284         readlinkat: Move AC_LIBOBJ invocations to module description.
6285         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
6286         here...
6287         * modules/readlinkat (configure.ac): ... to here.
6288
6289 2011-05-21  Bruno Haible  <bruno@clisp.org>
6290
6291         readlink: Move AC_LIBOBJ invocations to module description.
6292         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
6293         gl_PREREQ_READLINK invocations from here...
6294         * modules/readlink (configure.ac): ... to here.
6295
6296 2011-05-21  Bruno Haible  <bruno@clisp.org>
6297
6298         readline: Move AC_LIBOBJ invocations to module description.
6299         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
6300         gl_PREREQ_READLINE invocations from here...
6301         * modules/readline (configure.ac): ... to here.
6302
6303 2011-05-21  Bruno Haible  <bruno@clisp.org>
6304
6305         read: Move AC_LIBOBJ invocations to module description.
6306         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
6307         * modules/read (configure.ac): ... to here.
6308
6309 2011-05-21  Bruno Haible  <bruno@clisp.org>
6310
6311         rawmemchr: Move AC_LIBOBJ invocations to module description.
6312         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
6313         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
6314         from here...
6315         * modules/rawmemchr (configure.ac): ... to here.
6316
6317 2011-05-21  Bruno Haible  <bruno@clisp.org>
6318
6319         random_r: Move AC_LIBOBJ invocations to module description.
6320         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
6321         gl_PREREQ_RANDOM_R invocations from here...
6322         * modules/random_r (configure.ac): ... to here.
6323
6324 2011-05-21  Bruno Haible  <bruno@clisp.org>
6325
6326         pwrite: Move AC_LIBOBJ invocations to module description.
6327         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
6328         * modules/pwrite (configure.ac): ... to here.
6329
6330 2011-05-21  Bruno Haible  <bruno@clisp.org>
6331
6332         putenv: Move AC_LIBOBJ invocations to module description.
6333         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
6334         * modules/putenv (configure.ac): ... to here.
6335
6336 2011-05-21  Bruno Haible  <bruno@clisp.org>
6337
6338         login_tty: Move AC_LIBOBJ invocations to module description.
6339         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
6340         * modules/login_tty (configure.ac): ... to here.
6341
6342 2011-05-21  Bruno Haible  <bruno@clisp.org>
6343
6344         openpty: Move AC_LIBOBJ invocations to module description.
6345         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
6346         * modules/openpty (configure.ac): ... to here.
6347
6348 2011-05-21  Bruno Haible  <bruno@clisp.org>
6349
6350         forkpty: Move AC_LIBOBJ invocations to module description.
6351         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
6352         * modules/forkpty (configure.ac): ... to here.
6353
6354 2011-05-21  Bruno Haible  <bruno@clisp.org>
6355
6356         ptsname: Move AC_LIBOBJ invocations to module description.
6357         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
6358         invocations from here...
6359         * modules/ptsname (configure.ac): ... to here.
6360
6361 2011-05-21  Bruno Haible  <bruno@clisp.org>
6362
6363         pread: Move AC_LIBOBJ invocations to module description.
6364         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
6365         * modules/pread (configure.ac): ... to here.
6366
6367 2011-05-21  Bruno Haible  <bruno@clisp.org>
6368
6369         posix_spawn*: Move AC_LIBOBJ invocations to module description.
6370         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
6371         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
6372         * modules/posix_spawn (configure.ac): ... to here.
6373         * modules/posix_spawnp (configure.ac): ... and here.
6374
6375 2011-05-21  Bruno Haible  <bruno@clisp.org>
6376
6377         popen: Move AC_LIBOBJ invocations to module description.
6378         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
6379         invocations from here...
6380         * modules/popen (configure.ac): ... to here.
6381
6382 2011-05-21  Bruno Haible  <bruno@clisp.org>
6383
6384         poll: Move AC_LIBOBJ invocations to module description.
6385         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
6386         invocations from here...
6387         * modules/poll (configure.ac): ... to here.
6388
6389 2011-05-21  Bruno Haible  <bruno@clisp.org>
6390
6391         pipe-posix: Move AC_LIBOBJ invocations to module description.
6392         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
6393         * modules/pipe-posix (configure.ac): ... to here.
6394
6395 2011-05-21  Bruno Haible  <bruno@clisp.org>
6396
6397         openat: Respect rules for use of AC_LIBOBJ.
6398         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
6399         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
6400         * modules/openat (configure.ac): ... to here.
6401
6402 2011-05-21  Bruno Haible  <bruno@clisp.org>
6403
6404         obstack-printf*: Move AC_LIBOBJ invocations to module description.
6405         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
6406         invocation from here...
6407         * modules/obstack-printf (configure.ac): ... to here.
6408         * modules/obstack-printf-posix (configure.ac): ... and here.
6409
6410 2011-05-21  Bruno Haible  <bruno@clisp.org>
6411
6412         nl_langinfo: Move AC_LIBOBJ invocations to module description.
6413         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
6414         from here...
6415         * modules/nl_langinfo (configure.ac): ... to here.
6416
6417 2011-05-21  Bruno Haible  <bruno@clisp.org>
6418
6419         nanosleep: Move AC_LIBOBJ invocations to module description.
6420         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
6421         gl_PREREQ_NANOSLEEP invocations from here...
6422         * modules/nanosleep (configure.ac): ... to here.
6423
6424 2011-05-21  Bruno Haible  <bruno@clisp.org>
6425
6426         mountlist: Move AC_LIBOBJ invocations to module description.
6427         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
6428         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
6429         * modules/mountlist (configure.ac): ... to here.
6430
6431 2011-05-21  Bruno Haible  <bruno@clisp.org>
6432
6433         mktime: Respect rules for use of AC_LIBOBJ.
6434         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
6435         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
6436         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
6437         (gl_FUNC_MKTIME_INTERNAL): ... and here...
6438         * modules/mktime (configure.ac): ... to here.
6439         * modules/mktime-internal (configure.ac): ... and here.
6440         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
6441
6442 2011-05-21  Bruno Haible  <bruno@clisp.org>
6443
6444         mkstemps: Move AC_LIBOBJ invocations to module description.
6445         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
6446         here...
6447         * modules/mkstemps (configure.ac): ... to here.
6448
6449 2011-05-21  Bruno Haible  <bruno@clisp.org>
6450
6451         mkstemp: Move AC_LIBOBJ invocations to module description.
6452         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
6453         gl_PREREQ_MKSTEMP invocations from here...
6454         * modules/mkstemp (configure.ac): ... to here.
6455
6456 2011-05-21  Bruno Haible  <bruno@clisp.org>
6457
6458         mkostemps: Move AC_LIBOBJ invocations to module description.
6459         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
6460         here...
6461         * modules/mkostemps (configure.ac): ... to here.
6462
6463 2011-05-21  Bruno Haible  <bruno@clisp.org>
6464
6465         mkostemp: Move AC_LIBOBJ invocations to module description.
6466         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
6467         gl_PREREQ_MKOSTEMP invocations from here...
6468         * modules/mkostemp (configure.ac): ... to here.
6469
6470 2011-05-21  Bruno Haible  <bruno@clisp.org>
6471
6472         mknod: Move AC_LIBOBJ invocations to module description.
6473         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
6474         * modules/mknod (configure.ac): ... to here.
6475
6476 2011-05-21  Bruno Haible  <bruno@clisp.org>
6477
6478         mkfifoat: Move AC_LIBOBJ invocations to module description.
6479         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
6480         here...
6481         * modules/mkfifoat (configure.ac): ... to here.
6482
6483 2011-05-21  Bruno Haible  <bruno@clisp.org>
6484
6485         mkfifo: Respect rules for use of AC_LIBOBJ.
6486         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
6487         here...
6488         * modules/mkfifo (configure.ac): ... to here.
6489
6490 2011-05-21  Bruno Haible  <bruno@clisp.org>
6491
6492         mkdtemp: Move AC_LIBOBJ invocations to module description.
6493         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
6494         invocations from here...
6495         * modules/mkdtemp (configure.ac): ... to here.
6496
6497 2011-05-21  Bruno Haible  <bruno@clisp.org>
6498
6499         mkdir: Move AC_LIBOBJ invocations to module description.
6500         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
6501         * modules/mkdir (configure.ac): ... to here.
6502
6503 2011-05-21  Bruno Haible  <bruno@clisp.org>
6504
6505         memset: Move AC_LIBOBJ invocations to module description.
6506         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
6507         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
6508         here...
6509         * modules/memset (configure.ac): ... to here.
6510
6511 2011-05-21  Bruno Haible  <bruno@clisp.org>
6512
6513         memrchr: Move AC_LIBOBJ invocations to module description.
6514         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
6515         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
6516         here...
6517         * modules/memrchr (configure.ac): ... to here.
6518
6519 2011-05-21  Bruno Haible  <bruno@clisp.org>
6520
6521         mempcpy: Move AC_LIBOBJ invocations to module description.
6522         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
6523         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
6524         here...
6525         * modules/mempcpy (configure.ac): ... to here.
6526
6527 2011-05-21  Bruno Haible  <bruno@clisp.org>
6528
6529         memmove: Move AC_LIBOBJ invocations to module description.
6530         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
6531         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
6532         here...
6533         * modules/memmove (configure.ac): ... to here.
6534
6535 2011-05-21  Bruno Haible  <bruno@clisp.org>
6536
6537         memmem*: Move AC_LIBOBJ invocations to module description.
6538         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
6539         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
6540         here...
6541         (gl_FUNC_MEMMEM): ... and here...
6542         * modules/memmem-simple (configure.ac): ... to here.
6543         * modules/memmem (configure.ac): ... and here.
6544
6545 2011-05-21  Bruno Haible  <bruno@clisp.org>
6546
6547         memcpy: Move AC_LIBOBJ invocations to module description.
6548         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
6549         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
6550         here...
6551         * modules/memcpy (configure.ac): ... to here.
6552
6553 2011-05-21  Bruno Haible  <bruno@clisp.org>
6554
6555         memcmp: Simplify autoconf macro.
6556         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
6557         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
6558         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
6559
6560 2011-05-21  Bruno Haible  <bruno@clisp.org>
6561
6562         memcmp: Move AC_LIBOBJ invocations to module description.
6563         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
6564         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
6565         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
6566         * modules/memcmp (configure.ac): ... to here.
6567         (Depends-on): Update conditions.
6568
6569 2011-05-21  Bruno Haible  <bruno@clisp.org>
6570
6571         memchr: Respect rules for use of AC_LIBOBJ.
6572         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
6573         invocations from here...
6574         * modules/memchr (configure.ac): ... to here.
6575
6576 2011-05-21  Bruno Haible  <bruno@clisp.org>
6577
6578         mbtowc: Move AC_LIBOBJ invocations to module description.
6579         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
6580         invocations from here...
6581         * modules/mbtowc (configure.ac): ... to here.
6582
6583 2011-05-21  Bruno Haible  <bruno@clisp.org>
6584
6585         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
6586         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
6587         gl_PREREQ_MBSRTOWCS invocations from here...
6588         * modules/mbsrtowcs (configure.ac): ... to here.
6589
6590 2011-05-21  Bruno Haible  <bruno@clisp.org>
6591
6592         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
6593         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
6594         gl_PREREQ_MBSNRTOWCS invocations from here...
6595         * modules/mbsnrtowcs (configure.ac): ... to here.
6596
6597 2011-05-21  Bruno Haible  <bruno@clisp.org>
6598
6599         mbsinit: Move AC_LIBOBJ invocations to module description.
6600         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
6601         invocations from here...
6602         * modules/mbsinit (configure.ac): ... to here.
6603
6604 2011-05-21  Bruno Haible  <bruno@clisp.org>
6605
6606         mbrlen: Move AC_LIBOBJ invocations to module description.
6607         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
6608         invocations from here...
6609         * modules/mbrlen (configure.ac): ... to here.
6610
6611 2011-05-21  Bruno Haible  <bruno@clisp.org>
6612
6613         mbrtowc: Respect rules for use of AC_LIBOBJ.
6614         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
6615         invocations from here...
6616         * modules/mbrtowc (configure.ac): ... to here.
6617
6618 2011-05-21  Bruno Haible  <bruno@clisp.org>
6619
6620         malloc-*: Move AC_LIBOBJ invocations to module description.
6621         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
6622         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
6623         AC_LIBOBJ invocations from here...
6624         * modules/malloc-gnu (configure.ac): ... to here.
6625         * modules/malloc-posix (configure.ac): ... and here.
6626
6627 2011-05-21  Bruno Haible  <bruno@clisp.org>
6628
6629         lstat, openat: Respect rules for use of AC_LIBOBJ.
6630         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
6631         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
6632         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
6633         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
6634         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
6635         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
6636         here.
6637         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
6638
6639 2011-05-21  Bruno Haible  <bruno@clisp.org>
6640
6641         lseek: Move AC_LIBOBJ invocations to module description.
6642         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
6643         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
6644         * modules/lseek (configure.ac): ... to here.
6645
6646 2011-05-21  Bruno Haible  <bruno@clisp.org>
6647
6648         linkat: Move AC_LIBOBJ invocations to module description.
6649         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
6650         here...
6651         * modules/linkat (configure.ac): ... to here.
6652
6653 2011-05-21  Bruno Haible  <bruno@clisp.org>
6654
6655         link: Respect rules for use of AC_LIBOBJ.
6656         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
6657         * modules/link (configure.ac): ... to here.
6658
6659 2011-05-21  Bruno Haible  <bruno@clisp.org>
6660
6661         lchown: Move AC_LIBOBJ invocations to module description.
6662         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
6663         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
6664         * modules/lchown (configure.ac): ... to here.
6665
6666 2011-05-21  Bruno Haible  <bruno@clisp.org>
6667
6668         iswctype: Move AC_LIBOBJ invocations to module description.
6669         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
6670         here...
6671         * modules/iswctype (configure.ac): ... to here.
6672
6673 2011-05-21  Bruno Haible  <bruno@clisp.org>
6674
6675         iswblank: Move AC_LIBOBJ invocations to module description.
6676         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
6677         here...
6678         * modules/iswblank (configure.ac): ... to here.
6679
6680 2011-05-21  Bruno Haible  <bruno@clisp.org>
6681
6682         atanl: Move AC_LIBOBJ invocations to module description.
6683         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
6684         * modules/atanl (configure.ac): ... to here.
6685
6686 2011-05-21  Bruno Haible  <bruno@clisp.org>
6687
6688         acosl: Move AC_LIBOBJ invocations to module description.
6689         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
6690         * modules/acosl (configure.ac): ... to here.
6691
6692 2011-05-21  Bruno Haible  <bruno@clisp.org>
6693
6694         asinl: Respect rules for use of AC_LIBOBJ.
6695         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
6696         * modules/asinl (configure.ac): ... to here.
6697
6698 2011-05-21  Bruno Haible  <bruno@clisp.org>
6699
6700         tanl: Move AC_LIBOBJ invocations to module description.
6701         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
6702         * modules/tanl (configure.ac): ... to here.
6703
6704 2011-05-21  Bruno Haible  <bruno@clisp.org>
6705
6706         cosl: Move AC_LIBOBJ invocations to module description.
6707         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
6708         * modules/cosl (configure.ac): ... to here.
6709
6710 2011-05-21  Bruno Haible  <bruno@clisp.org>
6711
6712         sinl: Move AC_LIBOBJ invocations to module description.
6713         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
6714         * modules/sinl (configure.ac): ... to here.
6715
6716 2011-05-21  Bruno Haible  <bruno@clisp.org>
6717
6718         logl: Move AC_LIBOBJ invocations to module description.
6719         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
6720         * modules/logl (configure.ac): ... to here.
6721
6722 2011-05-21  Bruno Haible  <bruno@clisp.org>
6723
6724         expl: Move AC_LIBOBJ invocations to module description.
6725         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
6726         * modules/expl (configure.ac): ... to here.
6727
6728 2011-05-21  Bruno Haible  <bruno@clisp.org>
6729
6730         roundl: Move AC_LIBOBJ invocations to module description.
6731         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
6732         * modules/roundl (configure.ac): ... to here.
6733
6734 2011-05-21  Bruno Haible  <bruno@clisp.org>
6735
6736         round: Move AC_LIBOBJ invocations to module description.
6737         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
6738         * modules/round (configure.ac): ... to here.
6739
6740 2011-05-21  Bruno Haible  <bruno@clisp.org>
6741
6742         roundf: Move AC_LIBOBJ invocations to module description.
6743         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
6744         * modules/roundf (configure.ac): ... to here.
6745
6746 2011-05-21  Bruno Haible  <bruno@clisp.org>
6747
6748         truncl: Move AC_LIBOBJ invocations to module description.
6749         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
6750         * modules/truncl (configure.ac): ... to here.
6751
6752 2011-05-21  Bruno Haible  <bruno@clisp.org>
6753
6754         trunc: Move AC_LIBOBJ invocations to module description.
6755         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
6756         * modules/trunc (configure.ac): ... to here.
6757
6758 2011-05-21  Bruno Haible  <bruno@clisp.org>
6759
6760         truncf: Move AC_LIBOBJ invocations to module description.
6761         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
6762         * modules/truncf (configure.ac): ... to here.
6763
6764 2011-05-21  Bruno Haible  <bruno@clisp.org>
6765
6766         ceill: Move AC_LIBOBJ invocations to module description.
6767         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
6768         * modules/ceill (configure.ac): ... to here.
6769
6770 2011-05-21  Bruno Haible  <bruno@clisp.org>
6771
6772         ceil: Move AC_LIBOBJ invocations to module description.
6773         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
6774         * modules/ceil (configure.ac): ... to here.
6775
6776 2011-05-21  Bruno Haible  <bruno@clisp.org>
6777
6778         ceilf: Move AC_LIBOBJ invocations to module description.
6779         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
6780         * modules/ceilf (configure.ac): ... to here.
6781
6782 2011-05-21  Bruno Haible  <bruno@clisp.org>
6783
6784         floorl: Respect rules for use of AC_LIBOBJ.
6785         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
6786         * modules/floorl (configure.ac): ... to here.
6787
6788 2011-05-21  Bruno Haible  <bruno@clisp.org>
6789
6790         floor: Respect rules for use of AC_LIBOBJ.
6791         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
6792         * modules/floor (configure.ac): ... to here.
6793
6794 2011-05-21  Bruno Haible  <bruno@clisp.org>
6795
6796         floorf: Move AC_LIBOBJ invocations to module description.
6797         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
6798         * modules/floorf (configure.ac): ... to here.
6799
6800 2011-05-20  Bruno Haible  <bruno@clisp.org>
6801
6802         sqrtl: Respect rules for use of AC_LIBOBJ.
6803         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
6804         * modules/sqrtl (configure.ac): ... to here.
6805
6806 2011-05-20  Bruno Haible  <bruno@clisp.org>
6807
6808         ldexpl: Respect rules for use of AC_LIBOBJ.
6809         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
6810         * modules/ldexpl (configure.ac): ... to here.
6811
6812 2011-05-20  Bruno Haible  <bruno@clisp.org>
6813
6814         frexpl*: Respect rules for use of AC_LIBOBJ.
6815         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
6816         invocation from here...
6817         * modules/frexpl (configure.ac): ... to here.
6818         * modules/frexpl-nolibm (configure.ac): ... and here.
6819
6820 2011-05-20  Bruno Haible  <bruno@clisp.org>
6821
6822         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
6823         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
6824         invocation from here...
6825         * modules/frexp (configure.ac): ... to here.
6826         * modules/frexp-nolibm (configure.ac): ... and here.
6827
6828 2011-05-20  Bruno Haible  <bruno@clisp.org>
6829
6830         isnan: Respect rules for use of AC_LIBOBJ.
6831         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
6832         invocations here.
6833         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
6834         REPLACE_ISNAN.
6835         * modules/isnand (configure.ac): Likewise.
6836         * modules/isnanl (configure.ac): Likewise.
6837
6838 2011-05-20  Bruno Haible  <bruno@clisp.org>
6839
6840         isnanl*: Respect rules for use of AC_LIBOBJ.
6841         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
6842         invocation from here...
6843         * modules/isnanl (configure.ac): ... to here.
6844         * modules/isnanl-nolibm (configure.ac): ... and here.
6845
6846 2011-05-20  Bruno Haible  <bruno@clisp.org>
6847
6848         isnand*: Move AC_LIBOBJ invocations to module description.
6849         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
6850         invocation from here...
6851         * modules/isnand (configure.ac): ... to here.
6852         * modules/isnand-nolibm (configure.ac): ... and here.
6853
6854 2011-05-20  Bruno Haible  <bruno@clisp.org>
6855
6856         isnanf*: Move AC_LIBOBJ invocations to module description.
6857         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
6858         invocation from here...
6859         * modules/isnanf (configure.ac): ... to here.
6860         * modules/isnanf-nolibm (configure.ac): ... and here.
6861
6862 2011-05-20  Bruno Haible  <bruno@clisp.org>
6863
6864         isnan*: Separate the AC_LIBOBJ invocations.
6865         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
6866         AC_LIBOBJ invocation.
6867         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
6868         here.
6869         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
6870         AC_LIBOBJ invocation.
6871         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
6872         here.
6873         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
6874         AC_LIBOBJ invocation.
6875         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
6876         here.
6877         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
6878
6879 2011-05-08  Bruno Haible  <bruno@clisp.org>
6880
6881         isinf: Move AC_LIBOBJ invocations to module description.
6882         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
6883         * modules/isinf (configure.ac): ... to here.
6884
6885 2011-05-08  Bruno Haible  <bruno@clisp.org>
6886
6887         isfinite: Move AC_LIBOBJ invocations to module description.
6888         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
6889         * modules/isfinite (configure.ac): ... to here.
6890
6891 2011-05-08  Bruno Haible  <bruno@clisp.org>
6892
6893         isblank: Move AC_LIBOBJ invocations to module description.
6894         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
6895         here...
6896         * modules/isblank (configure.ac): ... to here.
6897
6898 2011-05-08  Bruno Haible  <bruno@clisp.org>
6899
6900         isapipe: Move AC_LIBOBJ invocations to module description.
6901         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
6902         gl_PREREQ_ISAPIPE invocations from here...
6903         * modules/isapipe (configure.ac): ... to here.
6904         (Depends-on): Update condition.
6905
6906 2011-05-08  Bruno Haible  <bruno@clisp.org>
6907
6908         ioctl: Move AC_LIBOBJ invocations to module description.
6909         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
6910         invocations from here...
6911         * modules/ioctl (configure.ac): ... to here.
6912         (Depends-on): Update condition.
6913
6914 2011-05-08  Bruno Haible  <bruno@clisp.org>
6915
6916         imaxdiv: Move AC_LIBOBJ invocations to module description.
6917         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
6918         invocations from here...
6919         * modules/imaxdiv (configure.ac): ... to here.
6920
6921 2011-05-08  Bruno Haible  <bruno@clisp.org>
6922
6923         imaxabs: Move AC_LIBOBJ invocations to module description.
6924         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
6925         invocations from here...
6926         * modules/imaxabs (configure.ac): ... to here.
6927
6928 2011-05-08  Bruno Haible  <bruno@clisp.org>
6929
6930         getaddrinfo: Move AC_LIBOBJ invocations to module description.
6931         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
6932         AC_LIBOBJ invocations from here...
6933         * modules/getaddrinfo (configure.ac): ... to here.
6934         (Depends-on): Add conditions.
6935
6936 2011-05-08  Bruno Haible  <bruno@clisp.org>
6937
6938         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
6939         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
6940         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
6941         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
6942         (gl_PREREQ_INET_PTON): ... from here.
6943         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
6944         gl_PREREQ_INET_PTON here.
6945         (Depends-on): Update condition.
6946
6947 2011-05-08  Bruno Haible  <bruno@clisp.org>
6948
6949         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
6950         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
6951         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
6952         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
6953         (gl_PREREQ_INET_NTOP): ... from here.
6954         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
6955         gl_PREREQ_INET_NTOP here.
6956         (Depends-on): Update condition.
6957
6958 2011-05-08  Bruno Haible  <bruno@clisp.org>
6959
6960         iconv_open: Move AC_LIBOBJ invocations to module description.
6961         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
6962         AC_LIBOBJ invocations from here...
6963         * modules/iconv_open (configure.ac): ... to here.
6964
6965 2011-05-08  Bruno Haible  <bruno@clisp.org>
6966
6967         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
6968         If module 'iconv_open' is among the main modules and module
6969         'iconv_open-utf' is among the tests dependencies, then
6970         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
6971         return the special iconv_t values. Therefore iconv() and iconv_close()
6972         must support these special iconv_t values, already in lib, not only in
6973         tests.
6974         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
6975         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
6976         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
6977         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
6978         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
6979         (Depends-on): Add the dependencies of iconv_open-utf.
6980         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
6981         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
6982         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
6983
6984 2011-05-08  Bruno Haible  <bruno@clisp.org>
6985
6986         group-member: Move AC_LIBOBJ invocations to module description.
6987         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
6988         gl_PREREQ_GROUP_MEMBER invocations from here...
6989         * modules/group-member (configure.ac): ... to here.
6990
6991 2011-05-08  Bruno Haible  <bruno@clisp.org>
6992
6993         grantpt: Move AC_LIBOBJ invocations to module description.
6994         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
6995         invocations from here...
6996         * modules/grantpt (configure.ac): ... to here.
6997
6998 2011-05-08  Bruno Haible  <bruno@clisp.org>
6999
7000         glob: Move AC_LIBOBJ invocations to module description.
7001         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
7002         from here...
7003         * modules/glob (configure.ac): ... to here.
7004
7005 2011-05-08  Bruno Haible  <bruno@clisp.org>
7006
7007         getusershell: Move AC_LIBOBJ invocations to module description.
7008         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
7009         Move AC_LIBOBJ invocation from here...
7010         * modules/getusershell (configure.ac): ... to here.
7011         (Depends-on): Update condition.
7012
7013 2011-05-08  Bruno Haible  <bruno@clisp.org>
7014
7015         gettimeofday: Move AC_LIBOBJ invocations to module description.
7016         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
7017         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
7018         gl_PREREQ_GETTIMEOFDAY invocations from here...
7019         * modules/gettimeofday (configure.ac): ... to here.
7020
7021 2011-05-08  Bruno Haible  <bruno@clisp.org>
7022
7023         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
7024         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
7025         just gl_FUNC_TZSET.
7026         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
7027         (gl_FUNC_TZSET_CLOBBER): Remove actions.
7028         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
7029         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
7030
7031 2011-05-08  Bruno Haible  <bruno@clisp.org>
7032
7033         getsubopt: Move AC_LIBOBJ invocations to module description.
7034         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
7035         gl_PREREQ_GETSUBOPT invocations from here...
7036         * modules/getsubopt (configure.ac): ... to here.
7037
7038 2011-05-08  Bruno Haible  <bruno@clisp.org>
7039
7040         getpass-gnu: Move AC_LIBOBJ invocations to module description.
7041         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
7042         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
7043         * modules/getpass-gnu (configure.ac): ... to here.
7044
7045 2011-05-08  Bruno Haible  <bruno@clisp.org>
7046
7047         getpass: Move AC_LIBOBJ invocations to module description.
7048         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
7049         gl_PREREQ_GETPASS invocations from here...
7050         * modules/getpass (configure.ac): ... to here.
7051
7052 2011-05-08  Bruno Haible  <bruno@clisp.org>
7053
7054         getpagesize: Move AC_LIBOBJ invocations to module description.
7055         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
7056         from here...
7057         * modules/getpagesize (configure.ac): ... to here.
7058
7059 2011-05-08  Bruno Haible  <bruno@clisp.org>
7060
7061         getopt: Move AC_LIBOBJ invocations to module description.
7062         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
7063         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
7064         invocations from here...
7065         * modules/getopt-gnu (configure.ac): ... to here.
7066         * modules/getopt-posix (configure.ac): ... and here.
7067         (Depends-on): Update condition.
7068
7069 2011-05-08  Bruno Haible  <bruno@clisp.org>
7070
7071         getopt, argp: Respect rules for use of AC_LIBOBJ.
7072         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
7073         (gl_REPLACE_GETOPT_ALWAYS): New macro.
7074         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
7075         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
7076
7077 2011-05-08  Bruno Haible  <bruno@clisp.org>
7078
7079         getlogin_r: Move AC_LIBOBJ invocations to module description.
7080         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
7081         gl_PREREQ_GETLOGIN_R invocations from here...
7082         * modules/getlogin_r (configure.ac): ... to here.
7083
7084 2011-05-08  Bruno Haible  <bruno@clisp.org>
7085
7086         getlogin: Move AC_LIBOBJ invocations to module description.
7087         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
7088         here...
7089         * modules/getlogin (configure.ac): ... to here.
7090
7091 2011-05-08  Bruno Haible  <bruno@clisp.org>
7092
7093         getloadavg: Move AC_LIBOBJ invocations to module description.
7094         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
7095         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
7096         * modules/getloadavg (configure.ac): ... to here.
7097
7098 2011-05-08  Bruno Haible  <bruno@clisp.org>
7099
7100         gethrxtime: Move AC_LIBOBJ invocations to module description.
7101         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
7102         LIB_GETHRXTIME from here...
7103         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
7104         invocations from here...
7105         * modules/gethrxtime (configure.ac): ... to here.
7106
7107 2011-05-08  Bruno Haible  <bruno@clisp.org>
7108
7109         gethostname: Move AC_LIBOBJ invocations to module description.
7110         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
7111         gl_PREREQ_GETHOSTNAME invocations from here...
7112         * modules/gethostname (configure.ac): ... to here.
7113
7114 2011-05-08  Bruno Haible  <bruno@clisp.org>
7115
7116         getgroups: Move AC_LIBOBJ invocations to module description.
7117         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
7118         here...
7119         * modules/getgroups (configure.ac): ... to here.
7120
7121 2011-05-08  Bruno Haible  <bruno@clisp.org>
7122
7123         getdtablesize: Move AC_LIBOBJ invocations to module description.
7124         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
7125         invocation from here...
7126         * modules/getdtablesize (configure.ac): ... to here.
7127
7128 2011-05-08  Bruno Haible  <bruno@clisp.org>
7129
7130         getdomainname: Move AC_LIBOBJ invocations to module description.
7131         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
7132         gl_PREREQ_GETDOMAINNAME invocations from here...
7133         * modules/getdomainname (configure.ac): ... to here.
7134
7135 2011-05-08  Bruno Haible  <bruno@clisp.org>
7136
7137         getline: Move AC_LIBOBJ invocations to module description.
7138         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
7139         invocations from here...
7140         * modules/getline (configure.ac): ... to here.
7141
7142 2011-05-08  Bruno Haible  <bruno@clisp.org>
7143
7144         getline: Simplify.
7145         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
7146         It's already handled through the module dependency.
7147
7148 2011-05-08  Bruno Haible  <bruno@clisp.org>
7149
7150         getdelim: Move AC_LIBOBJ invocations to module description.
7151         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
7152         and gl_PREREQ_GETDELIM invocations from here...
7153         * modules/getdelim (configure.ac): ... to here.
7154         (Depends-on): Fix condition.
7155
7156 2011-05-08  Bruno Haible  <bruno@clisp.org>
7157
7158         getcwd: Move AC_LIBOBJ invocations to module description.
7159         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
7160         invocations from here...
7161         * modules/getcwd (configure.ac): ... to here.
7162
7163 2011-05-08  Bruno Haible  <bruno@clisp.org>
7164
7165         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
7166         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
7167         here...
7168         * modules/getcwd-lgpl (configure.ac): ... to here.
7169
7170 2011-05-07  Bruno Haible  <bruno@clisp.org>
7171
7172         crypto/gc: Move AC_LIBOBJ invocations to module description.
7173         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
7174         * modules/crypto/gc (configure.ac): ... to here.
7175
7176 2011-05-07  Bruno Haible  <bruno@clisp.org>
7177
7178         fwriting: Move AC_LIBOBJ invocations to module description.
7179         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
7180         here...
7181         * modules/fwriting (configure.ac): ... to here.
7182
7183 2011-05-07  Bruno Haible  <bruno@clisp.org>
7184
7185         fwritable: Move AC_LIBOBJ invocations to module description.
7186         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
7187         here...
7188         * modules/fwritable (configure.ac): ... to here.
7189
7190 2011-05-07  Bruno Haible  <bruno@clisp.org>
7191
7192         futimens: Move AC_LIBOBJ invocations to module description.
7193         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
7194         here...
7195         * modules/futimens (configure.ac): ... to here.
7196
7197 2011-05-07  Bruno Haible  <bruno@clisp.org>
7198
7199         ftruncate: Move AC_LIBOBJ invocations to module description.
7200         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
7201         gl_PREREQ_FTRUNCATE invocations from here...
7202         * modules/ftruncate (configure.ac): ... to here.
7203
7204 2011-05-07  Bruno Haible  <bruno@clisp.org>
7205
7206         fsync: Move AC_LIBOBJ invocations to module description.
7207         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
7208         invocations from here...
7209         * modules/fsync (configure.ac): ... to here.
7210
7211 2011-05-07  Bruno Haible  <bruno@clisp.org>
7212
7213         fsusage: Move AC_LIBOBJ invocations to module description.
7214         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
7215         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
7216         * modules/fsusage (configure.ac): ... to here.
7217
7218 2011-05-07  Bruno Haible  <bruno@clisp.org>
7219
7220         freopen: Move AC_LIBOBJ invocations to module description.
7221         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
7222         invocations from here...
7223         * modules/freopen (configure.ac): ... to here.
7224
7225 2011-05-07  Bruno Haible  <bruno@clisp.org>
7226
7227         free: Move AC_LIBOBJ invocations to module description.
7228         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
7229         invocations from here...
7230         * modules/free (configure.ac): ... to here.
7231
7232 2011-05-07  Bruno Haible  <bruno@clisp.org>
7233
7234         freadable: Move AC_LIBOBJ invocations to module description.
7235         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
7236         here...
7237         * modules/freadable (configure.ac): ... to here.
7238
7239 2011-05-07  Bruno Haible  <bruno@clisp.org>
7240
7241         fpurge: Move AC_LIBOBJ invocations to module description.
7242         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
7243         invocations from here...
7244         * modules/fpurge (configure.ac): ... to here.
7245
7246 2011-05-07  Bruno Haible  <bruno@clisp.org>
7247
7248         fpending: Move AC_LIBOBJ invocations to module description.
7249         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
7250         gl_FUNC_FPENDING.
7251         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
7252         invocations from here...
7253         * modules/fpending (configure.ac): ... to here.
7254
7255 2011-05-07  Bruno Haible  <bruno@clisp.org>
7256
7257         fopen: Move AC_LIBOBJ invocations to module description.
7258         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
7259         invocations from here...
7260         * modules/fopen (configure.ac): ... to here.
7261
7262 2011-05-07  Bruno Haible  <bruno@clisp.org>
7263
7264         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
7265         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
7266         gl_FUNC_FNMATCH_POSIX.
7267         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
7268         invocations from here...
7269         * modules/fnmatch (configure.ac): ... to here.
7270         * modules/fnmatch-gnu (configure.ac): ... and here.
7271
7272 2011-05-07  Bruno Haible  <bruno@clisp.org>
7273
7274         flock: Move AC_LIBOBJ invocations to module description.
7275         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
7276         invocations from here...
7277         * modules/flock (configure.ac): ... to here.
7278
7279 2011-05-07  Bruno Haible  <bruno@clisp.org>
7280
7281         fileblocks: Move AC_LIBOBJ invocations to module description.
7282         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
7283         gl_PREREQ_FILEBLOCKS invocations from here...
7284         * modules/fileblocks (configure.ac): ... to here.
7285
7286 2011-05-06  Bruno Haible  <bruno@clisp.org>
7287
7288         fflush: Move AC_LIBOBJ invocations to module description.
7289         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
7290         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
7291         invocations from here...
7292         * modules/fflush (configure.ac): ... to here.
7293
7294 2011-05-06  Bruno Haible  <bruno@clisp.org>
7295
7296         fdopendir: Move AC_LIBOBJ invocations to module description.
7297         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
7298         here...
7299         * modules/fdopendir (configure.ac): ... to here.
7300         (Depends-on): Improve conditions.
7301
7302 2011-05-06  Bruno Haible  <bruno@clisp.org>
7303
7304         _Exit: Move AC_LIBOBJ invocations to module description.
7305         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
7306         invocations from here...
7307         * modules/_Exit (configure.ac): ... to here.
7308
7309 2011-05-21  Bruno Haible  <bruno@clisp.org>
7310
7311         euidaccess: Respect rules for use of AC_LIBOBJ.
7312         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
7313         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
7314         from here...
7315         * modules/euidaccess (configure.ac): ... to here.
7316
7317 2011-05-06  Bruno Haible  <bruno@clisp.org>
7318
7319         error: Move AC_LIBOBJ invocations to module description.
7320         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
7321         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
7322         invocations from here...
7323         * modules/error (configure.ac): ... to here.
7324
7325 2011-05-06  Bruno Haible  <bruno@clisp.org>
7326
7327         duplocale: Move AC_LIBOBJ invocations to module description.
7328         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
7329         gl_PREREQ_DUPLOCALE invocations from here...
7330         * modules/duplocale (configure.ac): ... to here.
7331
7332 2011-05-05  Bruno Haible  <bruno@clisp.org>
7333
7334         dirfd: Move AC_LIBOBJ invocations to module description.
7335         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
7336         gl_FUNC_DIRFD.
7337         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
7338         here...
7339         * modules/dirfd (configure.ac): ... to here.
7340         (Depends-on): Fix condition.
7341
7342 2011-05-05  Bruno Haible  <bruno@clisp.org>
7343
7344         chown: Respect rules for use of AC_LIBOBJ.
7345         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
7346         * modules/chown (configure.ac): ... to here.
7347
7348 2011-05-05  Bruno Haible  <bruno@clisp.org>
7349
7350         chdir-long: Move AC_LIBOBJ invocations to module description.
7351         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
7352         gl_PREREQ_CHDIR_LONG invocations from here...
7353         * modules/chdir-long (configure.ac): ... to here.
7354
7355 2011-05-05  Bruno Haible  <bruno@clisp.org>
7356
7357         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
7358         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
7359         from here...
7360         * modules/canonicalize-lgpl (configure.ac): ... to here.
7361
7362 2011-05-05  Bruno Haible  <bruno@clisp.org>
7363
7364         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
7365         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
7366         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
7367         REPLACE_CALLOC.
7368         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
7369         * modules/calloc-gnu (configure.ac): Likewise.
7370
7371 2011-05-05  Bruno Haible  <bruno@clisp.org>
7372
7373         btowc: Move AC_LIBOBJ invocations to module description.
7374         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
7375         invocations from here...
7376         * modules/btowc (configure.ac): ... to here.
7377
7378 2011-05-21  Bruno Haible  <bruno@clisp.org>
7379
7380         atexit: Move AC_LIBOBJ invocations to module description.
7381         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
7382         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
7383         here...
7384         * modules/atexit (configure.ac): ... to here.
7385
7386 2011-05-05  Bruno Haible  <bruno@clisp.org>
7387
7388         atoll: Move AC_LIBOBJ invocations to module description.
7389         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
7390         invocations from here...
7391         * modules/atoll (configure.ac): ... to here.
7392
7393 2011-05-05  Bruno Haible  <bruno@clisp.org>
7394
7395         argz: Move AC_LIBOBJ invocations to module description.
7396         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
7397         * modules/argz (configure.ac): ... to here.
7398
7399 2011-05-05  Bruno Haible  <bruno@clisp.org>
7400
7401         alphasort: Move AC_LIBOBJ invocations to module description.
7402         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
7403         gl_PREREQ_ALPHASORT invocations from here...
7404         * modules/alphasort (configure.ac): ... to here.
7405
7406 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
7407
7408         verify: new macro verify_expr; verify_true deprecated
7409         * NEWS: Mention this.
7410         * doc/verify.texi (Compile-time Assertions): Document this.
7411         * lib/verify.h (verify_true): Deprecate.
7412         (verify_expr): New macro.
7413         * tests/test-verify.c (function): Test verify_expr.
7414
7415 2011-06-14  Jim Meyering  <meyering@redhat.com>
7416
7417         init.sh: give more portable redirection-related advice in a comment
7418         * tests/init.sh (stderr_fileno_): Update the advice in comments.
7419         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
7420         for lots of discussion.  Stefano Lattarini suggested the solution
7421         of putting "9>&2" after the command.  Reported by Bruno Haible.
7422
7423 2011-06-13  Bruno Haible  <bruno@clisp.org>
7424
7425         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
7426         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
7427         'none'.
7428
7429 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
7430
7431         ftoastr: use strtof only if HAVE_STRTOF
7432         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
7433         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
7434         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
7435         * modules/ftoastr (configure.ac): Check for strtof.
7436
7437 2011-06-13  Bruno Haible  <bruno@clisp.org>
7438
7439         gnulib-tool: Addendum to 2011-06-08 commit.
7440         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
7441         and --witness-c-macro have been given, augment AM_CPPFLAGS.
7442
7443 2011-06-13  Bruno Haible  <bruno@clisp.org>
7444
7445         fseeko: Provide a non-inline replacement of fseek().
7446         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
7447         * modules/fseeko (Depends-on): Add fseek.
7448         * modules/fseek (License): Change to LGPLv2+.
7449
7450 2011-06-13  Bruno Haible  <bruno@clisp.org>
7451
7452         ftello: Provide a non-inline replacement of ftell().
7453         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
7454         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
7455         not have ftello() (such as on mingw).
7456         * modules/ftello (Depends-on): Add ftell.
7457         * modules/ftell (License): Change to LGPLv2+.
7458
7459 2011-05-07  Bruno Haible  <bruno@clisp.org>
7460
7461         ftell: Move AC_LIBOBJ invocations to module description.
7462         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
7463         * modules/ftell (configure.ac): ... to here.
7464
7465 2011-05-07  Bruno Haible  <bruno@clisp.org>
7466
7467         ftello: Respect rules for use of AC_LIBOBJ.
7468         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
7469         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
7470         here...
7471         * modules/ftello (configure.ac): ... to here.
7472
7473 2011-05-07  Bruno Haible  <bruno@clisp.org>
7474
7475         fseeko: Simplify.
7476         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
7477         (gl_FUNC_FSEEKO): Inline it here.
7478
7479 2011-05-07  Bruno Haible  <bruno@clisp.org>
7480
7481         fseek: Move AC_LIBOBJ invocations to module description.
7482         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
7483         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
7484         * modules/fseek (configure.ac): ... to here.
7485
7486 2011-05-07  Bruno Haible  <bruno@clisp.org>
7487
7488         fseek: Respect rules for use of AC_LIBOBJ.
7489         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
7490         here...
7491         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
7492
7493 2011-05-07  Bruno Haible  <bruno@clisp.org>
7494
7495         fseeko: Respect rules for use of AC_LIBOBJ.
7496         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
7497         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
7498         here...
7499         * modules/fseeko (configure.ac): ... to here.
7500
7501 2011-06-13  Bruno Haible  <bruno@clisp.org>
7502
7503         gnulib-tool: Allow comments in the 'Depends-on' section.
7504         * doc/gnulib.texi (Module description): Mention comment syntax in the
7505         Depends-on section.
7506         * gnulib-tool (func_get_dependencies): Filter out comment lines.
7507
7508 2011-06-13  Bruno Haible  <bruno@clisp.org>
7509
7510         file-set.h: guard __attibute__ use, now that it's not always defined
7511         * lib/file-set.h (record_file): Use __attribute__ only with compiler
7512         versions that support it.  This fixes a coreutils build failure with
7513         the vendor cc on HP-UX 11.31.
7514
7515 2011-06-12  Bruno Haible  <bruno@clisp.org>
7516
7517         acl: Add support for HP-UX >= 11.11 JFS ACLs.
7518         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
7519         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
7520         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
7521         (acl, aclsort): New declarations.
7522         (aclv_nontrivial): New declaration.
7523         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
7524         (file_has_acl): Read also the second kind of HP-UX ACLs.
7525         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
7526         kind of HP-UX ACLs if the first kind fails.
7527         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
7528         second kind of HP-UX ACLs.
7529         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
7530         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
7531         agree.
7532         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
7533         hpuxjfs.
7534         Handle hpuxjfs.
7535         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
7536         hpuxjfs.
7537         Handle hpuxjfs.
7538         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
7539         (func_test_same_acls): Use both lsacl and getacl.
7540         Handle hpuxjfs.
7541         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
7542         (func_test_same_acls): Use both lsacl and getacl.
7543         Handle hpuxjfs.
7544
7545 2011-06-12  Bruno Haible  <bruno@clisp.org>
7546
7547         acl: Complete the 2010-08-10 fix.
7548         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
7549         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
7550         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
7551         explicitly.
7552         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
7553         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
7554
7555 2011-06-12  Bruno Haible  <bruno@clisp.org>
7556
7557         spawn-pipe tests: Comments.
7558         * tests/test-spawn-pipe-child.c (main): Update comment.
7559         Reported by James Youngman <jay@gnu.org>.
7560
7561 2011-06-11  James Youngman  <jay@gnu.org>
7562
7563         New module 'stat-size'.
7564         * modules/stat-size: New module.  Provides macros for accessing
7565         file size information in instances of struct stat.  Depends on the
7566         fileblocks module because it calls st_blocks.
7567         * lib/stat-size.h: New file, adapted from coreutils' system.h.
7568         * doc/gnulib.texi: Include stat-size.texi.
7569         * doc/stat-size.texi: Documentation for this module.
7570         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
7571         * m4/fileblocks.m4: Mention that stat-size depends on the call to
7572         AC_STRUCT_ST_BLOCKS.
7573
7574 2011-06-09  Bruno Haible  <bruno@clisp.org>
7575
7576         thread: Support pthreads-win32.
7577         * lib/glthread/thread.h (gl_thread_self): Define differently on
7578         pthreads-win32.
7579         (gl_null_thread): New declaration.
7580         (gl_thread_self_pointer): New macro.
7581         * lib/glthread/thread.c (gl_null_thread): New constant.
7582         * tests/test-lock.c: Use gl_thread_self_pointer instead of
7583         gl_thread_self.
7584         * tests/test-tls.c: Likewise.
7585         Suggested by Paul Eggert. Reported by Eric Blake.
7586
7587 2011-06-09  Bruno Haible  <bruno@clisp.org>
7588
7589         thread: Fix confusion between NULL and 0.
7590         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
7591         Reported by Paul Eggert.
7592
7593 2011-06-09  Bruno Haible  <bruno@clisp.org>
7594
7595         spawn-pipe tests: Avoid test failure on HP-UX 11.
7596         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
7597         is closed.
7598
7599 2011-06-09  Bruno Haible  <bruno@clisp.org>
7600
7601         acl tests: Fix compilation error on HP-UX 11.
7602         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
7603
7604 2011-06-09  Bruno Haible  <bruno@clisp.org>
7605
7606         rmdir: Avoid test failure on HP-UX 10.20.
7607         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
7608         EEXIST.
7609
7610 2011-06-08  Eric Blake  <eblake@redhat.com>
7611
7612         perror: fix test on mingw
7613         * modules/perror-tests (Depends-on): Add dup2.
7614
7615         strerror_r-posix: fix on MacOS
7616         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
7617         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
7618         logic bug.
7619         * lib/strerror_r.c (strerror_r): Fix the bug.
7620         * lib/strerror.c (strerror): Likewise.
7621         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
7622         problem.
7623         * doc/posix-functions/strerror.texi (strerror): Likewise.
7624         * doc/posix-functions/perror.texi (perror): Likewise.
7625         * tests/test-strerror.c (main): Enhance test.
7626         * tests/test-strerror_r.c (main): Likewise.
7627
7628 2011-06-08  Bruno Haible  <bruno@clisp.org>
7629
7630         gnulib-tool: Better isolation between different gnulib-tool invocations.
7631         * gnulib-tool: New option --witness-c-macro.
7632         (witness_c_macro): New variable.
7633         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
7634         AM_CPPFLAGS define it as a C macro.
7635         (func_emit_tests_Makefile_am): Likewise.
7636         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
7637         read it from there.
7638         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
7639         m4_define, not AC_DEFUN.
7640         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
7641         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
7642         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
7643         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
7644         s|...|...|, to substitute the values of the GNULIB_* module indicator
7645         variables.
7646         * modules/dirent (Makefile.am): Likewise.
7647         * modules/fcntl-h (Makefile.am): Likewise.
7648         * modules/iconv-h (Makefile.am): Likewise.
7649         * modules/langinfo (Makefile.am): Likewise.
7650         * modules/locale (Makefile.am): Likewise.
7651         * modules/math (Makefile.am): Likewise.
7652         * modules/netdb (Makefile.am): Likewise.
7653         * modules/poll-h (Makefile.am): Likewise.
7654         * modules/pty (Makefile.am): Likewise.
7655         * modules/search (Makefile.am): Likewise.
7656         * modules/signal (Makefile.am): Likewise.
7657         * modules/spawn (Makefile.am): Likewise.
7658         * modules/stdio (Makefile.am): Likewise.
7659         * modules/stdlib (Makefile.am): Likewise.
7660         * modules/string (Makefile.am): Likewise.
7661         * modules/sys_ioctl (Makefile.am): Likewise.
7662         * modules/sys_select (Makefile.am): Likewise.
7663         * modules/sys_socket (Makefile.am): Likewise.
7664         * modules/sys_stat (Makefile.am): Likewise.
7665         * modules/sys_times (Makefile.am): Likewise.
7666         * modules/sys_utsname (Makefile.am): Likewise.
7667         * modules/sys_wait (Makefile.am): Likewise.
7668         * modules/termios (Makefile.am): Likewise.
7669         * modules/time (Makefile.am): Likewise.
7670         * modules/unistd (Makefile.am): Likewise.
7671         * modules/wchar (Makefile.am): Likewise.
7672
7673 2011-06-08  Eric Blake  <eblake@redhat.com>
7674
7675         strerror: simplify replacement
7676         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
7677         * modules/strerror (configure.ac): No prereqs needed here...
7678         * modules/strerror-override (configure.ac): ...but this needs it.
7679         (Files): Add file for needed prereq macro.
7680
7681 2011-06-08  Bruno Haible  <bruno@clisp.org>
7682
7683         strerror_r-posix: Tweaks.
7684         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
7685         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
7686         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
7687         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
7688         (gl_FUNC_STRERROR_R): ... to here.
7689         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
7690
7691 2011-06-07  Eric Blake  <eblake@redhat.com>
7692
7693         perror: document fixed bugs
7694         * doc/posix-functions/perror.texi (perror): Document recent
7695         patches.
7696
7697 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
7698
7699         stat-time: get_stat_birthtime failure is better-defined
7700         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
7701         return a timestamp whose tv_sec and tv_nsec values are both -1.
7702         Previously, the spec said only that the tv_nsec value was negative.
7703         This upward-compatible change simplifies GNU tar a bit.
7704
7705 2011-06-07  Eric Blake  <eblake@redhat.com>
7706
7707         strerror_r-posix: work around cygwin 1.7.9
7708         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
7709         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
7710         bug without replacing strerror_r.
7711         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
7712         strerror_r is buggy, but without requiring strerror_r compilation.
7713         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
7714
7715         test-perror: relax test to ignore cygwin bug
7716         * tests/test-perror2.c (main): Relax test on requiring detection
7717         of stream errors, and use unbuffered stream.
7718         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
7719         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
7720         * doc/posix-functions/fputc.texi (fputc): Likewise.
7721         * doc/posix-functions/fputs.texi (fputs): Likewise.
7722         * doc/posix-functions/fputws.texi (fputws): Likewise.
7723         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
7724         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
7725         * doc/posix-functions/getopt.texi (getopt): Likewise.
7726         * doc/posix-functions/perror.texi (perror): Likewise.
7727         * doc/posix-functions/printf.texi (printf): Likewise.
7728         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
7729         * doc/posix-functions/psignal.texi (psignal): Likewise.
7730         * doc/posix-functions/putc.texi (putc): Likewise.
7731         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
7732         Likewise.
7733         * doc/posix-functions/putchar.texi (putchar): Likewise.
7734         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
7735         Likewise.
7736         * doc/posix-functions/puts.texi (puts): Likewise.
7737         * doc/posix-functions/putwc.texi (putwc): Likewise.
7738         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
7739         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
7740         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
7741         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
7742         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
7743         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
7744         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
7745         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
7746
7747 2011-05-22  Bruno Haible  <bruno@clisp.org>
7748
7749         strerror: Move AC_LIBOBJ invocations to module description.
7750         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
7751         gl_PREREQ_STRERROR invocations from here...
7752         * modules/strerror (configure.ac): ... to here.
7753
7754 2011-05-21  Bruno Haible  <bruno@clisp.org>
7755
7756         perror: Use common idiom.
7757         * modules/perror (configure.ac): Reorder statements.
7758
7759 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
7760
7761         tests: fix usage message in 'mktempd_'
7762         * tests/init.sh (mktempd_): In the usage message, use literal
7763         'mktempd_', not '$ME' (which is even undefined), as the name of
7764         the subroutine.
7765
7766 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
7767
7768         tests init: new function 'fatal_', for hard errors
7769         Before this patch, the only way offered by tests/init.sh to
7770         properly signal a hard error was the `framework_failure_'
7771         function.  But the error message issued by that function,
7772         as its name would suggest, refers to a set-up failure in the
7773         testsuite, while hard errors can obviously also be due to
7774         other reasons.  The best way to fix this inconsistency is to
7775         introduce a new function with a more general error message.
7776         * tests/init.sh (fatal_): New function.
7777
7778 2011-06-06  Eric Blake  <eblake@redhat.com>
7779
7780         canonicalize-lgpl: use common idiom
7781         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
7782         over newer POSIX -Rf.
7783         Reported by Bruno Haible.
7784
7785         canonicalize-lgpl: work around AIX realpath bug
7786         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
7787         * doc/posix-functions/realpath.texi (realpath): Document it.
7788         Reported by Bruno Haible.
7789
7790         strerror: work around FreeBSD bug
7791         * lib/strerror.c (strerror): Special case 0.
7792         Reported by Bruno Haible.
7793
7794         strerror-override: avoid bloating errno module
7795         * modules/errno (Files, configure.ac): Move replacement strings...
7796         * modules/strerror-override: ...to new module.
7797         * modules/strerror (Depends-on): Add strerror-override.
7798         * modules/strerror_r-posix (Depends-on): Likewise.
7799         * MODULES.html.sh: Document new module.
7800         Reported by Bruno Haible.
7801
7802 2011-06-06  Bruno Haible  <bruno@clisp.org>
7803
7804         spawn-pipe tests: Rename program.
7805         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
7806         * tests/test-spawn-pipe-child.c: Update comment.
7807         * tests/test-spawn-pipe.sh: Update.
7808         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
7809
7810         spawn-pipe tests: Link the child program only against libc.
7811         * tests/test-spawn-pipe-child.c: New file, extracted from
7812         tests/test-spawn-pipe.c.
7813         (main): Expect only one argument.
7814         (is_open): New function, copied from tests/test-pipe.c.
7815         * tests/test-spawn-pipe.c: Don't include <errno.h>.
7816         (child_main): Remove function.
7817         (test_pipe): Pass only one argument to the child program.
7818         (main): Remove child process code. Expect the child program's name as
7819         first argument.
7820         * tests/test-spawn-pipe.sh: Pass the child program's name as first
7821         argument.
7822         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
7823         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
7824         test-spawn-pipe-child against no libraries.
7825
7826 2011-06-06  Bruno Haible  <bruno@clisp.org>
7827
7828         careadlinkat: Avoid mismatch between ssize_t and int.
7829         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
7830         * lib/careadlinkat.c (careadlinkatcwd): Define always.
7831
7832 2011-06-06  Jim Meyering  <meyering@redhat.com>
7833
7834         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
7835         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
7836         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
7837
7838 2011-06-05  Bruno Haible  <bruno@clisp.org>
7839
7840         ansi-c++-opt: Interoperability with libtool.
7841         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
7842         set the variable to "no", not to ":".
7843         * NEWS: Mention the change.
7844
7845 2011-06-05  Bruno Haible  <bruno@clisp.org>
7846
7847         acl: Fix test failure on AIX 7.
7848         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
7849         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
7850
7851 2011-06-05  Bruno Haible  <bruno@clisp.org>
7852
7853         pipe-filter-ii: Fix test failure on AIX and IRIX.
7854         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
7855         with EAGAIN, retry with a smaller buffer size.
7856
7857 2011-06-05  Bruno Haible  <bruno@clisp.org>
7858
7859         localename: Fix link dependencies.
7860         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
7861         * modules/localename-tests (Makefile.am): Link test-localename with
7862         $(LIBTHREAD).
7863
7864 2011-06-05  Bruno Haible  <bruno@clisp.org>
7865
7866         error: Avoid gcc warning.
7867         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
7868
7869 2011-06-05  Bruno Haible  <bruno@clisp.org>
7870
7871         unsetenv: Avoid gcc warning.
7872         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
7873
7874 2011-06-05  Bruno Haible  <bruno@clisp.org>
7875
7876         setenv: Avoid gcc warning.
7877         * lib/setenv.c (setenv): Provide declaration if system lacks it.
7878
7879 2011-06-05  Bruno Haible  <bruno@clisp.org>
7880
7881         sys_select: Ensure memset is declared also on AIX 7.
7882         * lib/sys_select.in.h: Include <string.h> also on AIX.
7883         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
7884         self-contained also on AIX 7.1.
7885
7886 2011-06-04  Jim Meyering  <meyering@redhat.com>
7887
7888         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
7889         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
7890         function name, "error".
7891         (_gl_translatable_diag_func_re): New configurable variable.
7892
7893 2011-06-04  Bruno Haible  <bruno@clisp.org>
7894
7895         getopt: Avoid gcc warning.
7896         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
7897
7898 2011-06-04  Bruno Haible  <bruno@clisp.org>
7899
7900         strerror_r: Fix comments.
7901         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
7902         commit.
7903
7904 2011-06-04  Bruno Haible  <bruno@clisp.org>
7905
7906         perror: Fix compilation error.
7907         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
7908         Undefine fprintf, not sprintf.
7909         * modules/perror (Depends-on): Remove intprops, verify.
7910
7911 2011-06-04  Bruno Haible  <bruno@clisp.org>
7912
7913         setlocale: Enable replacement on Cygwin 1.5.
7914         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
7915         Cygwin 1.5.x.
7916         * doc/posix-functions/setlocale.texi: Mention that the problem with the
7917         LC_CTYPE category also exists on Cygwin 1.5.x.
7918
7919 2011-06-04  Bruno Haible  <bruno@clisp.org>
7920
7921         strerror-override: Don't disable symbol renamings.
7922         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
7923         * lib/strerror-override.c: Include config.h.
7924         (strerror_override): Don't undefine.
7925
7926 2011-06-03  Bruno Haible  <bruno@clisp.org>
7927
7928         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
7929         * lib/localename.h: Update copyright header.
7930         * lib/localename.c: Likewise.
7931         * lib/relocatable.h: Likewise.
7932         * lib/relocatable.c: Likewise.
7933
7934 2011-06-02  Bruno Haible  <bruno@clisp.org>
7935
7936         doc: Fix a module name.
7937         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
7938
7939 2011-06-02  Bruno Haible  <bruno@clisp.org>
7940
7941         pipe2: Remove dependency on 'nonblocking' module.
7942         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
7943         O_NONBLOCK is defined by gnulib.
7944         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
7945         is zero.
7946         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
7947         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
7948         defined by gnulib.
7949         (get_nonblocking_flag): New function.
7950         (main): Test O_NONBLOCK flag only if it is nonzero.
7951         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
7952
7953 2011-06-03  Jim Meyering  <meyering@redhat.com>
7954
7955         maint: three new prohibit-header-without-use rules
7956         Prohibit use of cloexec.h, posixver.h, same.h without use.
7957         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
7958         (sc_prohibit_posixver_without_use): Likewise.
7959         (sc_prohibit_same_without_use): Likewise.
7960
7961 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
7962
7963         allocator: 'die' routine is now given requested size
7964         * lib/allocator.h (struct allocator.die): New size arg.
7965         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
7966         If the actual problem is an ssize_t limitation, not a size_t or
7967         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
7968
7969 2011-06-01  Eric Blake  <eblake@redhat.com>
7970
7971         strerror: drop strerror_r dependency
7972         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
7973         * lib/strerror-override.c (strerror_override): ...to new file.
7974         * lib/strerror-override.h: Add prototype.
7975         * lib/strerror-impl.h: Delete.
7976         * lib/strerror.c (strerror): New implementation.
7977         * modules/errno (Files): Add new files.
7978         (configure.ac): Compile new file as appropriate.
7979         * modules/strerror (Files): Drop unused file.
7980         (Depends-on): Drop strerror_r-posix.
7981         * MODULES.html.sh: Document strerror_r-posix.
7982         Requested by Sam Steingold.
7983
7984         perror: call strerror_r directly
7985         * modules/perror (Files): Drop strerror-impl.h.
7986         * lib/perror.c (perror): Use our own stack buffer, rather than
7987         calling a wrapper that uses static storage.
7988         * doc/posix-functions/perror.texi (perror): Document a limitation
7989         of our replacement.
7990
7991         strerror_r: fix includes for FreeBSD
7992         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
7993         since we use abort on some platforms.
7994         Reported by Matthias Bolte.
7995
7996 2011-05-31  Bruno Haible  <bruno@clisp.org>
7997
7998         Fix link errors in tests: openat-die uses gettext-h.
7999         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
8000         against $(LIBINTL).
8001         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
8002         against $(LIBINTL).
8003         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
8004         $(LIBINTL).
8005         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
8006         against $(LIBINTL).
8007         * modules/linkat-tests (Makefile.am): Link test-linkat against
8008         $(LIBINTL).
8009         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
8010         $(LIBINTL).
8011         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
8012         against $(LIBINTL).
8013         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
8014         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
8015         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
8016         $(LIBINTL).
8017         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
8018         $(LIBINTL).
8019         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
8020         $(LIBINTL).
8021         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8022
8023 2011-05-31  Bruno Haible  <bruno@clisp.org>
8024
8025         Fix link errors in tests: wait-process uses gettext-h.
8026         * modules/nonblocking-pipe-tests (Makefile.am): Set
8027         test_nonblocking_pipe_main_LDADD.
8028         * modules/nonblocking-socket-tests (Makefile.am): Link
8029         test-nonblocking-socket-main against $(LIBINTL).
8030         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8031
8032 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
8033
8034         assert-h: work around 'verify' incompatibility
8035         * lib/verify.h: Use @...@ directives, not ifdef.
8036         * modules/assert-h (assert.h): Implement the directives.
8037         (assert.h): Substitute the symbol-prefix more consistently.
8038
8039 2011-05-29  Jim Meyering  <meyering@redhat.com>
8040
8041         trim: remove three superfluous assignments
8042         * lib/trim.c (trim2): Remove three superfluous assignments
8043         and correct brace positioning.
8044
8045 2011-05-29  Bruno Haible  <bruno@clisp.org>
8046
8047         wctype-h: Avoid namespace pollution on Solaris 2.6.
8048         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
8049         identifiers.
8050         * doc/posix-headers/wctype.texi: Mention the problem.
8051         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8052
8053 2011-05-28  Jim Meyering  <meyering@redhat.com>
8054
8055         parse-datetime.y: accommodate -Wstrict-overflow
8056         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
8057         placate -Wstrict-overflow.
8058
8059         trim: avoid a warning from -O2 -Wstrict-overflow
8060         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
8061
8062 2011-05-29  Bruno Haible  <bruno@clisp.org>
8063
8064         gnulib-tool: Fix bug in yesterday's commit.
8065         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
8066         twice.
8067
8068 2011-05-29  Bruno Haible  <bruno@clisp.org>
8069
8070         Allow multiple gnulib generated include files to be combined.
8071         * gnulib-tool (func_compute_include_guard_prefix): New function.
8072         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
8073         ${gl_include_guard_prefix} references.
8074         (func_import, func_create_testdir): Invoke
8075         func_compute_include_guard_prefix.
8076         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
8077         * lib/ctype.in.h: Likewise.
8078         * lib/dirent.in.h: Likewise.
8079         * lib/errno.in.h: Likewise.
8080         * lib/fcntl.in.h: Likewise.
8081         * lib/float.in.h: Likewise.
8082         * lib/getopt.in.h: Likewise.
8083         * lib/iconv.in.h: Likewise.
8084         * lib/langinfo.in.h: Likewise.
8085         * lib/locale.in.h: Likewise.
8086         * lib/math.in.h: Likewise.
8087         * lib/netdb.in.h: Likewise.
8088         * lib/netinet_in.in.h: Likewise.
8089         * lib/poll.in.h: Likewise.
8090         * lib/pthread.in.h: Likewise.
8091         * lib/pty.in.h: Likewise.
8092         * lib/sched.in.h: Likewise.
8093         * lib/se-selinux.in.h: Likewise.
8094         * lib/search.in.h: Likewise.
8095         * lib/signal.in.h: Likewise.
8096         * lib/spawn.in.h: Likewise.
8097         * lib/stdarg.in.h: Likewise.
8098         * lib/stddef.in.h: Likewise.
8099         * lib/stdint.in.h: Likewise.
8100         * lib/stdio.in.h: Likewise.
8101         * lib/stdlib.in.h: Likewise.
8102         * lib/string.in.h: Likewise.
8103         * lib/strings.in.h: Likewise.
8104         * lib/sys_file.in.h: Likewise.
8105         * lib/sys_ioctl.in.h: Likewise.
8106         * lib/sys_select.in.h: Likewise.
8107         * lib/sys_socket.in.h: Likewise.
8108         * lib/sys_stat.in.h: Likewise.
8109         * lib/sys_time.in.h: Likewise.
8110         * lib/sys_times.in.h: Likewise.
8111         * lib/sys_uio.in.h: Likewise.
8112         * lib/sys_utsname.in.h: Likewise.
8113         * lib/sys_wait.in.h: Likewise.
8114         * lib/sysexits.in.h: Likewise.
8115         * lib/termios.in.h: Likewise.
8116         * lib/time.in.h: Likewise.
8117         * lib/unistd.in.h: Likewise.
8118         * lib/wchar.in.h: Likewise.
8119         * lib/wctype.in.h: Likewise.
8120         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
8121         * modules/ctype (Makefile.am): Likewise.
8122         * modules/dirent (Makefile.am): Likewise.
8123         * modules/errno (Makefile.am): Likewise.
8124         * modules/fcntl-h (Makefile.am): Likewise.
8125         * modules/float (Makefile.am): Likewise.
8126         * modules/getopt-posix (Makefile.am): Likewise.
8127         * modules/iconv-h (Makefile.am): Likewise.
8128         * modules/langinfo (Makefile.am): Likewise.
8129         * modules/locale (Makefile.am): Likewise.
8130         * modules/math (Makefile.am): Likewise.
8131         * modules/netdb (Makefile.am): Likewise.
8132         * modules/netinet_in (Makefile.am): Likewise.
8133         * modules/poll-h (Makefile.am): Likewise.
8134         * modules/pthread (Makefile.am): Likewise.
8135         * modules/pty (Makefile.am): Likewise.
8136         * modules/sched (Makefile.am): Likewise.
8137         * modules/search (Makefile.am): Likewise.
8138         * modules/selinux-h (Makefile.am): Likewise.
8139         * modules/signal (Makefile.am): Likewise.
8140         * modules/spawn (Makefile.am): Likewise.
8141         * modules/stdarg (Makefile.am): Likewise.
8142         * modules/stddef (Makefile.am): Likewise.
8143         * modules/stdint (Makefile.am): Likewise.
8144         * modules/stdio (Makefile.am): Likewise.
8145         * modules/stdlib (Makefile.am): Likewise.
8146         * modules/string (Makefile.am): Likewise.
8147         * modules/strings (Makefile.am): Likewise.
8148         * modules/sys_file (Makefile.am): Likewise.
8149         * modules/sys_ioctl (Makefile.am): Likewise.
8150         * modules/sys_select (Makefile.am): Likewise.
8151         * modules/sys_socket (Makefile.am): Likewise.
8152         * modules/sys_stat (Makefile.am): Likewise.
8153         * modules/sys_time (Makefile.am): Likewise.
8154         * modules/sys_times (Makefile.am): Likewise.
8155         * modules/sys_uio (Makefile.am): Likewise.
8156         * modules/sys_utsname (Makefile.am): Likewise.
8157         * modules/sys_wait (Makefile.am): Likewise.
8158         * modules/sysexits (Makefile.am): Likewise.
8159         * modules/termios (Makefile.am): Likewise.
8160         * modules/time (Makefile.am): Likewise.
8161         * modules/unistd (Makefile.am): Likewise.
8162         * modules/wchar (Makefile.am): Likewise.
8163         * modules/wctype-h (Makefile.am): Likewise.
8164         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
8165
8166 2011-05-29  Bruno Haible  <bruno@clisp.org>
8167
8168         assert-h: Allow multiple gnulib generated replacements to coexist.
8169         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
8170
8171 2011-05-29  Bruno Haible  <bruno@clisp.org>
8172
8173         argp: Allow coexistence with strerror_r-posix module.
8174         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
8175         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
8176         by gnulib's <string.h> replacement), assume it has the POSIX signature,
8177         not the glibc signature.
8178
8179 2011-05-28  Bruno Haible  <bruno@clisp.org>
8180
8181         gnulib-tool: Alternative structure of testdirs, similar to --import.
8182         * gnulib-tool: New option --single-configure.
8183         (func_usage): Document it.
8184         (single_configure): New variable.
8185         (func_modules_transitive_closure_separately,
8186         func_modules_transitive_closure_separately,
8187         func_determine_use_libtests, func_modules_add_dummy_separately,
8188         func_modules_to_filelist_separately): New functions, extracted from
8189         func_import.
8190         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
8191         (func_import): Use the new functions.
8192         (func_create_testdir): Set final_modules. Handle $single_configure =
8193         true case.
8194
8195 2011-05-28  Bruno Haible  <bruno@clisp.org>
8196
8197         getloadavg: Remove an unreliable safety check.
8198         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
8199         getloadavg.c is in place.
8200         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
8201         Reported by Sam Steingold <sds@gnu.org>.
8202
8203 2011-05-28  Bruno Haible  <bruno@clisp.org>
8204
8205         doc: Cleanup yet another file produced by texinfo.tex.
8206         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
8207
8208 2011-05-28  Bruno Haible  <bruno@clisp.org>
8209
8210         Finish the conditional dependencies mechanism.
8211         * gnulib-tool: New option --no-conditional-dependencies.
8212         (func_usage): Document it. Don't mark --conditional-dependencies as
8213         experimental.
8214         (cond_dependencies): The possible values can now be true, false, empty.
8215         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
8216         (func_import): Store setting in gnulib-cache.m4 and read it from there.
8217         * doc/gnulib-tool.texi (Conditional dependencies): New section.
8218
8219 2011-05-28  Bruno Haible  <bruno@clisp.org>
8220
8221         doc: Use a recent texinfo.tex.
8222         * doc/Makefile (tex_opts): New variable.
8223         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
8224
8225 2011-05-28  Jim Meyering  <meyering@redhat.com>
8226
8227         intprops.h: adjust comment to match code change
8228         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
8229         only once, it *may* have side effects.  Also fix an unrelated typo.
8230         (_GL_INT_SIGNED): Likewise.
8231
8232 2011-05-26  Simon Josefsson  <simon@josefsson.org>
8233
8234         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
8235
8236 2011-05-26  Bruno Haible  <bruno@clisp.org>
8237
8238         mbsrchr: Avoid collision with system function on Interix.
8239         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
8240         Reported by Markus Duft <mduft@gentoo.org>.
8241
8242 2011-05-15  James Youngman  <jay@gnu.org>
8243
8244         getopt: for ambiguous options, enumerate the possibilities.
8245         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
8246         the ambiguous options when an ambiguous prefix is given. This was
8247         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
8248         glibc change was
8249         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
8250
8251 2011-05-25  Eric Blake  <eblake@redhat.com>
8252
8253         getcwd: work around mingw bug
8254         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
8255         * doc/posix-functions/getcwd.texi (getcwd): Document it.
8256         Reported by Matthias Bolte.
8257
8258 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
8259
8260         test-intprops: disable -Wtype-limits diagnostics
8261         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
8262         diagnostics.  Otherwise, the integer overflow macros generate many
8263         diagnostics.  Reported by Jim Meyering in
8264         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
8265
8266         intprops: shorten, to pacify gcc -Woverlength-strings
8267         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
8268         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
8269         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
8270         likely to run afoul of C compiler limits for string constant lengths.
8271         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
8272
8273 2011-05-24  Eric Blake  <eblake@redhat.com>
8274
8275         docs: document recently fixed glibc printf bug
8276         * doc/posix-functions/fprintf.texi (fprintf): Document it.
8277         * doc/posix-functions/printf.texi (printf): Likewise.
8278         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
8279         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
8280
8281         closein-tests: convert to init.sh
8282         * modules/closein-tests (Files): Add init.sh
8283         * tests/test-closein.sh Use it.
8284
8285         yesno-tests: convert to init.sh
8286         * modules/yesno-tests (Files): Add init.sh.
8287         * tests/test-yesno.sh: Use it.
8288
8289         atexit-tests: ensure reliable exit status
8290         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
8291         Reported by Bruno Haible.
8292
8293 2011-05-24  Bruno Haible  <bruno@clisp.org>
8294
8295         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
8296         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
8297         gl_PREREQ_STRERROR_R invocations from here...
8298         * modules/strerror_r-posix (configure.ac): ... to here.
8299
8300 2011-05-24  Eric Blake  <eblake@redhat.com>
8301
8302         strerror_r: fix missing header
8303         * lib/strerror_r.c: Avoid compiler warning about snprintf.
8304
8305         strerror_r: fix AIX test failures
8306         * lib/strerror_r.c (strerror_r): Convert silent truncation to
8307         ERANGE failure.
8308
8309         strerror_r: fix Solaris test failures
8310         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
8311         failures.
8312         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
8313
8314         strerror_r: enforce POSIX recommendations
8315         * lib/strerror_r.c (safe_copy): New helper method.
8316         (strerror_r): Guarantee a non-empty string.
8317         * tests/test-strerror_r.c (main): Enhance tests to incorporate
8318         recent POSIX rulings and to match our strerror guarantees.
8319         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
8320
8321 2011-05-24  Jim Meyering  <meyering@redhat.com>
8322
8323         test-perror2.c: avoid warning about unused variable
8324         * tests/test-perror2.c (main): Remove declaration of unused "fp".
8325
8326 2011-05-24  Eric Blake  <eblake@redhat.com>
8327
8328         perror: avoid spurious test failure on HP-UX
8329         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
8330
8331         tests: fix logic bug in init.sh
8332         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
8333         shell.
8334
8335 2011-05-24  Jim Meyering  <meyering@redhat.com>
8336
8337         utimensat: do not reference an out-of-scope buffer
8338         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
8339         declared in an inner scope, yet "times" would be dereferenced outside
8340         the scope in which "ts" was valid.
8341         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
8342         of ts[2] "out/up", so that the use of aliased "times" (via
8343         "times = ts;") does not end up referencing an out-of-scope "ts"
8344
8345         opendir-safer.c: don't clobber errno; don't close negative FD
8346         * lib/opendir-safer.c (opendir_safer):
8347         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
8348         file descriptor, and more importantly, don't clobber the
8349         offending errno value with EINVAL.  Before, upon failure
8350         of dup_safer, we would pass the negative file descriptor to
8351         fdopendir, which would clobber errno.
8352
8353 2011-05-23  Bruno Haible  <bruno@clisp.org>
8354
8355         idcache: Fix module description.
8356         * modules/idcache (Include): Set to "idcache.h".
8357
8358 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
8359
8360         gnulib-tool: fix portability problem with MacOS sed
8361         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
8362         before the "}".  Problem reported by Leo in
8363         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
8364         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
8365         sed_extract_condition1, sed_extract_condition2.
8366
8367 2011-05-23  Bruno Haible  <bruno@clisp.org>
8368
8369         hash: Simplify autoconf macro.
8370         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
8371
8372 2011-05-23  Bruno Haible  <bruno@clisp.org>
8373
8374         getugroups: Fix module description.
8375         * modules/getugroups (Include): Set to "getugroups.h".
8376
8377 2011-05-23  Bruno Haible  <bruno@clisp.org>
8378
8379         linkat: Simplify autoconf macro.
8380         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
8381
8382 2011-05-23  Bruno Haible  <bruno@clisp.org>
8383             Eric Blake  <eblake@redhat.com>
8384
8385         linkat, renameat: Update dependencies.
8386         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
8387         * modules/linkat (Depends-on): Likewise. Remove also readlink,
8388         symlinkat.
8389
8390 2011-05-23  Jim Meyering  <meyering@redhat.com>
8391
8392         maint.mk: more tight_scope improvements
8393         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
8394         (_gl_TS_headers): Define only in if-0'd block.
8395         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
8396         sometimes we must *not* use it.  Adjust uses accordingly.
8397         (sc_tight_scope): Use much simpler grep-based test to determine
8398         whether we skip this rule.
8399
8400         maint.mk: generalize/improve the tight-scope rule
8401         * top/maint.mk: Emit a warning when the test is skipped.
8402         (_gl_TS_dir): Add $(srcdir)/ prefix.
8403         (_gl_TS_function_match): Simplify, rather than trying
8404         to enumerate common types.  Otherwise, it would fail to match an
8405         "extern unsigned char const *" declaration in idutils.
8406         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
8407         a way to support use of that type of macro.
8408         (_gl_TS_var_match): Simplify regexp.
8409         (_gl_TS_obj_files): New configurable variable.
8410         (_gl_TS_headers): Likewise.
8411
8412 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
8413
8414         verify: fix bug when gnulib <assert.h> is also included
8415         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
8416         is defined, not if _GL_STATIC_ASSERT_H is not defined.
8417         Perhaps there's a better way, but this fixes the immediate problem.
8418         Problem reported by Bruno Haible in
8419         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
8420
8421 2011-05-22  Bruno Haible  <bruno@clisp.org>
8422
8423         xgetcwd: Simplify autoconf macro.
8424         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
8425
8426 2011-05-22  Bruno Haible  <bruno@clisp.org>
8427
8428         New module 'mktime-internal'.
8429         * modules/mktime-internal: New file.
8430         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
8431         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
8432         mktime_internal as a C macro if libc has __mktime_internal.
8433         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
8434         conditions.
8435         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
8436
8437 2011-05-22  Bruno Haible  <bruno@clisp.org>
8438
8439         timegm: Correct mktime replacement statements.
8440         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
8441         defining mktime as a C macro. This completes a 2009-07-28 commit.
8442
8443 2011-05-22  Bruno Haible  <bruno@clisp.org>
8444
8445         timegm: Simplify autoconf macro.
8446         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
8447
8448 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
8449
8450         clock-time: change to LGPLv2+.
8451         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
8452         BSD-like but we have no mark for that; this is good enough for now.
8453
8454 2011-05-21  Bruno Haible  <bruno@clisp.org>
8455
8456         strerror_r: Fix comments.
8457         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
8458
8459 2011-05-21  Bruno Haible  <bruno@clisp.org>
8460
8461         relocatable-prog-wrapper: Fix possible link error.
8462         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
8463         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
8464         (gl_FUNC_SETENV): ... to here.
8465         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
8466         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
8467
8468 2011-05-21  Bruno Haible  <bruno@clisp.org>
8469
8470         relocatable-prog-wrapper: Assume strerror() exists.
8471         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
8472         m4/strerror.m4.
8473         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
8474         * lib/relocwrapper.c: Remove mention of strerror module.
8475         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
8476         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
8477         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
8478         C macro.
8479
8480 2011-05-21  Bruno Haible  <bruno@clisp.org>
8481
8482         select: Simplify replacement idiom.
8483         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
8484         Win32 platforms.
8485         * lib/sys_select.in.h (select): Simplify accordingly.
8486         * modules/select (Depends-on): Likewise.
8487
8488 2011-05-21  Bruno Haible  <bruno@clisp.org>
8489
8490         mkdir-p: Simplify autoconf macro.
8491         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
8492         gl_FUNC_LCHOWN.
8493
8494 2011-05-21  Eric Blake  <eblake@redhat.com>
8495
8496         strerror_r: avoid clobbering strerror on cygwin
8497         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
8498         fall back instead to sys_errlist.
8499         * modules/strerror (configure.ac): Add witness.
8500         * tests/test-strerror_r.c (main): Enhance test.
8501         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
8502         * tests/test-perror2.c (main): Free memory before exit.
8503
8504 2011-05-21  Bruno Haible  <bruno@clisp.org>
8505
8506         mkdtemp: Use gnulib naming conventions.
8507         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
8508         * modules/mkdtemp (configure.ac): Update.
8509
8510 2011-05-20  Eric Blake  <eblake@redhat.com>
8511
8512         strerror_r: avoid corrupting errno on Solaris
8513         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
8514         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
8515
8516         strerror_r: avoid compiler warning
8517         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
8518
8519         strerror_r: simplify AIX code
8520         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
8521
8522         test-perror: avoid spurious failure on FreeBSD
8523         * modules/perror-tests (Depends-on): Add strerror, now that
8524         strerror_r no longer pulls it in.
8525
8526 2011-05-20  Bruno Haible  <bruno@clisp.org>
8527
8528         strerror_r-posix: Remove unused dependencies.
8529         * modules/strerror_r-posix (Depends-on): Remove strerror.
8530         Reported by Eric Blake.
8531
8532 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
8533
8534         intprops: remove assumption about A|B representation
8535         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
8536         is a valid integer if both A and B are.  Although this is true for
8537         all known practical hosts, the C standard doesn't guarantee it,
8538         and the code need not assume it.  Also, this change may work around
8539         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
8540         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
8541
8542 2011-05-20  Eric Blake  <eblake@redhat.com>
8543
8544         perror: work around FreeBSD bug
8545         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
8546         is broken.  Move AC_LIBOBJ...
8547         * modules/perror (configure.ac): Here.
8548         * doc/posix-functions/perror.texi (perror): Document this.
8549         * tests/test-perror2.c (main): Enhance test.
8550
8551         test-perror: check for strerror interactions
8552         * tests/macros.h (STREQ): Add macro.
8553         * modules/perror-tests (Files): Add second test.
8554         * tests/test-perror2.c (main): New file.
8555         * doc/posix-functions/perror.texi (perror): Document glibc bug.
8556
8557         test-perror: rewrite to use init script
8558         * modules/perror-tests (Files): Add init.sh.
8559         * tests/test-perror.sh: Use temporary directory.
8560
8561 2011-05-20  Jim Meyering  <meyering@redhat.com>
8562
8563         maint: replace misused "a" with "an"
8564         * doc/intprops.texi: "a integer"
8565         * doc/regex.texi: "a explanation"
8566         * lib/alignof.h: "a object"
8567         * lib/argmatch.h: "a explanation"
8568         * lib/argp-help.c: "a option" and "a OPTION_DOC"
8569         * lib/stdint.in.h: "a integer"
8570         * lib/userspec.c: "a owner"
8571         * doc/gnulib.texi: Fix "a idea", and reword.
8572
8573 2011-05-19  Jim Meyering  <meyering@redhat.com>
8574
8575         maint: correct misuse of "a" and "an"
8576         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
8577         * lib/argp-help.c: "an docum...": s/an/a/
8578         * lib/argp-parse.c: "An vector": s/An/A/
8579         * lib/execute.c: "an native": s/an/a/
8580         * lib/spawn-pipe.c: Likewise.
8581         * lib/gc.h: "an Gc_rc": s/an/a/
8582         * lib/unigbrk.in.h: "an grapheme": s/an/a/
8583         * lib/fts.c: "an stat.st_dev": s/an/a/
8584
8585 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
8586
8587         intprops-tests: work around HP-UX 11.23 cc bug with constants
8588         * tests/test-intprops.c (VERIFY): New macro.
8589         (main): Use it, instead of verify, to work around the compiler bug; see
8590         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
8591
8592         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
8593         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
8594         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
8595         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
8596         (_GL_REMAINDER_OVERFLOW): Use it.
8597
8598         intprops-tests: revert unsigned part of previous change
8599         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
8600         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
8601         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
8602         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
8603
8604 2011-05-19  Bruno Haible  <bruno@clisp.org>
8605
8606         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
8607         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
8608         strerror_r() returned without filling the buffer.
8609         Reported by Eric Blake.
8610
8611 2011-05-19  Eric Blake  <eblake@redhat.com>
8612
8613         strerror_r: guarantee unchanged errno
8614         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
8615         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
8616         failure.
8617         * tests/test-strerror_r.c (main): Enhance test.
8618
8619 2011-05-19  Bruno Haible  <bruno@clisp.org>
8620
8621         strerror_r: Reorder #if blocks.
8622         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
8623         for consistency with the previous commit.
8624
8625 2011-05-19  Bruno Haible  <bruno@clisp.org>
8626
8627         perror: Avoid clobbering the strerror buffer when possible.
8628         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
8629         * lib/strerror.c: Include it.
8630         * modules/strerror (Files): Add lib/strerror-impl.h.
8631         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
8632         (my_strerror): New function, defined through lib/strerror-impl.h.
8633         (perror): Use it instead of strerror.
8634         * modules/perror (Files): Add lib/strerror-impl.h.
8635         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
8636
8637 2011-05-19  Eric Blake  <eblake@redhat.com>
8638
8639         strerror_r: fix on newer cygwin
8640         * lib/strerror_r.c (strerror_r): Cygwin now has
8641         __xpg_strerror_r, use it.
8642
8643 2011-05-19  Bruno Haible  <bruno@clisp.org>
8644
8645         strerror_r: Avoid clobbering the strerror buffer when possible.
8646         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
8647         (sys_nerr, sys_errlist): New declarations.
8648         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
8649         HP-UX, native Win32, IRIX, and 32-bit Solaris.
8650         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
8651
8652 2011-05-19  Bruno Haible  <bruno@clisp.org>
8653
8654         strerror_r: Fix test failure on mingw.
8655         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
8656         EXTEND_STRERROR_R.
8657         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
8658         macros from errno.in.h instead.
8659
8660 2011-05-19  Eric Blake  <eblake@redhat.com>
8661
8662         strerror: relax test for Solaris
8663         * tests/test-strerror.c (main): Permit Solaris behavior.
8664         * tests/test-strerror_r.c (main): Likewise.
8665
8666         strerror: enforce POSIX ruling on strerror(0)
8667         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
8668         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
8669         * lib/strerror_r.c (rpl_strerror_r): Work around it.
8670         * doc/posix-functions/strerror.texi (strerror): Document it.
8671         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
8672         * tests/test-strerror.c (main): Strengthen test.
8673         * tests/test-strerror_r.c (main): Likewise.
8674
8675 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
8676
8677         intprop-tests: port to older and more-pedantic compilers
8678         * modules/intprops-tests (Files): Add tests/macros.h.
8679         * tests/test-intprops.c: Include macros.h.
8680         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
8681         it's no longer documented to expand to an integer constant expression.
8682         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
8683         argument is floating point, as it's no longer documented to expand
8684         to an integer constant expression in that case.
8685         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
8686         compiler bugs reported by Bruno Haible.  See
8687         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
8688         (U0, U1): New constants, to work around the same bugs.  Also,
8689         in tests, use e.g., "(unsigned int) 39" rather than "39u".
8690
8691         intprops: work around C compiler bugs
8692         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
8693         bug in Sun C 5.11 2010/08/13 and other compilers; see
8694         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
8695
8696         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
8697         * doc/intprops.texi (Integer Type Determination): Fix
8698         documentation for TYPE_IS_INTEGER: it returns an constant
8699         expression, not an integer constant expression.  Fix doc for
8700         TYPE_SIGNED: it returns an integer constant expression only if its
8701         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
8702         hardly worth documented that way....)
8703
8704 2011-05-18  Bruno Haible  <bruno@clisp.org>
8705
8706         strerror_r: Avoid clobbering the strerror buffer when possible.
8707         * lib/strerror_r.c (strerror_r): Merge the three implementations.
8708         Handle gnulib defined errno values here. When strerror() returns NULL
8709         or an empty string, return EINVAL.
8710         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
8711         gnulib defined errno values here.
8712         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
8713
8714 2011-05-18  Eric Blake  <eblake@redhat.com>
8715
8716         fnmatch: avoid compiler warning
8717         * lib/fnmatch_loop.c (FCT): Use correct type.
8718         Reported by Matthias Bolte.
8719
8720 2011-05-13  Jim Meyering  <meyering@redhat.com>
8721
8722         maint.mk: three new prohibit_<HDR>_without_use rules
8723         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
8724         (sc_prohibit_stdio-safer_without_use): Likewise.
8725         (sc_prohibit_xfreopen_without_use): Likewise.
8726
8727 2011-05-17  Jim Meyering  <meyering@redhat.com>
8728
8729         announce-gen: fail if the NEWS delta is empty
8730         If there's nothing noteworthy in NEWS, then either you forgot
8731         or you shouldn't be releasing.
8732         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
8733
8734 2011-05-17  Pádraig Brady <P@draigBrady.com>
8735
8736         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
8737         reserved symbols starting with double underscore from the check.
8738
8739 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
8740
8741         intprops: add doc
8742         * doc/intprops.texi: New file, documenting intprops.
8743         * doc/gnulib.texi (Particular Modules): Include it.
8744
8745         verify: add doc to gnulib manual and fix example
8746         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
8747         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
8748         (Compile-time Assertions): Fix example so it can't overflow.
8749
8750 2011-05-17  Jim Meyering  <meyering@redhat.com>
8751
8752         warnings.m4: don't usurp save_CPPFLAGS variable name
8753         * m4/warnings.m4: Prefix local temporary variable name with gl_.
8754
8755         doc: fix typo
8756         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
8757
8758 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
8759             Bruno Haible  <bruno@clisp.org>
8760
8761         doc: Tweak recent change.
8762         * README (Portability guidelines): Tweak new text.
8763         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
8764         Interix 6.1.
8765
8766 2011-05-16  Eric Blake  <eblake@redhat.com>
8767
8768         inttypes: avoid autoconf warning
8769         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
8770         * m4/stdint.m4 (gl_STDINT_H): Likewise.
8771
8772 2011-05-16  Sam Steingold <sds@gnu.org>
8773         and Eric Blake  <eblake@redhat.com>
8774
8775         vc-list-files: accept multiple directory operands
8776         * build-aux/vc-list-files: Iterate over all remaining operands.
8777
8778 2011-05-16  Bruno Haible  <bruno@clisp.org>
8779
8780         Fix confusion regarding deprecated modules.
8781         * modules/calloc (Status, Notice): Mark module as deprecated, not
8782         obsolete.
8783         * modules/fnmatch-posix (Status, Notice): Likewise.
8784         * modules/getdate (Status, Notice): Likewise.
8785         * modules/getopt (Status, Notice): Likewise.
8786         * modules/malloc (Status, Notice): Likewise.
8787         * modules/pipe (Status, Notice): Likewise.
8788         * modules/realloc (Status, Notice): Likewise.
8789         * modules/rename-dest-slash (Status, Notice): Likewise.
8790         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
8791         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
8792         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
8793         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
8794         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
8795
8796 2011-05-16  Bruno Haible  <bruno@clisp.org>
8797
8798         doc: List the target platforms.
8799         * doc/gnulib-intro.texi (Target Platforms): New section.
8800         * doc/gnulib.texi (Introduction): Update menu.
8801         * README (Portability guidelines): Refer to the new section. Update
8802         statement about oldest supported environment. Remove rationale why
8803         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
8804         unportable C89 function.
8805         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
8806         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
8807
8808 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
8809
8810         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
8811
8812 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
8813
8814         intprops-tests: new module
8815         * modules/intprops-tests, tests/test-intprops.c: New files.
8816
8817         intprops: add safe, portable integer overflow checking
8818         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
8819         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
8820         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
8821         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
8822         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
8823         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
8824         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
8825         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
8826         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
8827         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
8828         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
8829
8830 2011-05-12  James Youngman  <jay@gnu.org>
8831
8832         Add a test for glibc's Bugzilla bug #12378.
8833         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
8834         doesn't allow the literal matching of a lone "[" (which is
8835         required by POSIX).
8836         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
8837
8838 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
8839
8840         Sync glibc change fixing Bugzilla bug #12378.
8841         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
8842         beginning and fall back to matching as normal character if the
8843         string ends before the matching ']' is found.  This is what POSIX
8844         requires.
8845
8846 2011-05-13  Eric Blake  <eblake@redhat.com>
8847
8848         getcwd-lgpl: relax test for FreeBSD
8849         * doc/posix-functions/getcwd.texi (getcwd): Document portability
8850         issue.
8851         * tests/test-getcwd-lgpl.c (main): Relax test.
8852         Reported by Matthias Bolte.
8853
8854 2011-05-11  Eric Blake  <eblake@redhat.com>
8855
8856         test-fflush: silence compiler warning
8857         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
8858
8859 2011-05-11  Bruno Haible  <bruno@clisp.org>
8860
8861         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
8862         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
8863         * modules/canonicalize (Depends-on): Add 'nocrash'.
8864         * modules/canonicalize-lgpl (Depends-on): Likewise.
8865         * doc/posix-functions/realpath.texi: Update platforms list.
8866         Reported by Ryan Schmidt <ryandesign@macports.org>.
8867
8868 2011-05-11  Bruno Haible  <bruno@clisp.org>
8869
8870         group-member: Declare function in <unistd.h>.
8871         * lib/unistd.in.h (group_member): New declaration.
8872         * lib/group-member.h: Remove file.
8873         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
8874         * tests/test-unistd-c++.cc: Check signature of group_member.
8875         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
8876         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
8877         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
8878         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
8879         HAVE_GROUP_MEMBER.
8880         * modules/group-member (Files): Remove lib/group-member.h.
8881         (Depends-on): Add unistd. Specify conditions.
8882         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8883         (Include): Change to <unistd.h>.
8884         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
8885         HAVE_GROUP_MEMBER.
8886         * NEWS: Mention the change.
8887         * lib/euidaccess.c: Don't include group-member.h.
8888
8889 2011-05-11  Bruno Haible  <bruno@clisp.org>
8890
8891         group-member: Document module.
8892         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
8893         module.
8894
8895 2011-05-11  Bruno Haible  <bruno@clisp.org>
8896
8897         fclose: Fix mistake earlier today.
8898         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
8899
8900 2011-05-11  Eric Blake  <eblake@redhat.com>
8901
8902         fclose: preserve fflush errors
8903         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
8904         Reported by Jim Meyering.
8905
8906         bootstrap: support a prereq of 'rpcgen -' on RHEL5
8907         * build-aux/bootstrap (check_versions): When no specific version
8908         is required, merely check that the app produces an exit status
8909         that indicates its existence.
8910
8911         maint.mk: drop redundant check
8912         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
8913         the same but better.
8914
8915 2011-05-11  Bruno Haible  <bruno@clisp.org>
8916
8917         fclose: Fix possible link error.
8918         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
8919         unregister_shadow_fd. Improve comments.
8920         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
8921         Eric Blake.
8922
8923 2011-05-11  Jim Meyering  <meyering@redhat.com>
8924
8925         maint.mk: improve "can not" detection and generalize rule name
8926         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
8927         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
8928         Use the same technique as in sc_prohibit_doubled_word, so that
8929         we recognize "can not" also when the words are separated by a newline.
8930         Suggested by Eric Blake.
8931         (perl_filename_lineno_text_): Define.  Factored out of...
8932         (prohibit_doubled_word_): ...here.  Use the new definition.
8933         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
8934         (prohibit_undesirable_word_seq_RE_): New overridable variable.
8935         (ignore_undesirable_word_sequence_RE_): New overridable variable.
8936
8937 2011-05-10  Eric Blake  <eblake@redhat.com>
8938
8939         fclose: avoid double close race when possible
8940         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
8941         all but WINDOWS_SOCKETS.
8942
8943 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
8944
8945         openat: correct new comment
8946         * lib/openat-proc.c (openat_proc_name): Correct the comment.
8947
8948 2011-05-10  Jim Meyering  <meyering@redhat.com>
8949
8950         openat: add comments
8951         * lib/openat-proc.c (openat_proc_name): Add comments,
8952         mostly from Eric Blake.
8953
8954 2011-05-09  Eric Blake  <eblake@redhat.com>
8955
8956         openat: reduce syscalls in first probe of /proc
8957         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
8958         be a directory.  Simplify the probe for .. bugs.
8959         * modules/openat (Depends-on): Drop same-inode.
8960         Reported by Bastien ROUCARIES.
8961
8962 2011-05-09  Jim Meyering  <meyering@redhat.com>
8963
8964         maint.mk: change semantics/name of tight_scope variables
8965         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
8966         Rename variables to align with semantics that make them more useful.
8967
8968         maint.mk: tweak new rule's name not to impinge
8969         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
8970         (sc_tight_scope): Use new rule name rather than $@-0.
8971
8972         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
8973         * top/maint.mk (sc_tight_scope): New rule.
8974         (sc_tight_scope-0): New rule, ifdef'd out.
8975         (_gl_TS_dir): Default.
8976         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
8977         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
8978
8979 2011-05-09  Simon Josefsson  <simon@josefsson.org>
8980
8981         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
8982         Haible <bruno@clisp.org>.
8983
8984 2011-05-08  Bruno Haible  <bruno@clisp.org>
8985
8986         Comments.
8987         * m4/isnanf.m4: Add comment.
8988         * m4/isnanl.m4: Likewise.
8989
8990 2011-05-08  Bruno Haible  <bruno@clisp.org>
8991
8992         glob: Remove obsolete macro.
8993         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
8994
8995 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
8996
8997         intprops: Sun C 5.11 supports __typeof__
8998         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
8999         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
9000         which is new.
9001         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
9002
9003         intprops: switch to usual gnulib indenting and naming
9004         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
9005         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
9006
9007         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
9008
9009 2011-05-08  Jim Meyering  <meyering@redhat.com>
9010
9011         maint.mk: suppress "Entering/Leaving directory" diag in announcement
9012         * top/maint.mk (release-prep): Use make's --no-print-directory
9013         option when generating the announcement.  This eliminates the
9014         pesky "make[2]: Entering/Leaving directory" diagnostics in the
9015         generated announcement template.
9016
9017 2011-05-08  Bruno Haible  <bruno@clisp.org>
9018
9019         tzset: Fix gettimeofday wrapper on Solaris 2.6.
9020         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
9021         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
9022
9023 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
9024
9025         ignore-value, verify: Omit include files from lib_SOURCES.
9026         * modules/ignore-value, modules/verify (Makefile.am):
9027         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
9028         that leads Automake to duplicate use of am__objects_... variables
9029         in Makefile.in.  See
9030         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
9031
9032 2011-05-07  Bruno Haible  <bruno@clisp.org>
9033
9034         fclose: Simplify autoconf macro.
9035         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
9036         defined.
9037
9038 2011-05-07  Bruno Haible  <bruno@clisp.org>
9039
9040         canonicalize-lgpl: Fix autoconf macro ordering bug.
9041         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
9042         gl_STDLIB_H_DEFAULTS.
9043
9044 2011-05-06  Eric Blake  <eblake@redhat.com>
9045
9046         maintainer-makefile: make sc_po_check easier to tune
9047         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
9048         to probe for strings, such as an alternate location for gnulib.
9049
9050         fclose: guarantee behavior on seekable stdin
9051         * modules/fclose (Depends-on): Add fflush.
9052         * doc/posix-functions/fclose.texi (fclose): Document this.
9053         * tests/test-fclose.c (main): Make test for this unconditional.
9054
9055 2011-05-06  Bruno Haible  <bruno@clisp.org>
9056
9057         fflush, fpurge: Relicense under LGPLv2+.
9058         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
9059         * modules/fpurge (License): Likewise.
9060         With permission from Eric Blake and Jim Meyering.
9061         Suggested by Eric Blake.
9062
9063 2011-05-06  Karl Berry  <karl@gnu.org>
9064
9065         * MODULES.html.sh (func_all_modules): remove exit.
9066
9067 2011-05-06  Jim Meyering  <meyering@redhat.com>
9068
9069         maint.mk: use info-gnu@ as the default only for a stable release
9070         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
9071         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
9072         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
9073         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
9074
9075 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
9076
9077         assert-h: new module, which supports C1X-style static_assert
9078         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
9079         * lib/verify.h: Revamp so that this can be copied into assert.h,
9080         while retaining the ability to use it standalone as before.
9081         Rename private identifiers so as not to encroach on the
9082         standard C namespace, since this is now used by assert.h.
9083         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
9084         the old verify_true.
9085         (_GL_VERIFY_TRUE): New macro, with much of the contents of
9086         the old verify_true.  Use _GL_VERIFY_TYPE.
9087         (_GL_VERIFY): New macro, with much of the contents of the old verify.
9088         (static_assert): New macro, if _GL_STATIC_ASSERT_H
9089         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
9090         defined when this file is copied into the replacement assert.h.
9091         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
9092         and _Static_assert is not built in.
9093         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
9094         defined, and use the new macros mentioned above.
9095         * doc/posix-headers/assert.texi: Document this.
9096
9097 2011-05-05  Bruno Haible  <bruno@clisp.org>
9098
9099         fclose, fflush: Respect rules for use of AC_LIBOBJ.
9100         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
9101         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
9102         gl_REPLACE_FCLOSE here.
9103         * modules/fflush (Depends-on): Remove fclose.
9104         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
9105         combination with module 'fclose'.
9106
9107 2011-05-05  Bruno Haible  <bruno@clisp.org>
9108
9109         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
9110         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
9111         gl_FUNC_FFLUSH.
9112         (gl_FUNC_FFLUSH): Use it.
9113         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
9114         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
9115         gl_REPLACE_FSEEKO here.
9116
9117 2011-05-05  Bruno Haible  <bruno@clisp.org>
9118
9119         tzset: Relicense under LGPL.
9120         * modules/tzset (License): Change to LGPL.
9121         No agreement needed; it's a no-op.
9122
9123         strtoimax, strtoumax: Relicense under LGPL.
9124         * modules/strtoimax (License): Change to LGPL.
9125         * modules/strtoumax (License): Likewise.
9126         With permission from Jim Meyering, Paul Eggert:
9127         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
9128         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
9129
9130         getgroups: Relicense under LGPL.
9131         * modules/getgroups (License): Change to LGPL.
9132         With permission from Jim Meyering, Paul Eggert, Eric Blake:
9133         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
9134         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
9135         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9136
9137         nanosleep: Relicense under LGPL.
9138         * modules/nanosleep (License): Change to LGPL.
9139         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
9140         Haible:
9141         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
9142         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
9143         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9144         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
9145
9146         futimens: Relicense under LGPL.
9147         * modules/futimens (License): Change to LGPL.
9148         With permission from Eric Blake:
9149         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9150
9151         fflush: Relicense under LGPL.
9152         * modules/fflush (License): Change to LGPL.
9153         With permission from Eric Blake, Bruno Haible, Jim Meyering:
9154         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9155         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
9156         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
9157
9158         tmpfile: Relicense under LGPL.
9159         * modules/tmpfile (License): Change to LGPL.
9160         With permission from Ben Pfaff:
9161         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
9162
9163         isfinite: Relicense under LGPL.
9164         * modules/isfinite (License): Change to LGPL.
9165         With permission from Ben Pfaff, Bruno Haible:
9166         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
9167         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
9168
9169         acosl..tanl: Relicense under LGPL.
9170         * modules/acosl (License): Change to LGPL.
9171         * modules/asinl (License): Likewise.
9172         * modules/atanl (License): Likewise.
9173         * modules/cosl (License): Likewise.
9174         * modules/expl (License): Likewise.
9175         * modules/logl (License): Likewise.
9176         * modules/sinl (License): Likewise.
9177         * modules/sqrtl (License): Likewise.
9178         * modules/tanl (License): Likewise.
9179         Source code originally from glibc and Paolo Bonzini. Agreements:
9180         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
9181         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
9182
9183 2011-05-05  Bruno Haible  <bruno@clisp.org>
9184
9185         signal: Define sighandler_t.
9186         * lib/signal.in.h (sighandler_t): New type.
9187         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
9188         whether sighandler_t is defined.
9189         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
9190         * modules/signal (Depends-on): Add extensions.
9191         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
9192         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
9193         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
9194
9195 2011-05-05  Eric Blake  <eblake@redhat.com>
9196
9197         maint: remove useless REPLACE_*_H macros
9198         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
9199         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
9200         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
9201         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
9202         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
9203         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
9204         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
9205         * m4/btowc.m4: Update callers.
9206         * m4/dirfd.m4: Likewise.
9207         * m4/duplocale.m4: Likewise.
9208         * m4/fchdir.m4: Likewise.
9209         * m4/fdopendir.m4: Likewise.
9210         * m4/inet_ntop.m4: Likewise.
9211         * m4/inet_pton.m4: Likewise.
9212         * m4/ioctl.m4: Likewise.
9213         * m4/mbrlen.m4: Likewise.
9214         * m4/mbrtowc.m4: Likewise.
9215         * m4/mbsinit.m4: Likewise.
9216         * m4/mbsnrtowcs.m4: Likewise.
9217         * m4/mbsrtowcs.m4: Likewise.
9218         * m4/poll.m4: Likewise.
9219         * m4/setlocale.m4: Likewise.
9220         * m4/wcrtomb.m4: Likewise.
9221         * m4/wcsnrtombs.m4: Likewise.
9222         * m4/wcsrtombs.m4: Likewise.
9223         * m4/wctob.m4: Likewise.
9224         * m4/wcwidth.m4: Likewise.
9225         * modules/posix_spawn: Likewise.
9226         * modules/posix_spawn_file_actions_addclose: Likewise.
9227         * modules/posix_spawn_file_actions_adddup2: Likewise.
9228         * modules/posix_spawn_file_actions_addopen: Likewise.
9229         * modules/posix_spawn_file_actions_destroy: Likewise.
9230         * modules/posix_spawn_file_actions_init: Likewise.
9231         * modules/posix_spawnattr_destroy: Likewise.
9232         * modules/posix_spawnattr_getflags: Likewise.
9233         * modules/posix_spawnattr_getpgroup: Likewise.
9234         * modules/posix_spawnattr_getschedparam: Likewise.
9235         * modules/posix_spawnattr_getschedpolicy: Likewise.
9236         * modules/posix_spawnattr_getsigdefault: Likewise.
9237         * modules/posix_spawnattr_getsigmask: Likewise.
9238         * modules/posix_spawnattr_init: Likewise.
9239         * modules/posix_spawnattr_setflags: Likewise.
9240         * modules/posix_spawnattr_setpgroup: Likewise.
9241         * modules/posix_spawnattr_setschedparam: Likewise.
9242         * modules/posix_spawnattr_setschedpolicy: Likewise.
9243         * modules/posix_spawnattr_setsigdefault: Likewise.
9244         * modules/posix_spawnattr_setsigmask: Likewise.
9245         * modules/posix_spawnp: Likewise.
9246
9247 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
9248
9249         Add option to do-release-commit-and-tag to specify branch.
9250         * build-aux/do-release-commit-and-tag: Add --branch.
9251
9252 2011-05-03  Bruno Haible  <bruno@clisp.org>
9253
9254         Avoid unnecessary compilation units, through conditional dependencies.
9255         * modules/accept (Depends-on): Add conditions to the dependencies.
9256         * modules/acosl (Depends-on): Likewise.
9257         * modules/argz (Depends-on): Likewise.
9258         * modules/asinl (Depends-on): Likewise.
9259         * modules/atanl (Depends-on): Likewise.
9260         * modules/atoll (Depends-on): Likewise.
9261         * modules/bind (Depends-on): Likewise.
9262         * modules/btowc (Depends-on): Likewise.
9263         * modules/canonicalize-lgpl (Depends-on): Likewise.
9264         * modules/ceil (Depends-on): Likewise.
9265         * modules/ceilf (Depends-on): Likewise.
9266         * modules/ceill (Depends-on): Likewise.
9267         * modules/chdir-long (Depends-on): Likewise.
9268         * modules/chown (Depends-on): Likewise.
9269         * modules/close (Depends-on): Likewise.
9270         * modules/connect (Depends-on): Likewise.
9271         * modules/cosl (Depends-on): Likewise.
9272         * modules/dirfd (Depends-on): Likewise.
9273         * modules/dprintf (Depends-on): Likewise.
9274         * modules/dprintf-posix (Depends-on): Likewise.
9275         * modules/error (Depends-on): Likewise.
9276         * modules/euidaccess (Depends-on): Likewise.
9277         * modules/expl (Depends-on): Likewise.
9278         * modules/faccessat (Depends-on): Likewise.
9279         * modules/fchdir (Depends-on): Likewise.
9280         * modules/fclose (Depends-on): Likewise.
9281         * modules/fcntl (Depends-on): Likewise.
9282         * modules/fdopendir (Depends-on): Likewise.
9283         * modules/fflush (Depends-on): Likewise.
9284         * modules/floor (Depends-on): Likewise.
9285         * modules/floorf (Depends-on): Likewise.
9286         * modules/floorl (Depends-on): Likewise.
9287         * modules/fnmatch (Depends-on): Likewise.
9288         * modules/fopen (Depends-on): Likewise.
9289         * modules/fprintf-posix (Depends-on): Likewise.
9290         * modules/frexp (Depends-on): Likewise.
9291         * modules/frexp-nolibm (Depends-on): Likewise.
9292         * modules/frexpl (Depends-on): Likewise.
9293         * modules/frexpl-nolibm (Depends-on): Likewise.
9294         * modules/fseek (Depends-on): Likewise.
9295         * modules/fsusage (Depends-on): Likewise.
9296         * modules/ftell (Depends-on): Likewise.
9297         * modules/ftello (Depends-on): Likewise.
9298         * modules/futimens (Depends-on): Likewise.
9299         * modules/getcwd (Depends-on): Likewise.
9300         * modules/getcwd-lgpl (Depends-on): Likewise.
9301         * modules/getdelim (Depends-on): Likewise.
9302         * modules/getdomainname (Depends-on): Likewise.
9303         * modules/getgroups (Depends-on): Likewise.
9304         * modules/gethostname (Depends-on): Likewise.
9305         * modules/getline (Depends-on): Likewise.
9306         * modules/getlogin_r (Depends-on): Likewise.
9307         * modules/getopt-posix (Depends-on): Likewise.
9308         * modules/getpeername (Depends-on): Likewise.
9309         * modules/getsockname (Depends-on): Likewise.
9310         * modules/getsockopt (Depends-on): Likewise.
9311         * modules/getsubopt (Depends-on): Likewise.
9312         * modules/getusershell (Depends-on): Likewise.
9313         * modules/glob (Depends-on): Likewise.
9314         * modules/grantpt (Depends-on): Likewise.
9315         * modules/iconv_open (Depends-on): Likewise.
9316         * modules/iconv_open-utf (Depends-on): Likewise.
9317         * modules/inet_ntop (Depends-on): Likewise.
9318         * modules/inet_pton (Depends-on): Likewise.
9319         * modules/ioctl (Depends-on): Likewise.
9320         * modules/isapipe (Depends-on): Likewise.
9321         * modules/isfinite (Depends-on): Likewise.
9322         * modules/isinf (Depends-on): Likewise.
9323         * modules/lchown (Depends-on): Likewise.
9324         * modules/ldexpl (Depends-on): Likewise.
9325         * modules/link (Depends-on): Likewise.
9326         * modules/linkat (Depends-on): Likewise.
9327         * modules/listen (Depends-on): Likewise.
9328         * modules/logl (Depends-on): Likewise.
9329         * modules/lstat (Depends-on): Likewise.
9330         * modules/mbrlen (Depends-on): Likewise.
9331         * modules/mbrtowc (Depends-on): Likewise.
9332         * modules/mbsinit (Depends-on): Likewise.
9333         * modules/mbsnrtowcs (Depends-on): Likewise.
9334         * modules/mbsrtowcs (Depends-on): Likewise.
9335         * modules/mbtowc (Depends-on): Likewise.
9336         * modules/memcmp (Depends-on): Likewise.
9337         * modules/mkdir (Depends-on): Likewise.
9338         * modules/mkdtemp (Depends-on): Likewise.
9339         * modules/mkfifo (Depends-on): Likewise.
9340         * modules/mkfifoat (Depends-on): Likewise.
9341         * modules/mknod (Depends-on): Likewise.
9342         * modules/mkostemp (Depends-on): Likewise.
9343         * modules/mkostemps (Depends-on): Likewise.
9344         * modules/mkstemp (Depends-on): Likewise.
9345         * modules/mkstemps (Depends-on): Likewise.
9346         * modules/mktime (Depends-on): Likewise.
9347         * modules/nanosleep (Depends-on): Likewise.
9348         * modules/open (Depends-on): Likewise.
9349         * modules/openat (Depends-on): Likewise.
9350         * modules/perror (Depends-on): Likewise.
9351         * modules/poll (Depends-on): Likewise.
9352         * modules/popen (Depends-on): Likewise.
9353         * modules/posix_spawn (Depends-on): Likewise.
9354         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
9355         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
9356         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
9357         * modules/posix_spawnp (Depends-on): Likewise.
9358         * modules/pread (Depends-on): Likewise.
9359         * modules/printf-posix (Depends-on): Likewise.
9360         * modules/ptsname (Depends-on): Likewise.
9361         * modules/putenv (Depends-on): Likewise.
9362         * modules/pwrite (Depends-on): Likewise.
9363         * modules/readline (Depends-on): Likewise.
9364         * modules/readlink (Depends-on): Likewise.
9365         * modules/readlinkat (Depends-on): Likewise.
9366         * modules/recv (Depends-on): Likewise.
9367         * modules/recvfrom (Depends-on): Likewise.
9368         * modules/regex (Depends-on): Likewise.
9369         * modules/remove (Depends-on): Likewise.
9370         * modules/rename (Depends-on): Likewise.
9371         * modules/renameat (Depends-on): Likewise.
9372         * modules/rmdir (Depends-on): Likewise.
9373         * modules/round (Depends-on): Likewise.
9374         * modules/roundf (Depends-on): Likewise.
9375         * modules/roundl (Depends-on): Likewise.
9376         * modules/rpmatch (Depends-on): Likewise.
9377         * modules/select (Depends-on): Likewise.
9378         * modules/send (Depends-on): Likewise.
9379         * modules/sendto (Depends-on): Likewise.
9380         * modules/setenv (Depends-on): Likewise.
9381         * modules/setlocale (Depends-on): Likewise.
9382         * modules/setsockopt (Depends-on): Likewise.
9383         * modules/shutdown (Depends-on): Likewise.
9384         * modules/sigaction (Depends-on): Likewise.
9385         * modules/signbit (Depends-on): Likewise.
9386         * modules/sigprocmask (Depends-on): Likewise.
9387         * modules/sinl (Depends-on): Likewise.
9388         * modules/sleep (Depends-on): Likewise.
9389         * modules/snprintf (Depends-on): Likewise.
9390         * modules/snprintf-posix (Depends-on): Likewise.
9391         * modules/socket (Depends-on): Likewise.
9392         * modules/sprintf-posix (Depends-on): Likewise.
9393         * modules/sqrtl (Depends-on): Likewise.
9394         * modules/stat (Depends-on): Likewise.
9395         * modules/strchrnul (Depends-on): Likewise.
9396         * modules/strdup-posix (Depends-on): Likewise.
9397         * modules/strerror (Depends-on): Likewise.
9398         * modules/strerror_r-posix (Depends-on): Likewise.
9399         * modules/strndup (Depends-on): Likewise.
9400         * modules/strnlen (Depends-on): Likewise.
9401         * modules/strptime (Depends-on): Likewise.
9402         * modules/strsep (Depends-on): Likewise.
9403         * modules/strsignal (Depends-on): Likewise.
9404         * modules/strstr-simple (Depends-on): Likewise.
9405         * modules/strtod (Depends-on): Likewise.
9406         * modules/strtoimax (Depends-on): Likewise.
9407         * modules/strtok_r (Depends-on): Likewise.
9408         * modules/strtoumax (Depends-on): Likewise.
9409         * modules/symlink (Depends-on): Likewise.
9410         * modules/symlinkat (Depends-on): Likewise.
9411         * modules/tanl (Depends-on): Likewise.
9412         * modules/tcgetsid (Depends-on): Likewise.
9413         * modules/tmpfile (Depends-on): Likewise.
9414         * modules/trunc (Depends-on): Likewise.
9415         * modules/truncf (Depends-on): Likewise.
9416         * modules/truncl (Depends-on): Likewise.
9417         * modules/uname (Depends-on): Likewise.
9418         * modules/unlink (Depends-on): Likewise.
9419         * modules/unlockpt (Depends-on): Likewise.
9420         * modules/unsetenv (Depends-on): Likewise.
9421         * modules/usleep (Depends-on): Likewise.
9422         * modules/utimensat (Depends-on): Likewise.
9423         * modules/vasprintf (Depends-on): Likewise.
9424         * modules/vdprintf (Depends-on): Likewise.
9425         * modules/vdprintf-posix (Depends-on): Likewise.
9426         * modules/vfprintf-posix (Depends-on): Likewise.
9427         * modules/vprintf-posix (Depends-on): Likewise.
9428         * modules/vsnprintf (Depends-on): Likewise.
9429         * modules/vsnprintf-posix (Depends-on): Likewise.
9430         * modules/vsprintf-posix (Depends-on): Likewise.
9431         * modules/wcrtomb (Depends-on): Likewise.
9432         * modules/wcscasecmp (Depends-on): Likewise.
9433         * modules/wcscspn (Depends-on): Likewise.
9434         * modules/wcsdup (Depends-on): Likewise.
9435         * modules/wcsncasecmp (Depends-on): Likewise.
9436         * modules/wcsnrtombs (Depends-on): Likewise.
9437         * modules/wcspbrk (Depends-on): Likewise.
9438         * modules/wcsrtombs (Depends-on): Likewise.
9439         * modules/wcsspn (Depends-on): Likewise.
9440         * modules/wcsstr (Depends-on): Likewise.
9441         * modules/wcstok (Depends-on): Likewise.
9442         * modules/wcswidth (Depends-on): Likewise.
9443         * modules/wctob (Depends-on): Likewise.
9444         * modules/wctomb (Depends-on): Likewise.
9445         * modules/wctype (Depends-on): Likewise.
9446         * modules/wcwidth (Depends-on): Likewise.
9447         * modules/write (Depends-on): Likewise.
9448
9449 2011-05-03  Bruno Haible  <bruno@clisp.org>
9450
9451         Support for conditional dependencies.
9452         * doc/gnulib.texi (Module description): Document the syntax of
9453         conditional dependencies.
9454         * gnulib-tool: New option --conditional-dependencies.
9455         (func_usage): Document it.
9456         (cond_dependencies): New variable.
9457         (func_get_automake_snippet_conditional,
9458         func_get_automake_snippet_unconditional): New functions, extracted from
9459         func_get_automake_snippet.
9460         (func_get_automake_snippet): Use them.
9461         (sed_first_32_chars): New variable.
9462         (func_module_shellfunc_name): New function.
9463         (func_module_shellvar_name): New function.
9464         (func_module_conditional_name): New function.
9465         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
9466         func_cond_module_condition): New functions.
9467         (func_modules_transitive_closure): Add support for conditional
9468         dependencies.
9469         (func_emit_lib_Makefile_am): For a conditional module, enclose the
9470         conditional automake snippet in an automake conditional.
9471         (func_emit_autoconf_snippets): Emit shell functions that contain the
9472         code for conditional modules.
9473         (func_import, func_create_testdir): Update specification.
9474
9475 2011-05-03  Eric Blake  <eblake@redhat.com>
9476
9477         test-getaddrinfo: report error information
9478         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
9479
9480 2011-05-03  Jim Meyering  <meyering@redhat.com>
9481
9482         bootstrap: avoid build failure when $GZIP is set
9483         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
9484         program name.  If defined at all, it is supposed to list gzip options.
9485         Reported by Alan Curry in http://debbugs.gnu.org/8609
9486
9487 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
9488
9489         readme-release: new module with release instructions
9490         * modules/readme-release: New module.
9491         * top/README-release: New file, from coreutils, grep, diffutils.
9492         * MODULES.html.sh (Support for maintaining and releasing): Add it.
9493
9494 2011-05-02  Eric Blake  <eblake@redhat.com>
9495
9496         fflush: also replace fclose when fixing fflush
9497         * modules/fflush (Depends-on): Add fclose.
9498         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
9499         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
9500         memstreams with no backing fd.
9501         * doc/posix-functions/fclose.texi (fclose): Document the use of
9502         fflush module to fix the bug.
9503         * tests/test-fclose.c (main): Relax test when fclose is used in
9504         isolation.
9505
9506         fclose: add some tests
9507         * modules/fclose-tests: New test module.
9508         * tests/test-fclose.c: New file.
9509         * doc/posix-functions/fclose.texi (fclose): Document the bug.
9510
9511         fclose: reduced dependencies
9512         * modules/fclose (Depends-on): Switch from fflush/fseeko to
9513         simpler lseek.
9514         * lib/fclose.c (rpl_fclose): Likewise.
9515         Reported by Simon Josefsson.
9516
9517         exit: drop remaining clients
9518         * modules/argmatch (Depends-on): Replace exit with stdlib.
9519         * modules/copy-file (Depends-on): Likewise.
9520         * modules/execute (Depends-on): Likewise.
9521         * modules/exitfail (Depends-on): Likewise.
9522         * modules/obstack (Depends-on): Likewise.
9523         * modules/pagealign_alloc (Depends-on): Likewise.
9524         * modules/pipe-filter-gi (Depends-on): Likewise.
9525         * modules/pipe-filter-ii (Depends-on): Likewise.
9526         * modules/savewd (Depends-on): Likewise.
9527         * modules/spawn-pipe (Depends-on): Likewise.
9528         * modules/wait-process (Depends-on): Likewise.
9529         * modules/xsetenv (Depends-on): Likewise.
9530         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
9531         * modules/git-merge-changelog (Depends-on): Likewise.
9532         * modules/long-options (Depends-on): Likewise.
9533         * modules/pt_chown (Depends-on): Likewise.
9534         * modules/sysexits (Depends-on): Likewise.
9535
9536         freading: relax license from LGPLv3+ to LGPLv2+
9537         * modules/freading (License): Relax LGPL version.
9538
9539 2011-05-02  Bruno Haible  <bruno@clisp.org>
9540
9541         fchdir: Remove unused dependencies.
9542         * modules/fchdir (Depends-on): Remove include_next.
9543
9544 2011-05-02  Bruno Haible  <bruno@clisp.org>
9545
9546         gnulib-tool: Refactor.
9547         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
9548         from func_emit_autoconf_snippets.
9549         (func_emit_autoconf_snippets): Use it.
9550
9551 2011-05-02  Simon Josefsson  <simon@josefsson.org>
9552
9553         * NEWS: Document removal of 'exit'.
9554         * modules/exit: Remove file.
9555
9556 2011-05-01  Bruno Haible  <bruno@clisp.org>
9557
9558         Update DEPENDENCIES.
9559         * DEPENDENCIES (gettext): Recommend the newest release.
9560         Reported by Simon Josefsson.
9561
9562 2011-05-01  Bruno Haible  <bruno@clisp.org>
9563
9564         gnulib-tool: Reduce code duplication.
9565         * gnulib-tool (func_emit_autoconf_snippets): New function.
9566         (func_import, func_create_testdir): Use it.
9567
9568 2011-04-30  Eric Blake  <eblake@redhat.com>
9569
9570         fclose: don't fail on non-seekable input stream
9571         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
9572         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
9573         since fflush is allowed to fail in that case.
9574
9575 2011-04-30  Bruno Haible  <bruno@clisp.org>
9576
9577         dup3: cleanup
9578         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
9579
9580 2011-04-30  Bruno Haible  <bruno@clisp.org>
9581
9582         netdb: Make it work in C++ mode.
9583         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
9584         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
9585         module.
9586         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
9587         gl_MODULE_INDICATOR_FOR_TESTS.
9588         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
9589         * modules/netdb-c++-tests: New file.
9590         * tests/test-netdb-c++.cc: New file.
9591
9592 2011-04-30  Bruno Haible  <bruno@clisp.org>
9593
9594         New modules 'vfscanf', 'vscanf'.
9595         * modules/vfscanf: New file.
9596         * modules/vscanf: New file.
9597         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
9598         here.
9599         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
9600         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
9601
9602 2011-04-30  Bruno Haible  <bruno@clisp.org>
9603
9604         passfd: Add comments.
9605         * lib/passfd.c: Add comments about platforms.
9606
9607 2011-04-30  Bruno Haible  <bruno@clisp.org>
9608
9609         sys_uio: Make <sys/uio.h> self-contained.
9610         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
9611         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
9612
9613 2011-04-30  Bruno Haible  <bruno@clisp.org>
9614
9615         sys_socket: Ensure 'struct iovec' definition.
9616         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
9617         <sys/socket.h>.
9618         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
9619
9620 2011-04-30  Bruno Haible  <bruno@clisp.org>
9621
9622         sys_uio: Protect definition of 'struct iovec'.
9623         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
9624         it as a C struct.
9625
9626 2011-04-30  Bruno Haible  <bruno@clisp.org>
9627
9628         manywarnings: fix indentation
9629         * m4/manywarnings.m4: Indent by 2 spaces consistently.
9630
9631 2011-04-30  Pádraig Brady <P@draigBrady.com>
9632
9633         manywarnings: add -Wno-missing-field-initializers if needed.
9634         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
9635         option if it's needed to allow initialization with { 0, }
9636
9637 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
9638
9639         announce-gen: cosmetic improvement
9640         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
9641
9642 2011-04-29  Jim Meyering  <meyering@redhat.com>
9643
9644         vc-list-files: indent with spaces, not TABs
9645         * build-aux/vc-list-files: Convert leading TABs to spaces,
9646         to match the style of most other files in gnulib.
9647
9648         announce-gen: indent with spaces, not TABs
9649         * build-aux/announce-gen: Convert all TABs to spaces, to match
9650         the style of most other files in gnulib.
9651
9652 2011-04-29  Eric Blake  <eblake@redhat.com>
9653
9654         quotearg: avoid uninitialized variable use
9655         * lib/quotearg.c (quoting_options_from_style): Initialize
9656         remaining fields, and ensure that custom styles are only used via
9657         quoting_options rather than quoting_style.
9658
9659 2011-04-29  Jim Meyering  <meyering@redhat.com>
9660
9661         maint.mk: remove unused VC-tag variable
9662         * top/maint.mk (VC-tag): Remove unused variable.
9663
9664 2011-04-29  Bruno Haible  <bruno@clisp.org>
9665
9666         netdb: fix gai_strerror replacements
9667         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
9668         * modules/netdb: Substitute it.
9669
9670 2011-04-29  Jim Meyering  <meyering@redhat.com>
9671
9672         test-getcwd.c: avoid new set-but-not-used warning
9673         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
9674         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
9675         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
9676         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
9677
9678         test-hash.c: avoid a new shadowing warning
9679         * tests/test-hash.c (main): Don't shadow "dup".
9680
9681 2011-04-28  Eric Blake  <eblake@redhat.com>
9682
9683         getaddrinfo: fix gai_strerror signature
9684         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
9685         and work around mingw with UNICODE defined.
9686         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
9687         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
9688         * modules/netdb (Makefile.am): Substitute it.
9689         * lib/netdb.in.h (gai_strerror): Declare replacement.
9690         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
9691         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
9692         the fix.
9693
9694         getsockopt: avoid compiler warning
9695         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
9696         Reported by Matthias Bolte.
9697
9698         tests: drop unused link dependency
9699         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
9700         * modules/dirent-safer-tests (Makefile.am): Likewise.
9701         * modules/fdopendir-tests (Makefile.am): Likewise.
9702         * modules/mkfifoat-tests (Makefile.am): Likewise.
9703         * modules/openat-safer-tests (Makefile.am): Likewise.
9704         * modules/openat-tests (Makefile.am): Likewise.
9705         * modules/readlinkat-tests (Makefile.am): Likewise.
9706         * modules/symlinkat-tests (Makefile.am): Likewise.
9707         * modules/linkat-tests (Makefile.am): Likewise.
9708         (Depends-on): Switch to filenamecat-lgpl.
9709         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
9710         LIBINTL.
9711         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
9712         * tests/test-linkat.c (main): Don't require xalloc.
9713
9714         hash, mgetgroups: drop xalloc dependency
9715         * lib/hash.c (includes): Adjust includes.
9716         * lib/mgetgroups.c (includes): Likewise.
9717         (xgetgroups): Move...
9718         * lib/xgetgroups.c: ...to new file.
9719         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
9720         * modules/xgetgroups: New file, split from...
9721         * modules/mgetgroups: ...here.
9722         (Depends-on): Add xalloc-oversized.
9723         * modules/hash (Depends-on): Likewise.
9724         * modules/hash-tests (Depends-on): Drop xalloc.
9725         (test_hash_LDADD): Drop unused library.
9726         * tests/test-hash.c (main): Break xalloc dependency.
9727         (includes): Drop unused include.
9728
9729         xalloc-oversized: new module
9730         * modules/xalloc-oversized: New module.
9731         * modules/xalloc (Depends-on): Add it.
9732         * lib/xalloc.h (xalloc_oversized): Move...
9733         * lib/xalloc-oversized.h: ...into new file.
9734
9735         utimecmp: drop dependency on xmalloc
9736         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
9737         due to memory pressure.
9738         * modules/utimecmp (Depends-on): Drop xalloc.
9739
9740 2011-04-27  Eric Blake  <eblake@redhat.com>
9741
9742         getcwd: fix mingw bugs
9743         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
9744         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
9745         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
9746
9747 2011-04-27  Bruno Haible  <bruno@clisp.org>
9748
9749         mkstemps: Ensure declaration on MacOS X 10.5.
9750         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
9751         * doc/glibc-functions/mkstemps.texi: Document header file problem on
9752         MacOS X.
9753
9754 2011-04-27  Bruno Haible  <bruno@clisp.org>
9755
9756         mkstemp: More documentation.
9757         * doc/posix-functions/mkstemp.texi: Document header file problem on
9758         MacOS X.
9759
9760 2011-04-27  Bruno Haible  <bruno@clisp.org>
9761
9762         mkstemp: Tweak configure message when cross-compiling.
9763         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
9764         result as a guess.
9765
9766 2011-04-27  Bruno Haible  <bruno@clisp.org>
9767
9768         clean-temp: Clarify what it does.
9769         * lib/clean-temp.h: Add more comments.
9770         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
9771         module.
9772         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
9773         * doc/glibc-functions/mkstemps.texi: Likewise.
9774         * doc/glibc-functions/mkostemps.texi: Likewise.
9775
9776 2011-04-27  Eric Blake  <eblake@redhat.com>
9777
9778         fchdir: avoid extra chdir and fix test
9779         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
9780         getcwd-lgpl.
9781         * lib/fchdir.c (get_name): Any absolute name will do; it does not
9782         have to be canonical.
9783         (canonicalize_file_name): Drop unused macro.
9784         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
9785
9786         filenamecat-lgpl: fix licence
9787         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
9788         when it was first created.
9789
9790         linkat, renameat: add missing dependency
9791         * modules/linkat (Depends-on): Require getcwd-lgpl.
9792         * modules/renameat (Depends-on): Likewise.
9793
9794         tests: reduce dependencies
9795         * tests/test-linkat.c (main): Use lighter-weight getcwd.
9796         * tests/test-renameat.c (main): Likewise.
9797         * modules/linkat-tests (Depends-on): Relax dependency.
9798         * modules/renameat-tests (Depends-on): Likewise.
9799         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
9800         dependency explicit.
9801
9802         save-cwd: reduce default dependency
9803         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
9804         * lib/save-cwd.c: Update comments.
9805         * NEWS: Document the semantic change.
9806
9807         getcwd: enhance tests
9808         * tests/test-getcwd-lgpl.c: New file, taken from...
9809         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
9810         repeat long path stress tests from m4 probe.
9811         * modules/getcwd-lgpl-tests: New module.
9812         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
9813         * m4/getcwd-abort-bug.m4: Update comment.
9814         * m4/getcwd-path-max.m4: Likewise.
9815
9816         getcwd-lgpl: new module
9817         * modules/getcwd-lgpl: New module.
9818         * lib/getcwd-lgpl.c: New file.
9819         * doc/posix-functions/getcwd.texi (getcwd): Document it.
9820         * MODULES.html.sh (lacking POSIX:2008): Likewise.
9821         * modules/getcwd (configure.ac): Set C witness.
9822         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
9823
9824         getcwd: tweak comments
9825         * m4/getcwd-abort-bug.m4: Fix comments.
9826         * m4/getcwd-path-max.m4: Likewise.
9827         * m4/getcwd.m4: Likewise.
9828
9829 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
9830         and Eric Blake  <eblake@redhat.com>
9831
9832         mkstemp: replace if system version uses wrong permissions
9833         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
9834         read/write mode bits set in file created by mkstemp.
9835         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
9836
9837 2011-04-27  Eric Blake  <eblake@redhat.com>
9838
9839         passfd: avoid compiler warning
9840         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
9841         Reported by Laine Stump.
9842
9843 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
9844
9845         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
9846         required by the NetBSD (and perhaps other 4.4BSD derived) join.
9847
9848 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
9849         and Eric Blake  <eblake@redhat.com>
9850
9851         mkstemp: mention clean-temp module
9852         * lib/mkstemp.c: Add comment.
9853         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
9854
9855 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
9856
9857         inttypes: also provide default values for 32-bit tests
9858         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
9859         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
9860
9861 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
9862
9863         strtoumax: remove dependency on strtoimax
9864         This is like the strtoull change of yesterday.
9865         * modules/strtoumax (Files): Add lib/strtoimax.c.
9866         (Depends-on): Remove strtoimax and add verify.
9867
9868         inttypes-incomplete: new module
9869         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
9870         all but the PRI* and SCN* parts of gl_INTTYPES_H.
9871         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
9872         of gl_INTTYPES_H.
9873         (gl_INTTYPES_H): Rewrite in terms of these new macros.
9874         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
9875         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
9876         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
9877         * modules/strtoumax, modules/xstrtol (Depends-on):
9878         Depend on inttypes-incomplete, not inttypes.
9879         * modules/inttypes-incomplete: New module, containing the contents
9880         of the old modules/inttypes module, except that the Files: section
9881         omits m4/inttypes-pri.m4, and the configure.ac section invokes
9882         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
9883         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
9884         (Depends-on): Depend only on inttypes-incomplete.
9885         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
9886
9887         inttypes: omit now-redundant strtoimax and strtoumax work
9888         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
9889         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
9890
9891         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
9892         This supports apps that need pointers to strtoimax and strtoumax,
9893         and ports to HP-UX 11.00 64.bit, which has macros that expand to
9894         nonexistent functions.  See
9895         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
9896         et seq.
9897         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
9898         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
9899         a macro.
9900         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
9901
9902 2011-04-25  Simon Josefsson  <simon@josefsson.org>
9903
9904         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
9905
9906 2011-04-25  Bruno Haible  <bruno@clisp.org>
9907
9908         strtol, strtoul: Mark modules as obsolete.
9909         * modules/strtol (Status, Notice): New sections.
9910         * modules/strtoul (Status, Notice): New sections.
9911
9912 2011-04-25  Bruno Haible  <bruno@clisp.org>
9913
9914         strtod: Remove check for strtod, unless supporting old platforms.
9915         * modules/strtod-obsolete: New file.
9916         * m4/strtod-obsolete.m4: New file.
9917         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
9918         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
9919         * modules/strtod (Depends-on): Add strtod-obsolete.
9920         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
9921
9922 2011-04-25  Bruno Haible  <bruno@clisp.org>
9923
9924         strcase: Make module obsolete.
9925         * modules/strcase (Status, Notice): New sections.
9926
9927 2011-04-25  Bruno Haible  <bruno@clisp.org>
9928
9929         dup2: Remove check for dup2, unless supporting old obsolete platforms.
9930         * modules/dup2-obsolete: New file.
9931         * m4/dup2-obsolete.m4: New file.
9932         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
9933         gl_FUNC_DUP2_OBSOLETE is not also defined.
9934         * modules/dup2 (Depends-on): Add dup2-obsolete.
9935         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
9936
9937 2011-04-25  Bruno Haible  <bruno@clisp.org>
9938
9939         strnlen: Avoid memchr related link error on old obsolete platforms.
9940         * modules/memchr-obsolete: New file.
9941         * m4/memchr-obsolete.m4: New file.
9942         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
9943         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
9944         * modules/memchr (Depends-on): Add memchr-obsolete.
9945         * modules/strnlen (Depends-on): Likewise.
9946         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
9947
9948 2011-04-25  Jim Meyering  <meyering@redhat.com>
9949
9950         maint.mk: makefile_at_at_check extend and clean up
9951         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
9952         in addition to */Makefile.am.
9953         Exempt legitimate uses of @VAR@ notation, e.g.,
9954         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
9955         Remove obsolete coreutils-specific comment.
9956         Prompted by discussion here:
9957         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
9958
9959 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
9960
9961         strtoul: remove dependency on strtol
9962         This is so that 'configure' need not check for strtol merely because
9963         the application needs strtoul.
9964         * modules/strtoul (Files): Add lib/strtol.c.
9965         (Depends-on): Remove strtol.
9966
9967         strtoull: remove dependency on strtoul
9968         This is like the strtoll change.
9969         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
9970         (Depends-on): Remove strtoul.
9971
9972         strtoll: remove dependency on strtol
9973         This is so that 'configure' need not check for strtol merely because
9974         the application needs strtoll.
9975         * modules/strtoll (Files): Add lib/strtol.c.
9976         (Depends-on): Remove strtol.
9977
9978 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9979
9980         inttypes: Move some configure check to module 'imaxdiv'.
9981         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
9982         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
9983         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
9984
9985 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9986
9987         inttypes: Move some configure check to module 'imaxabs'.
9988         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
9989         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
9990         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
9991
9992 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9993
9994         inttypes: Remove configure tests that are not needed since 2009-12-31.
9995         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
9996         gl_cv_header_working_inttypes_h.
9997
9998 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
9999
10000         * modules/strnlen (Depends-on): Remove memchr.
10001         The strnlen implementation doesn't need the memchr module's fixes; see
10002         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
10003
10004         strtol: remove dependency on wchar
10005         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
10006         * modules/strtol (Depends-on): Remove wchar.
10007
10008 2011-04-21  Eric Blake  <eblake@redhat.com>
10009
10010         passfd: fix test regression on Linux
10011         * modules/passfd-tests (configure.ac): Correct socketpair check.
10012
10013         passfd: speed up configure and drop unused code
10014         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
10015         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
10016         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
10017         Instead of probing at configure for unix_scm_rights_bsd44_way,
10018         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
10019         check to a struct member probe.
10020         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
10021         (sendfd, recvfd): Update preprocessor checks.
10022         * modules/passfd (Files): Reflect rename, and drop unused file.
10023         (Depends-on): Drop unused dependency.
10024
10025         passfd: allow compilation on mingw
10026         * modules/sys_socket (Depends-on): Add sys_uio.
10027         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
10028         iovec and a minimal struct msghdr.
10029         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
10030         * tests/test-sys_socket.c (main): Enhance test.
10031         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
10032         guaranteed to provide what we need.
10033         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
10034         * modules/passfd-tests (Depends-on): Add sys_wait.
10035         * tests/test-passfd.c (main): Skip test on mingw, for now.
10036         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
10037         partial 'struct msghdr' implementation.
10038
10039         sys_uio: new module
10040         * modules/sys_uio: New module.
10041         * modules/sys_uio-tests: Likewise.
10042         * lib/sys_uio.in.h: New file.
10043         * m4/sys_uio_h.m4: Likewise.
10044         * tests/test-sys_uio.c: Likewise.
10045         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
10046         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
10047
10048 2011-04-20  Jim Meyering  <meyering@redhat.com>
10049
10050         useless-if-before-free: avoid false-positive
10051         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
10052         disjunct so that it too requires a terminating ";".  Without that,
10053         this script would identify as useless one statement from gcc that
10054         was not:
10055           if (aligned_ptr)
10056             free (((void **) aligned_ptr) [-1]);
10057
10058 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
10059
10060         doc: update users.txt.
10061         * users.txt: Add barcode.
10062
10063 2011-04-19  Bruno Haible  <bruno@clisp.org>
10064
10065         ioctl: Remove link dependency on native Windows.
10066         * lib/fd-hook.h: Renamed from lib/close-hook.h.
10067         (gl_close_fn, gl_ioctl_fn): New types.
10068         (struct fd_hook): Renamed from struct close_hook. Change type of
10069         private_close_fn field. Add private_ioctl_fn field.
10070         (close_hook_fn): Add parameter for primary close method.
10071         (execute_close_hooks, execute_all_close_hooks): Likewise.
10072         (ioctl_hook_fn): New type.
10073         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
10074         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
10075         argument.
10076         (unregister_fd_hook): Renamed from unregister_close_hook.
10077         * lib/fd-hook.c: Renamed from lib/close-hook.c.
10078         Don't include <unistd.h>.
10079         (close): Remove undef.
10080         (anchor): Update.
10081         (execute_close_hooks): Add argument for primary close method.
10082         (execute_all_close_hooks): Likewise.
10083         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
10084         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
10085         argument. Allow each argument to be NULL.
10086         (unregister_fd_hook): Renamed from unregister_close_hook.
10087         * lib/close.c (rpl_close): Pass 'close' function pointer to
10088         execute_all_close_hooks.
10089         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
10090         (primary_ioctl): New function.
10091         (ioctl): Don't call ioctlsocket here. Instead, call
10092         execute_all_ioctl_hooks.
10093         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
10094         close method.
10095         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
10096         (fd_sockets_hook): Renamed from close_sockets_hook.
10097         (gl_sockets_startup, gl_sockets_cleanup): Update.
10098         * modules/fd-hook: Renamed from modules/close-hook. Update.
10099         * modules/close (Depends-on): Add fd-hook, remove close-hook.
10100         * modules/sockets (Depends-on): Likewise.
10101         * modules/ioctl (Depends-on): Add fd-hook.
10102         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
10103         GNULIB_SOCKET.
10104
10105 2011-04-19  Bruno Haible  <bruno@clisp.org>
10106
10107         Move the support of O_NONBLOCK in open() to the 'open' module.
10108         * modules/nonblocking (Depends-on): Remove 'open'.
10109         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
10110         gl_cv_have_open_O_NONBLOCK.
10111         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
10112         O_NONBLOCK support.
10113         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
10114
10115 2011-04-17  Bruno Haible  <bruno@clisp.org>
10116
10117         pipe2: Simplify code.
10118         * lib/pipe2.c (pipe2): Reduce code duplication.
10119
10120 2011-04-17  Bruno Haible  <bruno@clisp.org>
10121
10122         nonblocking: Add comment.
10123         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
10124
10125 2011-04-17  Bruno Haible  <bruno@clisp.org>
10126
10127         nonblocking: Add tests for sockets.
10128         * tests/test-nonblocking-socket.sh: New file.
10129         * tests/test-nonblocking-socket-main.c: New file.
10130         * tests/test-nonblocking-socket-child.c: New file.
10131         * tests/test-nonblocking-socket.h: New file.
10132         * tests/socket-server.h: New file.
10133         * tests/socket-client.h: New file.
10134         * modules/nonblocking-socket-tests: New file.
10135         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
10136
10137 2011-04-17  Bruno Haible  <bruno@clisp.org>
10138
10139         nonblocking: Add tests for pipes.
10140         * tests/test-nonblocking-pipe.sh: New file.
10141         * tests/test-nonblocking-pipe-main.c: New file.
10142         * tests/test-nonblocking-pipe-child.c: New file.
10143         * tests/test-nonblocking-pipe.h: New file.
10144         * tests/test-nonblocking-writer.h: New file.
10145         * tests/test-nonblocking-reader.h: New file.
10146         * tests/test-nonblocking-misc.h: New file.
10147         * modules/nonblocking-pipe-tests: New file.
10148         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
10149
10150 2011-04-16  Bruno Haible  <bruno@clisp.org>
10151
10152         gettext: Clarify the needed programmer actions.
10153         * modules/gettext (Notice): New field.
10154         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
10155
10156 2011-04-16  Bruno Haible  <bruno@clisp.org>
10157
10158         strchrnul: Tweak last commit.
10159         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
10160         bug.
10161         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
10162         as in _GL_FUNCDECL_SYS.
10163         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
10164         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
10165
10166 2011-04-15  Eric Blake  <eblake@redhat.com>
10167
10168         strchrnul: work around cygwin bug
10169         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
10170         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
10171         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
10172         * modules/string (Makefile.am): Substitute it.
10173         * lib/string.in.h (strchrnul): Use it.
10174
10175 2011-04-15  Bruno Haible  <bruno@clisp.org>
10176
10177         Don't require lib/stdio-write.c when only module 'stdio' is used.
10178         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
10179         invocation.
10180         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
10181
10182 2011-04-14  Bruno Haible  <bruno@clisp.org>
10183
10184         Support non-blocking pipe I/O in read() on native Windows.
10185         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
10186         (read): New declaration.
10187         * lib/read.c: New file.
10188         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
10189         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
10190         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
10191         vscanf): New declarations.
10192         * lib/stdio-read.c: New file.
10193         * m4/read.m4: New file.
10194         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
10195         REPLACE_READ.
10196         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
10197         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10198         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
10199         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
10200         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
10201         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10202         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
10203         * modules/read: New file.
10204         * modules/nonblocking (Files): Add lib/stdio-read.c.
10205         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
10206         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
10207         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10208         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
10209         * modules/pread (Depends-on): Add read.
10210         * modules/safe-read (Depends-on): Likewise.
10211         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
10212         gets, scanf, vfscanf, vscanf): Verify signatures.
10213         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
10214         problem with non-blocking pipes.
10215         * doc/posix-functions/fgetc.texi: Likewise.
10216         * doc/posix-functions/fgets.texi: Likewise.
10217         * doc/posix-functions/fread.texi: Likewise.
10218         * doc/posix-functions/fscanf.texi: Likewise.
10219         * doc/posix-functions/getc.texi: Likewise.
10220         * doc/posix-functions/getchar.texi: Likewise.
10221         * doc/posix-functions/gets.texi: Likewise.
10222         * doc/posix-functions/scanf.texi: Likewise.
10223         * doc/posix-functions/vfscanf.texi: Likewise.
10224         * doc/posix-functions/vscanf.texi: Likewise.
10225
10226 2011-04-14  Bruno Haible  <bruno@clisp.org>
10227
10228         Support non-blocking pipe I/O in write() on native Windows.
10229         * lib/write.c (rpl_write): Split a write request that failed merely
10230         because the byte count was larger than the pipe buffer's size.
10231         * doc/posix-functions/write.texi: Mention the problem with large byte
10232         counts.
10233
10234 2011-04-14  Bruno Haible  <bruno@clisp.org>
10235
10236         wchar: Ensure that wchar_t gets defined on uClibc.
10237         * lib/wchar.in.h: On uClibc, include <stddef.h>.
10238         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
10239
10240 2011-04-13  Bruno Haible  <bruno@clisp.org>
10241
10242         safe-write, full-read: Avoid unnecessary compilation units.
10243         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
10244         (Depends-on): Remove safe-read. Add ssize_t.
10245         * modules/full-read (Files): Add lib/full-write.c.
10246         (Depends-on): Add full-write.
10247
10248 2011-04-13  Bruno Haible  <bruno@clisp.org>
10249
10250         Support non-blocking pipe I/O and SIGPIPE in pwrite().
10251         * modules/pwrite (Depends-on): Add 'write'.
10252
10253 2011-04-13  Bruno Haible  <bruno@clisp.org>
10254
10255         Support non-blocking pipe I/O in write() on native Windows.
10256         * lib/unistd.in.h (write): Enable replacement also if
10257         GNULIB_UNISTD_H_NONBLOCKING is 1.
10258         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
10259         (rpl_write): When failing to write on a non-blocking pipe, change
10260         errno from ENOSPC to EAGAIN.
10261         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
10262         putchar, puts, vfprintf, vprintf): Enable replacement also if
10263         GNULIB_STDIO_H_NONBLOCKING is 1.
10264         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
10265         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
10266         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
10267         CALL_WITH_SIGPIPE_EMULATION.
10268         (CALL_WITH_SIGPIPE_EMULATION): Use them.
10269         * m4/nonblocking.m4: New file.
10270         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
10271         for non-blocking I/O support.
10272         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10273         GNULIB_UNISTD_H_NONBLOCKING.
10274         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
10275         required for non-blocking I/O support.
10276         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
10277         * modules/nonblocking (Files): Add m4/nonblocking.m4,
10278         lib/stdio-write.c, m4/asm-underscore.m4.
10279         (Depends-on): Add stdio, unistd.
10280         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
10281         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
10282         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
10283         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
10284         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
10285         problem with non-blocking pipes.
10286         * doc/posix-functions/fputc.texi: Likewise.
10287         * doc/posix-functions/fputs.texi: Likewise.
10288         * doc/posix-functions/fwrite.texi: Likewise.
10289         * doc/posix-functions/printf.texi: Likewise.
10290         * doc/posix-functions/putc.texi: Likewise.
10291         * doc/posix-functions/putchar.texi: Likewise.
10292         * doc/posix-functions/puts.texi: Likewise.
10293         * doc/posix-functions/vfprintf.texi: Likewise.
10294         * doc/posix-functions/vprintf.texi: Likewise.
10295         * doc/posix-functions/write.texi: Likewise.
10296
10297 2011-04-10  Jim Meyering  <meyering@redhat.com>
10298
10299         maint.mk: prohibit doubled words
10300         Detect them also when they're separated by a newline.
10301         There are 3 ways to customize it:
10302           - disable the test on a per file basis, as usual with rules using
10303             $(VC_LIST_EXCEPT)
10304           - replace the default doubled-word-selecting regexp (affects all files)
10305           - ignore a particular file-vs-doubled-word match
10306         I nearly used that last one to ignore the "is is" match in
10307         coreutils' NEWS file, since the text was "ls -is is ..."
10308         To do that, I would have added this line to cfg.mk:
10309           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
10310         but it would have ignored any "is is" match in NEWS.
10311         Low probability, but still...
10312         Instead, I changed the text, slightly:
10313           -  ls -is is now consistent with ls -lis in ignoring values returned
10314           +  "ls -is" is now consistent with ls -lis in ignoring values returned
10315         * top/maint.mk (prohibit_double_word_RE_): Provide default.
10316         (prohibit_doubled_word_): Define.
10317         (sc_prohibit_doubled_word): New rule.
10318         (sc_prohibit_the_the): Remove.  Subsumed by the above.
10319
10320 2011-04-10  Jim Meyering  <meyering@redhat.com>
10321
10322         maint: fix doubled-word typo in comment
10323         * m4/gethostname.m4: s/is is/it is/
10324         * m4/getdomainname.m4: Likewise.
10325
10326 2011-04-10  Jim Meyering  <meyering@redhat.com>
10327
10328         maint: remove doubled word: s/it it/it/
10329         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
10330
10331 2011-04-10  Jim Meyering  <meyering@redhat.com>
10332
10333         maint.mk: remove useless semicolon and backslash
10334         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
10335         semicolon and backslash.
10336
10337 2011-04-10  Bruno Haible  <bruno@clisp.org>
10338
10339         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
10340         * modules/stdint-tests (Depends-on): Add wchar.
10341
10342 2011-04-10  Jim Meyering  <meyering@redhat.com>
10343
10344         maint: remove doubled words in comments, e.g., s/a a/a/
10345         * lib/strptime.c (day_of_the_week): s/the the/the/
10346         * tests/test-chown.h (test_chown): s/a a/a/
10347
10348         test-chown.h: correct a cast
10349         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
10350         when the destination is a stat.st_gid.
10351
10352 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
10353
10354         getaddrinfo: Fix test for sa_len member.
10355         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
10356         include <sys/types.h> before <sys/socket.h>.
10357
10358 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
10359
10360         maint: change "can not" to "cannot"
10361         * doc/posix-functions/iconv.texi (iconv): This one crossed line
10362         boundaries.
10363
10364 2011-04-09  Jim Meyering  <meyering@redhat.com>
10365
10366         maint: change "a a" to "a"
10367         * tests/test-lchown.h (test_lchown): s/a a/a/
10368
10369         maint.mk: prohibit \<the the\>
10370         * top/maint.mk (sc_prohibit_the_the): New rule.
10371
10372         maint: fix "the the" in comment
10373         * lib/count-one-bits.h: s/the the/the/
10374
10375         maint: change "can not" to "cannot"
10376         But do not change the occurrences in maintain.texi or in
10377         build-aux/po/Makefile.in.in, which I presume comes from gettext.
10378         * doc/gnulib-tool.texi: s/can not/cannot/
10379         * doc/posix-functions/accept.texi (accept): Likewise.
10380         * doc/posix-functions/socket.texi (socket): Likewise.
10381         * lib/mbrtowc.c: Likewise.
10382
10383         maint.mk: prohibit use of "can not"
10384         * top/maint.mk (sc_prohibit_can_not): New rule.
10385         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
10386
10387 2011-04-09  Bruno Haible  <bruno@clisp.org>
10388
10389         careadlinkat: Guard against misuse of careadlinkatcwd.
10390         * lib/careadlinkat.c: Include <stdlib.h>.
10391         (careadlinkatcwd): Check that the fd argument is as expected.
10392
10393 2011-04-09  Bruno Haible  <bruno@clisp.org>
10394
10395         careadlinkat: Use common coding style.
10396         * lib/careadlinkat.c: Move gnulib includes after system includes.
10397
10398 2011-04-09  Bruno Haible  <bruno@clisp.org>
10399
10400         careadlinkat: Clarify specification.
10401         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
10402         (careadlinkatcwd): Add comment.
10403         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
10404
10405 2011-04-09  Bruno Haible  <bruno@clisp.org>
10406
10407         areadlinkat: Avoid link error on many platforms.
10408         * modules/areadlinkat (Depends-on): Add areadlink.
10409
10410 2011-04-09  Bruno Haible  <bruno@clisp.org>
10411
10412         allocator, careadlinkat: Fix double-inclusion guard.
10413         * lib/allocator.h: Fix double-inclusion guard.
10414         * lib/careadlinkat.h: Likewise.
10415
10416 2011-04-09  Bruno Haible  <bruno@clisp.org>
10417
10418         relocatable-prog-wrapper: Update after module 'areadlink' changed.
10419         * lib/relocwrapper.c: Update dependencies hierarchy.
10420         * build-aux/install-reloc: Update list of files to be compiled.
10421         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
10422         lib/allocator.[hc].
10423
10424 2011-04-08  Eric Blake  <eblake@redhat.com>
10425
10426         strftime: silence gnulib-tool warning
10427         * modules/strftime-tests (Depends-on): Drop automatic dependency.
10428
10429 2011-04-08  Bruno Haible  <bruno@clisp.org>
10430
10431         verify: Fix syntax error with GCC 4.6 in C++ mode.
10432         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
10433         (HAVE_STATIC_ASSERT): New macro.
10434         (verify_true, verify): Use 'static_assert' if it is supported and
10435         '_Static_assert' is not supported.
10436
10437 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
10438
10439         allocator: New module.
10440         * modules/allocator, lib/allocator.c: New files.
10441         * lib/allocator.h (stdlib_allocator): New decl.
10442         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
10443         Remove.  Do not include <stdlib.h>.
10444         (careadlinkat): Use stdlib_allocator instead of rolling our own.
10445         * modules/careadlinkat (Files): Remove lib/allocator.h.
10446         (Depends-on): Add allocator.
10447
10448         stdlib: let modules use system malloc, realloc
10449         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
10450         if !_GL_USE_STDLIB_ALLOC.
10451         (malloc, realloc): Limit this change to a smaller scope.
10452
10453         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
10454         (malloc, realloc): Don't #undef; no longer needed.
10455         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10456         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10457         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
10458         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10459         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10460         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10461         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10462         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
10463
10464         careadlinkat: rename members to avoid problem
10465         * lib/allocator.h (struct allocator): Rename members from
10466         malloc/realloc to allocate/reallocate, to avoid problems if malloc
10467         and realloc are #define'd.  Reported by Eric Blake in
10468         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
10469         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
10470
10471 2011-04-08  Eric Blake  <eblake@redhat.com>
10472
10473         nonblocking: reduce dependency
10474         * tests/test-nonblocking.c: Only test sockets when in use.
10475         * modules/nonblocking-tests (Depends-on): Drop socket.
10476         (Makefile.am): Link even if sockets are not present.
10477         * modules/pipe2-tests (Makefile.am): Likewise.
10478         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
10479
10480         pipe2: fix O_NONBLOCK support on mingw
10481         * modules/pipe2 (Depends-on): Add nonblocking.
10482         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
10483         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
10484         * tests/test-nonblocking.c (main): Likewise.
10485         * modules/pipe2-tests (Makefile.am): Avoid link failure.
10486
10487         fcntl-h: fix O_ACCMODE on cygwin
10488         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
10489         * lib/fcntl.in.h (O_ACCMODE): Fix it.
10490
10491         pipe-filter: drop O_NONBLOCK workarounds
10492         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
10493         * modules/pipe-filter-ii (Depends-on): Likewise.
10494         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
10495
10496         nonblocking: provide O_NONBLOCK for mingw
10497         * modules/nonblocking (Depends-on): Add open.
10498         (configure.ac): Set new witness macro.
10499         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
10500         * modules/fcntl-h (Makefile.am): Substitute it.
10501         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
10502         nonblocking module is in use.
10503         * lib/nonblocking.c: Adjust portability test.
10504         * lib/open.c (open): Don't let native open see gnulib flag.
10505         * tests/test-fcntl-h.c (main): Enhance test.
10506         * tests/test-open.h (test_open): Likewise.
10507         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
10508
10509         careadlinkat: fix compilation error on mingw
10510         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
10511         within struct allocator.
10512
10513 2011-04-06  Eric Blake  <eblake@redhat.com>
10514
10515         binary-io: relicense under LGPLv2+
10516         * modules/binary-io (License): Relax to LGPLv2+.
10517         Requested for libvirt, and required by pipe2.
10518
10519 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
10520
10521         verify: use _Static_assert if available
10522         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
10523         (verify_true, verify): Use it if available.  This generates better
10524         diagnostics with GCC 4.6.0 and later.
10525
10526 2011-04-05  Bruno Haible  <bruno@clisp.org>
10527
10528         Remove leftover generated .h files after config.status changed.
10529
10530         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
10531         GL_GENERATE_ALLOCA_H.
10532         * modules/alloca-opt (Makefile.am): Remove alloca.h if
10533         GL_GENERATE_ALLOCA_H evaluates to false.
10534
10535         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
10536         GL_GENERATE_ARGZ_H.
10537         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
10538         evaluates to false.
10539
10540         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
10541         GL_GENERATE_BYTESWAP_H.
10542         * modules/byteswap (Makefile.am): Remove byteswap.h if
10543         GL_GENERATE_BYTESWAP_H evaluates to false.
10544
10545         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
10546         GL_GENERATE_ERRNO_H.
10547         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
10548         evaluates to false.
10549
10550         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
10551         GL_GENERATE_FLOAT_H.
10552         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
10553         evaluates to false.
10554
10555         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
10556         GL_GENERATE_FNMATCH_H.
10557         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
10558         GL_GENERATE_FNMATCH_H evaluates to false.
10559
10560         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
10561         GL_GENERATE_GLOB_H.
10562         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
10563         evaluates to false.
10564
10565         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
10566         automake conditional GL_GENERATE_ICONV_H.
10567         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
10568         evaluates to false.
10569
10570         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
10571         GL_GENERATE_NETINET_IN_H.
10572         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
10573         GL_GENERATE_NETINET_IN_H evaluates to false.
10574
10575         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
10576         conditional GL_GENERATE_PTHREAD_H.
10577         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
10578         * modules/pthread (Makefile.am): Remove pthread.h if
10579         GL_GENERATE_PTHREAD_H evaluates to false.
10580
10581         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
10582         GL_GENERATE_SCHED_H.
10583         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
10584         evaluates to false.
10585
10586         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
10587         conditional GL_GENERATE_SELINUX_CONTEXT_H.
10588         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
10589         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
10590
10591         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
10592         GL_GENERATE_STDARG_H.
10593         * modules/stdarg (Makefile.am): Remove stdarg.h if
10594         GL_GENERATE_STDARG_H evaluates to false.
10595
10596         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
10597         GL_GENERATE_STDBOOL_H.
10598         * modules/stdbool (Makefile.am): Remove stdbool.h if
10599         GL_GENERATE_STDBOOL_H evaluates to false.
10600
10601         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
10602         conditional GL_GENERATE_STDDEF_H.
10603         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
10604         * modules/stddef (Makefile.am): Remove stddef.h if
10605         GL_GENERATE_STDDEF_H evaluates to false.
10606
10607         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
10608         GL_GENERATE_STDINT_H.
10609         * modules/stdint (Makefile.am): Remove stdint.h if
10610         GL_GENERATE_STDINT_H evaluates to false.
10611
10612         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
10613         GL_GENERATE_SYSEXITS_H.
10614         * modules/sysexits (Makefile.am): Remove sysexits.h if
10615         GL_GENERATE_SYSEXITS_H evaluates to false.
10616
10617         Reported by Karl Berry and Ralf Wildenhues.
10618
10619 2011-04-05  Bruno Haible  <bruno@clisp.org>
10620
10621         Ensure to rebuild generated .h files when config.status has changed.
10622         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
10623         config.status.
10624         * modules/ctype (Makefile.am): Likewise.
10625         * modules/dirent (Makefile.am): Likewise.
10626         * modules/errno (Makefile.am): Likewise.
10627         * modules/fcntl-h (Makefile.am): Likewise.
10628         * modules/float (Makefile.am): Likewise.
10629         * modules/getopt-posix (Makefile.am): Likewise.
10630         * modules/glob (Makefile.am): Likewise.
10631         * modules/iconv-h (Makefile.am): Likewise.
10632         * modules/inttypes (Makefile.am): Likewise.
10633         * modules/langinfo (Makefile.am): Likewise.
10634         * modules/locale (Makefile.am): Likewise.
10635         * modules/math (Makefile.am): Likewise.
10636         * modules/netdb (Makefile.am): Likewise.
10637         * modules/netinet_in (Makefile.am): Likewise.
10638         * modules/poll-h (Makefile.am): Likewise.
10639         * modules/pthread (Makefile.am): Likewise.
10640         * modules/pty (Makefile.am): Likewise.
10641         * modules/sched (Makefile.am): Likewise.
10642         * modules/search (Makefile.am): Likewise.
10643         * modules/selinux-h (Makefile.am): Likewise.
10644         * modules/signal (Makefile.am): Likewise.
10645         * modules/spawn (Makefile.am): Likewise.
10646         * modules/stdarg (Makefile.am): Likewise.
10647         * modules/stdbool (Makefile.am): Likewise.
10648         * modules/stddef (Makefile.am): Likewise.
10649         * modules/stdint (Makefile.am): Likewise.
10650         * modules/stdio (Makefile.am): Likewise.
10651         * modules/stdlib (Makefile.am): Likewise.
10652         * modules/string (Makefile.am): Likewise.
10653         * modules/strings (Makefile.am): Likewise.
10654         * modules/sys_file (Makefile.am): Likewise.
10655         * modules/sys_ioctl (Makefile.am): Likewise.
10656         * modules/sys_select (Makefile.am): Likewise.
10657         * modules/sys_socket (Makefile.am): Likewise.
10658         * modules/sys_stat (Makefile.am): Likewise.
10659         * modules/sys_time (Makefile.am): Likewise.
10660         * modules/sys_times (Makefile.am): Likewise.
10661         * modules/sys_utsname (Makefile.am): Likewise.
10662         * modules/sys_wait (Makefile.am): Likewise.
10663         * modules/sysexits (Makefile.am): Likewise.
10664         * modules/termios (Makefile.am): Likewise.
10665         * modules/time (Makefile.am): Likewise.
10666         * modules/unistd (Makefile.am): Likewise.
10667         * modules/wchar (Makefile.am): Likewise.
10668         * modules/wctype-h (Makefile.am): Likewise.
10669         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
10670
10671 2011-04-05  Bruno Haible  <bruno@clisp.org>
10672
10673         pipe2: Relicense under LGPLv2+.
10674         * modules/pipe2 (License): Change to LGPLv2+.
10675         Requested by Eric Blake, for libvirt.
10676
10677 2011-04-05  Bruce Korb  <bkorb@gnu.org>
10678
10679         bootstrap: compute gnulib_extra_files after updating build_aux
10680         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
10681         change build_aux or also supply gnulib_extra_files.  Handle correctly.
10682
10683 2011-04-05  Eric Blake  <eblake@redhat.com>
10684
10685         bootstrap: preserve git whitelist item sorting
10686         * build-aux/bootstrap (sort_patterns): New function.
10687         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
10688
10689 2011-04-05  Simon Josefsson  <simon@josefsson.org>
10690
10691         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
10692         sc_space_tab check.
10693
10694 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
10695
10696         areadlink, areadlinkat: rewrite in terms of careadlinkat
10697         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
10698         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
10699         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
10700         (malloc, realloc): Remove #undefs.
10701         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
10702         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
10703         readlink, ssize_t, stdint, unistd.
10704         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
10705         areadlink, stdint.
10706
10707         careadlinkat: new module
10708         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
10709         * modules/careadlinkat: New files, written by me with
10710         a review and feedback from Ben Pfaff in
10711         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
10712
10713 2011-04-01  Bruno Haible  <bruno@clisp.org>
10714
10715         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
10716         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
10717         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
10718         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
10719         Reported by Bruce Korb <bruce.korb@gmail.com>.
10720
10721 2011-04-01  Bruno Haible  <bruno@clisp.org>
10722
10723         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
10724         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
10725         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
10726         * modules/wcpcpy (Depends-on): Add extensions.
10727         * modules/wcpncpy (Depends-on): Likewise.
10728         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
10729         systems.
10730         * doc/posix-functions/wcpncpy.texi: Likewise.
10731         * doc/posix-functions/wcwidth.texi: Likewise.
10732
10733 2011-03-31  Eric Blake  <eblake@redhat.com>
10734
10735         nonblocking: fix mingw test failures
10736         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
10737         non-blocking flag on regular file.
10738         (get_nonblocking_flag): Set errno on invalid fd.
10739         * tests/test-nonblocking.c (main): Avoid test failure on
10740         directories if fchdir is not active.
10741         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
10742
10743 2011-03-31  Bruno Haible  <bruno@clisp.org>
10744
10745         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
10746         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
10747         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
10748         Reported by Simon Josefsson <simon@josefsson.org>.
10749
10750 2011-03-31  Bruno Haible  <bruno@clisp.org>
10751         and Eric Blake  <eblake@redhat.com>
10752
10753         nonblocking: new module
10754         * modules/nonblocking: New module.
10755         * modules/nonblocking-tests: Likewise.
10756         * lib/nonblocking.h: New file.
10757         * lib/nonblocking.c: Likewise.
10758         * tests/test-nonblocking.c: New test.
10759         * lib/ioctl.c (ioctl) [mingw]: Update comment.
10760
10761 2011-03-30  Bruno Haible  <bruno@clisp.org>
10762
10763         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
10764         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
10765         instead of 'printf' format for GCC >= 4.4.
10766         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
10767         (fprintf, printf, vfprintf, vprintf): Declare with
10768         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
10769         the system's vfprintf() function.
10770         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
10771
10772 2011-03-30  Eric Blake  <eblake@redhat.com>
10773
10774         passfd: fix scoping bug
10775         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
10776         before sendmsg/recvmsg.
10777
10778         passfd: standardize coding conventions
10779         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
10780         can be learned at compile time.
10781         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
10782         ifdefs.
10783         (sendfd, recvfd): Follow gnulib code conventions.
10784
10785         passfd: fix incorrect sendmsg arguments
10786         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
10787         incorrect msg_controllen value.
10788         * modules/passfd-tests (Depends-on): Check for alarm.
10789         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
10790         Reported by Bastien ROUCARIES.
10791
10792 2011-03-30  Bruno Haible  <bruno@clisp.org>
10793
10794         c-strcasestr: Relicense under LGPLv2+.
10795         * modules/c-strcasestr (License): Change to LGPLv2+.
10796         Requested by Eric Blake, for libvirt.
10797
10798 2011-03-30  Simon Josefsson  <simon@josefsson.org>
10799
10800         * users.txt: Add libidn2.  Fix libtasn1 link.
10801
10802 2011-03-30  Jim Meyering  <meyering@redhat.com>
10803
10804         tests: readlink* ("",... fails with EINVAL on newer kernels
10805         readlink and readlinkat have typically failed with ENOENT for
10806         the invalid, empty file name,  "".  However, with the advent
10807         of linux-2.6.39, they fail with EINVAL.
10808         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
10809         when operating on the empty file name.
10810         * tests/test-readlink.h (test_readlink): Likewise.
10811
10812 2011-03-29  Bruno Haible  <bruno@clisp.org>
10813
10814         Relicense some modules under LGPLv2+, for libidn2.
10815         * modules/array-mergesort (License): Change to LGPLv2+.
10816         * modules/c-strcaseeq (License): Likewise.
10817         * modules/striconveh (License): Likewise.
10818         * modules/striconveha (License): Likewise.
10819         * modules/uniconv/base (License): Likewise.
10820         * modules/uniconv/u8-conv-from-enc (License): Likewise.
10821         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
10822         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
10823         * modules/unictype/base (License): Likewise.
10824         * modules/unictype/bidiclass-of (License): Likewise.
10825         * modules/unictype/category-M (License): Likewise.
10826         * modules/unictype/category-none (License): Likewise.
10827         * modules/unictype/category-of (License): Likewise.
10828         * modules/unictype/category-test (License): Likewise.
10829         * modules/unictype/category-test-withtable (License): Likewise.
10830         * modules/unictype/combining-class (License): Likewise.
10831         * modules/unictype/joiningtype-of (License): Likewise.
10832         * modules/unictype/scripts (License): Likewise.
10833         * modules/uninorm/base (License): Likewise.
10834         * modules/uninorm/canonical-decomposition (License): Likewise.
10835         * modules/uninorm/composition (License): Likewise.
10836         * modules/uninorm/decompose-internal (License): Likewise.
10837         * modules/uninorm/decomposition-table (License): Likewise.
10838         * modules/uninorm/nfc (License): Likewise.
10839         * modules/uninorm/nfd (License): Likewise.
10840         * modules/uninorm/u32-normalize (License): Likewise.
10841         * modules/unistr/base (License): Likewise.
10842         * modules/unistr/u32-cpy (License): Likewise.
10843         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
10844         * modules/unistr/u32-to-u8 (License): Likewise.
10845         * modules/unistr/u32-uctomb (License): Likewise.
10846         * modules/unistr/u8-check (License): Likewise.
10847         * modules/unistr/u8-mblen (License): Likewise.
10848         * modules/unistr/u8-mbtouc (License): Likewise.
10849         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
10850         * modules/unistr/u8-mbtoucr (License): Likewise.
10851         * modules/unistr/u8-prev (License): Likewise.
10852         * modules/unistr/u8-strlen (License): Likewise.
10853         * modules/unistr/u8-to-u32 (License): Likewise.
10854         * modules/unistr/u8-uctomb (License): Likewise.
10855         * modules/unitypes (License): Likewise.
10856         Requested by Simon Josefsson.
10857
10858 2011-03-29  Simon Josefsson  <simon@josefsson.org>
10859
10860         lib-symbol-visibility: Add a notice.
10861         * modules/lib-symbol-visibility (Notice): New field.
10862
10863 2011-03-29  Bruno Haible  <bruno@clisp.org>
10864
10865         getaddrinfo: Doc fix.
10866         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
10867         section "fixed in Gnulib".
10868
10869 2011-03-28  Simon Josefsson  <simon@josefsson.org>
10870
10871         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
10872         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
10873
10874 2011-03-26  Bruno Haible  <bruno@clisp.org>
10875
10876         unictype/property-byname: Reduce the number of load-time relocations.
10877         * lib/unictype/pr_byname.c: Include <stdlib.h>.
10878         (UC_PROPERTY_INDEX_*): New enumeration values.
10879         (uc_property_byname): Convert an index from the lookup table to an
10880         uc_property_t.
10881         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
10882         values.
10883
10884 2011-03-26  Bruno Haible  <bruno@clisp.org>
10885
10886         unictype/property-byname: Allow omitted word separators and aliases.
10887         * lib/unictype/pr_byname.gperf: Add property names without word
10888         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
10889         for 'space'.
10890
10891 2011-03-26  Bruno Haible  <bruno@clisp.org>
10892
10893         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
10894         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
10895         also hyphens to space.
10896         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
10897         without spaces.
10898         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
10899
10900 2011-03-26  Bruno Haible  <bruno@clisp.org>
10901
10902         unictype/joiningtype-byname: Recognize long names as well.
10903         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
10904         a long name.
10905         * lib/unictype/joiningtype_byname.c: Include <string.h>,
10906         unictype/joiningtype_byname.h.
10907         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
10908         * lib/unictype/joiningtype_byname.gperf: New file.
10909         * modules/unictype/joiningtype-byname (Files): Add
10910         lib/unictype/joiningtype_byname.gperf.
10911         (Depends-on): Add gperf.
10912         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
10913         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
10914         long names.
10915
10916         Tests for module 'unictype/joiningtype-longname'.
10917         * modules/unictype/joiningtype-longname-tests: New file.
10918         * tests/unictype/test-joiningtype_longname.c: New file.
10919
10920         New module 'unictype/joiningtype-longname'.
10921         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
10922         * lib/unictype/joiningtype_longname.c: New file.
10923         * modules/unictype/joiningtype-longname: New file.
10924         * modules/unictype/joiningtype-all (Depends-on): Add
10925         unictype/joiningtype-longname.
10926
10927 2011-03-26  Bruno Haible  <bruno@clisp.org>
10928
10929         unictype/bidiclass-byname: Recognize long names as well.
10930         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
10931         name.
10932         * lib/unictype/bidi_byname.c: Include <string.h>,
10933         unictype/bidi_byname.h.
10934         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
10935         * lib/unictype/bidi_byname.gperf: New file.
10936         * modules/unictype/bidiclass-byname (Files): Add
10937         lib/unictype/bidi_byname.gperf.
10938         (Depends-on): Add gperf.
10939         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
10940         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
10941         long names.
10942
10943         Tests for module 'unictype/bidiclass-longname'.
10944         * modules/unictype/bidiclass-longname-tests: New file.
10945         * tests/unictype/test-bidi_longname.c: New file.
10946
10947         New module 'unictype/bidiclass-longname'.
10948         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
10949         * lib/unictype/bidi_longname.c: New file.
10950         * modules/unictype/bidiclass-longname: New file.
10951         * modules/unictype/bidiclass-all (Depends-on): Add
10952         unictype/bidiclass-longname.
10953
10954 2011-03-26  Bruno Haible  <bruno@clisp.org>
10955
10956         unictype/bidi*: Rename modules.
10957         * modules/unictype/bidiclass-all: Renamed from
10958         modules/unictype/bidicategory-all.
10959         * modules/unictype/bidiclass-name: Renamed from
10960         modules/unictype/bidiclass-name.
10961         (Description): Update.
10962         * modules/unictype/bidiclass-name-tests: Renamed from
10963         modules/unictype/bidicategory-name-tests.
10964         * modules/unictype/bidiclass-byname: Renamed from
10965         modules/unictype/bidicategory-byname.
10966         (Description): Update.
10967         * modules/unictype/bidiclass-byname-tests: Renamed from
10968         modules/unictype/bidicategory-byname-tests.
10969         * modules/unictype/bidiclass-of: Renamed from
10970         modules/unictype/bidicategory-of.
10971         (Description): Update.
10972         * modules/unictype/bidiclass-of-tests: Renamed from
10973         modules/unictype/bidicategory-of-tests.
10974         * modules/unictype/bidiclass-test: Renamed from
10975         modules/unictype/bidicategory-test.
10976         (Description): Update.
10977         * modules/unictype/bidiclass-test-tests: Renamed from
10978         modules/unictype/bidicategory-test-tests.
10979         * modules/unictype/bidicategory-all: New file, a simple redirection.
10980         * modules/unictype/bidicategory-name: Likewise.
10981         * modules/unictype/bidicategory-byname: Likewise.
10982         * modules/unictype/bidicategory-of: Likewise.
10983         * modules/unictype/bidicategory-test: Likewise.
10984         * modules/unictype/property-bidi-* (Dependencies): Update.
10985         * lib/unictype/bidi_*.c: Update comment.
10986
10987 2011-03-26  Bruno Haible  <bruno@clisp.org>
10988
10989         unictype/bidi*: Rename functions, part 2.
10990         * modules/unictype/bidicategory-name (configure.ac): Update required
10991         libunistring version.
10992         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
10993
10994 2011-03-25  Bruno Haible  <bruno@clisp.org>
10995
10996         New module 'unictype/combining-class-all'.
10997         * modules/unictype/combining-class-all: New file.
10998
10999         Tests for module 'unictype/combining-class-byname'.
11000         * modules/unictype/combining-class-byname-tests: New file.
11001         * tests/unictype/test-combiningclass_byname.c: New file.
11002
11003         New module 'unictype/combining-class-byname'.
11004         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
11005         * lib/unictype/combiningclass_byname.c: New file.
11006         * lib/unictype/combiningclass_byname.gperf: New file.
11007         * modules/unictype/combining-class-byname: New file.
11008
11009         Tests for module 'unictype/combining-class-longname'.
11010         * modules/unictype/combining-class-longname-tests: New file.
11011         * tests/unictype/test-combiningclass_longname.c: New file.
11012
11013         New module 'unictype/combining-class-longname'.
11014         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
11015         * lib/unictype/combiningclass_longname.c: New file.
11016         * modules/unictype/combining-class-longname: New file.
11017
11018         Tests for module 'unictype/combining-class-name'.
11019         * modules/unictype/combining-class-name-tests: New file.
11020         * tests/unictype/test-combiningclass_name.c: New file.
11021
11022         New module 'unictype/combining-class-name'.
11023         * lib/unictype.in.h (uc_combining_class_name): New declaration.
11024         * lib/unictype/combiningclass_name.c: New file.
11025         * modules/unictype/combining-class-name: New file.
11026
11027 2011-03-25  Bruno Haible  <bruno@clisp.org>
11028
11029         unictype/combining-class: Rename source files.
11030         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
11031         of unictype/combining.h.
11032         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
11033         Update.
11034         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
11035         * modules/unictype/combining-class (Description): Fix.
11036         (Files, Makefile.am): Update.
11037         * tests/unictype/test-combiningclass.c: Renamed from
11038         tests/unictype/test-combining.c.
11039         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
11040
11041 2011-03-25  Bruno Haible  <bruno@clisp.org>
11042
11043         unictype: Update list of canonical combining classes.
11044         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
11045
11046 2011-03-25  Bruno Haible  <bruno@clisp.org>
11047
11048         unictype/category-byname: Recognize long names as well.
11049         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
11050         a long name.
11051         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
11052         unictype/categ_byname.h.
11053         (UC_CATEGORY_INDEX_*): New enumeration values.
11054         (uc_general_category_byname): Use uc_general_category_lookup and
11055         convert from index to value.
11056         * lib/unictype/categ_byname.gperf: New file.
11057         * modules/unictype/category-byname (Files): Add
11058         lib/unictype/categ_byname.gperf.
11059         (Depends-on): Add gperf.
11060         (Makefile.am): Add rule for generating unictype/categ_byname.h.
11061         * tests/unictype/test-categ_byname.c (main): Test the recognition of
11062         long names.
11063
11064         Tests for module 'unictype/category-longname'.
11065         * modules/unictype/category-longname-tests: New file.
11066         * tests/unictype/test-categ_longname.c: New file.
11067
11068         New module 'unictype/category-longname'.
11069         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
11070         * lib/unictype/categ_longname.c: New file.
11071         * modules/unictype/category-longname: New file.
11072         * modules/unictype/category-all (Depends-on): Add it.
11073
11074 2011-03-25  Bruno Haible  <bruno@clisp.org>
11075
11076         Tests for module 'unictype/category-LC'.
11077         * modules/unictype/category-LC-tests: New file.
11078         * tests/unictype/test-categ_LC.c: New file, automatically generated.
11079
11080         New module 'unictype/category-LC'.
11081         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
11082         (UC_CATEGORY_LC): New declaration.
11083         (UC_CASED_LETTER): New macro.
11084         * lib/gen-uni-tables.c (is_category_LC): New function.
11085         (output_categories): Also handle category LC.
11086         (UC_CATEGORY_MASK_LC): New enumeration value.
11087         (general_category_byname): Also handle category LC.
11088         * lib/unictype/categ_LC.c: New file.
11089         * lib/unictype/categ_LC.h: New file, automatically generated.
11090         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
11091         category LC.
11092         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
11093         * modules/unictype/category-LC: New file.
11094         * modules/unictype/category-byname (Depends-on): Add
11095         unictype/category-LC.
11096         * modules/unictype/category-all (Depends-on): Likewise.
11097
11098 2011-03-25  Eric Blake  <eblake@redhat.com>
11099
11100         xmalloc: revert yesterday's regression
11101         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
11102         realloc's underlying behavior (allowing allocation of zero-size
11103         objects, especially if malloc-gnu is also in use).
11104
11105 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
11106
11107         maint.mk: add missing version to VC-tag
11108         * top/maint.mk: git tag was missing actual tag name; add it.
11109
11110         valgrind: do leak checking, and exit with code 1 on error (not 0)
11111         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
11112         to VALGRIND.
11113
11114 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
11115
11116         posix-modules: say what it does.
11117         * posix-modules: Add a line to the --help output saying what it does.
11118
11119 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
11120
11121         xmalloc: Do not leak if underlying realloc is C99 compatible.
11122         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
11123         This avoids a leak on C99-based systems.  See
11124         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
11125
11126 2011-03-24  Eric Blake  <eblake@redhat.com>
11127
11128         realloc: document portability problem
11129         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
11130         passing 0 size to realloc.
11131
11132 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
11133
11134         doc: update users.txt
11135         * users.txt: Add cvsps, tmpwatch
11136
11137 2011-03-23  Matt Rice  <ratmice@gmail.com>
11138
11139         doc: update users.txt
11140         * users.txt: Add gdb.
11141
11142 2011-03-23  Jim Meyering  <meyering@redhat.com>
11143
11144         doc: update users.txt
11145         Looking through matches up to the following URL (there are still
11146         several more pages), I found several projects that use gnulib:
11147         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
11148         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
11149         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
11150
11151 2011-03-22  Bruno Haible  <bruno@clisp.org>
11152
11153         unictype/bidi*: Rename functions.
11154         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
11155         uc_bidi_class, uc_is_bidi_class): New declarations.
11156         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
11157         uc_bidi_category_byname.
11158         (uc_bidi_category_byname): New function.
11159         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
11160         u_bidi_category_name.
11161         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
11162         (uc_bidi_category_name): New function.
11163         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
11164         uc_bidi_category.
11165         (uc_bidi_category): New function.
11166         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
11167         uc_is_bidi_category. Invoke uc_bidi_class.
11168         (uc_is_bidi_category): New function.
11169         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
11170         instead of uc_bidi_category_byname.
11171         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
11172         instead of uc_bidi_category_name.
11173         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
11174         uc_bidi_category.
11175         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
11176         instead of uc_is_bidi_category.
11177
11178 2011-03-21  Bruno Haible  <bruno@clisp.org>
11179
11180         New module 'unictype/joininggroup-all'.
11181         * modules/unictype/joininggroup-all: New file.
11182
11183         Tests for module 'unictype/joininggroup-of'.
11184         * modules/unictype/joininggroup-of-tests: New file.
11185         * tests/unictype/test-joininggroup_of.c: New file.
11186         * tests/unictype/test-joininggroup_of.h: New file, automatically
11187         generated by gen-uni-tables.
11188
11189         New module 'unictype/joininggroup-of'.
11190         * modules/unictype/joininggroup-of: New file.
11191         * lib/unictype/joininggroup_of.c: New file.
11192         * lib/unictype/joininggroup_of.h: New file, automatically generated by
11193         gen-uni-tables.
11194
11195         Tests for module 'unictype/joininggroup-byname'.
11196         * modules/unictype/joininggroup-byname-tests: New file.
11197         * tests/unictype/test-joininggroup_byname.c: New file.
11198
11199         New module 'unictype/joininggroup-byname'.
11200         * modules/unictype/joininggroup-byname: New file.
11201         * lib/unictype/joininggroup_byname.c: New file.
11202         * lib/unictype/joininggroup_byname.gperf: New file.
11203
11204         Tests for module 'unictype/joininggroup-name'.
11205         * modules/unictype/joininggroup-name-tests: New file.
11206         * tests/unictype/test-joininggroup_name.c: New file.
11207
11208         New module 'unictype/joininggroup-name'.
11209         * modules/unictype/joininggroup-name: New file.
11210         * lib/unictype/joininggroup_name.c: New file.
11211         * lib/unictype/joininggroup_name.h: New file.
11212
11213         New module 'unictype/joiningtype-all'.
11214         * modules/unictype/joiningtype-all: New file.
11215
11216         Tests for module 'unictype/joiningtype-of'.
11217         * modules/unictype/joiningtype-of-tests: New file.
11218         * tests/unictype/test-joiningtype_of.c: New file.
11219         * tests/unictype/test-joiningtype_of.h: New file, automatically
11220         generated by gen-uni-tables.
11221
11222         New module 'unictype/joiningtype-of'.
11223         * modules/unictype/joiningtype-of: New file.
11224         * lib/unictype/joiningtype_of.c: New file.
11225         * lib/unictype/joiningtype_of.h: New file, automatically generated by
11226         gen-uni-tables.
11227
11228         Tests for module 'unictype/joiningtype-byname'.
11229         * modules/unictype/joiningtype-byname-tests: New file.
11230         * tests/unictype/test-joiningtype_byname.c: New file.
11231
11232         New module 'unictype/joiningtype-byname'.
11233         * modules/unictype/joiningtype-byname: New file.
11234         * lib/unictype/joiningtype_byname.c: New file.
11235
11236         Tests for module 'unictype/joiningtype-name'.
11237         * modules/unictype/joiningtype-name-tests: New file.
11238         * tests/unictype/test-joiningtype_name.c: New file.
11239
11240         New module 'unictype/joiningtype-name'.
11241         * modules/unictype/joiningtype-name: New file.
11242         * lib/unictype/joiningtype_name.c: New file.
11243
11244         unictype: Add support for Arabic shaping properties.
11245         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
11246         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
11247         declarations.
11248         (UC_JOINING_GROUP_*): New enumeration values.
11249         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
11250         declarations.
11251         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
11252         (unicode_joining_type): New variable.
11253         (UC_JOINING_GROUP_*): New enumeration values.
11254         (unicode_joining_group): New variable.
11255         (fill_arabicshaping, joining_type_as_c_identifier,
11256         output_joining_type_test, output_joining_type,
11257         joining_group_as_c_identifier, output_joining_group_test,
11258         output_joining_group): New functions.
11259         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
11260         fill_arabicshaping and output_joining_type_test, output_joining_type,
11261         output_joining_group_test, output_joining_group.
11262         Reported by Simon Josefsson.
11263
11264 2011-03-21  Jim Meyering  <meyering@redhat.com>
11265
11266         strftime: fix a bug in yesterday's change
11267         * lib/strftime.c (add): Accommodate width's initial value of -1.
11268         Otherwise, nstrftime would copy uninitialized data into
11269         the result buffer.
11270
11271 2011-03-21  Jim Meyering  <meyering@redhat.com>
11272
11273         tests: add strftime-tests module
11274         * tests/test-strftime.c: New file.
11275         * modules/strftime-tests: New module.
11276
11277 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
11278
11279         strftime: don't assume a byte count fits in 'int'
11280         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
11281         found this problem by static analysis, using gcc -Wstrict-overflow
11282         (GCC 4.5.2, x86-64).  This reported an optimization that depended
11283         on an integer overflow having undefined behavior, but it turns out
11284         that the argument is a size, which might not fit in 'int' anyway,
11285
11286 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
11287
11288         stdio: don't require ignore_value around fwrite
11289
11290         This patch works around libc bug 11959
11291         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
11292         Without this patch, applications must often write
11293         ignore_value (fwrite (...)) even though the ignore_value is
11294         not helpful here.  It's common to write many objects, using
11295         fwrite/printf/etc., and then use ferror to detect output error.
11296
11297         I considered making this patch optional, but decided against it,
11298         because libc is obviously being inconsistent here: there is no
11299         reason libc should insist that user code must inspect fwrite
11300         return's value without also insisting that it inspect printf's,
11301         putchar's, etc.  If user code wants to have a strict style where
11302         all these functions' values are checked (so that ferror need not
11303         be checked), we could add support for that style in a new gnulib
11304         module, but in the meantime it's better to be consistent and to
11305         support common usage.
11306
11307         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
11308         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
11309         that we are compiling in checking mode, and if not C++, and
11310         if not already wrapping fwrite for some other reason.
11311         (fwrite): #define to rpl_fwrite if the latter is defined.
11312
11313 2011-03-20  Bruno Haible  <bruno@clisp.org>
11314
11315         verror: Fix compilation error introduced on 2011-02-13.
11316         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
11317         instead of __attribute__.
11318         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11319
11320 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
11321             Bruno Haible  <bruno@clisp.org>
11322
11323         socklen: do not depend on sys_socket
11324         While trying to modify Emacs to use gnulib's socklen module,
11325         I discovered a circular dependency: socklen depends on sys_socket
11326         and vice versa.  Emacs can use socklen, but it does not need
11327         sys_socket because it has its own substitute for sys/socket.h.
11328         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
11329         gl_TYPE_SOCKLEN_T.
11330         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
11331         gl_PREREQ_SYS_H_SOCKET.
11332         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
11333         gl_PREREQ_SYS_H_SOCKET.
11334         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
11335         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
11336         * modules/socklen (Depends-on): Do not depend on sys_socket.
11337         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
11338
11339 2011-03-20  Jim Meyering  <meyering@redhat.com>
11340
11341         maint.mk: sort file names *after* new transformation
11342         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
11343         prefix would have led to an unwarranted failure in GNU parted.
11344         Sort after that transformation.
11345
11346 2011-03-19  Jim Meyering  <meyering@redhat.com>
11347
11348         maint.mk: fix po-file syntax-check rule
11349         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
11350         Patch by Bruno Haible.
11351
11352 2011-03-19  Bruno Haible  <bruno@clisp.org>
11353
11354         socklen: Update comment.
11355         * m4/socklen.m4: Update comment about platforms.
11356
11357 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11358             Bruno Haible  <bruno@clisp.org>
11359
11360         inet_ntop, inet_pton: Simplify.
11361         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
11362         documented to provide socklen_t and we already depend on sys_socket.
11363         * modules/inet_pton (Depends-on): Likewise.
11364         * lib/arpa_inet.in.h: Adjust comment.
11365
11366 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11367             Bruno Haible  <bruno@clisp.org>
11368
11369         netdb: Simplify.
11370         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
11371         documented to provide socklen_t and we already depend on sys_socket.
11372         * lib/netdb.in.h: Adjust comment.
11373
11374 2011-03-19  Bruno Haible  <bruno@clisp.org>
11375
11376         sys_socket, netdb: Document problem with socklen_t.
11377         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
11378         platforms.
11379         * doc/posix-headers/netdb.texi: Likewise.
11380
11381 2011-03-18  Eric Blake  <eblake@redhat.com>
11382
11383         maint.mk: let po check work in VPATH build
11384         * top/maint.mk (po_file): Allow cfg.mk override.
11385         (sc_po_check): Allow VPATH use.
11386         Reported by Jiri Denemark.
11387
11388 2011-03-16  Jim Meyering  <meyering@redhat.com>
11389
11390         maint.mk: allow fine-grained syntax-check exclusion via Make variables
11391         Before, you would have had to create one .x-sc_ file per rule in order
11392         to exempt offending files.  Now, you may instead use a Make variable --
11393         usually defined in cfg.mk -- whose name identifies the affected rule.
11394         * top/maint.mk (_sc_excl): Define.
11395         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
11396         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
11397
11398 2011-03-13  Bruno Haible  <bruno@clisp.org>
11399
11400         ignore-value tests: Avoid warnings.
11401         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
11402         empty for gcc < 3.4.
11403
11404 2011-03-13  Bruno Haible  <bruno@clisp.org>
11405
11406         passfd: Fix link error on Solaris.
11407         * modules/passfd (Description): Correct.
11408         (Depends-on): Add socketlib.
11409         (Link): New section.
11410         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
11411
11412 2011-03-13  Bruno Haible  <bruno@clisp.org>
11413
11414         passfd: Fix link error on AIX 5.2.
11415         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
11416
11417 2011-03-13  Bruno Haible  <bruno@clisp.org>
11418
11419         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
11420         * lib/sys_socket.in.h: Include <stddef.h>.
11421         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
11422         CMSG_FIRSTHDR. Remove unused variable.
11423
11424 2011-03-13  Bruno Haible  <bruno@clisp.org>
11425
11426         passfd: Fix compilation error on OpenBSD.
11427         * lib/passfd.c: Include <sys/uio.h>.
11428
11429 2011-03-13  Bruno Haible  <bruno@clisp.org>
11430
11431         passfd test: Fix warnings.
11432         * tests/test-passfd.c: Include <sys/wait.h>.
11433         (main): Fix typo.
11434
11435 2011-03-13  Bruno Haible  <bruno@clisp.org>
11436
11437         passfd module, part 4, tweaks.
11438         * tests/test-passfd.c: Reorder includes.
11439         (main): Fix perror and printf calls.
11440
11441 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
11442
11443         passfd module, part 4.
11444         * modules/passfd-tests: New file.
11445         * tests/test-passfd.c: New file.
11446
11447 2011-03-13  Jim Meyering  <meyering@redhat.com>
11448
11449         Makefile: rely on GNU make; derive syntax-check rule names
11450         Rather than requiring that each sc_ rule be listed as a dependent
11451         of "check", use features of GNU make to derive the list.
11452         * Makefile (syntax-check-rules): Define.
11453         (check): Depend on the new variable, not the hard-coded list.
11454
11455 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
11456             Bruno Haible  <bruno@clisp.org>
11457
11458         passfd module, part 3.
11459         * lib/passfd.h (recvfd): Add a flags argument.
11460         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
11461         (recvfd): Add a flags argument.
11462         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
11463         exists.
11464         * modules/passfd (Depends-on): Add cloexec.
11465         Suggested by Eric Blake.
11466
11467 2011-03-13  Bruno Haible  <bruno@clisp.org>
11468
11469         passfd module, part 2, tweaks.
11470         * modules/passfd (Files): Reorder.
11471         (Depends-on): Remove errno.
11472         (Include): Remove <sys/socket.h>, <sys/un.h>.
11473         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
11474         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
11475         specification header. Include <sys/socket.h> always. Don't include
11476         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
11477         (sendfd): Clarify that it sets errno when it fails.
11478         (recvfd): Fix specification.
11479
11480 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
11481
11482         passfd module, part 2.
11483         * modules/passfd: New file.
11484         * lib/passfd.h: New file.
11485         * lib/passfd.c: New file.
11486
11487 2011-03-12  Bruno Haible  <bruno@clisp.org>
11488
11489         wcswidth, mbswidth: Avoid integer overflow.
11490         * lib/wcswidth.c: Include <limits.h>.
11491         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
11492         * lib/mbswidth.c: Include <limits.h>.
11493         (mbsnwidth): Avoid 'int' overflow.
11494         Reported by Jim Meyering.
11495
11496 2011-03-12  Bruno Haible  <bruno@clisp.org>
11497
11498         futimens, utimensat: Avoid endless recursion on Solaris 10.
11499         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
11500         Solaris.
11501         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
11502         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
11503
11504 2011-03-11  Jim Meyering  <meyering@redhat.com>
11505
11506         maint.mk: relax a regexp to accommodate other formatting styles
11507         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
11508         between "ngettext" and the following "(".
11509
11510 2011-03-11  Pádraig Brady <P@draigBrady.com>
11511
11512         maint.mk: suppress a false positive warning
11513         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
11514         diagnostics are marked with ngettext.
11515
11516 2011-03-10  Eric Blake  <eblake@redhat.com>
11517
11518         wchar: add explicit dependencies, for Tru64
11519         * modules/mbmemcasecoll (Depends-on): Add wchar.
11520         * modules/mbtowc (Depends-on): Likewise.
11521         * modules/vasnprintf (Depends-on): Likewise.
11522         * modules/unistdio/u-printf-args (Depends-on): Likewise.
11523         * modules/wctomb (Depends-on): Likewise.
11524         Reported by Peter O'Gorman.
11525
11526 2011-03-08  Bruno Haible  <bruno@clisp.org>
11527
11528         passfd module, part 1, tweaks.
11529         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
11530         Improve indentation. Improve AC_MSG_CHECKING messages.
11531         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
11532         gl_SOCKET_FAMILIES.
11533
11534 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
11535
11536         passfd module, part 1.
11537         * m4/afunix.m4: New file.
11538         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
11539         sockets.
11540
11541 2011-03-08  Bruno Haible  <bruno@clisp.org>
11542
11543         regex-quote: New API.
11544         * lib/regex-quote.h: Include <stdbool.h>.
11545         (struct regex_quote_spec): New type.
11546         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
11547         New declarations.
11548         (regex_quote_length, regex_quote_copy, regex_quote): Take a
11549         'const struct regex_quote_spec *' argument.
11550         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
11551         (pcre_special): New constant.
11552         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
11553         New functions.
11554         (regex_quote_length, regex_quote_copy, regex_quote): Take a
11555         'const struct regex_quote_spec *' argument.
11556         * modules/regex-quote (Depends-on): Add stdbool.
11557         * tests/test-regex-quote.c (check): Update for new API. Add test for
11558         anchored results.
11559         * NEWS: Mention the API change.
11560         Reported by Reuben Thomas and Eric Blake.
11561
11562 2011-03-06  Bruno Haible  <bruno@clisp.org>
11563
11564         regex-quote: Fix creation of POSIX extended regular expressions.
11565         * lib/regex-quote.c (ere_special): Add grouping and alternation
11566         operators.
11567
11568 2011-03-05  Bruno Haible  <bruno@clisp.org>
11569
11570         doc: Improve doc regarding autopoint vs. gnulib.
11571         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
11572         disable autopoint while running autoreconf.
11573         Suggested by Ralf Wildenhues.
11574
11575 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11576
11577         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
11578         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
11579
11580 2011-03-03  Bruce Korb  <bkorb@gnu.org>
11581
11582         parse-duration: remove xalloc.h dependency
11583         * lib/parse-duration.c (parse_period): handle NULL return from
11584         strdup instead of calling xstrdup().
11585         * modules/parse-duration: remove "xalloc" dependency
11586
11587 2011-03-03  Matthew Booth  <mbooth@redhat.com>
11588
11589         bootstrap: honor m4_base when running aclocal
11590         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
11591
11592 2011-03-02  Jim Meyering  <meyering@redhat.com>
11593
11594         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
11595         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
11596         on request from Matt Booth.
11597
11598 2011-03-01  Eric Blake  <eblake@redhat.com>
11599
11600         test-link: work on Hurd
11601         * tests/test-link.h (test_link): Hurd rejects linking directories
11602         with EISDIR instead of the POSIX-mandated EPERM.
11603
11604 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
11605
11606         stdio: simplify by moving files to printf-posix, sigpipe
11607         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
11608         since this symbol is needed only if printf is replaced.
11609         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
11610         Require gl_ASM_SYMBOL_PREFIX.
11611         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
11612         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
11613         (Depends-on): Add 'raise'.
11614         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
11615         * modules/stdio (Files): Remove lib/stdio-write.c,
11616         m4/asm-underscore.m4.
11617         (Depends-on): Remove 'raise'.
11618
11619         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
11620         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
11621         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
11622         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
11623
11624 2011-02-28  Bruno Haible  <bruno@clisp.org>
11625
11626         localcharset: Assume ANSI C behaviour of free().
11627         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
11628         calling free().
11629         Suggested by Simon Josefsson <simon@josefsson.org>.
11630
11631 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
11632             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
11633             Bruno Haible  <bruno@clisp.org>  (tiny change)
11634
11635         On Cygwin, use /proc file system instead of win32 API.
11636         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
11637         Win32 file names.
11638         (DllMain): Simplify by removing Cygwin specific code.
11639         (find_shared_library_fullname): Use Linux specific implementation also
11640         for Cygwin.
11641         (get_shared_library_fullname): Update accordingly.
11642         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
11643         Win32 file names.
11644         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
11645         Cygwin specific code.
11646
11647 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
11648             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
11649
11650         Fix OpenMP flag detection for various Fortran compilers.
11651         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
11652         OpenMP-conditional compilation construct, to force compile
11653         failure with missing OpenMP flag.
11654         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
11655
11656 2011-02-25  Eric Blake  <eblake@redhat.com>
11657
11658         strstr: expand test coverage
11659         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
11660         compilation.
11661         * tests/test-memmem.c (main): Duplicate tests.
11662         * tests/test-strcasestr.c (main): Likewise.
11663         * tests/test-c-strcasestr.c (main): Likewise.
11664
11665 2011-02-25  Jim Meyering  <meyering@redhat.com>
11666
11667         maint.mk: detect missing-NL-at-EOF, too
11668         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
11669         it also detects when a file lacks a newline at EOF.
11670         (require_exactly_one_NL_at_EOF_): Renamed from
11671         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
11672         since people may well have .x-sc_... file names tied to the
11673         existing name.  Suggested by Eric Blake.
11674
11675 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
11676
11677         dirname: move m4/dos.m4 functionality into lib/dosname.h
11678
11679         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
11680         extracts symbols from it, puts them into config.h; but it's much
11681         easier to use the symbols directly.  filename.h already does this,
11682         but it disagrees with dos.m4 in some respects.  This patch
11683         introduces a different include file dosname.h that packages up
11684         dos.m4, and then later we can work on merging filename.h and
11685         dosname.h.  Applications that need only the easy-to-configure
11686         symbols should consider including dosname.h rather than dirname.h.
11687         * NEWS: Mention incompatible changes.
11688         * m4/dos.m4: Remove.
11689         * lib/dosname.h, modules/dosname: New files.
11690         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
11691         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
11692         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
11693         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
11694         Include dosname.h, not dirname.h.
11695         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
11696         Include dosname.h, for definitions of symbols like ISSLASH
11697         that used to be in config.h.
11698         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
11699         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
11700         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
11701         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
11702         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
11703         * modules/rmdir (Files): Likewise.
11704         * modules/stat (Files): Likewise.
11705         * modules/unlink (Files): Likewise.
11706         * modules/dirname-lgpl (Depends-on): Add dosname.
11707         * modules/lstat (Depends-on): Likewise.
11708         * modules/openat (Depends-on): Likewise.
11709         * modules/rmdir (Depends-on): Likewise.
11710         * modules/savewd (Depends-on): Likewise.
11711         * modules/stat (Depends-on): Likewise.
11712         * modules/unlink (Depends-on): Likewise.
11713         * modules/openat (Depends-on): Remove dirname-lgpl.
11714         * modules/savewd (Depends-on): Likewise.
11715         * tests/test-dirname.c: Do not use removed symbols like
11716         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
11717         the remaining symbols, e.g., ISSLASH ('\\').
11718
11719 2011-02-25  Eric Blake  <eblake@redhat.com>
11720
11721         strstr: revert patches that introduced bug and pessimization
11722         * lib/str-two-way.h: Add another reference.
11723         (two_way_short_needle, two_way_long_needle): Revert changes from
11724         2011-02-24; they pessimize search speed.
11725         (critical_factorization): Partially revert changes from
11726         2010-06-22; they violate the requirement that the left half of the
11727         needle be smaller than the period of the needle.
11728
11729 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
11730
11731         filenamecat: remove unnecessary dependency on dirname-lgpl
11732         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
11733         is no direct dependency, just an indirect one via filenamecat-lgpl.
11734
11735         remove: remove unnecessary use of m4/dos.m4
11736         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
11737         * modules/remove (FILES): Remove m4/dos.m4.
11738
11739         * lib/openat-proc.c: Don't include dirname.h; not needed.
11740
11741         backupfile: remove unnecessary use of m4/dos.m4
11742         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
11743         of its symbols are used by the backupfile code.  backupfile.c does
11744         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
11745         for the rare case of programs that want all their backup file
11746         names to live within 8+3 limits, and dos.m4 doesn't address that.
11747         * modules/backupfile (Files): Remove m4/dos.m4.
11748
11749 2011-02-24  Jim Meyering  <meyering@redhat.com>
11750
11751         strstr: fix a bug whereby strstr would mistakenly return NULL
11752         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
11753         in period calculation.
11754         (two_way_long_needle): Likewise.
11755         The original problem was reported by Mike Stump in
11756         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
11757         Ralf Wildenhues provided the short needle and haystack.
11758         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
11759         Add a more involved test to trigger the bug in two_way_long_needle.
11760
11761 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11762
11763         gnulib-tool: remove use of bold display in help screen
11764         * gnulib-tool (func_usage): Do not use bold display anymore in the
11765         help screen.  That was just meant to be a temporary emphasis for a
11766         backward-incompatible change.
11767
11768 2011-02-23  Bruno Haible  <bruno@clisp.org>
11769
11770         Fix misindentation of preprocessor directives.
11771         * lib/argp-namefrob.h: Reindent preprocessor directives.
11772         * lib/getopt_int.h (struct _getopt_data): Likewise.
11773         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
11774         * lib/vasnprintf.c (decode_long_double): Likewise.
11775         * tests/test-argmatch.c: Insert blank lines, for clarity.
11776         * tests/test-exclude.c: Likewise.
11777
11778 2011-02-22  Bruno Haible  <bruno@clisp.org>
11779
11780         ioctl: Fix for MacOS X in 64-bit mode.
11781         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
11782         value.
11783         Suggested by Eric Blake.
11784         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
11785
11786 2011-02-22  Jim Meyering  <meyering@redhat.com>
11787
11788         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
11789         * Makefile (sc_cpp_indent_check): Don't limit the check to files
11790         in lib/.
11791
11792 2011-02-22  Eric Blake  <eblake@redhat.com>
11793
11794         maint: avoid any CDPATH issue
11795         * Makefile (sc_cpp_indent_check): Anchor cd argument.
11796
11797         maint: adjust cpp indentation for my modules, as well
11798         * Makefile (sc_cpp_indent_check): Add my name.
11799         * lib/fbufmode.c: Filter through cppi.
11800         * lib/fpurge.c: Likewise.
11801         * lib/freadable.c: Likewise.
11802         * lib/freading.c: Likewise.
11803         * lib/fwritable.c: Likewise.
11804         * lib/fwriting.c: Likewise.
11805         * lib/sigaction.c: Likewise.
11806
11807 2011-02-22  Jim Meyering  <meyering@redhat.com>
11808
11809         maint: adjust cpp indentation to reflect nesting depth
11810         I.e., in a block of code that begins with an unnested "#if",
11811         put one space between the "#" in column 1 and following token.
11812         For example,
11813         -#include <sys/vfs.h>
11814         +# include <sys/vfs.h>
11815         Do this only in .c files that are part of a module I maintain.
11816         * lib/linkat.c: Filter through cppi.
11817         * lib/nanosleep.c: Likewise.
11818         * lib/openat.c: Likewise.
11819         * lib/openat-die.c: Likewise.
11820         * lib/dup3.c: Likewise.
11821         * lib/fchownat.c: Likewise.
11822         * lib/flock.c: Likewise.
11823         * lib/fsync.c: Likewise.
11824         * lib/fts.c: Likewise.
11825         * lib/getpass.c: Likewise.
11826         * lib/gettimeofday.c: Likewise.
11827         * lib/userspec.c: Likewise.
11828         * Makefile (sc_cpp_indent_check): New rule, to check this.
11829
11830 2011-02-22  Bruno Haible  <bruno@clisp.org>
11831
11832         New module 'wctomb'.
11833         * lib/stdlib.in.h (wctomb): New declaration.
11834         * lib/wctomb.c: New file.
11835         * lib/wctomb-impl.h: New file.
11836         * m4/wctomb.m4: New file.
11837         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
11838         REPLACE_WCTOMB.
11839         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
11840         REPLACE_WCTOMB.
11841         * modules/wctomb: New file.
11842         * tests/test-stdlib-c++.cc: Test signature of wctomb.
11843         * doc/posix-functions/wctomb.texi: Mention the new module.
11844         * modules/wctob (Depends-on): Add wctomb.
11845
11846 2011-02-22  Bruno Haible  <bruno@clisp.org>
11847
11848         New module 'mbtowc'.
11849         * lib/stdlib.in.h (mbtowc): New declaration.
11850         * lib/mbtowc.c: New file.
11851         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
11852         * m4/mbtowc.m4: New file.
11853         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
11854         REPLACE_MBTOWC.
11855         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
11856         REPLACE_MBTOWC.
11857         * modules/mbtowc: New file.
11858         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
11859         * doc/posix-functions/mbtowc.texi: Mention the new module.
11860         * modules/btowc (Depends-on): Add mbtowc.
11861
11862 2011-02-22  Bruno Haible  <bruno@clisp.org>
11863
11864         wcrtomb: Add more tests for native Windows platforms.
11865         * tests/test-wcrtomb-w32-1.sh: New file.
11866         * tests/test-wcrtomb-w32-2.sh: New file.
11867         * tests/test-wcrtomb-w32-3.sh: New file.
11868         * tests/test-wcrtomb-w32-4.sh: New file.
11869         * tests/test-wcrtomb-w32-5.sh: New file.
11870         * tests/test-wcrtomb-w32.c: New file.
11871         * modules/wcrtomb-tests (Files): Add them.
11872         (Makefile.am): Arrange to run these tests.
11873         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
11874         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
11875
11876 2011-02-20  Bruno Haible  <bruno@clisp.org>
11877
11878         wcrtomb: Enhance test.
11879         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
11880
11881 2011-02-20  Bruno Haible  <bruno@clisp.org>
11882
11883         mbrtowc: Tiny optimization.
11884         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
11885
11886 2011-02-20  Jim Meyering  <meyering@redhat.com>
11887
11888         test-exclude.c: remove unmatched #endif
11889         * tests/test-exclude.c: Remove stray #endif, left over from
11890         the change of a week ago.
11891
11892 2011-02-19  Jim Meyering  <meyering@redhat.com>
11893
11894         git-version-gen: skip "-dirty" check when appropriate
11895         * build-aux/git-version-gen: Don't run any git commands when the
11896         version string comes from .tarball-version.  Prior to this, we
11897         would run git update-index --refresh even from a just-unpacked
11898         tarball directory, and that could affect a .git/ directory in a
11899         parent of the build directory.  Reported by Mike Frysinger.
11900
11901 2011-02-19  Bruno Haible  <bruno@clisp.org>
11902
11903         unictype/property-byname: Reduce the size of the 'data' segment.
11904         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
11905
11906 2011-02-19  Bruno Haible  <bruno@clisp.org>
11907
11908         unictype/scripts: Reduce the size of the 'data' segment.
11909         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
11910         '%pic'.
11911         * lib/unictype/scripts_byname.gperf: Regenerated.
11912
11913 2011-02-19  Bruno Haible  <bruno@clisp.org>
11914
11915         stdint: Update documentation.
11916         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
11917
11918 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
11919
11920         stdint: omit redundant check for wchar.h
11921         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
11922         always tests whether wchar.h exists, so remove the now-redundant test.
11923
11924 2011-02-18  Bruno Haible  <bruno@clisp.org>
11925
11926         stdint: Cut dependency to module 'wchar'.
11927         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
11928         include the necessary prerequisites.
11929         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
11930         * modules/stdint (Depends-on): Remove wchar.
11931         (Makefile.am): Substitute HAVE_WCHAR_H.
11932         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
11933
11934 2011-02-18  Eric Blake  <eblake@redhat.com>
11935
11936         longlong: skip, rather than fail, on cross-compilation
11937         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
11938         when cross-compiling; regression from 2011-02-16.
11939
11940 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
11941
11942         * NEWS: Mention 2011-02-08 change to stdlib.
11943
11944 2011-02-17  Bruno Haible  <bruno@clisp.org>
11945
11946         getloadavg: Add comments about platforms.
11947         * m4/getloadavg.m4: Add comment.
11948         * lib/getloadavg.c: Likewise.
11949
11950 2011-02-17  Bruno Haible  <bruno@clisp.org>
11951
11952         getloadavg: Fix link error on Solaris 2.6.
11953         * modules/getloadavg (Link): New section.
11954         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
11955         linking test-getloadavg.
11956         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
11957         getloadavg.
11958
11959 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
11960
11961         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
11962         It was 'int', but this doesn't match the IRIX 6.5 manual.
11963         Suggested by Bruno Haible in
11964         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
11965
11966 2011-02-17  Bruno Haible  <bruno@clisp.org>
11967
11968         havelib: Fix comments.
11969         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
11970         change.
11971
11972 2011-02-17  Bruno Haible  <bruno@clisp.org>
11973
11974         havelib: Update config.rpath.
11975         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
11976
11977 2011-02-17  Bruno Haible  <bruno@clisp.org>
11978
11979         getloadavg test: Add some plausibility checks.
11980         * tests/test-getloadavg.c (check_avg): Print a warning when the value
11981         is improbable.
11982
11983 2011-02-16  Eric Blake  <eblake@redhat.com>
11984
11985         maintainer-makefile: make syntax-check a no-op from tarballs
11986         * top/maint.mk (no-vc-detected): New rule.
11987         (local-checks-available): Use it to avoid hanging if someone tries
11988         'make syntax-check' from a tarball.  Also append to any non-syntax
11989         checks already defined in cfg.mk.
11990
11991 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
11992
11993         longlong: tune, particularly for common case of c99
11994
11995         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
11996         or running anything if c99, or if unsigned long long int does not
11997         work.  In either case, we know the answer without further tests.
11998         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
11999         it at most once, and use its results for both long long int and
12000         unsigned long long int.  This is more likely to be efficient in
12001         the common case where the program wants to check for both long
12002         long int and unsigned long long int.
12003         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
12004         since the answer is already known.
12005
12006 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
12007
12008         getloadavg: set errno
12009         * lib/getloadavg.c: Set errno when returning -1.  If no other
12010         error number looks appropriate, set it to ENOSYS if the getloadavg
12011         looks like it can't possibly ever work, ENOTSUP otherwise.
12012         Suggested by Bruno Haible in
12013         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
12014
12015         getloadavg: trim unused parts and speed up 'configure'
12016         * NEWS: Document this.
12017         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
12018         always compiled if getloadavg is absent.
12019         Move test code to ...
12020         * tests/test-getloadavg.c: New file, containing previous
12021         contents of test from lib/getloadavg.c.  It also contains
12022         suggestions by Bruno Haible in
12023         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
12024         * modules/getloadavg-tests: New file.
12025         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
12026         Do tests in the same order as they're needed for getloadavg.c.
12027         Omit setgid-related tests that generate symbols KMEM_GROUP,
12028         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
12029         Do only the tests that are needed to see whether the system has
12030         getloadavg, moving the other tests into ...
12031         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
12032         NLIST_NAME_UNION; nobody should be using it.  Do not define
12033         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
12034         relevant, as the user of this module shouldn't care how getloadavg
12035         is implemented.
12036
12037         getloadavg: omit unused var
12038         * lib/getloadavg.c (getloadavg): Omit unused local variable.
12039
12040 2011-02-15  Jim Meyering  <meyering@redhat.com>
12041
12042         doc: update users.txt
12043         * users.txt: Update iwhd's URL.
12044
12045 2011-02-13  Bruno Haible  <bruno@clisp.org>
12046
12047         Consistent macro naming for macros that use GCC __attribute__.
12048         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
12049         _ATTRIBUTE_NONNULL_.
12050         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
12051         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
12052         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
12053         ATTRIBUTE_DEPRECATED.
12054         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
12055         ATTRIBUTE_NORETURN.
12056         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12057         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12058         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12059         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12060         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
12061         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
12062         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
12063         ATTRIBUTE_SENTINEL.
12064         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
12065         ATTRIBUTE_RETURN_CHECK.
12066         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
12067         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
12068         ATTRIBUTE_NORETURN.
12069         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
12070         Reported by Paul Eggert.
12071
12072 2011-02-13  Bruno Haible  <bruno@clisp.org>
12073
12074         Don't interfere with a program's definition of __attribute__.
12075         * lib/argp.h (__attribute__): Remove definition.
12076         (_GL_ATTRIBUTE_FORMAT): New macro.
12077         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
12078         * lib/argp-fmtstream.h (__attribute__): Remove definition.
12079         (_GL_ATTRIBUTE_FORMAT): New macro.
12080         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
12081         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
12082         GCC 3 or newer.
12083         * lib/error.h (__attribute__): Remove definition.
12084         (_GL_ATTRIBUTE_FORMAT): New macro.
12085         (error, error_at_line): Use it.
12086         * lib/hash.h (__attribute__): Remove definition.
12087         (ATTRIBUTE_WUR): Update definition. Define always.
12088         * lib/openat.h (__attribute__): Remove definition.
12089         (ATTRIBUTE_NORETURN): Update definition. Define always.
12090         * lib/sigpipe-die.h (__attribute__): Remove definition.
12091         (ATTRIBUTE_NORETURN): Update definition. Define always.
12092         * lib/vasnprintf.h (__attribute__): Remove definition.
12093         (_GL_ATTRIBUTE_FORMAT): New macro.
12094         (asnprintf, vasnprintf): Use it.
12095         * lib/xalloc.h (__attribute__): Remove definition.
12096         (ATTRIBUTE_NORETURN): Update definition. Define always.
12097         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
12098         * lib/xmemdup0.h (__attribute__): Remove definition.
12099         (ATTRIBUTE_NORETURN): Update definition. Define always.
12100         * lib/xprintf.h (__attribute__): Remove definition.
12101         (_GL_ATTRIBUTE_FORMAT): New macro.
12102         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
12103         * lib/xstrtol.h (__attribute__): Remove definition.
12104         (ATTRIBUTE_NORETURN): Update definition. Define always.
12105         * lib/xvasprintf.h (__attribute__): Remove definition.
12106         (_GL_ATTRIBUTE_FORMAT): New macro.
12107         (xasprintf, xvasprintf): Use it.
12108         * tests/test-argmatch.c (__attribute__): Remove definition.
12109         (ATTRIBUTE_NORETURN): Update definition. Define always.
12110         * tests/test-exclude.c (__attribute__): Remove definition.
12111         (ATTRIBUTE_NORETURN): Update definition. Define always.
12112         Reported by Paul Eggert.
12113
12114 2011-02-13  Bruno Haible  <bruno@clisp.org>
12115
12116         mbrtowc: Add more tests for native Windows platforms.
12117         * tests/test-mbrtowc-w32-1.sh: New file.
12118         * tests/test-mbrtowc-w32-2.sh: New file.
12119         * tests/test-mbrtowc-w32-3.sh: New file.
12120         * tests/test-mbrtowc-w32-4.sh: New file.
12121         * tests/test-mbrtowc-w32-5.sh: New file.
12122         * tests/test-mbrtowc-w32.c: New file.
12123         * modules/mbrtowc-tests (Files): Add them.
12124         (Makefile.am): Arrange to run these tests.
12125         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
12126         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
12127
12128 2011-02-13  Bruno Haible  <bruno@clisp.org>
12129
12130         mbrtowc: Work around native Windows bug.
12131         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
12132         guess when no suitable locale for testing was found.
12133         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
12134
12135 2011-02-13  Bruno Haible  <bruno@clisp.org>
12136
12137         mbsinit: Work around mingw bug.
12138         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
12139         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
12140         Windows.
12141         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
12142
12143 2011-02-13  Bruno Haible  <bruno@clisp.org>
12144
12145         mbsinit: Don't crash for a NULL argument.
12146         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
12147         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
12148
12149 2011-02-13  Bruno Haible  <bruno@clisp.org>
12150
12151         Don't interfere with a program's definition of __attribute__.
12152         * lib/stdio.in.h (__attribute__): Remove definition.
12153         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
12154         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
12155         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
12156         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
12157         * lib/string.in.h (__attribute__): Remove definition.
12158         Reported by Paul Eggert.
12159
12160 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12161
12162         stdlib: don't get in the way of non-GCC __attribute__
12163         See thread starting at
12164         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
12165         Revert previous stdlib change, installing the following instead:
12166         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
12167         to get in the way of a non-GCC compiler that supports __attribute__.
12168         (_GL_ATTRIBUTE_RETURN): New macro.
12169         (_Exit): Use it instead of __attribute__.
12170
12171 2011-02-12  Bruno Haible  <bruno@clisp.org>
12172
12173         quotearg test: Avoid test failure on mingw.
12174         * tests/test-quotearg.sh: Convert the locale identifier from native
12175         Windows syntax to Unix syntax.
12176
12177 2011-02-12  Bruno Haible  <bruno@clisp.org>
12178
12179         setlocale: Prefer gnulib's override over libintl's override.
12180         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
12181         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
12182         GNULIB_defined_setlocale is set.
12183
12184 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12185
12186         stdlib: support non-GCC __attribute__
12187
12188         Fix a serious and tricky problem encountered when attempting to
12189         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
12190         5.5, but it crashed due to memory corruption on Solaris 10 with
12191         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
12192         bits that are otherwise zero.  This tagging is optional inside
12193         Emacs but is preferred and is used when __attribute__ ((__aligned
12194         (8))) works, as it does with both recent-enough GCC and with Sun C
12195         5.11.  However, Sun C 5.11 is not GCC and does not #define
12196         __GNUC__ and __GNUC_MINOR__.
12197
12198         When I added the getloadavg module to Emacs, it brought in
12199         stdlib.in.h, which contained this fragment:
12200
12201            #ifndef __attribute__
12202            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
12203            #  define __attribute__(Spec)   /* empty */
12204            # endif
12205            #endif
12206
12207         When files that include <stdlib.h> were compiled with Sun C 5.11,
12208         the above code disabled __attribute__ ((__aligned (8))), which
12209         caused variables to not be properly aligned, which eventually led
12210         to the pointer corruption mentioned above.  (This was a bit hard
12211         to diagnose, unfortunately.)
12212
12213         Several "#define __attribute__(X) /* empty */" code snippets need
12214         to be eradicated from Gnulib to work with non-GCC compilers that
12215         support __attribute__.  The Autoconf way to do this is to test for
12216         each kind of attribute that we want support for, and selectively
12217         enable that in source code.
12218
12219         Fix this problem just for stdlib.h, by adding a test for the
12220         __noreturn__ attribute, and change stdlib.in.h to use that test
12221         when needed.  This technique can be easily generalized to the
12222         other *.in.h files and attributes, and a similar technique can be
12223         used for *.h and *.c files.  This patch is enough to solve the
12224         problem for Emacs + getloadavg, and I thought I'd publish it for
12225         feedback before undertaking further, similar fixes in other
12226         modules.
12227
12228         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
12229         because it's not needed for stdlib.h.  It merely substitutes the
12230         value directly into stdlib.h.  We may well need to #define it, or
12231         similar symbols, for other modules, but it's nice to also have an
12232         option to not #define it for applications like Emacs that do not
12233         need it.
12234
12235         * lib/stdlib.in.h (__attribute__): Do not #define.
12236         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
12237         be defined only if the _Exit module is also used.
12238         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
12239         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
12240         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
12241         platforms.
12242         * modules/_Exit (Files): Add m4/attribute.m4.
12243         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
12244         * m4/attribute.m4: New file.
12245
12246 2011-02-12  Bruno Haible  <bruno@clisp.org>
12247
12248         wcsrtombs: Work around bug on native Windows.
12249         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
12250         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
12251         instead of len.
12252         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
12253
12254 2011-02-12  Bruno Haible  <bruno@clisp.org>
12255
12256         mbsrtowcs: Work around bug on native Windows.
12257         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
12258         against mingw bug.
12259         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
12260
12261 2011-02-12  Bruno Haible  <bruno@clisp.org>
12262
12263         Avoid setlocale bugs in tests.
12264         * modules/btowc (Dependencies): Add setlocale.
12265         * modules/c-strcase (Dependencies): Likewise.
12266         * modules/mbmemcasecmp (Dependencies): Likewise.
12267         * modules/mbmemcasecoll (Dependencies): Likewise.
12268         * modules/mbrtowc (Dependencies): Likewise.
12269         * modules/mbscasecmp (Dependencies): Likewise.
12270         * modules/mbscasestr (Dependencies): Likewise.
12271         * modules/mbschr (Dependencies): Likewise.
12272         * modules/mbscspn (Dependencies): Likewise.
12273         * modules/mbsinit (Dependencies): Likewise.
12274         * modules/mbsncasecmp (Dependencies): Likewise.
12275         * modules/mbsnrtowcs (Dependencies): Likewise.
12276         * modules/mbspbrk (Dependencies): Likewise.
12277         * modules/mbspcasecmp (Dependencies): Likewise.
12278         * modules/mbsrchr (Dependencies): Likewise.
12279         * modules/mbsrtowcs (Dependencies): Likewise.
12280         * modules/mbsspn (Dependencies): Likewise.
12281         * modules/mbsstr (Dependencies): Likewise.
12282         * modules/nl_langinfo (Dependencies): Likewise.
12283         * modules/quotearg (Dependencies): Likewise.
12284         * modules/unicase/locale-language (Dependencies): Likewise.
12285         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
12286         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
12287         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
12288         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
12289         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
12290         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
12291         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
12292         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
12293         * modules/vasnprintf-posix (Dependencies): Likewise.
12294         * modules/wcrtomb (Dependencies): Likewise.
12295         * modules/wcsnrtombs (Dependencies): Likewise.
12296         * modules/wcsrtombs (Dependencies): Likewise.
12297
12298 2011-02-12  Bruno Haible  <bruno@clisp.org>
12299
12300         setlocale: Workaround native Windows bug.
12301         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
12302         succeeds but sets LC_CTYPE to "C", report a failure.
12303         * tests/test-setlocale2.sh: New file.
12304         * tests/test-setlocale2.c: New file.
12305         * modules/setlocale-tests (Files): Add the new files.
12306         (Makefile.am): Enable test-setlocale2.sh test.
12307         * doc/posix-functions/setlocale.texi: Mention workaround.
12308
12309 2011-02-11  Bruno Haible  <bruno@clisp.org>
12310
12311         Tests for module 'setlocale'.
12312         * modules/setlocale-tests: New file.
12313         * tests/test-setlocale1.sh: New file.
12314         * tests/test-setlocale1.c: New file.
12315
12316         New module 'setlocale'.
12317         * lib/locale.in.h (setlocale): New declaration.
12318         * lib/setlocale.c: New file, based on
12319         gettext/gettext-runtime/intl/setlocale.c.
12320         * m4/setlocale.m4: New file.
12321         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
12322         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
12323         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
12324         REPLACE_SETLOCALE.
12325         * modules/setlocale: New file.
12326         * tests/test-locale-c++.cc: Test the declaration of setlocale.
12327         * doc/posix-functions/setlocale.texi: Mention the new module.
12328
12329 2011-02-11  Bruno Haible  <bruno@clisp.org>
12330
12331         Prepare for locale dependent tests on mingw.
12332         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
12333         because it has the wrong locale encoding.
12334         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
12335         French_France.1252 instead of "fr".
12336         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
12337         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
12338         because it has the wrong locale encoding.
12339         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
12340         native Windows, try Turkish_Turkey.65001.
12341         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
12342         Chinese_China.54936.
12343
12344         Prepare for locale dependent tests on mingw.
12345         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
12346         differently.
12347         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
12348         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
12349         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
12350         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
12351
12352 2011-02-11  Eric Blake  <eblake@redhat.com>
12353
12354         strptime: avoid compiler warnings
12355         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
12356         compiler warnings about dead code.
12357         Reported by Daniel P. Berrange.
12358
12359 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
12360
12361         doc: update users.txt
12362         * users.txt: Add rcs.
12363
12364 2011-02-10  John W. Eaton  <jwe@gnu.org>
12365
12366         doc: update users.txt
12367         * users.txt: Add octave.
12368
12369 2011-02-10  Jim Meyering  <meyering@redhat.com>
12370
12371         doc: update users.txt
12372         * users.txt: Add iwhd.
12373
12374 2011-02-09  Bruno Haible  <bruno@clisp.org>
12375
12376         gnulib-tool: Make copyright notice adjustment more robust.
12377         * gnulib-tool (func_import): In sed_transform_main_lib_file,
12378         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
12379         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
12380         License".
12381         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
12382
12383 2011-02-06  Bruno Haible  <bruno@clisp.org>
12384
12385         New module 'towctrans'.
12386         * modules/towctrans: New file.
12387         * lib/wctype.in.h (towctrans): New declaration.
12388         * lib/towctrans.c: New file.
12389         * lib/towctrans-impl.h: New file.
12390         * m4/towctrans.m4: New file.
12391         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
12392         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
12393         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
12394         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
12395         * doc/posix-functions/towctrans.texi: Mention the new module.
12396
12397 2011-02-06  Bruno Haible  <bruno@clisp.org>
12398
12399         New module 'wctrans'.
12400         * modules/wctrans: New file.
12401         * lib/wctype.in.h (wctrans): New declaration.
12402         * lib/wctrans.c: New file.
12403         * lib/wctrans-impl.h: New file.
12404         * m4/wctrans.m4: New file.
12405         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
12406         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
12407         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
12408         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
12409         * doc/posix-functions/wctrans.texi: Mention the new module.
12410
12411 2011-02-06  Bruno Haible  <bruno@clisp.org>
12412
12413         New module 'iswctype'.
12414         * modules/iswctype: New file.
12415         * lib/wctype.in.h (iswctype): New declaration.
12416         * lib/iswctype.c: New file.
12417         * lib/iswctype-impl.h: New file.
12418         * m4/iswctype.m4: New file.
12419         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
12420         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
12421         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
12422         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
12423         * doc/posix-functions/iswctype.texi: Mention the new module and the
12424         HP-UX 11.00 problem.
12425
12426 2011-02-06  Bruno Haible  <bruno@clisp.org>
12427
12428         New module 'wctype'.
12429         * modules/wctype: Change to represent the wctype() substitute.
12430         * lib/wctype.in.h (wctype): New declaration.
12431         * lib/wctype.c: New file.
12432         * lib/wctype-impl.h: New file.
12433         * m4/wctype.m4: New file.
12434         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
12435         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
12436         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
12437         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
12438         * doc/posix-functions/wctype.texi: Mention the new module and the
12439         HP-UX 11.00 problem.
12440
12441 2011-02-06  Bruno Haible  <bruno@clisp.org>
12442
12443         wctype-h: Ensure wctype_t and wctrans_t are defined.
12444         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
12445         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
12446         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
12447         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
12448         HAVE_WCTRANS_T.
12449         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
12450
12451 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12452
12453         flock: fix license typo
12454
12455         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
12456         omitted.
12457
12458 2011-02-08  Bruno Haible  <bruno@clisp.org>
12459
12460         Split large sed scripts, for HP-UX sed.
12461         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
12462         to avoid HP-UX limit of 99 commands, in the near future.
12463         * modules/stdlib (Makefile.am): Likewise.
12464         * modules/unistd (Makefile.am): Likewise.
12465         * modules/wchar (Makefile.am): Likewise.
12466         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12467         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
12468         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
12469
12470 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
12471             Bruno Haible  <bruno@clisp.org>
12472
12473         stdlib: improve random_r modularization
12474         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
12475         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
12476         you also need the random_r module to get this material right.
12477         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
12478         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
12479         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
12480
12481 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
12482
12483         stdlib: don't depend on stdint
12484         * lib/stdlib.in.h: Don't include <stdint.h> merely because
12485         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
12486         be independent of whether stdint.h is needed.
12487         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
12488         here, instead of ...
12489         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
12490         struct random_data should be using the random_r module, not just
12491         the stdlib module (which wouldn't make sense: what package needs
12492         just struct random_data without also needing random_r?).
12493         * modules/stdlib (Depends-on): Remove stdint.
12494
12495         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
12496         See the thread rooted at
12497         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
12498         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
12499         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
12500         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
12501         __VMS)); previously it was always included (via fcntl--.h).
12502         (getloadavg): Do not use c_strtod.  Instead, approximate it by
12503         hand; this is good enough for load averages.  Also, do not use
12504         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
12505         flags directly if available and don't bother otherwise.  (Packages
12506         that need the extra reliability should use the modules that define
12507         these flags on older platforms that lack them.)
12508         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
12509         fcntl-safer.
12510
12511 2011-02-08  Jim Meyering  <meyering@redhat.com>
12512
12513         di-set.h, ino-map.h: add multiple-inclusion guard
12514         Technically, the guard is required only for ino-map.h, due to its
12515         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
12516         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
12517         * lib/ino-map.h: Likewise.
12518
12519 2011-02-06  Bruno Haible  <bruno@clisp.org>
12520
12521         iswblank: Ensure declaration on glibc systems.
12522         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
12523         * modules/iswblank (Dependencies): Add 'extensions'.
12524         * doc/posix-functions/iswblank.texi: Document the glibc problem.
12525
12526 2011-02-06  Bruno Haible  <bruno@clisp.org>
12527
12528         New module 'iswblank'.
12529         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
12530         * modules/iswblank: New file.
12531         * modules/wctype-h (Files): Remove lib/iswblank.c.
12532         (Makefile.am): Substitute GNULIB_ISWBLANK.
12533         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
12534         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
12535         (gl_WCTYPE_H_DEFAULTS): New macro.
12536         (gl_WCTYPE_H): Require it. Remove iswblank related code.
12537         * modules/iswblank-tests: New file.
12538         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
12539         * tests/test-wctype-h.c (main): Remove iswblank tests.
12540         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
12541         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
12542         of 'wctype-h'.
12543         * NEWS: Mention the change.
12544         * modules/mbchar (Depends-on): Add iswblank.
12545
12546 2011-02-08  Bruno Haible  <bruno@clisp.org>
12547
12548         di-set tests: Refactor.
12549         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
12550         unnecessary includes.
12551         (ASSERT): Remove macro.
12552         (main): Make C90 compliant by avoiding variable declaration after
12553         statement.
12554         * modules/di-set-tests (Files): Add tests/macros.h.
12555
12556 2011-02-08  Bruno Haible  <bruno@clisp.org>
12557
12558         ino-map tests: Refactor.
12559         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
12560         unnecessary includes.
12561         (ASSERT): Remove macro.
12562         (main): Make C90 compliant by avoiding variable declaration after
12563         statement.
12564         * modules/ino-map-tests (Files): Add tests/macros.h.
12565
12566 2011-02-08  Jim Meyering  <meyering@redhat.com>
12567
12568         di-set: add "const" to a cast
12569         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
12570         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
12571
12572 2011-02-06  Bruno Haible  <bruno@clisp.org>
12573
12574         Rename module 'wctype' to 'wctype-h'.
12575         * modules/wctype-h: Renamed from modules/wctype.
12576         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
12577         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
12578         (Files, Depends-on, Makefile.am): Update.
12579         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
12580         (Files, Makefile.am): Update.
12581         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
12582         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
12583         * doc/posix-headers/wctype.texi: Update.
12584         * doc/posix-functions/iswalnum.texi: Update.
12585         * doc/posix-functions/iswalpha.texi: Update.
12586         * doc/posix-functions/iswblank.texi: Update.
12587         * doc/posix-functions/iswcntrl.texi: Update.
12588         * doc/posix-functions/iswdigit.texi: Update.
12589         * doc/posix-functions/iswgraph.texi: Update.
12590         * doc/posix-functions/iswlower.texi: Update.
12591         * doc/posix-functions/iswprint.texi: Update.
12592         * doc/posix-functions/iswpunct.texi: Update.
12593         * doc/posix-functions/iswspace.texi: Update.
12594         * doc/posix-functions/iswupper.texi: Update.
12595         * doc/posix-functions/iswxdigit.texi: Update.
12596         * doc/posix-functions/towlower.texi: Update.
12597         * doc/posix-functions/towupper.texi: Update.
12598         * NEWS: Mention the change.
12599         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
12600         * modules/mbchar (Dependencies): Likewise.
12601         * modules/mbswidth (Dependencies): Likewise.
12602         * modules/quotearg (Dependencies): Likewise.
12603         * modules/regex (Dependencies): Likewise.
12604         * modules/wcscasecmp (Dependencies): Likewise.
12605         * modules/wcsncasecmp (Dependencies): Likewise.
12606         * modules/wcwidth (Dependencies): Likewise.
12607
12608 2011-02-06  Bruno Haible  <bruno@clisp.org>
12609
12610         New module 'wcswidth'.
12611         * modules/wcswidth: New file.
12612         * lib/wchar.in.h (wcswidth): New declaration.
12613         * lib/wcswidth.c: New file.
12614         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
12615         * m4/wcswidth.m4: New file.
12616         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
12617         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
12618         REPLACE_WCSWIDTH.
12619         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
12620         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
12621         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
12622         * doc/posix-functions/wcswidth.texi: Mention the new module.
12623
12624 2011-02-06  Bruno Haible  <bruno@clisp.org>
12625
12626         New module 'wcstok'.
12627         * modules/wcstok: New file.
12628         * lib/wchar.in.h (wcstok): New declaration.
12629         * lib/wcstok.c: New file.
12630         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
12631         * m4/wcstok.m4: New file.
12632         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
12633         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
12634         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
12635         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
12636         * doc/posix-functions/wcstok.texi: Mention the new module.
12637
12638 2011-02-06  Bruno Haible  <bruno@clisp.org>
12639
12640         New module 'wcsstr'.
12641         * modules/wcsstr: New file.
12642         * lib/wchar.in.h (wcsstr): New declaration.
12643         * lib/wcsstr.c: New file.
12644         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
12645         * m4/wcsstr.m4: New file.
12646         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
12647         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
12648         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
12649         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
12650         * doc/posix-functions/wcsstr.texi: Mention the new module.
12651
12652 2011-02-06  Bruno Haible  <bruno@clisp.org>
12653
12654         New module 'wcspbrk'.
12655         * modules/wcspbrk: New file.
12656         * lib/wchar.in.h (wcspbrk): New declaration.
12657         * lib/wcspbrk.c: New file.
12658         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
12659         * m4/wcspbrk.m4: New file.
12660         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
12661         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
12662         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
12663         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
12664         * doc/posix-functions/wcspbrk.texi: Mention the new module.
12665
12666 2011-02-06  Bruno Haible  <bruno@clisp.org>
12667
12668         New module 'wcsspn'.
12669         * modules/wcsspn: New file.
12670         * lib/wchar.in.h (wcsspn): New declaration.
12671         * lib/wcsspn.c: New file.
12672         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
12673         * m4/wcsspn.m4: New file.
12674         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
12675         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
12676         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
12677         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
12678         * doc/posix-functions/wcsspn.texi: Mention the new module.
12679
12680 2011-02-06  Bruno Haible  <bruno@clisp.org>
12681
12682         New module 'wcscspn'.
12683         * modules/wcscspn: New file.
12684         * lib/wchar.in.h (wcscspn): New declaration.
12685         * lib/wcscspn.c: New file.
12686         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
12687         * m4/wcscspn.m4: New file.
12688         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
12689         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
12690         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
12691         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
12692         * doc/posix-functions/wcscspn.texi: Mention the new module.
12693
12694 2011-02-06  Bruno Haible  <bruno@clisp.org>
12695
12696         New module 'wcsrchr'.
12697         * modules/wcsrchr: New file.
12698         * lib/wchar.in.h (wcsrchr): New declaration.
12699         * lib/wcsrchr.c: New file.
12700         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
12701         * m4/wcsrchr.m4: New file.
12702         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
12703         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
12704         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
12705         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
12706         * doc/posix-functions/wcsrchr.texi: Mention the new module.
12707
12708 2011-02-06  Bruno Haible  <bruno@clisp.org>
12709
12710         New module 'wcschr'.
12711         * modules/wcschr: New file.
12712         * lib/wchar.in.h (wcschr): New declaration.
12713         * lib/wcschr.c: New file.
12714         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
12715         * m4/wcschr.m4: New file.
12716         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
12717         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
12718         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
12719         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
12720         * doc/posix-functions/wcschr.texi: Mention the new module.
12721
12722 2011-02-06  Bruno Haible  <bruno@clisp.org>
12723
12724         New module 'wcsdup'.
12725         * modules/wcsdup: New file.
12726         * lib/wchar.in.h (wcsdup): New declaration.
12727         * lib/wcsdup.c: New file.
12728         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
12729         * m4/wcsdup.m4: New file.
12730         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
12731         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
12732         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
12733         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
12734         * doc/posix-functions/wcsdup.texi: Mention the new module.
12735
12736 2011-02-06  Bruno Haible  <bruno@clisp.org>
12737
12738         New module 'wcsxfrm'.
12739         * modules/wcsxfrm: New file.
12740         * lib/wchar.in.h (wcsxfrm): New declaration.
12741         * lib/wcsxfrm.c: New file.
12742         * lib/wcsxfrm-impl.h: New file.
12743         * m4/wcsxfrm.m4: New file.
12744         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
12745         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
12746         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
12747         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
12748         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
12749
12750 2011-02-06  Bruno Haible  <bruno@clisp.org>
12751
12752         New module 'wcscoll'.
12753         * modules/wcscoll: New file.
12754         * lib/wchar.in.h (wcscoll): New declaration.
12755         * lib/wcscoll.c: New file.
12756         * lib/wcscoll-impl.h: New file.
12757         * m4/wcscoll.m4: New file.
12758         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
12759         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
12760         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
12761         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
12762         * doc/posix-functions/wcscoll.texi: Mention the new module.
12763
12764 2011-02-06  Bruno Haible  <bruno@clisp.org>
12765
12766         New module 'wcsncasecmp'.
12767         * modules/wcsncasecmp: New file.
12768         * lib/wchar.in.h (wcsncasecmp): New declaration.
12769         * lib/wcsncasecmp.c: New file.
12770         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
12771         * m4/wcsncasecmp.m4: New file.
12772         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
12773         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
12774         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
12775         HAVE_WCSNCASECMP.
12776         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
12777         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
12778
12779 2011-02-06  Bruno Haible  <bruno@clisp.org>
12780
12781         New module 'wcscasecmp'.
12782         * modules/wcscasecmp: New file.
12783         * lib/wchar.in.h (wcscasecmp): New declaration.
12784         * lib/wcscasecmp.c: New file.
12785         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
12786         * m4/wcscasecmp.m4: New file.
12787         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
12788         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
12789         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
12790         HAVE_WCSCASECMP.
12791         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
12792         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
12793
12794 2011-02-05  Bruno Haible  <bruno@clisp.org>
12795
12796         New module 'wcsncmp'.
12797         * modules/wcsncmp: New file.
12798         * lib/wchar.in.h (wcsncmp): New declaration.
12799         * lib/wcsncmp.c: New file.
12800         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
12801         * m4/wcsncmp.m4: New file.
12802         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
12803         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
12804         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
12805         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
12806         * doc/posix-functions/wcsncmp.texi: Mention the new module.
12807
12808 2011-02-05  Bruno Haible  <bruno@clisp.org>
12809
12810         New module 'wcscmp'.
12811         * modules/wcscmp: New file.
12812         * lib/wchar.in.h (wcscmp): New declaration.
12813         * lib/wcscmp.c: New file.
12814         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
12815         * m4/wcscmp.m4: New file.
12816         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
12817         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
12818         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
12819         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
12820         * doc/posix-functions/wcscmp.texi: Mention the new module.
12821
12822 2011-02-05  Bruno Haible  <bruno@clisp.org>
12823
12824         New module 'wcsncat'.
12825         * modules/wcsncat: New file.
12826         * lib/wchar.in.h (wcsncat): New declaration.
12827         * lib/wcsncat.c: New file.
12828         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
12829         * m4/wcsncat.m4: New file.
12830         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
12831         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
12832         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
12833         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
12834         * doc/posix-functions/wcsncat.texi: Mention the new module.
12835
12836 2011-02-05  Bruno Haible  <bruno@clisp.org>
12837
12838         New module 'wcscat'.
12839         * modules/wcscat: New file.
12840         * lib/wchar.in.h (wcscat): New declaration.
12841         * lib/wcscat.c: New file.
12842         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
12843         * m4/wcscat.m4: New file.
12844         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
12845         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
12846         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
12847         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
12848         * doc/posix-functions/wcscat.texi: Mention the new module.
12849
12850 2011-02-05  Bruno Haible  <bruno@clisp.org>
12851
12852         New module 'wcpncpy'.
12853         * modules/wcpncpy: New file.
12854         * lib/wchar.in.h (wcpncpy): New declaration.
12855         * lib/wcpncpy.c: New file.
12856         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
12857         * m4/wcpncpy.m4: New file.
12858         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
12859         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
12860         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
12861         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
12862         * doc/posix-functions/wcpncpy.texi: Mention the new module.
12863
12864 2011-02-05  Bruno Haible  <bruno@clisp.org>
12865
12866         New module 'wcsncpy'.
12867         * modules/wcsncpy: New file.
12868         * lib/wchar.in.h (wcsncpy): New declaration.
12869         * lib/wcsncpy.c: New file.
12870         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
12871         * m4/wcsncpy.m4: New file.
12872         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
12873         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
12874         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
12875         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
12876         * doc/posix-functions/wcsncpy.texi: Mention the new module.
12877
12878 2011-02-05  Bruno Haible  <bruno@clisp.org>
12879
12880         New module 'wcpcpy'.
12881         * modules/wcpcpy: New file.
12882         * lib/wchar.in.h (wcpcpy): New declaration.
12883         * lib/wcpcpy.c: New file.
12884         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
12885         * m4/wcpcpy.m4: New file.
12886         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
12887         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
12888         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
12889         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
12890         * doc/posix-functions/wcpcpy.texi: Mention the new module.
12891
12892 2011-02-05  Bruno Haible  <bruno@clisp.org>
12893
12894         New module 'wcscpy'.
12895         * modules/wcscpy: New file.
12896         * lib/wchar.in.h (wcscpy): New declaration.
12897         * lib/wcscpy.c: New file.
12898         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
12899         * m4/wcscpy.m4: New file.
12900         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
12901         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
12902         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
12903         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
12904         * doc/posix-functions/wcscpy.texi: Mention the new module.
12905
12906 2011-02-05  Bruno Haible  <bruno@clisp.org>
12907
12908         New module 'wcsnlen'.
12909         * modules/wcsnlen: New file.
12910         * lib/wchar.in.h (wcsnlen): New declaration.
12911         * lib/wcsnlen.c: New file.
12912         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
12913         * m4/wcsnlen.m4: New file.
12914         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
12915         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
12916         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
12917         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
12918         * doc/posix-functions/wcsnlen.texi: Mention the new module.
12919
12920 2011-02-05  Bruno Haible  <bruno@clisp.org>
12921
12922         New module 'wcslen'.
12923         * modules/wcslen: New file.
12924         * lib/wchar.in.h (wcslen): New declaration.
12925         * lib/wcslen.c: New file.
12926         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
12927         * m4/wcslen.m4: New file.
12928         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
12929         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
12930         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
12931         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
12932         * doc/posix-functions/wcslen.texi: Mention the new module.
12933
12934 2011-02-05  Bruno Haible  <bruno@clisp.org>
12935
12936         New module 'wmemset'.
12937         * modules/wmemset: New file.
12938         * lib/wchar.in.h (wmemset): New declaration.
12939         * lib/wmemset.c: New file.
12940         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
12941         * m4/wmemset.m4: New file.
12942         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
12943         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
12944         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
12945         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
12946         * doc/posix-functions/wmemset.texi: Mention the new module.
12947
12948 2011-02-05  Bruno Haible  <bruno@clisp.org>
12949
12950         New module 'wmemmove'.
12951         * modules/wmemmove: New file.
12952         * lib/wchar.in.h (wmemmove): New declaration.
12953         * lib/wmemmove.c: New file.
12954         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
12955         * m4/wmemmove.m4: New file.
12956         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
12957         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
12958         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
12959         HAVE_WMEMMOVE.
12960         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
12961         * doc/posix-functions/wmemmove.texi: Mention the new module.
12962
12963 2011-02-05  Bruno Haible  <bruno@clisp.org>
12964
12965         New module 'wmemcpy'.
12966         * modules/wmemcpy: New file.
12967         * lib/wchar.in.h (wmemcpy): New declaration.
12968         * lib/wmemcpy.c: New file.
12969         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
12970         * m4/wmemcpy.m4: New file.
12971         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
12972         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
12973         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
12974         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
12975         * doc/posix-functions/wmemcpy.texi: Mention the new module.
12976
12977 2011-02-05  Bruno Haible  <bruno@clisp.org>
12978
12979         New module 'wmemcmp'.
12980         * modules/wmemcmp: New file.
12981         * lib/wchar.in.h (wmemcmp): New declaration.
12982         * lib/wmemcmp.c: New file.
12983         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
12984         * m4/wmemcmp.m4: New file.
12985         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
12986         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
12987         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
12988         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
12989         * doc/posix-functions/wmemcmp.texi: Mention the new module.
12990
12991 2011-02-07  Jim Meyering  <meyering@redhat.com>
12992
12993         di-set, ino-map: new modules, from coreutils
12994         * lib/di-set.c: New file.
12995         * lib/di-set.h: Likewise.
12996         * lib/ino-map.c: Likewise.
12997         * lib/ino-map.h: Likewise.
12998         * modules/di-set: Likewise.
12999         * modules/di-set-tests: Likewise.
13000         * modules/ino-map: Likewise.
13001         * modules/ino-map-tests: Likewise.
13002         * tests/test-di-set.c: Likewise.
13003         * tests/test-ino-map.c: Likewise.
13004
13005 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
13006
13007         getloadavg: merge minor changes from Emacs
13008
13009         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
13010         (getloadavg): Use memset, not bzero.
13011
13012         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
13013         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13014         clash (bug#86).
13015
13016 2010-11-14  Bruno Haible  <bruno@clisp.org>
13017
13018         Allow multiple gnulib generated replacements to coexist.
13019         * lib/getopt.in.h (struct option): Avoid identical redefinition.
13020         * lib/inttypes.in.h (imaxdiv_t): Likewise.
13021         * lib/langinfo.in.h (nl_item): Likewise.
13022         * lib/math.in.h (_NaN, NAN): Likewise.
13023         * lib/netdb.in.h (struct addrinfo): Likewise.
13024         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
13025         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
13026         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
13027         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
13028         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
13029         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
13030         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
13031         pthread_mutexattr_init, pthread_mutexattr_settype,
13032         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
13033         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
13034         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
13035         pthread_spin_trylock, pthread_spin_unlock): Likewise.
13036         * lib/sched.in.h (struct sched_param): Likewise.
13037         * lib/se-selinux.in.h (security_class_t, security_context_t,
13038         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
13039         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
13040         lsetfilecon, fsetfilecon, security_check_context,
13041         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
13042         Likewise.
13043         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
13044         Likewise.
13045         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
13046         _gl_function_taking_int_returning_void_t, union sigval,
13047         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
13048         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
13049         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
13050         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
13051         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
13052         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
13053         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
13054         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
13055         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
13056         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
13057         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
13058         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
13059         socklen_t, rpl_fd_isset): Likewise.
13060         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
13061         * lib/sys_time.in.h (struct timeval): Likewise.
13062         * lib/sys_times.in.h (struct tms): Likewise.
13063         * lib/sys_utsname.in.h (struct utsname):
13064         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
13065         * lib/unistd.in.h (getpagesize): Likewise.
13066         * lib/wchar.in.h (mbstate_t): Likewise.
13067         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
13068         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
13069         towlower, towupper): Likewise.
13070         Reported by Sam Steingold <sds@gnu.org>.
13071
13072 2011-02-05  Eric Blake  <eblake@redhat.com>
13073
13074         unsetenv: work around Haiku issues
13075         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
13076         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
13077
13078 2010-12-30  Bruce Korb  <bkorb@gnu.org>
13079
13080         libposix: avoid calling error() within libposix
13081         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
13082         is defined.
13083
13084 2011-02-05  Eric Blake  <eblake@redhat.com>
13085
13086         strerror_r-posix: port to cygwin
13087         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
13088         implementation.
13089         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
13090         * tests/test-strerror_r.c (main): Fix test.
13091         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
13092         issue.
13093
13094 2011-02-05  Bruno Haible  <bruno@clisp.org>
13095
13096         New module 'wmemchr'.
13097         * modules/wmemchr: New file.
13098         * lib/wchar.in.h (wmemchr): New declaration.
13099         * lib/wmemchr.c: New file.
13100         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
13101         * m4/wmemchr.m4: New file.
13102         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
13103         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
13104         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
13105         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
13106         * doc/posix-functions/wmemchr.texi: Mention the new module.
13107
13108 2011-02-04  Eric Blake  <eblake@redhat.com>
13109
13110         fdopendir: detect FreeBSD bug
13111         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
13112         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
13113
13114 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
13115
13116         stdbool: do not define HAVE_STDBOOL_H
13117         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
13118         AC_HEADER_STDBOOL.  All uses changed.  Do not define
13119         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
13120         imported from the latest Autoconf git.  It was motivated by Emacs,
13121         which uses gnulib but does not need HAVE_STDBOOL_H.
13122
13123 2011-02-04  Bruno Haible  <bruno@clisp.org>
13124
13125         wcsnrtombs: Prepare for new module wwcsnrtombs.
13126         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
13127         * lib/wcsnrtombs.c: Include it.
13128         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
13129
13130         wcsrtombs: Prepare for new module wwcsrtombs.
13131         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
13132         * lib/wcsrtombs.c: Include it.
13133         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
13134
13135         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
13136         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
13137         * lib/mbsnrtowcs.c: Include it.
13138         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
13139
13140         mbsrtowcs: Prepare for new module mbsrtowwcs.
13141         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
13142         * lib/mbsrtowcs.c: Include it.
13143         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
13144
13145 2011-02-04  Bruno Haible  <bruno@clisp.org>
13146
13147         vasnprintf: Reduce use of malloc for small format strings.
13148         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
13149         (arguments): Add room for the first 7 arguments.
13150         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
13151         (char_directives, u8_directives, u16_directives, u32_directives): Add
13152         room for the first 7 directives.
13153         * lib/printf-parse.c: Include <string.h>.
13154         (PRINTF_PARSE): Change memory handling code so that it uses the first
13155         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
13156         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
13157         Reported by Pádraig Brady <P@draigbrady.com>.
13158
13159 2011-01-31  Eric Blake  <eblake@redhat.com>
13160
13161         dup2: work around Haiku bug
13162         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
13163         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
13164         * doc/posix-functions/dup2.texi (dup2): Document the bug.
13165         * tests/test-dup2.c (main): Enhance test.
13166
13167 2011-01-31  Simon Josefsson  <simon@josefsson.org>
13168
13169         doc: off_t is not available in eglibc 2.11.2 stdio.h.
13170         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
13171         declared by eglibc 2.11.2.
13172         * lib/stdio.in.h: Likewise.
13173
13174 2011-01-31  Eric Blake  <eblake@redhat.com>
13175
13176         ignore-value: add missing test dependency
13177         * tests/test-ignore-value.c: Revert previous change; stdio.h
13178         provides off_t.
13179         * modules/ignore-value-tests (Depends-on): Add missing dependency.
13180
13181 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
13182
13183         mktime: clarify long_int width checking
13184         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
13185         the top level, to make it clearer that the assumption about
13186         long_int width is being checked.  See
13187         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
13188
13189 2011-01-30  Simon Josefsson  <simon@josefsson.org>
13190
13191         ignore-value: Fix self-test.
13192         * tests/test-ignore-value.c: Include sys/types.h for off_t.
13193
13194 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
13195
13196         TYPE_MAXIMUM: avoid theoretically undefined behavior
13197         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
13198         negative number, which the C Standard says has undefined behavior.
13199         In practice this is not a problem, but might as well do it by the book.
13200         Reported by Rich Felker and Eric Blake; see
13201         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
13202         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
13203         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
13204         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13205         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
13206         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13207         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
13208
13209         mktime: #undef mktime before #defining it
13210         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
13211
13212         mktime: systematically normalize tm_isdst comparisons
13213         * lib/mktime.c (isdst_differ): New function.
13214         (__mktime_internal): Use it systematically for all isdst comparisons.
13215         This completes the fix for libc BZ #6723, and removes the need for
13216         normalizing tm_isdst.  See
13217         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
13218         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
13219
13220         mktime: fix some integer overflow issues and sidestep the rest
13221
13222         This was prompted by a bug report by Benjamin Lindner for MinGW
13223         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
13224         His bug is due to signed integer overflow (0 - INT_MIN), and I
13225         I scanned through mktime.c looking for other integer overflow
13226         problems, fixing all the bugs I found.
13227
13228         Although the C Standard says the resulting code is still not safe
13229         in the presence of integer overflow, in practice it should be good
13230         enough for all real-world two's-complement implementations, except
13231         for debugging environments that deliberately trap on integer
13232         overflow (e.g., gcc -ftrapv).
13233
13234         * lib/mktime.c (WRAPV): New macro.
13235         (SHR): Also check that long_int and time_t shift right in the
13236         usual way, before using the fast-but-unportable method.
13237         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
13238         used.  The code already assumed two's complement, so there's
13239         no need to test for alternatives.  All uses removed.
13240         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
13241         the C standard.  Problem reported by Rich Felker in
13242         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
13243         (twos_complement_arithmetic): Also check long_int and time_t.
13244         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
13245         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
13246         (__mktime_internal): Avoid integer overflow with unary subtraction
13247         in two instances where -1 - X is an adequate replacement for -X,
13248         since the calculations are approximate.
13249
13250 2011-01-29  Eric Blake  <eblake@redhat.com>
13251
13252         mktime: avoid infinite loop
13253         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
13254         type; behavior is still undefined but portable to all known targets.
13255         Reported by Rich Felker.
13256
13257 2011-01-29  Simon Josefsson  <simon@josefsson.org>
13258
13259         rename, unlink, same-inode: Relicense.
13260         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
13261         * modules/unlink (License): Likewise.
13262         * modules/same-inode (License): Likewise.
13263
13264 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
13265
13266         mktime: avoid problems on NetBSD 5 / i386
13267         * lib/mktime.c (long_int): New type.  This works around a problem
13268         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
13269         but time_t is 64 bits, and where I expect the existing code is
13270         wrong in some cases.
13271         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
13272         (ydhms_diff): Bring back the compile-time check for wide-enough
13273         year and yday.
13274
13275         mktime: fix misspelling in comment
13276         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
13277         This merges all recent glibc changes of importance.
13278
13279 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13280
13281         move-if-change: cope with concurrent mv of identical file.
13282         * build-aux/move-if-change (CMPPROG): Accept environment
13283         variable as an override for `cmp'.
13284         (usage): Document CMPPROG.
13285         Adjust comparison to drop stdout.  Cope with failure of mv if
13286         the target file exists and is identical to the source, for
13287         parallel builds.
13288         Report from H.J. Lu against binutils in PR binutils/12283.
13289
13290 2011-01-28  Bruce Korb  <bkorb@gnu.org>
13291
13292         * users.txt: Mention sharutils.
13293
13294 2011-01-28  Simon Josefsson  <simon@josefsson.org>
13295
13296         * users.txt: Mention OATH Toolkit.
13297
13298 2011-01-27  Bruno Haible  <bruno@clisp.org>
13299
13300         Prepare for supporting FreeBSD 10.
13301         * build-aux/config.libpath: Remove handling of freebsd1*.
13302
13303 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
13304
13305         Prepare for supporting FreeBSD 10.
13306         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
13307         match FreeBSD 10.0.
13308
13309 2011-01-27  Bruno Haible  <bruno@clisp.org>
13310
13311         vma-iter, get-rusage-as: Add OpenBSD support.
13312         * modules/vma-iter (configure.ac): Test for mquery.
13313         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
13314         * lib/vma-iter.c: Include <sys/mman.h>.
13315         (vma_iterate): Add an implementation based on mquery().
13316         * lib/resource-ext.h (get_rusage_as): Update comments.
13317         * lib/get-rusage-as.c: Likewise.
13318         * lib/get-rusage-data.c: Likewise.
13319
13320 2011-01-26  Karl Berry  <karl@gnu.org>
13321
13322         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
13323         variables to make it easier to override the makeinfo program used.
13324
13325 2011-01-26  Eric Blake  <eblake@redhat.com>
13326
13327         fcntl: work around Haiku F_DUPFD bugs
13328         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
13329         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
13330         cloexec bit on duplication.
13331         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
13332
13333 2011-01-26  Bruno Haible  <bruno@clisp.org>
13334
13335         Enable memory leak tests on AIX.
13336         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
13337         * tests/test-fprintf-posix3.c (main): Likewise.
13338
13339 2011-01-26  Bruno Haible  <bruno@clisp.org>
13340
13341         Tests for module 'get-rusage-data'.
13342         * modules/get-rusage-data-tests: New file.
13343         * tests/test-get-rusage-data.c: New file.
13344
13345         New module 'get-rusage-data'.
13346         * lib/resource-ext.h (get_rusage_data): New declaration.
13347         * lib/get-rusage-data.c: New file.
13348         * modules/get-rusage-data: New file.
13349
13350 2011-01-25  Bruno Haible  <bruno@clisp.org>
13351
13352         get-rusage-as: Allow for easier testing.
13353         * lib/resource-ext.h (get_rusage_as): Add comment.
13354         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
13355         (main): New function for interactive testing.
13356
13357 2011-01-25  Bruno Haible  <bruno@clisp.org>
13358
13359         vma-iter: Treat Haiku like BeOS.
13360         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
13361         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
13362
13363 2011-01-25  Eric Blake  <eblake@redhat.com>
13364
13365         c-stack: fix regression on cygwin when libsigsegv is present
13366         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
13367
13368 2011-01-24  Bruno Haible  <bruno@clisp.org>
13369
13370         vma-iter: Avoid empty intervals.
13371         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
13372         on an empty interval.
13373
13374 2011-01-24  Jim Meyering  <meyering@redhat.com>
13375
13376         u64: remove unnecessary #include
13377         * lib/u64.h: Don't include <stddef.h>.  It was not used.
13378
13379 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
13380
13381         Allow the user to avoid the HAVE_RAW_DECL_* macros.
13382         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
13383
13384 2011-01-23  Bruno Haible  <bruno@clisp.org>
13385
13386         New module 'vma-iter'.
13387         * lib/vma-iter.h: New file.
13388         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
13389         * modules/vma-iter: New file.
13390         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
13391         for get_rusage_as_via_iterator.
13392         (vma_iterate_callback): New function.
13393         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
13394         * modules/get-rusage-as (Depends-on): Add vma-iter.
13395
13396 2011-01-23  Bruno Haible  <bruno@clisp.org>
13397
13398         uninorm: Tweak includes.
13399         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
13400         Reported by Jim Meyering.
13401
13402 2011-01-23  Bruno Haible  <bruno@clisp.org>
13403
13404         get-rusage-as: Improve on NetBSD.
13405         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
13406         /proc, like on FreeBSD.
13407
13408 2011-01-23  Jim Meyering  <meyering@redhat.com>
13409
13410         xreadlink.h: remove unnecessary #include
13411         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
13412
13413         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
13414         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
13415
13416 2011-01-23  Bruno Haible  <bruno@clisp.org>
13417
13418         get-rusage-as: Fix bug.
13419         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
13420         original limit when aborting the first loop.
13421
13422 2011-01-23  Bruno Haible  <bruno@clisp.org>
13423
13424         wctype: Ensure valid C syntax.
13425         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
13426         unconditionally, instead of gl_NEXT_HEADERS conditionally.
13427
13428 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
13429
13430         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
13431         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
13432         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
13433         as they are needed only for configure's test case.
13434         This removes two unnecessary symbols from config.h.
13435
13436         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
13437         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
13438         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
13439         AC_CHECK_HEADERS_ONCE on a header that we also invoke
13440         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
13441         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
13442         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
13443         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
13444         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
13445         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13446         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
13447         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13448         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13449         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13450         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
13451         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13452         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
13453         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
13454
13455 2011-01-21  Eric Blake  <eblake@redhat.com>
13456
13457         maintainer-makefile: work with older git for submodule check
13458         * top/maint.mk (public-submodule-commit): Rewrite to avoid
13459         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
13460         Reported by Matthias Bolte.
13461
13462         bootstrap: minor portability fixes
13463         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
13464         (usage): Omit leading capital and trailing . on help phrases, per
13465         GNU Coding Standards.
13466         (check_versions, top level): Prefix messages with script name.
13467
13468 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
13469
13470         bootstrap: support --no-git option
13471         * build-aux/bootstrap: Add --no-git option, to be used when
13472         --gnulib-srcdir points to the exact desired checkout.
13473
13474 2011-01-21  Eric Blake  <eblake@redhat.com>
13475
13476         strerror_r-posix: work with glibc 2.13
13477         * lib/strerror_r.c (strerror_r): Fix return type.
13478
13479 2011-01-21  Pádraig Brady  <P@draigBrady.com>
13480             Bruno Haible  <bruno@clisp.org>
13481
13482         uN_strstr: New unit tests.
13483         * modules/unistr/u8-strstr-tests: New file.
13484         * modules/unistr/u16-strstr-tests: New file.
13485         * modules/unistr/u32-strstr-tests: New file.
13486         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
13487         * tests/unistr/test-u8-strstr.c: New file.
13488         * tests/unistr/test-u16-strstr.c: New file.
13489         * tests/unistr/test-u32-strstr.c: New file.
13490
13491 2011-01-21  Pádraig Brady  <P@draigBrady.com>
13492             Bruno Haible  <bruno@clisp.org>
13493
13494         Make uN_strstr functions O(n) worst-case.
13495         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
13496         16-bit and 32-bit unit cases, use the unibyte algorithm from
13497         lib/mbsstr.c.
13498         * lib/unistr/u8-strstr.c: Include <string.h>.
13499         (UNIT_IS_UINT8_T): New macro.
13500         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
13501         (U_STRLEN, U_STRNLEN): New macros.
13502         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
13503         (U_STRLEN, U_STRNLEN): New macros.
13504         * modules/unistr/u8-strstr (Depends-on): Add strstr.
13505         (configure.ac): Update required libunistring version.
13506         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
13507         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
13508         malloca.
13509         (configure.ac): Update required libunistring version.
13510         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
13511         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
13512         malloca.
13513         (configure.ac): Update required libunistring version.
13514
13515 2011-01-21  Pádraig Brady  <P@draigBrady.com>
13516             Bruno Haible  <bruno@clisp.org>
13517
13518         Prepare for faster uN_strstr functions.
13519         * lib/str-kmp.h: Support definable UNITs.
13520         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
13521         needle_len argument.
13522         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
13523         * lib/mbscasestr.c (mbscasestr): Likewise.
13524
13525 2011-01-21  Pádraig Brady <P@draigBrady.com>
13526
13527         malloca-tests: make faster by unsetting MALLOC_PERTURB_
13528         * tests/test-malloca.c (main): Unset the environment variable
13529         to greatly speed up the test.
13530         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
13531         * modules/malloca-tests: Depend on unsetenv.
13532
13533 2011-01-21  Pádraig Brady <P@draigBrady.com>
13534
13535         ignore-value: remove stdint dependency
13536         * lib/ignore-value.h: Remove <stdint.h>
13537         * modules/ignore-value: Remove stdint dependency.
13538
13539 2011-01-21  Jim Meyering  <meyering@redhat.com>
13540
13541         maint.mk: adjust variable name to be consistent with other gl_ vars
13542         * top/maint.mk (gl_public_submodule_commit): Rename the variable
13543         to be lower case.
13544
13545 2011-01-20  Jim Meyering  <meyering@redhat.com>
13546
13547         maint.mk: make "check" depend on public-submodule-commit by default
13548         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
13549
13550 2011-01-20  Bruno Haible  <bruno@clisp.org>
13551
13552         mbfile, mbiter: Complete change from 2008-12-21.
13553         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
13554         * m4/mbiter.m4 (gl_MBITER): Likewise.
13555
13556 2011-01-20  Jim Meyering  <meyering@redhat.com>
13557
13558         init.sh: insert space between each function name and "()"
13559         * tests/init.sh: Make it a little easier to see that a function's
13560         name is "warn_", and not "warn" when looking at the first part of
13561         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
13562
13563 2011-01-20  Jim Meyering  <meyering@redhat.com>
13564
13565         mountlist: clean up code formatting
13566         * lib/mountlist.c (read_file_system_list): Split a long line,
13567         correct bracing style, use NULL in place of "(struct statfs *)0",
13568         don't parenthesize return value, add spaces around "=" and after
13569         ";-in-for-stmt".
13570
13571 2011-01-14  Markus Duft <mduft@gentoo.org>
13572
13573         mountlist: add support for Interix
13574         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
13575         Apply statvfs to all entries of /dev/fs.
13576         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
13577         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
13578
13579 2011-01-20  Jim Meyering  <meyering@redhat.com>
13580
13581         maint.mk: improve the public-submodule-commit rule
13582         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
13583         to suppress printing of its commands... unless V=1.
13584         Add git submodule's --quiet option to suppress printing of e.g.,
13585         "Entering gnulib" output.
13586         "cd" into $(srcdir) before running git submodule.
13587
13588 2011-01-20  Bruno Haible  <bruno@clisp.org>
13589
13590         include_next: Fix bug introduced on 2011-01-18.
13591         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
13592         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
13593         ac_cv_header_... variable if the second argument is not 'check'.
13594         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
13595         gl_NEXT_HEADERS_INTERNAL.
13596
13597 2011-01-20  Bruno Haible  <bruno@clisp.org>
13598
13599         Allow the user to avoid the GNULIB_TEST_* macros.
13600         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
13601         Suggested by Paul Eggert.
13602
13603 2011-01-14  Jim Meyering  <meyering@redhat.com>
13604
13605         bootstrap: avoid failure when there is no .gitmodules file
13606         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
13607         has been assigned to, even when its value is the empty string.
13608         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
13609         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
13610         Reported by John W. Eaton <jwe@gnu.org>.
13611
13612 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
13613
13614         assume <ctype.h>, ..., <time.h> exist
13615         For years gnulib has been assuming the existence of the headers
13616         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
13617         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
13618         them, since they don't appear to be needed.
13619         * README (Portability guidelines): Document this.
13620         * lib/flock.c: Assume <fcntl.h> exists.
13621         * lib/regex_internal.h: Assume <locale.h> exists.
13622         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
13623         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
13624         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
13625         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
13626         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
13627         * m4/regex.m4 (gl_REGEX): Likewise.
13628         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
13629         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
13630         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
13631         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
13632         * tests/test-argp.c: Likewise.
13633         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
13634
13635         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
13636         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
13637         AA_APPLE_UNIVERSAL_BUILD.  See
13638         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
13639         * NEWS: Document this.
13640
13641 2011-01-19  Eric Blake  <eblake@redhat.com>
13642
13643         c-stack: assume stack overflow if SA_SIGINFO unsupported
13644         * lib/c-stack.c (SIGACTION_WORKS): Rename...
13645         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
13646         sigaction will work.
13647         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
13648         behavior match Linux.
13649         * tests/test-c-stack.c (main): Prefer NULL for pointers.
13650
13651         stdbool-tests: accomodate Haiku
13652         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
13653
13654         binary-io: fix O_TEXT on Haiku
13655         * modules/binary-io (Depends-on): Add fcntl-h.
13656         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
13657         than blindly undefining O_TEXT.
13658         Reported by Scott McCreary.
13659
13660 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
13661
13662         include_next: do not check for standard headers like stddef.h
13663
13664         I found this problem when modifying Emacs to use gnulib.
13665         I noticed that it added HAVE_STDDEF_H to config.h, even though
13666         gnulib always assumes <stddef.h> exists as per README and this
13667         symbol is unnecessary.
13668         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
13669         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
13670         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
13671         faster for headers like stddef.h that are known to exist.
13672         (gl_CHECK_NEXT_HEADERS): Use it.
13673         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
13674         rather than gl_CHECK_NEXT_HEADERS.
13675         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
13676         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
13677
13678 2011-01-18  Eric Blake  <eblake@redhat.com>
13679
13680         ansi-c++-opt: skip C++ dependency style if C++ is unused
13681         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
13682         tests when we know C++ compilation is not desired.
13683         Reported by Scott McCreary.
13684
13685 2011-01-18  Bruno Haible  <bruno@clisp.org>
13686
13687         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
13688         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
13689         (main): Perform test also when getrlimit and setrlimit don't exist or
13690         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
13691         limiting the address space size using setrlimit, compare the address
13692         space size before and after the the test.
13693         * tests/test-dprintf-posix2.c: Likewise.
13694         * tests/test-fprintf-posix3.sh: Update skip messages.
13695         * tests/test-dprintf-posix2.sh: Likewise.
13696         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
13697         * modules/dprintf-posix-tests (Depends-on): Likewise.
13698         Reported by Bruce Korb <bkorb@gnu.org> and
13699         Gary V. Vaughan <gary@gnu.org>.
13700
13701 2011-01-18  Bruno Haible  <bruno@clisp.org>
13702
13703         get-rusage-as: Improvement for Cygwin.
13704         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
13705         areas that are merely reserved.
13706
13707 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
13708
13709         strftime: remove dependencies on multibyte modules
13710
13711         strftime depended on mbrlen, mbsinit, and wchar, but these modules
13712         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
13713         only if __osf__ is defined, and I suspect OSF doesn't need these
13714         other modules.  If my guess is wrong, we'll need to come up with a
13715         variant of strftime that doesn't need the multibyte modules.
13716
13717         I discovered this problem when attempting modify Emacs to use the
13718         strftime module.  With the previous gnulib, this caused Emacs to
13719         need 31 new files, ranging from lib/config.charset to
13720         m4/wint_t.m4.  This was overkill and I expect would be offputting
13721         to the Emacs maintainers.  After this change, only 6 new files are
13722         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
13723         stdbool.m4, and tm_gmtoff.m4.
13724
13725         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
13726         Suggested by Bruno Haible in
13727         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
13728         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
13729         and do not check for wchar.h.
13730         * modules/strftime (Files): Remove m4/mbstate_t.m4.
13731         (Depends-on): Remove mbrlen, mbsinit, wchar.
13732
13733 2011-01-18  Bruno Haible  <bruno@clisp.org>
13734
13735         Tests for module 'get-rusage-as'.
13736         * modules/get-rusage-as-tests: New file.
13737         * tests/test-get-rusage-as.c: New file.
13738
13739         New module 'get-rusage-as'.
13740         * modules/get-rusage-as: New file.
13741         * lib/resource-ext.h: New file.
13742         * lib/get-rusage-as.c: New file.
13743
13744 2011-01-17  Eric Blake  <eblake@redhat.com>
13745
13746         sigaction: relax license from LGPLv3+ to LGPLv2+
13747         * modules/sigaction (License): Relax to LGPLv2+.
13748
13749 2011-01-14  Bruno Haible  <bruno@clisp.org>
13750
13751         filemode: Make function declarations usable in C++ mode.
13752         * lib/filemode.h: Enclose function declarations in extern "C" block.
13753         Reported by John W. Eaton <jwe@gnu.org>.
13754
13755 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
13756
13757         save-cwd: no longer include "xgetcwd.h"
13758         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
13759         This avoids a compilation failure in projects that use save-cwd
13760         without also using the xgetcwd module.
13761
13762 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
13763
13764         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
13765         This is so that a program like Emacs, which needs only dtoastr,
13766         does not have to bother with distributing and compiling ftoastr
13767         and ldtoastr.
13768         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
13769         * modules/dtoastr, modules/ldtoastr: New files.
13770         * modules/ftoastr: Now works just for 'float'.
13771         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
13772         (Makefile.am): Remove ftoastr.h (not needed and no effect),
13773         dtoastr.c, ldtoastr.c.
13774
13775 2011-01-11  Jim Meyering  <meyering@redhat.com>
13776
13777         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
13778         There is no need to work around the lack of the fchdir function,
13779         since gnulib can now provide a replacement when required.
13780         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
13781         * modules/save-cwd (Depends-on): Add fchdir.
13782
13783 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
13784
13785         openat, save-cwd: avoid xmalloc
13786
13787         This removes a direct (but undocumented) dependency of openat on
13788         xalloc, along with an indirect dependency via save-cwd.  It also
13789         removes a dependency of save-cwd on xgetcwd, and thereby
13790         indirectly on xalloc.  This change causes the openat substitute
13791         to fall back on save_cwd when memory is tight, and for save_cwd to
13792         fail instead of dying when memory is tight, but that's good enough.
13793         Problem and initial idea for fix reported by Bastien Roucaries in
13794         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
13795
13796         * lib/openat-proc.c: Include stdlib.h (for malloc), not
13797         xalloc.h (for xmalloc).
13798         (openat_proc_name): Use malloc, not xmalloc.
13799         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
13800         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
13801
13802         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
13803         This avoids heap allocation for file names whose lengths are in
13804         the range 512..1023, with the upper bound increasing to at most
13805         4031 depending on the platform's PATH_MAX.  (We do not want
13806         pathmax.h here as it might supply a non-constant PATH_MAX.)
13807         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
13808         Perhaps they should be moved to malloca.h?
13809         (OPENAT_BUFFER_SIZE): Use them.
13810
13811 2011-01-10  Bruno Haible  <bruno@clisp.org>
13812
13813         doc: Update users.txt.
13814         * users.txt: Add recutils.
13815
13816 2011-01-09  Karl Berry  <karl@gnu.org>
13817
13818         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
13819
13820         * doc/configmake.texi: New file.
13821         * doc/gnulib.texi: Include it.
13822         * modules/configmake: Move documentation from here.
13823
13824 2011-01-09  Bruno Haible  <bruno@clisp.org>
13825
13826         Update to Unicode 6.0.0.
13827         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
13828         (get_lbp): Update for Unicode 6.0.0.
13829         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
13830         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
13831         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
13832         U+11001, U+11038..U+11046. Remove U+06DE.
13833         (uc_width): Fix bounds of planes.
13834         * tests/uniwidth/test-uc_width2.sh: Same updates as in
13835         lib/uniwidth/width.c.
13836         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
13837         trailing whitespace removed.
13838         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
13839         without comments, but with the original copyright notice.
13840         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
13841         * lib/unicase/ignorable.h: Likewise.
13842         * lib/unicase/tocasefold.h: Likewise.
13843         * lib/unicase/tolower.h: Likewise.
13844         * lib/unicase/totitle.h: Likewise.
13845         * lib/unicase/toupper.h: Likewise.
13846         * lib/unictype/bidi_of.h: Likewise.
13847         * lib/unictype/blocks.h: Likewise.
13848         * lib/unictype/categ_C.h: Likewise.
13849         * lib/unictype/categ_Cn.h: Likewise.
13850         * lib/unictype/categ_L.h: Likewise.
13851         * lib/unictype/categ_Ll.h: Likewise.
13852         * lib/unictype/categ_Lm.h: Likewise.
13853         * lib/unictype/categ_Lo.h: Likewise.
13854         * lib/unictype/categ_Lu.h: Likewise.
13855         * lib/unictype/categ_M.h: Likewise.
13856         * lib/unictype/categ_Mc.h: Likewise.
13857         * lib/unictype/categ_Me.h: Likewise.
13858         * lib/unictype/categ_Mn.h: Likewise.
13859         * lib/unictype/categ_N.h: Likewise.
13860         * lib/unictype/categ_Nd.h: Likewise.
13861         * lib/unictype/categ_No.h: Likewise.
13862         * lib/unictype/categ_P.h: Likewise.
13863         * lib/unictype/categ_Po.h: Likewise.
13864         * lib/unictype/categ_S.h: Likewise.
13865         * lib/unictype/categ_Sc.h: Likewise.
13866         * lib/unictype/categ_Sk.h: Likewise.
13867         * lib/unictype/categ_Sm.h: Likewise.
13868         * lib/unictype/categ_So.h: Likewise.
13869         * lib/unictype/categ_of.h: Likewise.
13870         * lib/unictype/combining.h: Likewise.
13871         * lib/unictype/ctype_alnum.h: Likewise.
13872         * lib/unictype/ctype_alpha.h: Likewise.
13873         * lib/unictype/ctype_graph.h: Likewise.
13874         * lib/unictype/ctype_lower.h: Likewise.
13875         * lib/unictype/ctype_print.h: Likewise.
13876         * lib/unictype/ctype_punct.h: Likewise.
13877         * lib/unictype/ctype_upper.h: Likewise.
13878         * lib/unictype/decdigit.h: Likewise.
13879         * lib/unictype/digit.h: Likewise.
13880         * lib/unictype/numeric.h: Likewise.
13881         * lib/unictype/pr_alphabetic.h: Likewise.
13882         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
13883         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
13884         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
13885         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
13886         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
13887         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
13888         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
13889         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
13890         * lib/unictype/pr_case_ignorable.h: Likewise.
13891         * lib/unictype/pr_cased.h: Likewise.
13892         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
13893         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
13894         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
13895         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
13896         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
13897         * lib/unictype/pr_combining.h: Likewise.
13898         * lib/unictype/pr_composite.h: Likewise.
13899         * lib/unictype/pr_currency_symbol.h: Likewise.
13900         * lib/unictype/pr_decimal_digit.h: Likewise.
13901         * lib/unictype/pr_deprecated.h: Likewise.
13902         * lib/unictype/pr_format_control.h: Likewise.
13903         * lib/unictype/pr_grapheme_base.h: Likewise.
13904         * lib/unictype/pr_grapheme_extend.h: Likewise.
13905         * lib/unictype/pr_grapheme_link.h: Likewise.
13906         * lib/unictype/pr_id_continue.h: Likewise.
13907         * lib/unictype/pr_id_start.h: Likewise.
13908         * lib/unictype/pr_ideographic.h: Likewise.
13909         * lib/unictype/pr_lowercase.h: Likewise.
13910         * lib/unictype/pr_math.h: Likewise.
13911         * lib/unictype/pr_numeric.h: Likewise.
13912         * lib/unictype/pr_other_alphabetic.h: Likewise.
13913         * lib/unictype/pr_other_id_continue.h: Likewise.
13914         * lib/unictype/pr_other_math.h: Likewise.
13915         * lib/unictype/pr_punctuation.h: Likewise.
13916         * lib/unictype/pr_sentence_terminal.h: Likewise.
13917         * lib/unictype/pr_terminal_punctuation.h: Likewise.
13918         * lib/unictype/pr_unassigned_code_value.h: Likewise.
13919         * lib/unictype/pr_unified_ideograph.h: Likewise.
13920         * lib/unictype/pr_uppercase.h: Likewise.
13921         * lib/unictype/pr_xid_continue.h: Likewise.
13922         * lib/unictype/pr_xid_start.h: Likewise.
13923         * lib/unictype/scripts.h: Likewise.
13924         * lib/unictype/scripts_byname.gperf: Likewise.
13925         * lib/unictype/sy_java_ident.h: Likewise.
13926         * lib/unigbrk/gbrkprop.h: Likewise.
13927         * lib/unilbrk/lbrkprop1.h: Likewise.
13928         * lib/unilbrk/lbrkprop2.h: Likewise.
13929         * lib/uninorm/decomposition-table2.h: Likewise.
13930         * lib/uniwbrk/wbrkprop.h: Likewise.
13931         * tests/unicase/test-cased.c: Likewise.
13932         * tests/unicase/test-ignorable.c: Likewise.
13933         * tests/unicase/test-uc_tolower.c: Likewise.
13934         * tests/unicase/test-uc_totitle.c: Likewise.
13935         * tests/unicase/test-uc_toupper.c: Likewise.
13936         * tests/unictype/test-categ_C.c: Likewise.
13937         * tests/unictype/test-categ_Cn.c: Likewise.
13938         * tests/unictype/test-categ_L.c: Likewise.
13939         * tests/unictype/test-categ_Ll.c: Likewise.
13940         * tests/unictype/test-categ_Lm.c: Likewise.
13941         * tests/unictype/test-categ_Lo.c: Likewise.
13942         * tests/unictype/test-categ_Lu.c: Likewise.
13943         * tests/unictype/test-categ_M.c: Likewise.
13944         * tests/unictype/test-categ_Mc.c: Likewise.
13945         * tests/unictype/test-categ_Me.c: Likewise.
13946         * tests/unictype/test-categ_Mn.c: Likewise.
13947         * tests/unictype/test-categ_N.c: Likewise.
13948         * tests/unictype/test-categ_Nd.c: Likewise.
13949         * tests/unictype/test-categ_No.c: Likewise.
13950         * tests/unictype/test-categ_P.c: Likewise.
13951         * tests/unictype/test-categ_Po.c: Likewise.
13952         * tests/unictype/test-categ_S.c: Likewise.
13953         * tests/unictype/test-categ_Sc.c: Likewise.
13954         * tests/unictype/test-categ_Sk.c: Likewise.
13955         * tests/unictype/test-categ_Sm.c: Likewise.
13956         * tests/unictype/test-categ_So.c: Likewise.
13957         * tests/unictype/test-ctype_alnum.c: Likewise.
13958         * tests/unictype/test-ctype_alpha.c: Likewise.
13959         * tests/unictype/test-ctype_graph.c: Likewise.
13960         * tests/unictype/test-ctype_lower.c: Likewise.
13961         * tests/unictype/test-ctype_print.c: Likewise.
13962         * tests/unictype/test-ctype_punct.c: Likewise.
13963         * tests/unictype/test-ctype_upper.c: Likewise.
13964         * tests/unictype/test-decdigit.h: Likewise.
13965         * tests/unictype/test-digit.h: Likewise.
13966         * tests/unictype/test-numeric.h: Likewise.
13967         * tests/unictype/test-pr_alphabetic.c: Likewise.
13968         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
13969         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
13970         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
13971         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
13972         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
13973         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
13974         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
13975         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
13976         * tests/unictype/test-pr_case_ignorable.c: Likewise.
13977         * tests/unictype/test-pr_cased.c: Likewise.
13978         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
13979         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
13980         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
13981         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
13982         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
13983         * tests/unictype/test-pr_combining.c: Likewise.
13984         * tests/unictype/test-pr_composite.c: Likewise.
13985         * tests/unictype/test-pr_currency_symbol.c: Likewise.
13986         * tests/unictype/test-pr_decimal_digit.c: Likewise.
13987         * tests/unictype/test-pr_deprecated.c: Likewise.
13988         * tests/unictype/test-pr_format_control.c: Likewise.
13989         * tests/unictype/test-pr_grapheme_base.c: Likewise.
13990         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
13991         * tests/unictype/test-pr_grapheme_link.c: Likewise.
13992         * tests/unictype/test-pr_id_continue.c: Likewise.
13993         * tests/unictype/test-pr_id_start.c: Likewise.
13994         * tests/unictype/test-pr_ideographic.c: Likewise.
13995         * tests/unictype/test-pr_lowercase.c: Likewise.
13996         * tests/unictype/test-pr_math.c: Likewise.
13997         * tests/unictype/test-pr_numeric.c: Likewise.
13998         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
13999         * tests/unictype/test-pr_other_id_continue.c: Likewise.
14000         * tests/unictype/test-pr_other_math.c: Likewise.
14001         * tests/unictype/test-pr_punctuation.c: Likewise.
14002         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
14003         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
14004         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
14005         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
14006         * tests/unictype/test-pr_uppercase.c: Likewise.
14007         * tests/unictype/test-pr_xid_continue.c: Likewise.
14008         * tests/unictype/test-pr_xid_start.c: Likewise.
14009         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
14010         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
14011         changes.
14012         * lib/unictype/categ_Cc.h: Likewise.
14013         * lib/unictype/categ_Cf.h: Likewise.
14014         * lib/unictype/categ_Co.h: Likewise.
14015         * lib/unictype/categ_Cs.h: Likewise.
14016         * lib/unictype/categ_Lt.h: Likewise.
14017         * lib/unictype/categ_Nl.h: Likewise.
14018         * lib/unictype/categ_Pc.h: Likewise.
14019         * lib/unictype/categ_Pd.h: Likewise.
14020         * lib/unictype/categ_Pe.h: Likewise.
14021         * lib/unictype/categ_Pf.h: Likewise.
14022         * lib/unictype/categ_Pi.h: Likewise.
14023         * lib/unictype/categ_Ps.h: Likewise.
14024         * lib/unictype/categ_Z.h: Likewise.
14025         * lib/unictype/categ_Zl.h: Likewise.
14026         * lib/unictype/categ_Zp.h: Likewise.
14027         * lib/unictype/categ_Zs.h: Likewise.
14028         * lib/unictype/ctype_blank.h: Likewise.
14029         * lib/unictype/ctype_cntrl.h: Likewise.
14030         * lib/unictype/ctype_digit.h: Likewise.
14031         * lib/unictype/ctype_space.h: Likewise.
14032         * lib/unictype/ctype_xdigit.h: Likewise.
14033         * lib/unictype/mirror.h: Likewise.
14034         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
14035         * lib/unictype/pr_bidi_block_separator.h: Likewise.
14036         * lib/unictype/pr_bidi_common_separator.h: Likewise.
14037         * lib/unictype/pr_bidi_control.h: Likewise.
14038         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
14039         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
14040         * lib/unictype/pr_bidi_european_digit.h: Likewise.
14041         * lib/unictype/pr_bidi_pdf.h: Likewise.
14042         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
14043         * lib/unictype/pr_bidi_whitespace.h: Likewise.
14044         * lib/unictype/pr_dash.h: Likewise.
14045         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
14046         * lib/unictype/pr_diacritic.h: Likewise.
14047         * lib/unictype/pr_extender.h: Likewise.
14048         * lib/unictype/pr_hex_digit.h: Likewise.
14049         * lib/unictype/pr_hyphen.h: Likewise.
14050         * lib/unictype/pr_ids_binary_operator.h: Likewise.
14051         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
14052         * lib/unictype/pr_ignorable_control.h: Likewise.
14053         * lib/unictype/pr_iso_control.h: Likewise.
14054         * lib/unictype/pr_join_control.h: Likewise.
14055         * lib/unictype/pr_left_of_pair.h: Likewise.
14056         * lib/unictype/pr_line_separator.h: Likewise.
14057         * lib/unictype/pr_logical_order_exception.h: Likewise.
14058         * lib/unictype/pr_non_break.h: Likewise.
14059         * lib/unictype/pr_not_a_character.h: Likewise.
14060         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
14061         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
14062         * lib/unictype/pr_other_id_start.h: Likewise.
14063         * lib/unictype/pr_other_lowercase.h: Likewise.
14064         * lib/unictype/pr_other_uppercase.h: Likewise.
14065         * lib/unictype/pr_paired_punctuation.h: Likewise.
14066         * lib/unictype/pr_paragraph_separator.h: Likewise.
14067         * lib/unictype/pr_pattern_syntax.h: Likewise.
14068         * lib/unictype/pr_pattern_white_space.h: Likewise.
14069         * lib/unictype/pr_private_use.h: Likewise.
14070         * lib/unictype/pr_quotation_mark.h: Likewise.
14071         * lib/unictype/pr_radical.h: Likewise.
14072         * lib/unictype/pr_soft_dotted.h: Likewise.
14073         * lib/unictype/pr_space.h: Likewise.
14074         * lib/unictype/pr_titlecase.h: Likewise.
14075         * lib/unictype/pr_variation_selector.h: Likewise.
14076         * lib/unictype/pr_white_space.h: Likewise.
14077         * lib/unictype/pr_zero_width.h: Likewise.
14078         * lib/unictype/sy_c_ident.h: Likewise.
14079         * lib/unictype/sy_c_whitespace.h: Likewise.
14080         * lib/unictype/sy_java_whitespace.h: Likewise.
14081         * lib/uninorm/composition-table.gperf: Likewise.
14082         * lib/uninorm/decomposition-table1.h: Likewise.
14083         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
14084         LB8.
14085         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
14086         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
14087         * modules/unictype/*: Bump version number of expected libunistring
14088         version.
14089
14090 2011-01-09  Bruno Haible  <bruno@clisp.org>
14091
14092         Update to Unicode 5.2.0.
14093         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
14094         trailing whitespace removed.
14095
14096 2011-01-09  Bruno Haible  <bruno@clisp.org>
14097
14098         New Unicode character properties, from Unicode 5.2.0.
14099         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
14100         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
14101         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
14102         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
14103         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
14104         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
14105         uc_is_property_cased, uc_is_property_case_ignorable,
14106         uc_is_property_changes_when_lowercased,
14107         uc_is_property_changes_when_uppercased,
14108         uc_is_property_changes_when_titlecased,
14109         uc_is_property_changes_when_casefolded,
14110         uc_is_property_changes_when_casemapped): New declarations.
14111         * lib/unictype/pr_byname.gperf: Add the new properties.
14112         * modules/unictype/property-byname (Depends-on): Depend on the new
14113         properties modules.
14114         * modules/unictype/property-all (Depends-on): Likewise.
14115         * MODULES.html.sh (Unicode string functions): Add
14116         unictype/property-case-ignorable, unictype/property-cased,
14117         unictype/property-changes-when-casefolded,
14118         unictype/property-changes-when-casemapped,
14119         unictype/property-changes-when-lowercased,
14120         unictype/property-changes-when-titlecased,
14121         unictype/property-changes-when-uppercased.
14122
14123         New module 'unictype/property-changes-when-casemapped'.
14124         * modules/unictype/property-changes-when-casemapped: New file.
14125         * lib/unictype/pr_changes_when_casemapped.c: New file.
14126         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
14127         generated by gen-uni-tables.
14128         * modules/unictype/property-changes-when-casemapped-tests: New file.
14129         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
14130         automatically generated by gen-uni-tables.
14131
14132         New module 'unictype/property-changes-when-casefolded'.
14133         * modules/unictype/property-changes-when-casefolded: New file.
14134         * lib/unictype/pr_changes_when_casefolded.c: New file.
14135         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
14136         generated by gen-uni-tables.
14137         * modules/unictype/property-changes-when-casefolded-tests: New file.
14138         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
14139         automatically generated by gen-uni-tables.
14140
14141         New module 'unictype/property-changes-when-titlecased'.
14142         * modules/unictype/property-changes-when-titlecased: New file.
14143         * lib/unictype/pr_changes_when_titlecased.c: New file.
14144         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
14145         generated by gen-uni-tables.
14146         * modules/unictype/property-changes-when-titlecased-tests: New file.
14147         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
14148         automatically generated by gen-uni-tables.
14149
14150         New module 'unictype/property-changes-when-uppercased'.
14151         * modules/unictype/property-changes-when-uppercased: New file.
14152         * lib/unictype/pr_changes_when_uppercased.c: New file.
14153         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
14154         generated by gen-uni-tables.
14155         * modules/unictype/property-changes-when-uppercased-tests: New file.
14156         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
14157         automatically generated by gen-uni-tables.
14158
14159         New module 'unictype/property-changes-when-lowercased'.
14160         * modules/unictype/property-changes-when-lowercased: New file.
14161         * lib/unictype/pr_changes_when_lowercased.c: New file.
14162         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
14163         generated by gen-uni-tables.
14164         * modules/unictype/property-changes-when-lowercased-tests: New file.
14165         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
14166         automatically generated by gen-uni-tables.
14167
14168         New module 'unictype/property-case-ignorable'.
14169         * modules/unictype/property-case-ignorable: New file.
14170         * lib/unictype/pr_case_ignorable.c: New file.
14171         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
14172         by gen-uni-tables.
14173         * modules/unictype/property-case-ignorable-tests: New file.
14174         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
14175         generated by gen-uni-tables.
14176
14177         New module 'unictype/property-cased'.
14178         * modules/unictype/property-cased: New file.
14179         * lib/unictype/pr_cased.c: New file.
14180         * lib/unictype/pr_cased.h: New file, automatically generated by
14181         gen-uni-tables.
14182         * modules/unictype/property-cased-tests: New file.
14183         * tests/unictype/test-pr_cased.c: New file, automatically generated by
14184         gen-uni-tables.
14185
14186 2011-01-09  Bruno Haible  <bruno@clisp.org>
14187
14188         Update to Unicode 5.2.0.
14189         * lib/gen-uni-tables.c (output_predicate, output_category,
14190         output_combclass, output_bidi_category, output_decimal_digit_test,
14191         output_decimal_digit, output_digit_test, output_digit,
14192         output_numeric_test, output_numeric, output_mirror, output_scripts,
14193         output_scripts_byname, output_blocks, output_ident_category): Fix
14194         comment header.
14195         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
14196         get_wbp.
14197         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
14198         items.
14199         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
14200         Changes_When_Lowercased, Changes_When_Uppercased,
14201         Changes_When_Titlecased, Changes_When_Casefolded,
14202         Changes_When_Casemapped.
14203         (is_property_alphabetic, is_property_default_ignorable_code_point):
14204         Update for Unicode 5.2.0.
14205         (is_property_cased, is_property_case_ignorable,
14206         is_property_changes_when_lowercased,
14207         is_property_changes_when_uppercased,
14208         is_property_changes_when_titlecased,
14209         is_property_changes_when_casefolded,
14210         is_property_changes_when_casemapped): New functions.
14211         (output_properties): Output also the properties cased, case_ignorable,
14212         changes_when_lowercased, changes_when_uppercased,
14213         changes_when_titlecased, changes_when_casefolded,
14214         changes_when_casemapped.
14215         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
14216         Unicode TR#11 revision 17 -> 19.
14217         (LBP_CP): New enumeration value.
14218         (LBP_*): Adjust values accordingly.
14219         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
14220         TR#14 revision 22 -> 24.
14221         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
14222         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
14223         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
14224         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
14225         is_WBP_MIDLETTER.
14226         (output_composition_tables): Allow for 24 bits instead of 16 bits in
14227         the code1 and code2 of each composition rule.
14228         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
14229         * lib/unicase/ignorable.h: Likewise.
14230         * lib/unicase/tocasefold.h: Likewise.
14231         * lib/unicase/tolower.h: Likewise.
14232         * lib/unicase/totitle.h: Likewise.
14233         * lib/unicase/toupper.h: Likewise.
14234         * lib/unictype/bidi_of.h: Likewise.
14235         * lib/unictype/blocks.h: Likewise.
14236         * lib/unictype/categ_C.h: Likewise.
14237         * lib/unictype/categ_Cf.h: Likewise.
14238         * lib/unictype/categ_Cn.h: Likewise.
14239         * lib/unictype/categ_L.h: Likewise.
14240         * lib/unictype/categ_Ll.h: Likewise.
14241         * lib/unictype/categ_Lm.h: Likewise.
14242         * lib/unictype/categ_Lo.h: Likewise.
14243         * lib/unictype/categ_Lu.h: Likewise.
14244         * lib/unictype/categ_M.h: Likewise.
14245         * lib/unictype/categ_Mc.h: Likewise.
14246         * lib/unictype/categ_Mn.h: Likewise.
14247         * lib/unictype/categ_N.h: Likewise.
14248         * lib/unictype/categ_Nd.h: Likewise.
14249         * lib/unictype/categ_Nl.h: Likewise.
14250         * lib/unictype/categ_No.h: Likewise.
14251         * lib/unictype/categ_P.h: Likewise.
14252         * lib/unictype/categ_Pd.h: Likewise.
14253         * lib/unictype/categ_Po.h: Likewise.
14254         * lib/unictype/categ_S.h: Likewise.
14255         * lib/unictype/categ_Sc.h: Likewise.
14256         * lib/unictype/categ_So.h: Likewise.
14257         * lib/unictype/categ_of.h: Likewise.
14258         * lib/unictype/combining.h: Likewise.
14259         * lib/unictype/ctype_alnum.h: Likewise.
14260         * lib/unictype/ctype_alpha.h: Likewise.
14261         * lib/unictype/ctype_graph.h: Likewise.
14262         * lib/unictype/ctype_lower.h: Likewise.
14263         * lib/unictype/ctype_print.h: Likewise.
14264         * lib/unictype/ctype_punct.h: Likewise.
14265         * lib/unictype/ctype_upper.h: Likewise.
14266         * lib/unictype/decdigit.h: Likewise.
14267         * lib/unictype/digit.h: Likewise.
14268         * lib/unictype/numeric.h: Likewise.
14269         * lib/unictype/pr_alphabetic.h: Likewise.
14270         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
14271         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
14272         * lib/unictype/pr_bidi_european_digit.h: Likewise.
14273         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
14274         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
14275         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
14276         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
14277         * lib/unictype/pr_combining.h: Likewise.
14278         * lib/unictype/pr_composite.h: Likewise.
14279         * lib/unictype/pr_currency_symbol.h: Likewise.
14280         * lib/unictype/pr_dash.h: Likewise.
14281         * lib/unictype/pr_decimal_digit.h: Likewise.
14282         * lib/unictype/pr_deprecated.h: Likewise.
14283         * lib/unictype/pr_diacritic.h: Likewise.
14284         * lib/unictype/pr_extender.h: Likewise.
14285         * lib/unictype/pr_grapheme_base.h: Likewise.
14286         * lib/unictype/pr_grapheme_extend.h: Likewise.
14287         * lib/unictype/pr_grapheme_link.h: Likewise.
14288         * lib/unictype/pr_id_continue.h: Likewise.
14289         * lib/unictype/pr_id_start.h: Likewise.
14290         * lib/unictype/pr_ideographic.h: Likewise.
14291         * lib/unictype/pr_ignorable_control.h: Likewise.
14292         * lib/unictype/pr_logical_order_exception.h: Likewise.
14293         * lib/unictype/pr_lowercase.h: Likewise.
14294         * lib/unictype/pr_numeric.h: Likewise.
14295         * lib/unictype/pr_other_alphabetic.h: Likewise.
14296         * lib/unictype/pr_punctuation.h: Likewise.
14297         * lib/unictype/pr_sentence_terminal.h: Likewise.
14298         * lib/unictype/pr_terminal_punctuation.h: Likewise.
14299         * lib/unictype/pr_unassigned_code_value.h: Likewise.
14300         * lib/unictype/pr_unified_ideograph.h: Likewise.
14301         * lib/unictype/pr_uppercase.h: Likewise.
14302         * lib/unictype/pr_xid_continue.h: Likewise.
14303         * lib/unictype/pr_xid_start.h: Likewise.
14304         * lib/unictype/pr_zero_width.h: Likewise.
14305         * lib/unictype/scripts.h: Likewise.
14306         * lib/unictype/scripts_byname.gperf: Likewise.
14307         * lib/unictype/sy_java_ident.h: Likewise.
14308         * lib/unigbrk/gbrkprop.h: Likewise.
14309         * lib/unilbrk/lbrkprop1.h: Likewise.
14310         * lib/unilbrk/lbrkprop2.h: Likewise.
14311         * lib/unilbrk/lbrktables.h: Likewise.
14312         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
14313         LBP_CP. Implement rule LB30.
14314         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
14315         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
14316         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
14317         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
14318         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
14319         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
14320         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
14321         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
14322         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
14323         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
14324         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
14325         bits instead of 16 bits in the code1 and code2 of each composition
14326         rule.
14327         (uc_composition): Update for Unicode 5.2.0.
14328         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
14329         * lib/uninorm/decomposition-table2.h: Likewise.
14330         * lib/uniwbrk/wbrkprop.h: Likewise.
14331         * tests/unicase/test-cased.c: Likewise.
14332         * tests/unicase/test-ignorable.c: Likewise.
14333         * tests/unicase/test-uc_tolower.c: Likewise.
14334         * tests/unicase/test-uc_totitle.c: Likewise.
14335         * tests/unicase/test-uc_toupper.c: Likewise.
14336         * tests/unictype/test-categ_C.c: Likewise.
14337         * tests/unictype/test-categ_Cf.c: Likewise.
14338         * tests/unictype/test-categ_Cn.c: Likewise.
14339         * tests/unictype/test-categ_L.c: Likewise.
14340         * tests/unictype/test-categ_Ll.c: Likewise.
14341         * tests/unictype/test-categ_Lm.c: Likewise.
14342         * tests/unictype/test-categ_Lo.c: Likewise.
14343         * tests/unictype/test-categ_Lu.c: Likewise.
14344         * tests/unictype/test-categ_M.c: Likewise.
14345         * tests/unictype/test-categ_Mc.c: Likewise.
14346         * tests/unictype/test-categ_Mn.c: Likewise.
14347         * tests/unictype/test-categ_N.c: Likewise.
14348         * tests/unictype/test-categ_Nd.c: Likewise.
14349         * tests/unictype/test-categ_Nl.c: Likewise.
14350         * tests/unictype/test-categ_No.c: Likewise.
14351         * tests/unictype/test-categ_P.c: Likewise.
14352         * tests/unictype/test-categ_Pd.c: Likewise.
14353         * tests/unictype/test-categ_Po.c: Likewise.
14354         * tests/unictype/test-categ_S.c: Likewise.
14355         * tests/unictype/test-categ_Sc.c: Likewise.
14356         * tests/unictype/test-categ_So.c: Likewise.
14357         * tests/unictype/test-ctype_alnum.c: Likewise.
14358         * tests/unictype/test-ctype_alpha.c: Likewise.
14359         * tests/unictype/test-ctype_graph.c: Likewise.
14360         * tests/unictype/test-ctype_lower.c: Likewise.
14361         * tests/unictype/test-ctype_print.c: Likewise.
14362         * tests/unictype/test-ctype_punct.c: Likewise.
14363         * tests/unictype/test-ctype_upper.c: Likewise.
14364         * tests/unictype/test-decdigit.h: Likewise.
14365         * tests/unictype/test-digit.h: Likewise.
14366         * tests/unictype/test-numeric.h: Likewise.
14367         * tests/unictype/test-pr_alphabetic.c: Likewise.
14368         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
14369         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
14370         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
14371         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
14372         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
14373         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
14374         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
14375         * tests/unictype/test-pr_combining.c: Likewise.
14376         * tests/unictype/test-pr_composite.c: Likewise.
14377         * tests/unictype/test-pr_currency_symbol.c: Likewise.
14378         * tests/unictype/test-pr_dash.c: Likewise.
14379         * tests/unictype/test-pr_decimal_digit.c: Likewise.
14380         * tests/unictype/test-pr_deprecated.c: Likewise.
14381         * tests/unictype/test-pr_diacritic.c: Likewise.
14382         * tests/unictype/test-pr_extender.c: Likewise.
14383         * tests/unictype/test-pr_grapheme_base.c: Likewise.
14384         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
14385         * tests/unictype/test-pr_grapheme_link.c: Likewise.
14386         * tests/unictype/test-pr_id_continue.c: Likewise.
14387         * tests/unictype/test-pr_id_start.c: Likewise.
14388         * tests/unictype/test-pr_ideographic.c: Likewise.
14389         * tests/unictype/test-pr_ignorable_control.c: Likewise.
14390         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
14391         * tests/unictype/test-pr_lowercase.c: Likewise.
14392         * tests/unictype/test-pr_numeric.c: Likewise.
14393         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
14394         * tests/unictype/test-pr_punctuation.c: Likewise.
14395         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
14396         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
14397         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
14398         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
14399         * tests/unictype/test-pr_uppercase.c: Likewise.
14400         * tests/unictype/test-pr_xid_continue.c: Likewise.
14401         * tests/unictype/test-pr_xid_start.c: Likewise.
14402         * tests/unictype/test-pr_zero_width.c: Likewise.
14403         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
14404         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
14405         changed behaviour: line breaking is now disallowed between a letter
14406         or '=' and '('.
14407         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
14408         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
14409         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
14410         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
14411         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14412         lib/uniwidth/width.c.
14413         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
14414         without comments, but with the original copyright notice.
14415         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
14416         changes.
14417         * lib/unictype/categ_Cc.h: Likewise.
14418         * lib/unictype/categ_Co.h: Likewise.
14419         * lib/unictype/categ_Cs.h: Likewise.
14420         * lib/unictype/categ_Lt.h: Likewise.
14421         * lib/unictype/categ_Me.h: Likewise.
14422         * lib/unictype/categ_Pc.h: Likewise.
14423         * lib/unictype/categ_Pe.h: Likewise.
14424         * lib/unictype/categ_Pf.h: Likewise.
14425         * lib/unictype/categ_Pi.h: Likewise.
14426         * lib/unictype/categ_Ps.h: Likewise.
14427         * lib/unictype/categ_Sk.h: Likewise.
14428         * lib/unictype/categ_Sm.h: Likewise.
14429         * lib/unictype/categ_Z.h: Likewise.
14430         * lib/unictype/categ_Zl.h: Likewise.
14431         * lib/unictype/categ_Zp.h: Likewise.
14432         * lib/unictype/categ_Zs.h: Likewise.
14433         * lib/unictype/ctype_blank.h: Likewise.
14434         * lib/unictype/ctype_cntrl.h: Likewise.
14435         * lib/unictype/ctype_digit.h: Likewise.
14436         * lib/unictype/ctype_space.h: Likewise.
14437         * lib/unictype/ctype_xdigit.h: Likewise.
14438         * lib/unictype/mirror.h: Likewise.
14439         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
14440         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
14441         * lib/unictype/pr_bidi_block_separator.h: Likewise.
14442         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
14443         * lib/unictype/pr_bidi_common_separator.h: Likewise.
14444         * lib/unictype/pr_bidi_control.h: Likewise.
14445         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
14446         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
14447         * lib/unictype/pr_bidi_pdf.h: Likewise.
14448         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
14449         * lib/unictype/pr_bidi_whitespace.h: Likewise.
14450         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
14451         * lib/unictype/pr_format_control.h: Likewise.
14452         * lib/unictype/pr_hex_digit.h: Likewise.
14453         * lib/unictype/pr_hyphen.h: Likewise.
14454         * lib/unictype/pr_ids_binary_operator.h: Likewise.
14455         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
14456         * lib/unictype/pr_iso_control.h: Likewise.
14457         * lib/unictype/pr_join_control.h: Likewise.
14458         * lib/unictype/pr_left_of_pair.h: Likewise.
14459         * lib/unictype/pr_line_separator.h: Likewise.
14460         * lib/unictype/pr_math.h: Likewise.
14461         * lib/unictype/pr_non_break.h: Likewise.
14462         * lib/unictype/pr_not_a_character.h: Likewise.
14463         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
14464         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
14465         * lib/unictype/pr_other_id_continue.h: Likewise.
14466         * lib/unictype/pr_other_id_start.h: Likewise.
14467         * lib/unictype/pr_other_lowercase.h: Likewise.
14468         * lib/unictype/pr_other_math.h: Likewise.
14469         * lib/unictype/pr_other_uppercase.h: Likewise.
14470         * lib/unictype/pr_paired_punctuation.h: Likewise.
14471         * lib/unictype/pr_paragraph_separator.h: Likewise.
14472         * lib/unictype/pr_pattern_syntax.h: Likewise.
14473         * lib/unictype/pr_pattern_white_space.h: Likewise.
14474         * lib/unictype/pr_private_use.h: Likewise.
14475         * lib/unictype/pr_quotation_mark.h: Likewise.
14476         * lib/unictype/pr_radical.h: Likewise.
14477         * lib/unictype/pr_soft_dotted.h: Likewise.
14478         * lib/unictype/pr_space.h: Likewise.
14479         * lib/unictype/pr_titlecase.h: Likewise.
14480         * lib/unictype/pr_variation_selector.h: Likewise.
14481         * lib/unictype/pr_white_space.h: Likewise.
14482         * lib/unictype/sy_c_ident.h: Likewise.
14483         * lib/unictype/sy_c_whitespace.h: Likewise.
14484         * lib/unictype/sy_java_whitespace.h: Likewise.
14485         * modules/uni*/*: Bump version number of expected libunistring version.
14486         Reported by Simon Josefsson.
14487
14488 2011-01-09  Karl Heuer  <kwzh@gnu.org>
14489
14490         useless-if-before-free: fix typo in --help and make the internal,
14491         automatic version date update process work once again.
14492         --help output contained a NUL character instead of the
14493         backslash-zero that was intended.  Also, the "must lie within
14494         the first 8 lines" line is on line 9, and hence not getting
14495         automatically updated.
14496         * build-aux/useless-if-before-free: Fix the former by adding a
14497         backslash, and the latter by condensing the three lines of what-it-does
14498         to a single line, leaving one line of slack for the future.
14499
14500 2011-01-09  Bruno Haible  <bruno@clisp.org>
14501
14502         uniwidth/width: Fix width of U+1D173..U+1D17A.
14503         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
14504         symbolic_width, output_width_property_test): New functions.
14505         (main): Invoke output_nonspacing_property, output_width_property_test.
14506         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
14507         U+1D173..U+1D17A.
14508         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
14509         1.
14510         * modules/uniwidth/*: Bump version number of expected libunistring
14511         version.
14512         * modules/unilbrk/*: Likewise.
14513
14514 2011-01-08  Bruno Haible  <bruno@clisp.org>
14515
14516         uninorm tests: Preserve copyright of Unicode data file.
14517         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
14518         Mention modifications.
14519
14520 2011-01-08  Bruno Haible  <bruno@clisp.org>
14521
14522         gen-uni-tables: Prepare for Unicode 5.2.0.
14523         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
14524         (debug_output_lbp, output_lbp): Update.
14525
14526 2011-01-08  Bruno Haible  <bruno@clisp.org>
14527
14528         unilbrk: Clarify gen-uni-tables.c code.
14529         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
14530         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
14531         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
14532
14533 2011-01-07  Bruno Haible  <bruno@clisp.org>
14534
14535         strtod: Restore errno when successfully parsing Infinity or NaN.
14536         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
14537         restore the original errno.
14538
14539 2011-01-07  Bruno Haible  <bruno@clisp.org>
14540
14541         remove test: Avoid failure on HP-UX 11.
14542         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
14543
14544 2011-01-07  Bruno Haible  <bruno@clisp.org>
14545
14546         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
14547         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
14548         error code.
14549
14550 2011-01-07  Pádraig Brady <P@draigBrady.com>
14551
14552         ignore-value: fixup comments, and add Eric Blake
14553         as an author since he rewrote the macros.
14554         * lib/ignore-value.h (ignore_value):  State that
14555         we now support aggregates.  Also specify exactly
14556         when the GCC warn_unused_result feature was added.
14557
14558 2011-01-06  Eric Blake  <eblake@redhat.com>
14559
14560         ignore-value: support aggregate types
14561         * lib/ignore-value.h (ignore_value): Provide separate gcc
14562         definition.
14563         * modules/ignore-value-tests: New test module.
14564         * tests/test-ignore-value.c: New test.
14565
14566         maint.mk: improve sc_prohibit_strcmp regex
14567         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
14568         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
14569         definition of STRNEQ.
14570
14571         signal: work around Haiku issue with SIGBUS
14572         * lib/siglist.h: Add comment.
14573         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
14574         strsignal's favoring of SIGSEGV.
14575         * tests/test-signal.c (main): Avoid test failure.
14576         * doc/posix-headers/signal.texi (signal.h): Document the issue.
14577         Reported by Scott McCreary.
14578
14579         maint.mk: add pre-release check to ensure submodule commits are public
14580         * top/maint.mk (public-submodule-commit): New rule.
14581         (submodule-checks): New variable.
14582         (alpha beta stable): Depend on the variable.
14583
14584 2011-01-05  Pádraig Brady <P@draigBrady.com>
14585         and Jim Meyering  <meyering@redhat.com>
14586
14587         ignore-value: make ignore_value more generic; deprecate ignore_ptr
14588         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
14589         (ATTRIBUTE_DEPRECATED): Define.
14590         (_ignore_case): New function.
14591         (ignore_value): New macro, to replace the old function.
14592         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
14593         * modules/ignore-value (Depends-on): Add stdint.
14594
14595 2011-01-04  Eric Blake  <eblake@redhat.com>
14596
14597         doc: regenerate INSTALL
14598         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
14599         @firstparagraphindent support, now that autoconf dropped it.
14600         (INSTALL_PRELUDE): Reinstate old macro.
14601         * doc/install.texi: Resync from autoconf.
14602         * doc/INSTALL: Reflect recent autoconf update.
14603         * doc/INSTALL.ISO: Likewise.
14604         * doc/INSTALL.UTF-8: Likewise.
14605         Reported by Karl Berry.
14606
14607 2011-01-04  Bruce Korb  <address@hidden>
14608
14609         git-version-gen: avoid a sub-shell
14610         * build-aux/git-version-gen: Redirect stderr in `...` via
14611         "exec 2>...", rather than via an added sub-shell.
14612
14613 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
14614
14615         git-version-gen: use (...) rather than sh -c '...'
14616         * build-aux/git-version-gen: Rather than hard-coding a shell's name
14617         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
14618
14619 2011-01-03  Jim Meyering  <meyering@redhat.com>
14620
14621         git-version-gen: convert leading TABs to spaces
14622         * build-aux/git-version-gen: Expand leading TABs.
14623
14624         git-version-gen: handle failed "git rev-list"
14625         * build-aux/git-version-gen: Rather than leaking a "fatal" error
14626         from git and proceeding as if it had succeeded but printed no SHA1
14627         checksums, suppress the diagnostic and handle the failure.
14628         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
14629
14630         git-version-gen: include command name in one more diagnostic
14631         * build-aux/git-version-gen: When the required .tarball-version file
14632         was missing or unreadable, you might see the diagnostic from "cat",
14633         but no trace of the name of the invoking script.  Now, you still see
14634         the diagnostic from cat, but also get one from "git-version-gen: ".
14635         Inspired by a patch from Bruce Korb.
14636
14637         update-copyright: adjust test to match changed code
14638         * tests/test-update-copyright.sh: Change test's expected output
14639         to match new actual output.
14640
14641 2011-01-02  Bruno Haible  <bruno@clisp.org>
14642
14643         getlogin_r: Avoid test failure on HP-UX 11.
14644         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
14645         ERANGE when the second argument is zero.
14646         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
14647         portability problem.
14648
14649 2011-01-02  Bruce Korb  <bkorb@gnu.org>
14650
14651         * build-aux/update-copyright: doc Simon's changes
14652
14653 2011-01-02  Simon Josefsson  <simon@josefsson.org>
14654
14655         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
14656         environment variable.
14657
14658 2011-01-02  Bruno Haible  <bruno@clisp.org>
14659
14660         unigbrk: Avoid gcc warnings.
14661         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
14662         unused variable.
14663         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
14664         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
14665         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
14666         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
14667         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
14668         Change type of first argument to 'const char *'.
14669         (main): Remove unused variable.
14670         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
14671         type of first argument to 'const char *'.
14672         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
14673         Likewise.
14674         (main): Change type of variable 's'.
14675         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
14676         to 'int'.
14677
14678 2011-01-02  Bruno Haible  <bruno@clisp.org>
14679
14680         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
14681         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
14682         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
14683         bug.
14684         * lib/pwrite.c: Undo 2010-12-31 patch.
14685         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
14686
14687 2011-01-02  Bruno Haible  <bruno@clisp.org>
14688
14689         pread: Fix test whether it works.
14690         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
14691
14692 2011-01-02  Bruno Haible  <bruno@clisp.org>
14693
14694         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
14695         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
14696         ends in "6". Don't require a specific month name. Try also the locale
14697         names found on HP-UX 11 and Solaris 7.
14698
14699 2011-01-02  Bruno Haible  <bruno@clisp.org>
14700
14701         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
14702         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
14703         C linkage.
14704         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
14705
14706 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
14707
14708         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
14709         for consistency, since the "cluster" term is not used elsewhere.
14710         * lib/unigbrk.in.h: Update name.
14711         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
14712         * lib/unigbrk/u16-grapheme-next.c: Update name.
14713         * lib/unigbrk/u16-grapheme-prev.c: Update name.
14714         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
14715         * lib/unigbrk/u32-grapheme-next.c: Update name.
14716         * lib/unigbrk/u32-grapheme-prev.c: Update name.
14717         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
14718         * lib/unigbrk/u8-grapheme-next.c: Update name.
14719         * lib/unigbrk/u8-grapheme-prev.c: Update name.
14720         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
14721         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
14722         Suggested by Bruno Haible.
14723
14724 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
14725
14726         Remove module 'u8-grapheme-len' as too redundant with
14727         'u8-grapheme-next'.
14728         * modules/unigbrk/u8-grapheme-len: Delete file.
14729         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
14730         * lib/unigbrk.in.h: Remove prototype for deleted function.
14731         * lib/unigbrk/u8-grapheme-len.c: Delete file.
14732         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
14733
14734         Remove module 'u16-grapheme-len' as too redundant with
14735         'u16-grapheme-next'.
14736         * modules/unigbrk/u16-grapheme-len: Delete file.
14737         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
14738         * lib/unigbrk.in.h: Remove prototype for deleted function.
14739         * lib/unigbrk/u16-grapheme-len.c: Delete file.
14740         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
14741
14742         Remove module 'u32-grapheme-len' as too redundant with
14743         'u32-grapheme-next'.
14744         * modules/unigbrk/u32-grapheme-len: Delete file.
14745         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
14746         * lib/unigbrk.in.h: Remove prototype for deleted function.
14747         * lib/unigbrk/u32-grapheme-len.c: Delete file.
14748         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
14749
14750         Suggested by Bruno Haible.
14751
14752 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
14753
14754         * unigbrk.in.h: Fix typo: "ben" => "been".
14755         Reported by Bruno Haible.
14756
14757 2011-01-01  Jim Meyering  <meyering@redhat.com>
14758
14759         maint: update almost all copyright ranges to include 2011
14760         Run the new "make update-copyright" rule.
14761
14762 2011-01-01  Jim Meyering  <meyering@redhat.com>
14763
14764         maint: update-copyright: exempt doc/INSTALL*
14765         * Makefile (update-copyright): Also exclude doc/INSTALL*,
14766         since they are generated.  Suggested by Bruno Haible.
14767
14768 2011-01-01  Jim Meyering  <meyering@redhat.com>
14769
14770         maint: refine the update-copyright rule
14771         * Makefile (update-copyright): Also exclude any file that includes
14772         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
14773         code that merely generates the comment.
14774
14775 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
14776
14777         New module 'u8-grapheme-len'.
14778         * modules/unigbrk/u8-grapheme-len: New file.
14779         * modules/unigbrk/u8-grapheme-len-tests: New file.
14780         * lib/unigbrk.in.h: Add prototype for new function.
14781         * lib/unigbrk/u8-grapheme-len.c: New file.
14782         * tests/unigbrk/test-u8-grapheme-len.c: New file.
14783
14784         New module 'u16-grapheme-len'.
14785         * modules/unigbrk/u16-grapheme-len: New file.
14786         * modules/unigbrk/u16-grapheme-len-tests: New file.
14787         * lib/unigbrk.in.h: Add prototype for new function.
14788         * lib/unigbrk/u16-grapheme-len.c: New file.
14789         * tests/unigbrk/test-u16-grapheme-len.c: New file.
14790
14791         New module 'u32-grapheme-len'.
14792         * modules/unigbrk/u32-grapheme-len: New file.
14793         * modules/unigbrk/u32-grapheme-len-tests: New file.
14794         * lib/unigbrk.in.h: Add prototype for new function.
14795         * lib/unigbrk/u32-grapheme-len.c: New file.
14796         * tests/unigbrk/test-u32-grapheme-len.c: New file.
14797
14798         New module 'u8-grapheme-next'.
14799         * modules/unigbrk/u8-grapheme-next: New file.
14800         * modules/unigbrk/u8-grapheme-next-tests: New file.
14801         * lib/unigbrk.in.h: Add prototype for new function.
14802         * lib/unigbrk/u8-grapheme-next.c: New file.
14803         * tests/unigbrk/test-u8-grapheme-next.c: New file.
14804
14805         New module 'u16-grapheme-next'.
14806         * modules/unigbrk/u16-grapheme-next: New file.
14807         * modules/unigbrk/u16-grapheme-next-tests: New file.
14808         * lib/unigbrk.in.h: Add prototype for new function.
14809         * lib/unigbrk/u16-grapheme-next.c: New file.
14810         * tests/unigbrk/test-u16-grapheme-next.c: New file.
14811
14812         New module 'u32-grapheme-next'.
14813         * modules/unigbrk/u32-grapheme-next: New file.
14814         * modules/unigbrk/u32-grapheme-next-tests: New file.
14815         * lib/unigbrk.in.h: Add prototype for new function.
14816         * lib/unigbrk/u32-grapheme-next.c: New file.
14817         * tests/unigbrk/test-u32-grapheme-next.c: New file.
14818
14819         New module 'u8-grapheme-prev'.
14820         * modules/unigbrk/u8-grapheme-prev: New file.
14821         * modules/unigbrk/u8-grapheme-prev-tests: New file.
14822         * lib/unigbrk.in.h: Add prototype for new function.
14823         * lib/unigbrk/u8-grapheme-prev.c: New file.
14824         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
14825
14826         New module 'u16-grapheme-prev'.
14827         * modules/unigbrk/u16-grapheme-prev: New file.
14828         * modules/unigbrk/u16-grapheme-prev-tests: New file.
14829         * lib/unigbrk.in.h: Add prototype for new function.
14830         * lib/unigbrk/u16-grapheme-prev.c: New file.
14831         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
14832
14833         New module 'u32-grapheme-prev'.
14834         * modules/unigbrk/u32-grapheme-prev: New file.
14835         * modules/unigbrk/u32-grapheme-prev-tests: New file.
14836         * lib/unigbrk.in.h: Add prototype for new function.
14837         * lib/unigbrk/u32-grapheme-prev.c: New file.
14838         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
14839
14840         New module 'u8-grapheme-breaks'.
14841         * modules/unigbrk/u8-grapheme-breaks: New file.
14842         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
14843         * lib/unigbrk.in.h: Add prototype for new function.
14844         * lib/unigbrk/u8-grapheme-breaks.c: New file.
14845         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
14846
14847         New module 'u16-grapheme-breaks'.
14848         * modules/unigbrk/u16-grapheme-breaks: New file.
14849         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
14850         * lib/unigbrk.in.h: Add prototype for new function.
14851         * lib/unigbrk/u16-grapheme-breaks.c: New file.
14852         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
14853
14854         New module 'u32-grapheme-breaks'.
14855         * modules/unigbrk/u32-grapheme-breaks: New file.
14856         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
14857         * lib/unigbrk.in.h: Add prototype for new function.
14858         * lib/unigbrk/u32-grapheme-breaks.c: New file.
14859         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
14860
14861         New module 'ulc-grapheme-breaks'.
14862         * modules/unigbrk/ulc-grapheme-breaks: New file.
14863         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
14864         * m4/locale-ar.m4: New file.
14865         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
14866         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
14867         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
14868
14869 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
14870
14871         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
14872         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
14873         modified how this file was generated before I initially submitted
14874         the module, but failed to regenerate it.  This meant that several
14875         of the level2 entries were wrong.
14876         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
14877         Remove the division-by-2 that is folded into the table now that
14878         gbrkprop.h has been regenerated properly.  Now -1 entries are
14879         handled correctly.
14880
14881         New module 'unigbrk/uc-gbrk-prop-tests'.
14882         * modules/unigbrk/uc-gbrk-prop-tests: New file.
14883         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
14884         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
14885         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
14886
14887 2011-01-01  Bruno Haible  <bruno@clisp.org>
14888
14889         Avoid use of hexadecimal escapes.
14890         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
14891         instead of hexadecimal escapes.
14892
14893 2011-01-01  Jim Meyering  <meyering@redhat.com>
14894
14895         maint: new rule to update copyright year ranges
14896         * Makefile (update-copyright): New rule.
14897
14898         maint: indent with TABs in Makefile
14899         * Makefile: Expand leading sequences of spaces to TABs
14900
14901         version-etc: update the copyright year it reports
14902         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
14903
14904 2010-12-31  Bruno Haible  <bruno@clisp.org>
14905
14906         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
14907         * lib/isfinite.c (zerof, zerod, zerol): New variables.
14908         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
14909         zero.
14910
14911 2010-12-31  Bruno Haible  <bruno@clisp.org>
14912
14913         pwrite: Work around HP-UX 11.11 bug.
14914         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
14915         works and set REPLACE_PWRITE if not.
14916         * lib/pwrite.c (pwrite): Add an implementation that uses the system
14917         function.
14918         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
14919
14920 2010-12-31  Bruno Haible  <bruno@clisp.org>
14921
14922         pread: Work around HP-UX 11 bugs.
14923         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
14924         and set REPLACE_PREAD if not.
14925         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
14926
14927 2010-12-31  Eric Blake  <eblake@redhat.com>
14928
14929         nl_langinfo: fix YESEXPR on Irix 6.5
14930         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
14931         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
14932         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
14933         it.
14934
14935 2010-12-31  Bruno Haible  <bruno@clisp.org>
14936
14937         iconv: Document HP-UX 11 bug.
14938         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
14939
14940 2010-12-31  Bruno Haible  <bruno@clisp.org>
14941
14942         ldexpl: Fix link error on HP-UX 11.
14943         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
14944         LDEXPL_LIBM, using $ISNANL_LIBM.
14945
14946 2010-12-31  Eric Blake  <eblake@redhat.com>
14947
14948         ftello: avoid compilation failure with SunStudio c89
14949         * lib/ftello.c (ftello): Use lseek, not llseek.
14950
14951         tests: avoid failing coreutils tests on cygwin
14952         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
14953         (create_exe_shims_): Return 0 when skipping.
14954
14955 2010-12-31  Bruno Haible  <bruno@clisp.org>
14956
14957         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
14958         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
14959
14960 2010-12-31  Bruno Haible  <bruno@clisp.org>
14961
14962         waitpid: Fix link error in C++ mode.
14963         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
14964
14965 2010-12-31  Bruno Haible  <bruno@clisp.org>
14966
14967         isnan: Use GCC built-ins when possible.
14968         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
14969         __builtin_isnan.
14970         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
14971         (isnan): Define using GCC built-ins for GCC >= 4.0.
14972
14973 2010-12-31  Bruno Haible  <bruno@clisp.org>
14974
14975         isnand: Fix mistake.
14976         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
14977         __builtin_isnand.
14978
14979 2010-12-31  Bruno Haible  <bruno@clisp.org>
14980
14981         open: Avoid C++ error on HP-UX 11.
14982         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
14983
14984 2010-12-31  Bruno Haible  <bruno@clisp.org>
14985
14986         time_r: Add missing declarations on HP-UX 11.
14987         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
14988         instead of HAVE_LOCALTIME_R.
14989         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
14990         HAVE_LOCALTIME_R always.
14991         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
14992         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
14993         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
14994         HAVE_LOCALTIME_R.
14995         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
14996         * doc/posix-functions/localtime_r.texi: Likewise.
14997
14998 2010-12-29  Eric Blake  <eblake@redhat.com>
14999
15000         mountlist: tweak previous commit
15001         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
15002         Reported by Paul Eggert.
15003
15004         mountlist: fix local drive detection on cygwin
15005         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
15006         that works for cygwin.
15007
15008 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
15009
15010         ftoastr, snprintf: ftoastr + snprintf module
15011         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
15012         since the snprintf module now should be good enough here.
15013         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
15014         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
15015         and gl_MODULE_INDICATOR([snprintf]), but the former enables
15016         GNULIB_SNPRINTF only for the test directory, and the latter
15017         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
15018         seems to suffice by itself.
15019
15020 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
15021
15022         alloca: one step towards thread-safety
15023         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
15024         need for a static variable.  All callers changed.  This does not
15025         make the alloca replacement thread-safe, but it's one step.
15026
15027         tests: minor indenting change
15028         * tests/init.sh: Sync from coreutils housekeeping patch
15029         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
15030         to keep lines within 80 columns.
15031
15032 2010-12-28  Jim Meyering  <meyering@redhat.com>
15033
15034         regex: don't infloop on persistent failing calloc
15035         * lib/regexec.c (build_trtable): Return failure indication upon
15036         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
15037         In glibc, this was fixed for version 2.13:
15038         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
15039
15040 2010-12-28  Bruno Haible  <bruno@clisp.org>
15041             Paul Eggert <eggert@cs.ucla.edu>
15042
15043         linkat: Make implementation robust against system behaviour variations.
15044         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
15045         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
15046         way, and to -2 if it needs a generic runtime test.
15047         * lib/linkat.c (solaris_optimized_link_immediate,
15048         solaris_optimized_link_follow): New functions.
15049         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
15050         (check_same_link): Use it.
15051
15052 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
15053
15054         New module 'unigbrk/base'.
15055         * modules/unigbrk/base: New file.
15056         * lib/unigbrk.in.h: New file.
15057
15058         New module 'unigbrk/uc-gbrk-prop'.
15059         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
15060         * modules/unigbrk/uc-gbrk-prop: New file.
15061         * lib/unigbrk/gbrkprop.h: New file.
15062         * lib/unigbrk/uc-gbrk-prop.c: New file.
15063
15064         New module 'unigbrk/uc-is-grapheme-break'.
15065         * modules/unigbrk/uc-is-grapheme-break: New file.
15066         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
15067         * lib/unigbrk/uc-is-grapheme-break.c: New file.
15068         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
15069         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
15070         * tests/unigbrk/GraphemeBreakTest.txt: New file.
15071
15072         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
15073
15074 2010-12-27  Bruno Haible  <bruno@clisp.org>
15075
15076         linkat test: Avoid failure on Solaris 11 2010-11.
15077         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
15078
15079 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15080
15081         utimens: work around glibc rounding bug on more platforms
15082         * lib/utimens.c (fdutimens): Work around rounding bug even if
15083         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
15084         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
15085
15086 2010-12-27  Bruno Haible  <bruno@clisp.org>
15087
15088         select tests: Improve comments.
15089         * tests/test-select.c (do_select): Add comments.
15090
15091 2010-12-27  Bruno Haible  <bruno@clisp.org>
15092
15093         select tests: Safer way of handling timeout.
15094         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
15095         at every invocation.
15096
15097 2010-12-27  Bruno Haible  <bruno@clisp.org>
15098
15099         select tests: Use 'bool' where appropriate.
15100         * tests/test-select.c (connect_to_socket): Change argument type to
15101         'bool'.
15102
15103 2010-12-27  Bruno Haible  <bruno@clisp.org>
15104
15105         select tests: Use existing modules.
15106         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
15107         (configure.ac): Don't test for unistd.h.
15108         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
15109         declared in <unistd.h>.
15110
15111 2010-12-27  Bruno Haible  <bruno@clisp.org>
15112
15113         mbrtowc: Work around a Solaris 7 bug.
15114         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
15115         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
15116         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
15117         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
15118         MBRTOWC_NULL_ARG1_BUG.
15119         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
15120         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
15121         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
15122         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
15123
15124 2010-12-27  Jim Meyering  <meyering@redhat.com>
15125
15126         read-file.c: tweak syntax
15127         * lib/read-file.c (fread_file): Remove space after "*" in function
15128         definitions.
15129
15130 2010-12-27  Bruno Haible  <bruno@clisp.org>
15131
15132         times test: Avoid gcc warnings on OSF/1.
15133         * tests/test-times.c (main): Cast printf arguments from clock_t to
15134         'long int'.
15135
15136 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15137
15138         utimens: work around glibc rounding bug on older Linux kernels
15139         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
15140         on Linux with a glibc whose utimes might not work, then work
15141         around a longstanding glibc bug involving rounding rather than
15142         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
15143         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
15144
15145 2010-12-26  Bruno Haible  <bruno@clisp.org>
15146
15147         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
15148         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
15149         _GL_CXXALIAS_SYS.
15150         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15151
15152 2010-12-26  Bruno Haible  <bruno@clisp.org>
15153
15154         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
15155         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
15156         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
15157         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
15158         looking for the declaration.
15159         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
15160         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
15161         problem.
15162         * doc/posix-functions/inet_pton.texi: Likewise.
15163
15164 2010-12-26  Bruno Haible  <bruno@clisp.org>
15165
15166         arpa_inet: Use the common idioms with C++ support.
15167         * lib/arpa_inet.in.h: Include c++defs.h.
15168         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
15169         support.
15170         * modules/arpa_inet (Depends-on): Add c++defs.
15171         (Makefile.am): Substitute the contents of c++defs.h.
15172         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
15173         * modules/arpa_inet-c++-tests: New file.
15174         * tests/test-arpa_inet-c++.cc: New file.
15175
15176 2010-12-25  Bruno Haible  <bruno@clisp.org>
15177
15178         Fix more C++ link errors on Solaris 8.
15179         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
15180         $(LIB_EACCESS).
15181         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
15182         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
15183         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
15184         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
15185         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
15186
15187 2010-12-25  Bruno Haible  <bruno@clisp.org>
15188
15189         printf-posix: Fix link error when a non-GCC compiler is used.
15190         * lib/stdio.in.h (printf): When not using GCC, override printf
15191         correctly.
15192         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15193
15194 2010-12-25  Bruno Haible  <bruno@clisp.org>
15195
15196         strerror_r-posix: Update doc.
15197         * doc/posix-functions/strerror_r.texi: Update doc about the return
15198         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
15199
15200 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
15201
15202         utimens: simplify the logic of the previous change
15203         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
15204         This should not affect whether the test succeeds or fails.
15205
15206         utimens: configure better on hosts with NFS clock skew
15207         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
15208         uses the clock of the local host.  It might use the clock of the
15209         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
15210         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
15211
15212 2010-12-25  Bruno Haible  <bruno@clisp.org>
15213
15214         ptsname test: Avoid failure on Solaris.
15215         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
15216         open a pseudo-terminal; don't use BSD-style ptys.
15217         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
15218
15219 2010-12-25  Bruno Haible  <bruno@clisp.org>
15220
15221         ptsname: Avoid ERANGE failure on some systems.
15222         * lib/ptsname.c (buffer): Increase size.
15223
15224 2010-12-25  Bruno Haible  <bruno@clisp.org>
15225
15226         rename, renameat: Avoid test failures at NFS mounted locations.
15227         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
15228         so that subsequent mkdir calls succeed.
15229
15230 2010-12-25  Bruno Haible  <bruno@clisp.org>
15231
15232         iswblank: Fix C++ link error on Solaris 8.
15233         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
15234         _GL_FUNCDECL_SYS.
15235
15236 2010-12-25  Bruno Haible  <bruno@clisp.org>
15237
15238         unistd: Fix C++ link error on Solaris 8.
15239         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
15240
15241 2010-12-25  Bruno Haible  <bruno@clisp.org>
15242
15243         readlink doc: Mention an old glibc bug.
15244         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
15245
15246 2010-12-25  Bruno Haible  <bruno@clisp.org>
15247
15248         fcntl-h: Fix for use of C++ on glibc systems.
15249         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
15250         also on glibc systems in C++ mode.
15251         Reported by Gary V. Vaughan <gary@gnu.org>.
15252
15253 2010-12-25  Bruno Haible  <bruno@clisp.org>
15254
15255         roundl-ieee: Make it work on OSF/1 5.1 with cc.
15256         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
15257
15258 2010-12-25  Bruno Haible  <bruno@clisp.org>
15259
15260         truncl-ieee: Make it work on OSF/1 5.1 with cc.
15261         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
15262         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
15263         test whether truncl works according to ISO C 99 with IEC 60559.
15264         * m4/truncl-ieee.m4: New file.
15265         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
15266         m4/signbit.m4.
15267         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
15268
15269 2010-12-25  Bruno Haible  <bruno@clisp.org>
15270
15271         ceill-ieee: Make it work on OSF/1 5.1 with cc.
15272         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
15273         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
15274         test whether ceill works according to ISO C 99 with IEC 60559.
15275         * m4/ceill-ieee.m4: New file.
15276         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
15277         m4/signbit.m4.
15278         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
15279
15280 2010-12-25  Bruno Haible  <bruno@clisp.org>
15281
15282         Ensure all prerequisites of <wchar.h> are included.
15283         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
15284         before <wchar.h>.
15285         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
15286         gl_MBRLEN_NUL_RETVAL): Likewise.
15287         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
15288         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
15289         AC_FUNC_MBRTOWC): Likewise.
15290         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15291         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
15292         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15293         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
15294         Likewise.
15295         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15296         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
15297         (gl_WCHAR_H): Improve comments.
15298         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15299
15300 2010-12-25  Bruno Haible  <bruno@clisp.org>
15301
15302         strtok_r: Fix C syntax error in autoconf macro.
15303         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
15304         characters in test program.
15305
15306 2010-12-24  Bruno Haible  <bruno@clisp.org>
15307
15308         ceil, trunc, round: Fix gcc warnings.
15309         * lib/ceil.c (MIN): Undefine before redefining.
15310         * lib/trunc.c (MIN): Likewise.
15311         * lib/round.c (MIN): Likewise.
15312         Include <math.h> first.
15313
15314 2010-12-24  Bruno Haible  <bruno@clisp.org>
15315
15316         select tests: Avoid failures on OSF/1 5.1.
15317         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
15318         failure of closing the last socket; it may fail with ECONNRESET.
15319
15320 2010-12-24  Eric Blake  <eblake@redhat.com>
15321
15322         stdint: avoid HP-UX 10.20 preprocessor bug
15323         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
15324         than #if.
15325         * tests/test-floor2.c (main): Likewise.
15326         Reported by Peter O'Gorman.
15327
15328         pipe: make obsoletion transition easier
15329         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
15330         * modules/pipe (Files): Include revived file.
15331         (Include): Drop reference, to mirror getdate's behavior.
15332
15333 2010-12-24  Bruno Haible  <bruno@clisp.org>
15334
15335         sys_socket: Hide mismatch of declarations on NonStop Kernel.
15336         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
15337         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
15338         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15339
15340 2010-12-24  Bruno Haible  <bruno@clisp.org>
15341
15342         gethostname: Ensure declaration on NonStop Kernel.
15343         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
15344         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15345
15346 2010-12-24  Bruno Haible  <bruno@clisp.org>
15347
15348         sys_select: Ensure all necessary types on NonStop Kernel.
15349         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
15350         include <sys/time.h>.
15351         * doc/posix-headers/sys_select.texi: Mention that it's missing on
15352         NonStop Kernel.
15353         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15354
15355 2010-12-24  Bruno Haible  <bruno@clisp.org>
15356
15357         sys_select: Remove unneeded include.
15358         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
15359         have <sys/select.h>.
15360
15361 2010-12-24  Bruno Haible  <bruno@clisp.org>
15362
15363         gethostname: Provide a fallback for HOST_NAME_MAX.
15364         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
15365         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
15366         instead.
15367         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15368
15369 2010-12-24  Bruno Haible  <bruno@clisp.org>
15370
15371         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
15372         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
15373         (SA_RESTART): Likewise.
15374         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15375
15376 2010-12-24  Bruno Haible  <bruno@clisp.org>
15377
15378         signal: Define NSIG.
15379         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
15380         * tests/test-signal.c (nsig): New variable.
15381         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15382
15383 2010-12-24  Bruno Haible  <bruno@clisp.org>
15384
15385         rename, renameat: Avoid test failures on OSF/1 5.1.
15386         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
15387         alternative error codes.
15388         * tests/test-renameat.c (main): Likewise.
15389
15390 2010-12-24  Bruno Haible  <bruno@clisp.org>
15391
15392         *printf: Detect large precisions bug on Solaris 10/SPARC.
15393         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
15394         by Paul Eggert.
15395         * tests/test-snprintf-posix.h (test_function): Add this test code here
15396         too.
15397         * tests/test-sprintf-posix.h (test_function): Likewise.
15398         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15399         * tests/test-vasprintf-posix.c (test_function): Likewise.
15400         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
15401         around by gnulib.
15402         * doc/posix-functions/printf.texi: Likewise.
15403         * doc/posix-functions/snprintf.texi: Likewise.
15404         * doc/posix-functions/sprintf.texi: Likewise.
15405         * doc/posix-functions/vfprintf.texi: Likewise.
15406         * doc/posix-functions/vprintf.texi: Likewise.
15407         * doc/posix-functions/vsnprintf.texi: Likewise.
15408         * doc/posix-functions/vsprintf.texi: Likewise.
15409         * doc/posix-functions/dprintf.texi: Undo last commit.
15410         * doc/posix-functions/vdprintf.texi: Likewise.
15411
15412 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
15413
15414         tests: port test-fdutimensat.c to Solaris 8
15415         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
15416         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
15417         On Solaris 8, it fails with errno == ENOSYS, because there is no
15418         futimens (so it can't use the fd), and there is no lutimens (so it
15419         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
15420
15421         vsnprintf: make more consistent with snprintf; doc fixes
15422
15423         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
15424         the byte count return problem was promoted from the snprintf-posix
15425         to the snprintf module.
15426         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15427         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
15428         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
15429         * tests/test-snprintf.c (main): Check the byte count returned.
15430         * tests/test-vsnprintf.c (main): Likewise.
15431
15432 2010-12-23  Eric Blake  <eblake@redhat.com>
15433
15434         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
15435         * modules/sigpipe (License): Relax license.
15436
15437 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
15438
15439         doc: document Solaris printf bug with large float precisions
15440         * doc/posix-functions/dprintf.texi (dprintf):
15441         * doc/posix-functions/fprintf.texi (fprintf):
15442         * doc/posix-functions/printf.texi (printf):
15443         * doc/posix-functions/snprintf.texi (snprintf):
15444         * doc/posix-functions/sprintf.texi (sprintf):
15445         * doc/posix-functions/vdprintf.texi (vdprintf):
15446         * doc/posix-functions/vfprintf.texi (vfprintf):
15447         * doc/posix-functions/vprintf.texi (vprintf):
15448         * doc/posix-functions/vsnprintf.texi (vsnprintf):
15449         * doc/posix-functions/vsprintf.texi (vsprintf):
15450         Mention that these functions mishandle large floating point
15451         precisions on Solaris 10.  The same bug is also present in Solaris
15452         8, and I assume earlier.  This causes "cd gnulib-tests; make
15453         check" to fail on Solaris 8 (and I assume, later) when building
15454         the latest coreutils, in test-vasprintf-posix's call to
15455         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
15456         the wide flavors (e.g., wprintf) so this patch just updates the
15457         documentation for the narrow ones.
15458
15459         test-posixtm.c: add two tests
15460         * tests/test-posixtm.c: Add two tests, to highlight the
15461         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
15462         around this bug; this is merely to document it.
15463
15464 2010-12-22  Bruno Haible  <bruno@clisp.org>
15465
15466         getlogin_r: Work around portability problem on OSF/1.
15467         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
15468         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
15469         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
15470         test for a truncated result.
15471         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
15472         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
15473         * modules/getlogin_r (Depends-on): Add memchr.
15474         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
15475
15476 2010-12-22  Bruno Haible  <bruno@clisp.org>
15477
15478         ptsname: Avoid test failure on OSF/1 5.1.
15479         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
15480         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
15481         (same_slave): New function.
15482         (main): Use it to compare ptsname's result with the expected file name.
15483
15484 2010-12-22  Bruno Haible  <bruno@clisp.org>
15485
15486         Port extended stdio modules to HP NonStop Kernel.
15487         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
15488         macros.
15489         * lib/fbufmode.c: Update comments.
15490         * lib/fflush.c: Likewise.
15491         * lib/fpurge.c: Likewise.
15492         * lib/freadable.c: Likewise.
15493         * lib/freadahead.c: Likewise.
15494         * lib/freading.c: Likewise.
15495         * lib/freadptr.c: Likewise.
15496         * lib/freadseek.c: Likewise.
15497         * lib/fseeko.c: Likewise.
15498         * lib/fseterr.c: Likewise.
15499         * lib/fwritable.c: Likewise.
15500         * lib/fwriting.c: Likewise.
15501         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15502
15503 2010-12-22  Bruno Haible  <bruno@clisp.org>
15504
15505         ttyname_r: Work around bug on OSF/1 5.1.
15506         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
15507         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
15508         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
15509         present.
15510         * lib/ttyname_r.c (ttyname_r): Update comments.
15511
15512 2010-12-22  Bruno Haible  <bruno@clisp.org>
15513
15514         round: Implement result sign according to IEEE 754.
15515         * lib/round.c (MIN, MINUS_ZERO): New macros.
15516         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
15517         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
15518         * tests/test-round-ieee.c (main): Likewise.
15519         * tests/test-roundl-ieee.c (main): Likewise.
15520
15521         trunc: Implement result sign according to IEEE 754.
15522         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
15523         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
15524         * tests/test-trunc2.c: Include minus-zero.h.
15525         (MINUS_ZERO): New macro.
15526         (trunc_reference): Keep in sync with lib/trunc.c.
15527         * tests/test-truncf2.c: Include minus-zero.h.
15528         (MINUS_ZERO): New macro.
15529         (truncf_reference): Keep in sync with lib/trunc.c.
15530         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
15531         * tests/test-trunc-ieee.c (main): Likewise.
15532         * tests/test-truncl-ieee.c (main): Likewise.
15533
15534         ceil: Implement result sign according to IEEE 754.
15535         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
15536         (FUNC): Return -0.0 for -1 < x < 0.
15537         * tests/test-ceil2.c: Include minus-zero.h.
15538         (MINUS_ZERO): New macro.
15539         (ceil_reference): Keep in sync with lib/ceil.c.
15540         * tests/test-ceilf2.c: Include minus-zero.h.
15541         (MINUS_ZERO): New macro.
15542         (ceilf_reference): Keep in sync with lib/ceil.c.
15543         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
15544         * tests/test-ceil-ieee.c (main): Likewise.
15545         * tests/test-ceill-ieee.c (main): Likewise.
15546
15547         floor: Implement result sign according to IEEE 754.
15548         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
15549         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
15550         * tests/test-floorf2.c (floorf_reference): Likewise.
15551         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
15552         * tests/test-floor-ieee.c (main): Likewise.
15553         * tests/test-floorl-ieee.c (main): Likewise.
15554
15555 2010-12-22  Bruno Haible  <bruno@clisp.org>
15556
15557         getaddrinfo: Update doc.
15558         * doc/posix-functions/gai_strerror.texi: Return type is also different
15559         on AIX and HP-UX.
15560
15561 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
15562
15563         getaddrinfo, inet_ntop: Update doc for Solaris.
15564         * doc/posix-functions/gai_strerror.texi: Return type is also an
15565         issue on Solaris 9 and earlier.
15566         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
15567         on Solaris 10 and earlier.
15568
15569 2010-12-21  Bruno Haible  <bruno@clisp.org>
15570
15571         New module 'roundl-ieee'.
15572         * modules/roundl-ieee: New file.
15573         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
15574         test whether roundl works according to ISO C 99 with IEC 60559.
15575         * m4/roundl-ieee.m4: New file.
15576         * modules/roundl-ieee-tests: New file.
15577         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
15578         * tests/test-roundl.c (main): Remove signbit tests.
15579         * modules/roundl-tests (Depends-on): Remove signbit.
15580         * doc/posix-functions/roundl.texi: Mention the new module.
15581
15582 2010-12-21  Bruno Haible  <bruno@clisp.org>
15583
15584         New module 'truncl-ieee'.
15585         * modules/truncl-ieee: New file.
15586         * modules/truncl-ieee-tests: New file.
15587         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
15588         * tests/test-truncl.c (main): Remove signbit tests.
15589         * modules/truncl-tests (Depends-on): Remove signbit.
15590         * doc/posix-functions/truncl.texi: Mention the new module.
15591
15592 2010-12-21  Bruno Haible  <bruno@clisp.org>
15593
15594         New module 'ceill-ieee'.
15595         * modules/ceill-ieee: New file.
15596         * modules/ceill-ieee-tests: New file.
15597         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
15598         * tests/test-ceill.c (main): Remove signbit tests.
15599         * modules/ceill-tests (Depends-on): Remove signbit.
15600         * doc/posix-functions/ceill.texi: Mention the new module.
15601
15602 2010-12-21  Bruno Haible  <bruno@clisp.org>
15603
15604         New module 'floorl-ieee'.
15605         * modules/floorl-ieee: New file.
15606         * modules/floorl-ieee-tests: New file.
15607         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
15608         * tests/test-floorl.c (main): Remove signbit tests.
15609         * modules/floorl-tests (Depends-on): Remove signbit.
15610         * doc/posix-functions/floorl.texi: Mention the new module.
15611
15612 2010-12-21  Bruno Haible  <bruno@clisp.org>
15613
15614         New module 'round-ieee'.
15615         * modules/round-ieee: New file.
15616         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
15617         whether round works according to ISO C 99 with IEC 60559.
15618         * m4/round-ieee.m4: New file.
15619         * modules/round-ieee-tests: New file.
15620         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
15621         * tests/test-round1.c (main): Remove signbit tests.
15622         * modules/round-tests (Depends-on): Remove 'signbit'.
15623         * doc/posix-functions/round.texi: Mention the new module.
15624
15625 2010-12-21  Bruno Haible  <bruno@clisp.org>
15626
15627         New module 'trunc-ieee'.
15628         * modules/trunc-ieee: New file.
15629         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
15630         whether trunc works according to ISO C 99 with IEC 60559.
15631         * m4/trunc-ieee.m4: New file.
15632         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
15633         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
15634         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
15635         * modules/trunc-ieee-tests: New file.
15636         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
15637         * tests/test-trunc1.c (main): Remove signbit tests.
15638         * modules/trunc-tests (Depends-on): Remove 'signbit'.
15639         * doc/posix-functions/trunc.texi: Mention the new module.
15640
15641 2010-12-21  Bruno Haible  <bruno@clisp.org>
15642
15643         New module 'ceil-ieee'.
15644         * modules/ceil-ieee: New file.
15645         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
15646         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
15647         ISO C 99 with IEC 60559.
15648         * m4/ceil-ieee.m4: New file.
15649         * modules/ceil (Files): Add lib/ceil.c.
15650         (Depends-on): Add 'float'.
15651         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
15652         * lib/math.in.h (ceil): New declaration.
15653         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
15654         REPLACE_CEIL.
15655         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
15656         * modules/ceil-ieee-tests: New file.
15657         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
15658         * tests/test-math-c++.cc: Check the signature of 'ceil'.
15659         * doc/posix-functions/ceil.texi: Mention the new module.
15660
15661 2010-12-21  Bruno Haible  <bruno@clisp.org>
15662
15663         New module 'floor-ieee'.
15664         * modules/floor-ieee: New file.
15665         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
15666         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
15667         ISO C 99 with IEC 60559.
15668         * m4/floor-ieee.m4: New file.
15669         * modules/floor (Files): Add lib/floor.c.
15670         (Depends-on): Add 'float'.
15671         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
15672         * lib/math.in.h (floor): New declaration.
15673         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
15674         REPLACE_FLOOR.
15675         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
15676         * modules/floor-ieee-tests: New file.
15677         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
15678         * tests/test-math-c++.cc: Check the signature of 'floor'.
15679         * doc/posix-functions/floor.texi: Mention the new module.
15680
15681 2010-12-21  Bruno Haible  <bruno@clisp.org>
15682
15683         New module 'roundf-ieee'.
15684         * modules/roundf-ieee: New file.
15685         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
15686         test whether roundf works according to ISO C 99 with IEC 60559.
15687         * m4/roundf-ieee.m4: New file.
15688         * modules/roundf-ieee-tests: New file.
15689         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
15690         * tests/test-roundf1.c (main): Remove signbit tests.
15691         * modules/roundf-tests (Depends-on): Remove 'signbit'.
15692         * doc/posix-functions/roundf.texi: Mention the new module.
15693
15694 2010-12-21  Bruno Haible  <bruno@clisp.org>
15695
15696         New module 'truncf-ieee'.
15697         * modules/truncf-ieee: New file.
15698         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
15699         test whether truncf works according to ISO C 99 with IEC 60559.
15700         * m4/truncf-ieee.m4: New file.
15701         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
15702         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
15703         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
15704         * modules/truncf-ieee-tests: New file.
15705         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
15706         * tests/test-truncf1.c (main): Remove signbit tests.
15707         * modules/truncf-tests (Depends-on): Remove 'signbit'.
15708         * doc/posix-functions/truncf.texi: Mention the new module.
15709
15710 2010-12-21  Bruno Haible  <bruno@clisp.org>
15711
15712         New module 'ceilf-ieee'.
15713         * modules/ceilf-ieee: New file.
15714         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
15715         test whether ceilf works according to ISO C 99 with IEC 60559.
15716         * m4/ceilf-ieee.m4: New file.
15717         * modules/ceilf-ieee-tests: New file.
15718         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
15719         * tests/test-ceilf1.c (main): Remove signbit tests.
15720         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
15721         * doc/posix-functions/ceilf.texi: Mention the new module.
15722
15723 2010-12-21  Bruno Haible  <bruno@clisp.org>
15724
15725         New module 'floorf-ieee'.
15726         * modules/floorf-ieee: New file.
15727         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
15728         test whether floorf works according to ISO C 99 with IEC 60559.
15729         * m4/floorf-ieee.m4: New file.
15730         * modules/floorf-ieee-tests: New file.
15731         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
15732         * tests/test-floorf1.c (main): Remove signbit tests.
15733         * modules/floorf-tests (Depends-on): Remove 'signbit'.
15734         * doc/posix-functions/floorf.texi: Mention the new module.
15735
15736 2010-12-21  Bruno Haible  <bruno@clisp.org>
15737
15738         Support for minus zero in autoconf macros.
15739         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
15740         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
15741         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
15742         * tests/minus-zero.h: Update comments.
15743
15744 2010-12-21  Bruno Haible  <bruno@clisp.org>
15745
15746         Tests for module 'ceil'.
15747         * modules/ceil-tests: New file.
15748         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
15749         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
15750
15751 2010-12-21  Bruno Haible  <bruno@clisp.org>
15752
15753         Tests for module 'floor'.
15754         * modules/floor-tests: New file.
15755         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
15756         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
15757
15758 2010-12-21  Bruno Haible  <bruno@clisp.org>
15759
15760         math: Fix indentation.
15761         * lib/math.in.h (floorf): Fix indentation.
15762
15763 2010-12-21  Bruno Haible  <bruno@clisp.org>
15764
15765         Fix cross-compilation guesses on Solaris.
15766         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
15767         not match "solaris2.10".
15768         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
15769         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
15770         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
15771
15772 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
15773
15774         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
15775         This fixes a problem observed with the latest coreutils snapshot
15776         that caused a test to fail on Solaris 8.  src/csplit.c's call
15777         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
15778         earlier, instead of returning the number of bytes that would have
15779         been generated; this causes csplit to incorrectly report memory
15780         exhaustion.
15781         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
15782         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
15783         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
15784         comments to match.
15785         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
15786         Fix typo in matching older versions of Solaris: "solaris2.10"
15787         is matched by the shell pattern "solaris2.[0-9]*".  This matters
15788         only for guessing while cross-compiling.
15789         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
15790
15791 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
15792
15793         ftoastr: fix comment again
15794         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
15795         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
15796         Also, simplify example a bit by using flags = 0.
15797
15798 2010-12-20  Bruno Haible  <bruno@clisp.org>
15799
15800         round*, trunc*: Update documentation regarding glibc.
15801         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
15802         * doc/posix-functions/round.texi: Likewise.
15803         * doc/posix-functions/roundl.texi: Likewise.
15804         * doc/posix-functions/truncf.texi: Likewise.
15805         * doc/posix-functions/trunc.texi: Likewise.
15806         * doc/posix-functions/truncl.texi: Likewise.
15807
15808 2010-12-20  Bruno Haible  <bruno@clisp.org>
15809
15810         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
15811         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
15812         * doc/posix-functions/round.texi: Likewise.
15813         * doc/posix-functions/roundl.texi: Likewise.
15814
15815 2010-12-20  Bruno Haible  <bruno@clisp.org>
15816
15817         ttyname_r: Add missing declaration on HP-UX 11.
15818         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
15819         HAVE_TTYNAME_R.
15820         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
15821         declared. Set HAVE_TTYNAME_R always.
15822         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15823         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
15824         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
15825         HAVE_TTYNAME_R.
15826         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
15827
15828 2010-12-20  Bruno Haible  <bruno@clisp.org>
15829
15830         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
15831         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
15832         * doc/posix-functions/getlogin_r.texi: Likewise.
15833         * tests/test-getlogin.c: Include <errno.h>.
15834         (main): Avoid test failure on HP-UX 11.11.
15835         * tests/test-getlogin_r.c (main): Likewise.
15836
15837 2010-12-20  Bruno Haible  <bruno@clisp.org>
15838
15839         getlogin_r: Add missing declaration on HP-UX 11.
15840         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
15841         declared also when it exists as a function.
15842         * doc/posix-functions/getlogin_r.texi: Document this workaround.
15843
15844 2010-12-20  Bruno Haible  <bruno@clisp.org>
15845
15846         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
15847         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
15848         through wcrtomb.
15849
15850 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
15851
15852         ftoastr: fix comment
15853         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
15854         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
15855
15856 2010-12-19  Bruno Haible  <bruno@clisp.org>
15857
15858         isnan: Ensure it is a macro.
15859         * lib/math.in.h (isnan): Define as a macro if not already a macro.
15860         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
15861         Solaris.
15862
15863 2010-12-19  Bruno Haible  <bruno@clisp.org>
15864
15865         ldexpl test: Fix link error on OSF/1 5.1.
15866         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
15867
15868 2010-12-19  Bruno Haible  <bruno@clisp.org>
15869
15870         wctype: Make it work in C++ mode on OSF/1 5.1.
15871         * lib/wctype.in.h (iswblank): Declare but not define here.
15872         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
15873         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
15874         * modules/wctype (Files): Add lib/iswblank.c.
15875
15876 2010-12-19  Bruno Haible  <bruno@clisp.org>
15877
15878         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
15879         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
15880         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
15881
15882 2010-12-19  Bruno Haible  <bruno@clisp.org>
15883
15884         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
15885         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
15886         _POSIX_PII_SOCKET.
15887         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
15888         * doc/posix-functions/recvfrom.texi: Likewise.
15889         * doc/posix-functions/send.texi: Likewise.
15890         * doc/posix-functions/sendto.texi: Likewise.
15891
15892 2010-12-19  Bruno Haible  <bruno@clisp.org>
15893
15894         tcgetsid: Add missing declaration on OSF/1 5.1.
15895         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
15896         HAVE_TCGETSID.
15897         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
15898         Don't set HAVE_TCGETSID.
15899         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
15900         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
15901         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
15902         HAVE_TCGETSID.
15903         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
15904
15905 2010-12-19  Bruno Haible  <bruno@clisp.org>
15906
15907         stdio: Fix problem with popen() declaration on OSF/1 5.1.
15908         * lib/stdio.in.h: During the include_next statement, let recursive
15909         includes of this file include only the system header file.
15910
15911 2010-12-19  Bruno Haible  <bruno@clisp.org>
15912
15913         iconv_open: Fix regression from 2010-12-04.
15914         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
15915         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
15916
15917 2010-12-19  Bruno Haible  <bruno@clisp.org>
15918
15919         stdbool test: Avoid a gcc warning.
15920         * tests/test-stdbool.c (main): Fail if e1 is false.
15921         Reported by Jim Meyering.
15922
15923 2010-12-19  Jim Meyering  <meyering@redhat.com>
15924
15925         setenv: restore to working order
15926         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
15927         mistakenly removed.
15928         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
15929         HAVE_SETENV.
15930         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
15931         HAVE_SETENV.
15932
15933 2010-12-19  Bruno Haible  <bruno@clisp.org>
15934
15935         Document some different function declarations on OSF/1 5.1.
15936         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
15937         * doc/posix-functions/inet_ntop.texi: Likewise.
15938         * doc/posix-functions/gethostname.texi: Likewise.
15939         * lib/unistd.in.h (gethostname): Update comment.
15940
15941 2010-12-19  Bruno Haible  <bruno@clisp.org>
15942
15943         doc: Mention vasprintf-posix module.
15944         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
15945         the 'vasprintf-posix' module.
15946         * doc/glibc-functions/vasprintf.texi: Likewise.
15947
15948 2010-12-19  Bruno Haible  <bruno@clisp.org>
15949
15950         unsetenv: Add missing declaration on OSF/1 5.1.
15951         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
15952         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
15953         Don't set HAVE_UNSETENV. In the test program, set _BSD.
15954         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
15955         not HAVE_UNSETENV.
15956         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
15957         HAVE_UNSETENV.
15958         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
15959
15960 2010-12-19  Bruno Haible  <bruno@clisp.org>
15961
15962         setenv: Add missing declaration on OSF/1 5.1.
15963         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
15964         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
15965         declared. Don't set HAVE_SETENV.
15966         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
15967         not HAVE_SETENV.
15968         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
15969         HAVE_SETENV.
15970         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
15971
15972 2010-12-19  Bruno Haible  <bruno@clisp.org>
15973
15974         nl_langinfo tests: Avoid gcc warning.
15975         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
15976
15977 2010-12-19  Bruno Haible  <bruno@clisp.org>
15978
15979         mknod: Avoid error in C++ mode on OSF/1 with GCC.
15980         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
15981         _GL_CXXALIAS_SYS.
15982
15983 2010-12-19  Bruno Haible  <bruno@clisp.org>
15984
15985         stdbool: Relax test.
15986         * tests/test-stdbool.c (e): Don't require that casts from a variable's
15987         address to 'bool' work in static initializer, for compilers other than
15988         GCC.
15989
15990 2010-12-19  Bruno Haible  <bruno@clisp.org>
15991
15992         ftello: Add missing declaration on OSF/1 5.1.
15993         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
15994         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
15995         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
15996         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
15997         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
15998
15999 2010-12-19  Bruno Haible  <bruno@clisp.org>
16000
16001         fseeko: Add missing declaration on OSF/1 5.1.
16002         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
16003         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
16004         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
16005         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
16006         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
16007
16008 2010-12-19  Bruno Haible  <bruno@clisp.org>
16009
16010         fchdir: Add missing declaration on OSF/1 5.1.
16011         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
16012         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
16013         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
16014         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
16015         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
16016
16017 2010-12-19  Bruno Haible  <bruno@clisp.org>
16018
16019         relocatable-prog-wrapper: Separate from relocatable-prog.
16020         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
16021         uninstall-relocwrapper rule here.
16022         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
16023         Reported by Ian Beckwith <ianb@erislabs.net>.
16024
16025 2010-12-19  Bruno Haible  <bruno@clisp.org>
16026
16027         unistr/u8-mbsnlen: Add missing dependency.
16028         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
16029         Reported by Ian Beckwith <ianb@erislabs.net>.
16030
16031 2010-12-19  Bruno Haible  <bruno@clisp.org>
16032
16033         iconv: Make it possible again to use this module without 'iconv-h'.
16034         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
16035         if it is not defined.
16036         Reported by Ian Beckwith <ianb@erislabs.net>.
16037
16038 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
16039
16040         acl: port to Solaris 8 when copying from tmpfs to ufs
16041         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
16042         error number.  Problem observed on Solaris 8 with latest
16043         coreutils, with "mv A B", where A is on a tmpfs file system and B
16044         is on a ufs file system.  This caused coreutils' mv/part-symlink
16045         test to fail.
16046
16047         tests: set fail=0 at start
16048         * tests/init.sh (setup_): Move fail=0 initialization here ...
16049         (mktempd_): ... from here, so that tests can rely on fail being
16050         set to 0 initially.  This fixes a problem in coreutils; see:
16051         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
16052
16053 2010-12-18  Bruno Haible  <bruno@clisp.org>
16054
16055         memmem-simple: Stylistic changes.
16056         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
16057         Fix preprocessor directive indentation.
16058
16059 2010-12-15  Pádraig Brady <P@draigBrady.com>
16060
16061         memmem, memmem-simple: reorganize and expand empty needle check
16062         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
16063         functional checks to memmem-simple so that one has a fully functional
16064         memmem by using just this module.
16065         Restrict the performance only check to the memmem module.
16066         Also expand the empty needle check to ensure the correct
16067         pointer is returned, not just a non NULL pointer.
16068         * doc/glibc-functions/memmem.texi: Rearrange the portability
16069         documentation to correlate with the rearranged checks.
16070         Clarify exactly how the memmem and memmem-simple modules
16071         relate to each other.
16072
16073 2010-12-15  Pádraig Brady <P@draigBrady.com>
16074             Bruno Haible  <bruno@clisp.org>
16075
16076         Improve cross-compilation guesses for uClibc.
16077         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
16078         that uClibc does not have the glibc bug.
16079         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
16080         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
16081
16082 2010-12-14  Eric Blake  <eblake@redhat.com>
16083
16084         configmake: provide fallbacks for oldest supported autotools
16085         * m4/configmake.m4: New file.
16086         * modules/configmake (Files): Ship it.
16087         (configure.ac): Use it to guarantee fallbacks.
16088
16089 2010-12-13  Pádraig Brady <P@draigBrady.com>
16090
16091         read-file: Improve handling of large files
16092         * lib/read-file.c (fread_file): Minimize realloc()s
16093         for regular files, and better manage sizes around SIZE_MAX.
16094
16095 2010-12-13  Eric Blake  <eblake@redhat.com>
16096
16097         cloexec, fcntl: relax license
16098         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
16099         consent from all contributors.
16100         * modules/fcntl (License): Likewise.
16101
16102 2010-12-10  Bruno Haible  <bruno@clisp.org>
16103
16104         Tests for module 'pipe-posix'.
16105         * modules/pipe-posix-tests: New file.
16106         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
16107
16108 2010-12-10  Bruno Haible  <bruno@clisp.org>
16109
16110         pipe-posix: Make it work in C++ mode.
16111         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
16112         (pipe): Use common idiom, not a macro definition.
16113         * lib/pipe.c: New file.
16114         * m4/pipe.m4: New file.
16115         * modules/pipe-posix (Description): Enhance.
16116         (Files): Add lib/pipe.c, m4/pipe.m4.
16117         (configure.ac): Invoke gl_FUNC_PIPE.
16118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
16119         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
16120         * tests/test-unistd-c++.cc: Check the signature of pipe.
16121
16122 2010-12-10  Bruno Haible  <bruno@clisp.org>
16123
16124         Rename module 'pipe' to 'spawn-pipe'.
16125         * modules/spawn-pipe: New file, renamed from modules/pipe.
16126         (Files, configure.ac, Makefile.am): Update.
16127         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
16128         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
16129         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
16130         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
16131         "spawn-pipe.h" instead of "pipe.h".
16132         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
16133         to gl_SPAWN_PIPE.
16134         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
16135         (Files, Makefile.am): Update.
16136         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
16137         Update.
16138         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
16139         Include "spawn-pipe.h" instead of "pipe.h".
16140         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
16141         * lib/javacomp.c: Likewise.
16142         * lib/javaversion.c: Likewise.
16143         * lib/pipe-filter-gi.c: Likewise.
16144         * lib/pipe-filter-ii.c: Likewise.
16145         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
16146         * modules/javacomp (Depends-on): Likewise.
16147         * modules/javaversion (Depends-on): Likewise.
16148         * modules/pipe-filter-gi (Depends-on): Likewise.
16149         * modules/pipe-filter-ii (Depends-on): Likewise.
16150         * MODULES.html.sh (Executing programs): Update.
16151         * NEWS: Mention the change.
16152
16153 2010-12-10  Eric Blake  <eblake@redhat.com>
16154
16155         pipe-posix: new module
16156         * modules/pipe-posix: New file.
16157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
16158         (gl_UNISTD_H): Check for declaration.
16159         * modules/unistd (Makefile.am): Substitute it.
16160         * lib/unistd.in.h (pipe): Provide it for mingw.
16161         * doc/posix-functions/pipe.texi (pipe): Update documentation.
16162         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
16163
16164 2010-12-07  Bruno Haible  <bruno@clisp.org>
16165
16166         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
16167         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
16168         u8_strcmp_gnu.
16169         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
16170
16171 2010-12-06  Bruno Haible  <bruno@clisp.org>
16172
16173         Update internal documentation.
16174         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
16175
16176 2010-12-04  Bruno Haible  <bruno@clisp.org>
16177
16178         Put more information about failed tests into the test return codes.
16179         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
16180         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
16181         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
16182         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
16183         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
16184         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
16185         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
16186         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16187         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
16188         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16189         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
16190         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
16191         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
16192         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16193         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
16194         returns a bit mask.
16195         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
16196         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
16197         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
16198         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
16199         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
16200         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
16201         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
16202         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
16203         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16204         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
16205         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16206         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
16207         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16208         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
16209         * m4/link.m4 (gl_FUNC_LINK): Likewise.
16210         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
16211         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
16212         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
16213         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16214         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
16215         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16216         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
16217         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
16218         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16219         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16220         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
16221         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
16222         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
16223         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
16224         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
16225         gl_PRINTF_PRECISION): Likewise.
16226         * m4/regex.m4 (gl_REGEX): Likewise.
16227         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16228         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
16229         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
16230         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16231         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16232         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16233         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16234         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
16235         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
16236         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
16237         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
16238         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
16239         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
16240         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
16241         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16242         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16243         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
16244         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16245         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16246         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
16247         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
16248         enumerated value.
16249         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
16250
16251 2010-12-04  Bruno Haible  <bruno@clisp.org>
16252
16253         Update for Solaris 11 2010-11.
16254         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
16255         Express, released in November 2010.
16256
16257 2010-12-04  Bruno Haible  <bruno@clisp.org>
16258
16259         nproc: Relax license.
16260         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
16261         and Paul Eggert.
16262         Requested by Ludovic Courtès <ludo@gnu.org>.
16263
16264 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
16265
16266         utimecmp: fine-grained src to nearby coarse-grained dest
16267
16268         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
16269         and the source is on a file system with higher-resolution time
16270         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
16271         not work, and the time stamps are close together, the algorithm to
16272         determine the exact resolution from the read-back mtime was buggy:
16273         it had a "!=" where it should have had an "==".  This bug has been
16274         in the code ever since it was introduced to gnulib.
16275         Problem reported by Dan Jacobson in
16276         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
16277
16278 2010-11-30  Bruno Haible  <bruno@clisp.org>
16279
16280         strerror_r-posix: Fix autoconf test.
16281         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
16282
16283 2010-11-28  Bruno Haible  <bruno@clisp.org>
16284             Paul Eggert  <eggert@cs.ucla.edu>
16285
16286         Tests for module 'getdomainname'.
16287         * modules/getdomainname-tests: New file.
16288         * tests/test-getdomainname.c: New file, based on
16289         tests/test-gethostname.c.
16290
16291 2010-11-28  Bruno Haible  <bruno@clisp.org>
16292             Paul Eggert  <eggert@cs.ucla.edu>
16293
16294         getdomainname: Use the system function when possible.
16295         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
16296         (getdomainname): Replace if needed. Provide the declaration if it is
16297         missing. Don't use _GL_CXXALIAS_SYS_CAST.
16298         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
16299         (getdomainname): When the system has getdomainname, call the system
16300         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
16301         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
16302         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
16303         found in libnsl. Look for the declaration also in <netdb.h>. Replace
16304         the function if its second argument is of type 'int' or if it is found
16305         in libnsl.
16306         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
16307         <sys/systeminfo.h> and sysinfo().
16308         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
16309         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16310         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
16311         HAVE_GETDOMAINNAME.
16312         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
16313         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
16314         * doc/glibc-functions/getdomainname.texi: Document the problems with
16315         the getdomainname declaration.
16316
16317 2010-11-28  Bruno Haible  <bruno@clisp.org>
16318
16319         sys_socket: Ensure ss_family field on AIX.
16320         * lib/sys_socket.in.h (ss_family): New macro definition.
16321         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
16322         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
16323         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
16324         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
16325         * modules/sys_socket (Makefile.am): Substitute
16326         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
16327         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
16328
16329 2010-11-27  Bruno Haible  <bruno@clisp.org>
16330
16331         readline: Improve configure output.
16332         * m4/readline.m4 (gl_FUNC_READLINE): Make the
16333         "checking for readline..." result understandable.
16334
16335 2010-11-27  Bruno Haible  <bruno@clisp.org>
16336
16337         *printf-posix: Detect a bug on Solaris 10/x86.
16338         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
16339         for floating-point output.
16340         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
16341         directive.
16342         * tests/test-snprintf-posix.h (test_function): Likewise.
16343         * tests/test-sprintf-posix.h (test_function): Likewise.
16344         * tests/test-vasprintf-posix.c (test_function): Likewise.
16345         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
16346         * doc/posix-functions/printf.texi: Likewise.
16347         * doc/posix-functions/snprintf.texi: Likewise.
16348         * doc/posix-functions/sprintf.texi: Likewise.
16349         * doc/posix-functions/vfprintf.texi: Likewise.
16350         * doc/posix-functions/vprintf.texi: Likewise.
16351         * doc/posix-functions/vsnprintf.texi: Likewise.
16352         * doc/posix-functions/vsprintf.texi: Likewise.
16353         * doc/glibc-functions/obstack_printf.texi: Likewise.
16354         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
16355
16356 2010-11-27  Bruno Haible  <bruno@clisp.org>
16357
16358         Fix link error when module libunistring-optional is in use.
16359         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
16360         * modules/striconveha-tests (Makefile.am): Likewise.
16361
16362 2010-11-27  Bruno Haible  <bruno@clisp.org>
16363
16364         regex: Mention link dependencies.
16365         * modules/regex (Link): New section.
16366         * modules/rpmatch (Link): Likewise.
16367         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
16368
16369 2010-11-27  Bruno Haible  <bruno@clisp.org>
16370
16371         ftoastr: Fix compilation error on Solaris.
16372         * lib/ftoastr.c: Include <config.h>.
16373
16374 2010-11-27  Bruno Haible  <bruno@clisp.org>
16375
16376         getloadavg: Update documentation.
16377         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
16378
16379 2010-11-27  Bruno Haible  <bruno@clisp.org>
16380
16381         sys_socket: Fix test whether the functions are declared.
16382         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
16383         not <sys/select.h>.
16384
16385 2010-11-27  Bruno Haible  <bruno@clisp.org>
16386
16387         getpass: Make sure to get system declaration on some platforms.
16388         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
16389         gl_USE_SYSTEM_EXTENSIONS.
16390         * modules/getpass (Depends-on): Add extensions.
16391
16392 2010-11-26  Bruno Haible  <bruno@clisp.org>
16393
16394         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
16395         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
16396         'iconv' module is present.
16397         (ICONV_CONST): New macro.
16398         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
16399         ICONV_CONST.
16400         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
16401         set ICONV_CONST.
16402         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
16403         here.
16404         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
16405         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
16406         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
16407         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
16408         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
16409         present.
16410
16411 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
16412
16413         ftoastr: comment fix
16414         * lib/ftoastr.c: "little" -> "little or no" in comment
16415
16416 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
16417
16418         stdint: port to GCC 4.3 + OSX + Octave
16419         On this platform, stdint.h is buggy and defines int64_t to long
16420         long int.  The replacement defined it to long int, causing
16421         problems with C++ style name mangling.  Instead, trust the system
16422         definition if INT64_MAX is defined, and likewise for the unsigned
16423         variant.   Problem reported by Jarno Rajahalme in
16424         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
16425         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
16426         and don't mess with int64_t and INT64_MAX in this case.
16427         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
16428
16429 2010-11-24  Bruno Haible  <bruno@clisp.org>
16430
16431         doc: Corrections regarding MacOS X 10.4 and 10.5.
16432         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
16433         MacOS X.
16434         Reported by Simon Josefsson.
16435
16436 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
16437
16438         Uninstall ".bin" files installed by relocwrapper.
16439         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
16440         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
16441         unless it is already there.
16442
16443 2010-11-21  Bruno Haible  <bruno@clisp.org>
16444
16445         Update for NetBSD 5.0.
16446         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
16447         NetBSD; the test fails on NetBSD 5.0.
16448         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
16449         about NetBSD.
16450
16451 2010-11-21  Bruno Haible  <bruno@clisp.org>
16452
16453         Update for HP-UX 11.23 and HP-UX 11.31.
16454         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
16455         HP-UX.
16456
16457 2010-11-21  Bruno Haible  <bruno@clisp.org>
16458
16459         Update for MacOS X 10.5.
16460         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
16461         MacOS X; the test fails on MacOS X 10.5.8.
16462         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
16463         about MacOS X.
16464
16465 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
16466
16467         bootstrap: add bootstrap_sync option.
16468         See discussion at
16469         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
16470         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
16471         * build-aux/bootstrap: Accept --bootstrap-sync to update
16472         bootstrap if it is not identical to the local gnulib's
16473         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
16474         enable this by default.  Accept --no-bootstrap-sync to disable
16475         it.
16476
16477 2010-11-20  Bruno Haible  <bruno@clisp.org>
16478
16479         Ensure that <features.h> is included before __GLIBC__ is tested.
16480         * lib/printf-parse.h: Include <features.h>.
16481         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
16482         Reported by Mike Frysinger <vapier@gentoo.org>.
16483
16484         Ensure that <features.h> is included before __GLIBC__ is tested.
16485         * lib/wchar.in.h: Include <features.h>.
16486         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
16487         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
16488         Reported by Mike Frysinger <vapier@gentoo.org>.
16489
16490         Ensure that <features.h> is included before __GLIBC__ is tested.
16491         * lib/arpa_inet.in.h: Include <features.h>.
16492         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
16493         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
16494         Reported by Mike Frysinger <vapier@gentoo.org>.
16495
16496         Ensure that <features.h> is included before __GLIBC__ is tested.
16497         * build-aux/link-warning.h: Include <features.h>.
16498         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
16499         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
16500         Reported by Mike Frysinger <vapier@gentoo.org>.
16501
16502         Ensure that <features.h> is included before __GLIBC__ is tested.
16503         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
16504         Reported by Mike Frysinger <vapier@gentoo.org>.
16505
16506 2010-11-20  Bruno Haible  <bruno@clisp.org>
16507
16508         memmem: Fix autoconf test.
16509         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
16510
16511 2010-11-20  Bruno Haible  <bruno@clisp.org>
16512
16513         Port to uClibc.
16514         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
16515         * lib/fcntl.in.h: Likewise.
16516         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
16517         * lib/mbrtowc.c (mbrtowc): Likewise.
16518         * lib/relocatable.c (find_shared_library_fullname): Likewise.
16519         * lib/strerror_r.c: Likewise.
16520         * lib/unistr/u8-strnlen.c: Likewise.
16521         * lib/vasnprintf.c (decimal_point_char): Likewise.
16522         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
16523         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
16524         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
16525         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
16526         * tests/test-sigaction.c (handler, main): Likewise.
16527         * lib/freading.h: Treat uClibc like a non-glibc platform.
16528         * lib/freading.c: Likewise.
16529         * lib/gettext.h: Likewise.
16530         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
16531         Likewise.
16532         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
16533         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
16534         * lib/propername.c (proper_name_utf8): Likewise.
16535         * lib/spawn.in.h: Likewise.
16536         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
16537         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
16538         mem_cd_iconveh_internal): Likewise.
16539         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
16540         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
16541         strstr, strcasestr): Likewise.
16542         * lib/unicodeio.c (unicode_to_mb): Likewise.
16543         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
16544         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
16545         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
16546         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
16547         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
16548         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
16549         * lib/unistr/u8-stpncpy.c: Likewise.
16550         * lib/vasnprintf.c (VASNPRINTF): Likewise.
16551         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
16552         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
16553         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
16554         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
16555         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
16556         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
16557         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
16558         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
16559         Likewise.
16560         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16561         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
16562         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
16563         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16564         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
16565         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16566         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16567         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
16568         * tests/test-getopt.h (OPTIND_MIN): Likewise.
16569         * tests/test-striconveha.c (main): Likewise.
16570         * tests/test-vasnprintf-posix.c (test_function): Likewise.
16571         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
16572         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
16573         * doc/posix-functions/getline.texi: Likewise.
16574         Reported by Mike Frysinger <vapier@gentoo.org>.
16575
16576 2010-11-20  Bruno Haible  <bruno@clisp.org>
16577
16578         nproc: Fix condition.
16579         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
16580         HAVE_PTHREAD_AFFINITY_NP.
16581
16582 2010-11-20  Bruno Haible  <bruno@clisp.org>
16583
16584         Fix a comment.
16585         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
16586
16587 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
16588
16589         ftoastr: don't assume snprintf
16590         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
16591         Implement a subset of snprintf here, by using sprintf safely.
16592         * modules/ftoastr (Depends-on): Remove snprintf.
16593
16594 2010-11-19  Jim Meyering  <meyering@redhat.com>
16595
16596         test-rename.h: fix compilation failure
16597         * tests/test-rename.h (test_rename): Add omitted "}".
16598
16599 2010-11-17  Jim Meyering  <meyering@redhat.com>
16600
16601         maint.mk: add a URL discussing the no-@acronym policy
16602         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
16603
16604 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
16605
16606         ftoastr: depend on snprintf, improve comments
16607         * lib/ftoastr.c: Also mention Loitsch's draft.
16608         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
16609         needed in the current implementation, but it might simplify
16610         speeding up the code later.
16611         * modules/ftoastr: Depend on snprintf; this improves portability.
16612         Suggested by Bruno Haible in the same email.
16613
16614         ftoastr: port to hosts lacking strtof and strtold
16615         Problem reported by Bruno Haible in
16616         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
16617         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
16618         environment and strtold (and presumably strtof) are not available.
16619         * modules/ftoastr (Files): Add m4/c-strtod.m4.
16620         (configure.ac): Require gl_C99_STRTOLD.
16621
16622 2010-11-18  Bruno Haible  <bruno@clisp.org>
16623
16624         c-strtold: Avoid link error on AIX 7.
16625         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
16626         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
16627         (gl_C_STRTOLD): Test whether strtold_l exists.
16628         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16629
16630 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
16631
16632         intprops: new macro INT_BITS_STRLEN_BOUND
16633         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
16634         ftoastr.h.  This exposes an internal of intprops.h that was formerly
16635         not exposed.  Also, it uses a slightly tighter bound than before;
16636         though this makes no practical difference, we might as well be as
16637         tight as we easily can.
16638
16639         ftoastr: new module, for lossless conversion of floats to short strings
16640         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
16641         * modules/ftoastr: New files.
16642
16643 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
16644
16645         bootstrap: port to Solaris sed
16646         * build-aux/bootstrap (get_version): Port to Solaris sed.
16647         See Ralf Wildenhues's note in
16648         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
16649
16650 2010-11-14  Jim Meyering  <meyering@redhat.com>
16651
16652         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
16653         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
16654         and move definition closer to sole use.
16655
16656 2010-11-13  Jim Meyering  <meyering@redhat.com>
16657
16658         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
16659         Now we require at least autoconf-2.59, which means the work-around
16660         is no longer needed.
16661         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
16662         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
16663         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
16664         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
16665         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
16666
16667 2010-11-13  Bruno Haible  <bruno@clisp.org>
16668
16669         rename, renameat: Avoid test failures at NFS mounted locations.
16670         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
16671         functions.
16672         (test_rename): Use assert_nonexistent.
16673         * tests/test-rename.c: Include <dirent.h>.
16674         * tests/test-renameat.c: Likewise.
16675         Reported by Gary V. Vaughan <gary@gnu.org>.
16676
16677         rename, renameat: Document Linux bug with NFS
16678         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
16679         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
16680         * doc/posix-functions/renameat.texi: Likewise.
16681         Suggested by Eric Blake.
16682
16683 2010-11-13  Bruno Haible  <bruno@clisp.org>
16684
16685         rename test: Add comments.
16686         * tests/test-rename.h (test_rename): Add structure and comments.
16687
16688 2010-11-13  Eric Blake  <eblake@redhat.com>
16689
16690         maintainer-makefile: cover a few more files
16691         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
16692         scripts generated within C files, for libvirt.
16693
16694 2010-11-13  Bruno Haible  <bruno@clisp.org>
16695
16696         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
16697         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
16698         character, return the number of bytes that belong together, not always
16699         1.
16700         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
16701         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
16702         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
16703         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
16704         number of bytes of an invalid character.
16705         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
16706         (main): Invoke it.
16707         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
16708         results.
16709         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
16710         malformed byte sequences.
16711         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
16712         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
16713         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
16714         Reported by Ben Pfaff and Paolo Bonzini.
16715
16716 2010-11-13  Bruno Haible  <bruno@clisp.org>
16717
16718         openat: Work around glibc bug with fchownat() and empty file names.
16719         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
16720         (gl_FUNC_FCHOWNAT): Invoke it.
16721         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
16722         * doc/posix-functions/fchownat.texi: Document the glibc bug.
16723         Reported by Gary V. Vaughan <gary@gnu.org>.
16724
16725 2010-11-13  Bruno Haible  <bruno@clisp.org>
16726
16727         openat: Ensure autoconf macro ordering.
16728         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
16729         gl_USE_SYSTEM_EXTENSIONS.
16730         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
16731
16732 2010-11-13  Bruno Haible  <bruno@clisp.org>
16733
16734         Update comments.
16735         * lib/unistr/u8-check.c: Update file name in comments.
16736         * lib/unistr/u8-mblen.c: Likewise.
16737         * lib/unistr/u8-prev.c: Likewise.
16738         * lib/unistr/u8-strmblen.c: Likewise.
16739         * lib/unistr/u8-strmbtouc.c: Likewise.
16740
16741 2010-11-13  Jim Meyering  <meyering@redhat.com>
16742
16743         tests: avoid test failure on Solaris 10 due to lack of PATH export
16744         * tests/test-update-copyright.sh: Don't forget to export PATH.
16745
16746         init.sh: ensure that IFS is defined, just in case...
16747         * tests/init.sh (setup_): Ensure that IFS is defined,
16748         so that saving and restoring it works as expected.  This
16749         appears to be useful at least for an old version of dash
16750         from a long time ago (RH 6).  See here for details:
16751         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
16752
16753         maint.mk: tighten "test a == b" check
16754         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
16755         test to files that contain something like #!/bin/sh.
16756         Without this, coreutils would get two false positives in
16757         the comments of C source files.
16758
16759 2010-11-12  Eric Blake  <eblake@redhat.com>
16760
16761         bootstrap: fix typo in previous attempt
16762         * build-aux/bootstrap (buildreq): Correct the grouping.
16763         Reported by Paul Eggert.
16764
16765         maintainer-makefile: prohibit test x == x
16766         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
16767         Based on a report by Matthias Bolte.
16768
16769         bootstrap: allow FreeBSD gzip
16770         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
16771         which has no '.' and goes to stderr.
16772         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
16773         Reported by Matthias Bolte.
16774
16775         maintainer-makefile: check for i18n setup
16776         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
16777         will likely work.
16778
16779 2010-11-12  Bruno Haible  <bruno@clisp.org>
16780
16781         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
16782         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
16783         * lib/nanosleep.c (nanosleep): Likewise.
16784
16785 2010-11-11  Bruno Haible  <bruno@clisp.org>
16786
16787         fcntl-h: Fix for use of C++ on glibc systems.
16788         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
16789         also on glibc systems in C++ mode.
16790         Reported by Gary V. Vaughan <gary@gnu.org>.
16791
16792 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
16793
16794         mknod: avoid false failure with dash
16795         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
16796
16797 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
16798
16799         unlink: Fix "is it should" typo in diagnostic.
16800         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
16801         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
16802
16803 2010-11-11  Bruno Haible  <bruno@clisp.org>
16804
16805         Tests for module 'strerror_r-posix'.
16806         * modules/strerror_r-posix-tests: New file.
16807         * tests/test-strerror_r.c: New file.
16808         * tests/test-string-c++.cc: Check the signature of strerror_r.
16809
16810         New module 'strerror_r-posix'.
16811         * lib/string.in.h (strerror_r): New declaration.
16812         * lib/strerror_r.c: New file.
16813         * m4/strerror_r.m4: New file.
16814         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
16815         of strerror_r.
16816         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
16817         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
16818         * modules/strerror_r-posix: New file.
16819         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
16820         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
16821         * doc/posix-functions/strerror_r.texi: Mention the new module and the
16822         portability problems.
16823
16824 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
16825
16826         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
16827         line is also considered for output. Quoted function name in shell
16828         command, so temporary files for functions like MyClass::operator()
16829         are removed correctly without errors.
16830
16831 2010-11-09  Bruno Haible  <bruno@clisp.org>
16832
16833         * doc/posix-functions/strerror.texi: List more failing platforms.
16834
16835         * doc/posix-functions/strerror.texi: Add a comment.
16836
16837 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
16838
16839         fdopendir: fix bug on MacOS X when low on file descriptors
16840
16841         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
16842         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
16843         All callers changed.
16844         (fdopendir): Invoke save_cwd at the top level, not after using
16845         multiple dup() calls to use up file descriptors.  Then retry
16846         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
16847         less than the maximum number of open file descriptors, because
16848         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
16849         on Mac OS X 10.6.4 for tar 1.24
16850         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
16851         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
16852         and for tar 1.25
16853         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
16854
16855 2010-11-07  Bruno Haible  <bruno@clisp.org>
16856
16857         vasnprintf: Support I flag on glibc systems.
16858         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
16859         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
16860         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
16861         snprintf function.
16862         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
16863         glibc systems.
16864         * tests/test-vasnprintf-posix3.c: New file.
16865         * modules/vasnprintf-posix-tests (Files): Add it.
16866         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
16867
16868 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
16869
16870         [html] Fix copy/paste bug: Use unique name for compiler warnings.
16871         * MODULES.html.sh: For compiler warnings, use name
16872         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
16873
16874 2010-11-05  Eric Blake  <eblake@redhat.com>
16875
16876         ceil, floor: avoid spurious failure with icc
16877         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
16878         [denormals-as-zero] when optimizing without -mieee-fp option.
16879         * tests/test-floorf2.c (floorf_reference): Likewise.
16880         * tests/test-ceilf1.c (dummy): New function.
16881         (main): Use it to outsmart icc's optimization.
16882         * tests/test-floorf1.c (dummy, main): Likewise.
16883
16884         tests: require working signbit
16885         * modules/ceilf-tests (Depends-on): Add signbit.
16886         * modules/ceill-tests (Depends-on): Likewise.
16887         * modules/floorf-tests (Depends-on): Likewise.
16888         * modules/floorl-tests (Depends-on): Likewise.
16889         * modules/round-tests (Depends-on): Likewise.
16890         * modules/roundf-tests (Depends-on): Likewise.
16891         * modules/roundl-tests (Depends-on): Likewise.
16892         * modules/trunc-tests (Depends-on): Likewise.
16893         * modules/truncf-tests (Depends-on): Likewise.
16894         * modules/truncl-tests (Depends-on): Likewise.
16895
16896         strtod: work around icc bug
16897         * lib/strtod.c (minus_zero): Define to working value.
16898         (strtod): Use it to avoid icc bug.
16899
16900         copysign: enhance tests
16901         * modules/copysign-tests (Files): Add minus-zero.h.
16902         * tests/test-copysign.c (main): Also test zeros.
16903
16904 2010-11-04  Eric Blake  <eblake@redhat.com>
16905
16906         ceil, floor, round, trunc: enhance tests of -0
16907         * tests/test-ceilf1.c (main): Ensure correct sign of result.
16908         * tests/test-ceill.c (main): Likewise.
16909         * tests/test-floorf1.c (main): Likewise.
16910         * tests/test-floorl.c (main): Likewise.
16911         * tests/test-round1.c (main): Likewise.
16912         * tests/test-roundf1.c (main): Likewise.
16913         * tests/test-roundl.c (main): Likewise.
16914         * tests/test-trunc1.c (main): Likewise.
16915         * tests/test-truncf1.c (main): Likewise.
16916         * tests/test-truncl.c (main): Likewise.
16917
16918 2010-11-04  Eric Blake  <eblake@redhat.com>
16919
16920         frexp, tests: work around ICC bug with -zero
16921         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
16922         works with more compilers.
16923         * tests/minus-zero.h: New file.
16924         * modules/ceilf-tests (Files): Include it.
16925         * modules/ceill-tests (Files): Likewise.
16926         * modules/floorf-tests (Files): Likewise.
16927         * modules/floorl-tests (Files): Likewise.
16928         * modules/frexp-nolibm-tests (Files): Likewise.
16929         * modules/frexp-tests (Files): Likewise.
16930         * modules/frexpl-nolibm-tests (Files): Likewise.
16931         * modules/frexpl-tests (Files): Likewise.
16932         * modules/isnan-tests (Files): Likewise.
16933         * modules/isnand-nolibm-tests (Files): Likewise.
16934         * modules/isnand-tests (Files): Likewise.
16935         * modules/isnanf-nolibm-tests (Files): Likewise.
16936         * modules/isnanf-tests (Files): Likewise.
16937         * modules/isnanl-nolibm-tests (Files): Likewise.
16938         * modules/isnanl-tests (Files): Likewise.
16939         * modules/round-tests (Files): Likewise.
16940         * modules/roundf-tests (Files): Likewise.
16941         * modules/roundl-tests (Files): Likewise.
16942         * modules/ldexpl-tests (Files): Likewise.
16943         * modules/signbit-tests (Files): Likewise.
16944         * modules/snprintf-posix-tests (Files): Likewise.
16945         * modules/sprintf-posix-tests (Files): Likewise.
16946         * modules/strtod-tests (Files): Likewise.
16947         * modules/trunc-tests (Files): Likewise.
16948         * modules/truncf-tests (Files): Likewise.
16949         * modules/truncl-tests (Files): Likewise.
16950         * modules/vsnprintf-posix-tests (Files): Likewise.
16951         * modules/vsprintf-posix-tests (Files): Likewise.
16952         * modules/vasnprintf-posix-tests (Files): Likewise.
16953         * modules/vasprintf-posix-tests (Files): Likewise.
16954         * tests/test-ceilf1.c (main): Use it.
16955         * tests/test-ceill.c (main): Likewise.
16956         * tests/test-floorf1.c (main): Likewise.
16957         * tests/test-floorl.c (main): Likewise.
16958         * tests/test-frexp.c (main): Likewise.
16959         * tests/test-frexpl.c (main): Likewise.
16960         * tests/test-isnan.c (main): Likewise.
16961         * tests/test-isnand.h (main): Likewise.
16962         * tests/test-isnanf.h (main): Likewise.
16963         * tests/test-isnanl.h (main): Likewise.
16964         * tests/test-ldexpl.c (main): Likewise.
16965         * tests/test-round.c (main): Likewise.
16966         * tests/test-roundf.c (main): Likewise.
16967         * tests/test-roundl.c (main): Likewise.
16968         * tests/test-signbit.c (test_signbitf, test_signbitd)
16969         (test_signbitl): Likewise.
16970         * tests/test-snprintf-posix.h (test_function): Likewise.
16971         * tests/test-sprintf-posix.h (test_function): Likewise.
16972         * tests/test-strtod.c (main): Likewise.
16973         * tests/test-trunc1.c (main): Likewise.
16974         * tests/test-truncf1.c (main): Likewise.
16975         * tests/test-truncl.c (main): Likewise.
16976
16977         isnanl: work around icc bug
16978         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
16979
16980 2010-11-03  Eric Blake  <eblake@redhat.com>
16981
16982         tests: fix compiler warnings
16983         * tests/test-getopt.h (test_getopt): Fix condition.
16984         * tests/test-getopt_long.h (test_getopt_long): Likewise.
16985         * tests/test-pipe2.c (main): Likewise.
16986         * tests/test-quotearg-simple.c (main): Avoid icc warning.
16987
16988         utimens: fix broken m4 test
16989         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
16990
16991 2010-10-28  Bruno Haible  <bruno@clisp.org>
16992
16993         posix_spawn*, getdtablesize: Relax license.
16994         * modules/posix_spawn (License): Change to LGPLv2+.
16995         * modules/posix_spawnp (License): Likewise.
16996         * modules/posix_spawn-internal (License): Likewise.
16997         * modules/posix_spawnattr_init (License): Likewise.
16998         * modules/posix_spawnattr_getflags (License): Likewise.
16999         * modules/posix_spawnattr_setflags (License): Likewise.
17000         * modules/posix_spawnattr_getpgroup (License): Likewise.
17001         * modules/posix_spawnattr_setpgroup (License): Likewise.
17002         * modules/posix_spawnattr_getschedparam (License): Likewise.
17003         * modules/posix_spawnattr_setschedparam (License): Likewise.
17004         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
17005         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
17006         * modules/posix_spawnattr_getsigdefault (License): Likewise.
17007         * modules/posix_spawnattr_setsigdefault (License): Likewise.
17008         * modules/posix_spawnattr_getsigmask (License): Likewise.
17009         * modules/posix_spawnattr_setsigmask (License): Likewise.
17010         * modules/posix_spawnattr_destroy (License): Likewise.
17011         * modules/posix_spawn_file_actions_init (License): Likewise.
17012         * modules/posix_spawn_file_actions_addclose (License): Likewise.
17013         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
17014         * modules/posix_spawn_file_actions_addopen (License): Likewise.
17015         * modules/posix_spawn_file_actions_destroy (License): Likewise.
17016         * modules/getdtablesize (License): Likewise.
17017         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
17018
17019 2010-10-26  Bruno Haible  <bruno@clisp.org>
17020
17021         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
17022         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
17023         Cygwin and mingw.
17024         Suggested by Eric Blake.
17025
17026 2010-10-26  Bruno Haible  <bruno@clisp.org>
17027
17028         stdio: Work around compilation error due to renameat() on Solaris 10.
17029         * lib/stdio.in.h: Include <unistd.h> on Solaris.
17030         * lib/renameat.c: Don't include <unistd.h> here.
17031         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
17032         Reported by Paul Eggert and Eric Blake.
17033
17034 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
17035
17036         renameat: port to Solaris 10, which declares renameat in unistd.h
17037
17038         * lib/renameat.c: Include unistd.h before stdio.h, because
17039         Solaris 10 declares renameat in unistd.h.  Problem encountered
17040         when building GNU tar 1.24 on Solaris 10.
17041
17042 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17043
17044         fdopendir: fix C89 compilation
17045         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
17046         compilers.
17047
17048 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
17049
17050         inttostr: simplify by removing unnecessary redundancy
17051         * lib/anytostr.c: Don't include verify.h.
17052         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
17053         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
17054         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
17055         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
17056         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
17057         Likewise.
17058         * modules/inttostr (Depends-on): Remove 'verify'.
17059
17060 2010-10-23  Bruno Haible  <bruno@clisp.org>
17061
17062         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
17063         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
17064         Reported by Eric Blake.
17065
17066 2010-10-23  Bruno Haible  <bruno@clisp.org>
17067
17068         Tests: Fix LOCALE_JA on MirBSD 10.
17069         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
17070         to an UTF-8 locale.
17071         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
17072         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17073         Reported by Eric Blake.
17074
17075 2010-10-21  Bruno Haible  <bruno@clisp.org>
17076
17077         nl_langinfo test: Avoid test failure on NetBSD 5.
17078         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
17079         Reported by Eric Blake.
17080
17081 2010-10-21  Eric Blake  <eblake@redhat.com>
17082
17083         c-stack: work around libsigsegv 2.8 bug
17084         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
17085         overflow on at least PowerPC64.
17086
17087 2010-10-17  Bruno Haible  <bruno@clisp.org>
17088
17089         userspec: Drop redundant file.
17090         * modules/userspec (Files): Remove lib/inttostr.h.
17091
17092 2010-10-17  Bruno Haible  <bruno@clisp.org>
17093
17094         nl_langinfo tests: Silence some warnings.
17095         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
17096         Reported by Jim Meyering.
17097
17098 2010-10-17  Bruno Haible  <bruno@clisp.org>
17099
17100         Make use of GCC's attribute __alloc_size__.
17101         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
17102         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
17103         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
17104         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
17105         __alloc_size__.
17106         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
17107         Suggested by Jim Meyering.
17108
17109 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
17110
17111         bootstrap: anchor .gitignore entries.
17112         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
17113         with...
17114         (insert_vc_ignore): ... this new function, which prepends `/' to
17115         all .gitignore entries before passing them to
17116         insert_sorted_if_absent.
17117
17118 2010-10-16  Bruno Haible  <bruno@clisp.org>
17119
17120         nextafter: Fix configure check.
17121         * modules/nextafter (configure.ac): Correct expected prototype.
17122
17123 2010-10-16  Bruno Haible  <bruno@clisp.org>
17124
17125         termios: Update documentation.
17126         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
17127
17128 2010-10-16  Bruno Haible  <bruno@clisp.org>
17129
17130         tests: Make them compile with TinyCC.
17131         * tests/test-strstr.c (main): Remove parentheses around array
17132         initializer.
17133
17134 2010-10-15  Eric Blake  <eblake@redhat.com>
17135
17136         ignore-value: make header idempotent
17137         * lib/ignore-value.h: Add double-inclusion guards.
17138         Reported by Stefan Berger.
17139
17140 2010-10-15  Jim Meyering  <meyering@redhat.com>
17141
17142         GNUmakefile: handle "stable" target, not "major"
17143         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
17144         lists in maint.mk and announce-gen.  Without this, "make stable"
17145         would fail to ensure that $(VERSION) is up to date.
17146
17147 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
17148
17149         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
17150         & co.
17151
17152 2010-10-14  Bruno Haible  <bruno@clisp.org>
17153
17154         vasnprintf: Don't set errno to 0.
17155         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
17156         block that sets it to 0.
17157         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
17158
17159 2010-10-14  Bruno Haible  <bruno@clisp.org>
17160
17161         socketlib: Fix.
17162         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
17163         gl_PREREQ_SYS_H_WINSOCK2.
17164         Reported by Ian Beckwith <ianb@erislabs.net>.
17165
17166 2010-10-13  Jim Meyering  <meyering@redhat.com>
17167
17168         test-select-stdin.c: avoid warn_unused_result warnings
17169         * tests/test-select-stdin.c: Include "macros.h".
17170         ASSERT that read and fflush succeed.
17171
17172 2010-10-13  Jim Meyering  <meyering@redhat.com>
17173
17174         git-version-gen: do require git-VC'd files in cwd
17175         * build-aux/git-version-gen: Reject a git version string
17176         if there are no commits associated with the current directory.
17177         This avoids an unlikely false-positive (unrelated dir whose parent
17178         repository also contains a tag matching v*), as pointed out
17179         by Giuseppe Scrivano in
17180         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
17181
17182 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
17183
17184         argv-iter: omit nonconforming declaration
17185         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
17186         enum arg_iter_err declaration, which doesn't conform to C99.
17187         Solaris 10 cc warns about this.
17188
17189 2010-10-13  Eric Blake  <eblake@redhat.com>
17190
17191         termios: fix compilation on mingw
17192         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
17193         (gl_TERMIOS_H): Adjust it on mingw.
17194         * modules/termios (Makefile.am): Substitute new key.
17195         * lib/termios.in.h (includes): Make include_next conditional.
17196         * doc/posix-headers/termios.texi (termios.h): Update
17197         documentation.
17198         Reported by Daniel P. Berrange.
17199
17200 2010-10-13  Jim Meyering  <meyering@redhat.com>
17201
17202         git-version-gen: don't require that .git/ be in the current dir
17203         * build-aux/git-version-gen: Adjust this script so that it works
17204         when run from any working directory beneath the top-level .git/-
17205         containing directory.  Inspired by a patch from Giuseppe Scrivano,
17206         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
17207
17208         test-select: avoid warn_unused_result warnings
17209         * tests/test-select.c: Include "macros.h".
17210         ASSERT that each call to read, write, and pipe succeeds.
17211         While not technically required, also check each "close".
17212         * modules/select-tests (Files): Add tests/macros.h.
17213
17214         test-symlinkat: remove declaration of unused local
17215         * tests/test-symlinkat.c (main): Remove unused local, "buf".
17216
17217         test-inttostr: avoid shadowing warnings
17218         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
17219         and use malloc rather than the stack for the same reason as
17220         mentioned in the comment justifying the other allocation.
17221
17222 2010-10-11  Bruno Haible  <bruno@clisp.org>
17223
17224         stdlib: Allow multiple gnulib generated replacements to coexist.
17225         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
17226         Reported by Sam Steingold <sds@gnu.org>.
17227
17228 2010-10-11  Jim Meyering  <meyering@redhat.com>
17229
17230         fix a documentation typo
17231         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
17232
17233 2010-10-11  Eric Blake  <eblake@redhat.com>
17234
17235         futimens: work around Solaris 11 bug
17236         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
17237         * tests/test-futimens.h (test_futimens): Enhance, rather than
17238         weaken test.
17239         * doc/posix-functions/futimens.texi (futimens): Document the bug.
17240
17241 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
17242
17243         Indentation.
17244         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
17245         higher-level operators more to the left.
17246
17247 2010-10-11  Jim Meyering  <meyering@redhat.com>
17248
17249         test-futimens: avoid unwarranted test failure on Solaris 5.11
17250         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
17251         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
17252         because it tries to dereference the NULL name argument.
17253
17254 2010-10-11  Bruno Haible  <bruno@clisp.org>
17255
17256         Indentation.
17257         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
17258         indentation.
17259
17260 2010-10-11  Jim Meyering  <meyering@redhat.com>
17261
17262         spawn.in.h: make indentation consistent with parentheses
17263         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
17264         Make indentation consistent with parentheses.
17265
17266 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
17267
17268         Fix mismatched parens in previous commit
17269         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
17270         parens.
17271
17272 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
17273
17274         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
17275
17276         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
17277         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
17278         * lib/malloca.c: Include "verify.h".
17279         (verify1): Remove, replacing with a verify call.
17280         * lib/relocwrapper.c (verify1): Likewise.
17281         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
17282         Likewise.
17283         * modules/malloca (Depends-on): Add 'verify'.
17284         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
17285         * modules/vasnprintf (Depends-on): Add 'verify'.
17286         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17287         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17288         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17289         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17290         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17291         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17292         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17293
17294         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
17295
17296         Formerly the style was sometimes 2*X - 1, because the C standard
17297         was wrongly thought to disallow ?: in integral constant expressions.
17298         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
17299         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
17300         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
17301         * lib/stdint.in.h (_verify_intmax_size): Likewise.
17302         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
17303         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
17304         verify that time_t cannot be floating.
17305
17306 2010-10-08  Eric Blake  <eblake@redhat.com>
17307
17308         time: enforce recent POSIX ruling that time_t is integral
17309         * lib/time.in.h (__time_t_must_be_integral): Detect any
17310         problematic systems, allowing the rest of gnulib to assume POSIX.
17311
17312 2010-10-08  Jim Meyering  <meyering@redhat.com>
17313
17314         fdopendir: fix a bug on systems lacking openat and /proc support
17315         OpenBSD 4.7 is one such system.  The most noticeable effect was
17316         failure of any application making nontrivial use of fts: rm, du,
17317         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
17318           ./rm: traversal failed: `a': Bad file descriptor
17319         Debugging that, you see that even though FD 6 was closed just
17320         prior to the opendir call in fd_clone_opendir, its resulting
17321         dir->dd_fd was 8, rather than the expected value of 6:
17322
17323         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
17324         93                close (fd);
17325         (gdb) n
17326         94                dir = fd_clone_opendir (dupfd);
17327         (gdb) n
17328         95                saved_errno = errno;
17329         (gdb) p dir->dd_fd
17330         $11 = 8
17331
17332         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
17333         The problem is that on OpenBSD, fd_clone_opendir has to resort
17334         to using the old-style save/restore CWD mechanism, due to its
17335         lack of openat/proc support, and *that* would steal the FD (6)
17336         that opendir was supposed to use.
17337
17338         The fix is to squirrel away the desired FD so that save_cwd uses a
17339         different one, and then free the dest FD right before calling opendir.
17340         That guarantees opendir will use the required file descriptor.
17341
17342         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
17343
17344 2010-10-08  Bruno Haible  <bruno@clisp.org>
17345
17346         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
17347         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
17348
17349 2010-10-08  Bruno Haible  <bruno@clisp.org>
17350
17351         nanosleep: Make replacement POSIX compliant.
17352         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
17353         is out of range.
17354         Reported by Jim Meyering.
17355
17356 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
17357
17358         bootstrap: add hook for altering gnulib.mk, for Bison
17359         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
17360         the Bison bootstrapping process can rewrite file names and variables
17361         in this file before later parts of 'bootstrap' use the file.
17362         Bison wants to include lib/gnulib.mk from the top-level makefile,
17363         so it needs the file names in this file to be relative to the top
17364         level, not relative to lib; plus it needs variable names to be
17365         rewritten.
17366         (slurp): Use the new function.
17367
17368         bootstrap: reformat for readability
17369         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
17370
17371 2010-10-08  Eric Blake  <eblake@redhat.com>
17372
17373         docs: update cygwin progress
17374         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
17375         1.7.7.
17376         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
17377         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
17378         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
17379         * doc/posix-functions/carg.texi (carg): Likewise.
17380         * doc/posix-functions/cargf.texi (cargf): Likewise.
17381         * doc/posix-functions/casin.texi (casin): Likewise.
17382         * doc/posix-functions/casinf.texi (casinf): Likewise.
17383         * doc/posix-functions/casinh.texi (casinh): Likewise.
17384         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
17385         * doc/posix-functions/catan.texi (catan): Likewise.
17386         * doc/posix-functions/catanf.texi (catanf): Likewise.
17387         * doc/posix-functions/catanh.texi (catanh): Likewise.
17388         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
17389         * doc/posix-functions/ccos.texi (ccos): Likewise.
17390         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
17391         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
17392         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
17393         * doc/posix-functions/cexp.texi (cexp): Likewise.
17394         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
17395         * doc/posix-functions/cimag.texi (cimag): Likewise.
17396         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
17397         * doc/posix-functions/clog.texi (clog): Likewise.
17398         * doc/posix-functions/clogf.texi (clogf): Likewise.
17399         * doc/posix-functions/conj.texi (conj): Likewise.
17400         * doc/posix-functions/conjf.texi (conjf): Likewise.
17401         * doc/posix-functions/cpow.texi (cpow): Likewise.
17402         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
17403         * doc/posix-functions/cproj.texi (cproj): Likewise.
17404         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
17405         * doc/posix-functions/creal.texi (creal): Likewise.
17406         * doc/posix-functions/crealf.texi (crealf): Likewise.
17407         * doc/posix-functions/csin.texi (csin): Likewise.
17408         * doc/posix-functions/csinf.texi (csinf): Likewise.
17409         * doc/posix-functions/csinh.texi (csinh): Likewise.
17410         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
17411         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
17412         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
17413         * doc/posix-functions/ctan.texi (ctan): Likewise.
17414         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
17415         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
17416         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
17417         * doc/posix-headers/complex.texi (complex.h): Likewise.
17418
17419 2010-10-07  Jim Meyering  <meyering@redhat.com>
17420
17421         parse-datetime: avoid compilation failure on OpenBSD 4.7
17422         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
17423         This works around a compilation failure on OpenBSD 4.7:
17424         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
17425
17426 2010-10-07  Eric Blake  <eblake@redhat.com>
17427
17428         docs: update cygwin progress
17429         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
17430         1.7.6.
17431         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
17432         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
17433         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
17434         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
17435         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
17436         Likewise.
17437         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
17438         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
17439         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
17440         Likewise.
17441         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
17442         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
17443         Likewise.
17444         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
17445         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
17446         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
17447         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
17448         Likewise.
17449         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
17450         Likewise.
17451         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
17452
17453         docs: update parse-datetime history
17454         * doc/parse-datetime.texi (Authors of parse_datetime): Better
17455         documentation of this function's history and alternatives.
17456
17457         cygwin: use more robust version check
17458         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
17459         exclude an eventual cygwin 1.9.1.
17460         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
17461         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
17462         (gl_FUNC_STRCASESTR): Likewise.
17463         Reported by Bruno Haible.
17464
17465 2010-10-06  Bruno Haible  <bruno@clisp.org>
17466
17467         string, sys_select: Avoid #including large headers unless necessary.
17468         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
17469         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
17470         OSF/1, BeOS, Haiku.
17471         Reported by Jim Meyering.
17472
17473 2010-10-05  Eric Blake  <eblake@redhat.com>
17474
17475         memmem, strstr, strcasestr: fix bug with long periodic needle
17476         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
17477         periodic needle having false positive.
17478         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
17479         and cygwin 1.7.7.
17480         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
17481         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
17482         (gl_FUNC_STRCASESTR): Likewise.
17483         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
17484         * tests/test-memmem.c (main): Expose the bug.
17485         * tests/test-strcasestr.c (main): Likewise.
17486         * tests/test-strstr.c (main): Likewise.
17487         * tests/test-c-strcasestr.c (main): Likewise.
17488         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
17489         * doc/posix-functions/strstr.texi (strstr): Likewise.
17490         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
17491         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
17492
17493 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
17494
17495         parse-datetime: do some more renaming
17496         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
17497         parse_datetime, not get_date.  Mention the renaming.
17498         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
17499         in comments.
17500         * m4/bison.m4: Likewise.
17501
17502 2010-10-05  Eric Blake  <eblake@redhat.com>
17503
17504         parse-datetime: better name than get_date
17505         * NEWS: Reword the deprecation notice.
17506         * modules/get_date: Rename to modules/parse-datetime.
17507         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
17508         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
17509         * lib/get_date.y: Rename to lib/parse-datetime.y.
17510         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
17511         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
17512         * doc/getdate.texi: Provide fallback wrapper.
17513         * lib/getdate.h: Move guts, and wrap...
17514         * lib/parse-datetime.h: ...new file.
17515         * lib/parse-datetime.y (get_date): Rename...
17516         (parse_datetime): ...to this.
17517         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
17518         (gl_PARSE_DATETIME): ...to this.
17519         * doc/posix-functions/getdate.texi (get_date): Provide fallback
17520         documentation.
17521         * modules/getdate (Files): Provide fallback docs and header.
17522         (Notice, Depends-on): Update references.
17523         * tests/test-parse-datetime.c: Likewise.
17524         * DEPENDENCIES: Likewise.
17525         * MODULES.html.sh (Date and time <time.h>): Likewise.
17526         * doc/parse-datetime.texi (Date input formats)
17527         (Authors of parse_datetime): Likewise.
17528         * modules/parse-datetime (Files, configure.ac, Makefile.am)
17529         (Include): Likewise.
17530         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
17531         * gnulib-tool: Likewise.
17532         * m4/bison.m4 (gl_BISON): Likewise.
17533         Suggested by Bruno Haible.
17534
17535 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
17536
17537         more ports to Solaris tr, which needs [] around ranges
17538         * gnulib-tool: Solaris tr needs [] around ranges.
17539         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
17540         * tests/test-pipe-filter-gi1.c (main): Likewise.
17541         * tests/test-pipe-filter-ii1.c (main): Likewise.
17542
17543 2010-10-05  Eric Blake  <eblake@redhat.com>
17544
17545         bootstrap: fix Solaris regression
17546         * build-aux/bootstrap (check_versions): Solaris tr still needs []
17547         around ranges.
17548         Reported by Pádraig Brady.
17549
17550         bootstrap: work with pkg-config
17551         * build-aux/bootstrap (check_versions): Also transliterate - in
17552         prerequisite name.
17553         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
17554         prerequisites that were already found, to avoid confusion.
17555         Reported by Justin Clift.
17556
17557         faccessat: remove unused wrappers
17558         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
17559         presence of these wrappers dragged in -lgen on Solaris.
17560         Reported by Clemens Brogi; fix suggested by Paul Eggert.
17561
17562 2010-10-05  Jim Meyering  <meyering@redhat.com>
17563
17564         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
17565         * Makefile (sc_pragma_columns): New syntax-check rule.
17566
17567 2010-10-04  Bruno Haible  <bruno@clisp.org>
17568
17569         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
17570         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
17571         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
17572         Reported by Bruce Korb and Eric Blake.
17573
17574 2010-10-04  Bruno Haible  <bruno@clisp.org>
17575
17576         threadlib: Make option --with-libpth-prefix work.
17577         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
17578         use $LIBPTH, not just -lpth.
17579
17580 2010-10-04  Bruno Haible  <bruno@clisp.org>
17581
17582         Avoid line length limitation from HP NonStop system header files.
17583         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
17584         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
17585         * lib/ctype.in.h: Likewise.
17586         * lib/dirent.in.h: Likewise.
17587         * lib/errno.in.h: Likewise.
17588         * lib/fcntl.in.h: Likewise.
17589         * lib/float.in.h: Likewise.
17590         * lib/getopt.in.h: Likewise.
17591         * lib/iconv.in.h: Likewise.
17592         * lib/inttypes.in.h: Likewise.
17593         * lib/langinfo.in.h: Likewise.
17594         * lib/locale.in.h: Likewise.
17595         * lib/math.in.h: Likewise.
17596         * lib/netdb.in.h: Likewise.
17597         * lib/netinet_in.in.h: Likewise.
17598         * lib/poll.in.h: Likewise.
17599         * lib/pthread.in.h: Likewise.
17600         * lib/pty.in.h: Likewise.
17601         * lib/sched.in.h: Likewise.
17602         * lib/se-selinux.in.h: Likewise.
17603         * lib/search.in.h: Likewise.
17604         * lib/signal.in.h: Likewise.
17605         * lib/spawn.in.h: Likewise.
17606         * lib/stdarg.in.h: Likewise.
17607         * lib/stddef.in.h: Likewise.
17608         * lib/stdint.in.h: Likewise.
17609         * lib/stdio.in.h: Likewise.
17610         * lib/stdlib.in.h: Likewise.
17611         * lib/string.in.h: Likewise.
17612         * lib/strings.in.h: Likewise.
17613         * lib/sys_file.in.h: Likewise.
17614         * lib/sys_ioctl.in.h: Likewise.
17615         * lib/sys_select.in.h: Likewise.
17616         * lib/sys_socket.in.h: Likewise.
17617         * lib/sys_stat.in.h: Likewise.
17618         * lib/sys_time.in.h: Likewise.
17619         * lib/sys_times.in.h: Likewise.
17620         * lib/sys_utsname.in.h: Likewise.
17621         * lib/sys_wait.in.h: Likewise.
17622         * lib/sysexits.in.h: Likewise.
17623         * lib/termios.in.h: Likewise.
17624         * lib/time.in.h: Likewise.
17625         * lib/unistd.in.h: Likewise.
17626         * lib/wchar.in.h: Likewise.
17627         * lib/wctype.in.h: Likewise.
17628         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
17629         * modules/ctype (Makefile.am): Likewise.
17630         * modules/dirent (Makefile.am): Likewise.
17631         * modules/errno (Makefile.am): Likewise.
17632         * modules/fcntl-h (Makefile.am): Likewise.
17633         * modules/float (Makefile.am): Likewise.
17634         * modules/getopt-posix (Makefile.am): Likewise.
17635         * modules/iconv-h (Makefile.am): Likewise.
17636         * modules/inttypes (Makefile.am): Likewise.
17637         * modules/langinfo (Makefile.am): Likewise.
17638         * modules/locale (Makefile.am): Likewise.
17639         * modules/math (Makefile.am): Likewise.
17640         * modules/netdb (Makefile.am): Likewise.
17641         * modules/netinet_in (Makefile.am): Likewise.
17642         * modules/poll-h (Makefile.am): Likewise.
17643         * modules/pthread (Makefile.am): Likewise.
17644         * modules/pty (Makefile.am): Likewise.
17645         * modules/sched (Makefile.am): Likewise.
17646         * modules/search (Makefile.am): Likewise.
17647         * modules/selinux-h (Makefile.am): Likewise.
17648         * modules/signal (Makefile.am): Likewise.
17649         * modules/spawn (Makefile.am): Likewise.
17650         * modules/stdarg (Makefile.am): Likewise.
17651         * modules/stddef (Makefile.am): Likewise.
17652         * modules/stdint (Makefile.am): Likewise.
17653         * modules/stdio (Makefile.am): Likewise.
17654         * modules/stdlib (Makefile.am): Likewise.
17655         * modules/string (Makefile.am): Likewise.
17656         * modules/strings (Makefile.am): Likewise.
17657         * modules/sys_file (Makefile.am): Likewise.
17658         * modules/sys_ioctl (Makefile.am): Likewise.
17659         * modules/sys_select (Makefile.am): Likewise.
17660         * modules/sys_socket (Makefile.am): Likewise.
17661         * modules/sys_stat (Makefile.am): Likewise.
17662         * modules/sys_time (Makefile.am): Likewise.
17663         * modules/sys_times (Makefile.am): Likewise.
17664         * modules/sys_utsname (Makefile.am): Likewise.
17665         * modules/sys_wait (Makefile.am): Likewise.
17666         * modules/sysexits (Makefile.am): Likewise.
17667         * modules/termios (Makefile.am): Likewise.
17668         * modules/time (Makefile.am): Likewise.
17669         * modules/unistd (Makefile.am): Likewise.
17670         * modules/wchar (Makefile.am): Likewise.
17671         * modules/wctype (Makefile.am): Likewise.
17672
17673 2010-10-04  Bruno Haible  <bruno@clisp.org>
17674
17675         read-file tests: Avoid a test failure on NonStop Kernel.
17676         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
17677         a regular file.
17678         Reported by Joachim Schmitz <schmitz@hp.com>.
17679
17680 2010-10-03  Bruno Haible  <bruno@clisp.org>
17681
17682         gnulib-tool: Fixes for --create-testdir with --libtool.
17683         * gnulib-tool (func_get_automake_snippet): Don't augment
17684         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
17685         an executable.
17686         (func_create_testdir): Handle module 'alloca' like func_import.
17687         Reported by Bruce Korb <bruce.korb@gmail.com>.
17688
17689 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
17690
17691         Avoid some lines longer than 80 characters.
17692         * lib/stdint.in.h: Break long comment lines.
17693         * lib/math.in.h: Likewise.
17694         (_GL_NUM_UINT_WORDS): New macro, for readability.
17695         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
17696         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
17697         * lib/stdlib.in.h: Likewise.
17698         * lib/spawn.in.h: Likewise.
17699         * lib/sys_socket.in.h: Update an URL.
17700         * lib/sys_stat.in.h: Break long line.
17701
17702 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
17703
17704         Improve pmccabe2html.
17705         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
17706         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
17707         when the sources change. Remove the line in the HTML about "Used
17708         ranges" (which implied that there might be other unused ranges),
17709         rename "Resume" to "Summary" (easier to understand for more users).
17710         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
17711         styles, and some unnecessary blank lines.
17712
17713 2010-10-03  Bruno Haible  <bruno@clisp.org>
17714             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
17715
17716         acl: Add support for ACLs on NonStop Kernel.
17717         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
17718         Check whether the function aclsort() exists.
17719         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
17720         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
17721         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
17722         (acl_nontrivial [HAVE_ACLSORT]: New function.
17723         (file_has_acl): Implement for NonStop Kernel.
17724         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
17725         (qset_acl): Implement for NonStop Kernel.
17726         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
17727         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
17728         (main): Implement for NonStop Kernel.
17729         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
17730         Kernel. Handle this flavor.
17731         * tests/test-set-mode-acl.sh: Likewise.
17732         * tests/test-copy-acl.sh: Likewise.
17733         * tests/test-copy-file.sh: Likewise.
17734
17735 2010-10-03  Bruno Haible  <bruno@clisp.org>
17736
17737         Info about ACLs on NonStop Kernel.
17738         * doc/acl-resources.txt: Add info about NonStop Kernel.
17739         References by Joachim Schmitz <schmitz@hp.com>.
17740
17741 2010-10-02  Bruno Haible  <bruno@clisp.org>
17742
17743         Define missing EDQUOT on NonStop Kernel.
17744         * lib/errno.in.h (EDQUOT): Assign a value if missing.
17745         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
17746         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
17747         missing.
17748         * doc/posix-headers/errno.texi: Mention the NSK bug.
17749         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
17750         Reported by Joachim Schmitz <schmitz@hp.com>.
17751
17752 2010-10-02  Bruno Haible  <bruno@clisp.org>
17753
17754         Update doc for POSIX:2008.
17755         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
17756         Update URL of POSIX specification.
17757
17758 2010-10-02  Bruno Haible  <bruno@clisp.org>
17759
17760         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
17761         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
17762         from gnulib, not from Automake.
17763
17764 2010-10-02  Bruno Haible  <bruno@clisp.org>
17765
17766         New module 'system-posix'.
17767         * modules/system-posix: New file.
17768         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
17769         module is present.
17770         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
17771         GNULIB_SYSTEM_POSIX.
17772         * modules/stdlib (Depends-on): Remove sys_wait.
17773         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
17774         * doc/posix-functions/system.texi: Mention the new module.
17775         * doc/posix-headers/stdlib.texi: Likewise.
17776         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
17777         define test_sys_wait_macros to a no-op.
17778         Reported by Sam Steingold <sds@gnu.org>.
17779
17780 2010-09-30  Bruno Haible  <bruno@clisp.org>
17781
17782         More renaming from 'getdate' to 'get_date'.
17783         * doc/get_date.texi: Renamed from doc/getdate.texi.
17784         * modules/get_date (Files): Update.
17785         * MODULES.html.sh (Date and time <time.h>): Update.
17786         * DEPENDENCIES: Update.
17787         * gnulib-tool: Update comment.
17788         * m4/bison.m4 (gl_BISON): Likewise.
17789         * m4/get_date.m4 (gl_GET_DATE): Likewise.
17790
17791 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
17792
17793         bootstrap: support ACLOCAL_FLAGS during aclocal
17794         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
17795         can add additional -I dir for third-party .m4 files.
17796
17797 2010-09-30  Eric Blake  <eblake@redhat.com>
17798
17799         bootstrap: use glibtoolize on MacOS
17800         * build-aux/bootstrap (check_versions): Convert libtool into
17801         libtoolize.
17802         (tool search): Move libtool check earlier, and look for
17803         glibtoolize for MacOS.
17804         (gnulib_tool_options): Auto-add --libtool when appropriate.
17805         Reported by Justin Clift.
17806
17807         poll: fix typo that broke test on MacOS
17808         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
17809         Reported by Justin Clift.
17810
17811         getdate: rename to get_date
17812         Note: getdate.h is not renamed, to minimize client impact.
17813         * modules/getdate: Mark obsolete.  Move old contents...
17814         * modules/get_date: ...to new module name.
17815         * modules/getdate-tests: Move...
17816         * modules/get_date-tests: ...here.
17817         * m4/getdate.m4: Move...
17818         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
17819         * lib/getdate.y: Move...
17820         * lib/get_date.y: ...here.
17821         * tests/test-getdate.c: Move...
17822         * tests/test-get_date.c: ...here.
17823         * doc/posix-functions/getdate.texi (getdate): Update name.
17824         * NEWS: Mention the change.
17825
17826 2010-09-29  Bruno Haible  <bruno@clisp.org>
17827
17828         Separate the module 'waitpid' from the module 'sys_wait'.
17829         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
17830         present.
17831         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
17832         gl_MODULE_INDICATOR_FOR_TESTS.
17833         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
17834         * modules/sys_wait (Depends-on): Remove waitpid.
17835         (Makefile.am): Substitute GNULIB_WAITPID.
17836         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
17837         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
17838         signature only if the 'waitpid' module is present.
17839         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
17840         * NEWS: Mention the change.
17841         * modules/grantpt (Depends-on): Add waitpid.
17842         * modules/wait-process (Depends-on): Likewise.
17843
17844 2010-09-29  Bruno Haible  <bruno@clisp.org>
17845
17846         More tests for module 'sys_wait'.
17847         * modules/sys_wait-c++-tests: New file.
17848         * tests/test-sys_wait-c++.cc: New file.
17849         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
17850         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
17851
17852 2010-09-29  Bruno Haible  <bruno@clisp.org>
17853
17854         New module 'waitpid'.
17855         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
17856         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
17857         Don't include <process.h>.
17858         (waitpid): Declare only, using modern idiom.
17859         * m4/waitpid.m4: New file.
17860         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
17861         * modules/waitpid: New file.
17862         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
17863         (Makefile.am): Update.
17864         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
17865
17866 2010-09-28  Bruno Haible  <bruno@clisp.org>
17867
17868         poll: Assume ANSI C.
17869         * lib/poll.c (poll): Use an ANSI C declaration.
17870
17871 2010-09-28  Bruno Haible  <bruno@clisp.org>
17872
17873         poll-h: Create poll.h on all platforms.
17874         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
17875         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
17876         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
17877         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
17878         (gl_REPLACE_POLL_H): Don't set POLL_H.
17879         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
17880         * modules/poll-h (Depends-on): Add include_next.
17881         (Makefile.am): Create poll.h unconditionally. Substitute also
17882         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
17883
17884 2010-09-28  Bruno Haible  <bruno@clisp.org>
17885
17886         Tests for module 'poll-h'.
17887         * modules/poll-h-c++-tests: New file.
17888         * tests/test-poll-h-c++.cc: New file.
17889
17890         Tests for module 'poll-h'.
17891         * modules/poll-h-tests: New file.
17892         * tests/test-poll-h.c: New file.
17893
17894 2010-09-28  Bruno Haible  <bruno@clisp.org>
17895
17896         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
17897         * modules/poll-h (Depends-on): Add 'extensions'.
17898
17899 2010-09-28  Bruno Haible  <bruno@clisp.org>
17900
17901         New module 'poll-h'.
17902         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
17903         (poll): Use modern idiom.
17904         * modules/poll-h: New file.
17905         * modules/poll (Files): Remove lib/poll.in.h.
17906         (Depends-on): Add poll-h.
17907         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
17908         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
17909         * m4/poll_h.m4: New file.
17910         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
17911         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
17912         and invoke gl_REPLACE_POLL_H.
17913         * lib/poll.c: Use common idiom.
17914         * tests/test-poll.c: Likewise.
17915         * doc/posix-headers/poll.texi: Mention the poll-h module.
17916         Suggested by Eric Blake.
17917
17918 2010-09-26  Bruno Haible  <bruno@clisp.org>
17919
17920         sys_wait: Implement WSTOPSIG.
17921         * lib/sys_wait.in.h (WSTOPSIG): New macro.
17922         Reported by Simon Josefsson.
17923
17924 2010-09-26  Simon Josefsson  <simon@josefsson.org>
17925
17926         stdlib, sys_wait: Avoid compilation error on mingw.
17927         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
17928
17929 2010-09-26  Bruno Haible  <bruno@clisp.org>
17930
17931         stdlib tests: Avoid code duplication.
17932         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
17933         * modules/sys_wait-tests (Files): Likewise.
17934         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
17935         * tests/test-stdlib.c: Include test-sys_wait.h.
17936         (main): Invoke test_sys_wait_macros.
17937         * tests/test-sys_wait.c: Include test-sys_wait.h.
17938         (main): Invoke test_sys_wait_macros.
17939
17940 2010-09-25  Simon Josefsson  <simon@josefsson.org>
17941
17942         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
17943         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
17944         sure Windows sockets are working before calling getaddrinfo.
17945         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
17946         * doc/gnulib.texi (Windows sockets): Fix typo.
17947
17948 2010-09-25  Bruno Haible  <bruno@clisp.org>
17949
17950         Tests for module 'regex-quote'.
17951         * modules/regex-quote-tests: New file.
17952         * tests/test-regex-quote.c: New file.
17953
17954         New module 'regex-quote'.
17955         * lib/regex-quote.h: New file.
17956         * lib/regex-quote.c: New file.
17957         * modules/regex-quote: New file.
17958         Suggested by Reuben Thomas <rrt@sc3d.org>.
17959
17960 2010-09-24  Bruno Haible  <bruno@clisp.org>
17961
17962         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
17963         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
17964
17965 2010-09-23  Bruno Haible  <bruno@clisp.org>
17966
17967         setenv: Relax license.
17968         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
17969         Blake.
17970         Requested by Eric Blake.
17971
17972 2010-09-22  Bruno Haible  <bruno@clisp.org>
17973
17974         termios: Relax license.
17975         * modules/termios (License): Change to LGPLv2+.
17976         Requested by Eric Blake.
17977
17978 2010-09-22  Bruno Haible  <bruno@clisp.org>
17979
17980         threadlib: Allow the package to change the default to 'no'.
17981         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
17982         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
17983         Reported by Paul Eggert.
17984
17985 2010-09-22  Pádraig Brady  <P@draigbrady.com>
17986             Bruno Haible  <bruno@clisp.org>
17987
17988         Fix endless loop in mbmemcasecoll.
17989         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
17990         byte.
17991         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
17992
17993 2010-09-22  Bruno Haible  <bruno@clisp.org>
17994
17995         Tests for module 'memcoll'.
17996         * modules/memcoll-tests: New file.
17997         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
17998
17999         memcoll, xmemcoll: Clarify size vs. length.
18000         * modules/memcoll.c (memcoll0): Clarify specification.
18001         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
18002         passed to collate_error.
18003
18004 2010-09-22  Bruno Haible  <bruno@clisp.org>
18005
18006         Tests for module 'memcasecmp'.
18007         * modules/memcasecmp-tests: New file.
18008         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
18009
18010 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18011
18012         * lib/pthread.in.h: Add split double-inclusion guard, and include
18013         system <pthread.h> if there is one.  Use @@-style as in other
18014         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
18015         pthread.h doesn't.
18016         (pthread_mutexattr_destroy, pthread_mutexattr_init):
18017         (pthread_mutexattr_settype, pthread_mutex_trylock):
18018         New static inline functions, if there's no system <pthread.h>.
18019         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
18020         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
18021         Approximate with mutexes if the system lacks spinlocks, as in
18022         MacOS.
18023         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
18024         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
18025         @@-style.  Check for spinlocks separately.
18026         (gl_PTHREAD_DEFAULTS): New macro.
18027         * modules/pthread: Redo to use a more typical style for in.h files.
18028
18029 2010-09-21  Eric Blake  <eblake@redhat.com>
18030
18031         net_if: enhance tests
18032         * tests/test-net_if.c (main): Move signature checks earlier.
18033         Print failures to stderr.
18034         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
18035         Document the bug that we do not yet fix.
18036
18037 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
18038
18039         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
18040         about gnulib, not GSS.
18041
18042 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
18043
18044         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
18045         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
18046         for Emacs.
18047         * build-aux/pmccabe2html: Make Makefile.am example code more
18048         cut-and-paste friendly.
18049
18050 2010-09-21  Simon Josefsson  <simon@josefsson.org>
18051
18052         * tests/test-net_if.c: New file.
18053         * modules/net_if-tests: New file.
18054
18055 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
18056
18057         pthread: add pthread_spin_destroy
18058         * lib/pthread.in.h (pthread_spin_destroy): New function.
18059
18060 2010-09-19  Bruno Haible  <bruno@clisp.org>
18061
18062         gnulib-tool: Fix --help output.
18063         * gnulib-tool (func_usage): Fix help message.
18064         Reported by Reuben Thomas <rrt@sc3d.org>.
18065
18066 2010-09-18  Jim Meyering  <meyering@redhat.com>
18067
18068         maint.mk: avoid unexpanded \n in two diagnostics
18069         * top/maint.mk (sc_prohibit_always_true_header_tests):
18070         Don't use a literal \n in a halt=... assignment.  It would not be
18071         expanded, and the two \n bytes would appear in the diagnostic output
18072         rather than the desired newline.  Use halt=$$(printf ... instead.
18073         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
18074
18075 2010-09-18  Bruno Haible  <bruno@clisp.org>
18076
18077         netinet_in: Doc tweak.
18078         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
18079         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18080
18081 2010-09-18  Jim Meyering  <meyering@redhat.com>
18082
18083         init.sh: correct an outdated comment
18084         * tests/init.sh (create_exe_shims_):  s/function/alias/
18085
18086         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
18087         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
18088         a file named "*.exe" is removed between the glob expansion and the
18089         processing of that oddly named file.
18090
18091 2010-09-17  Eric Blake  <eblake@redhat.com>
18092
18093         mirbsd: add some more support
18094         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
18095         in BSD family.
18096         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
18097         devices as OpenBSD.
18098         * m4/host-os.m4 (mirbsd): Add MirBSD.
18099
18100         tests: fix unportable assumption on sys/wait.h
18101         * tests/test-sys_wait.c (main): Relax test.
18102         * tests/test-stdlib.c (main): Likewise.
18103
18104         init.sh: accomodate directory with no .exes
18105         * tests/init.sh: Accomodate directory containing only scripts.
18106
18107         tests: avoid compiler warning
18108         * tests/test-stdlib.c (main): Use the variable.
18109
18110         fdutimens, fdutimensat: update signature, again
18111         * lib/utimens.h (gl_futimens): Delete, and move signature...
18112         (fdutimens): ...here.
18113         (fdutimensat): Rearrange signature.
18114         (lutimensat): Rename variable for clarity.
18115         * lib/fdutimensat.c (fdutimensat): Update signature.
18116         * lib/utimens.c (fdutimens): Likewise.
18117         (gl_futimens): Delete.
18118         (utimens, lutimens): Update callers.
18119         * lib/futimens.c (futimens): Likewise.
18120         * tests/test-fdutimensat.c: Likewise.
18121         * tests/test-utimens.c: Likewise.
18122         * tests/test-futimens.h: Update comment.
18123         * NEWS: Mention this.
18124         Suggested by Paul Eggert.
18125
18126 2010-09-17  Bruno Haible  <bruno@clisp.org>
18127
18128         Take over the maintenance of some older macros from Autoconf.
18129         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
18130         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
18131         GNU Autoconf.
18132         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
18133         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
18134
18135 2010-09-17  Eric Blake  <eblake@redhat.com>
18136
18137         fdutimensat: drop atflag validation
18138         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
18139         with valid fd, to close a race scenario where futimens is
18140         unsupported and FILE was replaced by a symlink.
18141         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
18142         accordingly.
18143         Suggested by Paul Eggert.
18144
18145 2010-09-16  Bruno Haible  <bruno@clisp.org>
18146
18147         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
18148         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
18149
18150 2010-09-16  Bruno Haible  <bruno@clisp.org>
18151
18152         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
18153         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
18154         login_tty exists.
18155         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18156
18157 2010-09-16  Bruno Haible  <bruno@clisp.org>
18158
18159         login_tty: Make the replacement code work on BSD systems.
18160         * lib/login_tty.c: Include <sys/ioctl.h>.
18161         (login_tty): Use ioctl TIOCSCTTY when available.
18162         * modules/login_tty (Depends-on): Add sys_ioctl.
18163         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18164
18165 2010-09-16  Bruno Haible  <bruno@clisp.org>
18166
18167         login_tty: Stricter unit test.
18168         * modules/login_tty-tests (Depends-on): Add tcgetsid.
18169         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
18170         and tcgetsid() after login_tty.
18171         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18172
18173 2010-09-16  Bruno Haible  <bruno@clisp.org>
18174
18175         New module 'tcgetsid'.
18176         * lib/tcgetsid.c: New file.
18177         * m4/tcgetsid.m4: New file.
18178         * modules/tcgetsid: New file.
18179         * modules/termios (Depends-on): Add c++defs, warn-on-use.
18180         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
18181         GNULIB_TCGETSID, HAVE_TCGETSID.
18182         * lib/termios.in.h: Include <sys/types.h>.
18183         (tcgetsid): New declaration.
18184         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
18185         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
18186         * doc/posix-functions/tcgetsid.texi: Mention the new module.
18187         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
18188
18189 2010-09-16  Bruno Haible  <bruno@clisp.org>
18190
18191         Tests for module 'termios'.
18192         * modules/termios-c++-tests: New file.
18193         * modules/termios-tests: New file.
18194         * tests/test-termios-c++.cc: New file.
18195         * tests/test-termios.c: New file.
18196
18197         New module 'termios'.
18198         * modules/termios: New file.
18199         * lib/termios.in.h: New file.
18200         * m4/termios_h.m4: New file.
18201         * doc/posix-headers/termios.texi: Mention the new module.
18202
18203 2010-09-16  Eric Blake  <eblake@redhat.com>
18204
18205         fdutimensat: add an atflag parameter
18206         * lib/fdutimensat.c (fdutimensat): Add new parameter.
18207         * lib/utimens.h (fdutimensat): Update prototype.
18208         * tests/test-fdutimensat.c: Adjust test to match.
18209         * NEWS: Document the change.
18210         Suggested by Paul Eggert.
18211
18212 2010-09-16  Bruno Haible  <bruno@clisp.org>
18213
18214         Fix typos in comments.
18215         * lib/striconveh.h: Fix typo in comment.
18216         * lib/login_tty.c (login_tty): Likewise.
18217
18218 2010-09-15  Bruno Haible  <bruno@clisp.org>
18219
18220         stdlib: clarify MirBSD WEXITSTATUS bug
18221         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
18222         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18223
18224 2010-09-15  Eric Blake  <eblake@redhat.com>
18225
18226         stdlib: work around MirBSD WEXITSTATUS bug
18227         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
18228         * modules/stdlib (Depends-on): Add sys_wait.
18229         * tests/test-sys_wait.c (main): Enhance test.
18230         * tests/test-stdlib.c (main): Likewise.
18231         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
18232
18233         docs: mention MacOS issue with WEXITSTATUS(constant)
18234         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
18235         issue.
18236         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18237
18238         strnlen: add tests
18239         * modules/strnlen-tests: New file.
18240         * tests/test-strnlen.c: Likewise.
18241
18242 2010-09-14  Bruno Haible  <bruno@clisp.org>
18243
18244         unistr/base: Avoid link errors when module 'libunistring' is also used.
18245         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
18246         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
18247         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
18248         Declare also when HAVE_LIBUNISTRING is set.
18249         Reported by Pádraig Brady <P@draigbrady.com>.
18250
18251 2010-09-14  Eric Blake  <eblake@redhat.com>
18252
18253         test-rawmemchr: make more robust
18254         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
18255         (Depends-on, configure.ac): Add needed prerequisites to use it.
18256         * modules/memchr-tests (Files, Depends-on, configure.ac):
18257         Likewise, to avoid implicit reliance on memchr module prereqs.
18258         * tests/test-memchr.c (main): Ensure proper masking.
18259         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
18260         reads.
18261
18262         memchr: detect glibc Alpha bug
18263         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
18264         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
18265         Alpha.
18266         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
18267         * tests/test-memchr.c (main): Enhance test.
18268         Reported by Nelson H. F. Beebe.
18269
18270 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
18271
18272         fts, getcwd, glob: audit for dirfd returning -1
18273         * lib/fts.c (opendir): Remove #define; no longer used.
18274         (opendirat): New arg PDIR_FD.  All callers changed.
18275         (fts_build, _opendir2): Use new opendirat to avoid the need for
18276         dirfd, or for checking whether dirfd returns a negative value.
18277         Don't use opendir; always use openat followed by fdopendir.
18278         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
18279         it.
18280         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
18281         returns -1 here.
18282         * modules/fts (Depends-on): Remove dirfd.
18283         * modules/getcwd (Depends-on): Likewise.
18284
18285 2010-09-13  Eric Blake  <eblake@redhat.com>
18286
18287         float: fix broken MirBSD header
18288         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
18289         * doc/posix-headers/float.texi (float.h): Document it.
18290
18291 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
18292
18293         fts: use O_NOFOLLOW to avoid race condition when opening a directory
18294         * lib/fts.c (opendirat): New arg extra_flags.
18295         (__opendir2): Use it to avoid following symlinks when opening
18296         a directory, if symlinks are not supposed to be followed.  See
18297         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
18298
18299         fdopendir: preserve argument fd before returning
18300         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
18301         (fdopendir_with_dup, fd_clone_opendir): New static functions.
18302         (fdopendir): Use them, arranging for FD to be open to the same
18303         directory that it was when it started.  (It might be temporarily
18304         closed while fdopendir is running, so this not thread- or
18305         signal-safe.)  Be careful to do the right thing even when file
18306         descriptors are scarce and dup fails with errno == EMFILE.  See
18307         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
18308
18309 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
18310
18311         regex: Pass the system regex if its only problem is 32-bit regoff_t.
18312         * NEWS: Document change.
18313         * m4/regex.m4: Disable test for regoff_t size.
18314
18315 2010-09-13  Jim Meyering  <meyering@redhat.com>
18316
18317         fts: don't operate on an invalid file descriptor after failed dup
18318         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
18319         negative file descriptor.
18320
18321 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
18322
18323         savedir: add streamsavedir, deprecate fdsavedir
18324         * NEWS: Mention deprecation of fdsavedir.
18325         * lib/savedir.c (streamsavedir): New extern function, whose name
18326         ends in "savedir" to be consistent with the others.  This differs
18327         from savedirstream in that it doesn't close its argument.  The
18328         next version of GNU tar will use this instead of fdsavedir, to
18329         avoid some race conditions and conserve file descriptors.
18330         (savedirstream): Reimplement as a wrapper around streamsavedir.
18331         (fdsavedir): Add a comment deprecating this function.  As far as
18332         I know, only GNU tar used it, and GNU tar doesn't need it any more.
18333         * lib/savedir.h (streamsavedir): New decl.
18334         (fdsavedir): Add a comment deprecating this.
18335
18336 2010-09-10  Bruno Haible  <bruno@clisp.org>
18337
18338         langinfo: Fix last commit.
18339         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
18340         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
18341         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18342
18343 2010-09-10  Bruno Haible  <bruno@clisp.org>
18344
18345         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
18346         * lib/progreloc.c (O_EXEC): Define fallback.
18347
18348 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
18349
18350         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
18351         * NEWS: Document recent changes to fcntl-h.
18352         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
18353         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
18354         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
18355         Similarly for O_SEARCH; this last was already true, but not documented.
18356         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
18357         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
18358         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
18359         Likewise.
18360         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
18361         is zero, not whether it is defined.
18362         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
18363         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
18364         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
18365
18366 2010-09-10  Bruno Haible  <bruno@clisp.org>
18367
18368         langinfo, nl_langinfo: Fix for IRIX 5.3.
18369         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
18370         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
18371         HAVE_LANGINFO_YESEXPR.
18372         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
18373         HAVE_LANGINFO_YESEXPR.
18374         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
18375         HAVE_LANGINFO_T_FMT_AMPM is 0.
18376         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
18377         HAVE_LANGINFO_YESEXPR is 0.
18378         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
18379         NOEXPR.
18380         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
18381         * doc/posix-functions/nl_langinfo.texi: Likewise.
18382         Reported by Eric Blake.
18383
18384 2010-09-10  Bruno Haible  <bruno@clisp.org>
18385
18386         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
18387         * doc/glibc-functions/login_tty.texi: Mention the include file problem
18388         on FreeBSD 8.0 and OpenBSD 4.6.
18389         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
18390         * m4/pty_h.m4 (gl_PTY_H): Likewise.
18391         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
18392         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
18393         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
18394         ac_includes_default.
18395         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18396
18397 2010-09-09  Eric Blake  <eblake@redhat.com>
18398
18399         strsignal: work around NetBSD bug
18400         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
18401         * lib/string.in.h (includes): Likewise.
18402         * doc/posix-functions/strsignal.texi (strsignal): Document the
18403         bug.
18404         Reported by Nelson H. F. Beebe.
18405
18406         gnulib-tool: work with NetBSD /bin/sh
18407         * gnulib-tool (func_cache_var, func_cache_lookup_module)
18408         (func_get_description, func_get_comment, func_get_status)
18409         (func_get_notice, func_get_applicability, func_get_filelist)
18410         (func_get_dependencies, func_get_autoconf_early_snippet)
18411         (func_get_autoconf_snippet, func_get_automake_snippet)
18412         (func_get_include_directive, func_get_link_directive)
18413         (func_get_license, func_get_maintainer, func_import): Avoid
18414         shell syntax errors from parsing syntax extensions.
18415
18416 2010-09-09  Bruno Haible  <bruno@clisp.org>
18417
18418         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
18419         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
18420         a reliable way to determine whether the 'alias' command works.
18421
18422 2010-09-08  Jim Meyering  <meyering@redhat.com>
18423
18424         init.sh: penalize a set-x-impaired shell; don't disqualify it
18425         * tests/init.sh: Too many shells corrupt application stderr when
18426         you set -x, so we can't afford to disqualify them, since at least
18427         on Irix-6.5, that would disqualify all bourne shells.
18428         Instead, use a two-pass approach.
18429         On the first pass, try to find a shell that meets the stricter
18430         condition that set -x does not corrupt stderr.
18431         If no shell meets the stricter condition, retest each candidate
18432         shell, but without that extra condition.  Finally, when
18433         VERBOSE=yes is requested and set -x might cause trouble, simply
18434         issue a warning and refrain from enabling debug output.
18435
18436 2010-09-08  Eric Blake  <eblake@redhat.com>
18437
18438         unsetenv: fix OpenBSD bug
18439         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
18440         * doc/posix-functions/unsetenv.texi (unsetenv): Update
18441         documentation.
18442         Reported by Jim Meyering.
18443
18444         strtod: work around IRIX 6.5 bug
18445         * lib/strtod.c (strtod): Reparse number on shorter string if
18446         exponent parse was invalid.
18447         * tests/test-strtod.c (main): Add check for "0x1p 2".
18448         Reported by Tom G. Christensen.
18449
18450         getopt: optimize previous patch
18451         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
18452         empty variable.  Speed up awk script.
18453         Reported by Paolo Bonzini.
18454
18455 2010-09-08  Jim Meyering  <meyering@redhat.com>
18456
18457         test.sh: disqualify shells for which set -x corrupts stderr
18458         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
18459         and OpenBSD 4.7.  They make it so with "set -x", environment settings
18460         appear in stderr output.  For example, this command:
18461             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
18462         prints "P=1" on those two systems:
18463
18464 2010-09-08  Bruno Haible  <bruno@clisp.org>
18465
18466         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
18467         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
18468         commands, because some shells ignore redirections when there is an
18469         error in the command lookup.
18470         Reported by Eric Blake.
18471
18472 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
18473
18474         * lib/regex.h: Fix a mention of `regex_compile' (should be
18475         `re_compile_pattern').
18476         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
18477         (re_set_registers): Correct name of parameter in comment.
18478
18479         * doc/regex.texi: Add documentation for missing syntax flags.
18480         Remove commented-out documentation of defunct syntax option
18481         RE_NO_EMPTY_ALTS.
18482         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
18483         Add documentation of re_set_registers.
18484         Document trick to re-use a pattern buffer by setting fastmap manually.
18485         Update documentation of struct re_pattern_buffer per public members.
18486         Uncomment documentation of equivalence class operators and
18487         collating symbol operators, since they are now implemented,
18488         Explain leftmost-longest matching in relation to alternatives.
18489         Tidy documentation of substring matching.
18490         Remove POSIX documentation, which is done better in
18491         glibc, and refer the reader there. Keep BSD API documentation, as
18492         that is not readily available elsewhere.
18493
18494 2010-09-07  Eric Blake  <eblake@redhat.com>
18495
18496         getopt: handle POSIXLY_CORRECT set but not exported
18497         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
18498         export state of POSIXLY_CORRECT, due to bash set -o posix.
18499         Reported by Dustin J. Mitchell.
18500
18501 2010-09-05  Bruno Haible  <bruno@clisp.org>
18502
18503         gnulib-tool: Highlight the changed options.
18504         * gnulib-tool (func_usage): Display the --import, --add-import,
18505         --remove-import explanations in bold font.
18506
18507 2010-09-06  Karl Berry  <karl@gnu.org>
18508
18509         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
18510
18511 2010-09-05  Bruno Haible  <bruno@clisp.org>
18512
18513         uniwidth/width: Update comment.
18514         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
18515         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
18516
18517 2010-09-05  Bruno Haible  <bruno@clisp.org>
18518
18519         isinf, isnan: Relax license.
18520         * modules/isinf (License): Change from GPL to LGPL, with consent from
18521         Ben Pfaff.
18522         * modules/isnan (License): Likewise.
18523         Requested by Ludovic Courtès.
18524
18525 2010-09-04  Bruno Haible  <bruno@clisp.org>
18526
18527         gnulib-tool: Help migration from --import to --add-import or --update.
18528         * gnulib-tool: Emit a verbose error message when --import is used
18529         without any module name.
18530
18531 2010-09-04  Bruno Haible  <bruno@clisp.org>
18532
18533         Update doc about gnulib-tool.
18534         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
18535         'gnulib-tool --update' in more detail.
18536         Reported by Eric Blake.
18537
18538 2010-09-04  Bruno Haible  <bruno@clisp.org>
18539
18540         gnulib-tool: Change --import. New options --add/remove-import.
18541         * gnulib-tool: New options --add-import, --remove-import.
18542         (func_usage): Document them.
18543         (have_associative): Define always.
18544         (func_import): In import mode, don't merge the specified settings with
18545         the cached settings. Implement remove-import mode.
18546         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
18547         Explain when to use them versus --import.
18548         (Simple update): Use --add-import instead of --import.
18549         * NEWS: Mention the change.
18550
18551 2010-09-04  Bruno Haible  <bruno@clisp.org>
18552
18553         * doc/gnulib-tool.texi (Initial import): Update paragraph about
18554         separate gnulib.mk.
18555
18556 2010-09-04  Bruno Haible  <bruno@clisp.org>
18557
18558         gnulib-tool: Don't talk about CVS any more.
18559         * gnulib-tool (func_usage, func_import): Write "version control"
18560         instead of CVS.
18561
18562 2010-09-04  Jim Meyering  <meyering@redhat.com>
18563
18564         maint.mk: avoid obscure sc_copyright_check failure in coreutils
18565         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
18566         false positives (whose names may be ill-chosen) when searching
18567         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
18568         would cause a false-positive.
18569
18570         avoid coreutils "make distcheck" failure
18571         Coreutils tests with an absolute build directory name that contains
18572         a space.  Not quoting this directory name caused a failure.
18573         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
18574         * tests/test-vc-list-files-cvs.sh: Likewise.
18575
18576 2010-09-04  Bruno Haible  <bruno@clisp.org>
18577
18578         gnulib-tool: Avoid error when run in a package without Makefile.am.
18579         * gnulib-tool: When collecting the m4dirs in a package that does not
18580         have a Makefile.am, eliminate those directories that contain no
18581         gnulib-cache.m4. Fix expression that counts these directories.
18582
18583 2010-09-04  Bruno Haible  <bruno@clisp.org>
18584
18585         update-copyright test: Improve output when perl is missing or too old.
18586         * tests/test-update-copyright.sh: Move test of Perl version down after
18587         the test whether Perl exists. Provide an explanation relating Perl's
18588         error message to Automake's SKIP: message.
18589
18590 2010-09-04  Bruno Haible  <bruno@clisp.org>
18591
18592         Don't augment PATH in TESTS_ENVIRONMENT.
18593         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
18594         set abs_aux_dir instead of augmenting PATH.
18595         * modules/vc-list-files-tests (Makefile.am): Likewise.
18596         * tests/test-update-copyright.sh: Augment PATH here.
18597         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
18598         path_prepend_.
18599         * tests/test-vc-list-files-git.sh: Likewise.
18600
18601 2010-09-04  Jim Meyering  <meyering@redhat.com>
18602
18603         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
18604         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
18605
18606 2010-09-04  Bruno Haible  <bruno@clisp.org>
18607
18608         strdup: Fix compilation error in C++ mode.
18609         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
18610         the macro.
18611
18612 2010-09-04  Bruno Haible  <bruno@clisp.org>
18613
18614         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
18615         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
18616         macro into a function.
18617         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18618
18619 2010-09-04  Bruno Haible  <bruno@clisp.org>
18620
18621         Set PATH_SEPARATOR the same way autoconf does.
18622         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
18623         the value of PATH_SEPARATOR the same way autoconf-generated configure
18624         scripts do.
18625         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
18626         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
18627
18628 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18629
18630         Set PATH_SEPARATOR the same way autoconf does.
18631         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
18632         the same way autoconf-generated configure scripts do.
18633         * posix-modules: Likewise.
18634
18635 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18636
18637         hash: fix safe_hasher const typo
18638         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
18639         const; otherwise, there is a type error later.
18640
18641 2010-09-02  Jim Meyering  <meyering@redhat.com>
18642
18643         test-update-copyright.sh: require perl 5.8.0
18644         * tests/test-update-copyright.sh: Require 5.8.0,
18645         which Tom G. Christensen has confirmed is adequate,
18646         while 5.6.1 is not.
18647
18648 2010-09-02  Eric Blake  <eblake@redhat.com>
18649
18650         tests: init.sh improvements for re-exec'ing with zsh
18651         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
18652         -vx through shell re-exec.
18653         Reported by Tom G. Christensen.
18654
18655         wctype: fix typo in previous commit
18656         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
18657         Reported by Ludovic Courtès.
18658
18659 2010-09-02  Jim Meyering  <meyering@redhat.com>
18660
18661         test-update-copyright.sh: skip test if Perl is too old
18662         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
18663         Reported by Tom G. Christensen.
18664
18665 2010-09-02  Bruno Haible  <bruno@clisp.org>
18666
18667         wctype: Avoid compilation error on IRIX 6.5.30.
18668         * lib/wctype.in.h (iswblank): Declare with a replacement if
18669         REPLACE_ISWBLANK is set.
18670         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
18671         declared. Set REPLACE_ISWBLANK.
18672         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
18673         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
18674         * doc/posix-headers/wctype.texi: Likewise.
18675         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18676
18677 2010-09-01  Bruno Haible  <bruno@clisp.org>
18678
18679         New module 'socketlib'.
18680         * modules/socketlib: New file.
18681         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
18682         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
18683         * modules/sockets (Depends-on): Add socketlib.
18684         Suggested by Sam Steingold <sds@gnu.org>.
18685
18686 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
18687
18688         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
18689
18690         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
18691         when one needs search access to a directory but not read access.
18692         On systems where it is available, it works in some cases where
18693         O_RDONLY does not, namely on directories that are searchable but
18694         not readable, and which need only to be searchable.  If O_SEARCH
18695         is not available, fall back to the traditional method of using
18696         O_RDONLY.
18697
18698         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
18699         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
18700         when opening a directory that needs only to be searchable.
18701         * lib/chdir-safer.c (chdir_no_follow): Likewise.
18702         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
18703         * lib/openat-proc.c (openat_proc_name): Likewise.
18704         * lib/openat.c (openat_needs_fchdir): Likewise.
18705         * lib/save-cwd.c (save_cwd): Likewise.
18706         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
18707
18708 2010-08-28  Bruno Haible  <bruno@clisp.org>
18709
18710         New module 'host-cpu-c-abi'.
18711         * modules/host-cpu-c-abi: New file.
18712         * m4/host-cpu-c-abi.m4: New file, based on part of
18713         clisp/src/m4/general.m4.
18714         Requested by Sam Steingold <sds@gnu.org>.
18715
18716 2010-08-31  Eric Blake  <eblake@redhat.com>
18717         and Jim Meyering  <meyering@redhat.com>
18718
18719         hash: factor, and guard against misbehaving hasher function
18720         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
18721         of table->hasher's return value.  Also protect against a hash value
18722         so large that adding it to table->bucket results in a NULL pointer.
18723         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
18724         Use it in place of open-coded check-and-abort.
18725
18726 2010-08-30  Bruno Haible  <bruno@clisp.org>
18727
18728         hash: silence spurious clang warning
18729         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
18730         Reported by Eric Blake.
18731
18732 2010-08-30  Eric Blake  <eblake@redhat.com>
18733
18734         strstr, memmem, strcasestr: avoid leaked shell message
18735         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
18736         FreeBSD.
18737         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18738         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18739
18740         tests: silence clang warning
18741         * tests/test-malloca.c (do_allocation): Avoid dead store.
18742
18743 2010-08-29  Bruno Haible  <bruno@clisp.org>
18744
18745         gettext: Fix recent mistake.
18746         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
18747
18748 2010-08-29  Bruno Haible  <bruno@clisp.org>
18749
18750         selinux-h: Offer a --without-selinux option.
18751         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
18752         --without-selinux was specified, skip all tests and define
18753         HAVE_SELINUX_SELINUX_H to 0.
18754         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
18755         set LIB_SELINUX to empty.
18756         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
18757         gl_LIBSELINUX. If --without-selinux was specified, replace
18758         selinux/context.h.
18759         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
18760
18761 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18762             Bruno Haible  <bruno@clisp.org>
18763
18764         Make the module 'realloc-gnu' work again on AIX and OSF/1.
18765         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
18766         of HAVE_REALLOC.
18767         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
18768         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
18769         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
18770         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
18771
18772 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18773             Bruno Haible  <bruno@clisp.org>
18774
18775         Make the module 'calloc-gnu' work again on AIX and OSF/1.
18776         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
18777         HAVE_CALLOC.
18778         * lib/xmalloc.c: Update accordingly.
18779         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
18780         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
18781         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
18782
18783 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18784             Bruno Haible  <bruno@clisp.org>
18785
18786         Make the module 'malloc-gnu' work again on AIX and OSF/1.
18787         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
18788         HAVE_MALLOC.
18789         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
18790         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
18791         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
18792
18793 2010-08-29  Bruno Haible  <bruno@clisp.org>
18794
18795         Update modules list.
18796         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
18797         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
18798         (String handling <string.h>): Add astrxfrm.
18799         (File system functions): Add readlinkat.
18800
18801 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18802
18803         Tests for module 'realloc-gnu'.
18804         * modules/realloc-gnu-tests: New file.
18805         * tests/test-realloc-gnu.c: New file.
18806
18807         Tests for module 'calloc-gnu'.
18808         * modules/calloc-gnu-tests: New file.
18809         * tests/test-calloc-gnu.c: New file.
18810
18811         Tests for module 'malloc-gnu'.
18812         * modules/malloc-gnu-tests: New file.
18813         * tests/test-malloc-gnu.c: New file.
18814
18815 2010-08-28  Bruno Haible  <bruno@clisp.org>
18816
18817         Rename module 'realloc' -> 'realloc-gnu'.
18818         * modules/realloc-gnu: New file, copied from modules/realloc.
18819         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
18820         obsolete.
18821         * modules/mgetgroups (Depends-on): Update.
18822         * doc/posix-functions/realloc.texi: Update.
18823         * NEWS: Mention the change.
18824
18825         Rename module 'calloc' -> 'calloc-gnu'.
18826         * modules/calloc-gnu: New file, copied from modules/calloc.
18827         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
18828         obsolete.
18829         * doc/posix-functions/calloc.texi: Update.
18830         * NEWS: Mention the change.
18831
18832         Rename module 'malloc' -> 'malloc-gnu'.
18833         * modules/malloc-gnu: New file, copied from modules/malloc.
18834         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
18835         obsolete.
18836         * modules/argp (Depends-on): Update.
18837         * modules/regex (Depends-on): Update.
18838         * doc/posix-functions/malloc.texi: Update.
18839         * NEWS: Mention the change.
18840
18841 2010-08-28  Eric Blake  <eblake@redhat.com>
18842
18843         pread, pwrite: add missing dependency
18844         * modules/pread (Depends-on): Add extensions.
18845         * modules/pwrite (Depends-on): Likewise.
18846
18847 2010-08-28  Bruno Haible  <bruno@clisp.org>
18848
18849         unistr/u*-strchr: Fix tests dependencies.
18850         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
18851         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
18852         Reported by Ian Beckwith <ianb@erislabs.net>.
18853
18854 2010-08-28  Bruno Haible  <bruno@clisp.org>
18855
18856         read-file: Don't occupy too much unused memory.
18857         * lib/read-file.c (fread_file): Shrink the buffer at the end.
18858
18859 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
18860             Eric Blake  <eblake@redhat.com>
18861             Bruno Haible  <bruno@clisp.org>
18862
18863         read-file: Avoid memory reallocations with regular files.
18864         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
18865         (fread_file): With regular files, use the remaining length as the
18866         initial buffer size.  Check against overflow.
18867         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
18868         sys_stat.
18869
18870 2010-08-28  Bruno Haible  <bruno@clisp.org>
18871
18872         ftello: Relax license.
18873         * modules/ftello (License): Relax to LGPLv2+.
18874         Reported by Eric Blake.
18875
18876 2010-08-28  Bruno Haible  <bruno@clisp.org>
18877
18878         Avoid relocwrapper link errors due to gnulib replacement functions.
18879         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
18880         function.
18881         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18882
18883 2010-08-28  Bruno Haible  <bruno@clisp.org>
18884
18885         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
18886         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
18887         defined.
18888         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
18889         Suggested by Eric Blake.
18890
18891 2010-08-28  Bruno Haible  <bruno@clisp.org>
18892
18893         sys_socket, netdb: Ensure socklen_t gets defined.
18894         * modules/sys_socket (Depends-on): Add socklen.
18895         * modules/netdb (Depends-on): Likewise.
18896         * modules/getaddrinfo (Depends-on): Remove socklen.
18897         * modules/getsockopt (Depends-on): Likewise.
18898         * modules/setsockopt (Depends-on): Likewise.
18899         * tests/test-sys_socket.c: Check that socklen_t is defined.
18900         * tests/test-netdb.c: Likewise.
18901         * m4/socklen.m4: Update comments.
18902         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18903
18904 2010-08-27  Eric Blake  <eblake@redhat.com>
18905
18906         login_tty: add missing dependency
18907         * modules/login_tty (Depends-on): Add pty.
18908
18909 2010-08-26  Eric Blake  <eblake@redhat.com>
18910
18911         lib-symbol-versions: fix m4 quoting
18912         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
18913         format for AC_LINK_IFELSE.
18914
18915         glob: fix compile test
18916         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
18917
18918         btowc: fix missing file
18919         * modules/btowc (Files): Also ship locale-fr.m4.
18920
18921         lseek: fix link test
18922         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
18923         AC_LINK_IFELSE.
18924
18925         include_next: silence autoconf 2.68 warning
18926         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
18927         AC_COMPILE_IFELSE as special.
18928         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
18929         autoconf < 2.68.
18930
18931         acl: fix compilation test
18932         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
18933         AC_COMPILE_IFELSE.
18934
18935 2010-08-26  Bruno Haible  <bruno@clisp.org>
18936
18937         Modernize AC_TRY_RUN invocations.
18938         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
18939         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18940         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
18941         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
18942         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
18943         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
18944         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18945         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18946         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18947         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18948         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18949         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18950         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18951         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18952         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18953         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
18954         gl_MBRLEN_NUL_RETVAL): Likewise.
18955         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
18956         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
18957         Likewise.
18958         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18959         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18960         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18961         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18962         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
18963         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
18964         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
18965         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
18966         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
18967         Likewise.
18968         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
18969         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
18970         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18971         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
18972         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
18973         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18974         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18975         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
18976         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18977         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18978
18979 2010-08-26  Bruno Haible  <bruno@clisp.org>
18980
18981         Modernize AC_TRY_LINK invocations.
18982         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
18983         AC_TRY_LINK.
18984         * m4/argp.m4 (gl_ARGP): Likewise.
18985         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
18986         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
18987         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
18988         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
18989         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
18990         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
18991         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
18992         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
18993         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
18994         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
18995         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
18996         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
18997         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
18998         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
18999         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
19000         * m4/hostent.m4 (gl_HOSTENT): Likewise.
19001         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19002         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
19003         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
19004         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
19005         Likewise.
19006         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
19007         Likewise.
19008         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
19009         Likewise.
19010         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
19011         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
19012         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
19013         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
19014         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
19015         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
19016         * m4/servent.m4 (gl_SERVENT): Likewise.
19017         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
19018         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
19019         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
19020         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
19021         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
19022         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
19023         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19024         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19025         * modules/tsearch-tests (configure.ac): Likewise.
19026
19027 2010-08-26  Bruno Haible  <bruno@clisp.org>
19028
19029         Modernize AC_TRY_COMPILE invocations.
19030         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
19031         AC_TRY_COMPILE.
19032         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
19033         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
19034         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
19035         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
19036         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
19037         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
19038         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
19039         * m4/lock.m4 (gl_LOCK): Likewise.
19040         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
19041         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19042         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
19043         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
19044         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
19045         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
19046         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
19047         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
19048         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
19049         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
19050         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
19051         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
19052         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
19053         extraneous semicolon.
19054
19055 2010-08-26  Jim Meyering  <meyering@redhat.com>
19056
19057         stat-time: relax license LGPL
19058         * modules/stat-time (License): Change from GPL to LGPL,
19059         with consent from all contributors, for use in libguile.
19060         Requested by Ludovic Courtès.
19061
19062 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
19063
19064         poll: return immediately on POLLHUP.
19065         * lib/poll.c (poll): Always set timeout before wait_timeout is
19066         computed.
19067
19068 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19069
19070         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
19071         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
19072         rmdir ("dir/.//"), unlinkat.
19073
19074 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19075
19076         stdbool: avoid spurious failure with modern xlc
19077         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
19078
19079 2010-08-24  Bruno Haible  <bruno@clisp.org>
19080
19081         getloadavg: simplify code
19082         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
19083         gl_have_func. Update comments.
19084
19085 2010-08-24  Eric Blake  <eblake@redhat.com>
19086
19087         getloadavg: don't define SVR4 on cygwin
19088         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
19089         only define SVR4 when -lkvm is required.
19090         Reported by Yaakov Selkowitz.
19091
19092 2010-08-24  Bruno Haible  <bruno@clisp.org>
19093
19094         priv-set: fix comment
19095         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
19096
19097 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
19098
19099         priv-set: fix comments
19100         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
19101         to match code, as suggested by David Bartley in:
19102         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
19103
19104 2010-08-23  Eric Blake  <eblake@redhat.com>
19105
19106         stdbool: avoid rejecting clang
19107         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
19108         * tests/test-stdbool.c: Enable more tests if using the system
19109         <stdbool.h> instead of the gnulib replacement.
19110         (main): Move xlc bug test to a runtime test for all compilers.
19111         Reported by Anders Kaseorg.
19112
19113         argz: fix shell quoting issue
19114         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
19115         Reported by Charles Wilson.
19116
19117 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
19118             Erik Faye-Lund <kusmabite@gmail.com>
19119
19120         poll, select: handle ERROR_BROKEN_PIPE.
19121         * lib/poll.c (win32_compute_revents): Return POLLHUP when
19122         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
19123         * lib/select.c (win32_compute_revents): Do not mark a pipe
19124         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
19125
19126 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
19127
19128         fts: allow compilation with C++
19129         * lib/fts_.h: Specify extern "C" linkage with C++.
19130
19131 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19132
19133         Fix gnulib-tool sed script de-commentation for AIX sed.
19134         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
19135         sed.
19136
19137 2010-08-17  Eric Blake  <eblake@redhat.com>
19138
19139         test-stddef: test for (some) offsetof bugs
19140         * tests/test-stddef.c: Enhance test to ensure correct type of
19141         offsetof.
19142         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
19143         that we are not fixing at this time.
19144
19145 2010-08-15  Bruno Haible  <bruno@clisp.org>
19146
19147         stpncpy: Allow stpncpy to be defined as a macro.
19148         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
19149         if it's already correctly declared.
19150         * lib/string.in.h (stpncpy): Undefine before redefining.
19151         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
19152
19153 2010-08-14  Bruno Haible  <bruno@clisp.org>
19154
19155         Rename module 'memxfrm' to 'amemxfrm'.
19156         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
19157         (amemxfrm): Renamed from memxfrm.
19158         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
19159         (amemxfrm): Renamed from memxfrm.
19160         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
19161         * NEWS: Mention the change.
19162         * MODULES.html.sh (String handling <string.h>): Update.
19163         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
19164         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
19165         * lib/unicase/u16-casexfrm.c: Likewise.
19166         * lib/unicase/u32-casexfrm.c: Likewise.
19167         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
19168         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
19169         * lib/uninorm/u16-normxfrm.c: Likewise.
19170         * lib/uninorm/u32-normxfrm.c: Likewise.
19171         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
19172         memxfrm.
19173         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
19174         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
19175         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
19176         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
19177         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
19178         Suggested by Paul Eggert.
19179
19180 2010-08-14  Bruno Haible  <bruno@clisp.org>
19181
19182         Tests for module 'astrxfrm'.
19183         * modules/astrxfrm-tests: New file.
19184         * tests/test-astrxfrm.c: New file.
19185
19186         New module 'astrxfrm'.
19187         * lib/astrxfrm.h: New file.
19188         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
19189         * modules/astrxfrm: New file.
19190
19191 2010-08-14  Reuben Thomas <rrt@sc3d.org>
19192
19193         regex: Tweak doc.
19194         * doc/regex.texi (Overview): Don't mention regex.c.
19195         (GNU Regular Expression Compiling): Likewise.
19196         (Match-end-of-line Operator): Mention 'not_eol'.
19197
19198 2010-08-14  Brian Gough  <bjg@gnu.org>
19199             Bruno Haible  <bruno@clisp.org>
19200
19201         git-merge-changelog: add doc relating to use with bzr and hg.
19202         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
19203
19204 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
19205
19206         pthread: fix pthread.h creation for srcdir != builddir
19207         * modules/pthread (Makefile.am): Fix the rule to work also in a
19208         non-srcdir build.
19209
19210 2010-08-13  Karl Berry  <karl@gnu.org>
19211
19212         * doc/regex.texi (Predefined Syntaxes): @smallexample.
19213         * doc/posix-*/*: force line break before @url of POSIX
19214         specifications.
19215         Suggested by Werner Lemberg.
19216
19217 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
19218
19219         strtod: fix const diagnostic
19220         * lib/strtod.c (strtod): Don't assign const char * to char *,
19221         as this elicits a warning from GCC when warnings are enabled.
19222
19223 2010-08-10  Pádraig Brady <P@draigbrady.com>
19224         and Eric Blake  <eblake@redhat.com>
19225
19226         copy-acl: ignore ENOTSUP on HP-UX
19227         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
19228         so that it is available for HP-UX.
19229         * lib/copy-acl.c (qcopy_acl): Use it.
19230         Reported by Patrick M. Callahan.
19231
19232 2010-08-10  Eric Blake  <eblake@redhat.com>
19233
19234         open, chown: relax license
19235         * modules/open (License): Change to LGPLv2+, with consent by all
19236         authors, for use in augeas.
19237         * modules/chown (License): Likewise.
19238         * modules/lchown (Likewise): Likewise.
19239         Requested by Adam Stokes.
19240
19241 2010-08-09  Karl Berry  <karl@gnu.org>
19242
19243         * build-aux/ar-lib: new file, import from Automake.
19244         * config/srclist.txt: autocheck for updates.
19245
19246 2010-08-09  Eric Blake  <eblake@redhat.com>
19247
19248         readlinkat: adjust client modules
19249         * modules/areadlinkat (Depends-on): Use readlinkat, not
19250         symlinkat.
19251         * modules/areadlinkat-with-size (Depends-on): Likewise.
19252
19253         mknod: be more vocal about danger of running tests as root
19254         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
19255         root, since that is just asking for problems.
19256         Suggested by Bruno Haible, based on a report by Rainer Tammer.
19257
19258         readlinkat: split into its own module
19259         * modules/symlinkat: Split readlinkat...
19260         * modules/readlinkat: ...into separate module.
19261         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
19262         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
19263         * lib/symlinkat.c (readlinkat): Move...
19264         * lib/readlinkat.c: ...into new file.
19265         * modules/symlinkat-tests: Split readlinkat test...
19266         * modules/readlinkat-tests: ...into separate module.
19267         * tests/test-symlinkat.c: Split...
19268         * tests/test-readlinkat.c: ...into new file.
19269         * NEWS: Document the split.
19270         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
19271         * lib/unistd.in.h (readlinkat): Likewise.
19272         Suggested by Bruno Haible.
19273
19274 2010-08-08  Bruno Haible  <bruno@clisp.org>
19275
19276         memxfrm: Speed up.
19277         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
19278         that usually only one call to strxfrm is necessary for each string
19279         part.
19280         Reported by Paul Eggert <eggert@cs.ucla.edu>.
19281
19282 2010-08-07  Karl Berry  <karl@gnu.org>
19283
19284         * doc/posix-headers/limits.texi,
19285         * doc/posix-functions/malloc.texi,
19286         * doc/posix-functions/strsignal.texi: missing @item.
19287         * doc/ld-version-script.texi: spurious leading i.
19288         * doc/regex.texi (Interval Operators): no commas inside @var.
19289
19290 2010-08-01  Bruno Haible  <bruno@clisp.org>
19291
19292         Integrate the regex documentation.
19293         * doc/gnulib.texi: Define 'cn' index.
19294         (Regular expressions): New a chapter that includes regex.texi and
19295         regexprops-generic.texi.
19296         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
19297         syntax.
19298
19299         Whitespace cleanup.
19300         * doc/regex.texi: Remove trailing spaces.
19301
19302         Add regex documentation.
19303         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
19304         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
19305         Written by Kathy A. Hargreaves and Karl Berry.
19306
19307 2010-08-01  Bruno Haible  <bruno@clisp.org>
19308
19309         link: Update documentation.
19310         * doc/posix-functions/link.texi: Update regarding Solaris.
19311
19312 2010-07-31  Bruno Haible  <bruno@clisp.org>
19313
19314         Update modules list.
19315         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
19316         (String handling <string.h>): Add memcmp2, memxfrm.
19317         (Container data structures): Add xlist, xsublist, xoset.
19318         (Core language properties): Add alignof, unused-parameter.
19319         (Process control, Numeric conversion functions <stdlib.h>): Renamed
19320         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
19321         (Unibyte characters <ctype.h>): New section.
19322         (String handling <string.h>): New section.
19323         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
19324         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
19325         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
19326         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
19327         tan, tanh, tanl, y0, y1, yn.
19328         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
19329         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
19330         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
19331         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
19332         unlockpt, vdprintf, vdprintf-posix.
19333         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
19334         (File system functions): Add concat-filename, sys_file, sys_ioctl,
19335         xconcat-filename.
19336         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
19337         getdtablesize, pipe2, pipe2-safer.
19338         (Security): New section.
19339         (Networking functions): Add accept4.
19340         (Signal handling): Add sigpipe.
19341         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
19342         mbmemcasecoll.
19343         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
19344         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
19345         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
19346         pipe-filter-ii.
19347         (Misc): Add argp-version-etc, login_tty, parse-duration.
19348
19349 2010-07-31  Bruno Haible  <bruno@clisp.org>
19350
19351         Improve doc in MODULES.html.
19352         * modules/linkat (Description): Add the word "function".
19353         * modules/mkfifo (Description): Likewise.
19354         * modules/mknod (Description): Likewise.
19355         * modules/remove (Description): Likewise.
19356         * modules/renameat (Description): Likewise.
19357         * modules/stat (Description): Likewise.
19358         * modules/symlink (Description): Likewise.
19359         * modules/unlink (Description): Likewise.
19360
19361 2010-07-31  Bruno Haible  <bruno@clisp.org>
19362
19363         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
19364         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
19365         option --enable/disable-c++ instead of --enable/disable-cxx.
19366         * NEWS: Mention the change.
19367
19368 2010-07-31  Bruno Haible  <bruno@clisp.org>
19369
19370         readlink, areadlink: Relax test a bit.
19371         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
19372         alternative to ENOTDIR.
19373         * tests/test-areadlink.h (test_areadlink): Likewise.
19374         Reported by Rainer Tammer.
19375
19376 2010-07-31  Bruno Haible  <bruno@clisp.org>
19377
19378         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
19379         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
19380         character, perform the search using U_STRCHR.
19381         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
19382         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
19383         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
19384         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
19385         Suggested by Paolo Bonzini.
19386
19387 2010-07-31  Bruno Haible  <bruno@clisp.org>
19388
19389         unistr/u*-strstr: Fix dependencies.
19390         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
19391         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
19392         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
19393
19394 2010-07-31  Bruno Haible  <bruno@clisp.org>
19395
19396         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
19397         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
19398         the beginning of the loop.
19399         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
19400         cases in 'switch' statement.
19401
19402         unistr/u8-strchr: Fix several bugs.
19403         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
19404         the string. When not found, return NULL, not a pointer near the end.
19405
19406         More tests for unistr/u8-strchr.
19407         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
19408         that the function does not read past the first occurrence of the byte
19409         being searched.
19410         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
19411         * tests/unistr/test-u16-strchr.c (main): New function.
19412         * tests/unistr/test-u32-strchr.c (main): New function.
19413
19414 2010-07-31  Bruno Haible  <bruno@clisp.org>
19415
19416         posix-modules: Ignore backup files of documentation files.
19417         * posix-modules: grep only through files named *.texi.
19418
19419 2010-07-31  Bruno Haible  <bruno@clisp.org>
19420
19421         symlinkat: Fix documentation.
19422         * doc/posix-functions/readlinkat.texi: Fix module name.
19423
19424 2010-07-31  Bruno Haible  <bruno@clisp.org>
19425
19426         fchownat: Replace also when chown has the trailing slash bug.
19427         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
19428         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
19429         introduced on 2010-04-10.
19430         Reported by Rainer Tammer.
19431
19432 2010-07-31  Bruno Haible  <bruno@clisp.org>
19433
19434         linkat: Work around AIX 7.1 bug.
19435         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
19436         whether linkat handles trailing slash correctly. If not, replace linkat
19437         and define LINKAT_TRAILING_SLASH_BUG.
19438         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
19439         check whether (fd1,file1) points to a directory if file1 or file2 ends
19440         in a slash. Code taken from lib/link.c.
19441         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
19442         Reported by Rainer Tammer.
19443
19444 2010-07-31  Bruno Haible  <bruno@clisp.org>
19445
19446         Correctly determine whether pow is available in libc on AIX 7 with xlc.
19447         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
19448         This disables an xlc optimization that was causing wrong test results.
19449         Reported by Rainer Tammer.
19450
19451 2010-07-31  Bruno Haible  <bruno@clisp.org>
19452
19453         iconv: Work around AIX 6.1..7.1 bug.
19454         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
19455         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
19456         cross-compiling, guess no on all versions of AIX.
19457         Reported by Rainer Tammer.
19458
19459 2010-07-31  Bruno Haible  <bruno@clisp.org>
19460
19461         readlink: Relax test a bit.
19462         * tests/test-readlink.h (test_readlink): Allow different errno value
19463         when readlink is called with a file name that ends in / and refers to
19464         a file.
19465         Suggested by Eric Blake.
19466         Reported by Rainer Tammer.
19467
19468 2010-07-31  Bruno Haible  <bruno@clisp.org>
19469
19470         copysign: Does not require -lm on glibc systems.
19471         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
19472         gl_COMMON_DOUBLE_MATHFUNC.
19473         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
19474
19475 2010-07-31  Bruno Haible  <bruno@clisp.org>
19476
19477         duplocale: Work around AIX 7.1 bug.
19478         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
19479         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
19480         * lib/duplocale.c (rpl_duplocale): Update comment.
19481         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
19482         Reported by Rainer Tammer.
19483
19484 2010-07-30  Bruno Haible  <bruno@clisp.org>
19485
19486         dirfd: Avoid link error on AIX 7.1.
19487         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
19488         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
19489         exist, set REPLACE_DIRFD.
19490         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
19491         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
19492         * doc/posix-functions/dirfd.texi: Update.
19493         Reported by Rainer Tammer.
19494
19495 2010-07-30  Eric Blake  <eblake@redhat.com>
19496
19497         strtod: next round of AIX fixes
19498         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
19499         exponent.
19500         * tests/test-strtod.c (main): Enhance tests.
19501         * doc/posix-functions/strtod.texi (strtod): Document next bug.
19502         Reported by Rainer Tammer.
19503
19504         futimens: fix configure check
19505         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
19506         Reported by Bruno Haible.
19507
19508 2010-07-30  Bruno Haible  <bruno@clisp.org>
19509
19510         getline: Update regarding AIX.
19511         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
19512         Reported by Rainer Tammer.
19513
19514 2010-07-30  Bruno Haible  <bruno@clisp.org>
19515
19516         wcwidth: Drop replacement on AIX 7.
19517         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
19518         AIX 7.
19519         Reported by Rainer Tammer.
19520
19521 2010-07-30  Bruno Haible  <bruno@clisp.org>
19522
19523         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
19524         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
19525         a 'char *'.
19526         Reported by Rainer Tammer.
19527
19528 2010-07-30  Bruno Haible  <bruno@clisp.org>
19529
19530         unlink: Update regarding AIX.
19531         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
19532         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
19533         Reported by Rainer Tammer.
19534
19535 2010-07-30  Bruno Haible  <bruno@clisp.org>
19536
19537         symlink: Update regarding AIX.
19538         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
19539         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
19540         Reported by Rainer Tammer.
19541
19542 2010-07-30  Bruno Haible  <bruno@clisp.org>
19543
19544         strndup: Update regarding AIX.
19545         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
19546         AIX 7.
19547         Reported by Rainer Tammer.
19548
19549 2010-07-30  Bruno Haible  <bruno@clisp.org>
19550
19551         stat: Update regarding AIX.
19552         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
19553         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
19554         Reported by Rainer Tammer.
19555
19556 2010-07-30  Bruno Haible  <bruno@clisp.org>
19557
19558         truncl: Fix autoconf test.
19559         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
19560         whether truncl works.
19561         Reported by Rainer Tammer.
19562
19563 2010-07-30  Bruno Haible  <bruno@clisp.org>
19564
19565         round: Update regarding AIX.
19566         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
19567         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
19568         Reported by Rainer Tammer.
19569
19570 2010-07-30  Bruno Haible  <bruno@clisp.org>
19571
19572         rename: Update regarding AIX.
19573         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
19574         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
19575         Reported by Rainer Tammer.
19576
19577 2010-07-30  Bruno Haible  <bruno@clisp.org>
19578
19579         printf.m4: Update regarding AIX.
19580         * m4/printf.m4: Update comments regarding AIX.
19581         Reported by Rainer Tammer.
19582
19583 2010-07-30  Bruno Haible  <bruno@clisp.org>
19584
19585         iconv: Update regarding AIX.
19586         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
19587         AIX 7.
19588         Reported by Rainer Tammer.
19589
19590 2010-07-30  Bruno Haible  <bruno@clisp.org>
19591
19592         getopt: Update regarding AIX.
19593         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
19594         no on AIX.
19595         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
19596         Reported by Rainer Tammer.
19597
19598 2010-07-30  Bruno Haible  <bruno@clisp.org>
19599
19600         ldexpl; Update regarding AIX.
19601         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
19602         on AIX 7.
19603         Reported by Rainer Tammer.
19604
19605 2010-07-30  Bruno Haible  <bruno@clisp.org>
19606
19607         frexpl: Update regarding AIX.
19608         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
19609         on AIX 7.
19610         Reported by Rainer Tammer.
19611
19612 2010-07-30  Bruno Haible  <bruno@clisp.org>
19613
19614         open, fopen: Update regarding AIX.
19615         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
19616         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
19617         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
19618         * doc/posix-functions/fopen.texi: Likewise.
19619         Reported by Rainer Tammer.
19620
19621 2010-07-30  Bruno Haible  <bruno@clisp.org>
19622
19623         chown: Update doc regarding AIX.
19624         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
19625         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
19626         Reported by Rainer Tammer.
19627
19628 2010-07-30  Eric Blake  <eblake@redhat.com>
19629
19630         strtod: fix bug in replacement function on AIX
19631         * lib/strtod.c (strtod): Special case broken "0x" parse in
19632         underlying strtod.
19633         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
19634         * doc/posix-functions/strtod.texi (strtod): Likewise.
19635         Reported by Rainer Tammer.
19636
19637 2010-07-30  Bruno Haible  <bruno@clisp.org>
19638
19639         mbrlen: Fix cross-compilation guess for AIX.
19640         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
19641         guess. Leftover from 2008-12-22.
19642
19643 2010-07-30  Bruno Haible  <bruno@clisp.org>
19644
19645         mbrtowc: Fix cross-compilation guess for AIX.
19646         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
19647         guess. Leftover from 2008-12-21.
19648
19649 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
19650
19651         init.sh: work around trap limitation of some shells
19652         * tests/init.sh (setup_): Move exit trap outside of shell function.
19653
19654 2010-07-29  Eric Blake  <eblake@redhat.com>
19655
19656         strtod: aid debugging
19657         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
19658         understanding why strtod is rejected.
19659
19660 2010-07-28  Bruno Haible  <bruno@clisp.org>
19661
19662         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
19663         * lib/unistr/u8-chr.c: Include <string.h>.
19664         * tests/unistr/test-u8-chr.c: Likewise.
19665         * tests/unistr/test-u16-chr.c: Likewise.
19666         * tests/unistr/test-u32-chr.c: Likewise.
19667         * tests/unistr/test-u8-strchr.c: Likewise.
19668         * tests/unistr/test-u16-strchr.c: Likewise.
19669         * tests/unistr/test-u32-strchr.c: Likewise.
19670         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
19671         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
19672         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
19673         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
19674
19675 2010-07-28  Bruno Haible  <bruno@clisp.org>
19676
19677         Use spaces for indentation, not tabs.
19678         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
19679
19680 2010-07-27  Bruno Haible  <bruno@clisp.org>
19681
19682         mbspcasecmp: Fix function specification.
19683         * lib/string.in.h (mbspcasecmp): Fix specification comment.
19684         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
19685         Reported by Eric Blake <eblake@redhat.com>.
19686
19687 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
19688
19689         timespec: use cast and not conditional, as truncation isn't possible
19690         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
19691         instead of a conditional.  Comment about the situation in more detail.
19692         This undoes most of the 2009-10-29 patch.
19693
19694 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
19695
19696         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
19697         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
19698         * lib/unistr/u8-strchr.c: Likewise.
19699         * modules/unistr/u8-chr: Depend on memchr.
19700
19701         unistr/u*-strchr: add tests
19702         * modules/unistr/u8-strchr-tests: New file.
19703         * modules/unistr/u16-strchr-tests: New file.
19704         * modules/unistr/u32-strchr-tests: New file.
19705         * tests/unistr/test-strchr.h: New file.
19706         * tests/unistr/test-u8-strchr.c: New file.
19707         * tests/unistr/test-u16-strchr.c: New file.
19708         * tests/unistr/test-u32-strchr.c: New file.
19709
19710         unistr/u*-chr: test multibyte sequences more
19711         * tests/unistr/test-chr.h: Do complete testing of the characters in the
19712         test vector.
19713         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
19714         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
19715         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
19716
19717         unistr/u*-chr: test multibyte sequences
19718         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
19719
19720         unistr/u*-chr: prepare for multibyte tests
19721         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
19722         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
19723         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
19724         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
19725         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
19726         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
19727
19728 2010-07-18  Bruno Haible  <bruno@clisp.org>
19729
19730         unistr/u8-strchr: Optimize non-ASCII argument case.
19731         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
19732         because the first byte often matches anyway.
19733         Reported by Pádraig Brady <P@draigbrady.com>.
19734
19735 2010-07-15  Karl Berry  <karl@gnu.org>
19736
19737         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
19738
19739 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
19740
19741         getcwd: on Solaris, work better if ancestors are inaccessible
19742         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
19743         buffer and size, try again with a large buffer.  This works better
19744         on Solaris, since its getcwd succeeds even if the path to the root
19745         is inaccessible, and this is helpful in common cases such as .zfs
19746         hidden directories.  Problem reported by J Chapman Flack in
19747         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
19748         Use system getcwd if it's declared, not merely if it's partly
19749         working; use the partly-working test only to avoid needless effort
19750         if the system getcwd fails.
19751         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
19752         comment that was already obsolete and is now even more obsolete.
19753         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
19754         now might call strdup.
19755
19756 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
19757
19758         pthread: Add enough so that coreutils/src/sort.c compiles.
19759         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
19760         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
19761         gnulib. Include <sched.h> and <time.h>, as per POSIX.
19762         Include <sys/types.h>, in case it defines pthread_t.
19763         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
19764         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
19765         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
19766         (pthread_rwlockattr_t, pthread_spinlock_t):
19767         New typedefs, if HAVE_PTHREAD_T is not defined.
19768         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
19769         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
19770         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
19771         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
19772         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
19773         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
19774         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
19775         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
19776         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
19777         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
19778         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
19779         New macros.
19780         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
19781         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
19782         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
19783         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
19784         (pthread_spin_unlock): New dummy functions.
19785         (pthread_create): Return EAGAIN; don't set errno.
19786         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
19787         require AC_C_INLINE.
19788         * modules/pthread (Depends-on): Add sched, time.
19789         (pthread.h): Use AM_V_GEN.
19790
19791 2010-07-13  Bruno Haible  <bruno@clisp.org>
19792
19793         striconveh: Don't malloc memory if the result buffer is sufficient.
19794         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
19795         buffer if its size is sufficient.
19796         Reported by Ludovic Courtès <ludo@gnu.org>.
19797
19798 2010-07-13  Bruno Haible  <bruno@clisp.org>
19799
19800         strtod: Add safety check.
19801         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
19802
19803 2010-07-12  Bruno Haible  <bruno@clisp.org>
19804
19805         Unify tests that set gl_cv_func_ldexpl_no_libm.
19806         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
19807         gl_FUNC_LDEXPL.
19808         (gl_FUNC_LDEXPL): Invoke it.
19809         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
19810
19811 2010-07-12  Bruno Haible  <bruno@clisp.org>
19812
19813         Unify tests that set gl_cv_func_ldexp_no_libm.
19814         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
19815         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
19816         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
19817         (configure.ac): Simply invoke gl_FUNC_LDEXP.
19818         * modules/strtod (Files): Add m4/ldexp.m4.
19819
19820 2010-07-12  Bruno Haible  <bruno@clisp.org>
19821
19822         Unify tests that set gl_cv_func_frexpl_no_libm.
19823         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
19824         gl_FUNC_FREXPL_NO_LIBM.
19825         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
19826         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
19827
19828 2010-07-12  Bruno Haible  <bruno@clisp.org>
19829
19830         Unify tests that set gl_cv_func_frexp_no_libm.
19831         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
19832         gl_FUNC_FREXP_NO_LIBM.
19833         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
19834         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
19835
19836 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
19837
19838         memcoll: clarify sizes versus lengths, document better, and tweak perf
19839         * lib/memcoll.c (strcoll_loop, memcoll0):
19840         Improve quality of descriptive comments.  Name variables
19841         consistently as to whether they are lengths (which do not include
19842         terminating null) versus sizes (which do).
19843         * lib/xmemcoll.c (xmemcoll0): Likewise.
19844         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
19845         returned when s1size == 0; this is easier to compile and saves
19846         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
19847
19848 2010-07-12  Bruno Haible  <bruno@clisp.org>
19849
19850         Tests for module '_Exit'.
19851         * modules/_Exit-tests: New file.
19852         * tests/test-_Exit.sh: New file.
19853         * tests/test-_Exit.c: New file.
19854
19855         New module '_Exit'.
19856         * lib/stdlib.in.h (__attribute__): New macro.
19857         (_Exit): New declaration.
19858         * lib/_Exit.c: New file.
19859         * m4/_Exit.m4: New file.
19860         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
19861         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
19862         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
19863         * modules/_Exit: New file.
19864         * tests/test-stdlib-c++.cc (_Exit): Check signature.
19865         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
19866
19867 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
19868
19869         strtod: make it more-accurate typically, and don't require libm
19870         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
19871         Include limits.h.  Don't include string.h.
19872         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
19873         (locale_isspace): New function, so that no casts are needed to
19874         check whether *s is a space.
19875         (ldexp): Provide an unused dummy if not available.
19876         (scale_radix_exp, parse_number, underlying_strtod): New functions.
19877         (strtod): Use them.  This implementation prefers to use the
19878         underlying strtod if available, falling back on our own code
19879         only to fix known bugs.  This is more likely to produce an
19880         accurate result.  Also, it avoids the use of libm functions.
19881         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
19882         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
19883         was absent, but it caused a test failure with coreutils.
19884         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
19885         with libm.
19886         * modules/strtod (Makefile.am, Link): libm is no longer needed.
19887         * modules/strtod-tests (Makefile.am): Likewise.
19888
19889 2010-07-11  Pádraig Brady  <P@draigBrady.com>
19890             Bruno Haible  <bruno@clisp.org>
19891
19892         unistr/u8-strchr: Optimize ASCII argument case.
19893         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
19894
19895 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
19896
19897         (x)memcoll: minor tweaks
19898         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
19899         is after the type that it qualifies.
19900         (memcoll0): Likewise.
19901         * lib/memcoll.h (memcoll0): Likewise.
19902         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
19903         * lib/xmemcoll.h (xmemcoll0): Likewise.
19904         * lib/memcoll.c (memcoll0): Correct the comment.  This function
19905         differs from memcoll in that the NUL byte is part of the argument.
19906         Omit the abort-checks, as performance is a real issue here.  Plus,
19907         the checks were wrong anyway (an off-by-one error).  Omit local
19908         variable 'diff', as it's a bit clearer that way.
19909         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
19910         no longer needed.
19911
19912 2010-07-08  Chen Guo <chenguo4@yahoo.com>
19913
19914         (x)memcoll: speedup when input is known to be NUL delimited
19915         * lib/memcoll.c: Include stdlib.
19916         (memcoll0): New function.
19917         (strcoll_loop): New function, refactored for use in both memcoll
19918         and memcoll0.
19919         * lib/memcoll.h (memcoll0): Add prototype.
19920         * lib/xmemcoll.c (xmemcoll0): New function.
19921         (collate_error): New function, refactored for use in both xmemcoll
19922         and xmemcoll0.
19923         * lib/xmemcoll.h (xmemcoll0): Add prototype.
19924         * m4/memcoll.m4: add inline invocation.
19925
19926 2010-07-06  Pádraig Brady  <P@draigBrady.com>
19927
19928         * build-aux/bootstrap: Remove any local translations
19929         from the translation project synchronization directory,
19930         so that local only translations are not distributed.
19931
19932 2010-07-04  Bruno Haible  <bruno@clisp.org>
19933
19934         fsusage: Clarify which code applies to which platforms.
19935         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
19936         platform.
19937         * lib/fsusage.c (get_fs_usage): Likewise.
19938
19939 2010-07-04  Bruno Haible  <bruno@clisp.org>
19940
19941         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
19942         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
19943         Reported by Martin Lambers <marlam@marlam.de>.
19944
19945 2010-07-04  Jim Meyering  <meyering@redhat.com>
19946
19947         hash: once again explicitly disallow insertion of NULL
19948         * lib/hash.c (hash_insert0): Reinstate just-removed test:
19949         inserting a NULL pointer cannot work with these functions.
19950         Add a comment with details.
19951         This reverts part of the 2010-07-01 commit, 5bef1a35
19952         "hash: extend module to deal with non-pointer keys".
19953
19954 2010-07-01  Bruno Haible  <bruno@clisp.org>
19955
19956         stdbool: Update doc.
19957         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
19958         Info from Christian Weisgerber <naddy@mips.inka.de>.
19959
19960 2010-07-01  Jim Meyering  <meyering@redhat.com>
19961
19962         hash: extend module to deal with non-pointer keys
19963         * lib/hash.c (hash_insert0): New interface, much like hash_insert
19964         but that allows insertion of non-pointer entries.
19965         Do not disallow an ENTRY value of NULL.
19966         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
19967         * lib/hash.h (hash_insert0): Declare.
19968
19969 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19970
19971         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
19972         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
19973         not present (i.e. with autoconf 2.59 and when using gettextize, not
19974         gnulib), require AC_GNU_SOURCE instead.
19975
19976 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
19977
19978         idpriv-drop: Fix tests.
19979         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
19980         not to the test-idpriv-droptemp program.
19981
19982 2010-06-29  Bruno Haible  <bruno@clisp.org>
19983
19984         string: Fix syntax error with g++ 2.96.
19985         * lib/string.in.h (__pure__): Remove definition.
19986         (_GL_ATTRIBUTE_PURE): New macro.
19987         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
19988         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
19989         Reported by Christian Weisgerber <naddy@mips.inka.de>.
19990
19991 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
19992
19993         unitypes: Fix bug introduced on 2010-05-18.
19994         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
19995
19996 2010-06-22  Eric Blake  <eblake@redhat.com>
19997
19998         memmem: slight optimization
19999         * lib/str-two-way.h (critical_factorization): Update comments.
20000         Reduce work during factorization phase.
20001         Reported by Carlos Bueno <carlos@bueno.org>.
20002
20003 2010-06-21  Bruno Haible  <bruno@clisp.org>
20004
20005         Fix HAVE_CALLOC_POSIX misnomer.
20006         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
20007         !HAVE_CALLOC_POSIX.
20008         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
20009         HAVE_CALLOC_POSIX.
20010         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
20011         instead of HAVE_CALLOC_POSIX.
20012         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
20013         HAVE_CALLOC_POSIX.
20014
20015         Use modern idiom for calloc() replacement.
20016         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
20017         AC_FUNC_CALLOC.
20018         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
20019         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
20020         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20021         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
20022         (gl_REPLACE_CALLOC): New macro.
20023
20024 2010-06-21  Bruno Haible  <bruno@clisp.org>
20025
20026         Fix HAVE_REALLOC_POSIX misnomer.
20027         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
20028         !HAVE_REALLOC_POSIX.
20029         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
20030         HAVE_REALLOC_POSIX.
20031         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
20032         instead of HAVE_REALLOC_POSIX.
20033         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
20034         HAVE_REALLOC_POSIX.
20035
20036         Use modern idiom for realloc() replacement.
20037         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
20038         AC_FUNC_REALLOC.
20039         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
20040         Autoconf's AC_FUNC_REALLOC.
20041         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20042         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
20043         (gl_REPLACE_REALLOC): New macro.
20044         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
20045
20046 2010-06-21  Bruno Haible  <bruno@clisp.org>
20047
20048         Fix HAVE_MALLOC_POSIX misnomer.
20049         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
20050         !HAVE_MALLOC_POSIX.
20051         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
20052         HAVE_MALLOC_POSIX.
20053         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
20054         instead of HAVE_MALLOC_POSIX.
20055         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
20056         HAVE_MALLOC_POSIX.
20057
20058         Use modern idiom for malloc() replacement.
20059         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
20060         AC_FUNC_MALLOC.
20061         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
20062         Autoconf's AC_FUNC_MALLOC.
20063         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20064         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
20065         (gl_REPLACE_MALLOC): New macro.
20066         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
20067
20068 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
20069
20070         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
20071         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
20072         This macro takes 3 arguments, not 4.
20073
20074 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
20075
20076         ipv6: fix detection under mingw
20077         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
20078         in6_addr.
20079
20080 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
20081
20082         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
20083         that strtod() works when cross-compiling to a glibc version known
20084         to work.
20085
20086 2010-06-15  Bruno Haible  <bruno@clisp.org>
20087
20088         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
20089
20090 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
20091
20092         select: Correct timeout.
20093         * lib/select.c (rpl_select): Compute wait_timeout correctly.
20094
20095 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20096
20097         git-version-gen: init shell var to avoid env var influence
20098         * build-aux/git-version-gen (v): Init shell var to empty.
20099
20100 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
20101
20102         priv-set: Don't assume that priv.h exists merely because getppriv does.
20103         See Jan Andersen's bug report about AIX 5L in
20104         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
20105         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
20106         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
20107         * lib/priv-set.h: Likewise.
20108         * tests/test-priv-set.c: Likewise.
20109
20110 2010-06-13  Bruno Haible  <bruno@clisp.org>
20111
20112         relocatable: Make it easier to test whether to install wrappers.
20113         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
20114         RELOCATABLE_VIA_WRAPPER.
20115
20116 2010-06-13  Bruno Haible  <bruno@clisp.org>
20117
20118         gnulib-tool: Display specified modules and dependencies differently.
20119         * gnulib-tool (func_show_module_list): New function.
20120         (func_import, func_create_testdir): Invoke it.
20121         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
20122
20123 2010-06-13  Bruno Haible  <bruno@clisp.org>
20124
20125         gnulib-tool: Align code of func_import and func_create_testdir.
20126         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
20127         specified_modules.
20128
20129 2010-06-12  Jim Meyering  <meyering@redhat.com>
20130
20131         test-inttostr: avoid spurious failure on Solaris 9
20132         * tests/test-inttostr.c (main): Skip the test when snprintf fails
20133         to accept "%ju".  Reported by Bruno Haible.
20134
20135 2010-06-11  Jim Meyering  <meyering@redhat.com>
20136
20137         test-sys_socket: mark variables as used more readably
20138         * tests/test-sys_socket.c (main): Mark otherwise unused variables
20139         as "used" explicitly via (void) statement casts.  This is more
20140         readable than using them in an artificial return expression.
20141         Suggestion from Bruno Haible.
20142
20143 2010-06-11  Bruno Haible  <bruno@clisp.org>
20144
20145         Avoid some more warnings from "gcc -Wwrite-strings".
20146         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
20147         to 'const char *'.
20148         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
20149         * tests/test-c-strcasestr.c (main): Likewise.
20150         * tests/test-mbscasestr1.c (main): Likewise.
20151         * tests/test-mbscasestr2.c (main): Likewise.
20152         * tests/test-memmem.c (main): Likewise.
20153         * tests/test-strstr.c (main): Likewise.
20154         * tests/test-strcasestr.c (main): Likewise.
20155
20156 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20157
20158         init.sh: change framework_failure_ to fail with status 99, not 1
20159         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
20160         automake's parallel-tests rule that this is an unexpected failure,
20161         even if the test is listed in XFAIL_TESTS.
20162
20163 2010-06-11  Jim Meyering  <meyering@redhat.com>
20164
20165         test-inttostr: avoid warnings about 4-6KB literal strings
20166         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
20167         Include "macros.h", for its definition of ASSERT.
20168         (CK): s/assert/ASSERT/
20169         * modules/inttostr-tests (Files): Add macros.h.
20170
20171         init.sh: don't use $ME_ or skip_ before they are defined
20172         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
20173         their first uses.  Also hoist their companions: warn_, fail_,
20174         framework_failure_, $stderr_fileno.  Prompted by a patch from
20175         Stefano Lattarini.
20176
20177         test-sys_socket: avoid set-but-not-used warnings from gcc
20178         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
20179         avoid warning about set-but-not-used variables.
20180
20181         test-xvasprintf: avoid 'const' discard warnings
20182         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
20183         "const" when assigning from literal strings.
20184         (test_xasprintf): Add "void" in function argument list to placate
20185         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
20186
20187         tests: avoid compilation warnings in argmatch and exclude tests...
20188         in packages that define ARGMATCH_DIE_DECL, like coreutils.
20189         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
20190         Since it always exits, declare with the "noreturn" attribute.
20191         * tests/test-argmatch.c: Likewise.
20192
20193         tests: avoid 'const' discard warnings in mbsstr tests
20194         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
20195         * tests/test-mbsstr2.c (main): Likewise.
20196
20197         test-verify: avoid warning from gcc's -Wmissing-declarations
20198         * tests/test-verify.c (function): Declare to be static.
20199
20200         test-inttostr.c: include <string.h> for use of strcmp
20201         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
20202
20203         test-linkat: avoid failed assertion on "other" architectures
20204         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
20205         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
20206         sparc: https://bugs.launchpad.net/bugs/591968
20207
20208 2010-06-11  Jim Meyering  <meyering@redhat.com>
20209
20210         printf.m4: avoid autoconf's "Expanded Before Required" warning
20211         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
20212         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
20213         autoconf warning.
20214
20215 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
20216
20217         Replacement header templates are now named with ".in", not "_".
20218         * doc/gnulib-intro.texi: Correct.
20219
20220 2010-06-10  Jim Meyering  <meyering@redhat.com>
20221
20222         inttostr-tests: depend on snprintf, not snprintf-posix
20223         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
20224         snprintf-posix, to avoid this aclocal failure:
20225           missing file gnulib-tests/vasnprintf.c
20226           configure.ac:45: error: expected source file, required through \
20227           AC_LIBSOURCES, not found
20228
20229 2010-06-10  Jim Meyering  <meyering@redhat.com>
20230
20231         inttostr: add a new function, inttostr, and tests
20232         The namesake function was not available.  The existence of the
20233         template file, inttostr.c makes its addition nontrivial.
20234         * lib/anytostr.c: Rename from inttostr.c.
20235         (anytostr): Rename from inttostr.
20236         * lib/inttostr.c: New file.
20237         * modules/inttostr (Files): Add anytostr.c.
20238         (Makefile.am): Set lib_SOURCES instead of ...
20239         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
20240         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
20241         * lib/offtostr.c: Likewise.
20242         * lib/uinttostr.c: Likewise.
20243         * lib/umaxtostr.c: Likewise.
20244         * modules/inttostr-tests: New file.
20245         * tests/test-inttostr.c: New file.  Test these functions.
20246
20247 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
20248             Bruno Haible  <bruno@clisp.org>
20249
20250         Add "Extending Gnulib" chapter to manual.
20251         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
20252         chapter.
20253         (Extending Gnulib): New chapter.
20254         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
20255         chapter.
20256
20257 2010-06-09  Bruno Haible  <bruno@clisp.org>
20258
20259         Avoid relocwrapper link errors due to gnulib replacement functions.
20260         * lib/areadlink.c: Use the system's malloc, realloc functions.
20261         (areadlink): Set errno to ENOMEM explicitly.
20262         * modules/areadlink (Depends-on): Remove malloc-posix.
20263         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20264
20265 2010-06-09  Bruno Haible  <bruno@clisp.org>
20266
20267         Avoid relocwrapper link errors due to gnulib replacement functions.
20268         * lib/canonicalize-lgpl.c: Use the system's malloc function.
20269         * lib/malloca.c: Likewise.
20270         * lib/relocatable.c: Likewise.
20271         * lib/progreloc.c: Use the system's malloc, sprintf functions.
20272         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
20273         * lib/setenv.c: Use the system's malloc, realloc functions.
20274         * lib/strerror.c: Use the system's sprintf function.
20275         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20276
20277 2010-06-04  Bruno Haible  <bruno@clisp.org>
20278
20279         Prefer documented low-level autoconf macro names.
20280         * m4/lib-link.m4: Use m4_translit instead of translit.
20281         * m4/environ.m4: Likewise.
20282         * m4/mathfunc.m4: Likewise.
20283         * m4/onceonly.m4: Likewise.
20284         * m4/stdint.m4: Likewise.
20285         Suggested by Eric Blake.
20286
20287 2010-06-04  Martin Lambers  <marlam@marlam.de>
20288             Bruno Haible  <bruno@clisp.org>
20289
20290         havelib: Allow library names with '+' characters.
20291         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
20292         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
20293
20294 2010-06-09  Bruno Haible  <bruno@clisp.org>
20295
20296         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
20297         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
20298         realloc failed.
20299
20300 2010-06-08  Peter Simons  <simons@cryp.to>
20301
20302         maint.mk: make the news-check rule more configurable
20303         * top/maint.mk (news-check-lines-spec): New variable.
20304         (news-check): Use "sed -n 1,10p" in place of "head".
20305
20306 2010-06-07  Jim Meyering  <meyering@redhat.com>
20307
20308         do-release-commit-and-tag: fix typo in --help
20309         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
20310
20311         regex: avoid new dead-code warning with gcc-4.6.0
20312         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
20313         if-block containing a while-loop.  It's been unused for at least
20314         5 years.
20315
20316 2010-06-05  Bruno Haible  <bruno@clisp.org>
20317
20318         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
20319         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
20320
20321 2010-06-04  Bruno Haible  <bruno@clisp.org>
20322
20323         Update to GNU gettext 0.18.1.
20324         * modules/gettext (configure.ac): Require gettext infrastructure from
20325         version 0.18.1.
20326
20327 2010-06-03  Bruno Haible  <bruno@clisp.org>
20328
20329         Don't use AC_LIBOBJ with file names in subdirectories.
20330         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
20331         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
20332         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
20333         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
20334         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
20335         gl_LIBUNISTRING_LIBSOURCE.
20336         (Makefile.am): Augment lib_SOURCES here, conditionally.
20337         * NEWS: Drop requirement for Automake option 'subdir-objects'.
20338
20339 2010-06-03  Bruno Haible  <bruno@clisp.org>
20340
20341         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
20342         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
20343         expansion does not end with a newline.
20344         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
20345         unnecessary newline.
20346
20347 2010-06-03  Bruno Haible  <bruno@clisp.org>
20348
20349         Reduce dependencies.
20350         * tests/test-quotearg.h: New file, extracted from
20351         tests/test-quotearg.c.
20352         * tests/test-quotearg-simple.c: New file, extracted from
20353         tests/test-quotearg.c.
20354         * tests/test-quotearg.c: Don't include <ctype.h>.
20355         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
20356         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
20357         use_quote_double_quotes, use_quotearg_colon): Moved to
20358         tests/test-quotearg.h.
20359         (results_g, flag_results, custom_quotes, custom_results): Moved
20360         to tests/test-quotearg-simple.c.
20361         (main): Moved the part that does not depend on gettext to
20362         tests/test-quotearg-simple.c. Return 77 if the test cannot be
20363         performed.
20364         * modules/quotearg-simple: New file.
20365         * modules/quotearg-simple-tests: New file.
20366         * modules/quotearg (Depends-on): Add quotearg-simple.
20367         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
20368         (Files): Add tests/test-quotearg.h.
20369         Reported by Paolo Bonzini.
20370
20371 2010-06-03  Bruno Haible  <bruno@clisp.org>
20372
20373         Reduce dependencies.
20374         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
20375
20376 2010-06-03  Bruno Haible  <bruno@clisp.org>
20377
20378         time: Undefine more broken macros.
20379         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
20380         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
20381         Reported by Eric Blake.
20382
20383 2010-06-03  Bruno Haible  <bruno@clisp.org>
20384
20385         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
20386         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
20387         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
20388         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
20389         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
20390         Reported by Ludovic Courtès <ludo@gnu.org>.
20391
20392 2010-06-02  Eric Blake  <eblake@redhat.com>
20393
20394         time: work with mingw + pthreads-win32 library
20395         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
20396         if timespec is defined only in pthread.h.
20397         * modules/time (Makefile.am): Substitute it.
20398         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
20399         <pthread.h>, when needed.
20400         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
20401         from the library.
20402
20403 2010-05-31  Bruno Haible  <bruno@clisp.org>
20404
20405         Avoid expanding two macros in the wrong order.
20406         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
20407         gl_LIBUNISTRING if it is defined.
20408         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
20409         autoconf >= 2.64.
20410         Reported by Ludovic Courtès <ludo@gnu.org>.
20411
20412 2010-05-27  Jim Meyering  <meyering@redhat.com>
20413
20414         maint.mk: also prohibit "#undef" of always-defined symbols
20415         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
20416         Allow more than one space before the symbol name.
20417         (sc_prohibit_always-defined_macros): Use grep's -E, now that
20418         the regexp uses alternation.
20419
20420 2010-05-26  Eric Blake  <eblake@redhat.com>
20421
20422         maint.mk: avoid echo -e
20423         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
20424         Convert all uses of echo -* to printf.
20425         Reported by Matthias Bolte.
20426
20427 2010-05-25  Bruno Haible  <bruno@clisp.org>
20428
20429         Update to GNU gettext 0.18, part 2.
20430         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
20431         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
20432
20433 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20434
20435         Add missing include in test-pwrite.c.
20436         * tests/test-pwrite.c: Include string.h, for strcmp.
20437
20438 2010-05-24  Bruno Haible  <bruno@clisp.org>
20439
20440         * NEWS: Mention requirement for Automake option 'subdir-objects'.
20441
20442 2010-05-24  Bruno Haible  <bruno@clisp.org>
20443
20444         Don't use conversion with transliteration in u{8,16,32}_strcoll.
20445         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
20446         iconveh_error argument.
20447         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
20448         U_STRCONV_TO_LOCALE.
20449         * lib/unistr/u16-strcoll.c: Likewise.
20450         * lib/unistr/u32-strcoll.c: Likewise.
20451         * modules/unistr/u8-strcoll (Depends-on): Add
20452         uniconv/u8-strconv-to-enc, localcharset. Remove
20453         uniconv/u8-strconv-to-locale.
20454         (configure.ac): Bump version number.
20455         * modules/unistr/u16-strcoll (Depends-on): Add
20456         uniconv/u16-strconv-to-enc, localcharset. Remove
20457         uniconv/u16-strconv-to-locale.
20458         (configure.ac): Bump version number.
20459         * modules/unistr/u32-strcoll (Depends-on): Add
20460         uniconv/u32-strconv-to-enc, localcharset. Remove
20461         uniconv/u32-strconv-to-locale.
20462         (configure.ac): Bump version number.
20463
20464 2010-05-24  Bruno Haible  <bruno@clisp.org>
20465
20466         Avoid a test failure on NetBSD 5.0.
20467         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
20468         an iconv() bug.
20469
20470 2010-05-24  Bruno Haible  <bruno@clisp.org>
20471
20472         Adjust #include directive style.
20473         * modules/regex (Includes): Recommend to write <regex.h>.
20474
20475 2010-05-24  Bruno Haible  <bruno@clisp.org>
20476
20477         regex: Don't require alloca.
20478         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
20479         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
20480         only inside if (0).
20481
20482 2010-05-23  Jim Meyering  <meyering@redhat.com>
20483
20484         test-renameat.c: include <sys/stat.h>
20485         * tests/test-renameat.c: Include <sys/stat.h>; required for
20486         definition of S_IS* macros.
20487
20488 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
20489
20490         Update maintainer documentation for 'relocatable-prog' module.
20491         * doc/relocatable-maint.texi: Update.
20492         Comments by Bruno Haible.
20493
20494 2010-05-23  Bruno Haible  <bruno@clisp.org>
20495
20496         git-merge-changelog: Enable --split-merged-entry by default.
20497         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
20498         (usage): Don't mention this option any more.
20499         Reported by Ralf Wildenhues.
20500
20501 2010-05-23  Jim Meyering  <meyering@redhat.com>
20502
20503         test-pwrite: do not leave behind a test file named "out"
20504         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
20505         The trivial-looking use of init.sh is really necessary.
20506         It ensures that the temporary file, "out", is created in
20507         a temporary directory, and removed upon termination.
20508         * tests/test-pwrite.sh: Re-add file.
20509         * modules/pwrite-tests: Reference it.
20510
20511 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20512
20513         Fix output redirection buglet in init.sh.
20514         * tests/init.sh: Fix redirection of stderr.
20515
20516 2010-05-20  Simon Josefsson  <simon@josefsson.org>
20517
20518         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
20519
20520 2010-05-17  Simon Josefsson  <simon@josefsson.org>
20521
20522         * modules/valgrind-tests: New file.
20523         * m4/valgrind-tests.m4: New file.
20524         * doc/valgrind-tests.texi: New file.
20525         * doc/gnulib.texi (Running self-tests under valgrind): New
20526         section.
20527
20528 2010-05-19  Bruno Haible  <bruno@clisp.org>
20529
20530         Clean up dead code in recent commit.
20531         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
20532         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
20533         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
20534         Suggested by Paolo Bonzini.
20535
20536 2010-05-19  Bruno Haible  <bruno@clisp.org>
20537
20538         Avoid valgrind error reports from libunistring.
20539         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
20540         * modules/libunistring (Files): Add it.
20541         * modules/libunistring-optional (Files): Likewise.
20542
20543 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
20544             Bruno Haible  <bruno@clisp.org>
20545
20546         New module 'libunistring-optional'.
20547         * modules/libunistring-optional: New file.
20548         * m4/libunistring-base.m4: New file.
20549         * m4/libunistring-optional.m4: New file.
20550         * lib/unicase.in.h: Renamed from lib/unicase.h.
20551         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
20552         * lib/unictype.in.h: Renamed from lib/unictype.h.
20553         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
20554         * lib/uniname.in.h: Renamed from lib/uniname.h.
20555         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
20556         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
20557         * lib/unistr.in.h: Renamed from lib/unistr.h.
20558         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
20559         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
20560         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
20561         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
20562         gl_LIBUNISTRING. If the library was found, determine the installed
20563         version and set LIBUNISTRING_VERSION.
20564         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
20565         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
20566         handle a configuration option --with-included-libunistring.
20567         * modules/libunistring (Files): Add m4/absolute-header.m4.
20568         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
20569         Add m4/libunistring-base.m4.
20570         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20571         (Makefile.am): Build unicase.h from unicase.in.h.
20572         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
20573         Add m4/libunistring-base.m4.
20574         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20575         (Makefile.am): Build uniconv.h from uniconv.in.h.
20576         * modules/unictype/base (Files): Use unictype.in.h instead of
20577         unictype.h. Add m4/libunistring-base.m4.
20578         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20579         (Makefile.am): Build unictype.h from unictype.in.h.
20580         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
20581         Add m4/libunistring-base.m4.
20582         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20583         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
20584         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
20585         Add m4/libunistring-base.m4.
20586         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20587         (Makefile.am): Build uniname.h from uniname.in.h.
20588         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
20589         Add m4/libunistring-base.m4.
20590         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20591         (Makefile.am): Build uninorm.h from uninorm.in.h.
20592         * modules/unistdio/base (Files): Use unistdio.in.h instead of
20593         unistdio.h. Add m4/libunistring-base.m4.
20594         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20595         (Makefile.am): Build unistdio.h from unistdio.in.h.
20596         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
20597         Add m4/libunistring-base.m4.
20598         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20599         (Makefile.am): Build unistr.h from unistr.in.h.
20600         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
20601         Add m4/libunistring-base.m4.
20602         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20603         (Makefile.am): Build unitypes.h from unitypes.in.h.
20604         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
20605         Add m4/libunistring-base.m4.
20606         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20607         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
20608         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
20609         uniwidth.h. Add m4/libunistring-base.m4.
20610         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20611         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
20612         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
20613         instead of augmenting lib_SOURCES.
20614         * modules/unicase/empty-suffix-context: Likewise.
20615         * modules/unicase/locale-language: Likewise.
20616         * modules/unicase/tolower: Likewise.
20617         * modules/unicase/totitle: Likewise.
20618         * modules/unicase/toupper: Likewise.
20619         * modules/unicase/u8-casecmp: Likewise.
20620         * modules/unicase/u8-casecoll: Likewise.
20621         * modules/unicase/u8-casefold: Likewise.
20622         * modules/unicase/u8-casexfrm: Likewise.
20623         * modules/unicase/u8-ct-casefold: Likewise.
20624         * modules/unicase/u8-ct-tolower: Likewise.
20625         * modules/unicase/u8-ct-totitle: Likewise.
20626         * modules/unicase/u8-ct-toupper: Likewise.
20627         * modules/unicase/u8-is-cased: Likewise.
20628         * modules/unicase/u8-is-casefolded: Likewise.
20629         * modules/unicase/u8-is-lowercase: Likewise.
20630         * modules/unicase/u8-is-titlecase: Likewise.
20631         * modules/unicase/u8-is-uppercase: Likewise.
20632         * modules/unicase/u8-prefix-context: Likewise.
20633         * modules/unicase/u8-suffix-context: Likewise.
20634         * modules/unicase/u8-tolower: Likewise.
20635         * modules/unicase/u8-totitle: Likewise.
20636         * modules/unicase/u8-toupper: Likewise.
20637         * modules/unicase/u16-casecmp: Likewise.
20638         * modules/unicase/u16-casecoll: Likewise.
20639         * modules/unicase/u16-casefold: Likewise.
20640         * modules/unicase/u16-casexfrm: Likewise.
20641         * modules/unicase/u16-ct-casefold: Likewise.
20642         * modules/unicase/u16-ct-tolower: Likewise.
20643         * modules/unicase/u16-ct-totitle: Likewise.
20644         * modules/unicase/u16-ct-toupper: Likewise.
20645         * modules/unicase/u16-is-cased: Likewise.
20646         * modules/unicase/u16-is-casefolded: Likewise.
20647         * modules/unicase/u16-is-lowercase: Likewise.
20648         * modules/unicase/u16-is-titlecase: Likewise.
20649         * modules/unicase/u16-is-uppercase: Likewise.
20650         * modules/unicase/u16-prefix-context: Likewise.
20651         * modules/unicase/u16-suffix-context: Likewise.
20652         * modules/unicase/u16-tolower: Likewise.
20653         * modules/unicase/u16-totitle: Likewise.
20654         * modules/unicase/u16-toupper: Likewise.
20655         * modules/unicase/u32-casecmp: Likewise.
20656         * modules/unicase/u32-casecoll: Likewise.
20657         * modules/unicase/u32-casefold: Likewise.
20658         * modules/unicase/u32-casexfrm: Likewise.
20659         * modules/unicase/u32-ct-casefold: Likewise.
20660         * modules/unicase/u32-ct-tolower: Likewise.
20661         * modules/unicase/u32-ct-totitle: Likewise.
20662         * modules/unicase/u32-ct-toupper: Likewise.
20663         * modules/unicase/u32-is-cased: Likewise.
20664         * modules/unicase/u32-is-casefolded: Likewise.
20665         * modules/unicase/u32-is-lowercase: Likewise.
20666         * modules/unicase/u32-is-titlecase: Likewise.
20667         * modules/unicase/u32-is-uppercase: Likewise.
20668         * modules/unicase/u32-prefix-context: Likewise.
20669         * modules/unicase/u32-suffix-context: Likewise.
20670         * modules/unicase/u32-tolower: Likewise.
20671         * modules/unicase/u32-totitle: Likewise.
20672         * modules/unicase/u32-toupper: Likewise.
20673         * modules/unicase/ulc-casecmp: Likewise.
20674         * modules/unicase/ulc-casecoll: Likewise.
20675         * modules/unicase/ulc-casexfrm: Likewise.
20676         * modules/uniconv/u8-conv-from-enc: Likewise.
20677         * modules/uniconv/u8-conv-to-enc: Likewise.
20678         * modules/uniconv/u8-strconv-from-enc: Likewise.
20679         * modules/uniconv/u8-strconv-from-locale: Likewise.
20680         * modules/uniconv/u8-strconv-to-enc: Likewise.
20681         * modules/uniconv/u8-strconv-to-locale: Likewise.
20682         * modules/uniconv/u16-conv-from-enc: Likewise.
20683         * modules/uniconv/u16-conv-to-enc: Likewise.
20684         * modules/uniconv/u16-strconv-from-enc: Likewise.
20685         * modules/uniconv/u16-strconv-from-locale: Likewise.
20686         * modules/uniconv/u16-strconv-to-enc: Likewise.
20687         * modules/uniconv/u16-strconv-to-locale: Likewise.
20688         * modules/uniconv/u32-conv-from-enc: Likewise.
20689         * modules/uniconv/u32-conv-to-enc: Likewise.
20690         * modules/uniconv/u32-strconv-from-enc: Likewise.
20691         * modules/uniconv/u32-strconv-from-locale: Likewise.
20692         * modules/uniconv/u32-strconv-to-enc: Likewise.
20693         * modules/uniconv/u32-strconv-to-locale: Likewise.
20694         * modules/unictype/bidicategory-byname: Likewise.
20695         * modules/unictype/bidicategory-name: Likewise.
20696         * modules/unictype/bidicategory-of: Likewise.
20697         * modules/unictype/bidicategory-test: Likewise.
20698         * modules/unictype/block-list: Likewise.
20699         * modules/unictype/block-test: Likewise.
20700         * modules/unictype/category-C: Likewise.
20701         * modules/unictype/category-Cc: Likewise.
20702         * modules/unictype/category-Cf: Likewise.
20703         * modules/unictype/category-Cn: Likewise.
20704         * modules/unictype/category-Co: Likewise.
20705         * modules/unictype/category-Cs: Likewise.
20706         * modules/unictype/category-L: Likewise.
20707         * modules/unictype/category-Ll: Likewise.
20708         * modules/unictype/category-Lm: Likewise.
20709         * modules/unictype/category-Lo: Likewise.
20710         * modules/unictype/category-Lt: Likewise.
20711         * modules/unictype/category-Lu: Likewise.
20712         * modules/unictype/category-M: Likewise.
20713         * modules/unictype/category-Mc: Likewise.
20714         * modules/unictype/category-Me: Likewise.
20715         * modules/unictype/category-Mn: Likewise.
20716         * modules/unictype/category-N: Likewise.
20717         * modules/unictype/category-Nd: Likewise.
20718         * modules/unictype/category-Nl: Likewise.
20719         * modules/unictype/category-No: Likewise.
20720         * modules/unictype/category-P: Likewise.
20721         * modules/unictype/category-Pc: Likewise.
20722         * modules/unictype/category-Pd: Likewise.
20723         * modules/unictype/category-Pe: Likewise.
20724         * modules/unictype/category-Pf: Likewise.
20725         * modules/unictype/category-Pi: Likewise.
20726         * modules/unictype/category-Po: Likewise.
20727         * modules/unictype/category-Ps: Likewise.
20728         * modules/unictype/category-S: Likewise.
20729         * modules/unictype/category-Sc: Likewise.
20730         * modules/unictype/category-Sk: Likewise.
20731         * modules/unictype/category-Sm: Likewise.
20732         * modules/unictype/category-So: Likewise.
20733         * modules/unictype/category-Z: Likewise.
20734         * modules/unictype/category-Zl: Likewise.
20735         * modules/unictype/category-Zp: Likewise.
20736         * modules/unictype/category-Zs: Likewise.
20737         * modules/unictype/category-and: Likewise.
20738         * modules/unictype/category-and-not: Likewise.
20739         * modules/unictype/category-byname: Likewise.
20740         * modules/unictype/category-name: Likewise.
20741         * modules/unictype/category-none: Likewise.
20742         * modules/unictype/category-of: Likewise.
20743         * modules/unictype/category-or: Likewise.
20744         * modules/unictype/category-test: Likewise.
20745         * modules/unictype/combining-class: Likewise.
20746         * modules/unictype/ctype-alnum: Likewise.
20747         * modules/unictype/ctype-alpha: Likewise.
20748         * modules/unictype/ctype-blank: Likewise.
20749         * modules/unictype/ctype-cntrl: Likewise.
20750         * modules/unictype/ctype-digit: Likewise.
20751         * modules/unictype/ctype-graph: Likewise.
20752         * modules/unictype/ctype-lower: Likewise.
20753         * modules/unictype/ctype-print: Likewise.
20754         * modules/unictype/ctype-punct: Likewise.
20755         * modules/unictype/ctype-space: Likewise.
20756         * modules/unictype/ctype-upper: Likewise.
20757         * modules/unictype/ctype-xdigit: Likewise.
20758         * modules/unictype/decimal-digit: Likewise.
20759         * modules/unictype/digit: Likewise.
20760         * modules/unictype/mirror: Likewise.
20761         * modules/unictype/numeric: Likewise.
20762         * modules/unictype/property-alphabetic: Likewise.
20763         * modules/unictype/property-ascii-hex-digit: Likewise.
20764         * modules/unictype/property-bidi-arabic-digit: Likewise.
20765         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
20766         * modules/unictype/property-bidi-block-separator: Likewise.
20767         * modules/unictype/property-bidi-boundary-neutral: Likewise.
20768         * modules/unictype/property-bidi-common-separator: Likewise.
20769         * modules/unictype/property-bidi-control: Likewise.
20770         * modules/unictype/property-bidi-embedding-or-override: Likewise.
20771         * modules/unictype/property-bidi-eur-num-separator: Likewise.
20772         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
20773         * modules/unictype/property-bidi-european-digit: Likewise.
20774         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
20775         * modules/unictype/property-bidi-left-to-right: Likewise.
20776         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
20777         * modules/unictype/property-bidi-other-neutral: Likewise.
20778         * modules/unictype/property-bidi-pdf: Likewise.
20779         * modules/unictype/property-bidi-segment-separator: Likewise.
20780         * modules/unictype/property-bidi-whitespace: Likewise.
20781         * modules/unictype/property-byname: Likewise.
20782         * modules/unictype/property-combining: Likewise.
20783         * modules/unictype/property-composite: Likewise.
20784         * modules/unictype/property-currency-symbol: Likewise.
20785         * modules/unictype/property-dash: Likewise.
20786         * modules/unictype/property-decimal-digit: Likewise.
20787         * modules/unictype/property-default-ignorable-code-point: Likewise.
20788         * modules/unictype/property-deprecated: Likewise.
20789         * modules/unictype/property-diacritic: Likewise.
20790         * modules/unictype/property-extender: Likewise.
20791         * modules/unictype/property-format-control: Likewise.
20792         * modules/unictype/property-grapheme-base: Likewise.
20793         * modules/unictype/property-grapheme-extend: Likewise.
20794         * modules/unictype/property-grapheme-link: Likewise.
20795         * modules/unictype/property-hex-digit: Likewise.
20796         * modules/unictype/property-hyphen: Likewise.
20797         * modules/unictype/property-id-continue: Likewise.
20798         * modules/unictype/property-id-start: Likewise.
20799         * modules/unictype/property-ideographic: Likewise.
20800         * modules/unictype/property-ids-binary-operator: Likewise.
20801         * modules/unictype/property-ids-trinary-operator: Likewise.
20802         * modules/unictype/property-ignorable-control: Likewise.
20803         * modules/unictype/property-iso-control: Likewise.
20804         * modules/unictype/property-join-control: Likewise.
20805         * modules/unictype/property-left-of-pair: Likewise.
20806         * modules/unictype/property-line-separator: Likewise.
20807         * modules/unictype/property-logical-order-exception: Likewise.
20808         * modules/unictype/property-lowercase: Likewise.
20809         * modules/unictype/property-math: Likewise.
20810         * modules/unictype/property-non-break: Likewise.
20811         * modules/unictype/property-not-a-character: Likewise.
20812         * modules/unictype/property-numeric: Likewise.
20813         * modules/unictype/property-other-alphabetic: Likewise.
20814         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
20815         * modules/unictype/property-other-grapheme-extend: Likewise.
20816         * modules/unictype/property-other-id-continue: Likewise.
20817         * modules/unictype/property-other-id-start: Likewise.
20818         * modules/unictype/property-other-lowercase: Likewise.
20819         * modules/unictype/property-other-math: Likewise.
20820         * modules/unictype/property-other-uppercase: Likewise.
20821         * modules/unictype/property-paired-punctuation: Likewise.
20822         * modules/unictype/property-paragraph-separator: Likewise.
20823         * modules/unictype/property-pattern-syntax: Likewise.
20824         * modules/unictype/property-pattern-white-space: Likewise.
20825         * modules/unictype/property-private-use: Likewise.
20826         * modules/unictype/property-punctuation: Likewise.
20827         * modules/unictype/property-quotation-mark: Likewise.
20828         * modules/unictype/property-radical: Likewise.
20829         * modules/unictype/property-sentence-terminal: Likewise.
20830         * modules/unictype/property-soft-dotted: Likewise.
20831         * modules/unictype/property-space: Likewise.
20832         * modules/unictype/property-terminal-punctuation: Likewise.
20833         * modules/unictype/property-test: Likewise.
20834         * modules/unictype/property-titlecase: Likewise.
20835         * modules/unictype/property-unassigned-code-value: Likewise.
20836         * modules/unictype/property-unified-ideograph: Likewise.
20837         * modules/unictype/property-uppercase: Likewise.
20838         * modules/unictype/property-variation-selector: Likewise.
20839         * modules/unictype/property-white-space: Likewise.
20840         * modules/unictype/property-xid-continue: Likewise.
20841         * modules/unictype/property-xid-start: Likewise.
20842         * modules/unictype/property-zero-width: Likewise.
20843         * modules/unictype/scripts: Likewise.
20844         * modules/unictype/syntax-c-ident: Likewise.
20845         * modules/unictype/syntax-c-whitespace: Likewise.
20846         * modules/unictype/syntax-java-ident: Likewise.
20847         * modules/unictype/syntax-java-whitespace: Likewise.
20848         * modules/unilbrk/u8-possible-linebreaks: Likewise.
20849         * modules/unilbrk/u8-width-linebreaks: Likewise.
20850         * modules/unilbrk/u16-possible-linebreaks: Likewise.
20851         * modules/unilbrk/u16-width-linebreaks: Likewise.
20852         * modules/unilbrk/u32-possible-linebreaks: Likewise.
20853         * modules/unilbrk/u32-width-linebreaks: Likewise.
20854         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
20855         * modules/unilbrk/ulc-width-linebreaks: Likewise.
20856         * modules/uniname/uniname: Likewise.
20857         * modules/uninorm/canonical-decomposition: Likewise.
20858         * modules/uninorm/composition: Likewise.
20859         * modules/uninorm/decomposing-form: Likewise.
20860         * modules/uninorm/decomposition: Likewise.
20861         * modules/uninorm/filter: Likewise.
20862         * modules/uninorm/nfc: Likewise.
20863         * modules/uninorm/nfd: Likewise.
20864         * modules/uninorm/nfkc: Likewise.
20865         * modules/uninorm/nfkd: Likewise.
20866         * modules/uninorm/u8-normalize: Likewise.
20867         * modules/uninorm/u8-normcmp: Likewise.
20868         * modules/uninorm/u8-normcoll: Likewise.
20869         * modules/uninorm/u8-normxfrm: Likewise.
20870         * modules/uninorm/u16-normalize: Likewise.
20871         * modules/uninorm/u16-normcmp: Likewise.
20872         * modules/uninorm/u16-normcoll: Likewise.
20873         * modules/uninorm/u16-normxfrm: Likewise.
20874         * modules/uninorm/u32-normalize: Likewise.
20875         * modules/uninorm/u32-normcmp: Likewise.
20876         * modules/uninorm/u32-normcoll: Likewise.
20877         * modules/uninorm/u32-normxfrm: Likewise.
20878         * modules/unistdio/u8-asnprintf: Likewise.
20879         * modules/unistdio/u8-asprintf: Likewise.
20880         * modules/unistdio/u8-snprintf: Likewise.
20881         * modules/unistdio/u8-sprintf: Likewise.
20882         * modules/unistdio/u8-u8-asnprintf: Likewise.
20883         * modules/unistdio/u8-u8-asprintf: Likewise.
20884         * modules/unistdio/u8-u8-snprintf: Likewise.
20885         * modules/unistdio/u8-u8-sprintf: Likewise.
20886         * modules/unistdio/u8-u8-vasnprintf: Likewise.
20887         * modules/unistdio/u8-u8-vasprintf: Likewise.
20888         * modules/unistdio/u8-u8-vsnprintf: Likewise.
20889         * modules/unistdio/u8-u8-vsprintf: Likewise.
20890         * modules/unistdio/u8-vasnprintf: Likewise.
20891         * modules/unistdio/u8-vasprintf: Likewise.
20892         * modules/unistdio/u8-vsnprintf: Likewise.
20893         * modules/unistdio/u8-vsprintf: Likewise.
20894         * modules/unistdio/u16-asnprintf: Likewise.
20895         * modules/unistdio/u16-asprintf: Likewise.
20896         * modules/unistdio/u16-snprintf: Likewise.
20897         * modules/unistdio/u16-sprintf: Likewise.
20898         * modules/unistdio/u16-u16-asnprintf: Likewise.
20899         * modules/unistdio/u16-u16-asprintf: Likewise.
20900         * modules/unistdio/u16-u16-snprintf: Likewise.
20901         * modules/unistdio/u16-u16-sprintf: Likewise.
20902         * modules/unistdio/u16-u16-vasnprintf: Likewise.
20903         * modules/unistdio/u16-u16-vasprintf: Likewise.
20904         * modules/unistdio/u16-u16-vsnprintf: Likewise.
20905         * modules/unistdio/u16-u16-vsprintf: Likewise.
20906         * modules/unistdio/u16-vasnprintf: Likewise.
20907         * modules/unistdio/u16-vasprintf: Likewise.
20908         * modules/unistdio/u16-vsnprintf: Likewise.
20909         * modules/unistdio/u16-vsprintf: Likewise.
20910         * modules/unistdio/u32-asnprintf: Likewise.
20911         * modules/unistdio/u32-asprintf: Likewise.
20912         * modules/unistdio/u32-snprintf: Likewise.
20913         * modules/unistdio/u32-sprintf: Likewise.
20914         * modules/unistdio/u32-u32-asnprintf: Likewise.
20915         * modules/unistdio/u32-u32-asprintf: Likewise.
20916         * modules/unistdio/u32-u32-snprintf: Likewise.
20917         * modules/unistdio/u32-u32-sprintf: Likewise.
20918         * modules/unistdio/u32-u32-vasnprintf: Likewise.
20919         * modules/unistdio/u32-u32-vasprintf: Likewise.
20920         * modules/unistdio/u32-u32-vsnprintf: Likewise.
20921         * modules/unistdio/u32-u32-vsprintf: Likewise.
20922         * modules/unistdio/u32-vasnprintf: Likewise.
20923         * modules/unistdio/u32-vasprintf: Likewise.
20924         * modules/unistdio/u32-vsnprintf: Likewise.
20925         * modules/unistdio/u32-vsprintf: Likewise.
20926         * modules/unistdio/ulc-asnprintf: Likewise.
20927         * modules/unistdio/ulc-asprintf: Likewise.
20928         * modules/unistdio/ulc-fprintf: Likewise.
20929         * modules/unistdio/ulc-snprintf: Likewise.
20930         * modules/unistdio/ulc-sprintf: Likewise.
20931         * modules/unistdio/ulc-vasnprintf: Likewise.
20932         * modules/unistdio/ulc-vasprintf: Likewise.
20933         * modules/unistdio/ulc-vfprintf: Likewise.
20934         * modules/unistdio/ulc-vsnprintf: Likewise.
20935         * modules/unistdio/ulc-vsprintf: Likewise.
20936         * modules/unistr/u8-check: Likewise.
20937         * modules/unistr/u8-chr: Likewise.
20938         * modules/unistr/u8-cmp: Likewise.
20939         * modules/unistr/u8-cmp2: Likewise.
20940         * modules/unistr/u8-cpy: Likewise.
20941         * modules/unistr/u8-cpy-alloc: Likewise.
20942         * modules/unistr/u8-endswith: Likewise.
20943         * modules/unistr/u8-mblen: Likewise.
20944         * modules/unistr/u8-mbsnlen: Likewise.
20945         * modules/unistr/u8-mbtouc: Likewise.
20946         * modules/unistr/u8-mbtouc-unsafe: Likewise.
20947         * modules/unistr/u8-mbtoucr: Likewise.
20948         * modules/unistr/u8-move: Likewise.
20949         * modules/unistr/u8-next: Likewise.
20950         * modules/unistr/u8-prev: Likewise.
20951         * modules/unistr/u8-set: Likewise.
20952         * modules/unistr/u8-startswith: Likewise.
20953         * modules/unistr/u8-stpcpy: Likewise.
20954         * modules/unistr/u8-stpncpy: Likewise.
20955         * modules/unistr/u8-strcat: Likewise.
20956         * modules/unistr/u8-strchr: Likewise.
20957         * modules/unistr/u8-strcmp: Likewise.
20958         * modules/unistr/u8-strcoll: Likewise.
20959         * modules/unistr/u8-strcpy: Likewise.
20960         * modules/unistr/u8-strcspn: Likewise.
20961         * modules/unistr/u8-strdup: Likewise.
20962         * modules/unistr/u8-strlen: Likewise.
20963         * modules/unistr/u8-strmblen: Likewise.
20964         * modules/unistr/u8-strmbtouc: Likewise.
20965         * modules/unistr/u8-strncat: Likewise.
20966         * modules/unistr/u8-strncmp: Likewise.
20967         * modules/unistr/u8-strncpy: Likewise.
20968         * modules/unistr/u8-strnlen: Likewise.
20969         * modules/unistr/u8-strpbrk: Likewise.
20970         * modules/unistr/u8-strrchr: Likewise.
20971         * modules/unistr/u8-strspn: Likewise.
20972         * modules/unistr/u8-strstr: Likewise.
20973         * modules/unistr/u8-strtok: Likewise.
20974         * modules/unistr/u8-to-u16: Likewise.
20975         * modules/unistr/u8-to-u32: Likewise.
20976         * modules/unistr/u8-uctomb: Likewise.
20977         * modules/unistr/u16-check: Likewise.
20978         * modules/unistr/u16-chr: Likewise.
20979         * modules/unistr/u16-cmp: Likewise.
20980         * modules/unistr/u16-cmp2: Likewise.
20981         * modules/unistr/u16-cpy: Likewise.
20982         * modules/unistr/u16-cpy-alloc: Likewise.
20983         * modules/unistr/u16-endswith: Likewise.
20984         * modules/unistr/u16-mblen: Likewise.
20985         * modules/unistr/u16-mbsnlen: Likewise.
20986         * modules/unistr/u16-mbtouc: Likewise.
20987         * modules/unistr/u16-mbtouc-unsafe: Likewise.
20988         * modules/unistr/u16-mbtoucr: Likewise.
20989         * modules/unistr/u16-move: Likewise.
20990         * modules/unistr/u16-next: Likewise.
20991         * modules/unistr/u16-prev: Likewise.
20992         * modules/unistr/u16-set: Likewise.
20993         * modules/unistr/u16-startswith: Likewise.
20994         * modules/unistr/u16-stpcpy: Likewise.
20995         * modules/unistr/u16-stpncpy: Likewise.
20996         * modules/unistr/u16-strcat: Likewise.
20997         * modules/unistr/u16-strchr: Likewise.
20998         * modules/unistr/u16-strcmp: Likewise.
20999         * modules/unistr/u16-strcoll: Likewise.
21000         * modules/unistr/u16-strcpy: Likewise.
21001         * modules/unistr/u16-strcspn: Likewise.
21002         * modules/unistr/u16-strdup: Likewise.
21003         * modules/unistr/u16-strlen: Likewise.
21004         * modules/unistr/u16-strmblen: Likewise.
21005         * modules/unistr/u16-strmbtouc: Likewise.
21006         * modules/unistr/u16-strncat: Likewise.
21007         * modules/unistr/u16-strncmp: Likewise.
21008         * modules/unistr/u16-strncpy: Likewise.
21009         * modules/unistr/u16-strnlen: Likewise.
21010         * modules/unistr/u16-strpbrk: Likewise.
21011         * modules/unistr/u16-strrchr: Likewise.
21012         * modules/unistr/u16-strspn: Likewise.
21013         * modules/unistr/u16-strstr: Likewise.
21014         * modules/unistr/u16-strtok: Likewise.
21015         * modules/unistr/u16-to-u32: Likewise.
21016         * modules/unistr/u16-to-u8: Likewise.
21017         * modules/unistr/u16-uctomb: Likewise.
21018         * modules/unistr/u32-check: Likewise.
21019         * modules/unistr/u32-chr: Likewise.
21020         * modules/unistr/u32-cmp: Likewise.
21021         * modules/unistr/u32-cmp2: Likewise.
21022         * modules/unistr/u32-cpy: Likewise.
21023         * modules/unistr/u32-cpy-alloc: Likewise.
21024         * modules/unistr/u32-endswith: Likewise.
21025         * modules/unistr/u32-mblen: Likewise.
21026         * modules/unistr/u32-mbsnlen: Likewise.
21027         * modules/unistr/u32-mbtouc: Likewise.
21028         * modules/unistr/u32-mbtouc-unsafe: Likewise.
21029         * modules/unistr/u32-mbtoucr: Likewise.
21030         * modules/unistr/u32-move: Likewise.
21031         * modules/unistr/u32-next: Likewise.
21032         * modules/unistr/u32-prev: Likewise.
21033         * modules/unistr/u32-set: Likewise.
21034         * modules/unistr/u32-startswith: Likewise.
21035         * modules/unistr/u32-stpcpy: Likewise.
21036         * modules/unistr/u32-stpncpy: Likewise.
21037         * modules/unistr/u32-strcat: Likewise.
21038         * modules/unistr/u32-strchr: Likewise.
21039         * modules/unistr/u32-strcmp: Likewise.
21040         * modules/unistr/u32-strcoll: Likewise.
21041         * modules/unistr/u32-strcpy: Likewise.
21042         * modules/unistr/u32-strcspn: Likewise.
21043         * modules/unistr/u32-strdup: Likewise.
21044         * modules/unistr/u32-strlen: Likewise.
21045         * modules/unistr/u32-strmblen: Likewise.
21046         * modules/unistr/u32-strmbtouc: Likewise.
21047         * modules/unistr/u32-strncat: Likewise.
21048         * modules/unistr/u32-strncmp: Likewise.
21049         * modules/unistr/u32-strncpy: Likewise.
21050         * modules/unistr/u32-strnlen: Likewise.
21051         * modules/unistr/u32-strpbrk: Likewise.
21052         * modules/unistr/u32-strrchr: Likewise.
21053         * modules/unistr/u32-strspn: Likewise.
21054         * modules/unistr/u32-strstr: Likewise.
21055         * modules/unistr/u32-strtok: Likewise.
21056         * modules/unistr/u32-to-u16: Likewise.
21057         * modules/unistr/u32-to-u8: Likewise.
21058         * modules/unistr/u32-uctomb: Likewise.
21059         * modules/uniwbrk/u8-wordbreaks: Likewise.
21060         * modules/uniwbrk/u16-wordbreaks: Likewise.
21061         * modules/uniwbrk/u32-wordbreaks: Likewise.
21062         * modules/uniwbrk/ulc-wordbreaks: Likewise.
21063         * modules/uniwbrk/wordbreak-property: Likewise.
21064         * modules/uniwidth/u8-strwidth: Likewise.
21065         * modules/uniwidth/u8-width: Likewise.
21066         * modules/uniwidth/u16-strwidth: Likewise.
21067         * modules/uniwidth/u16-width: Likewise.
21068         * modules/uniwidth/u32-strwidth: Likewise.
21069         * modules/uniwidth/u32-width: Likewise.
21070         * modules/uniwidth/width: Likewise.
21071         * modules/unicase/cased-tests (Makefile.am): Link all test programs
21072         with $(LIBUNISTRING).
21073         * modules/unicase/ignorable-tests: Likewise.
21074         * modules/unicase/locale-language-tests: Likewise.
21075         * modules/unicase/tolower-tests: Likewise.
21076         * modules/unicase/totitle-tests: Likewise.
21077         * modules/unicase/toupper-tests: Likewise.
21078         * modules/unicase/u8-casecmp-tests: Likewise.
21079         * modules/unicase/u8-casecoll-tests: Likewise.
21080         * modules/unicase/u8-casefold-tests: Likewise.
21081         * modules/unicase/u8-is-cased-tests: Likewise.
21082         * modules/unicase/u8-is-casefolded-tests: Likewise.
21083         * modules/unicase/u8-is-lowercase-tests: Likewise.
21084         * modules/unicase/u8-is-titlecase-tests: Likewise.
21085         * modules/unicase/u8-is-uppercase-tests: Likewise.
21086         * modules/unicase/u8-tolower-tests: Likewise.
21087         * modules/unicase/u8-totitle-tests: Likewise.
21088         * modules/unicase/u8-toupper-tests: Likewise.
21089         * modules/unicase/u16-casecmp-tests: Likewise.
21090         * modules/unicase/u16-casecoll-tests: Likewise.
21091         * modules/unicase/u16-casefold-tests: Likewise.
21092         * modules/unicase/u16-is-cased-tests: Likewise.
21093         * modules/unicase/u16-is-casefolded-tests: Likewise.
21094         * modules/unicase/u16-is-lowercase-tests: Likewise.
21095         * modules/unicase/u16-is-titlecase-tests: Likewise.
21096         * modules/unicase/u16-is-uppercase-tests: Likewise.
21097         * modules/unicase/u16-tolower-tests: Likewise.
21098         * modules/unicase/u16-totitle-tests: Likewise.
21099         * modules/unicase/u16-toupper-tests: Likewise.
21100         * modules/unicase/u32-casecmp-tests: Likewise.
21101         * modules/unicase/u32-casecoll-tests: Likewise.
21102         * modules/unicase/u32-casefold-tests: Likewise.
21103         * modules/unicase/u32-is-cased-tests: Likewise.
21104         * modules/unicase/u32-is-casefolded-tests: Likewise.
21105         * modules/unicase/u32-is-lowercase-tests: Likewise.
21106         * modules/unicase/u32-is-titlecase-tests: Likewise.
21107         * modules/unicase/u32-is-uppercase-tests: Likewise.
21108         * modules/unicase/u32-tolower-tests: Likewise.
21109         * modules/unicase/u32-totitle-tests: Likewise.
21110         * modules/unicase/u32-toupper-tests: Likewise.
21111         * modules/unicase/ulc-casecmp-tests: Likewise.
21112         * modules/unicase/ulc-casecoll-tests: Likewise.
21113         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
21114         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
21115         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
21116         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
21117         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
21118         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
21119         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
21120         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
21121         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
21122         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
21123         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
21124         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
21125         * modules/unictype/bidicategory-byname-tests: Likewise.
21126         * modules/unictype/bidicategory-name-tests: Likewise.
21127         * modules/unictype/bidicategory-of-tests: Likewise.
21128         * modules/unictype/bidicategory-test-tests: Likewise.
21129         * modules/unictype/block-list-tests: Likewise.
21130         * modules/unictype/block-of-tests: Likewise.
21131         * modules/unictype/block-test-tests: Likewise.
21132         * modules/unictype/category-C-tests: Likewise.
21133         * modules/unictype/category-Cc-tests: Likewise.
21134         * modules/unictype/category-Cf-tests: Likewise.
21135         * modules/unictype/category-Cn-tests: Likewise.
21136         * modules/unictype/category-Co-tests: Likewise.
21137         * modules/unictype/category-Cs-tests: Likewise.
21138         * modules/unictype/category-L-tests: Likewise.
21139         * modules/unictype/category-Ll-tests: Likewise.
21140         * modules/unictype/category-Lm-tests: Likewise.
21141         * modules/unictype/category-Lo-tests: Likewise.
21142         * modules/unictype/category-Lt-tests: Likewise.
21143         * modules/unictype/category-Lu-tests: Likewise.
21144         * modules/unictype/category-M-tests: Likewise.
21145         * modules/unictype/category-Mc-tests: Likewise.
21146         * modules/unictype/category-Me-tests: Likewise.
21147         * modules/unictype/category-Mn-tests: Likewise.
21148         * modules/unictype/category-N-tests: Likewise.
21149         * modules/unictype/category-Nd-tests: Likewise.
21150         * modules/unictype/category-Nl-tests: Likewise.
21151         * modules/unictype/category-No-tests: Likewise.
21152         * modules/unictype/category-P-tests: Likewise.
21153         * modules/unictype/category-Pc-tests: Likewise.
21154         * modules/unictype/category-Pd-tests: Likewise.
21155         * modules/unictype/category-Pe-tests: Likewise.
21156         * modules/unictype/category-Pf-tests: Likewise.
21157         * modules/unictype/category-Pi-tests: Likewise.
21158         * modules/unictype/category-Po-tests: Likewise.
21159         * modules/unictype/category-Ps-tests: Likewise.
21160         * modules/unictype/category-S-tests: Likewise.
21161         * modules/unictype/category-Sc-tests: Likewise.
21162         * modules/unictype/category-Sk-tests: Likewise.
21163         * modules/unictype/category-Sm-tests: Likewise.
21164         * modules/unictype/category-So-tests: Likewise.
21165         * modules/unictype/category-Z-tests: Likewise.
21166         * modules/unictype/category-Zl-tests: Likewise.
21167         * modules/unictype/category-Zp-tests: Likewise.
21168         * modules/unictype/category-Zs-tests: Likewise.
21169         * modules/unictype/category-and-not-tests: Likewise.
21170         * modules/unictype/category-and-tests: Likewise.
21171         * modules/unictype/category-byname-tests: Likewise.
21172         * modules/unictype/category-name-tests: Likewise.
21173         * modules/unictype/category-none-tests: Likewise.
21174         * modules/unictype/category-of-tests: Likewise.
21175         * modules/unictype/category-or-tests: Likewise.
21176         * modules/unictype/category-test-withtable-tests: Likewise.
21177         * modules/unictype/combining-class-tests: Likewise.
21178         * modules/unictype/ctype-alnum-tests: Likewise.
21179         * modules/unictype/ctype-alpha-tests: Likewise.
21180         * modules/unictype/ctype-blank-tests: Likewise.
21181         * modules/unictype/ctype-cntrl-tests: Likewise.
21182         * modules/unictype/ctype-digit-tests: Likewise.
21183         * modules/unictype/ctype-graph-tests: Likewise.
21184         * modules/unictype/ctype-lower-tests: Likewise.
21185         * modules/unictype/ctype-print-tests: Likewise.
21186         * modules/unictype/ctype-punct-tests: Likewise.
21187         * modules/unictype/ctype-space-tests: Likewise.
21188         * modules/unictype/ctype-upper-tests: Likewise.
21189         * modules/unictype/ctype-xdigit-tests: Likewise.
21190         * modules/unictype/decimal-digit-tests: Likewise.
21191         * modules/unictype/digit-tests: Likewise.
21192         * modules/unictype/mirror-tests: Likewise.
21193         * modules/unictype/numeric-tests: Likewise.
21194         * modules/unictype/property-alphabetic-tests: Likewise.
21195         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
21196         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
21197         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
21198         * modules/unictype/property-bidi-block-separator-tests: Likewise.
21199         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
21200         * modules/unictype/property-bidi-common-separator-tests: Likewise.
21201         * modules/unictype/property-bidi-control-tests: Likewise.
21202         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
21203         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
21204         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
21205         * modules/unictype/property-bidi-european-digit-tests: Likewise.
21206         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
21207         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
21208         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
21209         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
21210         * modules/unictype/property-bidi-pdf-tests: Likewise.
21211         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
21212         * modules/unictype/property-bidi-whitespace-tests: Likewise.
21213         * modules/unictype/property-byname-tests: Likewise.
21214         * modules/unictype/property-combining-tests: Likewise.
21215         * modules/unictype/property-composite-tests: Likewise.
21216         * modules/unictype/property-currency-symbol-tests: Likewise.
21217         * modules/unictype/property-dash-tests: Likewise.
21218         * modules/unictype/property-decimal-digit-tests: Likewise.
21219         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
21220         * modules/unictype/property-deprecated-tests: Likewise.
21221         * modules/unictype/property-diacritic-tests: Likewise.
21222         * modules/unictype/property-extender-tests: Likewise.
21223         * modules/unictype/property-format-control-tests: Likewise.
21224         * modules/unictype/property-grapheme-base-tests: Likewise.
21225         * modules/unictype/property-grapheme-extend-tests: Likewise.
21226         * modules/unictype/property-grapheme-link-tests: Likewise.
21227         * modules/unictype/property-hex-digit-tests: Likewise.
21228         * modules/unictype/property-hyphen-tests: Likewise.
21229         * modules/unictype/property-id-continue-tests: Likewise.
21230         * modules/unictype/property-id-start-tests: Likewise.
21231         * modules/unictype/property-ideographic-tests: Likewise.
21232         * modules/unictype/property-ids-binary-operator-tests: Likewise.
21233         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
21234         * modules/unictype/property-ignorable-control-tests: Likewise.
21235         * modules/unictype/property-iso-control-tests: Likewise.
21236         * modules/unictype/property-join-control-tests: Likewise.
21237         * modules/unictype/property-left-of-pair-tests: Likewise.
21238         * modules/unictype/property-line-separator-tests: Likewise.
21239         * modules/unictype/property-logical-order-exception-tests: Likewise.
21240         * modules/unictype/property-lowercase-tests: Likewise.
21241         * modules/unictype/property-math-tests: Likewise.
21242         * modules/unictype/property-non-break-tests: Likewise.
21243         * modules/unictype/property-not-a-character-tests: Likewise.
21244         * modules/unictype/property-numeric-tests: Likewise.
21245         * modules/unictype/property-other-alphabetic-tests: Likewise.
21246         * modules/unictype/property-other-default-ignorable-code-point-tests:
21247         Likewise.
21248         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
21249         * modules/unictype/property-other-id-continue-tests: Likewise.
21250         * modules/unictype/property-other-id-start-tests: Likewise.
21251         * modules/unictype/property-other-lowercase-tests: Likewise.
21252         * modules/unictype/property-other-math-tests: Likewise.
21253         * modules/unictype/property-other-uppercase-tests: Likewise.
21254         * modules/unictype/property-paired-punctuation-tests: Likewise.
21255         * modules/unictype/property-paragraph-separator-tests: Likewise.
21256         * modules/unictype/property-pattern-syntax-tests: Likewise.
21257         * modules/unictype/property-pattern-white-space-tests: Likewise.
21258         * modules/unictype/property-private-use-tests: Likewise.
21259         * modules/unictype/property-punctuation-tests: Likewise.
21260         * modules/unictype/property-quotation-mark-tests: Likewise.
21261         * modules/unictype/property-radical-tests: Likewise.
21262         * modules/unictype/property-sentence-terminal-tests: Likewise.
21263         * modules/unictype/property-soft-dotted-tests: Likewise.
21264         * modules/unictype/property-space-tests: Likewise.
21265         * modules/unictype/property-terminal-punctuation-tests: Likewise.
21266         * modules/unictype/property-test-tests: Likewise.
21267         * modules/unictype/property-titlecase-tests: Likewise.
21268         * modules/unictype/property-unassigned-code-value-tests: Likewise.
21269         * modules/unictype/property-unified-ideograph-tests: Likewise.
21270         * modules/unictype/property-uppercase-tests: Likewise.
21271         * modules/unictype/property-variation-selector-tests: Likewise.
21272         * modules/unictype/property-white-space-tests: Likewise.
21273         * modules/unictype/property-xid-continue-tests: Likewise.
21274         * modules/unictype/property-xid-start-tests: Likewise.
21275         * modules/unictype/property-zero-width-tests: Likewise.
21276         * modules/unictype/scripts-tests: Likewise.
21277         * modules/unictype/syntax-c-ident-tests: Likewise.
21278         * modules/unictype/syntax-c-whitespace-tests: Likewise.
21279         * modules/unictype/syntax-java-ident-tests: Likewise.
21280         * modules/unictype/syntax-java-whitespace-tests: Likewise.
21281         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
21282         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
21283         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
21284         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
21285         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
21286         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
21287         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
21288         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
21289         * modules/uniname/uniname-tests: Likewise.
21290         * modules/uninorm/canonical-decomposition-tests: Likewise.
21291         * modules/uninorm/compat-decomposition-tests: Likewise.
21292         * modules/uninorm/composition-tests: Likewise.
21293         * modules/uninorm/decomposing-form-tests: Likewise.
21294         * modules/uninorm/decomposition-tests: Likewise.
21295         * modules/uninorm/filter-tests: Likewise.
21296         * modules/uninorm/nfc-tests: Likewise.
21297         * modules/uninorm/nfd-tests: Likewise.
21298         * modules/uninorm/nfkc-tests: Likewise.
21299         * modules/uninorm/nfkd-tests: Likewise.
21300         * modules/uninorm/u8-normcmp-tests: Likewise.
21301         * modules/uninorm/u8-normcoll-tests: Likewise.
21302         * modules/uninorm/u16-normcmp-tests: Likewise.
21303         * modules/uninorm/u16-normcoll-tests: Likewise.
21304         * modules/uninorm/u32-normcmp-tests: Likewise.
21305         * modules/uninorm/u32-normcoll-tests: Likewise.
21306         * modules/unistdio/u8-asnprintf-tests: Likewise.
21307         * modules/unistdio/u8-vasnprintf-tests: Likewise.
21308         * modules/unistdio/u8-vasprintf-tests: Likewise.
21309         * modules/unistdio/u8-vsnprintf-tests: Likewise.
21310         * modules/unistdio/u8-vsprintf-tests: Likewise.
21311         * modules/unistdio/u16-asnprintf-tests: Likewise.
21312         * modules/unistdio/u16-vasnprintf-tests: Likewise.
21313         * modules/unistdio/u16-vasprintf-tests: Likewise.
21314         * modules/unistdio/u16-vsnprintf-tests: Likewise.
21315         * modules/unistdio/u16-vsprintf-tests: Likewise.
21316         * modules/unistdio/u32-asnprintf-tests: Likewise.
21317         * modules/unistdio/u32-vasnprintf-tests: Likewise.
21318         * modules/unistdio/u32-vasprintf-tests: Likewise.
21319         * modules/unistdio/u32-vsnprintf-tests: Likewise.
21320         * modules/unistdio/u32-vsprintf-tests: Likewise.
21321         * modules/unistdio/ulc-asnprintf-tests: Likewise.
21322         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
21323         * modules/unistdio/ulc-vasprintf-tests: Likewise.
21324         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
21325         * modules/unistdio/ulc-vsprintf-tests: Likewise.
21326         * modules/unistr/u8-check-tests: Likewise.
21327         * modules/unistr/u8-chr-tests: Likewise.
21328         * modules/unistr/u8-cmp-tests: Likewise.
21329         * modules/unistr/u8-cmp2-tests: Likewise.
21330         * modules/unistr/u8-cpy-alloc-tests: Likewise.
21331         * modules/unistr/u8-cpy-tests: Likewise.
21332         * modules/unistr/u8-mblen-tests: Likewise.
21333         * modules/unistr/u8-mbsnlen-tests: Likewise.
21334         * modules/unistr/u8-mbtouc-tests: Likewise.
21335         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
21336         * modules/unistr/u8-mbtoucr-tests: Likewise.
21337         * modules/unistr/u8-move-tests: Likewise.
21338         * modules/unistr/u8-next-tests: Likewise.
21339         * modules/unistr/u8-prev-tests: Likewise.
21340         * modules/unistr/u8-set-tests: Likewise.
21341         * modules/unistr/u8-stpcpy-tests: Likewise.
21342         * modules/unistr/u8-stpncpy-tests: Likewise.
21343         * modules/unistr/u8-strcat-tests: Likewise.
21344         * modules/unistr/u8-strcmp-tests: Likewise.
21345         * modules/unistr/u8-strcoll-tests: Likewise.
21346         * modules/unistr/u8-strcpy-tests: Likewise.
21347         * modules/unistr/u8-strdup-tests: Likewise.
21348         * modules/unistr/u8-strlen-tests: Likewise.
21349         * modules/unistr/u8-strmblen-tests: Likewise.
21350         * modules/unistr/u8-strmbtouc-tests: Likewise.
21351         * modules/unistr/u8-strncat-tests: Likewise.
21352         * modules/unistr/u8-strncmp-tests: Likewise.
21353         * modules/unistr/u8-strncpy-tests: Likewise.
21354         * modules/unistr/u8-strnlen-tests: Likewise.
21355         * modules/unistr/u8-to-u16-tests: Likewise.
21356         * modules/unistr/u8-to-u32-tests: Likewise.
21357         * modules/unistr/u8-uctomb-tests: Likewise.
21358         * modules/unistr/u16-check-tests: Likewise.
21359         * modules/unistr/u16-chr-tests: Likewise.
21360         * modules/unistr/u16-cmp-tests: Likewise.
21361         * modules/unistr/u16-cmp2-tests: Likewise.
21362         * modules/unistr/u16-cpy-alloc-tests: Likewise.
21363         * modules/unistr/u16-cpy-tests: Likewise.
21364         * modules/unistr/u16-mblen-tests: Likewise.
21365         * modules/unistr/u16-mbsnlen-tests: Likewise.
21366         * modules/unistr/u16-mbtouc-tests: Likewise.
21367         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
21368         * modules/unistr/u16-mbtoucr-tests: Likewise.
21369         * modules/unistr/u16-move-tests: Likewise.
21370         * modules/unistr/u16-next-tests: Likewise.
21371         * modules/unistr/u16-prev-tests: Likewise.
21372         * modules/unistr/u16-set-tests: Likewise.
21373         * modules/unistr/u16-stpcpy-tests: Likewise.
21374         * modules/unistr/u16-stpncpy-tests: Likewise.
21375         * modules/unistr/u16-strcat-tests: Likewise.
21376         * modules/unistr/u16-strcmp-tests: Likewise.
21377         * modules/unistr/u16-strcoll-tests: Likewise.
21378         * modules/unistr/u16-strcpy-tests: Likewise.
21379         * modules/unistr/u16-strdup-tests: Likewise.
21380         * modules/unistr/u16-strlen-tests: Likewise.
21381         * modules/unistr/u16-strmblen-tests: Likewise.
21382         * modules/unistr/u16-strmbtouc-tests: Likewise.
21383         * modules/unistr/u16-strncat-tests: Likewise.
21384         * modules/unistr/u16-strncmp-tests: Likewise.
21385         * modules/unistr/u16-strncpy-tests: Likewise.
21386         * modules/unistr/u16-strnlen-tests: Likewise.
21387         * modules/unistr/u16-to-u32-tests: Likewise.
21388         * modules/unistr/u16-to-u8-tests: Likewise.
21389         * modules/unistr/u16-uctomb-tests: Likewise.
21390         * modules/unistr/u32-check-tests: Likewise.
21391         * modules/unistr/u32-chr-tests: Likewise.
21392         * modules/unistr/u32-cmp-tests: Likewise.
21393         * modules/unistr/u32-cmp2-tests: Likewise.
21394         * modules/unistr/u32-cpy-alloc-tests: Likewise.
21395         * modules/unistr/u32-cpy-tests: Likewise.
21396         * modules/unistr/u32-mblen-tests: Likewise.
21397         * modules/unistr/u32-mbsnlen-tests: Likewise.
21398         * modules/unistr/u32-mbtouc-tests: Likewise.
21399         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
21400         * modules/unistr/u32-mbtoucr-tests: Likewise.
21401         * modules/unistr/u32-move-tests: Likewise.
21402         * modules/unistr/u32-next-tests: Likewise.
21403         * modules/unistr/u32-prev-tests: Likewise.
21404         * modules/unistr/u32-set-tests: Likewise.
21405         * modules/unistr/u32-stpcpy-tests: Likewise.
21406         * modules/unistr/u32-stpncpy-tests: Likewise.
21407         * modules/unistr/u32-strcat-tests: Likewise.
21408         * modules/unistr/u32-strcmp-tests: Likewise.
21409         * modules/unistr/u32-strcoll-tests: Likewise.
21410         * modules/unistr/u32-strcpy-tests: Likewise.
21411         * modules/unistr/u32-strdup-tests: Likewise.
21412         * modules/unistr/u32-strlen-tests: Likewise.
21413         * modules/unistr/u32-strmblen-tests: Likewise.
21414         * modules/unistr/u32-strmbtouc-tests: Likewise.
21415         * modules/unistr/u32-strncat-tests: Likewise.
21416         * modules/unistr/u32-strncmp-tests: Likewise.
21417         * modules/unistr/u32-strncpy-tests: Likewise.
21418         * modules/unistr/u32-strnlen-tests: Likewise.
21419         * modules/unistr/u32-to-u16-tests: Likewise.
21420         * modules/unistr/u32-to-u8-tests: Likewise.
21421         * modules/unistr/u32-uctomb-tests: Likewise.
21422         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
21423         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
21424         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
21425         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
21426         * modules/uniwidth/u8-strwidth-tests: Likewise.
21427         * modules/uniwidth/u8-width-tests: Likewise.
21428         * modules/uniwidth/u16-strwidth-tests: Likewise.
21429         * modules/uniwidth/u16-width-tests: Likewise.
21430         * modules/uniwidth/u32-strwidth-tests: Likewise.
21431         * modules/uniwidth/u32-width-tests: Likewise.
21432         * modules/uniwidth/width-tests: Likewise.
21433
21434 2010-05-18  Richard Jones  <rjones@redhat.com>
21435
21436         doc: users.txt: list hivex
21437         * users.txt: Add hivex.
21438
21439 2010-05-18  Richard Jones  <rjones@redhat.com>
21440
21441         doc: users.txt: list febootstrap
21442         * users.txt: Add febootstrap.
21443
21444 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
21445
21446         bootstrap: fix an error when gnulib is not used as a git submodule
21447         * build-aux/bootstrap (gnulib_path): If its length is zero then
21448         assign "gnulib" to it.
21449         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
21450
21451 2010-05-16  Bruno Haible  <bruno@clisp.org>
21452
21453         Avoid autoconf warnings about AM_ICONV.
21454         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
21455         2.64.
21456
21457 2010-05-16  Bruno Haible  <bruno@clisp.org>
21458
21459         absolute-header: Make the macro usable in more situations.
21460         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
21461         from gl_ABSOLUTE_HEADER.
21462         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
21463
21464 2010-05-16  James Youngman  <jay@gnu.org>
21465
21466         doc: update users.txt
21467         * users.txt: Add CSSC.
21468
21469 2010-05-16  Jim Meyering  <meyering@redhat.com>
21470
21471         init.sh: fix an error in the previous change; add more comments
21472         * tests/init.sh: Compare exit code in loop against 9, not 2.
21473         Patch by Bruno Haible.
21474         Make the two tests more similar by adding an empty "then" clause.
21475         Add comments.
21476
21477         init.sh: avoid unnecessary shell re-exec
21478         * tests/init.sh: Improve the re-exec-required check to first test the
21479         current shell.  If it passes the test, do not search for a shell that
21480         does pass, and do not re-exec.  This test is particularly contorted to
21481         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
21482         of $(...) evokes a syntax error and causes immediate shell exit with
21483         status 2.  Bruno Haible reported that the re-exec made it impossible
21484         to single-step through any init.sh-using script.
21485
21486 2010-05-16  Bruno Haible  <bruno@clisp.org>
21487
21488         Fix collision between gnulib's and libintl's printf replacements.
21489         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
21490         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
21491         (printf): When using GNU C, map the __printf__ function to rpl_printf
21492         via __asm__. When not using GNU C, define rpl_printf instead of
21493         __printf__.
21494         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
21495         commit.
21496         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
21497         commit.
21498         * m4/asm-underscore.m4: New file.
21499         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
21500         * modules/stdio (Files): Add m4/asm-underscore.m4.
21501         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
21502         Reported by Ben Pfaff.
21503
21504 2010-05-16  Bruno Haible  <bruno@clisp.org>
21505
21506         verify: Avoid skipping the test on openSUSE 11.0.
21507         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
21508
21509 2010-05-13  Bruno Haible  <bruno@clisp.org>
21510
21511         Avoid useless warnings from G++.
21512         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
21513         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
21514         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21515
21516 2010-05-11  Jim Meyering  <meyering@redhat.com>
21517
21518         maint.mk: tweak preceding change
21519         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
21520         regexps tighter by anchoring at EOL, and make the new group "shy"
21521         for slightly decreased overhead.
21522
21523 2010-05-11  Eric Blake  <eblake@redhat.com>
21524
21525         maint.mk: gnulib doesn't guarantee NSIG
21526         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
21527
21528 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
21529
21530         test-pwrite.c: Remove unused variable declaration.
21531         * tests/test-pwrite.c (main): Remove read_buf declaration.
21532
21533         Remove useless test-pwrite.sh file.
21534         * tests/test-pwrite.sh: Delete file.
21535         * modules/pwrite-tests: Remove references.
21536         Reported by Bruno Haible.
21537
21538 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
21539
21540         init.sh: fix a typo
21541         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
21542
21543 2010-05-10  Jim Meyering  <meyering@redhat.com>
21544
21545         maint.mk: avoid using a temporary file in the always-defined-macros check
21546         * top/maint.mk (.re-defmac): Remove rule.
21547         (gl_trap_): Remove definition.
21548         (sc_prohibit_always-defined_macros): Rewrite not to create and
21549         depend on a temporary file.  Instead, depend on GNU grep's ability
21550         to read a list of regular expressions from stdin when given "-f -".
21551
21552 2010-05-09  Bruno Haible  <bruno@clisp.org>
21553
21554         Update to GNU gettext 0.18, part 1.
21555         * m4/gettext.m4: Update to GNU gettext 0.18.
21556         * m4/intl.m4: Likewise.
21557         * m4/po.m4: Likewise.
21558         * modules/gettext (Files): Add m4/fcntl-o.m4.
21559         (configure.ac): Require gettext infrastructure from version 0.18.
21560
21561 2010-05-09  Jim Meyering  <meyering@redhat.com>
21562
21563         init.sh: enable MALLOC_PERTURB_
21564         * tests/init.sh: Enable glibc's malloc-perturbing option.
21565
21566         maint.mk: improve sc_cross_check_PATH_usage_in_tests
21567         With my recent change in init.sh from the two-line form:
21568             -#   : ${srcdir=.}
21569             -#   . "$srcdir/init.sh"; path_prepend_ .
21570             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
21571         I noticed that using the one-line form would cause this test
21572         to fail with a false-positive, or to stop working altogether,
21573         depending on whether help-version changed or all the tests did.
21574         * top/maint.mk (_hv_regex): Remove this definition.
21575         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
21576         (_hv_regex_strong): Use a stronger regex to check for conformance.
21577         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
21578         Give a separate diagnostic for lack of conforming use.
21579
21580         maint.mk: prohibit definition of symbols defined by gnulib
21581         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
21582         definition of symbols defined by gnulib.
21583
21584 2010-05-09  Bruno Haible  <bruno@clisp.org>
21585
21586         acl: Avoid test failure on Cygwin-hosted mingw.
21587         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
21588
21589 2010-05-09  Bruno Haible  <bruno@clisp.org>
21590
21591         error: Use system's fcntl function.
21592         * lib/error.c (fcntl): Undefine.
21593
21594 2010-05-09  Jim Meyering  <meyering@redhat.com>
21595
21596         verify: adjust formatting to be more consistent
21597         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
21598         argument-list '('s, and after one comma.
21599
21600 2010-05-09  Bruno Haible  <bruno@clisp.org>
21601
21602         error: More reliable output on mingw.
21603         * lib/error.c: Include <windows.h>.
21604         (is_open): New function.
21605         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
21606         defined.
21607
21608 2010-05-09  Bruno Haible  <bruno@clisp.org>
21609
21610         vasnprintf: Fix syntax errors in libintl build on mingw.
21611         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
21612         pad_ourselves and prec_ourselves after use.
21613
21614 2010-05-08  Bruno Haible  <bruno@clisp.org>
21615
21616         * lib/config.charset: Update comments for Cygwin 1.7.
21617         * lib/localcharset.c: Likewise.
21618
21619 2010-05-07  Jim Meyering  <meyering@redhat.com>
21620
21621         init.sh: improve comments
21622         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
21623         . "${srcdir=.}/init.sh"; path_prepend_ .
21624         Add a note about path_prepend_ and the alternative of using
21625         TESTS_ENVIRONMENT.
21626
21627 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
21628
21629         exclude: Unescape hashed patterns in wildcard mode.
21630         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
21631         to the hash list.
21632         * tests/test-exclude8.sh: New test case.
21633         * modules/exclude-tests: Add new test.
21634
21635 2010-05-05  Eric Blake  <eblake@redhat.com>
21636
21637         verify: automate tests
21638         * modules/verify-tests: New module.
21639         * tests/test-verify.sh: New file.
21640         * tests/test-verify.c: Guard each negative test with a unique id.
21641         Also avoid warning about unused left hand of comma expressions.
21642
21643 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
21644
21645         Further improvements to verify.h, suggested by Eric Blake.
21646         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
21647         the GL_* versions, to avoid collision with OpenGL.
21648         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
21649         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
21650         than testing merely whether it's defined.
21651
21652         Modify verify.h to pacify gcc -Wredundant_decls.
21653         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
21654         These use the prefix "GL_" since they're likely to be useful elsewhere.
21655         We may need to break them out into a different .h file.
21656         (__COUNTER__): Define to 0 if the compiler doesn't support it.
21657         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
21658         of verify_function__.
21659
21660 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
21661
21662         Tests for module pwrite.
21663         * modules/pwrite-tests: New file.
21664         * tests/test-pwrite.sh: New file.
21665         * tests/test-pwrite.c: New file.
21666
21667         New module pwrite.
21668         * lib/unistd.in.h (pwrite): New declaration.
21669         * lib/pwrite.c: New file, from glibc with modifications.
21670         * m4/pwrite.m4: New file.
21671         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
21672         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
21673         REPLACE_PWRITE.
21674         * modules/pwrite: New file.
21675         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
21676         REPLACE_PWRITE.
21677         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
21678         * doc/posix-functions/pwrite.texi: Mention the new module.
21679
21680 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
21681
21682         pread: Update documentation.
21683         * doc/posix-functions/pread.texi: Mention the 'pread' module.
21684
21685 2010-05-04  Eric Blake  <eblake@redhat.com>
21686
21687         docs: update cygwin progress
21688         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
21689         this bug.
21690         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
21691         Added in cygwin 1.7.2.
21692         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
21693         Likewise.
21694         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
21695         Likewise.
21696         * doc/glibc-functions/dup3.texi (dup3): Likewise.
21697         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
21698         * doc/glibc-functions/accept4.texi (accept4): Likewise.
21699         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
21700         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
21701         Mention nproc module.
21702         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
21703         bug in cygwin 1.7.5 addition.
21704         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
21705         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
21706         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
21707         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
21708         1.7.5.
21709         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
21710         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
21711         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
21712         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
21713         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
21714         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
21715         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
21716         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
21717         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
21718         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
21719         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
21720         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
21721         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
21722         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
21723         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
21724         Likewise.
21725         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
21726         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
21727         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
21728         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
21729         Likewise.
21730         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
21731         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
21732         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
21733         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
21734         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
21735         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
21736         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
21737         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
21738         Likewise.
21739         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
21740         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
21741         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
21742         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
21743         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
21744         Likewise.
21745         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
21746         Likewise.
21747         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
21748         Likewise.
21749         * doc/glibc-functions/xdrrec_endofrecord.texi
21750         (xdrrec_endofrecord): Likewise.
21751         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
21752         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
21753         Likewise.
21754         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
21755         Likewise.
21756
21757 2010-05-04  Jim Meyering  <meyering@redhat.com>
21758
21759         gendocs.sh: make its "-s FILE" option more useful
21760         * build-aux/gendocs.sh: When honoring the -s FILE option, update
21761         $PACKAGE to reflect the probably-different basename of "FILE".
21762
21763 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
21764
21765         bootstrap: don't ignore download_po_files failure
21766         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
21767         failure.
21768
21769 2010-05-03  Jim Meyering  <meyering@redhat.com>
21770
21771         maint.mk: allow to pass options to gendocs.sh
21772         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
21773         (gendocs_options_): New overridable variable.
21774
21775         gnu-web-doc-update: don't ignore configure or build failure
21776         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
21777
21778         announce-gen: backslash-escape '@'s in --help output
21779         * build-aux/announce-gen: Fix syntax errors.
21780
21781         maint.mk, announce-gen: allow project-specific announcement mail headers
21782         * top/maint.mk (translation_project_): Define default.
21783         (announcement_Cc_, announcement_mail_headers_): Likewise.
21784         (announcement): Invoke announce-gen with new --mail-headers option.
21785         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
21786
21787         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
21788         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
21789         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
21790         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
21791         line in the "err2" output file when running "make check" in verbose
21792         mode (i.e., with set -x enabled).
21793
21794 2010-05-03  Bruno Haible  <bruno@clisp.org>
21795
21796         wctob: Fix for weird platforms.
21797         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
21798         argument value.
21799
21800 2010-05-03  Jim Meyering  <meyering@redhat.com>
21801
21802         maint.mk: prohibit unwarranted use of <strings.h>
21803         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
21804         strings.h in a file that does not also use strcasecmp, strncasecmp,
21805         ffs or ffsll.
21806
21807         maint.mk: remove obsolete comments
21808         * top/maint.mk: Remove stale, commented-out rules.
21809
21810 2010-05-02  Bruno Haible  <bruno@clisp.org>
21811
21812         wcwidth: Declare also when it's aliased.
21813         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
21814         macro.
21815
21816 2010-05-02  Bruno Haible  <bruno@clisp.org>
21817
21818         Fix regression from 2010-04-25.
21819         * gnulib-tool (func_modules_transitive_closure): Check the status of
21820         all modules, not only of the tests that are of the form foo-tests where
21821         foo is a module.
21822
21823 2010-05-02  Bruno Haible  <bruno@clisp.org>
21824
21825         wctob: Work around nasty Cygwin 1.7.2 bug.
21826         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
21827         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
21828
21829 2010-05-01  Bruno Haible  <bruno@clisp.org>
21830
21831         fpurge: Sharper test.
21832         * tests/test-fpurge.c (main): Add one more ftell check.
21833         * modules/fpurge-tests (Depends-on): Add ftell.
21834         Suggested by Eric Blake.
21835
21836 2010-05-01  Bruno Haible  <bruno@clisp.org>
21837
21838         ftello: Another test.
21839         * tests/test-ftello3.c: New file.
21840         * modules/ftello-tests (Files): Add it.
21841         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
21842         MOSTLYCLEANFILES.
21843
21844         ftell: Another test.
21845         * tests/test-ftell3.c: New file.
21846         * modules/ftell-tests (Files): Add it.
21847         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
21848         MOSTLYCLEANFILES.
21849
21850 2010-05-01  Bruno Haible  <bruno@clisp.org>
21851
21852         ftell, ftello: Work around Solaris bug.
21853         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
21854         * lib/ftello.c: Include stdio-impl.h.
21855         (ftello): On Solaris, when _IOWRT is set, compute the result without
21856         looking at _IOREAD.
21857         * modules/ftello (Files): Add lib/stdio-impl.h.
21858         * doc/posix-functions/ftell.texi: Mention Solaris bug.
21859         * doc/posix-functions/ftello.texi: Likewise.
21860         Reported by Eric Blake.
21861
21862 2010-05-01  Bruno Haible  <bruno@clisp.org>
21863
21864         freading: Adapt to special meaning of _IOREAD flag on Solaris.
21865         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
21866         the _IOWRT flag is also set.
21867
21868 2010-05-01  Bruno Haible  <bruno@clisp.org>
21869
21870         Fix doc about a HP-UX stdio bug.
21871         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
21872         * doc/posix-functions/ftello.texi: Likewise.
21873
21874 2010-05-01  Bruno Haible  <bruno@clisp.org>
21875
21876         lseek test: Fix failure on Solaris.
21877         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
21878         output.
21879
21880 2010-04-30  Jim Meyering  <meyering@redhat.com>
21881
21882         bootstrap: don't ignore failure to generate po*/Makevars
21883         * build-aux/bootstrap (with_gettext): Don't ignore failure
21884         to create po/Makevars or runtime-po/Makevars.
21885
21886 2010-04-29  Eric Blake  <eblake@redhat.com>
21887
21888         headers: relax license to LGPLv2+
21889         * modules/fcntl-h (License): Relax license.
21890         * modules/getopt-posix (License): Likewise.
21891         * modules/locale (License): Likewise.
21892         * modules/math (License): Likewise.
21893         * modules/pty (License): Likewise.
21894         * modules/sched (License): Likewise.
21895         * modules/search (License): Likewise.
21896         * modules/spawn (License): Likewise.
21897         * modules/stdarg (License): Likewise.
21898         * modules/sysexits (License): Likewise.
21899
21900 2010-04-29  Jim Meyering  <meyering@redhat.com>
21901
21902         inttypes: relax license to LGPLv2+
21903         * modules/inttypes (License): Relax license.
21904
21905 2010-04-29  Simon Josefsson  <simon@josefsson.org>
21906
21907         * top/maint.mk (indent): Run twice to produce idempotent results.
21908
21909 2010-04-28  Bruno Haible  <bruno@clisp.org>
21910
21911         getdate: Generate getdate.c in the source directory.
21912         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
21913         MOSTLYCLEANFILES.
21914         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
21915
21916 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
21917
21918         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
21919         is not declared as a const *; avoid warnings in that case.
21920
21921 2010-04-28  Eric Blake  <eblake@redhat.com>
21922
21923         canonicalize-lgpl: avoid compiler warning
21924         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
21925         declaration' / 'extraneous semicolon' warning with some compilers.
21926         Reported by Andreas Gruenbacher.
21927
21928 2010-04-28  Jim Meyering  <meyering@redhat.com>
21929
21930         init.sh: ensure a more reliable exit status when exiting via trap
21931         * tests/init.sh (setup_): Don't rely on $? in signal handler.
21932         Inspired by patches from Dmitry V. Levin.
21933         Also trap on signal 3 (SIGQUIT).
21934
21935 2010-04-27  Bruno Haible  <bruno@clisp.org>
21936
21937         Update doc about utimes().
21938         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
21939         'utimens' module.
21940         Reported by Andreas Gruenbacher <agruen@suse.de>.
21941
21942 2010-04-27  Eric Blake  <eblake@redhat.com>
21943
21944         full-read, full-write: relax license
21945         * modules/full-read (License): Drop to LGPLv2+.
21946         * modules/full-write (License): Likewise.
21947         * modules/safe-read (License): Likewise.
21948         * modules/safe-write (License): Likewise.
21949
21950         pthread: mention library for linking
21951         * modules/pthread (Link): Mention $(LIB_PTHREAD).
21952
21953 2010-04-27  Jim Meyering  <meyering@redhat.com>
21954
21955         maint.mk: fix a bug introduced in last change
21956         * top/maint.mk (gl_assured_headers_): Now that all names are on
21957         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
21958         is not anchored to end of word, it should be adequate.
21959
21960         maint.mk: avoid side-effect in latest syntax-check
21961         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
21962         to run commands via $(shell...), and hence to incur cost only when
21963         the new rule is actually run.
21964
21965         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
21966         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
21967         and use that to create a regexp used to detect all #if HAVE_..._H uses.
21968         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
21969         (gl_assured_headers_, az_, AZ_): Define.
21970         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
21971
21972 2010-04-26  Jim Meyering  <jim@meyering.net>
21973             Bruno Haible  <bruno@clisp.org>
21974
21975         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
21976         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
21977         Prompted by an exchange with Gilles Espinasse.
21978
21979 2010-04-26  Jim Meyering  <meyering@redhat.com>
21980
21981         git-version-gen: aesthetic tweak
21982         * build-aux/git-version-gen: Use "$nl" rather than a literal,
21983         so that the command remains on a single line.
21984
21985 2010-04-26  Eric Blake  <eblake@redhat.com>
21986
21987         git-version-gen: allow use on EBCDIC hosts
21988         * build-aux/git-version-gen (dirty): Use literal rather than tying
21989         ourselves to ascii.
21990         Reported by Steve Goetze.
21991
21992 2010-04-25  Bruno Haible  <bruno@clisp.org>
21993
21994         netdb: Add support for GNULIB_POSIXCHECK.
21995         * lib/netdb.in.h: Include warn-on-use.h.
21996         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
21997         functions are used when GNULIB_POSIXCHECK is defined and the
21998         getaddrinfo module is not in use.
21999         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
22000         freeaddrinfo, gai_strerror, getnameinfo are declared.
22001         * modules/netdb (Depends-on): Add warn-on-use.
22002         (Makefile.am): Include warn-on-use.h in netdb.h.
22003
22004 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
22005
22006         build: avoid "make check" failure without .git/ directory
22007         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
22008         there is no .git/ directory.
22009
22010 2010-04-25  Bruno Haible  <bruno@clisp.org>
22011
22012         ptsname: Fix misuse of ttyname_r.
22013         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
22014         of errno.
22015
22016 2010-04-25  Bruno Haible  <bruno@clisp.org>
22017
22018         ttyname_r: Make it work on Solaris 10.
22019         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
22020         if the system function has the POSIX declaration. Test whether the
22021         function fails if the buffer is less than 128 bytes large.
22022         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
22023         system's ttyname_r function. Provide a reasonably large buffer.
22024         * modules/ttyname_r (Depends-on): Add extensions.
22025         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
22026
22027 2010-04-25  Bruno Haible  <bruno@clisp.org>
22028
22029         Use the 'extensions' module for some more functions on Solaris.
22030         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
22031         module.
22032         * doc/posix-functions/ctime_r.texi: Likewise.
22033         * doc/posix-functions/getgrgid_r.texi: Likewise.
22034         * doc/posix-functions/getgrnam_r.texi: Likewise.
22035         * doc/posix-functions/getpwnam_r.texi: Likewise.
22036         * doc/posix-functions/getpwuid_r.texi: Likewise.
22037         * doc/posix-functions/readdir_r.texi: Likewise.
22038         * doc/posix-functions/sigwait.texi: Likewise.
22039         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
22040         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
22041
22042 2010-04-25  Bruno Haible  <bruno@clisp.org>
22043
22044         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
22045         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
22046         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
22047         * lib/ttyname_r.c: Include <limits.h>.
22048         (ttyname_r): Define using the system's ttyname_r function, if it exists
22049         and not on Solaris.
22050         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
22051         set.
22052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
22053         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
22054         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
22055         Reported by Simon Josefsson.
22056
22057 2010-04-25  Bruno Haible  <bruno@clisp.org>
22058
22059         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
22060         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
22061         * doc/posix-functions/ctime_r.texi: Likewise.
22062         * doc/posix-functions/getgrgid_r.texi: Likewise.
22063         * doc/posix-functions/getgrnam_r.texi: Likewise.
22064         * doc/posix-functions/getlogin_r.texi: Likewise.
22065         * doc/posix-functions/getpwnam_r.texi: Likewise.
22066         * doc/posix-functions/getpwuid_r.texi: Likewise.
22067         * doc/posix-functions/readdir_r.texi: Likewise.
22068         * doc/posix-functions/sigwait.texi: Likewise.
22069         * doc/posix-functions/ttyname_r.texi: Likewise.
22070         Reported by Simon Josefsson.
22071
22072 2010-04-25  Bruno Haible  <bruno@clisp.org>
22073
22074         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
22075         * gnulib-tool (func_usage): Document that --with-*-tests options apply
22076         also to --create-testdir.
22077         (func_acceptable): Don't consider the status of *-tests modules here.
22078         (func_modules_transitive_closure): Consider it here, before including a
22079         test module.
22080         (func_import, func_create_testdir): Set inc_all_direct_tests,
22081         inc_all_indirect_tests.
22082         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
22083         --create-testdir and --create-megatestdir.
22084
22085 2010-04-25  Bruno Haible  <bruno@clisp.org>
22086
22087         gnulib-tool: Add --without-*-tests options.
22088         * gnulib-tool (func_usage): Document the --without-*-tests options.
22089         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
22090         excl_unportable_tests): New variables.
22091         Fail if they are specified with --import or --update.
22092         (func_acceptable): Respect the excl_*_tests variables.
22093         (func_import): Set the excl_*_tests variables to empty.
22094
22095 2010-04-25  Simon Josefsson  <simon@josefsson.org>
22096             Bruno Haible  <bruno@clisp.org>
22097
22098         Work around a MacOS X 10.4 bug with openpty.
22099         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
22100         * tests/test-openpty.c (main): Close the master side explicitly.
22101
22102 2010-04-25  Bruno Haible  <bruno@clisp.org>
22103
22104         strnlen: Fix a C++ test error on MacOS X and Solaris.
22105         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
22106         the function is not declared.
22107         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
22108         Simon Josefsson.
22109
22110 2010-04-24  Bruno Haible  <bruno@clisp.org>
22111
22112         Avoid a gcc warning.
22113         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
22114         of correct type for %08lx directive.
22115         Reported by Eric Blake.
22116
22117 2010-04-24  Bruno Haible  <bruno@clisp.org>
22118
22119         vasnprintf: Correct errno value in case of out-of-memory.
22120         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
22121         or sprintf. Use the errno value from SNPRINTF or sprintf.
22122         Reported by Ian Beckwith <ianb@erislabs.net>.
22123
22124 2010-04-24  Bruno Haible  <bruno@clisp.org>
22125
22126         ansi-c++-opt: Find correct compiler when cross-compiling.
22127         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
22128         AC_CHECK_PROGS.
22129         Reported by Simon Josefsson.
22130
22131 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
22132
22133         vc-list-files: Add support for subversion
22134         * build-aux/vc-list-files: Use "svn list" to generate the list of
22135         files controlled by subversion.
22136
22137 2010-04-23  Jim Meyering  <meyering@redhat.com>
22138
22139         vc-list-files tests: convert to use init.sh
22140         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
22141         path_prepend_.
22142         Use Exit, not exit.
22143         Use skip_ rather than open coding it.
22144         Remove trap set-up and compare definitions.
22145         * tests/test-vc-list-files-git.sh: Likewise.
22146         * modules/vc-list-files-tests (Files): Add tests/init.sh.
22147
22148 2010-04-22  Simon Josefsson  <simon@josefsson.org>
22149
22150         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
22151         backup files.
22152
22153 2010-04-21  Simon Josefsson  <simon@josefsson.org>
22154
22155         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
22156
22157 2010-04-20  Eric Blake  <eblake@redhat.com>
22158
22159         tests: be robust to ignored SIGPIPE
22160         * tests/test-select-in.sh: Consume all output.
22161         * tests/test-lseek.sh: Check correct exit status, while avoiding
22162         EPIPE.
22163
22164 2010-04-20  Simon Josefsson  <simon@josefsson.org>
22165             Bruno Haible  <bruno@clisp.org>
22166
22167         visibility: Don't use -fvisibility if it leads to a warning.
22168         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
22169         yes, don't pretend that visibility works if it leads to a warning.
22170         Reported by Mike Gran <spk121@yahoo.com>.
22171
22172 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
22173
22174         * build-aux/bootstrap: Use "git -h" for testing for supported options
22175         instead of "git --help".  The short-form option only shows a summary,
22176         and doesn't layout the full man page.  Grep for the full option name
22177         in the summary, too.
22178
22179 2010-04-19  Bruno Haible  <bruno@clisp.org>
22180
22181         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
22182         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
22183         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
22184         mention of RELOCATABLE_STRIP.
22185         Reported by Sylvain Beucler <beuc@beuc.net>.
22186
22187 2010-04-19  Bruno Haible  <bruno@clisp.org>
22188
22189         * lib/diffseq.h: Fix typo in comment.
22190         Reported by Eric Blake.
22191
22192 2010-04-19  Bruno Haible  <bruno@clisp.org>
22193
22194         ioctl: Move autoconf macro to a .m4 file.
22195         * m4/ioctl.m4: New file, extracted from modules/ioctl.
22196         * modules/ioctl (Files): Add it.
22197         (configure.ac): Simply invoke gl_FUNC_IOCTL.
22198         Reported by Ian Beckwith <ianb@erislabs.net>.
22199
22200 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
22201             Bruno Haible  <bruno@clisp.org>
22202
22203         diffseq: Accommodate use-case with abstract arrays.
22204         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
22205         is not defined.
22206         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
22207         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
22208
22209 2010-04-18  Bruno Haible  <bruno@clisp.org>
22210
22211         * doc/posix-headers/stdbool.texi: More precise wording.
22212
22213 2010-04-17  Jim Meyering  <meyering@redhat.com>
22214
22215         maint.mk: use gnu-style indentation in an embedded perl script
22216         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
22217         Rename variable: s/two/last_two_bytes/
22218
22219 2010-04-16  Eric Blake  <eblake@redhat.com>
22220
22221         test-stdbool: skip test that fails with Solaris CC
22222         * tests/test-stdbool.c (f): Skip test that causes compilation
22223         error under buggy C++ compiler.
22224         * lib/stdbool.in.h: Document the limitation.
22225         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
22226
22227         setenv: allow compilation with C++
22228         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
22229         register keyword.
22230
22231         stdint: allow test to pass with C++
22232         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
22233
22234         getopt: allow compilation with C++
22235         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
22236         struct.
22237         * lib/getopt.c (_getopt_internal_r): Use correct type.
22238         Reported by Dagobert Michelson, via Joel E. Denny.
22239
22240 2010-04-16  Bruno Haible  <bruno@clisp.org>
22241
22242         Override netdb.h always.
22243         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
22244         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
22245         Reported by Ludovic Courtès <ludo@gnu.org>.
22246
22247 2010-04-15  Bruno Haible  <bruno@clisp.org>
22248
22249         openpty: Fix mistake from 2010-03-21.
22250         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
22251         Reported by Simon Josefsson.
22252
22253 2010-04-15  Eric Blake  <eblake@redhat.com>
22254
22255         test-forkpty: fix expected signature
22256         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
22257         Reported by Simon Josefsson.
22258
22259 2010-04-15  Jim Meyering  <meyering@redhat.com>
22260
22261         maint.mk: texinfo_suffix_re_: correct the default regexp
22262         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
22263
22264         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
22265         make it configurable via texinfo_suffix_re_.
22266
22267 2010-04-14  Eric Blake  <eblake@redhat.com>
22268
22269         strtok_r: relax license to LGPLv2+
22270         * modules/strtok_r (License): Relax license.
22271         Reported by Matthias Bolte.
22272
22273 2010-04-14  Simon Josefsson  <simon@josefsson.org>
22274
22275         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
22276         version 1.4.4 by default instead of requiring the libgcrypt
22277         version used during build.  This makes it possible to use the
22278         application with older but still binary compatible libgcrypt
22279         versions.
22280
22281 2010-04-13  Eric Blake  <eblake@redhat.com>
22282
22283         getopt-gnu: match recent glibc fixes and posix ruling
22284         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
22285         '+' handling, when requesting extensions.
22286         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
22287         'W;' handling.
22288         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
22289         * doc/posix-functions/getopt.texi (getopt): Document this.
22290         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
22291         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22292         Likewise.
22293
22294         getopt: merge bug fixes from glibc
22295         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
22296         diagnostics.  Honor '+:' correctly.  Reject ';'.
22297
22298         getopt-posix: detect MacOS bug
22299         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
22300         optind when missing a required argument.
22301         * doc/posix-functions/getopt.texi (getopt): Document the bug.
22302         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
22303         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22304         Likewise.
22305
22306         getopt-posix: avoid spurious failure on Solaris
22307         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
22308         an indicator that setting optind=1 is sufficient for reset.
22309
22310         getopt-posix: avoid spurious failure on FreeBSD
22311         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
22312         in POSIX mode, since the m4 test uses it.
22313
22314         gnulib-tool: silence warning on BSD sh
22315         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
22316
22317 2010-04-13  Jim Meyering  <meyering@redhat.com>
22318
22319         doc: users.txt: GNU patch now uses gnulib
22320         * users.txt: Add patch.
22321
22322 2010-04-12  Jim Meyering  <meyering@redhat.com>
22323
22324         maint.mk: generate more concise timing data for syntax-check rules
22325         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
22326         " done" from each line that reports a syntax-check test duration.
22327
22328 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
22329
22330         git-version-gen: use "git update-index..." rather than "git status"
22331         * build-aux/git-version-gen: Use git update-index --refresh, not
22332         "git status".  With some versions of git, "git status" would fail
22333         to update the index and result in an unwarranted "-dirty" suffix.
22334
22335 2010-04-11  Jim Meyering  <meyering@redhat.com>
22336
22337         openat: correct formatting (no semantic change)
22338         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
22339         Suggested by Bruno Haible.
22340
22341 2010-04-11  Bruno Haible  <bruno@clisp.org>
22342
22343         Stricter declaration checking in testdirs.
22344         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22345         If for_tests is true, augment AM_CPPFLAGS to define
22346         GNULIB_STRICT_CHECKING.
22347         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
22348         GNULIB_STRICT_CHECKING is defined, verify that the function is
22349         declared.
22350
22351 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
22352             Bruno Haible  <bruno@clisp.org>
22353
22354         libunistring: Improve configure output.
22355         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
22356         Don't say "consider installing GNU libunistring" when checking again
22357         with libiconv.
22358
22359 2010-04-11  Bruno Haible  <bruno@clisp.org>
22360
22361         libunistring: Correct value of $LTLIBUNISTRING.
22362         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
22363         correct the value of $LTLIBUNISTRING.
22364
22365 2010-04-11  Bruno Haible  <bruno@clisp.org>
22366
22367         havelib: Add static libraries to LIBS in the right order.
22368         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
22369         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
22370
22371 2010-04-11  Bruno Haible  <bruno@clisp.org>
22372
22373         libunistring: Detect libunistring also when it depends on libiconv.
22374         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
22375         the second AC_LIB_HAVE_LINKFLAGS invocation.
22376
22377 2010-04-11  James Youngman  <jay@gnu.org>
22378
22379         close-stream: declare local scalars to be "const"
22380         * lib/close-stream.c (close_stream): Make boolean variables const
22381         to document the fact that we set but do not change them.
22382
22383 2010-04-11  Bruno Haible  <bruno@clisp.org>
22384
22385         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
22386
22387 2010-04-11  Jim Meyering  <meyering@redhat.com>
22388
22389         maint.mk: don't include dist-check.mk
22390         * top/maint.mk: Remove bogus include directive.
22391
22392         maint.mk: improve empty-line-at-EOF check
22393         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
22394         solution, rather than tail+Perl-based one.  The latter would read
22395         a few kilobytes from the end of each file, and did not handle empty
22396         files properly.
22397
22398         maint.mk: print the elapsed time for each syntax-check rule
22399         * top/maint.mk (sc_m_rules_): Save start time in a file.
22400         (sc_z_rules_): New rules: remove temp file and print elapsed time.
22401         (local-check): Interpose the .z rules
22402
22403 2010-04-11  Jim Meyering  <meyering@redhat.com>
22404
22405         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
22406         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
22407         empty file with one that ends in an empty line.
22408
22409 2010-04-10  Bruno Haible  <bruno@clisp.org>
22410
22411         mkdir: Make it work on mingw64.
22412         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
22413         * lib/mkdir.c: Update comment.
22414         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
22415
22416 2010-04-10  Bruno Haible  <bruno@clisp.org>
22417
22418         Don't override improved macro from newer autoconf.
22419         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
22420         autoconf >= 2.62.
22421         Reported by Joel E. Denny <jdenny@clemson.edu>.
22422
22423 2010-04-10  Jim Meyering  <meyering@redhat.com>
22424
22425         maint.mk: new syntax-check rule: prohibit empty lines at end of file
22426         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
22427
22428         maint.mk: correct a diagnostic
22429         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
22430         in diagnostic; now use $prohibit.
22431
22432 2010-04-10  Bruno Haible  <address@hidden>
22433
22434         fchownat: Fix a C++ test error on Solaris 8.
22435         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
22436         the function does not exist.
22437
22438 2010-04-10  Bruno Haible  <bruno@clisp.org>
22439
22440         vasnprintf: Add more tests.
22441         * tests/test-vasnprintf-posix.c: Include <errno.h>.
22442         (test_function): Test converting an invalid wide string.
22443
22444         vasnprintf: Correct handling of unconvertible wide string arguments.
22445         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
22446         VASNPRINTF.
22447         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
22448         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
22449         smaller than the expected maximum need for the directive. Set errno to
22450         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
22451         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
22452         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
22453         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
22454         * modules/vasnprintf (Files): Add m4/printf.m4.
22455         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22456
22457 2010-04-10  Bruno Haible  <bruno@clisp.org>
22458
22459         vasnprintf: Fix crash in %ls directive.
22460         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
22461         string is passed as argument to %ls, with no precision and no width.
22462         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22463
22464 2010-04-10  Bruno Haible  <bruno@clisp.org>
22465
22466         vasnprintf: Fix multiple test failures on mingw.
22467         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
22468         _snprintf, or snwprintf, not _snwprintf.
22469
22470 2010-04-10  Bruno Haible  <bruno@clisp.org>
22471
22472         write: Fix a C++ test error on mingw.
22473         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
22474
22475 2010-04-10  Bruno Haible  <bruno@clisp.org>
22476
22477         vasnprintf test: Reduce code duplication.
22478         * tests/test-vasnprintf.c (test_function): New function, extracted from
22479         test_vasnprintf.
22480         (test_vasnprintf, test_asnprintf): Invoke it.
22481
22482 2010-04-10  Bruno Haible  <bruno@clisp.org>
22483
22484         strnlen: Fix warning in C++ mode on MacOS X.
22485         * lib/string.in.h (strnlen): Use the modern idiom.
22486         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
22487         defining strnlen as a macro already in <config.h>.
22488         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22489         REPLACE_STRNLEN.
22490         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
22491         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22492
22493 2010-04-08  James Youngman  <jay@gnu.org>
22494
22495         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
22496         the example.
22497
22498 2010-04-09  Jim Meyering  <meyering@redhat.com>
22499
22500         maint.mk: print better diagnostic when there is no $(_hv_file)
22501         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
22502         announce that when $(_hv_file) (aka help-version) does not exist.
22503
22504         init.sh: run tr in the "C" locale to avoid multibyte interpretation
22505         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
22506         not try to interpret its random input bytes.  Jarno Rajahalme reported
22507         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
22508         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
22509         (mktempd_): Likewise, just in case.
22510
22511         ftruncate: add two years to projected module removal date: 2012
22512         * m4/ftruncate.m4: Adjust comments.
22513
22514         ftruncate: mark module as obsolete; even MinGW provides it, now
22515         * modules/ftruncate (Status): Obsolete.
22516         (Notice): Say that.
22517         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
22518         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
22519
22520 2010-04-08  Bruno Haible  <bruno@clisp.org>
22521
22522         Fix side effects from tests-related modules.
22523         * modules/dprintf-posix (Comment): New section.
22524         * modules/fprintf-posix (Comment): Likewise.
22525         * modules/obstack-printf-posix (Comment): Likewise.
22526         * modules/printf-posix (Comment): Likewise.
22527         * modules/snprintf-posix (Comment): Likewise.
22528         * modules/sprintf-posix (Comment): Likewise.
22529         * modules/vasnprintf-posix (Comment): Likewise.
22530         * modules/vasprintf-posix (Comment): Likewise.
22531         * modules/vdprintf-posix (Comment): Likewise.
22532         * modules/vfprintf-posix (Comment): Likewise.
22533         * modules/vprintf-posix (Comment): Likewise.
22534         * modules/vsnprintf-posix (Comment): Likewise.
22535         * modules/vsprintf-posix (Comment): Likewise.
22536         * modules/xprintf-posix (Comment): Likewise.
22537         * modules/xvasprintf-posix (Comment): Likewise.
22538         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
22539         * modules/floorf-tests (Depends-on): Likewise.
22540         * modules/round-tests (Depends-on): Likewise.
22541         * modules/roundf-tests (Depends-on): Likewise.
22542         * modules/trunc-tests (Depends-on): Likewise.
22543         * modules/truncf-tests (Depends-on): Likewise.
22544         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
22545         'fprintf-posix' module is not present.
22546         * tests/test-floorf2.c (check): Likewise.
22547         * tests/test-trunc2.c (check): Likewise.
22548         * tests/test-truncf2.c (check): Likewise.
22549         * tests/test-round2.c (equal): Likewise.
22550         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22551
22552 2010-04-07  Karl Berry  <karl@gnu.org>
22553
22554         * config/srclist.txt,
22555         * config/srclistvars.sh,
22556         * config/srclist-update: doc fixes.
22557
22558 2010-04-07  Jim Meyering  <meyering@redhat.com>
22559
22560         maint.mk: add a PATH crosschecking syntax-check rule
22561         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
22562         Useful if you use a test like the one in help-version (coreutils,
22563         diffutils, grep, gzip) that ensures $(VERSION) matches what is
22564         printed by prog --version.
22565
22566 2010-04-06  Bruno Haible  <bruno@clisp.org>
22567
22568         Fix link error on mingw.
22569         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
22570         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
22571
22572 2010-04-06  Bruno Haible  <bruno@clisp.org>
22573
22574         Assume rmdir exists.
22575         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
22576
22577 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
22578
22579         doc: update users.txt
22580         * users.txt: Add gcal.
22581
22582 2010-04-06  Jim Meyering  <meyering@redhat.com>
22583
22584         init.sh: simply unset TMPDIR rather than risking env -i
22585         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
22586         although it probably works fine on all Unix-based systems, some
22587         systems (Cygwin?) cannot tolerate a totally cleared environment.
22588         Suggestion from Eric Blake.
22589
22590 2010-04-06  Jim Meyering  <meyering@redhat.com>
22591
22592         init.sh: portability fix: use env's POSIX-specified -i option not -u
22593         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
22594         than unportable env -u.  Solaris 5.11's env lacks support for -u.
22595
22596 2010-04-05  Bruno Haible  <bruno@clisp.org>
22597
22598         btowc: Work around Cygwin 1.7.2 bug.
22599         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
22600         does not map NUL to 0.
22601         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
22602
22603 2010-04-05  Bruno Haible  <bruno@clisp.org>
22604
22605         Make the multithread modules work on Cygwin 1.7.2.
22606         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
22607         imported symbols can be declared weak, so that it returns "no" on
22608         Cygwin 1.7.2.
22609
22610 2010-04-05  Bruno Haible  <bruno@clisp.org>
22611
22612         Use the module 'strncat'.
22613         * modules/unistr/u8-strncat (Depends-on): Add strncat.
22614
22615         Tests for module 'strncat'.
22616         * modules/strncat-tests: New file.
22617         * tests/test-strncat.c: New file.
22618
22619         New module 'strncat'.
22620         * lib/string.in.h (strncat): New declaration.
22621         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
22622         * m4/strncat.m4: New file, based on m4/memchr.m4.
22623         * modules/strncat: New file.
22624         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
22625         is declared.
22626         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
22627         REPLACE_STRNCAT.
22628         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
22629         REPLACE_STRNCAT.
22630         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
22631         module.
22632         * tests/test-string-c++.cc: Check signature of strncat.
22633
22634 2010-04-05  Jim Meyering  <meyering@redhat.com>
22635
22636         xstrtoumax-tests: convert to use init.sh
22637         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
22638         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
22639         Use Exit, not exit.
22640         Remove uses of $EXEEXT and "./" to run a program in the current dir.
22641
22642         xstrtoimax-tests: convert to use init.sh
22643         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
22644         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
22645         Use Exit, not exit.
22646         Remove uses of $EXEEXT and "./" to run a program in the current dir.
22647
22648 2010-04-05  Bruno Haible  <bruno@clisp.org>
22649
22650         sys_socket: Avoid #define replacements in C++ mode.
22651         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
22652         warning to the function if possible, rather than #defining the symbol
22653         to a dysfunctional alias.
22654
22655 2010-04-05  Bruno Haible  <bruno@clisp.org>
22656
22657         fseeko: Fix C++ test error on mingw.
22658         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
22659         gl_FUNC_FSEEKO.
22660         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
22661         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
22662         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
22663         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
22664
22665 2010-04-05  Bruno Haible  <bruno@clisp.org>
22666
22667         duplocale: Improve test output.
22668         * tests/test-duplocale.c (main): Print reason for skipped test.
22669
22670 2010-04-05  Bruno Haible  <bruno@clisp.org>
22671
22672         Assume rmdir exists.
22673         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
22674         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
22675
22676 2010-04-05  Bruno Haible  <bruno@clisp.org>
22677
22678         Fix link error on Solaris 8 with cc.
22679         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
22680
22681 2010-04-05  Bruno Haible  <bruno@clisp.org>
22682
22683         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
22684         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
22685
22686 2010-04-05  Bruno Haible  <bruno@clisp.org>
22687
22688         vasprintf: Update documentation.
22689         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
22690
22691 2010-04-05  Bruno Haible  <bruno@clisp.org>
22692
22693         ptsname: Improve test.
22694         * tests/test-ptsname.c (main): Also try the various master names of BSD
22695         systems.
22696
22697 2010-04-05  Bruno Haible  <bruno@clisp.org>
22698
22699         memchr: Avoid a possible C++ test error.
22700         * lib/string.in.h (memchr): Provide declaration if function is missing.
22701         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
22702         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
22703         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
22704         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
22705
22706 2010-04-05  Bruno Haible  <bruno@clisp.org>
22707
22708         strtok_r: Improve idiom.
22709         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
22710         AC_LIBOBJ is used.
22711
22712 2010-04-05  Bruno Haible  <bruno@clisp.org>
22713
22714         strdup: Improve idiom.
22715         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
22716         AC_LIBOBJ is used.
22717         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
22718         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
22719         when AC_LIBOBJ is used.
22720
22721 2010-04-05  Bruno Haible  <bruno@clisp.org>
22722
22723         mbsinit, mbrtowc, wcrtomb: Improve idioms.
22724         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
22725         don't set REPLACE_MBSINIT to 1.
22726         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
22727         don't set REPLACE_MBRTOWC to 1.
22728         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
22729         exist, don't set REPLACE_MBSRTOWCS to 1.
22730         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
22731         exist, don't set REPLACE_MBSNRTOWCS to 1.
22732         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
22733         don't set REPLACE_WCRTOMB to 1.
22734         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
22735         exist, don't set REPLACE_WCSRTOMBS to 1.
22736         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
22737         exist, don't set REPLACE_WCSNRTOMBS to 1.
22738
22739 2010-04-05  Bruno Haible  <bruno@clisp.org>
22740
22741         ldexpl: Improve idiom.
22742         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
22743         make sure to set HAVE_DECL_LDEXPL to 0.
22744
22745 2010-04-05  Jim Meyering  <meyering@redhat.com>
22746
22747         xstrtol-tests: convert to use init.sh
22748         * modules/xstrtol-tests (Files): Add tests/init.sh.
22749         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
22750         Use Exit, not exit.
22751         Remove uses of $EXEEXT and "./" to run a program in the current dir.
22752
22753         atexit-tests: convert to use init.sh
22754         * modules/atexit-tests (Files): Add tests/init.sh.
22755         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
22756         Use Exit, not exit.
22757         Remove uses of $EXEEXT and "./" to run a program in the current dir.
22758
22759         init.sh: fix typo
22760         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
22761
22762         init.sh: make it easier for a test script to write to the tty, ...
22763         when using automake's parallel-tests mode.
22764         * tests/init.sh (stderr_fileno_): Define overridable variable.
22765         (warn_): New function, to use it.
22766         (fail_, skip_, framework_failure_): Use warn_.
22767
22768 2010-04-04  Bruno Haible  <bruno@clisp.org>
22769
22770         btowc: Avoid warning.
22771         * lib/btowc.c: Include <stdlib.h>.
22772         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
22773
22774 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
22775             Bruno Haible  <bruno@clisp.org>
22776
22777         wchar: Port to NetBSD 1.5.
22778         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
22779         * lib/wctype.in.h (WEOF): Likewise.
22780
22781 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
22782             Bruno Haible  <bruno@clisp.org>
22783
22784         Port extended stdio to NetBSD 1.5.
22785         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
22786         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
22787         older.
22788
22789 2010-04-04  Bruno Haible  <bruno@clisp.org>
22790
22791         string: Remove unused substitution.
22792         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
22793         HAVE_DECL_STRERROR.
22794         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
22795
22796 2010-04-04  Bruno Haible  <bruno@clisp.org>
22797
22798         strtod: Avoid a possible C++ test error.
22799         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
22800         set REPLACE_STRTOD.
22801
22802 2010-04-04  Bruno Haible  <bruno@clisp.org>
22803
22804         strerror: Update documentation.
22805         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
22806
22807 2010-04-04  Bruno Haible  <bruno@clisp.org>
22808
22809         stdio: Fix some C++ test errors on Solaris 8 with GCC.
22810         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
22811         _GL_CXXALIAS_SYS_CAST.
22812
22813 2010-04-04  Bruno Haible  <bruno@clisp.org>
22814
22815         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
22816         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
22817         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
22818         REPLACE_FREXPL to 1.
22819         * doc/posix-functions/frexpl.texi: Update documentation.
22820
22821 2010-04-04  Bruno Haible  <bruno@clisp.org>
22822
22823         math: Fix some C++ test errors on Solaris 8 and Cygwin.
22824         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
22825
22826 2010-04-04  Bruno Haible  <bruno@clisp.org>
22827
22828         Implement nanosleep for native Windows.
22829         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
22830
22831 2010-04-04  Bruno Haible  <bruno@clisp.org>
22832
22833         math: Fix some C++ test errors on Solaris 8.
22834         * lib/math.in.h (truncf, trunc): Use simpler idiom.
22835
22836 2010-04-04  Bruno Haible  <bruno@clisp.org>
22837
22838         math: Fix some C++ test errors on Cygwin.
22839         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
22840         truncl): Provide declaration if the system does not have it.
22841         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
22842         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
22843         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
22844         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
22845         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
22846         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
22847         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
22848         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
22849         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
22850         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
22851         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
22852         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
22853         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
22854         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
22855         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
22856         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
22857         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
22858         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
22859         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
22860         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
22861         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
22862         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
22863
22864 2010-04-04  Bruno Haible  <bruno@clisp.org>
22865
22866         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
22867         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
22868         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
22869         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
22870         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
22871         * m4/isinf.m4 (gl_ISINF): Likewise.
22872         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22873
22874 2010-04-04  Bruno Haible  <bruno@clisp.org>
22875
22876         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
22877         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
22878
22879 2010-04-04  Bruno Haible  <bruno@clisp.org>
22880
22881         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
22882         * modules/tmpfile (configure.ac): Update.
22883
22884         tmpfile: Fix C++ test error on mingw.
22885         * lib/stdio.in.h (tmpfile): New declaration.
22886         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
22887         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
22888         * modules/tmpfile (Depends-on): Add stdio.
22889         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
22890         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
22891         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
22892         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
22893         REPLACE_TMPFILE.
22894         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
22895
22896 2010-04-04  Bruno Haible  <bruno@clisp.org>
22897
22898         ioctl: Fix C++ test error on mingw.
22899         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
22900         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
22901         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
22902
22903 2010-04-03  Bruno Haible  <bruno@clisp.org>
22904
22905         wcwidth: Fix C++ test error on mingw.
22906         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
22907         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
22908         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
22909
22910 2010-04-03  Bruno Haible  <bruno@clisp.org>
22911
22912         nanosleep: Fix C++ test error on mingw.
22913         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
22914         * lib/time.in.h (nanosleep): Use modern idiom.
22915         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
22916         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
22917         REPLACE_NANOSLEEP to 1.
22918         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
22919         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
22920
22921 2010-04-03  Bruno Haible  <bruno@clisp.org>
22922
22923         strptime: Fix C++ test error on mingw.
22924         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
22925         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
22926         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
22927         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
22928         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
22929         not REPLACE_STRPTIME.
22930         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
22931         REPLACE_STRPTIME.
22932
22933 2010-04-03  Bruno Haible  <bruno@clisp.org>
22934
22935         timegm: Fix C++ test error on mingw.
22936         * lib/time.in.h (timegm): Use modern idiom.
22937         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
22938         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
22939         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
22940         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
22941
22942 2010-04-03  Bruno Haible  <bruno@clisp.org>
22943
22944         timegm: Assume declaration if function exists.
22945         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
22946         if it exists. Don't clobber ac_cv_func_timegm.
22947
22948 2010-04-03  Bruno Haible  <bruno@clisp.org>
22949
22950         time_r: Fix C++ test error on mingw.
22951         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
22952         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
22953         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
22954         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
22955         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
22956
22957 2010-04-03  Bruno Haible  <bruno@clisp.org>
22958
22959         time_r: Minor updates.
22960         * modules/time_r (Description): Mention the provided functions.
22961         * lib/time_r.c: Don't include <string.h>.
22962         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
22963         * doc/posix-functions/localtime_r.texi: Likewise.
22964
22965 2010-04-03  Bruno Haible  <bruno@clisp.org>
22966
22967         time: Fix regression introduced on 2010-03-08.
22968         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
22969         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
22970
22971 2010-04-03  Jim Meyering  <meyering@redhat.com>
22972
22973         maint.mk: don't silently disable project-specific syntax-check rules
22974         * top/maint.mk (_prohibit_regexp): Define, to help people realize
22975         that they need to convert their project-specific syntax-check rules
22976         to use the new _sc_search_regexp.
22977
22978 2010-04-03  Bruno Haible  <bruno@clisp.org>
22979
22980         fchdir: Fix regression introduced on 2010-03-08.
22981         * lib/unistd.in.h (fchdir): Fix declaration.
22982         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
22983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
22984         REPLACE_FCHDIR.
22985         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
22986         REPLACE_FCHDIR.
22987
22988 2010-04-03  Bruno Haible  <bruno@clisp.org>
22989
22990         getpagesize: Fix C++ test error on mingw.
22991         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
22992         system does not declare the function.
22993         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
22994         declared.
22995         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22996         HAVE_DECL_GETPAGESIZE.
22997         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
22998
22999 2010-04-03  Bruno Haible  <bruno@clisp.org>
23000
23001         stdio: Make C++ tests work on mingw.
23002         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
23003         does not declare the function.
23004
23005 2010-04-03  Bruno Haible  <bruno@clisp.org>
23006
23007         ftello: Fix C++ test error on mingw.
23008         * lib/stdio.in.h (ftello): Use modern idiom.
23009         * lib/ftello.c (ftello): Renamed from rpl_ftello.
23010         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
23011         is missing and that it needs to be replaced.
23012         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
23013         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
23014         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
23015
23016 2010-04-03  Bruno Haible  <bruno@clisp.org>
23017
23018         fseeko: Fix C++ test error on mingw.
23019         * lib/stdio.in.h (fseeko): Use modern idiom.
23020         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
23021         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
23022         is missing and that it needs to be replaced.
23023         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
23024         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
23025         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
23026
23027 2010-04-03  Bruno Haible  <bruno@clisp.org>
23028
23029         mkstemp: Fix C++ test error on mingw.
23030         * lib/stdlib.in.h (mkstemp): Use modern idiom.
23031         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
23032         function is missing and that it needs to be replaced.
23033         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
23034         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
23035
23036 2010-04-03  Bruno Haible  <bruno@clisp.org>
23037
23038         stpncpy: Fix C++ test error on mingw.
23039         * lib/string.in.h (stpncpy): Use modern idiom.
23040         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
23041         function is missing and that it needs to be replaced.
23042         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23043         REPLACE_STPNCPY.
23044         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
23045
23046 2010-04-03  Bruno Haible  <bruno@clisp.org>
23047
23048         sys_stat: Fix C++ test error on mingw.
23049         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
23050         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
23051
23052 2010-04-03  Bruno Haible  <bruno@clisp.org>
23053
23054         pty: Update doc.
23055         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
23056
23057 2010-04-03  Bruno Haible  <bruno@clisp.org>
23058
23059         unistd: Fix C++ test error on mingw.
23060         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
23061
23062 2010-04-03  Bruno Haible  <bruno@clisp.org>
23063
23064         Update doc regarding mingw.
23065         * doc/glibc-functions/openpty.texi: Update regarding mingw.
23066         * doc/glibc-functions/login_tty.texi: Likewise.
23067         * doc/glibc-functions/forkpty.texi: Likewise.
23068
23069 2010-04-03  Bruno Haible  <bruno@clisp.org>
23070
23071         stdlib: Avoid compilation failure of c-strtold on mingw.
23072         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
23073
23074 2010-04-03  Bruno Haible  <bruno@clisp.org>
23075
23076         locale: Make C++ tests work on Cygwin and mingw.
23077         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
23078         cannot provide the function.
23079         Reported by Simon Josefsson.
23080
23081 2010-04-03  Bruno Haible  <bruno@clisp.org>
23082
23083         localename: Port to MacOS X 10.6.
23084         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
23085         memory layout of the locales in MacOS X 10.6 as well.
23086         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
23087
23088 2010-04-02  Bruno Haible  <bruno@clisp.org>
23089
23090         gnulib-tool: Ensure that long-running tests are executed last.
23091         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
23092         running tests after the one for the other tests.
23093
23094 2010-04-02  Bruno Haible  <bruno@clisp.org>
23095
23096         gnulib-tool: Ensure the tests in the main directory are executed first.
23097         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
23098         start with the current directory.
23099
23100 2010-04-02  Bruno Haible  <bruno@clisp.org>
23101
23102         Tests for module 'havelib', moved here from GNU gettext.
23103         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
23104         modifications.
23105         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
23106         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
23107         with modifications.
23108         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
23109         modifications.
23110         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
23111         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
23112         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
23113         with modifications.
23114         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
23115         with modifications.
23116         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
23117         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
23118         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
23119         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
23120         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
23121         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
23122         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
23123         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
23124         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
23125         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
23126         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
23127         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
23128         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
23129         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
23130         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
23131         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
23132         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
23133         with modifications.
23134         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
23135         with modifications.
23136         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
23137         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
23138         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
23139         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
23140         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
23141         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
23142         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
23143         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
23144         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
23145         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
23146         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
23147         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
23148         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
23149         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
23150         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
23151         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
23152         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
23153         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
23154         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
23155         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
23156         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
23157         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
23158         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
23159         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
23160         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
23161         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
23162         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
23163         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
23164         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
23165         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
23166         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
23167         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
23168         * tests/havelib/rpathx/rpathx.c: New file, from
23169         gettext/autoconf-lib-link.
23170         * tests/havelib/rpathx/Makefile.am: New file, from
23171         gettext/autoconf-lib-link.
23172         * tests/havelib/rpathx/configure.ac: New file, from
23173         gettext/autoconf-lib-link with modifications.
23174         * tests/havelib/rpathy/rpathy.c: New file, from
23175         gettext/autoconf-lib-link.
23176         * tests/havelib/rpathy/Makefile.am: New file, from
23177         gettext/autoconf-lib-link.
23178         * tests/havelib/rpathy/configure.ac: New file, from
23179         gettext/autoconf-lib-link with modifications.
23180         * tests/havelib/rpathz/rpathz.c: New file, from
23181         gettext/autoconf-lib-link.
23182         * tests/havelib/rpathz/Makefile.am: New file, from
23183         gettext/autoconf-lib-link.
23184         * tests/havelib/rpathz/configure.ac: New file, from
23185         gettext/autoconf-lib-link with modifications.
23186         * tests/havelib/rpathlx/usex.c: New file, from
23187         gettext/autoconf-lib-link.
23188         * tests/havelib/rpathlx/Makefile.am: New file, from
23189         gettext/autoconf-lib-link.
23190         * tests/havelib/rpathlx/configure.ac: New file, from
23191         gettext/autoconf-lib-link with modifications.
23192         * tests/havelib/rpathly/usey.c: New file, from
23193         gettext/autoconf-lib-link.
23194         * tests/havelib/rpathly/Makefile.am: New file, from
23195         gettext/autoconf-lib-link.
23196         * tests/havelib/rpathly/configure.ac: New file, from
23197         gettext/autoconf-lib-link with modifications.
23198         * tests/havelib/rpathlz/usez.c: New file, from
23199         gettext/autoconf-lib-link.
23200         * tests/havelib/rpathlz/Makefile.am: New file, from
23201         gettext/autoconf-lib-link.
23202         * tests/havelib/rpathlz/configure.ac: New file, from
23203         gettext/autoconf-lib-link with modifications.
23204         * tests/havelib/rpathlyx/usey.c: New file, from
23205         gettext/autoconf-lib-link.
23206         * tests/havelib/rpathlyx/Makefile.am: New file, from
23207         gettext/autoconf-lib-link.
23208         * tests/havelib/rpathlyx/configure.ac: New file, from
23209         gettext/autoconf-lib-link with modifications.
23210         * tests/havelib/rpathlzyx/usez.c: New file, from
23211         gettext/autoconf-lib-link.
23212         * tests/havelib/rpathlzyx/Makefile.am: New file, from
23213         gettext/autoconf-lib-link.
23214         * tests/havelib/rpathlzyx/configure.ac: New file, from
23215         gettext/autoconf-lib-link with modifications.
23216         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
23217         with modifications.
23218
23219 2010-04-02  Bruno Haible  <bruno@clisp.org>
23220
23221         gnulib-tool: Create distributed built sources also for the tests.
23222         * gnulib-tool (func_create_testdir): Also generate distributed built
23223         sources in the tests directory.
23224
23225 2010-04-02  Bruno Haible  <bruno@clisp.org>
23226
23227         gnulib-tool: Obey user's environment variables.
23228         * gnulib-tool (func_create_testdir): When creating built sources,
23229         respect the environment variables for autoconf, automake, etc. given by
23230         the user.
23231
23232 2010-04-02  Bruno Haible  <bruno@clisp.org>
23233
23234         gnulib-tool: Provide the value of --m4-base to modules.
23235         * gnulib-tool (func_import, func_create_testdir): Emit a definition
23236         of gl_m4_base.
23237
23238 2010-04-02  Eric Blake  <eblake@redhat.com>
23239
23240         maint.mk: fix some fallout
23241         * NEWS: Document the incompatible change, and its effect on cfg.mk.
23242         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
23243
23244 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
23245
23246         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
23247         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
23248         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
23249         (sc_cast_of_x_alloc_return_value): Likewise.
23250         (sc_cast_of_alloca_return_value): Likewise.
23251         (sc_space_tab): Likewise.
23252         (sc_prohibit_atoi_atof): Likewise.
23253         (sc_prohibit_magic_number_exit): Likewise.
23254         (sc_error_exit_success): Likewise.
23255         (sc_file_system): Likewise.
23256         (sc_prohibit_have_config_h): Likewise.
23257         (sc_require_config_h): Likewise.
23258         (sc_prohibit_HAVE_MBRTOWC): Likewise.
23259         (sc_obsolete_symbols): Likewise.
23260         (sc_changelog): Likewise.
23261         (sc_program_name): Likewise.
23262         (sc_the_the): Likewise.
23263         (sc_trailing_blank): Likewise.
23264         (sc_two_space_separator_in_usage): Likewise.
23265         (sc_useless_cpp_parens): Likewise.
23266         (sc_GPL_version): Likewise.
23267         (sc_GFDL_version): Likewise.
23268         (sc_texinfo_acronym): Likewise.
23269         (sc_prohibit_cvs_keyword): Likewise.
23270         (sc_prohibit_stat_st_blocks): Likewise.
23271         (sc_prohibit_S_IS_definition): Likewise.
23272         (sc_redundant_const): Likewise.
23273         (sc_makefile_TAB_only_indentation): Likewise.
23274         (sc_m4_quote_check): Likewise.
23275         (sc_makefile_path_separator_check): Likewise.
23276         (sc_copyright_check): Likewise.
23277         (sc_Wundef_boolean): Likewise.
23278         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
23279
23280         maint.mk: match 0 or more whitespace-before-function-call '('
23281         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
23282         that have zero or two-and-more spaces between the function name
23283         and the open parenthesis.
23284         (sc_error_message_warn_fatal): Likewise.
23285         (sc_error_message_uppercase): Likewise.
23286         (sc_error_message_period): Likewise.
23287
23288 2010-03-31  Eric Blake  <eblake@redhat.com>
23289
23290         maint.mk: check for [ as well as test
23291         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
23292         Based on a libvirt report by Matthias Bolte.
23293
23294         gnumakefile: don't squelch _version output
23295         * top/GNUmakefile (_version): Create one-shot dependency rather
23296         than using $(shell) when version must be regenerated.
23297         (_autoreconf): Run verbosely, by default.
23298
23299         sys_time: avoid compiler warnings
23300         * lib/sys_time.in.h (includes): Ensure gcc pragma is
23301         unconditional, fixing regression from 2010-03-29.
23302         Reported by Simon Josefsson.
23303
23304 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
23305
23306         maint.mk: s/_header_without_use/_sc_header_without_use/
23307         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
23308         (sc_prohibit_assert_without_use): Use the new name.
23309         (sc_prohibit_close_stream_without_use): Likewise.
23310         (sc_prohibit_getopt_without_use): Likewise.
23311         (sc_prohibit_quotearg_without_use): Likewise.
23312         (sc_prohibit_quote_without_use): Likewise.
23313         (sc_prohibit_long_options_without_use): Likewise.
23314         (sc_prohibit_inttostr_without_use): Likewise.
23315         (sc_prohibit_ignore_value_without_use): Likewise.
23316         (sc_prohibit_error_without_use): Likewise.
23317         (sc_prohibit_xalloc_without_use): Likewise.
23318         (sc_prohibit_hash_without_use): Likewise.
23319         (sc_prohibit_hash_pjw_without_use): Likewise.
23320         (sc_prohibit_safe_read_without_use): Likewise.
23321         (sc_prohibit_argmatch_without_use): Likewise.
23322         (sc_prohibit_canonicalize_without_use): Likewise.
23323         (sc_prohibit_root_dev_ino_without_use): Likewise.
23324         (sc_prohibit_openat_without_use): Likewise.
23325         (sc_prohibit_c_ctype_without_use): Likewise.
23326         (sc_prohibit_signal_without_use): Likewise.
23327         (sc_prohibit_intprops_without_use): Likewise.
23328
23329 2010-03-30  Eric Blake  <eblake@redhat.com>
23330
23331         maint: improve module indicators
23332         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
23333         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
23334         columns, and avoid extra macro expansion.
23335
23336         fdopendir: work around FreeBSD bug
23337         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
23338         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
23339         * modules/dirent (Makefile.am): Substitute it.
23340         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
23341         declaration.
23342         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
23343         fix.
23344         Reported by Christian Weisgerber <naddy@mips.inka.de>.
23345
23346 2010-03-29  Bruno Haible  <bruno@clisp.org>
23347
23348         Emit #pragma system_header after the inclusion guard, not before.
23349         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
23350         guard that spans the entire file, not before. This enables an
23351         optimization in GCC's preprocessor.
23352         * lib/ctype.in.h: Likewise.
23353         * lib/dirent.in.h: Likewise.
23354         * lib/errno.in.h: Likewise.
23355         * lib/float.in.h: Likewise.
23356         * lib/getopt.in.h: Likewise.
23357         * lib/iconv.in.h: Likewise.
23358         * lib/langinfo.in.h: Likewise.
23359         * lib/locale.in.h: Likewise.
23360         * lib/math.in.h: Likewise.
23361         * lib/netdb.in.h: Likewise.
23362         * lib/netinet_in.in.h: Likewise.
23363         * lib/pty.in.h: Likewise.
23364         * lib/sched.in.h: Likewise.
23365         * lib/se-selinux.in.h: Likewise.
23366         * lib/search.in.h: Likewise.
23367         * lib/spawn.in.h: Likewise.
23368         * lib/stdarg.in.h: Likewise.
23369         * lib/stdint.in.h: Likewise.
23370         * lib/string.in.h: Likewise.
23371         * lib/strings.in.h: Likewise.
23372         * lib/sys_file.in.h: Likewise.
23373         * lib/sys_ioctl.in.h: Likewise.
23374         * lib/sys_time.in.h: Likewise.
23375         * lib/sys_times.in.h: Likewise.
23376         * lib/sys_utsname.in.h: Likewise.
23377         * lib/sys_wait.in.h: Likewise.
23378         * lib/sysexits.in.h: Likewise.
23379         * lib/wctype.in.h: Likewise.
23380
23381 2010-03-28  James Youngman  <jay@gnu.org>
23382
23383         save-cwd: don't leak a file descriptor when the caller execs.
23384         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
23385         saved file descriptor.
23386         * modules/save-cwd (Depends-on): Depend on cloexec.
23387
23388 2010-03-29  Bruno Haible  <bruno@clisp.org>
23389
23390         Remove vestiges of fts-lgpl module.
23391         * lib/fts_.h: Assume GNULIB_FTS is 1.
23392         * lib/fts.c: Likewise.
23393         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
23394
23395 2010-03-28  Bruno Haible  <bruno@clisp.org>
23396
23397         Fix definition of tests witness macro.
23398         * gnulib-tool (func_import): Fix definition of witness macro.
23399
23400 2010-03-28  Bruno Haible  <bruno@clisp.org>
23401
23402         Fix ioctl's protoype on glibc systems.
23403         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
23404         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
23405         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
23406         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
23407         signature. If not, arrange to replace the ioctl function.
23408         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
23409         REPLACE_IOCTL.
23410         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
23411         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
23412         Reported by Ludovic Courtès <ludo@gnu.org>.
23413
23414 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
23415
23416         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
23417         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
23418         made it so grep -r --include=GLOB* ... did not work.
23419
23420 2010-03-26  Jim Meyering  <meyering@redhat.com>
23421             Eric Blake  <eblake@redhat.com>
23422
23423         maint.mk: prohibit use of test's -o and -a operators
23424         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
23425
23426 2010-03-28  Bruno Haible  <bruno@clisp.org>
23427
23428         Remove unused GNULIB_XYZ macro definitions.
23429         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
23430         invocation.
23431
23432 2010-03-28  Bruno Haible  <bruno@clisp.org>
23433
23434         Mark privileged tests modules.
23435         * modules/idpriv-drop-tests (Status): New section.
23436         * modules/idpriv-droptemp-tests (Status): New section.
23437
23438 2010-03-28  Bruno Haible  <bruno@clisp.org>
23439
23440         Split C++ tests into separate tests modules.
23441         * modules/dirent-c++-tests: New file, extracted from
23442         modules/dirent-tests.
23443         * modules/dirent-tests: Depend on it.
23444         * modules/fcntl-h-c++-tests: New file, extracted from
23445         modules/fcntl-h-tests.
23446         * modules/fcntl-h-tests: Depend on it.
23447         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
23448         * modules/glob-tests: Depend on it.
23449         * modules/iconv-h-c++-tests: New file, extracted from
23450         modules/iconv-h-tests.
23451         * modules/iconv-h-tests: Depend on it.
23452         * modules/langinfo-c++-tests: New file, extracted from
23453         modules/langinfo-tests.
23454         * modules/langinfo-tests: Depend on it.
23455         * modules/locale-c++-tests: New file, extracted from
23456         modules/locale-tests.
23457         * modules/locale-tests: Depend on it.
23458         * modules/math-c++-tests: New file, extracted from modules/math-tests.
23459         * modules/math-tests: Depend on it.
23460         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
23461         * modules/pty-tests: Depend on it.
23462         * modules/search-c++-tests: New file, extracted from
23463         modules/search-tests.
23464         * modules/search-tests: Depend on it.
23465         * modules/signal-c++-tests: New file, extracted from
23466         modules/signal-tests.
23467         * modules/signal-tests: Depend on it.
23468         * modules/spawn-c++-tests: New file, extracted from
23469         modules/spawn-tests.
23470         * modules/spawn-tests: Depend on it.
23471         * modules/stdio-c++-tests: New file, extracted from
23472         modules/stdio-tests.
23473         * modules/stdio-tests: Depend on it.
23474         * modules/stdlib-c++-tests: New file, extracted from
23475         modules/stdlib-tests.
23476         * modules/stdlib-tests: Depend on it.
23477         * modules/string-c++-tests: New file, extracted from
23478         modules/string-tests.
23479         * modules/string-tests: Depend on it.
23480         * modules/sys_ioctl-c++-tests: New file, extracted from
23481         modules/sys_ioctl-tests.
23482         * modules/sys_ioctl-tests: Depend on it.
23483         * modules/sys_select-c++-tests: New file, extracted from
23484         modules/sys_select-tests.
23485         * modules/sys_select-tests: Depend on it.
23486         * modules/sys_socket-c++-tests: New file, extracted from
23487         modules/sys_socket-tests.
23488         * modules/sys_socket-tests: Depend on it.
23489         * modules/sys_stat-c++-tests: New file, extracted from
23490         modules/sys_stat-tests.
23491         * modules/sys_stat-tests: Depend on it.
23492         * modules/sys_time-c++-tests: New file, extracted from
23493         modules/sys_time-tests.
23494         * modules/sys_time-tests: Depend on it.
23495         * modules/time-c++-tests: New file, extracted from modules/time-tests.
23496         * modules/time-tests: Depend on it.
23497         * modules/unistd-c++-tests: New file, extracted from
23498         modules/unistd-tests.
23499         * modules/unistd-tests: Depend on it.
23500         * modules/wchar-c++-tests: New file, extracted from
23501         modules/wchar-tests.
23502         * modules/wchar-tests: Depend on it.
23503         * modules/wctype-c++-tests: New file, extracted from
23504         modules/wctype-tests.
23505         * modules/wctype-tests: Depend on it.
23506         Reported by Simon Josefsson.
23507
23508 2010-03-28  Bruno Haible  <bruno@clisp.org>
23509
23510         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
23511         * gnulib-tool (func_exists_module): New function, extracted from
23512         func_verify_module.
23513         (func_verify_module): Use it.
23514         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
23515         'foo' only if 'foo' exists.
23516         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
23517         module.
23518
23519 2010-03-28  Bruno Haible  <bruno@clisp.org>
23520
23521         gnulib-tool: Add support for special categories of tests.
23522         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
23523         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
23524         (func_usage): Document them.
23525         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
23526         inc_unportable_tests, inc_all_tests): New variables.
23527         (func_acceptable): Consider these variables.
23528         (func_modules_transitive_closure): Make it work when the 'Status' field
23529         consists of multiple words.
23530         (func_import): Store and restore the values of inc_cxx_tests,
23531         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
23532         inc_all_tests in gnulib-comp.m4.
23533         (func_create_testdir): Set inc_all_tests to true.
23534         * doc/gnulib.texi (Extra tests modules): New section.
23535         Suggested by Jim Meyering.
23536
23537 2010-03-28  Bruno Haible  <bruno@clisp.org>
23538
23539         ansi-c++-opt: Allow turning off the C++ build by default.
23540         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
23541         gl_CXX_CHOICE_DEFAULT_NO is defined.
23542         Requested by Eric Blake.
23543
23544 2010-03-28  Bruno Haible  <bruno@clisp.org>
23545
23546         unistd: Avoid #define replacements in C++ mode.
23547         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
23548         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
23549         setsockopt, shutdown, select): In C++, attach a warning to the function
23550         if possible, rather than #defining the symbol to a dysfunctional alias.
23551         Reported by John W. Eaton <jwe@gnu.org>.
23552
23553 2010-03-28  Bruno Haible  <bruno@clisp.org>
23554
23555         Fix link errors on mingw.
23556         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
23557         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
23558         $(LIBSOCKET).
23559         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
23560         $(LIBSOCKET).
23561
23562 2010-03-28  Bruno Haible  <bruno@clisp.org>
23563             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23564
23565         lib-ignore: Determine different options for different compilers.
23566         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
23567         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
23568         Add comments.
23569         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
23570         * NEWS: Mention the change.
23571
23572 2010-03-27  Bruno Haible  <bruno@clisp.org>
23573
23574         Remove unused GNULIB_XYZ macro definitions.
23575         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
23576         * modules/fseek (configure.ac): Likewise.
23577         * modules/ioctl (configure.ac): Likewise.
23578         * modules/open (configure.ac): Likewise.
23579         * modules/stdlib-safer (configure.ac): Likewise.
23580
23581 2010-03-27  Bruno Haible  <bruno@clisp.org>
23582
23583         Add a remark about certain modules.
23584         * modules/malloc (Comment): New section.
23585         * modules/realloc (Comment): Likewise.
23586         * modules/sigpipe (Comment): Likewise.
23587
23588 2010-03-27  Bruno Haible  <bruno@clisp.org>
23589
23590         Resolve conflict between the two kinds of module indicators.
23591         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
23592         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
23593         * modules/canonicalize (configure.ac): Invoke
23594         gl_MODULE_INDICATOR_FOR_TESTS.
23595         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
23596         GNULIB_XYZ.
23597         * tests/test-dirent-c++.cc: Likewise.
23598         * tests/test-dirent-safer.c: Likewise.
23599         * tests/test-dup2.c: Likewise.
23600         * tests/test-fchdir.c: Likewise.
23601         * tests/test-fcntl-h-c++.cc: Likewise.
23602         * tests/test-getopt.c: Likewise.
23603         * tests/test-getopt.h: Likewise.
23604         * tests/test-langinfo-c++.cc: Likewise.
23605         * tests/test-locale-c++.cc: Likewise.
23606         * tests/test-math-c++.cc: Likewise.
23607         * tests/test-pty-c++.cc: Likewise.
23608         * tests/test-search-c++.cc: Likewise.
23609         * tests/test-signal-c++.cc: Likewise.
23610         * tests/test-spawn-c++.cc: Likewise.
23611         * tests/test-stdio-c++.cc: Likewise.
23612         * tests/test-stdlib-c++.cc: Likewise.
23613         * tests/test-string-c++.cc: Likewise.
23614         * tests/test-sys_ioctl-c++.cc: Likewise.
23615         * tests/test-sys_select-c++.cc: Likewise.
23616         * tests/test-sys_socket-c++.cc: Likewise.
23617         * tests/test-sys_stat-c++.cc: Likewise.
23618         * tests/test-sys_time-c++.cc: Likewise.
23619         * tests/test-time-c++.cc: Likewise.
23620         * tests/test-unistd-c++.cc: Likewise.
23621         * tests/test-wchar-c++.cc: Likewise.
23622         * tests/uninorm/test-u8-nfc.c: Likewise.
23623         * tests/uninorm/test-u8-nfd.c: Likewise.
23624         * tests/uninorm/test-u8-nfkc.c: Likewise.
23625         * tests/uninorm/test-u8-nfkd.c: Likewise.
23626         * tests/uninorm/test-u16-nfc.c: Likewise.
23627         * tests/uninorm/test-u16-nfd.c: Likewise.
23628         * tests/uninorm/test-u16-nfkc.c: Likewise.
23629         * tests/uninorm/test-u16-nfkd.c: Likewise.
23630         * tests/uninorm/test-u32-nfc.c: Likewise.
23631         * tests/uninorm/test-u32-nfc-big.c: Likewise.
23632         * tests/uninorm/test-u32-nfd.c: Likewise.
23633         * tests/uninorm/test-u32-nfd-big.c: Likewise.
23634         * tests/uninorm/test-u32-nfkc.c: Likewise.
23635         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
23636         * tests/uninorm/test-u32-nfkd.c: Likewise.
23637         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
23638         * tests/uninorm/test-u32-normalize-big.c: Likewise.
23639
23640 2010-03-27  Bruno Haible  <bruno@clisp.org>
23641
23642         Distinguish two kinds of module indicators.
23643         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
23644         gl_MODULE_INDICATOR.
23645         (gl_MODULE_INDICATOR): New macro.
23646         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
23647         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
23648         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
23649         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
23650         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
23651         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
23652         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
23653         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
23654         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
23655         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
23656         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
23657         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
23658         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
23659         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
23660         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
23661         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
23662         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
23663         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
23664         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
23665         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
23666         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
23667         * modules/cloexec (configure.ac): Likewise.
23668         * modules/getopt-gnu (configure.ac): Likewise.
23669         * modules/uninorm/u8-normalize (configure.ac): Likewise.
23670         * modules/uninorm/u16-normalize (configure.ac): Likewise.
23671         * modules/uninorm/u32-normalize (configure.ac): Likewise.
23672         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
23673
23674 2010-03-27  Bruno Haible  <bruno@clisp.org>
23675
23676         New module description field 'Comment'.
23677         * gnulib-tool: New option --extract-comment.
23678         (func_usage): Document it.
23679         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
23680         (func_get_comment): New function.
23681         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
23682
23683 2010-03-27  Bruno Haible  <bruno@clisp.org>
23684
23685         Addendum to 2010-02-07 commit.
23686         * gnulib-tool (func_usage): Document --extract-applicability option.
23687
23688 2010-03-27  Bruno Haible  <bruno@clisp.org>
23689
23690         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
23691         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
23692         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
23693         rather than link errors.
23694
23695 2010-03-27  Bruno Haible  <bruno@clisp.org>
23696
23697         Avoid side effects from tests-related modules on the compilation of lib.
23698         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
23699         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
23700         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
23701         parameter. Emit into AM_CPPFLAGS a definition of the designated C
23702         macro.
23703         (func_import): Define a witness macro. Assign it a value that depends
23704         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
23705         tests-related modules.
23706         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
23707         Reported by Jim Meyering.
23708
23709 2010-03-27  Bruno Haible  <bruno@clisp.org>
23710
23711         Factorize common .m4 code.
23712         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
23713         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
23714         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
23715         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
23716         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
23717         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
23718         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
23719         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
23720         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
23721         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
23722         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
23723         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
23724         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
23725         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
23726         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
23727         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
23728         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
23729         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
23730         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
23731         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
23732         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
23733         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
23734         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
23735         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
23736         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
23737         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
23738         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
23739         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
23740         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
23741         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
23742         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
23743         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
23744
23745 2010-03-27  Bruno Haible  <bruno@clisp.org>
23746
23747         Fix a compilation error on Cygwin with g++ >= 4.3.
23748         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
23749         if it is undefined or if we alias it to chmod.
23750         (lstat): Don't warn about the use of this function if it is undefined
23751         or if we alias it to stat.
23752         Reported by Simon Josefsson.
23753
23754 2010-03-27  Bruno Haible  <bruno@clisp.org>
23755
23756         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
23757         * modules/getlogin (configure.ac): Update.
23758
23759         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
23760         * modules/getlogin_r (configure.ac): Update.
23761
23762         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
23763         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
23764         * modules/inet_ntop (configure.ac): Update.
23765
23766         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
23767         * modules/inet_pton (configure.ac): Update.
23768
23769         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
23770         * modules/mbslen (configure.ac): Update.
23771
23772         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
23773         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
23774         * modules/forkpty (configure.ac): Update.
23775         * modules/openpty (configure.ac): Update.
23776
23777 2010-03-26  Simon Josefsson  <simon@josefsson.org>
23778
23779         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
23780         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
23781
23782 2010-03-25  Eric Blake  <eblake@redhat.com>
23783
23784         maint: use pragma consistently across replacement headers
23785         * lib/ctype.in.h (system_header): Hoist for consistent placement.
23786         * lib/dirent.in.h (system_header): Likewise.
23787         * lib/errno.in.h (system_header): Likewise.
23788         * lib/float.in.h (system_header): Likewise.
23789         * lib/getopt.in.h (system_header): Likewise.
23790         * lib/iconv.in.h (system_header): Likewise.
23791         * lib/inttypes.in.h (system_header): Likewise.
23792         * lib/langinfo.in.h (system_header): Likewise.
23793         * lib/locale.in.h (system_header): Likewise.
23794         * lib/math.in.h (system_header): Likewise.
23795         * lib/netdb.in.h (system_header): Likewise.
23796         * lib/netinet_in.in.h (system_header): Likewise.
23797         * lib/pty.in.h (system_header): Likewise.
23798         * lib/sched.in.h (system_header): Likewise.
23799         * lib/se-selinux.in.h (system_header): Likewise.
23800         * lib/search.in.h (system_header): Likewise.
23801         * lib/spawn.in.h (system_header): Likewise.
23802         * lib/stdarg.in.h (system_header): Likewise.
23803         * lib/stdint.in.h (system_header): Likewise.
23804         * lib/string.in.h (system_header): Likewise.
23805         * lib/strings.in.h (system_header): Likewise.
23806         * lib/sys_file.in.h (system_header): Likewise.
23807         * lib/sys_ioctl.in.h (system_header): Likewise.
23808         * lib/sys_socket.in.h (system_header): Likewise.
23809         * lib/sys_times.in.h (system_header): Likewise.
23810         * lib/sys_utsname.in.h (system_header): Likewise.
23811         * lib/sys_wait.in.h (system_header): Likewise.
23812         * lib/sysexits.in.h (system_header): Likewise.
23813         * lib/unistd.in.h (system_header): Likewise.
23814         * lib/wctype.in.h (system_header): Likewise.
23815
23816         arpa/inet: fix mingw compilation warning
23817         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
23818         Reported by Matthew Bolte.
23819
23820 2010-03-25  Bruno Haible  <bruno@clisp.org>
23821
23822         Avoid collision between gnulib wrapper and libintl wrapper.
23823         * lib/printf.c (printf): Don't define if a printf wrapper is already
23824         defined in intl/printf.c.
23825         Reported by Michel Boaventura <michel@michelboaventura.com>.
23826
23827 2010-03-25  Bruno Haible  <bruno@clisp.org>
23828
23829         Use ANSI C.
23830         * lib/readutmp.h (getutent): Provide ANSI C prototype.
23831
23832 2010-03-25  Bruno Haible  <bruno@clisp.org>
23833
23834         Minor formatting changes.
23835         * lib/acosl.c: Insert space before function argument list.
23836         * lib/argz.c: Likewise.
23837         * lib/asinl.c: Likewise.
23838         * lib/expl.c: Likewise.
23839         * lib/gen-uni-tables.c: Likewise.
23840         * lib/gettext.h: Likewise.
23841         * lib/glthread/lock.h: Likewise.
23842         * lib/tanl.c: Likewise.
23843         * lib/uniname/uniname.c: Likewise.
23844         * tests/test-idpriv-drop.c: Likewise.
23845         * tests/test-idpriv-droptemp.c: Likewise.
23846         * tests/test-lock.c: Likewise.
23847         * tests/test-tls.c: Likewise.
23848         * lib/argp-help.c: Insert space before function-like macro argument
23849         list.
23850         * lib/memcmp.c: Likewise.
23851         * tests/test-base64.c: Likewise.
23852         * lib/localename.c: Insert space before sizeof's argument list.
23853         * lib/safe-alloc.h: Likewise.
23854         * lib/file-set.h: Insert space before macro argument list.
23855         * tests/test-argp.c: Likewise.
23856         * lib/argp-namefrob.h: Insert space before function parameter list.
23857         * lib/getaddrinfo.c: Likewise.
23858         * lib/netdb.in.h: Likewise.
23859         * lib/parse-duration.h: Likewise.
23860         * lib/parse-duration.c: Likewise.
23861         * lib/poll.c: Likewise.
23862         * lib/select.c: Likewise.
23863         * lib/trim.h: Likewise.
23864         * tests/test-usleep.c: Likewise.
23865         * lib/ldexpl.c: Insert space before function parameter list and before
23866         function argument list.
23867         * lib/logl.c: Likewise.
23868         * lib/sqrtl.c: Likewise.
23869         * lib/trim.c: Likewise.
23870         * lib/cosl.c: Use GNU style indentation. Insert space before function
23871         argument list.
23872         * lib/sinl.c: Likewise.
23873         * lib/tsearch.c: Insert space after 'for'.
23874         Reported by Jim Meyering.
23875
23876 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
23877
23878         * maint.mk (sc_Wundef_boolean): Check for the presence of the
23879         config header before grepping, as it's not present before
23880         autoreconf/configure are run.  Reported by Simon Josefsson.
23881
23882 2010-03-23  Bruno Haible  <bruno@clisp.org>
23883
23884         pt_chown: Make it work with automake < 1.11.
23885         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
23886         Reported by Simon Josefsson.
23887
23888 2010-03-23  Bruno Haible  <bruno@clisp.org>
23889
23890         pt_chown: Don't depend on GPLed modules.
23891         * lib/pt_chown.c: Don't include idpriv.h.
23892         (main): Don't drop privileges.
23893         * modules/pt_chown (Depends-on): Remove idpriv-drop.
23894         Reported by Simon Josefsson.
23895
23896 2010-03-24  Simon Josefsson  <simon@josefsson.org>
23897
23898         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
23899         suggestions from karl@freefriends.org (Karl Berry).
23900
23901 2010-03-22  Eric Blake  <eblake@redhat.com>
23902
23903         gethostname: further tweaks
23904         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
23905         are overriding gethostname.
23906         Suggested by Bruno Haible.
23907
23908 2010-03-21  Bruno Haible  <bruno@clisp.org>
23909
23910         Fix comments.
23911         * lib/forkpty.c (rpl_forkpty): Fix comment.
23912         * lib/openpty.c (rpl_openpty): Likewise.
23913         Reported by Eric Blake.
23914
23915 2010-03-22  Eric Blake  <eblake@redhat.com>
23916
23917         gethostname: fix build on mingw
23918         * lib/unistd.in.h (includes): Work around fact that mingw
23919         <winsock2.h> re-includes <unistd.h>, by avoiding any
23920         redeclarations if we are being included by <winsock2.h>.
23921         Reported by Matthias Bolte.
23922
23923 2010-03-21  Bruno Haible  <bruno@clisp.org>
23924
23925         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
23926         * lib/forkpty.c (forkpty): New replacement function, from glibc with
23927         modifications.
23928         * lib/pty.in.h (forkpty): Update declaration. Add comments.
23929         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
23930         provide the replacement.
23931         * modules/forkpty (Depends-on): Add openpty, login_tty.
23932         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
23933         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
23934         * doc/glibc-functions/forkpty.texi: More supported platforms.
23935         * config/srclist.txt: Add forkpty.c (commented).
23936
23937 2010-03-21  Bruno Haible  <bruno@clisp.org>
23938
23939         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
23940         (Makefile.am): Verify that PTY_LIB is defined.
23941
23942         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
23943
23944 2010-03-21  Bruno Haible  <bruno@clisp.org>
23945
23946         Tests for module 'login_tty'.
23947         * modules/login_tty-tests: New file.
23948         * tests/test-login_tty.c: New file.
23949
23950         New module 'login_tty'.
23951         * lib/login_tty.c: New file.
23952         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
23953         * modules/login_tty: New file.
23954         * doc/glibc-functions/login_tty.texi: Mention the new module.
23955
23956 2010-03-21  Bruno Haible  <bruno@clisp.org>
23957
23958         login_tty: Documentation.
23959         * doc/glibc-functions/login_tty.texi: New file.
23960         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
23961
23962 2010-03-21  Bruno Haible  <bruno@clisp.org>
23963
23964         pty: Consistent macro naming.
23965         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
23966         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
23967         * modules/pty (configure.ac): Update.
23968
23969 2010-03-21  Bruno Haible  <bruno@clisp.org>
23970
23971         Tests for openpty: Make stricter.
23972         * tests/test-openpty.c (main): Add test of canonical processing and
23973         erase.
23974         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
23975
23976         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
23977         * lib/openpty.c (openpty): New replacement function.
23978         * lib/pty.in.h: Include <termios.h>.
23979         (openpty): Update declaration. Add comments.
23980         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
23981         is not declared, arrange to provide the replacement. Check for _getpty
23982         and posix_openpt.
23983         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
23984         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
23985         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
23986         * modules/pty-tests (test_pty_c___LDADD): New variable.
23987         * doc/glibc-functions/openpty.texi: More supported platforms.
23988
23989 2010-03-21  Bruno Haible  <bruno@clisp.org>
23990
23991         setenv: Tweaks.
23992         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
23993         the test program.
23994         * doc/posix-functions/setenv.texi: Update platforms list.
23995
23996 2010-03-21  Bruno Haible  <bruno@clisp.org>
23997
23998         New module 'unlockpt'.
23999         * lib/unlockpt.c: New file, from glibc with modifications.
24000         * m4/unlockpt.m4: New file.
24001         * modules/unlockpt: New file.
24002         * lib/stdlib.in.h (unlockpt): New declaration.
24003         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
24004         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
24005         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
24006         HAVE_UNLOCKPT.
24007         * doc/posix-functions/unlockpt.texi: Mention the new module.
24008         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
24009         * config/srclist.txt: Add unlockpt.c (commented).
24010
24011 2010-03-21  Jim Meyering  <meyering@redhat.com>
24012
24013         maint.mk: prohibit inclusion of "intprops.h" without use
24014         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
24015
24016 2010-03-21  Bruno Haible  <bruno@clisp.org>
24017
24018         New module 'grantpt'.
24019         * lib/grantpt.c: New file, from glibc with modifications.
24020         * m4/grantpt.m4: New file.
24021         * modules/grantpt: New file.
24022         * lib/stdlib.in.h (grantpt): New declaration.
24023         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
24024         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
24025         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
24026         HAVE_GRANTPT.
24027         * doc/posix-functions/grantpt.texi: Mention the new module.
24028         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
24029         * config/srclist.txt: Add grantpt.c (commented).
24030
24031 2010-03-21  Bruno Haible  <bruno@clisp.org>
24032
24033         New module 'pt_chown'.
24034         * lib/pt_chown.c: New file, from glibc with modifications.
24035         * lib/pty-private.h: New file, from glibc with modifications.
24036         * modules/pt_chown: New file.
24037         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
24038
24039 2010-03-21  Bruno Haible  <bruno@clisp.org>
24040
24041         Tests for module 'ptsname'.
24042         * modules/ptsname-tests: New file.
24043         * tests/test-ptsname.c: New file.
24044
24045         New module 'ptsname'.
24046         * lib/ptsname.c: New file, from glibc with modifications.
24047         * m4/ptsname.m4: New file.
24048         * modules/ptsname: New file.
24049         * lib/stdlib.in.h (ptsname): New declaration.
24050         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
24051         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
24052         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
24053         HAVE_PTSNAME.
24054         * doc/posix-functions/ptsname.texi: Mention the new module.
24055         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
24056         * config/srclist.txt: Add ptsname.c (commented).
24057
24058 2010-03-21  Bruno Haible  <bruno@clisp.org>
24059
24060         Tests for module 'ttyname_r'.
24061         * modules/ttyname_r-tests: New file.
24062         * tests/test-ttyname_r.c: New file.
24063
24064         New module 'ttyname_r'.
24065         * lib/ttyname_r.c: New file.
24066         * m4/ttyname_r.m4: New file.
24067         * modules/ttyname_r: New file.
24068         * lib/unistd.in.h (ttyname_r): New declaration.
24069         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
24070         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
24071         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
24072         HAVE_TTYNAME_R.
24073         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
24074         * doc/posix-functions/ttyname_r.texi: Mention the new module.
24075
24076 2010-03-20  Bruno Haible  <bruno@clisp.org>
24077
24078         signal: Undefine macro definitions in C++ mode.
24079         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
24080         sigfillset): Undefine macro definitions from the system header in C++
24081         mode.
24082         Reported by John W. Eaton <jwe@gnu.org>.
24083
24084 2010-03-20  Bruno Haible  <bruno@clisp.org>
24085
24086         Ensure no #include statements inside extern "C" { ... }.
24087         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
24088         contain #include statements.
24089         * lib/time.in.h: Likewise.
24090
24091 2010-03-20  Bruno Haible  <bruno@clisp.org>
24092
24093         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
24094         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
24095         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
24096         Reported by John W. Eaton <jwe@gnu.org>.
24097
24098 2010-03-20  Bruno Haible  <bruno@clisp.org>
24099
24100         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
24101         Reported by Jim Meyering.
24102
24103 2010-03-20  Bruno Haible  <bruno@clisp.org>
24104
24105         pipe: Set errno upon failure.
24106         * lib/pipe.h: Specify that when -1 is returned, errno is set.
24107         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
24108         errno value in error message.
24109
24110 2010-03-20  Bruno Haible  <bruno@clisp.org>
24111             Jim Meyering  <meyering@redhat.com>
24112
24113         lchown: Avoid "unused variable" warning.
24114         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
24115
24116 2010-03-20  Bruno Haible  <bruno@clisp.org>
24117
24118         Work around unlink() bug on MacOS X 10.5.6.
24119         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
24120         attempting to unlink a parent directory.
24121         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
24122         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
24123         activate for the replacement function.
24124         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
24125
24126 2010-03-20  Bruno Haible  <bruno@clisp.org>
24127
24128         Fix link errors on Solaris 8.
24129         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
24130         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
24131
24132 2010-03-19  Jim Meyering  <meyering@redhat.com>
24133
24134         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
24135         The _LIBC implementation of build_range_exp correctly honors the
24136         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
24137         However, the non-_LIBC implementation would ignore that syntax-bit
24138         flag and return REG_ERANGE unconditionally.
24139         This change makes it honor that flag.
24140         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
24141         Make two pointer parameters "const".
24142         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
24143         (parse_bracket_exp): Update caller.
24144
24145         regex.m4: correct the reversed range endpoint ([b-a]) test
24146         * m4/regex.m4: When requiring that [b-a] evoke failure,
24147         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
24148         test pass once again for x86-based systems.
24149
24150 2010-03-19  Bruno Haible  <bruno@clisp.org>
24151
24152         scandir: Fix link error on Solaris 8.
24153         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
24154         macros.
24155
24156 2010-03-19  Bruno Haible  <bruno@clisp.org>
24157
24158         getusershell: Fix documentation.
24159         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
24160         module.
24161         * doc/glibc-functions/setusershell.texi: Likewise.
24162
24163         getusershell: Provide declaration, missing on Solaris 9.
24164         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
24165         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
24166         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
24167         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
24168         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24169         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
24170         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
24171         HAVE_GETUSERSHELL.
24172         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
24173
24174 2010-03-19  Bruno Haible  <bruno@clisp.org>
24175
24176         wctype: Provide iswblank function.
24177         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
24178         exists and is fine.
24179         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
24180         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
24181         * tests/test-wctype.c (main): Re-enable the iswblank tests.
24182         * doc/posix-functions/iswblank.texi: Update.
24183
24184 2010-03-19  Bruno Haible  <bruno@clisp.org>
24185
24186         Tests of module 'pty' in C++ mode.
24187         * modules/pty-tests: New file.
24188         * tests/test-pty-c++.cc: New file.
24189         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
24190
24191 2010-03-19  Eric Blake  <eblake@redhat.com>
24192
24193         logb: fix documentation
24194         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
24195         1.5 declaration bug.
24196
24197         forkpty, openpty: prefer glibc's const-safe prototype
24198         * lib/forkpty.c (rpl_forkpty): New file.
24199         * lib/openpty.c (rpl_openpty): Likewise.
24200         * modules/forkpty (Files): Distribute it.
24201         * modules/openpty (Files): Likewise.
24202         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
24203         check...
24204         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
24205         replacement for for non-const BSD signature.
24206         * modules/pty (Makefile.am): Substitute witnesses.
24207         * lib/pty.in.h (forkpty, openpty): Declare replacements.
24208         * tests/test-forkpty.c: Update signature check.
24209         * tests/test-openpty.c: Likewise.
24210         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
24211         * doc/glibc-functions/openpty.texi (openpty): Likewise.
24212
24213         forkpty, openpty: split functions into new modules
24214         * modules/pty (Makefile.am): Substitute new witnesses.
24215         (Libraries): Move library detection...
24216         * modules/forkpty: ...into new module.
24217         * modules/openpty: Another new module.
24218         * modules/pty-tests: Rename and split...
24219         * modules/forkpty-tests: ...to this...
24220         * modules/openpty-tests: ...and this.
24221         * tests/test-pty.c: Rename and split...
24222         * tests/test-forkpty.c: ...to this...
24223         * tests/test-openpty.c: ...and this.
24224         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
24225         (gl_PTY): Split library searching...
24226         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
24227         (gl_FORKPTY, gl_OPENPTY): New macros.
24228         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
24229         * NEWS: Mention the split.
24230         * MODULES.html.sh (Misc): Document the modules.
24231         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
24232         * doc/glibc-functions/openpty.texi (openpty): Likewise.
24233
24234         pty: improve replacement header
24235         * lib/pty.in.h: New file.
24236         * modules/pty (Files): Ship it.
24237         (Makefile.am): Always build replacement.
24238         * m4/pty.m4: Rename...
24239         * m4/pty_h.m4: ...to this.
24240         (gl_PTY): Modernize setting of witness macros; update check of
24241         forkpty to take proper advantage of cache.
24242         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
24243
24244         getopt: avoid compiler warning
24245         * lib/getopt.c (attribute_hidden): Remove unused macro.
24246
24247 2010-03-18  Bruno Haible  <bruno@clisp.org>
24248
24249         Fix link errors on Solaris 8.
24250         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
24251         * modules/search-tests (test_search_c___LDADD): Likewise.
24252         * modules/signal-tests (test_signal_c___LDADD): Likewise.
24253         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
24254         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
24255         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
24256         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
24257         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
24258         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
24259
24260 2010-03-18  Bruno Haible  <bruno@clisp.org>
24261
24262         Fix bug introduced on 2010-03-14.
24263         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
24264         (gl_SPAWN_H): Require it.
24265         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
24266         Reported by Simon Josefsson.
24267
24268 2010-03-18  Bruno Haible  <bruno@clisp.org>
24269
24270         Fix typo introduced on 2009-12-31.
24271         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
24272         posix_spawn_file_actions_adddup2.
24273
24274 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
24275         and Eric Blake  <eblake@redhat.com>
24276
24277         test-vc-list-files-git: make more robust
24278         * tests/test-vc-list-files-git.sh: Unset problematic environment
24279         variables.  Chain commands together.
24280
24281 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
24282
24283         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
24284         `AC_CHECK_DECL' invocation.
24285
24286 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
24287
24288         * lib/inttostr.c (inttostr): Make sure the invocation of verify
24289         appears before executable statements. Suggested by Petr Sumbera
24290         <Petr.Sumbera@Sun.COM>.
24291
24292 2010-03-14  Bruno Haible  <bruno@clisp.org>
24293
24294         * tests/test-flock.c (test_exclusive): Comment out a test that causes
24295         portability problems. Instead use a simpler test.
24296         (main): Check that invalid arguments are rejected only on Linux.
24297
24298 2010-03-14  Bruno Haible  <bruno@clisp.org>
24299
24300         Fix bug introduced on 2009-12-31.
24301         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
24302         gl_PREREQ_SYS_H_WINSOCK2 always.
24303         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
24304         SYS_SOCKET_H variable.
24305         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
24306         Update comments.
24307         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
24308         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24309         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24310         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24311         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
24312
24313 2010-03-14  Bruno Haible  <bruno@clisp.org>
24314
24315         Fix values returned by sinl, cosl.
24316         * lib/trigl.h: Add specification comments.
24317         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
24318         that combines the values from the precomputed table with the values of
24319         the Chebyshev polynomials.
24320
24321 2010-03-14  Bruno Haible  <bruno@clisp.org>
24322
24323         Fix compilation error when modules 'posix_spawn[p]' are not used.
24324         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
24325         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
24326
24327 2010-03-14  Bruno Haible  <bruno@clisp.org>
24328
24329         Fix compilation error on mingw when module 'time_r' is not used.
24330         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
24331         is 1.
24332         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
24333         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
24334         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
24335         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
24336
24337 2010-03-14  Bruno Haible  <bruno@clisp.org>
24338
24339         Fix compilation error with Sun C.
24340         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
24341         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
24342         instead of GCC specific ULONG_LONG_MAX.
24343         * lib/xstrtoll.c: Likewise.
24344         * lib/xstrtoull.c: Likewise.
24345
24346 2010-03-13  Bruno Haible  <bruno@clisp.org>
24347
24348         Allow the user to disable C++ code and tests.
24349         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
24350         (gl_PROG_ANSI_CXX): Require it.
24351
24352 2010-03-13  Bruno Haible  <bruno@clisp.org>
24353
24354         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
24355         cases.
24356
24357 2010-03-13  Bruno Haible  <bruno@clisp.org>
24358
24359         Test that gnulib does not break the standard C++ headers.
24360         * tests/test-locale-c++2.cc: New file.
24361         * modules/locale-tests (Files): Add it.
24362         (Makefile.am): Compile it for test-locale-c++.
24363         * tests/test-math-c++2.cc: New file.
24364         * modules/math-tests (Files): Add it.
24365         (Makefile.am): Compile it for test-math-c++.
24366         * tests/test-signal-c++2.cc: New file.
24367         * modules/signal-tests (Files): Add it.
24368         (Makefile.am): Compile it for test-signal-c++.
24369         * tests/test-stdio-c++2.cc: New file.
24370         * modules/stdio-tests (Files): Add it.
24371         (Makefile.am): Compile it for test-stdio-c++.
24372         * tests/test-stdlib-c++2.cc: New file.
24373         * modules/stdlib-tests (Files): Add it.
24374         (Makefile.am): Compile it for test-stdlib-c++.
24375         * tests/test-string-c++2.cc: New file.
24376         * modules/string-tests (Files): Add it.
24377         (Makefile.am): Compile it for test-string-c++.
24378         * tests/test-time-c++2.cc: New file.
24379         * modules/time-tests (Files): Add it.
24380         (Makefile.am): Compile it for test-time-c++.
24381         Reported by John W. Eaton <jwe@gnu.org>.
24382
24383 2010-03-13  Bruno Haible  <bruno@clisp.org>
24384
24385         * gnulib-tool (func_usage): Clarify which options are available for
24386         --create-testdir and --create-megatestdir.
24387
24388 2010-03-13  Bruno Haible  <bruno@clisp.org>
24389
24390         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
24391         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
24392         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
24393         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24394         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
24395         when appropriate.
24396         Reported by Jim Meyering.
24397
24398 2010-03-12  Simon Josefsson  <simon@josefsson.org>
24399
24400         * gnulib-tool (func_import): Explain origin of code.
24401
24402 2010-03-12  Bruno Haible  <bruno@clisp.org>
24403
24404         Fix problem with automake's definition of CXXLINK.
24405         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
24406         Reported by Simon Josefsson and Ludovic Courtès.
24407
24408 2010-03-12  Bruno Haible  <bruno@clisp.org>
24409
24410         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
24411         stable releases.
24412
24413 2010-03-11  Bruno Haible  <bruno@clisp.org>
24414
24415         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
24416         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
24417         whether the system provides one variant or multiple variants of the
24418         function.
24419         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
24420         C++ compilers.
24421         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
24422         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
24423         Reported by Jim Meyering.
24424
24425 2010-03-09  Simon Josefsson  <simon@josefsson.org>
24426
24427         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
24428
24429 2010-03-08  Bruno Haible  <bruno@clisp.org>
24430
24431         gnulib-tool: Add support for --libtool in --create-testdir.
24432         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
24433         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
24434
24435 2010-03-08  Eric Blake  <eblake@redhat.com>
24436
24437         gnulib-tool.texi: mention possibility of git submodule
24438         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
24439         submodules.
24440         * doc/.gitignore: Ignore another generated file.
24441
24442 2010-03-08  Karl Berry  <karl@gnu.org>
24443
24444         * doc/gnulib-tool.texi (VCS Issues): Mention third option
24445         of committing gnulib files while skipping others.
24446
24447 2010-03-07  Bruno Haible  <bruno@clisp.org>
24448
24449         Tests of module 'wctype' in C++ mode.
24450         * tests/test-wctype-c++.cc: New file.
24451         * modules/wctype-tests (Files): Add it and tests/signature.h.
24452         (Depends-on): Add ansi-c++-opt.
24453         (Makefile.am): Arrange to compile and run test-wctype-c++.
24454
24455         Tests of module 'wchar' in C++ mode.
24456         * tests/test-wchar-c++.cc: New file.
24457         * modules/wchar-tests (Files): Add it and tests/signature.h.
24458         (Depends-on): Add ansi-c++-opt.
24459         (Makefile.am): Arrange to compile and run test-wchar-c++.
24460         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
24461         gl_MODULE_INDICATOR.
24462
24463         Tests of module 'unistd' in C++ mode.
24464         * tests/test-unistd-c++.cc: New file.
24465         * modules/unistd-tests (Files): Add it and tests/signature.h.
24466         (Depends-on): Add ansi-c++-opt.
24467         (Makefile.am): Arrange to compile and run test-unistd-c++.
24468         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
24469         gl_MODULE_INDICATOR.
24470
24471         Tests of module 'time' in C++ mode.
24472         * tests/test-time-c++.cc: New file.
24473         * modules/time-tests (Files): Add it and tests/signature.h.
24474         (Depends-on): Add ansi-c++-opt.
24475         (Makefile.am): Arrange to compile and run test-time-c++.
24476         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
24477
24478         Tests of module 'sys_time' in C++ mode.
24479         * tests/test-sys_time-c++.cc: New file.
24480         * modules/sys_time-tests (Files): Add it and tests/signature.h.
24481         (Depends-on): Add ansi-c++-opt.
24482         (Makefile.am): Arrange to compile and run test-sys_time-c++.
24483         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
24484         gl_MODULE_INDICATOR.
24485
24486         Tests of module 'sys_stat' in C++ mode.
24487         * tests/test-sys_stat-c++.cc: New file.
24488         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
24489         (Depends-on): Add ansi-c++-opt.
24490         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
24491         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
24492         gl_MODULE_INDICATOR.
24493
24494         Tests of module 'sys_socket' in C++ mode.
24495         * tests/test-sys_socket-c++.cc: New file.
24496         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
24497         (Depends-on): Add ansi-c++-opt.
24498         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
24499         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
24500         gl_MODULE_INDICATOR.
24501
24502         Tests of module 'sys_select' in C++ mode.
24503         * tests/test-sys_select-c++.cc: New file.
24504         * modules/sys_select-tests (Files): Add it and tests/signature.h.
24505         (Depends-on): Add ansi-c++-opt.
24506         (Makefile.am): Arrange to compile and run test-sys_select-c++.
24507         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
24508         gl_MODULE_INDICATOR.
24509
24510         Tests of module 'sys_ioctl' in C++ mode.
24511         * tests/test-sys_ioctl-c++.cc: New file.
24512         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
24513         (Depends-on): Add ansi-c++-opt.
24514         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
24515         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
24516         gl_MODULE_INDICATOR.
24517
24518         Tests of module 'string' in C++ mode.
24519         * tests/test-string-c++.cc: New file.
24520         * modules/string-tests (Files): Add it and tests/signature.h.
24521         (Depends-on): Add ansi-c++-opt.
24522         (Makefile.am): Arrange to compile and run test-string-c++.
24523         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
24524         gl_MODULE_INDICATOR.
24525
24526         Tests of module 'stdlib' in C++ mode.
24527         * tests/test-stdlib-c++.cc: New file.
24528         * modules/stdlib-tests (Files): Add it and tests/signature.h.
24529         (Depends-on): Add ansi-c++-opt.
24530         (Makefile.am): Arrange to compile and run test-stdlib-c++.
24531         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
24532         gl_MODULE_INDICATOR.
24533
24534         Tests of module 'stdio' in C++ mode.
24535         * tests/test-stdio-c++.cc: New file.
24536         * modules/stdio-tests (Files): Add it and tests/signature.h.
24537         (Depends-on): Add ansi-c++-opt.
24538         (Makefile.am): Arrange to compile and run test-stdio-c++.
24539         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
24540         gl_MODULE_INDICATOR.
24541
24542         Tests of module 'spawn' in C++ mode.
24543         * tests/test-spawn-c++.cc: New file.
24544         * modules/spawn-tests (Files): Add it and tests/signature.h.
24545         (Depends-on): Add ansi-c++-opt.
24546         (Makefile.am): Arrange to compile and run test-spawn-c++.
24547         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
24548         gl_MODULE_INDICATOR.
24549
24550         Tests of module 'signal' in C++ mode.
24551         * tests/test-signal-c++.cc: New file.
24552         * modules/signal-tests (Files): Add it and tests/signature.h.
24553         (Depends-on): Add ansi-c++-opt.
24554         (Makefile.am): Arrange to compile and run test-signal-c++.
24555         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
24556         gl_MODULE_INDICATOR.
24557
24558         Tests of module 'search' in C++ mode.
24559         * tests/test-search-c++.cc: New file.
24560         * modules/search-tests (Files): Add it and tests/signature.h.
24561         (Depends-on): Add ansi-c++-opt.
24562         (Makefile.am): Arrange to compile and run test-search-c++.
24563         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
24564         gl_MODULE_INDICATOR.
24565
24566         Tests of module 'math' in C++ mode.
24567         * tests/test-math-c++.cc: New file.
24568         * modules/math-tests (Files): Add it and tests/signature.h.
24569         (Depends-on): Add ansi-c++-opt.
24570         (Makefile.am): Arrange to compile and run test-math-c++.
24571         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
24572
24573         Tests of module 'locale' in C++ mode.
24574         * tests/test-locale-c++.cc: New file.
24575         * modules/locale-tests (Files): Add it and tests/signature.h.
24576         (Depends-on): Add ansi-c++-opt.
24577         (Makefile.am): Arrange to compile and run test-locale-c++.
24578         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
24579         gl_MODULE_INDICATOR.
24580
24581         Tests of module 'langinfo' in C++ mode.
24582         * tests/test-langinfo-c++.cc: New file.
24583         * modules/langinfo-tests (Files): Add it and tests/signature.h.
24584         (Depends-on): Add ansi-c++-opt.
24585         (Makefile.am): Arrange to compile and run test-langinfo-c++.
24586         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
24587         gl_MODULE_INDICATOR.
24588
24589         Tests of module 'iconv-h' in C++ mode.
24590         * tests/test-iconv-h-c++.cc: New file.
24591         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
24592         (Depends-on): Add ansi-c++-opt.
24593         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
24594
24595         Tests of module 'glob' in C++ mode.
24596         * tests/test-glob-c++.cc: New file.
24597         * modules/glob-tests (Files): Add it.
24598         (Depends-on): Add ansi-c++-opt.
24599         (Makefile.am): Arrange to compile and run test-glob-c++.
24600
24601         Tests of module 'fcntl-h' in C++ mode.
24602         * tests/test-fcntl-h-c++.cc: New file.
24603         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
24604         (Depends-on): Add ansi-c++-opt.
24605         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
24606         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
24607         gl_MODULE_INDICATOR.
24608
24609         Tests of module 'dirent' in C++ mode.
24610         * tests/test-dirent-c++.cc: New file.
24611         * modules/dirent-tests (Files): Add it and tests/signature.h.
24612         (Depends-on): Add ansi-c++-opt.
24613         (Makefile.am): Arrange to compile and run test-dirent-c++.
24614         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
24615         gl_MODULE_INDICATOR.
24616
24617         New module 'ansi-c++-opt'.
24618         * modules/ansi-c++-opt: New file.
24619         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
24620
24621         Document C++ namespace mode.
24622         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
24623
24624         wctype: Avoid #define replacements in C++ mode.
24625         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
24626         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
24627         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
24628         In C++, define a namespaced alias symbol.
24629         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
24630         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
24631         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
24632         rule.
24633
24634         wchar: Avoid #define replacements in C++ mode.
24635         * lib/wchar.in.h: Include c++defs.h.
24636         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
24637         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
24638         symbol.
24639         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
24640         * modules/wchar (Depends-on): Add c++defs.
24641         (Makefile.am): Update wchar.h rule.
24642
24643         unistd: Avoid #define replacements in C++ mode.
24644         * lib/unistd.in.h: Include c++defs.h.
24645         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
24646         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
24647         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
24648         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
24649         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
24650         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
24651         symbol.
24652         (environ): Update.
24653         * modules/unistd (Depends-on): Add c++defs.
24654         (Makefile.am): Update unistd.h rule.
24655
24656         time: Avoid #define replacements in C++ mode.
24657         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
24658         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
24659         define a namespaced alias symbol.
24660         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
24661         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
24662         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
24663         * modules/time (Depends-on): Add c++defs, warn-on-use.
24664         (Makefile.am): Update time.h rule.
24665         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
24666         * modules/nanosleep (configure.ac): Likewise.
24667         * modules/strptime (configure.ac): Likewise.
24668         * modules/timegm (configure.ac): Likewise.
24669
24670         sys_time: Avoid #define replacements in C++ mode.
24671         * lib/sys_time.in.h: Include c++defs.h.
24672         (gettimeofday): In C++, define a namespaced alias symbol.
24673         * modules/sys_time (Depends-on): Add c++defs.
24674         (Makefile.am): Update sys/time.h rule.
24675
24676         sys_stat: Avoid #define replacements in C++ mode.
24677         * lib/sys_stat.in.h: Include c++defs.h.
24678         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
24679         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
24680         namespaced alias symbol.
24681         In C++, define a namespaced alias symbol.
24682         * modules/sys_stat (Depends-on): Add c++defs.
24683         (Makefile.am): Update sys/stat.h rule.
24684
24685         sys_socket: Avoid #define replacements in C++ mode.
24686         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
24687         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
24688         definitions also when the system has a <sys/socket.h>.
24689         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
24690         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
24691         In C++, define a namespaced alias symbol.
24692         * modules/sys_socket (Depends-on): Add c++defs.
24693         (Makefile.am): Update sys/socket.h rule.
24694
24695         sys_select: Avoid #define replacements in C++ mode.
24696         * lib/sys_select.in.h: Include c++defs.h. Enable the function
24697         definitions also when the system has a <sys/select.h>.
24698         (select): In C++, define a namespaced alias symbol.
24699         * modules/sys_select (Depends-on): Add c++defs.
24700         (Makefile.am): Update sys/select.h rule.
24701
24702         sys_ioctl: Avoid #define replacements in C++ mode.
24703         * lib/sys_ioctl.in.h: Include c++defs.h.
24704         (ioctl): In C++, define a namespaced alias symbol.
24705         * modules/sys_ioctl (Depends-on): Add c++defs.
24706         (Makefile.am): Update sys/ioctl.h rule.
24707
24708         string: Avoid #define replacements in C++ mode.
24709         * lib/string.in.h: Include c++defs.h.
24710         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
24711         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
24712         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
24713         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
24714         strsignal, strverscmp): In C++, define a namespaced alias symbol.
24715         * modules/string (Depends-on): Add c++defs.
24716         (Makefile.am): Update string.h rule.
24717
24718         stdlib: Avoid #define replacements in C++ mode.
24719         * lib/stdlib.in.h: Include c++defs.h.
24720         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
24721         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
24722         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
24723         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
24724         symbol.
24725         * modules/stdlib (Depends-on): Add c++defs.
24726         (Makefile.am): Update stdlib.h rule.
24727
24728         stdio: Avoid #define replacements in C++ mode.
24729         * lib/stdio.in.h: Include c++defs.h.
24730         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
24731         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
24732         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
24733         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
24734         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
24735         namespaced alias symbol.
24736         * modules/stdio (Depends-on): Add c++defs.
24737         (Makefile.am): Update stdio.h rule.
24738
24739         spawn: Avoid #define replacements in C++ mode.
24740         * lib/spawn.in.h: Include c++defs.h.
24741         (posix_spawn, posix_spawnp, posix_spawnattr_init,
24742         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
24743         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
24744         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
24745         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
24746         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
24747         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
24748         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
24749         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
24750         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
24751         In C++, define a namespaced alias symbol.
24752         * modules/spawn (Depends-on): Add c++defs.
24753         (Makefile.am): Update spawn.h rule.
24754
24755         signal: Avoid #define replacements in C++ mode.
24756         * lib/signal.in.h: Include c++defs.h.
24757         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
24758         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
24759         namespaced alias symbol.
24760         * modules/signal (Depends-on): Add c++defs.
24761         (Makefile.am): Update signal.h rule.
24762
24763         search: Avoid #define replacements in C++ mode.
24764         * lib/search.in.h: Include c++defs.h.
24765         (_gl_search_compar_fn, _gl_search_action_fn): New types.
24766         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
24767         symbol.
24768         * modules/search (Depends-on): Add c++defs.
24769         (Makefile.am): Update search.h rule.
24770
24771         math: Avoid #define replacements in C++ mode.
24772         * lib/math.in.h: Include c++defs.h.
24773         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
24774         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
24775         trunc, truncl): In C++, define a namespaced alias symbol.
24776         * modules/math (Depends-on): Add c++defs.
24777         (Makefile.am): Update math.h rule.
24778
24779         locale: Avoid #define replacements in C++ mode.
24780         * lib/locale.in.h: Include c++defs.h.
24781         (duplocale): In C++, define a namespaced alias symbol.
24782         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
24783         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
24784         * modules/locale (Depends-on): Add c++defs.
24785         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
24786
24787         langinfo: Avoid #define replacements in C++ mode.
24788         * lib/langinfo.in.h: Include c++defs.h.
24789         (nl_langinfo): In C++, define a namespaced alias symbol.
24790         * modules/langinfo (Depends-on): Add c++defs.
24791         (Makefile.am): Update langinfo.h rule.
24792
24793         iconv-h: Avoid #define replacements in C++ mode.
24794         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
24795         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
24796         symbol.
24797         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
24798         whenever iconv is present.
24799         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
24800         (Makefile.am): Update iconv.h rule.
24801
24802         glob: Avoid #define replacements in C++ mode.
24803         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
24804         (_gl_glob_errfunc_fn): New type.
24805         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
24806         symbol.
24807         * modules/glob (Depends-on): Add c++defs, warn-on-use.
24808         (Makefile.am): Update glob.h rule.
24809
24810         fcntl-h: Avoid #define replacements in C++ mode.
24811         * lib/fcntl.in.h: Include c++defs.h.
24812         (fcntl, open, openat): In C++, define a namespaced alias symbol.
24813         * modules/fcntl-h (Depends-on): Add c++defs.
24814         (Makefile.am): Update fcntl.h rule.
24815
24816         dirent: Avoid #define replacements in C++ mode.
24817         * lib/dirent.in.h: Include c++defs.h.
24818         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
24819         namespaced alias symbol.
24820         (dirfd): Update declaration.
24821         * modules/dirent (Depends-on): Add c++defs.
24822         (Makefile.am): Update dirent.h rule.
24823
24824         ctype: Make it usable in C++ code.
24825         * lib/ctype.in.h: Include c++defs.h.
24826         (isblank): Declare as extern "C".
24827         * modules/ctype (Depends-on): Add c++defs.
24828         (Makefile.am): Update ctype.h rule.
24829
24830         New module 'c++defs'.
24831         * modules/c++defs: New file.
24832         * build-aux/c++defs.h: New file.
24833         Reported by John W. Eaton <jwe@gnu.org>.
24834
24835 2010-03-07  Bruno Haible  <bruno@clisp.org>
24836
24837         logb: Provide missing declaration for Cygwin.
24838         * lib/math.in.h (logb): New declaration.
24839         * m4/logb.m4: New file.
24840         * modules/logb (Files): Add m4/logb.m4.
24841         (Depends-on): Add math.
24842         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
24843         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
24844         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
24845         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
24846         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
24847
24848 2010-03-07  Bruno Haible  <bruno@clisp.org>
24849
24850         Fix test-cond link error.
24851         * tests/test-cond.c: Include <stdio.h>.
24852
24853 2010-03-07  Bruno Haible  <bruno@clisp.org>
24854
24855         Fix test-dirent-safer link error.
24856         * modules/dirent-safer-tests (Makefile.am): Define
24857         test_dirent_safer_LDADD.
24858
24859 2010-03-07  Bruno Haible  <bruno@clisp.org>
24860
24861         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
24862         among default module list.
24863
24864 2010-03-07  Bruno Haible  <bruno@clisp.org>
24865
24866         Fix link error on platforms with GNU libiconv.
24867         * modules/unistr/u8-strcoll-tests (Makefile): Define
24868         test_u8_strcoll_LDADD.
24869         * modules/unistr/u16-strcoll-tests (Makefile): Define
24870         test_u16_strcoll_LDADD.
24871         * modules/unistr/u32-strcoll-tests (Makefile): Define
24872         test_u32_strcoll_LDADD.
24873
24874 2010-03-07  Bruno Haible  <bruno@clisp.org>
24875
24876         Use POSIX declarations for socket functions.
24877         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
24878         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
24879         rpl_sendto): Change declaration to match POSIX.
24880         * lib/connect.c (rpl_connect): Likewise.
24881         * lib/accept.c (rpl_accept): Likewise.
24882         * lib/bind.c (rpl_bind): Likewise.
24883         * lib/getpeername.c (rpl_getpeername): Likewise.
24884         * lib/getsockname.c (rpl_getsockname): Likewise.
24885         * lib/recv.c (rpl_recv): Likewise.
24886         * lib/send.c (rpl_send): Likewise.
24887         * lib/recvfrom.c (rpl_recvfrom): Likewise.
24888         * lib/sendto.c (rpl_sendto): Likewise.
24889
24890 2010-03-06  Bruno Haible  <bruno@clisp.org>
24891
24892         Clarify access, euidaccess, faccessat.
24893         * doc/posix-functions/faccessat.texi: Mention security problem under
24894         "Other problems", not "Portability problems".
24895         * doc/posix-functions/access.texi: Likewise. Mention a related security
24896         problem.
24897         * doc/glibc-functions/euidaccess.texi: Mention security problems.
24898         * lib/euidaccess.c: Add comments about platforms.
24899         * lib/unistd.in.h (access, euidaccess): Add warnings.
24900
24901 2010-03-07  Bruno Haible  <bruno@clisp.org>
24902
24903         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
24904         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
24905         (POSIX_SPAWN_SETSCHEDULER): Likewise.
24906         (POSIX_SPAWN_USEVFORK): Define in a way that works when
24907         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
24908         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
24909         declare when POSIX_SPAWN_SETSCHEDULER is zero.
24910         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
24911         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
24912         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
24913         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
24914         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
24915         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
24916         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
24917         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
24918         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
24919         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
24920         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
24921         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
24922         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
24923         Likewise.
24924         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
24925         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
24926         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
24927         Likewise.
24928         * tests/test-spawn.c (main): Make it work when
24929         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
24930
24931 2010-03-07  Bruno Haible  <bruno@clisp.org>
24932
24933         Fix incorrect Makefile.am generation in German locale.
24934         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24935         Execute sed command with character range in C locale.
24936
24937 2010-03-06  Bruno Haible  <bruno@clisp.org>
24938
24939         Tests for module 'iconv-h'.
24940         * modules/iconv-h-tests: New file.
24941         * tests/test-iconv-h.c: New file.
24942
24943         New module 'iconv-h'.
24944         * modules/iconv-h: New file.
24945         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
24946         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
24947         (configure.ac): Remove gl_ICONV_H.
24948         (Makefile.am): Remove rule for iconv.h.
24949
24950 2010-03-06  Bruno Haible  <bruno@clisp.org>
24951
24952         More consistent naming of *.m4 files.
24953         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
24954         * modules/wctype (Files): Update.
24955
24956         More consistent naming of *.m4 files.
24957         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
24958         * modules/wchar (Files): Update.
24959
24960 2010-03-06  Jim Meyering  <meyering@redhat.com>
24961
24962         euidaccess: relax license to LGPLv2+
24963         * modules/euidaccess (License): Relax to LGPLv2+.
24964
24965 2010-03-06  Bruno Haible  <bruno@clisp.org>
24966
24967         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
24968         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
24969         (Makefile.am): Augment lib_SOURCES instead.
24970
24971 2010-03-04  Jim Meyering  <meyering@redhat.com>
24972
24973         utime: remove obsolete module
24974         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
24975         unnecessary for years, and has been marked as obsolete for 10 months.
24976         * modules/utime: Remove file.
24977         * lib/utime.c: Remove file.
24978         * m4/utime.m4: Remove file.
24979         * m4/utimes-null.m4: Remove file.
24980         * doc/posix-functions/utime.texi (utime): Remove reference to
24981         the module.  Move the sole "fixed by gnulib" item into the
24982         "problems not fixed by Gnulib" list.
24983         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
24984
24985 2010-03-05  Simon Josefsson  <simon@josefsson.org>
24986
24987         * modules/exit (License): Relax license to LGPLv2+.
24988         (Status): Mark as obsolete.
24989         * NEWS: Mention deprecated 'exit' module.
24990         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
24991         of now obsolete 'exit'.
24992
24993 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24994
24995         fts-lgpl: remove unused module
24996         * modules/fts-lgpl: Remove.
24997         * MODULES.html.sh (func_all_modules): Adjust.
24998         * check-module (find_included_lib_files): Adjust.
24999         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
25000
25001 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
25002
25003         copy-acl: enhance Solaris ACL error handling
25004         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
25005         * lib/set-mode-acl.c (qset_acl): Likewise.
25006
25007 2010-03-02  Bruno Haible  <bruno@clisp.org>
25008
25009         spawn: Don't override the system defined values on FreeBSD 8.
25010         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
25011         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
25012         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
25013         if HAVE_POSIX_SPAWN is 1.
25014         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
25015
25016 2010-03-01  Bruno Haible  <bruno@clisp.org>
25017
25018         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
25019         regarding Automake.
25020
25021 2010-02-25  Bruno Haible  <bruno@clisp.org>
25022
25023         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
25024         * gnulib-tool: Define 'echo' as a function only before the ksh alias
25025         setting, not afterwards.
25026         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
25027
25028 2010-02-24  Eric Blake  <eblake@redhat.com>
25029
25030         bootstrap, git-version-gen: use timestamp
25031         * build-aux/git-version-gen (scriptversion): Force UTC.
25032         * build-aux/bootstrap (scriptversion): New variable.
25033
25034         bootstrap: allow older git
25035         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
25036         older than 1.6.4.  Requested by the libvirt project.
25037
25038 2010-02-23  Eric Blake  <eblake@redhat.com>
25039
25040         warn-on-use: work with old autoconf
25041         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
25042         AS_VAR semantics of autoconf 2.60.
25043         Reported by Bruno Haible.
25044
25045         bootstrap: improve some comments
25046         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
25047         clarification comments.
25048
25049         gettimeofday: provide correct function
25050         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
25051         when replacement is declared, otherwise provide gettimeofday.
25052         Reported by Michael Goffioul.
25053
25054 2010-02-23  Jim Meyering  <meyering@redhat.com>
25055
25056         lib-ignore: relax license to "unlimited", not LGPLv2+
25057         * modules/lib-ignore (License): Relax to "unlimited".
25058
25059 2010-02-23  Jim Meyering  <meyering@redhat.com>
25060
25061         lib-ignore: relax license to LGPLv2+
25062         * modules/lib-ignore (License): Relax to LGPLv2+.
25063
25064 2010-02-22  Eric Blake  <eblake@redhat.com>
25065
25066         lseek: avoid bash 3.2 broken pipe bug
25067         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
25068         warning from bash 3.2.
25069         Reported by Ben Pfaff, with analysis from Bruno Haible.
25070
25071         bootstrap: support non-FSF copyright holder
25072         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
25073         bootstrap.conf override of COPYRIGHT_HOLDER.
25074         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
25075
25076         bootstrap: interoperate with gettext 0.14.1
25077         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
25078
25079         bootstrap: allow for alternate submodule location
25080         * build-aux/bootstrap (gnulib_path): New variable; use instead of
25081         hardcoding submodule location.
25082         (gnulib_mk): Allow direct use of Makefile.am.
25083
25084         bootstrap: use GNULIB_SRCDIR to reduce disk usage
25085         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
25086         rather than reconfiguring where the submodule points.
25087
25088         gettimeofday: restore support for platforms that lack function
25089         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
25090         replacement if function is missing.
25091         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
25092         * modules/sys_time (Makefile.am): Substitute it.
25093         * lib/sys_time.in.h (gettimeofday): Check it.
25094         Reported by Michael Goffioul.
25095
25096 2010-02-21  Bruno Haible  <bruno@clisp.org>
25097
25098         * lib/stdio.in.h (obstack_printf): Fix typo.
25099
25100 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
25101
25102         vc-list-files: use bzr ls's -R option
25103         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
25104         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
25105
25106 2010-02-21  Jim Meyering  <meyering@redhat.com>
25107
25108         init.sh: fix EXEEXT shims to work also for names like test-prog
25109         * tests/init.sh: Re-exec a better shell, when needed.
25110         If the current shell lacks support for posix $(...), an init.sh-using
25111         test will now try to find a shell that supports that.  If EXEEXT is
25112         nonempty, we also require support for hyphen-in-alias-name and shell
25113         substitutions like ${var#glob}.  Failure to find such a shell results
25114         in a skipped test.
25115
25116 2010-02-21  Bruno Haible  <bruno@clisp.org>
25117
25118         Really work around around "broken pipe" error message from bash 3.2.
25119         * gnulib-tool (func_reset_sigpipe): Remove function.
25120         (echo): In bash 3.2, define to a function that uses printf.
25121         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
25122
25123 2010-02-20  Bruno Haible  <bruno@clisp.org>
25124
25125         Restore support for automake 1.9.6 with autoconf 2.61.
25126         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
25127         Reported by James Youngman <jay@gnu.org>.
25128
25129 2010-02-20  Bruno Haible  <bruno@clisp.org>
25130
25131         Improve *printf warning condition.
25132         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
25133         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
25134         and the function is overridden due to SIGPIPE emulation.
25135
25136 2010-02-20  Bruno Haible  <bruno@clisp.org>
25137
25138         * lib/stdio.in.h: Tweak comments.
25139
25140 2010-02-19  Bruno Haible  <bruno@clisp.org>
25141
25142         Make it easier to find modules. New gnulib-tool option '--find'.
25143         * gnulib-tool: New option --find.
25144         (func_usage): Document it.
25145         (func_sanitize_modulelist): New function, extracted from
25146         func_all_modules.
25147         (func_all_modules): Invoke it.
25148         * doc/gnulib-tool.texi (Which modules?): New node.
25149
25150 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
25151
25152         * lib/sys_select.in.h: Provide select replacement even if
25153         sys/select.h exists on a system, for Interix.
25154
25155 2010-02-18  Jim Meyering  <meyering@redhat.com>
25156
25157         init.sh: don't use $(...) just yet
25158         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
25159         to accommodate e.g., Solaris' /bin/sh.
25160
25161 2010-02-17  Bruno Haible  <bruno@clisp.org>
25162
25163         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
25164         Reported by Ludovic Courtès <ludo@gnu.org>.
25165
25166 2010-02-16  Simon Josefsson  <simon@josefsson.org>
25167
25168         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
25169         linking with -lintl.
25170
25171 2010-02-17  Simon Josefsson  <simon@josefsson.org>
25172
25173         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
25174         if not provided by the system's netdb.h.  Reported by
25175         ludo@gnu.org (Ludovic Courtès).
25176
25177 2010-02-15  Jim Meyering  <meyering@redhat.com>
25178
25179         init.sh: improve portability and efficiency
25180         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
25181         "dummy" in a for loop.
25182         Use '!', not '^' to select the complement of a character set used
25183         in a "case" statement.
25184         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
25185         Suggestions from Eric Blake.
25186
25187         init.sh: automatically accommodate programs with the .exe suffix
25188         Automatically arrange for an invocation of "prog" to execute the
25189         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
25190         may use the simpler "prog", yet still work when built on a system
25191         that requires specifying the added suffix.
25192         Do this by constructing a function named "prog" that invokes
25193         "prog.exe" for each .exe file in selected directories.
25194         * tests/init.sh (find_exe_basenames_): New function.
25195         (create_exe_shim_functions_): New function.
25196         (path_prepend_): Use it.
25197
25198         maint.mk: mark syntax-check sc_*.m rules as .PHONY
25199         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
25200         "make -t syntax-check" doesn't create a ton of sc_*.m files.
25201
25202 2010-02-14  Jim Meyering  <meyering@redhat.com>
25203
25204         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
25205         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
25206         (sc_prohibit_hash_pjw_without_use): New rule.
25207
25208         maint.mk: allow the default upload destination dir to be overridden
25209         * top/maint.mk (upload_dest_dir_): Define with a default that
25210         preserves the status quo.
25211         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
25212         Reported by Peter Simons.
25213
25214         maint.mk: prohibit inclusion of "hash.h" without_use
25215         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
25216
25217 2010-02-10  Jim Meyering  <meyering@redhat.com>
25218
25219         maint.mk: prohibit inclusion of "ignore-value.h" without_use
25220         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
25221
25222 2010-02-09  Eric Blake  <ebb9@byu.net>
25223         and Bruno Haible  <bruno@clisp.org>
25224
25225         obstack-printf-posix: ensure declaration
25226         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
25227         extracted from gl_FUNC_OBSTACK_PRINTF.
25228         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
25229         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
25230         Likewise.
25231         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
25232         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
25233         0.
25234
25235 2010-02-08  Bruno Haible  <bruno@clisp.org>
25236
25237         gnulib-tool: Fix typo in 2010-02-07 commit.
25238         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
25239         Reported by Eric Blake.
25240
25241 2010-02-07  Bruno Haible  <bruno@clisp.org>
25242
25243         gnulib-tool: Fix up caching patches.
25244         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
25245         option --no-cache. Use associative arrays when supported by the shell.
25246         (sed_comments): New variable.
25247         (modcache): Renamed from do_cache.
25248         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
25249         abbreviate unnecessarily.
25250         (have_associative): New variable.
25251         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
25252         way also for ksh and zsh.
25253         (func_init_sed_convert_to_cache_statements): New function, extracted
25254         from func_cache_lookup_module. Add support for associative arrays.
25255         Don't set the c_MODULE_cached variable here. Ignore all lines before
25256         the first field header. Remove only the final newline, not all trailing
25257         newlines. Support empty fields correctly. Limit the use of 'eval' to
25258         assignments.
25259         (func_get_description, func_get_status, func_get_notice,
25260         func_get_applicability, func_get_filelist, func_get_dependencies,
25261         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
25262         func_get_automake_snippet, func_get_include_directive,
25263         func_get_link_directive, func_get_license, func_get_maintainer):
25264         Update documentation. List the unoptimized code first. Add support for
25265         associative arrays. Limit the use of 'eval' to assignments.
25266         (func_get_applicability): Undo stylistic pessimisations.
25267         (func_get_automake_snippet, func_get_include_directive): Reduce code
25268         duplication.
25269         (func_modules_transitive_closure, func_modules_add_dummy,
25270         func_modules_notice, func_modules_to_filelist, func_add_file,
25271         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
25272         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
25273         func_create_testdir, func_create_megatestdir): Update documentation.
25274
25275 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25276
25277         * gnulib-tool (func_cache_lookup_module): Store the module name
25278         belonging to the cache variable; error out if two different
25279         module names map to the same cache variable name.
25280
25281 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25282
25283         gnulib-tool: Make caching optional.
25284         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
25285         Update matching short versions of --no-changelog.
25286         (func_usage): Update.
25287         (sed_extract_cache_prog): Renamed from ...
25288         (sed_extract_prog): ... this; revert to old extraction script.
25289         (func_get_description, func_get_status)
25290         (func_get_notice, func_get_applicability, func_get_filelist)
25291         (func_get_dependencies, func_get_autoconf_early_snippet)
25292         (func_get_autoconf_snippet, func_get_automake_snippet)
25293         (func_get_include_directive, func_get_link_directive)
25294         (func_get_license, func_get_maintainer): If $do_cache is false,
25295         use old, non-caching extraction scripts.
25296         Suggestion by Bruno Haible.
25297
25298 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25299
25300         gnulib-tool: cache module metainformation.
25301         * gnulib-tool (sed_extract_prog): Match newline before each
25302         header, and rewrite header to a shell variable suffix.
25303         (func_cache_var, func_cache_lookup_module): New functions,
25304         to turn a module name into a cache variable prefix, and to
25305         look up and cache module metainformation.
25306         (func_get_description, func_get_status)
25307         (func_get_notice, func_get_applicability, func_get_filelist)
25308         (func_get_dependencies, func_get_autoconf_early_snippet)
25309         (func_get_autoconf_snippet, func_get_automake_snippet)
25310         (func_get_include_directive, func_get_link_directive)
25311         (func_get_license, func_get_maintainer): Use
25312         func_cache_lookup_module.
25313
25314 2010-02-07  Bruno Haible  <bruno@clisp.org>
25315
25316         fnctl: Fix missing dependency.
25317         * modules/fcntl (Depends-on): Add getdtablesize.
25318         Reported by John W. Eaton <jwe@gnu.org>.
25319
25320 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
25321
25322         Argp: fix recognition of short alias options.
25323
25324         * lib/argp-parse.c (convert_options): Fix improper use of
25325         `|' between character values.
25326         * tests/test-argp.c (group1_option): New alias option
25327         --read (-r).
25328         (group1_parser): Special handling for 'r'.
25329         (test15): New test case.
25330         (test_fun): Add test15.
25331         * tests/test-argp-2.sh: Update expected --help and --usage
25332         outputs.
25333
25334 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
25335
25336         * tests/test-argp.c: Fix indentation.
25337
25338 2010-02-04  Eric Blake  <ebb9@byu.net>
25339
25340         gettimeofday: expose type of second argument
25341         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
25342         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
25343         * tests/test-gettimeofday.c: Use it to silence warning.
25344         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
25345         the issue.
25346
25347 2010-02-03  Jim Meyering  <meyering@redhat.com>
25348
25349         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
25350         * lib/regcomp.c (TYPE_SIGNED): Define.
25351         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
25352
25353         regcomp.c: avoid a new -Wshadow warning
25354         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
25355
25356 2010-02-01  Jim Meyering  <meyering@redhat.com>
25357
25358         removing useless parentheses in cpp #define directives
25359         For motivation, see commit c0221df4, "define STREQ(a,b)
25360         consistently, removing useless parentheses"
25361         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
25362         * lib/mountlist.c (MNT_IGNORE): Likewise.
25363         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
25364
25365 2010-02-01  Eric Blake  <ebb9@byu.net>
25366
25367         sys_time: use link-warning
25368         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
25369         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
25370         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
25371         * modules/sys_time (Depends-on): Add warn-on-use.
25372         (Makefile.am): Always build replacement.
25373         (configure.ac): Update substitutions.
25374         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
25375         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
25376         bother with SYS_TIME_H.
25377         * modules/gettimeofday (configure.ac): Declare indicator.
25378         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
25379         in use.
25380
25381         closein-tests: silence compiler warning
25382         * tests/test-closein.c (main): Ignore fread result.
25383         * modules/closein-tests (Depends-on): Add ignore-value.
25384
25385         tests: silence warning about system return
25386         * tests/test-areadlink-with-size.c (main): Ignore system result.
25387         * tests/test-areadlink.c (main): Likewise.
25388         * tests/test-areadlinkat-with-size.c (main): Likewise.
25389         * tests/test-areadlinkat.c (main): Likewise.
25390         * tests/test-canonicalize-lgpl.c (main): Likewise.
25391         * tests/test-canonicalize.c (main): Likewise.
25392         * tests/test-chown.c (main): Likewise.
25393         * tests/test-fchownat.c (main): Likewise.
25394         * tests/test-fdutimensat.c (main): Likewise.
25395         * tests/test-fstatat.c (main): Likewise.
25396         * tests/test-futimens.c (main): Likewise.
25397         * tests/test-lchown.c (main): Likewise.
25398         * tests/test-link.c (main): Likewise.
25399         * tests/test-linkat.c (main): Likewise.
25400         * tests/test-lstat.c (main): Likewise.
25401         * tests/test-mkdir.c (main): Likewise.
25402         * tests/test-mkdirat.c (main): Likewise.
25403         * tests/test-mkfifo.c (main): Likewise.
25404         * tests/test-mkfifoat.c (main): Likewise.
25405         * tests/test-mknod.c (main): Likewise.
25406         * tests/test-readlink.c (main): Likewise.
25407         * tests/test-remove.c (main): Likewise.
25408         * tests/test-rename.c (main): Likewise.
25409         * tests/test-renameat.c (main): Likewise.
25410         * tests/test-rmdir.c (main): Likewise.
25411         * tests/test-symlink.c (main): Likewise.
25412         * tests/test-symlinkat.c (main): Likewise.
25413         * tests/test-unlink.c (main): Likewise.
25414         * tests/test-unlinkat.c (main): Likewise.
25415         * tests/test-utimens.c (main): Likewise.
25416         * tests/test-utimensat.c (main): Likewise.
25417         * modules/areadlink-tests (Depends-on): Add ignore-value.
25418         * modules/areadlink-with-size-tests (Depends-on): Likewise.
25419         * modules/areadlinkat-tests (Depends-on): Likewise.
25420         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
25421         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25422         * modules/canonicalize-tests (Depends-on): Likewise.
25423         * modules/chown-tests (Depends-on): Likewise.
25424         * modules/fdutimensat-tests (Depends-on): Likewise.
25425         * modules/futimens-tests (Depends-on): Likewise.
25426         * modules/lchown-tests (Depends-on): Likewise.
25427         * modules/link-tests (Depends-on): Likewise.
25428         * modules/linkat-tests (Depends-on): Likewise.
25429         * modules/lstat-tests (Depends-on): Likewise.
25430         * modules/mkdir-tests (Depends-on): Likewise.
25431         * modules/mkfifo-tests (Depends-on): Likewise.
25432         * modules/mkfifoat-tests (Depends-on): Likewise.
25433         * modules/mknod-tests (Depends-on): Likewise.
25434         * modules/openat-tests (Depends-on): Likewise.
25435         * modules/readlink-tests (Depends-on): Likewise.
25436         * modules/remove-tests (Depends-on): Likewise.
25437         * modules/rename-tests (Depends-on): Likewise.
25438         * modules/renameat-tests (Depends-on): Likewise.
25439         * modules/rmdir-tests (Depends-on): Likewise.
25440         * modules/symlink-tests (Depends-on): Likewise.
25441         * modules/symlinkat-tests (Depends-on): Likewise.
25442         * modules/unlink-tests (Depends-on): Likewise.
25443         * modules/utimens-tests (Depends-on): Likewise.
25444         * modules/utimensat-tests (Depends-on): Likewise.
25445
25446 2010-01-31  Bruno Haible  <bruno@clisp.org>
25447
25448         Perform the same test for many <math.h> functions.
25449         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
25450         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
25451         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
25452         of gl_MATHFUNC.
25453         * modules/acos (configure.ac): Likewise.
25454         * modules/asin (configure.ac): Likewise.
25455         * modules/atan (configure.ac): Likewise.
25456         * modules/atan2 (configure.ac): Likewise.
25457         * modules/cbrt (configure.ac): Likewise.
25458         * modules/copysign (configure.ac): Likewise.
25459         * modules/cos (configure.ac): Likewise.
25460         * modules/cosh (configure.ac): Likewise.
25461         * modules/erf (configure.ac): Likewise.
25462         * modules/erfc (configure.ac): Likewise.
25463         * modules/exp (configure.ac): Likewise.
25464         * modules/fmod (configure.ac): Likewise.
25465         * modules/hypot (configure.ac): Likewise.
25466         * modules/j0 (configure.ac): Likewise.
25467         * modules/j1 (configure.ac): Likewise.
25468         * modules/jn (configure.ac): Likewise.
25469         * modules/lgamma (configure.ac): Likewise.
25470         * modules/log (configure.ac): Likewise.
25471         * modules/log10 (configure.ac): Likewise.
25472         * modules/log1p (configure.ac): Likewise.
25473         * modules/pow (configure.ac): Likewise.
25474         * modules/remainder (configure.ac): Likewise.
25475         * modules/sin (configure.ac): Likewise.
25476         * modules/sinh (configure.ac): Likewise.
25477         * modules/tan (configure.ac): Likewise.
25478         * modules/tanh (configure.ac): Likewise.
25479         * modules/y0 (configure.ac): Likewise.
25480         * modules/y1 (configure.ac): Likewise.
25481         * modules/yn (configure.ac): Likewise.
25482         Suggested by Paolo Bonzini.
25483
25484 2010-01-31  Bruno Haible  <bruno@clisp.org>
25485
25486         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
25487
25488 2010-01-31  Bruno Haible  <bruno@clisp.org>
25489
25490         Work around getdelim() bug on FreeBSD 8.0.
25491         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
25492         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
25493         not work.
25494         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
25495         is 1.
25496         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
25497         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
25498         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
25499         a non-zero size.
25500         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
25501
25502 2010-01-31  Bruno Haible  <bruno@clisp.org>
25503
25504         Work around getline() bug on FreeBSD 8.0.
25505         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
25506         and a non-zero size.
25507         * tests/test-getline.c (main): Likewise.
25508         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
25509         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
25510
25511 2010-01-28  Eric Blake  <ebb9@byu.net>
25512
25513         regex: fix build failure
25514         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
25515         platforms.
25516
25517 2010-01-28  Jim Meyering  <meyering@redhat.com>
25518
25519         regex: do not ignore memory allocation failure
25520         * lib/regex_internal.c (create_cd_newstate): Detect
25521         re_node_set_init_copy failure.   Extracted from glibc commit
25522         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
25523
25524         regex: sync more white-space changes from libc
25525         * lib/regex_internal.c: White-space only changes.
25526         * lib/regexec.c: Likewise.
25527
25528         regex: add many uses of __attribute_warn_unused_result__
25529         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
25530         * lib/regexec.c: Likewise.
25531         Extracted from a messy glibc commit.
25532
25533         regcomp.c: spelling and merge-artifact from glibc
25534         * lib/regcomp.c: Merge remainder of glibc's
25535         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
25536
25537         regcomp.c: sync white-space changes from glibc
25538         * lib/regcomp.c: Merge to accommodate white space
25539         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
25540
25541         regcomp.c: do not ignore internal return values
25542         * lib/regcomp.c: Do not ignore internal return values.
25543         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
25544         but without its white-space changes and spelling fixes.
25545
25546         regex_internal.h: define __attribute_warn_unused_result__
25547         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
25548
25549         maint: add a syntax-check rule to check for vulnerable Makefile.in
25550         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
25551
25552 2010-01-27  Jim Meyering  <meyering@redhat.com>
25553
25554         ncftpput-ftp: clean up spaces
25555         * build-aux/ncftpput-ftp: Make Copyright line consistent.
25556         Remove trailing blanks.
25557
25558 2010-01-27  Simon Josefsson  <simon@josefsson.org>
25559
25560         * build-aux/git-version-gen: Fix copyright statement.
25561         * build-aux/gnupload: Likewise.
25562         * tests/test-arcfour.c: Likewise.
25563         * tests/test-arctwo.c: Likewise.
25564         * tests/test-count-one-bits.c: Likewise.
25565         * tests/test-crc.c: Likewise.
25566         * tests/test-des.c: Likewise.
25567         * tests/test-gc-arcfour.c: Likewise.
25568         * tests/test-gc-arctwo.c: Likewise.
25569         * tests/test-gc-des.c: Likewise.
25570         * tests/test-gc-hmac-md5.c: Likewise.
25571         * tests/test-gc-hmac-sha1.c: Likewise.
25572         * tests/test-gc-md2.c: Likewise.
25573         * tests/test-gc-md4.c: Likewise.
25574         * tests/test-gc-md5.c: Likewise.
25575         * tests/test-gc-pbkdf2-sha1.c: Likewise.
25576         * tests/test-gc-rijndael.c: Likewise.
25577         * tests/test-gc-sha1.c: Likewise.
25578         * tests/test-gc.c: Likewise.
25579         * tests/test-gethostname.c: Likewise.
25580         * tests/test-gettimeofday.c: Likewise.
25581         * tests/test-hash.c: Likewise.
25582         * tests/test-hmac-md5.c: Likewise.
25583         * tests/test-hmac-sha1.c: Likewise.
25584         * tests/test-md2.c: Likewise.
25585         * tests/test-md4.c: Likewise.
25586         * tests/test-md5.c: Likewise.
25587         * tests/test-memchr.c: Likewise.
25588         * tests/test-memchr2.c: Likewise.
25589         * tests/test-memcmp.c: Likewise.
25590         * tests/test-memmem.c: Likewise.
25591         * tests/test-memrchr.c: Likewise.
25592         * tests/test-rawmemchr.c: Likewise.
25593         * tests/test-read-file.c: Likewise.
25594         * tests/test-rijndael.c: Likewise.
25595         * tests/test-sockets.c: Likewise.
25596         * tests/test-strchrnul.c: Likewise.
25597         * tests/test-strstr.c: Likewise.
25598         * tests/test-strtod.c: Likewise.
25599         * build-aux/ncftpput-ftp: Likewise.
25600
25601 2010-01-26  Eric Blake  <ebb9@byu.net>
25602
25603         ignore-value: update recommended header name
25604         * modules/ignore-value (Include): Only use <> for headers that
25605         exist in glibc.
25606
25607 2010-01-26  Jim Meyering  <meyering@redhat.com>
25608
25609         test-userspec.c: avoid compiler warnings
25610         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
25611         and "initialization discards qualifiers..." warnings.
25612         Put the first "uid" in its own scope, and make char* members "const".
25613
25614 2010-01-25  Bruno Haible  <bruno@clisp.org>
25615
25616         gnulib-tool: Make warning diagnostics consistent.
25617         * gnulib-tool (func_warning): New function.
25618         Use it everywhere where gnulib-tool produces output to stderr and it is
25619         not a fatal error.
25620
25621 2010-01-25  Bruno Haible  <bruno@clisp.org>
25622
25623         Fix test dependencies.
25624         * modules/xstrtol-tests (Depends-on): Add inttypes.
25625         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
25626
25627 2010-01-25 Pádraig Brady <P@draigBrady.com>
25628
25629         syntax-check: detect incorrect boolean macro values in config.h
25630         * modules/maintainer-makefile (configure.ac): Parameterize the location
25631         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
25632         The logic is from Eric Blake and the location indicated by Jim Meyering.
25633         Note the more natural CONFIG_HEADER name is prohibited by automake
25634         for backwards compatibility reasons.
25635         * top/maint.mk (sc_Wundef_boolean): New rule.
25636
25637 2010-01-25  Jim Meyering  <meyering@redhat.com>
25638
25639         bootstrap: detect MacOS 10.6's shasum, too
25640         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
25641         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
25642
25643 2010-01-23  Jim Meyering  <meyering@redhat.com>
25644
25645         xstrtoll: new module
25646         * modules/xstrtoll: New file.
25647         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
25648         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
25649         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
25650         ./configure fails if you use this module and lack "long long".
25651         * modules/xstrtoll-tests: New module.
25652         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
25653         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
25654         new init.sh-based test framework.
25655
25656 2010-01-24  Bruno Haible  <bruno@clisp.org>
25657
25658         Tests for module 'yn'.
25659         * modules/yn-tests: New file.
25660         * tests/test-yn.c: New file.
25661
25662         Tests for module 'y1'.
25663         * modules/y1-tests: New file.
25664         * tests/test-y1.c: New file.
25665
25666         Tests for module 'y0'.
25667         * modules/y0-tests: New file.
25668         * tests/test-y0.c: New file.
25669
25670         Tests for module 'tanh'.
25671         * modules/tanh-tests: New file.
25672         * tests/test-tanh.c: New file.
25673
25674         Tests for module 'tan'.
25675         * modules/tan-tests: New file.
25676         * tests/test-tan.c: New file.
25677
25678         Tests for module 'sqrt'.
25679         * modules/sqrt-tests: New file.
25680         * tests/test-sqrt.c: New file.
25681
25682         Tests for module 'sinh'.
25683         * modules/sinh-tests: New file.
25684         * tests/test-sinh.c: New file.
25685
25686         Tests for module 'sin'.
25687         * modules/sin-tests: New file.
25688         * tests/test-sin.c: New file.
25689
25690         Tests for module 'rint'.
25691         * modules/rint-tests: New file.
25692         * tests/test-rint.c: New file.
25693
25694         Tests for module 'remainder'.
25695         * modules/remainder-tests: New file.
25696         * tests/test-remainder.c: New file.
25697
25698         Tests for module 'pow'.
25699         * modules/pow-tests: New file.
25700         * tests/test-pow.c: New file.
25701
25702         Tests for module 'nextafter'.
25703         * modules/nextafter-tests: New file.
25704         * tests/test-nextafter.c: New file.
25705
25706         Tests for module 'modf'.
25707         * modules/modf-tests: New file.
25708         * tests/test-modf.c: New file.
25709
25710         Tests for module 'logb'.
25711         * modules/logb-tests: New file.
25712         * tests/test-logb.c: New file.
25713
25714         Tests for module 'log1p'.
25715         * modules/log1p-tests: New file.
25716         * tests/test-log1p.c: New file.
25717
25718         Tests for module 'log10'.
25719         * modules/log10-tests: New file.
25720         * tests/test-log10.c: New file.
25721
25722         Tests for module 'log'.
25723         * modules/log-tests: New file.
25724         * tests/test-log.c: New file.
25725
25726         Tests for module 'lgamma'.
25727         * modules/lgamma-tests: New file.
25728         * tests/test-lgamma.c: New file.
25729
25730         Tests for module 'ldexp'.
25731         * modules/ldexp-tests: New file.
25732         * tests/test-ldexp.c: New file.
25733
25734         Tests for module 'jn'.
25735         * modules/jn-tests: New file.
25736         * tests/test-jn.c: New file.
25737
25738         Tests for module 'j1'.
25739         * modules/j1-tests: New file.
25740         * tests/test-j1.c: New file.
25741
25742         Tests for module 'j0'.
25743         * modules/j0-tests: New file.
25744         * tests/test-j0.c: New file.
25745
25746         Tests for module 'hypot'.
25747         * modules/hypot-tests: New file.
25748         * tests/test-hypot.c: New file.
25749
25750         Tests for module 'fmod'.
25751         * modules/fmod-tests: New file.
25752         * tests/test-fmod.c: New file.
25753
25754         Tests for module 'fabs'.
25755         * modules/fabs-tests: New file.
25756         * tests/test-fabs.c: New file.
25757
25758         Tests for module 'exp'.
25759         * modules/exp-tests: New file.
25760         * tests/test-exp.c: New file.
25761
25762         Tests for module 'erfc'.
25763         * modules/erfc-tests: New file.
25764         * tests/test-erfc.c: New file.
25765
25766         Tests for module 'erf'.
25767         * modules/erf-tests: New file.
25768         * tests/test-erf.c: New file.
25769
25770         Tests for module 'cosh'.
25771         * modules/cosh-tests: New file.
25772         * tests/test-cosh.c: New file.
25773
25774         Tests for module 'cos'.
25775         * modules/cos-tests: New file.
25776         * tests/test-cos.c: New file.
25777
25778         Tests for module 'copysign'.
25779         * modules/copysign-tests: New file.
25780         * tests/test-copysign.c: New file.
25781
25782         Tests for module 'cbrt'.
25783         * modules/cbrt-tests: New file.
25784         * tests/test-cbrt.c: New file.
25785
25786         Tests for module 'atan2'.
25787         * modules/atan2-tests: New file.
25788         * tests/test-atan2.c: New file.
25789
25790         Tests for module 'atan'.
25791         * modules/atan-tests: New file.
25792         * tests/test-atan.c: New file.
25793
25794         Tests for module 'asin'.
25795         * modules/asin-tests: New file.
25796         * tests/test-asin.c: New file.
25797
25798         Tests for module 'acos'.
25799         * modules/acos-tests: New file.
25800         * tests/test-acos.c: New file.
25801
25802 2010-01-24  Bruno Haible  <bruno@clisp.org>
25803
25804         Fix tests for common <math.h> functions.
25805         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
25806         code snippet that references the function pointer, rather than merely
25807         calling the function. Substitute the FUNC_LIBM variable.
25808         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
25809         * modules/acos (configure.ac): Likewise.
25810         * modules/asin (configure.ac): Likewise.
25811         * modules/atan (configure.ac): Likewise.
25812         * modules/atan2 (configure.ac): Likewise.
25813         * modules/cbrt (configure.ac): Likewise.
25814         * modules/copysign (configure.ac): Likewise.
25815         * modules/cos (configure.ac): Likewise.
25816         * modules/cosh (configure.ac): Likewise.
25817         * modules/erf (configure.ac): Likewise.
25818         * modules/erfc (configure.ac): Likewise.
25819         * modules/exp (configure.ac): Likewise.
25820         * modules/fabs (configure.ac): Likewise.
25821         * modules/fmod (configure.ac): Likewise.
25822         * modules/hypot (configure.ac): Likewise.
25823         * modules/j0 (configure.ac): Likewise.
25824         * modules/j1 (configure.ac): Likewise.
25825         * modules/jn (configure.ac): Likewise.
25826         * modules/ldexp (configure.ac): Likewise.
25827         * modules/lgamma (configure.ac): Likewise.
25828         * modules/log (configure.ac): Likewise.
25829         * modules/log10 (configure.ac): Likewise.
25830         * modules/log1p (configure.ac): Likewise.
25831         * modules/logb (configure.ac): Likewise.
25832         * modules/modf (configure.ac): Likewise.
25833         * modules/nextafter (configure.ac): Likewise.
25834         * modules/pow (configure.ac): Likewise.
25835         * modules/remainder (configure.ac): Likewise.
25836         * modules/rint (configure.ac): Likewise.
25837         * modules/sin (configure.ac): Likewise.
25838         * modules/sinh (configure.ac): Likewise.
25839         * modules/tan (configure.ac): Likewise.
25840         * modules/tanh (configure.ac): Likewise.
25841         * modules/y0 (configure.ac): Likewise.
25842         * modules/y1 (configure.ac): Likewise.
25843         * modules/yn (configure.ac): Likewise.
25844
25845 2010-01-24  Bruno Haible  <bruno@clisp.org>
25846
25847         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
25848         * tests/test-acosl.c (x): New variable.
25849         (main): Store argument in x and fetch it from x.
25850         * tests/test-asinl.c (x): New variable.
25851         (main): Store argument in x and fetch it from x.
25852         * tests/test-atanl.c (x): New variable.
25853         (main): Store argument in x and fetch it from x.
25854         * tests/test-cosl.c (x): New variable.
25855         (main): Store argument in x and fetch it from x.
25856         * tests/test-expl.c (x): New variable.
25857         (main): Store argument in x and fetch it from x.
25858         * tests/test-logl.c (x): New variable.
25859         (main): Store argument in x and fetch it from x.
25860         * tests/test-sinl.c (x): New variable.
25861         (main): Store argument in x and fetch it from x.
25862         * tests/test-sqrtl.c (x): New variable.
25863         (main): Store argument in x and fetch it from x.
25864         * tests/test-tanl.c (x): New variable.
25865         (main): Store argument in x and fetch it from x.
25866
25867 2010-01-24  Bruno Haible  <bruno@clisp.org>
25868
25869         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
25870         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
25871         assignments to the initial TESTS_ENVIRONMENT.
25872         * doc/gnulib.texi (Unit test modules): Document it.
25873         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
25874         TESTS_ENVIRONMENT.
25875         * modules/btowc-tests (Makefile.am): Likewise.
25876         * modules/c-stack-tests (Makefile.am): Likewise.
25877         * modules/c-strcase-tests (Makefile.am): Likewise.
25878         * modules/copy-file-tests (Makefile.am): Likewise.
25879         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
25880         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
25881         * modules/mbrtowc-tests (Makefile.am): Likewise.
25882         * modules/mbscasecmp-tests (Makefile.am): Likewise.
25883         * modules/mbscasestr-tests (Makefile.am): Likewise.
25884         * modules/mbschr-tests (Makefile.am): Likewise.
25885         * modules/mbscspn-tests (Makefile.am): Likewise.
25886         * modules/mbsinit-tests (Makefile.am): Likewise.
25887         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
25888         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
25889         * modules/mbspbrk-tests (Makefile.am): Likewise.
25890         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
25891         * modules/mbsrchr-tests (Makefile.am): Likewise.
25892         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
25893         * modules/mbsspn-tests (Makefile.am): Likewise.
25894         * modules/mbsstr-tests (Makefile.am): Likewise.
25895         * modules/nl_langinfo-tests (Makefile.am): Likewise.
25896         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
25897         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
25898         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
25899         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
25900         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
25901         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
25902         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
25903         * modules/wcrtomb-tests (Makefile.am): Likewise.
25904         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
25905         * modules/wcsrtombs-tests (Makefile.am): Likewise.
25906         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
25907         assignments from TESTS_ENVIRONMENT.
25908         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
25909         augmentation.
25910         * modules/argp-version-etc-tests (Makefile.am): Likewise.
25911         * modules/atexit-tests (Makefile.am): Likewise.
25912         * modules/binary-io-tests (Makefile.am): Likewise.
25913         * modules/closein-tests (Makefile.am): Likewise.
25914         * modules/dprintf-posix-tests (Makefile.am): Likewise.
25915         * modules/exclude-tests (Makefile.am): Likewise.
25916         * modules/fflush-tests (Makefile.am): Likewise.
25917         * modules/fpending-tests (Makefile.am): Likewise.
25918         * modules/fprintf-posix-tests (Makefile.am): Likewise.
25919         * modules/freadahead-tests (Makefile.am): Likewise.
25920         * modules/freadptr-tests (Makefile.am): Likewise.
25921         * modules/freadseek-tests (Makefile.am): Likewise.
25922         * modules/fseek-tests (Makefile.am): Likewise.
25923         * modules/fseeko-tests (Makefile.am): Likewise.
25924         * modules/ftell-tests (Makefile.am): Likewise.
25925         * modules/ftello-tests (Makefile.am): Likewise.
25926         * modules/idpriv-drop-tests (Makefile.am): Likewise.
25927         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
25928         * modules/lseek-tests (Makefile.am): Likewise.
25929         * modules/parse-duration-tests (Makefile.am): Likewise.
25930         * modules/perror-tests (Makefile.am): Likewise.
25931         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
25932         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
25933         * modules/pipe-tests (Makefile.am): Likewise.
25934         * modules/pread-tests (Makefile.am): Likewise.
25935         * modules/printf-posix-tests (Makefile.am): Likewise.
25936         * modules/select-tests (Makefile.am): Likewise.
25937         * modules/sigpipe-tests (Makefile.am): Likewise.
25938         * modules/tsearch-tests (Makefile.am): Likewise.
25939         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
25940         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
25941         * modules/uniname/uniname-tests (Makefile.am): Likewise.
25942         * modules/uniwidth/width-tests (Makefile.am): Likewise.
25943         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
25944         * modules/version-etc-tests (Makefile.am): Likewise.
25945         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
25946         * modules/vprintf-posix-tests (Makefile.am): Likewise.
25947         * modules/xalloc-die-tests (Makefile.am): Likewise.
25948         * modules/xprintf-posix-tests (Makefile.am): Likewise.
25949         * modules/xstrtoimax-tests (Makefile.am): Likewise.
25950         * modules/xstrtol-tests (Makefile.am): Likewise.
25951         * modules/xstrtoumax-tests (Makefile.am): Likewise.
25952         * modules/yesno-tests (Makefile.am): Likewise.
25953         Suggested by Jim Meyering.
25954
25955 2010-01-24  Bruno Haible  <bruno@clisp.org>
25956
25957         More documentation.
25958         * doc/gnulib.texi (Writing modules): New chapter.
25959         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
25960         the new chapter.
25961
25962 2010-01-24  Jim Meyering  <meyering@redhat.com>
25963
25964         maint.mk: do not prepend "./" after filtering
25965         * top/maint.mk (_prepend_srcdir_prefix): New variable
25966         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
25967         "./" when $(srcdir) is ".".
25968
25969         define STREQ(a,b) consistently, removing useless parentheses
25970         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
25971         since the only risk is that "a" or "b" contains an unparenthesized
25972         comma, but if either did that, STREQ would have 3 or more arguments.
25973         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
25974         * lib/fts.c (STREQ): Remove unnecessary parentheses.
25975         * lib/hash-triple.c (STREQ): Likewise.
25976         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
25977         * lib/getugroups.c (STREQ): Likewise.
25978
25979 2010-01-23  Jim Meyering  <meyering@redhat.com>
25980
25981         maint.mk: fix syntax-check in a non-srcdir build directory
25982         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
25983         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
25984
25985 2010-01-22  Jim Meyering  <meyering@redhat.com>
25986
25987         userspec: add unit tests
25988         * tests/test-userspec.c: New file.
25989         * modules/userspec-tests: Likewise.
25990
25991 2010-01-21  Jim Meyering  <meyering@redhat.com>
25992
25993         maint.mk: handle source file names containing "." robustly
25994         * top/maint.mk (_dot_escaped_srcdir): Define.
25995         (VC_LIST): Use it in LHS of sed substitution.
25996
25997 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
25998
25999         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
26000         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
26001         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
26002         from a non-srcdir build.
26003
26004 2010-01-20  Eric Blake  <ebb9@byu.net>
26005
26006         warn-on-use: use instead of link-warning
26007         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
26008         * modules/unistd (Depends-on, Makefile.am): Likewise.
26009         * modules/arpa_inet (Depends-on): Replace link-warning with
26010         warn-on-use.
26011         (Makefile.am): Update rules accordingly.
26012         * modules/ctype (Depends-on, Makefile.am): Likewise.
26013         * modules/dirent (Depends-on, Makefile.am): Likewise.
26014         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
26015         * modules/inttypes (Depends-on, Makefile.am): Likewise.
26016         * modules/langinfo (Depends-on, Makefile.am): Likewise.
26017         * modules/locale (Depends-on, Makefile.am): Likewise.
26018         * modules/math (Depends-on, Makefile.am): Likewise.
26019         * modules/search (Depends-on, Makefile.am): Likewise.
26020         * modules/signal (Depends-on, Makefile.am): Likewise.
26021         * modules/spawn (Depends-on, Makefile.am): Likewise.
26022         * modules/stdlib (Depends-on, Makefile.am): Likewise.
26023         * modules/string (Depends-on, Makefile.am): Likewise.
26024         * modules/strings (Depends-on, Makefile.am): Likewise.
26025         * modules/sys_file (Depends-on, Makefile.am): Likewise.
26026         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
26027         * modules/sys_select (Depends-on, Makefile.am): Likewise.
26028         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
26029         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
26030         * modules/sys_times (Depends-on, Makefile.am): Likewise.
26031         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
26032         * modules/wchar (Depends-on, Makefile.am): Likewise.
26033         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
26034         should be poisoned.
26035         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
26036         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
26037         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
26038         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26039         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26040         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26041         * m4/math_h.m4 (gl_MATH_H): Likewise.
26042         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26043         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
26044         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26045         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
26046         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
26047         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
26048         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
26049         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
26050         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
26051         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26052         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26053         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
26054         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26055         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26056         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26057         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26058         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
26059         GL_LINK_WARNING.
26060         * lib/ctype.in.h: Likewise.
26061         * lib/dirent.in.h: Likewise.
26062         * lib/fcntl.in.h: Likewise.
26063         * lib/inttypes.in.h: Likewise.
26064         * lib/langinfo.in.h: Likewise.
26065         * lib/locale.in.h: Likewise.
26066         * lib/math.in.h: Likewise.
26067         * lib/search.in.h: Likewise.
26068         * lib/signal.in.h: Likewise.
26069         * lib/spawn.in.h: Likewise.
26070         * lib/stdio.in.h: Likewise.
26071         * lib/stdlib.in.h: Likewise.
26072         * lib/string.in.h: Likewise.
26073         * lib/strings.in.h: Likewise.
26074         * lib/sys_file.in.h: Likewise.
26075         * lib/sys_ioctl.in.h: Likewise.
26076         * lib/sys_select.in.h: Likewise.
26077         * lib/sys_socket.in.h: Likewise.
26078         * lib/sys_stat.in.h: Likewise.
26079         * lib/sys_times.in.h: Likewise.
26080         * lib/sys_utsname.in.h: Likewise.
26081         * lib/unistd.in.h: Likewise.
26082         * lib/wchar.in.h: Likewise.
26083
26084 2010-01-20  Bruno Haible  <bruno@clisp.org>
26085
26086         Avoid duplicate -lm.
26087         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
26088         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
26089         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
26090         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
26091         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
26092         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
26093         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
26094         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
26095         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
26096         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
26097         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
26098         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26099         Reported by Paolo Bonzini.
26100
26101 2010-01-19  Bruno Haible  <bruno@clisp.org>
26102
26103         langinfo, nl_langinfo: Relicense under LGPLv2+.
26104         * modules/langinfo (License): Change to LGPLv2+.
26105         * modules/nl_langinfo (License): Likewise.
26106         Patch by David Lutterkort <lutter@redhat.com>.
26107
26108 2010-01-19  Bruno Haible  <bruno@clisp.org>
26109
26110         Avoid compilation error with cc on OSF/1 5.1.
26111         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
26112         statement, not before.
26113         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26114
26115 2010-01-18  Bruno Haible  <bruno@clisp.org>
26116
26117         Avoid a link error due to the __printf__ symbol.
26118         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
26119         and 2.6.x.
26120         (__format__, __printf__): Remove definitions.
26121         * lib/argp-fmtstream.h: Likewise.
26122         * lib/argp.h: Likewise.
26123         * lib/error.h: Likewise.
26124         * lib/vasnprintf.h: Likewise.
26125         * lib/xprintf.h: Likewise.
26126         * lib/xvasprintf.h: Likewise.
26127         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26128
26129 2010-01-18  Bruno Haible  <bruno@clisp.org>
26130
26131         Tests for module 'tanl'.
26132         * modules/tanl-tests: New file.
26133         * tests/test-tanl.c: New file.
26134
26135         Tests for module 'sqrtl'.
26136         * modules/sqrtl-tests: New file.
26137         * tests/test-sqrtl.c: New file.
26138
26139         Tests for module 'sinl'.
26140         * modules/sinl-tests: New file.
26141         * tests/test-sinl.c: New file.
26142
26143         Tests for module 'logl'.
26144         * modules/logl-tests: New file.
26145         * tests/test-logl.c: New file.
26146
26147         Tests for module 'expl'.
26148         * modules/expl-tests: New file.
26149         * tests/test-expl.c: New file.
26150
26151         Tests for module 'cosl'.
26152         * modules/cosl-tests: New file.
26153         * tests/test-cosl.c: New file.
26154
26155         Tests for module 'atanl'.
26156         * modules/atanl-tests: New file.
26157         * tests/test-atanl.c: New file.
26158
26159         Tests for module 'asinl'.
26160         * modules/asinl-tests: New file.
26161         * tests/test-asinl.c: New file.
26162
26163         Tests for module 'acosl'.
26164         * modules/acosl-tests: New file.
26165         * tests/test-acosl.c: New file.
26166
26167         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
26168         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
26169         tanl): Use the standard gnulib idiom.
26170         * lib/cosl.c: Don't include trigl.c and sincosl.c.
26171         * lib/sinl.c: Likewise.
26172         * lib/tanl.c: Don't include trigl.c.
26173         (kernel_tanl): Make static.
26174         * lib/sincosl.c: Include trigl.h first.
26175         * lib/trigl.c: Likewise.
26176         * m4/acosl.m4: New file.
26177         * m4/asinl.m4: New file.
26178         * m4/atanl.m4: New file.
26179         * m4/cosl.m4: New file.
26180         * m4/expl.m4: New file.
26181         * m4/logl.m4: New file.
26182         * m4/sinl.m4: New file.
26183         * m4/sqrtl.m4: New file.
26184         * m4/tanl.m4: New file.
26185         * m4/mathl.m4: Remove file.
26186         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
26187         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
26188         Don't initialize GNULIB_MATHL.
26189         * modules/acosl: New file.
26190         * modules/asinl: New file.
26191         * modules/atanl: New file.
26192         * modules/cosl: New file.
26193         * modules/expl: New file.
26194         * modules/logl: New file.
26195         * modules/sinl: New file.
26196         * modules/sqrtl: New file.
26197         * modules/tanl: New file.
26198         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
26199         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
26200         substitute GNULIB_MATHL.
26201         * modules/mathl: Rewritten.
26202         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
26203         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
26204         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
26205         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
26206         * doc/posix-functions/expl.texi: Mention the 'expl' module.
26207         * doc/posix-functions/logl.texi: Mention the 'logl' module.
26208         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
26209         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
26210         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
26211
26212 2010-01-18  Bruno Haible  <bruno@clisp.org>
26213
26214         sqrt: Make gl_FUNC_SQRT requirable.
26215         * m4/sqrt.m4: New file.
26216         * modules/sqrt (Files): Add it.
26217         (configure.ac): Invoke gl_FUNC_SQRT.
26218
26219 2010-01-18  Bruno Haible  <bruno@clisp.org>
26220
26221         New modules for common <math.h> functions.
26222         * m4/mathfunc.m4: New file.
26223         * modules/acos: New file.
26224         * modules/asin: New file.
26225         * modules/atan: New file.
26226         * modules/atan2: New file.
26227         * modules/cbrt: New file.
26228         * modules/copysign: New file.
26229         * modules/cos: New file.
26230         * modules/cosh: New file.
26231         * modules/erf: New file.
26232         * modules/erfc: New file.
26233         * modules/exp: New file.
26234         * modules/fabs: New file.
26235         * modules/fmod: New file.
26236         * modules/hypot: New file.
26237         * modules/j0: New file.
26238         * modules/j1: New file.
26239         * modules/jn: New file.
26240         * modules/ldexp: New file.
26241         * modules/lgamma: New file.
26242         * modules/log: New file.
26243         * modules/log10: New file.
26244         * modules/log1p: New file.
26245         * modules/logb: New file.
26246         * modules/modf: New file.
26247         * modules/nextafter: New file.
26248         * modules/pow: New file.
26249         * modules/remainder: New file.
26250         * modules/rint: New file.
26251         * modules/sin: New file.
26252         * modules/sinh: New file.
26253         * modules/sqrt: New file.
26254         * modules/tan: New file.
26255         * modules/tanh: New file.
26256         * modules/y0: New file.
26257         * modules/y1: New file.
26258         * modules/yn: New file.
26259         * doc/posix-functions/acos.texi: Mention the 'acos' module.
26260         * doc/posix-functions/asin.texi: Mention the 'asin' module.
26261         * doc/posix-functions/atan.texi: Mention the 'atan' module.
26262         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
26263         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
26264         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
26265         * doc/posix-functions/cos.texi: Mention the 'cos' module.
26266         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
26267         * doc/posix-functions/erf.texi: Mention the 'erf' module.
26268         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
26269         * doc/posix-functions/exp.texi: Mention the 'exp' module.
26270         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
26271         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
26272         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
26273         * doc/posix-functions/j0.texi: Mention the 'j0' module.
26274         * doc/posix-functions/j1.texi: Mention the 'j1' module.
26275         * doc/posix-functions/jn.texi: Mention the 'jn' module.
26276         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
26277         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
26278         * doc/posix-functions/log.texi: Mention the 'log' module.
26279         * doc/posix-functions/log10.texi: Mention the 'log10' module.
26280         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
26281         * doc/posix-functions/logb.texi: Mention the 'logb' module.
26282         * doc/posix-functions/modf.texi: Mention the 'modf' module.
26283         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
26284         * doc/posix-functions/pow.texi: Mention the 'pow' module.
26285         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
26286         * doc/posix-functions/rint.texi: Mention the 'rint' module.
26287         * doc/posix-functions/sin.texi: Mention the 'sin' module.
26288         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
26289         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
26290         * doc/posix-functions/tan.texi: Mention the 'tan' module.
26291         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
26292         * doc/posix-functions/y0.texi: Mention the 'y0' module.
26293         * doc/posix-functions/y1.texi: Mention the 'y1' module.
26294         * doc/posix-functions/yn.texi: Mention the 'yn' module.
26295
26296 2010-01-18  Jim Meyering  <meyering@redhat.com>
26297
26298         ignore-value: relax license to LGPLv2+
26299         * modules/ignore-value (License): Relax to LGPLv2+.
26300
26301         getdate: don't leak when TZ contains two or more '"'s
26302         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
26303         double quote in TZ after the first one.
26304
26305         readtokens: do not leak internal token_lengths buffer
26306         * lib/readtokens.c (readtokens): Free the local, lengths,
26307         when the supplied "token_lengths" parameter is NULL.
26308
26309 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26310
26311         Fix a couple of missing LIBTHREAD link failures on AIX.
26312         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
26313         $(LIBTHREAD).
26314         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
26315
26316         Link test-poll against INET_PTON_LIB.
26317         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
26318         for inet_pton on Solaris 10.
26319
26320 2010-01-17  Bruno Haible  <bruno@clisp.org>
26321
26322         unistdio/*-sprintf: Fix typo in module description.
26323         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
26324         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
26325         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
26326         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
26327         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
26328         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
26329         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
26330         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26331
26332 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26333
26334         gnulib-tool: fix filelist for AIX, HP-UX ksh.
26335         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
26336         variables in shell case patterns, for AIX and HP-UX ksh.
26337
26338         Split large sed scripts, for HP-UX sed.
26339         * modules/stdio: Split sed scripts around 50 sed commands,
26340         to avoid HP-UX limit of 99 commands, in the near future.
26341         * modules/string: Likewise.
26342         * modules/unistd: Likewise.
26343
26344         gnulib-tool: avoid writing in the current directory.
26345         * gnulib-tool (func_emit_lib_Makefile_am)
26346         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
26347         not in the current directory, so concurrent gnulib-tool
26348         instances do not interfere.
26349
26350 2010-01-16  Jim Meyering  <meyering@redhat.com>
26351
26352         doc: update users.txt
26353         * users.txt: Add grep.
26354         (diffutils, gzip): Update URLs.
26355
26356 2010-01-12  Bruno Haible  <bruno@clisp.org>
26357
26358         posix_spawn: Avoid test failure on Cygwin.
26359         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
26360         characters.
26361         Reported by Simon Josefsson.
26362
26363 2010-01-12  Bruno Haible  <bruno@clisp.org>
26364
26365         * tests/test-cond.c (main): When skipping the test, show the reason.
26366
26367 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26368
26369         * lib/striconv.c (str_cd_iconv): Avoid if before free.
26370
26371 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26372
26373         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
26374         VC_LIST_ALWAYS_EXCLUDE_REGEX.
26375
26376 2010-01-12  Eric Blake  <ebb9@byu.net>
26377
26378         build: guarantee AS_VAR_IF
26379         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
26380         (gl_AS_VAR_IF): Move...
26381         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
26382         Reported by Simon Josefsson.
26383
26384 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26385
26386         * lib/stdio.in.h: Fix typo.
26387
26388 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26389
26390         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
26391         libgpg-error.
26392
26393 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26394
26395         * tests/test-xalloc-die.sh: Use $EXEEXT.
26396
26397 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26398             Bruno Haible  <bruno@clisp.org>
26399
26400         getlogin, getlogin_r: Avoid test failure.
26401         * tests/test-getlogin.c: Include <stdio.h>.
26402         (main): Skip the test when the function fails because stdin is not a
26403         tty.
26404         * tests/test-getlogin_r.c: Include <stdio.h>.
26405         (main): Skip the test when the function fails because stdin is not a
26406         tty.
26407
26408 2010-01-11  Eric Blake  <ebb9@byu.net>
26409
26410         tests: avoid more large file warnings
26411         * tests/test-fflush.c: Avoid warning about ftell use.
26412         * tests/test-fseek.c: Avoid warning about fseek use.
26413
26414 2010-01-10  Bruno Haible  <bruno@clisp.org>
26415
26416         nproc: Work better on Linux when /proc and /sys are not mounted.
26417         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
26418         as lower bound when, on glibc/Linux systems,
26419         sysconf (_SC_NPROCESSORS_CONF) returns 1.
26420         Suggested by Pádraig Brady <P@draigbrady.com>.
26421         Reported by Dmitry V. Levin <ldv@altlinux.org>.
26422
26423         nproc: Refactor.
26424         * lib/nproc.c (num_processors_via_affinity_mask): New function,
26425         extracted from num_processors.
26426         (num_processors): Call it.
26427
26428 2010-01-11  Jim Meyering  <meyering@redhat.com>
26429
26430         utimecmp: avoid new warning from upcoming gcc-4.5.0
26431         * lib/utimecmp.c (BILLION): Define using #define rather than an
26432         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
26433
26434 2010-01-11  Eric Blake  <ebb9@byu.net>
26435
26436         math: add portability warnings for classification macros
26437         * modules/math (Depends-on): Add warn-on-use.
26438         (Makefile.am): Provide new substitutions.
26439         * m4/math_h.m4 (gl_MATH_H): Require inline.
26440         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
26441         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
26442         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
26443         implement warnings.
26444
26445         unistd: warn on use of environ without module
26446         * modules/unistd (Depends-on): Add warn-on-use.
26447         (Makefile.am): Provide new substitutions.
26448         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
26449         * lib/unistd.in.h (environ): Wrap with a warning helper function.
26450
26451         stdio: warn on suspicious uses
26452         * modules/stdio (Depends-on): Add warn-on-use.
26453         (Makefile.am): Provide new substitutions.
26454         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
26455         fseeko.
26456         * lib/stdio.in.h (gets): Always warn on use.
26457         (fseek, ftell): Adjust when warnings are issued, and honor
26458         _GL_NO_LARGE_FILES as a way to silence the warning.
26459         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
26460         any warning about large file offsets.
26461         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
26462         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
26463         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
26464         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
26465         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
26466         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
26467         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
26468         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
26469
26470         warn-on-use: new module
26471         * modules/warn-on-use: New file.
26472         * build-aux/warn-on-use.h: Likewise.
26473         * m4/warn-on-use.m4: Likewise.
26474         * MODULES.html.sh (Support for building): Mention it.
26475
26476 2010-01-10  Bruno Haible  <bruno@clisp.org>
26477
26478         Tests for module 'unistr/u32-strdup'.
26479         * modules/unistr/u32-strdup-tests: New file.
26480         * tests/unistr/test-u32-strdup.c: New file.
26481
26482         Tests for module 'unistr/u16-strdup'.
26483         * modules/unistr/u16-strdup-tests: New file.
26484         * tests/unistr/test-u16-strdup.c: New file.
26485
26486         Tests for module 'unistr/u8-strdup'.
26487         * modules/unistr/u8-strdup-tests: New file.
26488         * tests/unistr/test-u8-strdup.c: New file.
26489         * tests/unistr/test-strdup.h: New file.
26490
26491         Tests for module 'unistr/u32-strncmp'.
26492         * modules/unistr/u32-strncmp-tests: New file.
26493         * tests/unistr/test-u32-strncmp.c: New file.
26494
26495         Tests for module 'unistr/u16-strncmp'.
26496         * modules/unistr/u16-strncmp-tests: New file.
26497         * tests/unistr/test-u16-strncmp.c: New file.
26498
26499         Tests for module 'unistr/u8-strncmp'.
26500         * modules/unistr/u8-strncmp-tests: New file.
26501         * tests/unistr/test-u8-strncmp.c: New file.
26502         * tests/unistr/test-strncmp.h: New file.
26503
26504         Tests for module 'unistr/u32-strcoll'.
26505         * modules/unistr/u32-strcoll-tests: New file.
26506         * tests/unistr/test-u32-strcoll.c: New file.
26507
26508         Tests for module 'unistr/u16-strcoll'.
26509         * modules/unistr/u16-strcoll-tests: New file.
26510         * tests/unistr/test-u16-strcoll.c: New file.
26511
26512         Tests for module 'unistr/u8-strcoll'.
26513         * modules/unistr/u8-strcoll-tests: New file.
26514         * tests/unistr/test-u8-strcoll.c: New file.
26515
26516         Tests for module 'unistr/u32-strcmp'.
26517         * modules/unistr/u32-strcmp-tests: New file.
26518         * tests/unistr/test-u32-strcmp.c: New file.
26519         * tests/unistr/test-u32-strcmp.h: New file.
26520
26521         Tests for module 'unistr/u16-strcmp'.
26522         * modules/unistr/u16-strcmp-tests: New file.
26523         * tests/unistr/test-u16-strcmp.c: New file.
26524         * tests/unistr/test-u16-strcmp.h: New file.
26525
26526         Tests for module 'unistr/u8-strcmp'.
26527         * modules/unistr/u8-strcmp-tests: New file.
26528         * tests/unistr/test-u8-strcmp.c: New file.
26529         * tests/unistr/test-u8-strcmp.h: New file.
26530         * tests/unistr/test-strcmp.h: New file.
26531
26532         Tests for module 'unistr/u32-strncat'.
26533         * modules/unistr/u32-strncat-tests: New file.
26534         * tests/unistr/test-u32-strncat.c: New file.
26535
26536         Tests for module 'unistr/u16-strncat'.
26537         * modules/unistr/u16-strncat-tests: New file.
26538         * tests/unistr/test-u16-strncat.c: New file.
26539
26540         Tests for module 'unistr/u8-strncat'.
26541         * modules/unistr/u8-strncat-tests: New file.
26542         * tests/unistr/test-u8-strncat.c: New file.
26543         * tests/unistr/test-strncat.h: New file.
26544
26545         Tests for module 'unistr/u32-strcat'.
26546         * modules/unistr/u32-strcat-tests: New file.
26547         * tests/unistr/test-u32-strcat.c: New file.
26548
26549         Tests for module 'unistr/u16-strcat'.
26550         * modules/unistr/u16-strcat-tests: New file.
26551         * tests/unistr/test-u16-strcat.c: New file.
26552
26553         Tests for module 'unistr/u8-strcat'.
26554         * modules/unistr/u8-strcat-tests: New file.
26555         * tests/unistr/test-u8-strcat.c: New file.
26556         * tests/unistr/test-strcat.h: New file.
26557
26558         Tests for module 'unistr/u32-stpncpy'.
26559         * modules/unistr/u32-stpncpy-tests: New file.
26560         * tests/unistr/test-u32-stpncpy.c: New file.
26561
26562         Tests for module 'unistr/u16-stpncpy'.
26563         * modules/unistr/u16-stpncpy-tests: New file.
26564         * tests/unistr/test-u16-stpncpy.c: New file.
26565
26566         Tests for module 'unistr/u8-stpncpy'.
26567         * modules/unistr/u8-stpncpy-tests: New file.
26568         * tests/unistr/test-u8-stpncpy.c: New file.
26569         * tests/unistr/test-stpncpy.h: New file.
26570
26571         Tests for module 'unistr/u32-strncpy'.
26572         * modules/unistr/u32-strncpy-tests: New file.
26573         * tests/unistr/test-u32-strncpy.c: New file.
26574
26575         Tests for module 'unistr/u16-strncpy'.
26576         * modules/unistr/u16-strncpy-tests: New file.
26577         * tests/unistr/test-u16-strncpy.c: New file.
26578
26579         Tests for module 'unistr/u8-strncpy'.
26580         * modules/unistr/u8-strncpy-tests: New file.
26581         * tests/unistr/test-u8-strncpy.c: New file.
26582         * tests/unistr/test-strncpy.h: New file.
26583
26584         Tests for module 'unistr/u32-stpcpy'.
26585         * modules/unistr/u32-stpcpy-tests: New file.
26586         * tests/unistr/test-u32-stpcpy.c: New file.
26587
26588         Tests for module 'unistr/u16-stpcpy'.
26589         * modules/unistr/u16-stpcpy-tests: New file.
26590         * tests/unistr/test-u16-stpcpy.c: New file.
26591
26592         Tests for module 'unistr/u8-stpcpy'.
26593         * modules/unistr/u8-stpcpy-tests: New file.
26594         * tests/unistr/test-u8-stpcpy.c: New file.
26595         * tests/unistr/test-stpcpy.h: New file.
26596
26597         Tests for module 'unistr/u32-strcpy'.
26598         * modules/unistr/u32-strcpy-tests: New file.
26599         * tests/unistr/test-u32-strcpy.c: New file.
26600
26601         Tests for module 'unistr/u16-strcpy'.
26602         * modules/unistr/u16-strcpy-tests: New file.
26603         * tests/unistr/test-u16-strcpy.c: New file.
26604
26605         Tests for module 'unistr/u8-strcpy'.
26606         * modules/unistr/u8-strcpy-tests: New file.
26607         * tests/unistr/test-u8-strcpy.c: New file.
26608         * tests/unistr/test-strcpy.h: New file.
26609
26610         Tests for module 'unistr/u32-strnlen'.
26611         * modules/unistr/u32-strnlen-tests: New file.
26612         * tests/unistr/test-u32-strnlen.c: New file.
26613
26614         Tests for module 'unistr/u16-strnlen'.
26615         * modules/unistr/u16-strnlen-tests: New file.
26616         * tests/unistr/test-u16-strnlen.c: New file.
26617
26618         Tests for module 'unistr/u8-strnlen'.
26619         * modules/unistr/u8-strnlen-tests: New file.
26620         * tests/unistr/test-u8-strnlen.c: New file.
26621         * tests/unistr/test-strnlen.h: New file.
26622
26623         Tests for module 'unistr/u32-strlen'.
26624         * modules/unistr/u32-strlen-tests: New file.
26625         * tests/unistr/test-u32-strlen.c: New file.
26626
26627         Tests for module 'unistr/u16-strlen'.
26628         * modules/unistr/u16-strlen-tests: New file.
26629         * tests/unistr/test-u16-strlen.c: New file.
26630
26631         Tests for module 'unistr/u8-strlen'.
26632         * modules/unistr/u8-strlen-tests: New file.
26633         * tests/unistr/test-u8-strlen.c: New file.
26634
26635         Tests for module 'unistr/u32-prev'.
26636         * modules/unistr/u32-prev-tests: New file.
26637         * tests/unistr/test-u32-prev.c: New file.
26638
26639         Tests for module 'unistr/u16-prev'.
26640         * modules/unistr/u16-prev-tests: New file.
26641         * tests/unistr/test-u16-prev.c: New file.
26642
26643         Tests for module 'unistr/u8-prev'.
26644         * modules/unistr/u8-prev-tests: New file.
26645         * tests/unistr/test-u8-prev.c: New file.
26646
26647         Tests for module 'unistr/u32-next'.
26648         * modules/unistr/u32-next-tests: New file.
26649         * tests/unistr/test-u32-next.c: New file.
26650
26651         Tests for module 'unistr/u16-next'.
26652         * modules/unistr/u16-next-tests: New file.
26653         * tests/unistr/test-u16-next.c: New file.
26654
26655         Tests for module 'unistr/u8-next'.
26656         * modules/unistr/u8-next-tests: New file.
26657         * tests/unistr/test-u8-next.c: New file.
26658
26659         Tests for module 'unistr/u32-strmbtouc'.
26660         * modules/unistr/u32-strmbtouc-tests: New file.
26661         * tests/unistr/test-u32-strmbtouc.c: New file.
26662
26663         Tests for module 'unistr/u16-strmbtouc'.
26664         * modules/unistr/u16-strmbtouc-tests: New file.
26665         * tests/unistr/test-u16-strmbtouc.c: New file.
26666
26667         Tests for module 'unistr/u8-strmbtouc'.
26668         * modules/unistr/u8-strmbtouc-tests: New file.
26669         * tests/unistr/test-u8-strmbtouc.c: New file.
26670
26671         Tests for module 'unistr/u32-strmblen'.
26672         * modules/unistr/u32-strmblen-tests: New file.
26673         * tests/unistr/test-u32-strmblen.c: New file.
26674
26675         Tests for module 'unistr/u16-strmblen'.
26676         * modules/unistr/u16-strmblen-tests: New file.
26677         * tests/unistr/test-u16-strmblen.c: New file.
26678
26679         Tests for module 'unistr/u8-strmblen'.
26680         * modules/unistr/u8-strmblen-tests: New file.
26681         * tests/unistr/test-u8-strmblen.c: New file.
26682
26683         Tests for module 'unistr/u32-cpy-alloc'.
26684         * modules/unistr/u32-cpy-alloc-tests: New file.
26685         * tests/unistr/test-u32-cpy-alloc.c: New file.
26686
26687         Tests for module 'unistr/u16-cpy-alloc'.
26688         * modules/unistr/u16-cpy-alloc-tests: New file.
26689         * tests/unistr/test-u16-cpy-alloc.c: New file.
26690
26691         Tests for module 'unistr/u8-cpy-alloc'.
26692         * modules/unistr/u8-cpy-alloc-tests: New file.
26693         * tests/unistr/test-u8-cpy-alloc.c: New file.
26694         * tests/unistr/test-cpy-alloc.h: New file.
26695
26696         Tests for module 'unistr/u32-mbsnlen'.
26697         * modules/unistr/u32-mbsnlen-tests: New file.
26698         * tests/unistr/test-u32-mbsnlen.c: New file.
26699
26700         Tests for module 'unistr/u16-mbsnlen'.
26701         * modules/unistr/u16-mbsnlen-tests: New file.
26702         * tests/unistr/test-u16-mbsnlen.c: New file.
26703
26704         Tests for module 'unistr/u8-mbsnlen'.
26705         * modules/unistr/u8-mbsnlen-tests: New file.
26706         * tests/unistr/test-u8-mbsnlen.c: New file.
26707
26708         Tests for module 'unistr/u32-chr'.
26709         * modules/unistr/u32-chr-tests: New file.
26710         * tests/unistr/test-u32-chr.c: New file.
26711
26712         Tests for module 'unistr/u16-chr'.
26713         * modules/unistr/u16-chr-tests: New file.
26714         * tests/unistr/test-u16-chr.c: New file.
26715
26716         Tests for module 'unistr/u8-chr'.
26717         * modules/unistr/u8-chr-tests: New file.
26718         * tests/unistr/test-u8-chr.c: New file.
26719         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
26720
26721         Tests for module 'unistr/u32-cmp2'.
26722         * modules/unistr/u32-cmp2-tests: New file.
26723         * tests/unistr/test-u32-cmp2.c: New file.
26724
26725         Tests for module 'unistr/u16-cmp2'.
26726         * modules/unistr/u16-cmp2-tests: New file.
26727         * tests/unistr/test-u16-cmp2.c: New file.
26728
26729         Tests for module 'unistr/u8-cmp2'.
26730         * modules/unistr/u8-cmp2-tests: New file.
26731         * tests/unistr/test-u8-cmp2.c: New file.
26732         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
26733
26734         Tests for module 'unistr/u32-cmp'.
26735         * modules/unistr/u32-cmp-tests: New file.
26736         * tests/unistr/test-u32-cmp.c: New file.
26737
26738         Tests for module 'unistr/u16-cmp'.
26739         * modules/unistr/u16-cmp-tests: New file.
26740         * tests/unistr/test-u16-cmp.c: New file.
26741
26742         Tests for module 'unistr/u8-cmp'.
26743         * modules/unistr/u8-cmp-tests: New file.
26744         * tests/unistr/test-u8-cmp.c: New file.
26745         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
26746
26747         Tests for module 'unistr/u32-set'.
26748         * modules/unistr/u32-set-tests: New file.
26749         * tests/unistr/test-u32-set.c: New file.
26750
26751         Tests for module 'unistr/u16-set'.
26752         * modules/unistr/u16-set-tests: New file.
26753         * tests/unistr/test-u16-set.c: New file.
26754
26755         Tests for module 'unistr/u8-set'.
26756         * modules/unistr/u8-set-tests: New file.
26757         * tests/unistr/test-u8-set.c: New file.
26758         * tests/unistr/test-set.h: New file.
26759
26760         Tests for module 'unistr/u32-move'.
26761         * modules/unistr/u32-move-tests: New file.
26762         * tests/unistr/test-u32-move.c: New file.
26763
26764         Tests for module 'unistr/u16-move'.
26765         * modules/unistr/u16-move-tests: New file.
26766         * tests/unistr/test-u16-move.c: New file.
26767
26768         Tests for module 'unistr/u8-move'.
26769         * modules/unistr/u8-move-tests: New file.
26770         * tests/unistr/test-u8-move.c: New file.
26771         * tests/unistr/test-move.h: New file.
26772
26773         Tests for module 'unistr/u32-cpy'.
26774         * modules/unistr/u32-cpy-tests: New file.
26775         * tests/unistr/test-u32-cpy.c: New file.
26776
26777         Tests for module 'unistr/u16-cpy'.
26778         * modules/unistr/u16-cpy-tests: New file.
26779         * tests/unistr/test-u16-cpy.c: New file.
26780
26781         Tests for module 'unistr/u8-cpy'.
26782         * modules/unistr/u8-cpy-tests: New file.
26783         * tests/unistr/test-u8-cpy.c: New file.
26784         * tests/unistr/test-cpy.h: New file.
26785
26786 2010-01-09  Bruno Haible  <bruno@clisp.org>
26787
26788         Tests for module 'unistr/u32-uctomb'.
26789         * modules/unistr/u32-uctomb-tests: New file.
26790         * tests/unistr/test-u32-uctomb.c: New file.
26791
26792         Tests for module 'unistr/u16-uctomb'.
26793         * modules/unistr/u16-uctomb-tests: New file.
26794         * tests/unistr/test-u16-uctomb.c: New file.
26795
26796         Tests for module 'unistr/u8-uctomb'.
26797         * modules/unistr/u8-uctomb-tests: New file.
26798         * tests/unistr/test-u8-uctomb.c: New file.
26799
26800         Tests for module 'unistr/u32-mbtoucr'.
26801         * modules/unistr/u32-mbtoucr-tests: New file.
26802         * tests/unistr/test-u32-mbtoucr.c: New file.
26803
26804         Tests for module 'unistr/u16-mbtoucr'.
26805         * modules/unistr/u16-mbtoucr-tests: New file.
26806         * tests/unistr/test-u16-mbtoucr.c: New file.
26807
26808         Tests for module 'unistr/u8-mbtoucr'.
26809         * modules/unistr/u8-mbtoucr-tests: New file.
26810         * tests/unistr/test-u8-mbtoucr.c: New file.
26811
26812         Tests for module 'unistr/u32-mbtouc'.
26813         * modules/unistr/u32-mbtouc-tests: New file.
26814         * tests/unistr/test-u32-mbtouc.c: New file.
26815
26816         Tests for module 'unistr/u16-mbtouc'.
26817         * modules/unistr/u16-mbtouc-tests: New file.
26818         * tests/unistr/test-u16-mbtouc.c: New file.
26819
26820         Tests for module 'unistr/u8-mbtouc'.
26821         * modules/unistr/u8-mbtouc-tests: New file.
26822         * tests/unistr/test-u8-mbtouc.c: New file.
26823
26824         Tests for module 'unistr/u32-mbtouc-unsafe'.
26825         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
26826         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
26827         * tests/unistr/test-u32-mbtouc.h: New file.
26828
26829         Tests for module 'unistr/u16-mbtouc-unsafe'.
26830         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
26831         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
26832         * tests/unistr/test-u16-mbtouc.h: New file.
26833
26834         Tests for module 'unistr/u8-mbtouc-unsafe'.
26835         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
26836         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
26837         * tests/unistr/test-u8-mbtouc.h: New file.
26838
26839         Tests for module 'unistr/u32-mblen'.
26840         * modules/unistr/u32-mblen-tests: New file.
26841         * tests/unistr/test-u32-mblen.c: New file.
26842
26843         Tests for module 'unistr/u16-mblen'.
26844         * modules/unistr/u16-mblen-tests: New file.
26845         * tests/unistr/test-u16-mblen.c: New file.
26846
26847         Tests for module 'unistr/u8-mblen'.
26848         * modules/unistr/u8-mblen-tests: New file.
26849         * tests/unistr/test-u8-mblen.c: New file.
26850
26851         Tests for module 'unistr/u32-to-u16'.
26852         * modules/unistr/u32-to-u16-tests: New file.
26853         * tests/unistr/test-u32-to-u16.c: New file.
26854
26855         Tests for module 'unistr/u32-to-u8'.
26856         * modules/unistr/u32-to-u8-tests: New file.
26857         * tests/unistr/test-u32-to-u8.c: New file.
26858
26859         Tests for module 'unistr/u16-to-u32'.
26860         * modules/unistr/u16-to-u32-tests: New file.
26861         * tests/unistr/test-u16-to-u32.c: New file.
26862
26863         Tests for module 'unistr/u16-to-u8'.
26864         * modules/unistr/u16-to-u8-tests: New file.
26865         * tests/unistr/test-u16-to-u8.c: New file.
26866
26867         Tests for module 'unistr/u8-to-u32'.
26868         * modules/unistr/u8-to-u32-tests: New file.
26869         * tests/unistr/test-u8-to-u32.c: New file.
26870
26871         Tests for module 'unistr/u8-to-u16'.
26872         * modules/unistr/u8-to-u16-tests: New file.
26873         * tests/unistr/test-u8-to-u16.c: New file.
26874
26875         Tests for module 'unistr/u32-check'.
26876         * modules/unistr/u32-check-tests: New file.
26877         * tests/unistr/test-u32-check.c: New file.
26878
26879         Tests for module 'unistr/u16-check'.
26880         * modules/unistr/u16-check-tests: New file.
26881         * tests/unistr/test-u16-check.c: New file.
26882
26883         Tests for module 'unistr/u8-check'.
26884         * modules/unistr/u8-check-tests: New file.
26885         * tests/unistr/test-u8-check.c: New file.
26886
26887         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
26888         (category_equals): New function.
26889         (main): Add more tests.
26890         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
26891
26892         * tests/unictype/test-bidi_byname.c (main): Add more tests.
26893
26894 2010-01-10  Bruno Haible  <bruno@clisp.org>
26895
26896         unistr/u*-strcoll: Try harder to distinguish different strings.
26897         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
26898         compare s1 and s2 to see if they are different.
26899
26900 2010-01-10  Bruno Haible  <bruno@clisp.org>
26901
26902         unistr/u*-stpncpy: Fix the return value.
26903         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
26904         description of the return value consistent with stpncpy in glibc.
26905         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
26906         written non-NUL unit.
26907
26908 2010-01-10  Bruno Haible  <bruno@clisp.org>
26909
26910         unistr/u*-next: Add missing dependencies.
26911         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
26912         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
26913         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
26914
26915 2010-01-10  Bruno Haible  <bruno@clisp.org>
26916
26917         unistr/u8-mbsnlen: Fix return value for incomplete character.
26918         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
26919         u8_mblen.
26920         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
26921         Remove unistr/u8-mblen.
26922         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
26923         u16_mblen.
26924         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
26925         Remove unistr/u16-mblen.
26926
26927 2010-01-10  Bruno Haible  <bruno@clisp.org>
26928
26929         wchar: Fix compilation error when <wchar.h> is used from coreutils.
26930         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
26931         Reported by Brian Gough <bjg@gnu.org> and
26932         Chris Clayton <chris2553@googlemail.com> via
26933         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
26934
26935 2010-01-09  Bruno Haible  <bruno@clisp.org>
26936
26937         unistr/u16-to-u32: Reject invalid input.
26938         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
26939         u16_mbtouc.
26940         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
26941         Remove unistr/u16-mbtouc.
26942
26943         unistr/u16-to-u8: Reject invalid input.
26944         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
26945         u16_mbtouc.
26946         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
26947         Remove unistr/u16-mbtouc.
26948
26949         unistr/u8-to-u32: Reject invalid input.
26950         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
26951         u8_mbtouc.
26952         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
26953         Remove unistr/u8-mbtouc.
26954
26955         unistr/u8-to-u16: Reject invalid input.
26956         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
26957         u8_mbtouc.
26958         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
26959         Remove unistr/u8-mbtouc.
26960
26961 2010-01-09  Bruno Haible  <bruno@clisp.org>
26962
26963         Tests for module 'getlogin'.
26964         * modules/getlogin-tests: New file.
26965         * tests/test-getlogin.c: New file.
26966
26967         New module 'getlogin'.
26968         * lib/unistd.in.h (getlogin): New declaration.
26969         * lib/getlogin.c: New file.
26970         * m4/getlogin.m4: New file.
26971         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
26972         HAVE_GETLOGIN.
26973         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
26974         HAVE_GETLOGIN.
26975         * modules/getlogin: New file.
26976         * doc/posix-functions/getlogin.texi: Mention the new module.
26977         Reported by John W. Eaton <jwe@gnu.org>.
26978
26979 2010-01-09  Bruno Haible  <bruno@clisp.org>
26980
26981         getlogin_r: Support for native Windows.
26982         * lib/getlogin_r.c: Include <windows.h>
26983         (getlogin_r): Implement for native Windows.
26984         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
26985         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
26986         via John W. Eaton <jwe@gnu.org>.
26987
26988 2010-01-09  Bruno Haible  <bruno@clisp.org>
26989
26990         getlogin_r: Small fixes.
26991         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
26992         succeeds.
26993         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
26994         before testing whether getlogin_r is declared. No need to set
26995         HAVE_DECL_GETLOGIN_R to 1.
26996         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
26997
26998 2010-01-09  Bruno Haible  <bruno@clisp.org>
26999
27000         * lib/unistd.in.h (getlogin_r): Add comment.
27001
27002 2010-01-09  Bruno Haible  <bruno@clisp.org>
27003
27004         Tests for module 'getlogin_r'.
27005         * modules/getlogin_r-tests: New file.
27006         * tests/test-getlogin_r.c: New file.
27007
27008 2010-01-09  Jim Meyering  <meyering@redhat.com>
27009
27010         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
27011         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
27012         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
27013
27014 2010-01-08  Simon Josefsson  <simon@josefsson.org>
27015
27016         * lib/dup2.c (rpl_dup2): Improve comment.
27017
27018 2010-01-08  Eric Blake  <ebb9@byu.net>
27019
27020         maint.mk: allow packages to add makefile @@ exceptions
27021         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
27022         (sc_makefile_check): Rename...
27023         (sc_makefile_at_at_check): ...to this, and use hook.
27024
27025         dup2: work around mingw bug
27026         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
27027         Reported by Simon Josefsson.
27028
27029 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
27030
27031         glob: Fix C++ compilation.
27032         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
27033         C++.
27034
27035 2010-01-07  Bruno Haible  <bruno@clisp.org>
27036
27037         Fix indentation of wctype.in.h, broken since 2007-01-06.
27038         * lib/wctype.in.h: Fix indentation of preprocessor directives.
27039
27040 2010-01-07  Bruno Haible  <bruno@clisp.org>
27041
27042         mbslen: Avoid collision with system function.
27043         * lib/string.in.h [MirBSD]: Include <wchar.h>.
27044         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
27045         * m4/mbslen.m4: New file.
27046         * modules/mbslen (Files): Add it.
27047         (configure.ac): Invoke gl_MBSLEN.
27048         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
27049         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
27050         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
27051         via Ian Beckwith <ianb@erislabs.net>.
27052
27053 2010-01-07  Bruno Haible  <bruno@clisp.org>
27054
27055         dirent: Document the last fix.
27056         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
27057
27058 2010-01-07  Bruno Haible  <bruno@clisp.org>
27059
27060         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
27061         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
27062         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
27063         va_list are defined.
27064         * doc/posix-headers/stdio.texi: Document the bug of missing types.
27065         Reported by Eric Blake.
27066
27067 2010-01-07  Bruno Haible  <bruno@clisp.org>
27068
27069         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
27070         * modules/xlist (Depends-on): Add 'list',
27071         * modules/xoset (Depends-on): Add 'oset'.
27072         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27073
27074 2010-01-07  Bruno Haible  <bruno@clisp.org>
27075
27076         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
27077         * doc/posix-functions/strncasecmp.texi: Likewise.
27078
27079 2010-01-07  Bruno Haible  <bruno@clisp.org>
27080
27081         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
27082
27083 2010-01-07  John W. Eaton  <jwe@octave.org>
27084
27085         wctype: allow C++ use
27086         * lib/wctype.in.h: Add extern "C" block for C++.
27087
27088 2010-01-06  Eric Blake  <ebb9@byu.net>
27089
27090         maint.mk: detect incorrect GFDL usage
27091         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
27092
27093 2010-01-06  Jim Meyering  <meyering@redhat.com>
27094         and Eric Blake  <ebb9@byu.net>
27095
27096         maint.mk: ignore multi-line copyright in NEWS
27097         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
27098
27099 2010-01-06  Eric Blake  <ebb9@byu.net>
27100
27101         select: add missing dependency
27102         * modules/select-tests (Depends-on): Move sockets dependency...
27103         * modules/select (Depends-on): ...here.
27104         Reported by Ian Beckwith.
27105
27106         doc: regenerate INSTALL
27107         * doc/INSTALL: Reflect recent autoconf update.
27108         * doc/INSTALL.ISO: Likewise.
27109         * doc/INSTALL.UTF-8: Likewise.
27110
27111         pread: fix compilation on glibc
27112         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
27113         Reported by Ralf Wildenhues.
27114
27115         dirent: fix test failure
27116         * lib/dirent.in.h (includes): Guarantee ino_t.
27117         Reported by Ralf Wildenhues.
27118
27119 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
27120
27121         linkat, renameat: avoid bad free
27122         * lib/at-func2.c (at_func2): Fix typo.
27123         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
27124
27125 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27126
27127         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
27128         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
27129         to avoid failure of symlink test later.
27130
27131 2010-01-06  Eric Blake  <ebb9@byu.net>
27132
27133         stdio, unistd: guarantee ssize_t
27134         * lib/unistd.in.h (includes): Ensure that types required by POSIX
27135         2008 are exposed when needed.
27136         * lib/stdio.in.h (includes): Likewise.
27137         Reported by Ralf Wildenhues.
27138
27139 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
27140
27141         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
27142         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
27143         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
27144
27145 2010-01-06  Jim Meyering  <meyering@redhat.com>
27146
27147         readtokens: this module *does* require xalloc.h
27148         It uses only functions that were omitted by the old syntax-check rule.
27149         * lib/readtokens.c: Include "xalloc.h" once again.
27150         * modules/readtokens (Depends-on): Add xalloc.
27151         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
27152
27153 2010-01-05  Eric Blake  <ebb9@byu.net>
27154
27155         maint: support 'make announcement' from a VPATH build
27156         * top/maint.mk (announcement): Look for correct NEWS file.
27157
27158 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
27159
27160         utimens (fdutimens): ignore a negative FD, per contract
27161         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
27162         when we have a valid file descriptor.  Otherwise, using a brand
27163         new glibc (with just-patched futimens that now fails with EBADF)
27164         would cause this function to fail with ENOSYS.
27165         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
27166         See also http://bugzilla.redhat.com/552320.
27167
27168 2010-01-05  Eric Blake  <ebb9@byu.net>
27169
27170         strcase: document what it provides
27171         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
27172         gnulib module.
27173         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
27174         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
27175
27176 2010-01-05  Jim Meyering  <meyering@redhat.com>
27177
27178         maint: remove useless inclusions of "xalloc.h"
27179         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
27180         * lib/readtokens.c: Likewise.
27181         * lib/same.c: Likewise.
27182         * modules/getloadavg (Depends-on): Remove xalloc.
27183         * modules/readtokens: Likewise.
27184         * modules/same: Likewise.
27185
27186         maint.mk: include 4 more function names in alloca.h-checking regexp
27187         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
27188         regexp.  Before, we would give a false-positive (saying alloca.h
27189         is included unnecessarily) when the only uses involved omitted symbols.
27190
27191         xalloc.h: use consistent formatting
27192         * lib/xalloc.h: Move declarations to start in the first column.
27193
27194 2010-01-05  Eric Blake  <ebb9@byu.net>
27195
27196         mkdir: avoid xalloc
27197         * lib/mkdir.c (includes): Drop unused header.
27198         Reported by John W. Eaton.
27199
27200 2010-01-04  Jim Meyering  <meyering@redhat.com>
27201
27202         nl_langinfo: avoid configure-time syntax error
27203         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
27204         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
27205         the empty string.  Don't let that provoke a shell syntax error.
27206
27207         regcomp, regexec, fnmatch: avoid array bounds read error
27208         * lib/regcomp.c (build_equiv_class): From glibc:
27209         Use only the low 24 bits of a findidx return value as an index
27210         into the weights array.  Patch by Ulrich Drepper:
27211         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
27212         * lib/regexec.c (check_node_accept_bytes): Likewise.
27213         * lib/fnmatch_loop.c (FCT): Likewise.
27214
27215         regcomp: skip collseq lookup when there are no rules
27216         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
27217         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
27218
27219         regcomp: recognize ill-formed { } expressions
27220         * lib/regcomp.c (parse_dup_op): From glibc:
27221         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
27222
27223         regcomp: fix typo in comment
27224         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
27225         s/satisfy/satisfies/.
27226
27227         regcomp: sync from glibc: remove dead store
27228         * lib/regcomp.c (duplicate_node_closure): Remove useless
27229         search_duplicated_node call and dead store.
27230
27231         regcomp: sync from glibc; always use nl_langinfo
27232         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
27233         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
27234         * modules/regex (Depends-on): Add nl_langinfo.
27235
27236 2010-01-04  Eric Blake  <ebb9@byu.net>
27237
27238         fdopendir: fix configure test
27239         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
27240
27241 2010-01-01  Bruno Haible  <bruno@clisp.org>
27242
27243         wchar: Remove unused configure check.
27244         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
27245
27246 2010-01-01  Eric Blake  <ebb9@byu.net>
27247
27248         headers: make check of system header explicit
27249         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
27250         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
27251         ourselves.
27252         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27253         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27254         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
27255         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
27256         internals.
27257         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
27258         missing.
27259         Suggested by Bruno Haible.
27260
27261 2010-01-01  Jim Meyering  <meyering@redhat.com>
27262
27263         ChangeLog: tweak to eliminate unnecessary copyright line
27264         * ChangeLog: Remove a copyright line that was mistakenly updated
27265         by today's update-copyright run.  Reported by Eric Blake.
27266
27267         test-update-copyright: don't let envvar setting cause test failure
27268         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
27269
27270 2010-01-01  Bruno Haible  <bruno@clisp.org>
27271
27272         localename: Avoid gcc warning.
27273         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
27274         function if it is not used.
27275
27276 2010-01-01  Jim Meyering  <meyering@redhat.com>
27277
27278         update nearly all FSF copyright year lists to include 2010
27279         Use the same procedure as for 2009, outlined in
27280         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
27281
27282         version-etc: set COPYRIGHT_YEAR to 2010
27283         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
27284
27285 2009-12-31  Eric Blake  <ebb9@byu.net>
27286
27287         doc: correct availability of cygwin 1.5.x getopt
27288         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
27289         variables.
27290         * doc/posix-functions/opterr.texi (opterr): Likewise.
27291         * doc/posix-functions/optind.texi (optind): Likewise.
27292         * doc/posix-functions/optopt.texi (optopt): Likewise.
27293         * doc/posix-functions/tzname.texi (tzname): Likewise.
27294
27295         openat: update maintainer
27296         * modules/openat (Maintainer): Add myself.
27297
27298         utimens: avoid shadowing warning
27299         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
27300         buffers into one, to avoid shadowing, as well as avoiding a
27301         redundant stat.
27302         Reported by Jim Meyering.
27303
27304         test-dup2: avoid compiler warning
27305         * tests/test-dup2.c (is_inheritable): Only define if used.
27306
27307 2010-01-01  Bruno Haible  <bruno@clisp.org>
27308
27309         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
27310         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
27311         defined, use wctomb instead of wcrtomb.
27312
27313 2010-01-01  Bruno Haible  <bruno@clisp.org>
27314
27315         iconv: Reject native Solaris iconv.
27316         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
27317         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
27318
27319 2009-12-31  Bruno Haible  <bruno@clisp.org>
27320
27321         * tests/test-signal.c (main): Remove test of 'SIG'.
27322
27323 2009-12-31  Bruno Haible  <bruno@clisp.org>
27324
27325         spawn: Fix incomplete fix.
27326         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
27327         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
27328         warnings for GNULIB_POSIXCHECK again.
27329         Reported by Eric Blake.
27330
27331 2009-12-31  Bruno Haible  <bruno@clisp.org>
27332
27333         Avoid namespace pollution on glibc systems.
27334         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
27335         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
27336         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
27337         glibc systems.
27338
27339 2009-12-31  Bruno Haible  <bruno@clisp.org>
27340
27341         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
27342         (gl_REPLACE_WCHAR_H): Turn into a no-op.
27343         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
27344         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
27345         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
27346         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
27347         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
27348
27349 2009-12-31  Bruno Haible  <bruno@clisp.org>
27350
27351         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
27352         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
27353         afterwards.
27354
27355 2009-12-31  Bruno Haible  <bruno@clisp.org>
27356
27357         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
27358         SYS_UTSNAME_H.
27359
27360 2009-12-31  Bruno Haible  <bruno@clisp.org>
27361
27362         spawn: Fix misapplied patch.
27363         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
27364         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
27365         warnings for GNULIB_POSIXCHECK.
27366
27367 2009-12-31  Bruno Haible  <bruno@clisp.org>
27368
27369         times: Update after sys_times changed.
27370         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
27371         * modules/times (Files): Add it.
27372         (configure.ac): Invoke gl_FUNC_TIMES.
27373
27374 2009-12-31  Bruno Haible  <bruno@clisp.org>
27375
27376         Use AC_C_INLINE where necessary.
27377         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
27378         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
27379         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
27380         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
27381         * m4/mbfile.m4 (gl_MBFILE): Likewise.
27382         * m4/mbiter.m4 (gl_MBITER): Likewise.
27383         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
27384         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27385         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
27386         * modules/u64 (configure.ac): Likewise.
27387
27388 2009-12-31  Bruno Haible  <bruno@clisp.org>
27389
27390         Use AC_C_INLINE instead of module 'inline' where possible.
27391         * modules/inline (Description): Clarify purpose.
27392         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
27393         * modules/count-one-bits (Depends-on): Remove inline.
27394         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
27395         * modules/openat (Depends-on): Remove inline.
27396         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
27397         instead of depending on module 'inline'.
27398         * modules/filevercmp (Depends-on, configure.ac): Likewise.
27399         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
27400         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
27401         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
27402         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
27403         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
27404         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
27405         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
27406         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
27407         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
27408         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
27409         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
27410         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
27411         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
27412         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
27413         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
27414         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
27415         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
27416         Likewise.
27417         * modules/unictype/property-ascii-hex-digit (Depends-on,
27418         configure.ac): Likewise.
27419         * modules/unictype/property-bidi-arabic-digit (Depends-on,
27420         configure.ac): Likewise.
27421         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
27422         configure.ac): Likewise.
27423         * modules/unictype/property-bidi-block-separator (Depends-on,
27424         configure.ac): Likewise.
27425         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
27426         configure.ac): Likewise.
27427         * modules/unictype/property-bidi-common-separator (Depends-on,
27428         configure.ac): Likewise.
27429         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
27430         Likewise.
27431         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
27432         configure.ac): Likewise.
27433         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
27434         configure.ac): Likewise.
27435         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
27436         configure.ac): Likewise.
27437         * modules/unictype/property-bidi-european-digit (Depends-on,
27438         configure.ac): Likewise.
27439         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
27440         configure.ac): Likewise.
27441         * modules/unictype/property-bidi-left-to-right (Depends-on,
27442         configure.ac): Likewise.
27443         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
27444         configure.ac): Likewise.
27445         * modules/unictype/property-bidi-other-neutral (Depends-on,
27446         configure.ac): Likewise.
27447         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
27448         Likewise.
27449         * modules/unictype/property-bidi-segment-separator (Depends-on,
27450         configure.ac): Likewise.
27451         * modules/unictype/property-bidi-whitespace (Depends-on,
27452         configure.ac): Likewise.
27453         * modules/unictype/property-combining (Depends-on, configure.ac):
27454         Likewise.
27455         * modules/unictype/property-composite (Depends-on, configure.ac):
27456         Likewise.
27457         * modules/unictype/property-currency-symbol (Depends-on,
27458         configure.ac): Likewise.
27459         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
27460         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
27461         Likewise.
27462         * modules/unictype/property-default-ignorable-code-point (Depends-on,
27463         configure.ac): Likewise.
27464         * modules/unictype/property-deprecated (Depends-on, configure.ac):
27465         Likewise.
27466         * modules/unictype/property-diacritic (Depends-on, configure.ac):
27467         Likewise.
27468         * modules/unictype/property-extender (Depends-on, configure.ac):
27469         Likewise.
27470         * modules/unictype/property-format-control (Depends-on, configure.ac):
27471         Likewise.
27472         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
27473         Likewise.
27474         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
27475         Likewise.
27476         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
27477         Likewise.
27478         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
27479         Likewise.
27480         * modules/unictype/property-hyphen (Depends-on, configure.ac):
27481         Likewise.
27482         * modules/unictype/property-id-continue (Depends-on, configure.ac):
27483         Likewise.
27484         * modules/unictype/property-id-start (Depends-on, configure.ac):
27485         Likewise.
27486         * modules/unictype/property-ideographic (Depends-on, configure.ac):
27487         Likewise.
27488         * modules/unictype/property-ids-binary-operator (Depends-on,
27489         configure.ac): Likewise.
27490         * modules/unictype/property-ids-trinary-operator (Depends-on,
27491         configure.ac): Likewise.
27492         * modules/unictype/property-ignorable-control (Depends-on,
27493         configure.ac): Likewise.
27494         * modules/unictype/property-iso-control (Depends-on, configure.ac):
27495         Likewise.
27496         * modules/unictype/property-join-control (Depends-on, configure.ac):
27497         Likewise.
27498         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
27499         Likewise.
27500         * modules/unictype/property-line-separator (Depends-on, configure.ac):
27501         Likewise.
27502         * modules/unictype/property-logical-order-exception (Depends-on,
27503         configure.ac): Likewise.
27504         * modules/unictype/property-lowercase (Depends-on, configure.ac):
27505         Likewise.
27506         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
27507         * modules/unictype/property-non-break (Depends-on, configure.ac):
27508         Likewise.
27509         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
27510         Likewise.
27511         * modules/unictype/property-numeric (Depends-on, configure.ac):
27512         Likewise.
27513         * modules/unictype/property-other-alphabetic (Depends-on,
27514         configure.ac): Likewise.
27515         * modules/unictype/property-other-default-ignorable-code-point
27516         (Depends-on, configure.ac): Likewise.
27517         * modules/unictype/property-other-grapheme-extend (Depends-on,
27518         configure.ac): Likewise.
27519         * modules/unictype/property-other-id-continue (Depends-on,
27520         configure.ac): Likewise.
27521         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
27522         Likewise.
27523         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
27524         Likewise.
27525         * modules/unictype/property-other-math (Depends-on, configure.ac):
27526         Likewise.
27527         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
27528         Likewise.
27529         * modules/unictype/property-paired-punctuation (Depends-on,
27530         configure.ac): Likewise.
27531         * modules/unictype/property-paragraph-separator (Depends-on,
27532         configure.ac): Likewise.
27533         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
27534         Likewise.
27535         * modules/unictype/property-pattern-white-space (Depends-on,
27536         configure.ac): Likewise.
27537         * modules/unictype/property-private-use (Depends-on, configure.ac):
27538         Likewise.
27539         * modules/unictype/property-punctuation (Depends-on, configure.ac):
27540         Likewise.
27541         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
27542         Likewise.
27543         * modules/unictype/property-radical (Depends-on, configure.ac):
27544         Likewise.
27545         * modules/unictype/property-sentence-terminal (Depends-on,
27546         configure.ac): Likewise.
27547         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
27548         Likewise.
27549         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
27550         * modules/unictype/property-terminal-punctuation (Depends-on,
27551         configure.ac): Likewise.
27552         * modules/unictype/property-titlecase (Depends-on, configure.ac):
27553         Likewise.
27554         * modules/unictype/property-unassigned-code-value (Depends-on,
27555         configure.ac): Likewise.
27556         * modules/unictype/property-unified-ideograph (Depends-on,
27557         configure.ac): Likewise.
27558         * modules/unictype/property-uppercase (Depends-on, configure.ac):
27559         Likewise.
27560         * modules/unictype/property-variation-selector (Depends-on,
27561         configure.ac): Likewise.
27562         * modules/unictype/property-white-space (Depends-on, configure.ac):
27563         Likewise.
27564         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
27565         Likewise.
27566         * modules/unictype/property-xid-start (Depends-on, configure.ac):
27567         Likewise.
27568         * modules/unictype/property-zero-width (Depends-on, configure.ac):
27569         Likewise.
27570         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
27571         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
27572         Likewise.
27573
27574 2009-12-31  Bruno Haible  <bruno@clisp.org>
27575
27576         Remove unnecessary AC_C_INLINE invocation.
27577         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
27578         since 2009-08-21.
27579
27580 2009-12-31  Jim Meyering  <meyering@redhat.com>
27581
27582         maint.mk: don't require explicit gpg_key_ID in cfg.mk
27583         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
27584         With this change, we can all remove the gpg_key_ID = ... definition
27585         from our respective cfg.mk files.
27586
27587         maint.mk: create announcement template in ~/, not in /tmp
27588         * top/maint.mk (emit_upload_commands): Adjust.
27589         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
27590         Remove temporary file, .ci-msg.
27591
27592 2009-12-31  Eric Blake  <ebb9@byu.net>
27593
27594         link-warning: always build headers with link warnings
27595         * modules/arpa_inet (Makefile.am): Always build replacement
27596         header.
27597         * modules/ctype (Makefile.am): Likewise.
27598         * modules/dirent (Makefile.am): Likewise.
27599         * modules/inttypes (Makefile.am): Likewise.
27600         * modules/langinfo (Makefile.am): Likewise.
27601         * modules/locale (Makefile.am): Likewise.
27602         * modules/spawn (Makefile.am): Likewise.
27603         * modules/sys_file (Makefile.am): Likewise.
27604         * modules/sys_ioctl (Makefile.am): Likewise.
27605         * modules/sys_select (Makefile.am): Likewise.
27606         * modules/sys_socket (Makefile.am): Likewise.
27607         * modules/sys_times (Makefile.am): Likewise.
27608         * modules/sys_utsname (Makefile.am): Likewise.
27609         * modules/sys_wait (Makefile.am): Likewise.
27610         * modules/wchar (Makefile.am): Likewise.
27611         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
27612         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
27613         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
27614         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
27615         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
27616         Likewise.
27617         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
27618         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27619         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
27620         Likewise.
27621         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
27622         Likewise.
27623         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
27624         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
27625         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
27626         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27627         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27628         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
27629         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
27630         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
27631         (gl_WCHAR_H_DEFAULTS): Likewise.
27632
27633 2009-12-31  Eric Blake  <ebb9@byu.net>
27634
27635         signal, spawn: use link warnings
27636         * lib/signal.in.h (sigset_t): Make unconditional.
27637         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
27638         (sigpending, sigprocmask, sigaction): Add link warnings.
27639         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
27640         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
27641         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
27642         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
27643         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
27644         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
27645         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
27646         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
27647         (posix_spawn_file_actions_destroy)
27648         (posix_spawn_file_actions_addopen)
27649         (posix_spawn_file_actions_addclose)
27650         (posix_spawn_file_actions_adddup2): Likewise.
27651         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
27652         * tests/test-signal.c (main): Enhance test.
27653
27654         spawn: improve wrapper support
27655         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
27656         (gl_SPAWN_H_DEFAULTS): New defaults.
27657         * modules/spawn (Makefile.am): Substitute them.
27658         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
27659         Only declare if missing or broken.
27660
27661         sys_times, sys_utsname: use include_next
27662         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
27663         header.
27664         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
27665         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
27666         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
27667         * modules/sys_times (Depends-on): Add include_next.
27668         (Makefile.am): Substitute additional values.
27669         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
27670         * lib/sys_times.in.h (includes): Include native header, if
27671         available.
27672         * lib/sys_utsname.in.h (includes): Likewise.
27673         * tests/test-sys_times.c (main): Enhance test.
27674
27675         fdutimensat: revert prior patch
27676         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
27677         utimens.h.
27678         Reported by Bruno Haible.
27679
27680 2009-12-30  Eric Blake  <ebb9@byu.net>
27681
27682         sys_wait: drop link-warning dependency
27683         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
27684         link-warning efforts.
27685         * lib/sys_wait.in.h: Likewise.
27686
27687         fdutimensat: remove bogus dependency
27688         * modules/fdutimensat (Depends-on): Drop inline.
27689
27690         unistd: fix typo
27691         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
27692
27693 2009-12-30  Bruno Haible  <bruno@clisp.org>
27694
27695         Fix compilation error with Solaris cc.
27696         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
27697         * lib/unicase/u16-is-invariant.c: Likewise.
27698         * lib/unicase/u32-is-invariant.c: Likewise.
27699         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
27700
27701 2009-12-30  Bruno Haible  <bruno@clisp.org>
27702
27703         Fix test crash.
27704         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
27705         locales.
27706         Reported by Simon Josefsson <simon@josefsson.org>.
27707
27708 2009-12-30  Bruno Haible  <bruno@clisp.org>
27709
27710         Fix compilation error on most platforms.
27711         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
27712         Reported by Simon Josefsson <simon@josefsson.org>
27713         and Nelson H. F. Beebe <beebe@math.utah.edu>.
27714
27715 2009-12-30  Eric Blake  <ebb9@byu.net>
27716
27717         futimens, utimensat: work around ntfs-3g bug
27718         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
27719         a ctime bug is present, and expand workaround to cover ntfs-3g.
27720         * lib/utimens.c (fdutimens, lutimens): Likewise.
27721         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
27722         (validate_timespec): Adjust return value.
27723         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
27724         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27725         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
27726
27727 2009-12-29  Eric Blake  <ebb9@byu.net>
27728
27729         link-warning: make usage consistent
27730         * modules/ctype (Depends-on): Add link-warning.
27731         (Makefile.am): Update rules accordingly.
27732         * modules/langinfo (Depends-on, Makefile.am): Likewise.
27733         * modules/locale (Depends-on, Makefile.am): Likewise.
27734         * modules/sys_file (Makefile.am): Likewise.
27735         * modules/getopt-posix (Makefile.am): Delete unused link warning
27736         efforts.
27737         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
27738         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
27739         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
27740         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
27741
27742         stdio: remove unused variables
27743         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
27744         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
27745         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27746
27747         tests: test more substitute headers
27748         * modules/ctype-tests: New file.
27749         * modules/dirent-tests: Likewise.
27750         * modules/spawn-tests: Likewise.
27751         * modules/sys_file-tests: Likewise.
27752         * modules/sys_ioctl-tests: Likewise.
27753         * modules/sys_wait-tests: Likewise.
27754         * tests/test-ctype.c: Likewise.
27755         * tests/test-dirent.c: Likewise.
27756         * tests/test-spawn.c: Likewise.
27757         * tests/test-sys_file.c: Likewise.
27758         * tests/test-sys_ioctl.c: Likewise.
27759         * tests/test-sys_wait.c: Likewise.
27760         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
27761         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
27762         whether or not flock is in use.
27763
27764         tests: remove License section from module
27765         * modules/arpa_inet-tests: Remove unneeded section.
27766         * modules/byteswap-tests: Likewise.
27767         * modules/ceilf-tests: Likewise.
27768         * modules/ceill-tests: Likewise.
27769         * modules/crypto/des-tests: Likewise.
27770         * modules/crypto/gc-arcfour-tests: Likewise.
27771         * modules/crypto/gc-arctwo-tests: Likewise.
27772         * modules/crypto/gc-des-tests: Likewise.
27773         * modules/crypto/gc-hmac-md5-tests: Likewise.
27774         * modules/crypto/gc-hmac-sha1-tests: Likewise.
27775         * modules/crypto/gc-md2-tests: Likewise.
27776         * modules/crypto/gc-md4-tests: Likewise.
27777         * modules/crypto/gc-md5-tests: Likewise.
27778         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
27779         * modules/crypto/gc-rijndael-tests: Likewise.
27780         * modules/crypto/gc-sha1-tests: Likewise.
27781         * modules/crypto/gc-tests: Likewise.
27782         * modules/crypto/md2-tests: Likewise.
27783         * modules/crypto/md4-tests: Likewise.
27784         * modules/fcntl-h-tests: Likewise.
27785         * modules/floorf-tests: Likewise.
27786         * modules/floorl-tests: Likewise.
27787         * modules/frexp-nolibm-tests: Likewise.
27788         * modules/frexp-tests: Likewise.
27789         * modules/frexpl-nolibm-tests: Likewise.
27790         * modules/frexpl-tests: Likewise.
27791         * modules/getaddrinfo-tests: Likewise.
27792         * modules/inttypes-tests: Likewise.
27793         * modules/isfinite-tests: Likewise.
27794         * modules/isinf-tests: Likewise.
27795         * modules/ldexpl-tests: Likewise.
27796         * modules/locale-tests: Likewise.
27797         * modules/math-tests: Likewise.
27798         * modules/netdb-tests: Likewise.
27799         * modules/netinet_in-tests: Likewise.
27800         * modules/printf-frexp-tests: Likewise.
27801         * modules/printf-frexpl-tests: Likewise.
27802         * modules/priv-set-tests: Likewise.
27803         * modules/random_r-tests: Likewise.
27804         * modules/round-tests: Likewise.
27805         * modules/roundf-tests: Likewise.
27806         * modules/roundl-tests: Likewise.
27807         * modules/search-tests: Likewise.
27808         * modules/select-tests: Likewise.
27809         * modules/signal-tests: Likewise.
27810         * modules/stdbool-tests: Likewise.
27811         * modules/stddef-tests: Likewise.
27812         * modules/stdint-tests: Likewise.
27813         * modules/stdio-tests: Likewise.
27814         * modules/stdlib-tests: Likewise.
27815         * modules/string-tests: Likewise.
27816         * modules/strings-tests: Likewise.
27817         * modules/sys_select-tests: Likewise.
27818         * modules/sys_socket-tests: Likewise.
27819         * modules/sys_stat-tests: Likewise.
27820         * modules/sys_time-tests: Likewise.
27821         * modules/sys_utsname-tests: Likewise.
27822         * modules/sysexits-tests: Likewise.
27823         * modules/time-tests: Likewise.
27824         * modules/trunc-tests: Likewise.
27825         * modules/truncf-tests: Likewise.
27826         * modules/truncl-tests: Likewise.
27827         * modules/tsearch-tests: Likewise.
27828         * modules/unistd-tests: Likewise.
27829         * modules/wchar-tests: Likewise.
27830         * modules/wctype-tests: Likewise.
27831
27832         tests: fix license on several tests
27833         * tests/test-des.c: Update to GPLv3+.
27834         * tests/test-flock.c: Likewise.
27835         * tests/test-fsync.c: Likewise.
27836         * tests/test-futimens.h: Likewise.
27837         * tests/test-gc-arcfour.c: Likewise.
27838         * tests/test-gc-arctwo.c: Likewise.
27839         * tests/test-gc-des.c: Likewise.
27840         * tests/test-gc-hmac-md5.c: Likewise.
27841         * tests/test-gc-hmac-sha1.c: Likewise.
27842         * tests/test-gc-md2.c: Likewise.
27843         * tests/test-gc-md4.c: Likewise.
27844         * tests/test-gc-md5.c: Likewise.
27845         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27846         * tests/test-gc-rijndael.c: Likewise.
27847         * tests/test-gc-sha1.c: Likewise.
27848         * tests/test-gc.c: Likewise.
27849         * tests/test-getcwd.c: Likewise.
27850         * tests/test-link.c: Likewise.
27851         * tests/test-link.h: Likewise.
27852         * tests/test-lutimens.h: Likewise.
27853         * tests/test-md2.c: Likewise.
27854         * tests/test-md4.c: Likewise.
27855         * tests/test-mkdir.h: Likewise.
27856         * tests/test-rename.c: Likewise.
27857         * tests/test-rename.h: Likewise.
27858         * tests/test-safe-alloc.c: Likewise.
27859         * tests/test-utimens-common.h: Likewise.
27860         * tests/test-utimens.h: Likewise.
27861
27862         maint: sync license texts
27863         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
27864         * doc/gpl-3.0.texi: Revert copyright year update.
27865         * doc/lgpl-3.0.texi: Likewise.
27866
27867 2009-12-29  Jim Meyering  <meyering@redhat.com>
27868
27869         update nearly all FSF copyright year lists to include 2009
27870         The files named by the following are exempted:
27871             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
27872               test -f "$dst" && { echo "$dst"; continue; }
27873               test -d "$dst" || continue
27874               echo "$dst"/$(basename "$src")
27875             done > exempt
27876             git ls-files tests/unictype >> exempt
27877         In the remaining files, convert to all-interval notation if
27878         - there is already at least one year interval like 2000-2003
27879         - the file is maintained by me
27880         - the file is in lib/uni*/, where that style already prevails
27881         Otherwise, use update-copyright's default.
27882
27883 2009-12-29  Simon Josefsson  <simon@josefsson.org>
27884         and Eric Blake  <ebb9@byu.net>
27885
27886         tests: don't require debug system() to pass
27887         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
27888         * tests/test-rmdir.h (test_rmdir_func): Likewise.
27889         * tests/test-unlink.h (test_unlink_func): Likewise.
27890         * tests/test-fstatat.c (main): ...into callers.
27891         * tests/test-lstat.c (main): Likewise.
27892         * tests/test-rmdir.c (main): Likewise.
27893         * tests/test-unlink.c (main): Likewise.
27894         * tests/test-unlinkat.c (main): Likewise.
27895         * tests/test-areadlink-with-size.c (main): Don't require a
27896         debug-only system call to pass, aiding cross-testing to mingw.
27897         * tests/test-areadlink.c (main): Likewise.
27898         * tests/test-areadlinkat-with-size.c (main): Likewise.
27899         * tests/test-areadlinkat.c (main): Likewise.
27900         * tests/test-canonicalize-lgpl.c (main): Likewise.
27901         * tests/test-canonicalize.c (main): Likewise.
27902         * tests/test-chown.c (main): Likewise.
27903         * tests/test-fchownat.c (main): Likewise.
27904         * tests/test-lchown.c (main): Likewise.
27905         * tests/test-fdutimensat.c (main): Likewise.
27906         * tests/test-futimens.c (main): Likewise.
27907         * tests/test-link.c (main): Likewise.
27908         * tests/test-linkat.c (main): Likewise.
27909         * tests/test-mkdir.c (main): Likewise.
27910         * tests/test-mkdirat.c (main): Likewise.
27911         * tests/test-mkfifo.c (main): Likewise.
27912         * tests/test-mkfifoat.c (main): Likewise.
27913         * tests/test-mknod.c (main): Likewise.
27914         * tests/test-readlink.c (main): Likewise.
27915         * tests/test-remove.c (main): Likewise.
27916         * tests/test-rename.c (main): Likewise.
27917         * tests/test-renameat.c (main): Likewise.
27918         * tests/test-symlink.c (main): Likewise.
27919         * tests/test-symlinkat.c (main): Likewise.
27920         * tests/test-utimens.c (main): Likewise.
27921         * tests/test-utimensat.c (main): Likewise.
27922
27923 2009-12-29  Simon Josefsson  <simon@josefsson.org>
27924
27925         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
27926         on $(UNUSED_PARAMETER_H) to avoid build failure.
27927
27928 2009-12-28  Jim Meyering  <meyering@redhat.com>
27929
27930         update-copyright: you may specify a max. line length other than 72
27931         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
27932
27933         maint: use consistent FSF copyright line syntax
27934         * lib/posixtm.c: Add missing comma in FSF copyright line.
27935         * lib/posixtm.h: Likewise.
27936         * lib/getugroups.c: Add missing ", Inc.".
27937
27938         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
27939         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
27940         FSF copyright line.  Remove trailing blanks.
27941
27942 2009-12-28  Eric Blake  <ebb9@byu.net>
27943
27944         test-dup2: reduce dependencies
27945         * modules/cloexec (Configure.ac): Set witness.
27946         * modules/dup2-tests (Depends-on): Drop cloexec.
27947         * tests/test-dup2.c (main): Skip portion of test if cloexec module
27948         not present.
27949         Suggested by Bruno Haible.
27950
27951 2009-12-26  Bruno Haible  <bruno@clisp.org>
27952
27953         Remove an unneeded dependency.
27954         * modules/fseterr (Depends-on): Remove dup2.
27955
27956 2009-12-26  Eric Blake  <ebb9@byu.net>
27957
27958         tests: use macros.h in more places
27959         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
27960         (ASSERT_STREAM): Provide default of stderr.
27961         * tests/test-dirent-safer.c: Include macros.h, using alternate
27962         stream for assertions.
27963         * tests/test-dup-safer.c: Likewise.
27964         * tests/test-freopen-safer.c: Likewise.
27965         * tests/test-getopt.c: Likewise.
27966         * tests/test-openat-safer.c: Likewise.
27967         * tests/test-pipe.c: Likewise.
27968         * tests/test-popen-safer.c: Likewise.
27969         * modules/dirent-safer-tests (Files): Include macros.h.
27970         * modules/unistd-safer-tests (Files): Likewise.
27971         * modules/freopen-safer-tests (Files): Likewise.
27972         * modules/getopt-posix-tests (Files): Likewise.
27973         * modules/openat-safer-tests (Files): Likewise.
27974         * modules/pipe-tests (Files): Likewise.
27975
27976 2009-12-26  Bruno Haible  <bruno@clisp.org>
27977
27978         javacomp: Portability fix.
27979         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
27980         that it also works on Solaris.
27981
27982 2009-12-26  Bruno Haible  <bruno@clisp.org>
27983
27984         localename: Fix storage allocation of gl_locale_name_thread's result.
27985         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
27986         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
27987         all platforms that have 'uselocale'.
27988         (gl_locale_name_thread_unsafe): New function, extracted from
27989         gl_locale_name_thread.
27990         (gl_locale_name_thread): Call struniq on all platforms that have
27991         'uselocale'.
27992         * tests/test-localename.c (test_locale_name_thread): Check that the
27993         resulting strings are permanently allocated.
27994         * modules/localename-tests (Depends-on): Add strdup.
27995
27996 2009-12-26  Bruno Haible  <bruno@clisp.org>
27997
27998         * tests/test-localename.c (categories): Fill in the strings.
27999
28000 2009-12-26  Jim Meyering  <meyering@redhat.com>
28001
28002         isdir: complete the removal of m4/isdir.m4
28003         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
28004
28005         isdir: clean up, since at least grep still uses it
28006         * lib/isdir.c: Include "isdir.h".
28007         (S_ISDIR): Remove now-unneeded definition.
28008         * modules/isdir (Files): Add lib/isdir.h.
28009         * lib/isdir.h: New file, with declaration.
28010         * m4/isdir.m4: Remove file -- unneeded.
28011
28012 2009-12-25  Bruno Haible  <bruno@clisp.org>
28013
28014         selinux-h: Make generated .h files standalone.
28015         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
28016         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
28017         * lib/se-selinux.in.h: Likewise.
28018         * modules/selinux-h (Depends-on): Add unused-parameter.
28019         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
28020         selinux/selinux.h and selinux/context.h.
28021         Suggested by Eric Blake.
28022
28023 2009-12-25  Bruno Haible  <bruno@clisp.org>
28024
28025         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
28026         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
28027         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
28028         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
28029         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
28030
28031 2009-12-24  Bruno Haible  <bruno@clisp.org>
28032
28033         openat: Fix warning.
28034         * lib/openat-proc.c: Include <unistd.h>.
28035
28036 2009-12-24  Bruno Haible  <bruno@clisp.org>
28037
28038         New module 'unused-parameter'.
28039         * build-aux/unused-parameter.h: New file, extracted from earlier
28040         gnulib-common.m4.
28041         * modules/unused-parameter: New file.
28042         * lib/unistr.h: Include unused-parameter.h.
28043         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
28044         _GL_UNUSED.
28045         * modules/unistr/base (Depends-on): Add unused-parameter.
28046
28047 2009-12-24  Bruno Haible  <bruno@clisp.org>
28048
28049         Add missing dependencies to 'extensions' module.
28050         * m4/extensions.m4: Add comment.
28051         * modules/accept4 (Depends-on): Add extensions.
28052         * modules/dup3 (Depends-on): Likewise.
28053         * modules/fcntl (Depends-on): Likewise.
28054         * modules/futimens (Depends-on): Likewise.
28055         * modules/mknod (Depends-on): Likewise.
28056         * modules/pipe2 (Depends-on): Likewise.
28057         * modules/stat-time (Depends-on): Likewise.
28058         * modules/strcasestr-simple (Depends-on): Likewise.
28059         * modules/strsignal (Depends-on): Likewise.
28060         * modules/utimensat (Depends-on): Likewise.
28061         * modules/localcharset (Depends-on): Likewise. Needed because of
28062         gl_FCNTL_O_FLAGS.
28063         * modules/wcrtomb (Depends-on): Likewise. Needed because of
28064         AC_TYPE_MBSTATE_T.
28065         * modules/wcsnrtombs (Depends-on): Likewise.
28066         * modules/wcsrtombs (Depends-on): Likewise.
28067
28068 2009-12-24  Bruno Haible  <bruno@clisp.org>
28069
28070         binary-io: Avoid gcc warning due to SET_BINARY.
28071         * lib/binary-io.h (SET_BINARY): Cast the result to void.
28072         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
28073
28074 2009-12-24  Bruno Haible  <bruno@clisp.org>
28075
28076         Avoid future namespace pollution on glibc systems.
28077         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
28078         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
28079         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
28080         glibc systems.
28081
28082 2009-12-24  Bruno Haible  <bruno@clisp.org>
28083
28084         Refactor common macros used in tests.
28085         * tests/macros.h: New file.
28086         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
28087         and/or <stdlib.h>, if appropriate.
28088         (ASSERT, SIZEOF): Remove macros.
28089         * tests/test-areadlink-with-size.c: Likewise.
28090         * tests/test-areadlinkat.c: Likewise.
28091         * tests/test-areadlinkat-with-size.c: Likewise.
28092         * tests/test-argmatch.c: Likewise.
28093         * tests/test-argv-iter.c: Likewise.
28094         * tests/test-array-mergesort.c: Likewise.
28095         * tests/test-array_list.c: Likewise.
28096         * tests/test-array_oset.c: Likewise.
28097         * tests/test-avltree_list.c: Likewise.
28098         * tests/test-avltree_oset.c: Likewise.
28099         * tests/test-avltreehash_list.c: Likewise.
28100         * tests/test-base64.c: Likewise.
28101         * tests/test-binary-io.c: Likewise.
28102         * tests/test-bitrotate.c: Likewise.
28103         * tests/test-btowc.c: Likewise.
28104         * tests/test-byteswap.c: Likewise.
28105         * tests/test-c-ctype.c: Likewise.
28106         * tests/test-c-stack.c: Likewise.
28107         * tests/test-c-strcasecmp.c: Likewise.
28108         * tests/test-c-strcasestr.c: Likewise.
28109         * tests/test-c-strncasecmp.c: Likewise.
28110         * tests/test-c-strstr.c: Likewise.
28111         * tests/test-canonicalize-lgpl.c: Likewise.
28112         * tests/test-canonicalize.c: Likewise.
28113         * tests/test-carray_list.c: Likewise.
28114         * tests/test-ceilf1.c: Likewise.
28115         * tests/test-ceilf2.c: Likewise.
28116         * tests/test-ceill.c: Likewise.
28117         * tests/test-chown.c: Likewise.
28118         * tests/test-cloexec.c: Likewise.
28119         * tests/test-copy-acl.c: Likewise.
28120         * tests/test-copy-file.c: Likewise.
28121         * tests/test-count-one-bits.c: Likewise.
28122         * tests/test-dprintf-posix.c: Likewise.
28123         * tests/test-dup2.c: Likewise.
28124         * tests/test-dup3.c: Likewise.
28125         * tests/test-duplocale.c: Likewise.
28126         * tests/test-fbufmode.c: Likewise.
28127         * tests/test-fchdir.c: Likewise.
28128         * tests/test-fchownat.c: Likewise.
28129         * tests/test-fcntl-safer.c: Likewise.
28130         * tests/test-fcntl.c: Likewise.
28131         * tests/test-fdopendir.c: Likewise.
28132         * tests/test-fdutimensat.c: Likewise.
28133         * tests/test-fflush2.c: Likewise.
28134         * tests/test-file-has-acl.c: Likewise.
28135         * tests/test-filevercmp.c: Likewise.
28136         * tests/test-flock.c: Likewise.
28137         * tests/test-floorf1.c: Likewise.
28138         * tests/test-floorf2.c: Likewise.
28139         * tests/test-floorl.c: Likewise.
28140         * tests/test-fnmatch.c: Likewise.
28141         * tests/test-fopen.h: Likewise.
28142         * tests/test-fpending.c: Likewise.
28143         * tests/test-fprintf-posix.c: Likewise.
28144         * tests/test-fpurge.c: Likewise.
28145         * tests/test-freadable.c: Likewise.
28146         * tests/test-freadahead.c: Likewise.
28147         * tests/test-freading.c: Likewise.
28148         * tests/test-freadptr.c: Likewise.
28149         * tests/test-freadptr2.c: Likewise.
28150         * tests/test-freadseek.c: Likewise.
28151         * tests/test-freopen.c: Likewise.
28152         * tests/test-frexp.c: Likewise.
28153         * tests/test-frexpl.c: Likewise.
28154         * tests/test-fseek.c: Likewise.
28155         * tests/test-fseeko.c: Likewise.
28156         * tests/test-fstatat.c: Likewise.
28157         * tests/test-fstrcmp.c: Likewise.
28158         * tests/test-fsync.c: Likewise.
28159         * tests/test-ftell.c: Likewise.
28160         * tests/test-ftello.c: Likewise.
28161         * tests/test-func.c: Likewise.
28162         * tests/test-futimens.c: Likewise.
28163         * tests/test-fwritable.c: Likewise.
28164         * tests/test-fwriting.c: Likewise.
28165         * tests/test-getcwd.c: Likewise.
28166         * tests/test-getdate.c: Likewise.
28167         * tests/test-getdelim.c: Likewise.
28168         * tests/test-getdtablesize.c: Likewise.
28169         * tests/test-getgroups.c: Likewise.
28170         * tests/test-getline.c: Likewise.
28171         * tests/test-getndelim2.c: Likewise.
28172         * tests/test-glob.c: Likewise.
28173         * tests/test-hash.c: Likewise.
28174         * tests/test-i-ring.c: Likewise.
28175         * tests/test-iconv-utf.c: Likewise.
28176         * tests/test-iconv.c: Likewise.
28177         * tests/test-idpriv-drop.c: Likewise.
28178         * tests/test-idpriv-droptemp.c: Likewise.
28179         * tests/test-inet_ntop.c: Likewise.
28180         * tests/test-inet_pton.c: Likewise.
28181         * tests/test-isblank.c: Likewise.
28182         * tests/test-isfinite.c: Likewise.
28183         * tests/test-isinf.c: Likewise.
28184         * tests/test-isnan.c: Likewise.
28185         * tests/test-isnand.h: Likewise.
28186         * tests/test-isnanf.h: Likewise.
28187         * tests/test-isnanl.h: Likewise.
28188         * tests/test-lchown.c: Likewise.
28189         * tests/test-ldexpl.c: Likewise.
28190         * tests/test-link.c: Likewise.
28191         * tests/test-linkat.c: Likewise.
28192         * tests/test-linked_list.c: Likewise.
28193         * tests/test-linkedhash_list.c: Likewise.
28194         * tests/test-localename.c: Likewise.
28195         * tests/test-lseek.c: Likewise.
28196         * tests/test-lstat.c: Likewise.
28197         * tests/test-mbmemcasecmp.c: Likewise.
28198         * tests/test-mbmemcasecoll.c: Likewise.
28199         * tests/test-mbrtowc.c: Likewise.
28200         * tests/test-mbscasecmp.c: Likewise.
28201         * tests/test-mbscasestr1.c: Likewise.
28202         * tests/test-mbscasestr2.c: Likewise.
28203         * tests/test-mbscasestr3.c: Likewise.
28204         * tests/test-mbscasestr4.c: Likewise.
28205         * tests/test-mbschr.c: Likewise.
28206         * tests/test-mbscspn.c: Likewise.
28207         * tests/test-mbsinit.c: Likewise.
28208         * tests/test-mbsncasecmp.c: Likewise.
28209         * tests/test-mbsnrtowcs.c: Likewise.
28210         * tests/test-mbspbrk.c: Likewise.
28211         * tests/test-mbspcasecmp.c: Likewise.
28212         * tests/test-mbsrchr.c: Likewise.
28213         * tests/test-mbsrtowcs.c: Likewise.
28214         * tests/test-mbsspn.c: Likewise.
28215         * tests/test-mbsstr1.c: Likewise.
28216         * tests/test-mbsstr2.c: Likewise.
28217         * tests/test-mbsstr3.c: Likewise.
28218         * tests/test-memchr.c: Likewise.
28219         * tests/test-memchr2.c: Likewise.
28220         * tests/test-memcmp.c: Likewise.
28221         * tests/test-memmem.c: Likewise.
28222         * tests/test-memrchr.c: Likewise.
28223         * tests/test-mkdir.c: Likewise.
28224         * tests/test-mkdirat.c: Likewise.
28225         * tests/test-mkfifo.c: Likewise.
28226         * tests/test-mkfifoat.c: Likewise.
28227         * tests/test-mknod.c: Likewise.
28228         * tests/test-nanosleep.c: Likewise.
28229         * tests/test-nl_langinfo.c: Likewise.
28230         * tests/test-obstack-printf.c: Likewise.
28231         * tests/test-open.c: Likewise.
28232         * tests/test-openat.c: Likewise.
28233         * tests/test-pipe-filter-gi1.c: Likewise.
28234         * tests/test-pipe-filter-gi2-main.c: Likewise.
28235         * tests/test-pipe-filter-ii1.c: Likewise.
28236         * tests/test-pipe-filter-ii2-main.c: Likewise.
28237         * tests/test-pipe2.c: Likewise.
28238         * tests/test-popen.h: Likewise.
28239         * tests/test-posixtm.c: Likewise.
28240         * tests/test-pread.c: Likewise.
28241         * tests/test-printf-frexp.c: Likewise.
28242         * tests/test-printf-frexpl.c: Likewise.
28243         * tests/test-printf-posix.c: Likewise.
28244         * tests/test-priv-set.c: Likewise.
28245         * tests/test-quotearg.c: Likewise.
28246         * tests/test-random_r.c: Likewise.
28247         * tests/test-rawmemchr.c: Likewise.
28248         * tests/test-rbtree_list.c: Likewise.
28249         * tests/test-rbtree_oset.c: Likewise.
28250         * tests/test-rbtreehash_list.c: Likewise.
28251         * tests/test-readlink.c: Likewise.
28252         * tests/test-remove.c: Likewise.
28253         * tests/test-rename.c: Likewise.
28254         * tests/test-renameat.c: Likewise.
28255         * tests/test-rmdir.c: Likewise.
28256         * tests/test-round1.c: Likewise.
28257         * tests/test-roundf1.c: Likewise.
28258         * tests/test-roundl.c: Likewise.
28259         * tests/test-safe-alloc.c: Likewise.
28260         * tests/test-sameacls.c: Likewise.
28261         * tests/test-set-mode-acl.c: Likewise.
28262         * tests/test-setenv.c: Likewise.
28263         * tests/test-sigaction.c: Likewise.
28264         * tests/test-signbit.c: Likewise.
28265         * tests/test-sleep.c: Likewise.
28266         * tests/test-snprintf-posix.c: Likewise.
28267         * tests/test-snprintf.c: Likewise.
28268         * tests/test-sprintf-posix.c: Likewise.
28269         * tests/test-stat-time.c: Likewise.
28270         * tests/test-stat.c: Likewise.
28271         * tests/test-strcasestr.c: Likewise.
28272         * tests/test-strchrnul.c: Likewise.
28273         * tests/test-strerror.c: Likewise.
28274         * tests/test-striconv.c: Likewise.
28275         * tests/test-striconveh.c: Likewise.
28276         * tests/test-striconveha.c: Likewise.
28277         * tests/test-strsignal.c: Likewise.
28278         * tests/test-strstr.c: Likewise.
28279         * tests/test-strtod.c: Likewise.
28280         * tests/test-strverscmp.c: Likewise.
28281         * tests/test-symlink.c: Likewise.
28282         * tests/test-symlinkat.c: Likewise.
28283         * tests/test-trunc1.c: Likewise.
28284         * tests/test-trunc2.c: Likewise.
28285         * tests/test-truncf1.c: Likewise.
28286         * tests/test-truncf2.c: Likewise.
28287         * tests/test-truncl.c: Likewise.
28288         * tests/test-uname.c: Likewise.
28289         * tests/test-unlink.c: Likewise.
28290         * tests/test-unlinkat.c: Likewise.
28291         * tests/test-unsetenv.c: Likewise.
28292         * tests/test-usleep.c: Likewise.
28293         * tests/test-utimens.c: Likewise.
28294         * tests/test-utimensat.c: Likewise.
28295         * tests/test-vasnprintf-posix.c: Likewise.
28296         * tests/test-vasnprintf-posix2.c: Likewise.
28297         * tests/test-vasnprintf.c: Likewise.
28298         * tests/test-vasprintf-posix.c: Likewise.
28299         * tests/test-vasprintf.c: Likewise.
28300         * tests/test-vdprintf-posix.c: Likewise.
28301         * tests/test-vfprintf-posix.c: Likewise.
28302         * tests/test-vprintf-posix.c: Likewise.
28303         * tests/test-vsnprintf-posix.c: Likewise.
28304         * tests/test-vsnprintf.c: Likewise.
28305         * tests/test-vsprintf-posix.c: Likewise.
28306         * tests/test-wcrtomb.c: Likewise.
28307         * tests/test-wcsnrtombs.c: Likewise.
28308         * tests/test-wcsrtombs.c: Likewise.
28309         * tests/test-wctype.c: Likewise.
28310         * tests/test-wcwidth.c: Likewise.
28311         * tests/test-xfprintf-posix.c: Likewise.
28312         * tests/test-xmemdup0.c: Likewise.
28313         * tests/test-xprintf-posix.c: Likewise.
28314         * tests/test-xvasprintf.c: Likewise.
28315         * tests/unicase/test-locale-language.c: Likewise.
28316         * tests/unicase/test-mapping-part1.h: Likewise.
28317         * tests/unicase/test-predicate-part1.h: Likewise.
28318         * tests/unicase/test-u8-casecmp.c: Likewise.
28319         * tests/unicase/test-u8-casecoll.c: Likewise.
28320         * tests/unicase/test-u8-casefold.c: Likewise.
28321         * tests/unicase/test-u8-is-cased.c: Likewise.
28322         * tests/unicase/test-u8-is-casefolded.c: Likewise.
28323         * tests/unicase/test-u8-is-lowercase.c: Likewise.
28324         * tests/unicase/test-u8-is-titlecase.c: Likewise.
28325         * tests/unicase/test-u8-is-uppercase.c: Likewise.
28326         * tests/unicase/test-u8-tolower.c: Likewise.
28327         * tests/unicase/test-u8-totitle.c: Likewise.
28328         * tests/unicase/test-u8-toupper.c: Likewise.
28329         * tests/unicase/test-u16-casecmp.c: Likewise.
28330         * tests/unicase/test-u16-casecoll.c: Likewise.
28331         * tests/unicase/test-u16-casefold.c: Likewise.
28332         * tests/unicase/test-u16-is-cased.c: Likewise.
28333         * tests/unicase/test-u16-is-casefolded.c: Likewise.
28334         * tests/unicase/test-u16-is-lowercase.c: Likewise.
28335         * tests/unicase/test-u16-is-titlecase.c: Likewise.
28336         * tests/unicase/test-u16-is-uppercase.c: Likewise.
28337         * tests/unicase/test-u16-tolower.c: Likewise.
28338         * tests/unicase/test-u16-totitle.c: Likewise.
28339         * tests/unicase/test-u16-toupper.c: Likewise.
28340         * tests/unicase/test-u32-casecmp.c: Likewise.
28341         * tests/unicase/test-u32-casecoll.c: Likewise.
28342         * tests/unicase/test-u32-casefold.c: Likewise.
28343         * tests/unicase/test-u32-is-cased.c: Likewise.
28344         * tests/unicase/test-u32-is-casefolded.c: Likewise.
28345         * tests/unicase/test-u32-is-lowercase.c: Likewise.
28346         * tests/unicase/test-u32-is-titlecase.c: Likewise.
28347         * tests/unicase/test-u32-is-uppercase.c: Likewise.
28348         * tests/unicase/test-u32-tolower.c: Likewise.
28349         * tests/unicase/test-u32-totitle.c: Likewise.
28350         * tests/unicase/test-u32-toupper.c: Likewise.
28351         * tests/unicase/test-ulc-casecmp.c: Likewise.
28352         * tests/unicase/test-ulc-casecoll.c: Likewise.
28353         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
28354         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
28355         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
28356         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
28357         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
28358         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
28359         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
28360         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
28361         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
28362         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
28363         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
28364         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
28365         * tests/unictype/test-bidi_byname.c: Likewise.
28366         * tests/unictype/test-bidi_name.c: Likewise.
28367         * tests/unictype/test-bidi_of.c: Likewise.
28368         * tests/unictype/test-bidi_test.c: Likewise.
28369         * tests/unictype/test-block_list.c: Likewise.
28370         * tests/unictype/test-block_of.c: Likewise.
28371         * tests/unictype/test-block_test.c: Likewise.
28372         * tests/unictype/test-categ_and.c: Likewise.
28373         * tests/unictype/test-categ_and_not.c: Likewise.
28374         * tests/unictype/test-categ_byname.c: Likewise.
28375         * tests/unictype/test-categ_name.c: Likewise.
28376         * tests/unictype/test-categ_none.c: Likewise.
28377         * tests/unictype/test-categ_of.c: Likewise.
28378         * tests/unictype/test-categ_or.c: Likewise.
28379         * tests/unictype/test-categ_test_withtable.c: Likewise.
28380         * tests/unictype/test-combining.c: Likewise.
28381         * tests/unictype/test-decdigit.c: Likewise.
28382         * tests/unictype/test-digit.c: Likewise.
28383         * tests/unictype/test-mirror.c: Likewise.
28384         * tests/unictype/test-numeric.c: Likewise.
28385         * tests/unictype/test-pr_byname.c: Likewise.
28386         * tests/unictype/test-pr_test.c: Likewise.
28387         * tests/unictype/test-predicate-part1.h: Likewise.
28388         * tests/unictype/test-scripts.c: Likewise.
28389         * tests/unictype/test-sy_c_ident.c: Likewise.
28390         * tests/unictype/test-sy_java_ident.c: Likewise.
28391         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
28392         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
28393         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
28394         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
28395         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
28396         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
28397         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
28398         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
28399         * tests/uninorm/test-canonical-decomposition.c: Likewise.
28400         * tests/uninorm/test-compat-decomposition.c: Likewise.
28401         * tests/uninorm/test-composition.c: Likewise.
28402         * tests/uninorm/test-decomposing-form.c: Likewise.
28403         * tests/uninorm/test-decomposition.c: Likewise.
28404         * tests/uninorm/test-u8-nfc.c: Likewise.
28405         * tests/uninorm/test-u8-nfd.c: Likewise.
28406         * tests/uninorm/test-u8-nfkc.c: Likewise.
28407         * tests/uninorm/test-u8-nfkd.c: Likewise.
28408         * tests/uninorm/test-u8-normcmp.c: Likewise.
28409         * tests/uninorm/test-u8-normcoll.c: Likewise.
28410         * tests/uninorm/test-u16-nfc.c: Likewise.
28411         * tests/uninorm/test-u16-nfd.c: Likewise.
28412         * tests/uninorm/test-u16-nfkc.c: Likewise.
28413         * tests/uninorm/test-u16-nfkd.c: Likewise.
28414         * tests/uninorm/test-u16-normcmp.c: Likewise.
28415         * tests/uninorm/test-u16-normcoll.c: Likewise.
28416         * tests/uninorm/test-u32-nfc.c: Likewise.
28417         * tests/uninorm/test-u32-nfd.c: Likewise.
28418         * tests/uninorm/test-u32-nfkc.c: Likewise.
28419         * tests/uninorm/test-u32-nfkd.c: Likewise.
28420         * tests/uninorm/test-u32-normalize-big.c: Likewise.
28421         * tests/uninorm/test-u32-normcmp.c: Likewise.
28422         * tests/uninorm/test-u32-normcoll.c: Likewise.
28423         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
28424         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
28425         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
28426         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
28427         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
28428         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
28429         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
28430         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
28431         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
28432         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
28433         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
28434         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
28435         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
28436         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
28437         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
28438         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
28439         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
28440         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
28441         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
28442         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
28443         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
28444         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
28445         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
28446         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
28447         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
28448         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
28449         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
28450         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
28451         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
28452         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
28453         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
28454         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
28455         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
28456         * tests/uniwidth/test-u8-strwidth.c: Likewise.
28457         * tests/uniwidth/test-u8-width.c: Likewise.
28458         * tests/uniwidth/test-u16-strwidth.c: Likewise.
28459         * tests/uniwidth/test-u16-width.c: Likewise.
28460         * tests/uniwidth/test-u32-strwidth.c: Likewise.
28461         * tests/uniwidth/test-u32-width.c: Likewise.
28462         * tests/uniwidth/test-uc_width.c: Likewise.
28463         * tests/uniwidth/test-uc_width2.c: Likewise.
28464         * modules/acl-tests (Files): Add tests/macros.h.
28465         * modules/areadlink-tests (Files): Likewise.
28466         * modules/areadlink-with-size-tests (Files): Likewise.
28467         * modules/areadlinkat-tests (Files): Likewise.
28468         * modules/areadlinkat-with-size-tests (Files): Likewise.
28469         * modules/argmatch-tests (Files): Likewise.
28470         * modules/argv-iter-tests (Files): Likewise.
28471         * modules/array-list-tests (Files): Likewise.
28472         * modules/array-mergesort-tests (Files): Likewise.
28473         * modules/array-oset-tests (Files): Likewise.
28474         * modules/avltree-list-tests (Files): Likewise.
28475         * modules/avltree-oset-tests (Files): Likewise.
28476         * modules/avltreehash-list-tests (Files): Likewise.
28477         * modules/base64-tests (Files): Likewise.
28478         * modules/binary-io-tests (Files): Likewise.
28479         * modules/bitrotate-tests (Files): Likewise.
28480         * modules/btowc-tests (Files): Likewise.
28481         * modules/byteswap-tests (Files): Likewise.
28482         * modules/c-ctype-tests (Files): Likewise.
28483         * modules/c-stack-tests (Files): Likewise.
28484         * modules/c-strcase-tests (Files): Likewise.
28485         * modules/c-strcasestr-tests (Files): Likewise.
28486         * modules/c-strstr-tests (Files): Likewise.
28487         * modules/canonicalize-lgpl-tests (Files): Likewise.
28488         * modules/canonicalize-tests (Files): Likewise.
28489         * modules/carray-list-tests (Files): Likewise.
28490         * modules/ceilf-tests (Files): Likewise.
28491         * modules/ceill-tests (Files): Likewise.
28492         * modules/chown-tests (Files): Likewise.
28493         * modules/cloexec-tests (Files): Likewise.
28494         * modules/copy-file-tests (Files): Likewise.
28495         * modules/count-one-bits-tests (Files): Likewise.
28496         * modules/dprintf-posix-tests (Files): Likewise.
28497         * modules/dup2-tests (Files): Likewise.
28498         * modules/dup3-tests (Files): Likewise.
28499         * modules/duplocale-tests (Files): Likewise.
28500         * modules/fbufmode-tests (Files): Likewise.
28501         * modules/fchdir-tests (Files): Likewise.
28502         * modules/fcntl-safer-tests (Files): Likewise.
28503         * modules/fcntl-tests (Files): Likewise.
28504         * modules/fdopendir-tests (Files): Likewise.
28505         * modules/fdutimensat-tests (Files): Likewise.
28506         * modules/fflush-tests (Files): Likewise.
28507         * modules/filevercmp-tests (Files): Likewise.
28508         * modules/flock-tests (Files): Likewise.
28509         * modules/floorf-tests (Files): Likewise.
28510         * modules/floorl-tests (Files): Likewise.
28511         * modules/fnmatch-tests (Files): Likewise.
28512         * modules/fopen-safer-tests (Files): Likewise.
28513         * modules/fopen-tests (Files): Likewise.
28514         * modules/fpending-tests (Files): Likewise.
28515         * modules/fprintf-posix-tests (Files): Likewise.
28516         * modules/fpurge-tests (Files): Likewise.
28517         * modules/freadable-tests (Files): Likewise.
28518         * modules/freadahead-tests (Files): Likewise.
28519         * modules/freading-tests (Files): Likewise.
28520         * modules/freadptr-tests (Files): Likewise.
28521         * modules/freadseek-tests (Files): Likewise.
28522         * modules/freopen-tests (Files): Likewise.
28523         * modules/frexp-nolibm-tests (Files): Likewise.
28524         * modules/frexp-tests (Files): Likewise.
28525         * modules/frexpl-nolibm-tests (Files): Likewise.
28526         * modules/frexpl-tests (Files): Likewise.
28527         * modules/fseek-tests (Files): Likewise.
28528         * modules/fseeko-tests (Files): Likewise.
28529         * modules/fstrcmp-tests (Files): Likewise.
28530         * modules/fsync-tests (Files): Likewise.
28531         * modules/ftell-tests (Files): Likewise.
28532         * modules/ftello-tests (Files): Likewise.
28533         * modules/func-tests (Files): Likewise.
28534         * modules/futimens-tests (Files): Likewise.
28535         * modules/fwritable-tests (Files): Likewise.
28536         * modules/fwriting-tests (Files): Likewise.
28537         * modules/getcwd-tests (Files): Likewise.
28538         * modules/getdate-tests (Files): Likewise.
28539         * modules/getdelim-tests (Files): Likewise.
28540         * modules/getdtablesize-tests (Files): Likewise.
28541         * modules/getgroups-tests (Files): Likewise.
28542         * modules/getline-tests (Files): Likewise.
28543         * modules/getndelim2-tests (Files): Likewise.
28544         * modules/glob-tests (Files): Likewise.
28545         * modules/hash-tests (Files): Likewise.
28546         * modules/i-ring-tests (Files): Likewise.
28547         * modules/iconv-tests (Files): Likewise.
28548         * modules/iconv_open-utf-tests (Files): Likewise.
28549         * modules/idpriv-drop-tests (Files): Likewise.
28550         * modules/idpriv-droptemp-tests (Files): Likewise.
28551         * modules/inet_ntop-tests (Files): Likewise.
28552         * modules/inet_pton-tests (Files): Likewise.
28553         * modules/isblank-tests (Files): Likewise.
28554         * modules/isfinite-tests (Files): Likewise.
28555         * modules/isinf-tests (Files): Likewise.
28556         * modules/isnan-tests (Files): Likewise.
28557         * modules/isnand-nolibm-tests (Files): Likewise.
28558         * modules/isnand-tests (Files): Likewise.
28559         * modules/isnanf-nolibm-tests (Files): Likewise.
28560         * modules/isnanf-tests (Files): Likewise.
28561         * modules/isnanl-nolibm-tests (Files): Likewise.
28562         * modules/isnanl-tests (Files): Likewise.
28563         * modules/lchown-tests (Files): Likewise.
28564         * modules/ldexpl-tests (Files): Likewise.
28565         * modules/link-tests (Files): Likewise.
28566         * modules/linkat-tests (Files): Likewise.
28567         * modules/linked-list-tests (Files): Likewise.
28568         * modules/linkedhash-list-tests (Files): Likewise.
28569         * modules/localename-tests (Files): Likewise.
28570         * modules/lseek-tests (Files): Likewise.
28571         * modules/lstat-tests (Files): Likewise.
28572         * modules/mbmemcasecmp-tests (Files): Likewise.
28573         * modules/mbmemcasecoll-tests (Files): Likewise.
28574         * modules/mbrtowc-tests (Files): Likewise.
28575         * modules/mbscasecmp-tests (Files): Likewise.
28576         * modules/mbscasestr-tests (Files): Likewise.
28577         * modules/mbschr-tests (Files): Likewise.
28578         * modules/mbscspn-tests (Files): Likewise.
28579         * modules/mbsinit-tests (Files): Likewise.
28580         * modules/mbsncasecmp-tests (Files): Likewise.
28581         * modules/mbsnrtowcs-tests (Files): Likewise.
28582         * modules/mbspbrk-tests (Files): Likewise.
28583         * modules/mbspcasecmp-tests (Files): Likewise.
28584         * modules/mbsrchr-tests (Files): Likewise.
28585         * modules/mbsrtowcs-tests (Files): Likewise.
28586         * modules/mbsspn-tests (Files): Likewise.
28587         * modules/mbsstr-tests (Files): Likewise.
28588         * modules/memchr-tests (Files): Likewise.
28589         * modules/memchr2-tests (Files): Likewise.
28590         * modules/memcmp-tests (Files): Likewise.
28591         * modules/memmem-tests (Files): Likewise.
28592         * modules/memrchr-tests (Files): Likewise.
28593         * modules/mkdir-tests (Files): Likewise.
28594         * modules/mkfifo-tests (Files): Likewise.
28595         * modules/mkfifoat-tests (Files): Likewise.
28596         * modules/mknod-tests (Files): Likewise.
28597         * modules/nanosleep-tests (Files): Likewise.
28598         * modules/nl_langinfo-tests (Files): Likewise.
28599         * modules/obstack-printf-tests (Files): Likewise.
28600         * modules/open-tests (Files): Likewise.
28601         * modules/openat-tests (Files): Likewise.
28602         * modules/pipe-filter-gi-tests (Files): Likewise.
28603         * modules/pipe-filter-ii-tests (Files): Likewise.
28604         * modules/pipe2-tests (Files): Likewise.
28605         * modules/popen-safer-tests (Files): Likewise.
28606         * modules/popen-tests (Files): Likewise.
28607         * modules/posixtm-tests (Files): Likewise.
28608         * modules/pread-tests (Files): Likewise.
28609         * modules/printf-frexp-tests (Files): Likewise.
28610         * modules/printf-frexpl-tests (Files): Likewise.
28611         * modules/printf-posix-tests (Files): Likewise.
28612         * modules/priv-set-tests (Files): Likewise.
28613         * modules/quotearg-tests (Files): Likewise.
28614         * modules/random_r-tests (Files): Likewise.
28615         * modules/rawmemchr-tests (Files): Likewise.
28616         * modules/rbtree-list-tests (Files): Likewise.
28617         * modules/rbtree-oset-tests (Files): Likewise.
28618         * modules/rbtreehash-list-tests (Files): Likewise.
28619         * modules/readlink-tests (Files): Likewise.
28620         * modules/remove-tests (Files): Likewise.
28621         * modules/rename-tests (Files): Likewise.
28622         * modules/renameat-tests (Files): Likewise.
28623         * modules/rmdir-tests (Files): Likewise.
28624         * modules/round-tests (Files): Likewise.
28625         * modules/roundf-tests (Files): Likewise.
28626         * modules/roundl-tests (Files): Likewise.
28627         * modules/safe-alloc-tests (Files): Likewise.
28628         * modules/setenv-tests (Files): Likewise.
28629         * modules/sigaction-tests (Files): Likewise.
28630         * modules/signbit-tests (Files): Likewise.
28631         * modules/sleep-tests (Files): Likewise.
28632         * modules/snprintf-posix-tests (Files): Likewise.
28633         * modules/snprintf-tests (Files): Likewise.
28634         * modules/sprintf-posix-tests (Files): Likewise.
28635         * modules/stat-tests (Files): Likewise.
28636         * modules/stat-time-tests (Files): Likewise.
28637         * modules/strcasestr-tests (Files): Likewise.
28638         * modules/strchrnul-tests (Files): Likewise.
28639         * modules/strerror-tests (Files): Likewise.
28640         * modules/striconv-tests (Files): Likewise.
28641         * modules/striconveh-tests (Files): Likewise.
28642         * modules/striconveha-tests (Files): Likewise.
28643         * modules/strsignal-tests (Files): Likewise.
28644         * modules/strstr-tests (Files): Likewise.
28645         * modules/strtod-tests (Files): Likewise.
28646         * modules/strverscmp-tests (Files): Likewise.
28647         * modules/symlink-tests (Files): Likewise.
28648         * modules/symlinkat-tests (Files): Likewise.
28649         * modules/trunc-tests (Files): Likewise.
28650         * modules/truncf-tests (Files): Likewise.
28651         * modules/truncl-tests (Files): Likewise.
28652         * modules/uname-tests (Files): Likewise.
28653         * modules/unicase/cased-tests (Files): Likewise.
28654         * modules/unicase/ignorable-tests (Files): Likewise.
28655         * modules/unicase/locale-language-tests (Files): Likewise.
28656         * modules/unicase/tolower-tests (Files): Likewise.
28657         * modules/unicase/totitle-tests (Files): Likewise.
28658         * modules/unicase/toupper-tests (Files): Likewise.
28659         * modules/unicase/u8-casecmp-tests (Files): Likewise.
28660         * modules/unicase/u8-casecoll-tests (Files): Likewise.
28661         * modules/unicase/u8-casefold-tests (Files): Likewise.
28662         * modules/unicase/u8-is-cased-tests (Files): Likewise.
28663         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
28664         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
28665         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
28666         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
28667         * modules/unicase/u8-tolower-tests (Files): Likewise.
28668         * modules/unicase/u8-totitle-tests (Files): Likewise.
28669         * modules/unicase/u8-toupper-tests (Files): Likewise.
28670         * modules/unicase/u16-casecmp-tests (Files): Likewise.
28671         * modules/unicase/u16-casecoll-tests (Files): Likewise.
28672         * modules/unicase/u16-casefold-tests (Files): Likewise.
28673         * modules/unicase/u16-is-cased-tests (Files): Likewise.
28674         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
28675         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
28676         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
28677         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
28678         * modules/unicase/u16-tolower-tests (Files): Likewise.
28679         * modules/unicase/u16-totitle-tests (Files): Likewise.
28680         * modules/unicase/u16-toupper-tests (Files): Likewise.
28681         * modules/unicase/u32-casecmp-tests (Files): Likewise.
28682         * modules/unicase/u32-casecoll-tests (Files): Likewise.
28683         * modules/unicase/u32-casefold-tests (Files): Likewise.
28684         * modules/unicase/u32-is-cased-tests (Files): Likewise.
28685         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
28686         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
28687         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
28688         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
28689         * modules/unicase/u32-tolower-tests (Files): Likewise.
28690         * modules/unicase/u32-totitle-tests (Files): Likewise.
28691         * modules/unicase/u32-toupper-tests (Files): Likewise.
28692         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
28693         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
28694         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
28695         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
28696         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
28697         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
28698         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
28699         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
28700         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
28701         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
28702         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
28703         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
28704         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
28705         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
28706         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
28707         * modules/unictype/bidicategory-name-tests (Files): Likewise.
28708         * modules/unictype/bidicategory-of-tests (Files): Likewise.
28709         * modules/unictype/bidicategory-test-tests (Files): Likewise.
28710         * modules/unictype/block-list-tests (Files): Likewise.
28711         * modules/unictype/block-of-tests (Files): Likewise.
28712         * modules/unictype/block-test-tests (Files): Likewise.
28713         * modules/unictype/category-C-tests (Files): Likewise.
28714         * modules/unictype/category-Cc-tests (Files): Likewise.
28715         * modules/unictype/category-Cf-tests (Files): Likewise.
28716         * modules/unictype/category-Cn-tests (Files): Likewise.
28717         * modules/unictype/category-Co-tests (Files): Likewise.
28718         * modules/unictype/category-Cs-tests (Files): Likewise.
28719         * modules/unictype/category-L-tests (Files): Likewise.
28720         * modules/unictype/category-Ll-tests (Files): Likewise.
28721         * modules/unictype/category-Lm-tests (Files): Likewise.
28722         * modules/unictype/category-Lo-tests (Files): Likewise.
28723         * modules/unictype/category-Lt-tests (Files): Likewise.
28724         * modules/unictype/category-Lu-tests (Files): Likewise.
28725         * modules/unictype/category-M-tests (Files): Likewise.
28726         * modules/unictype/category-Mc-tests (Files): Likewise.
28727         * modules/unictype/category-Me-tests (Files): Likewise.
28728         * modules/unictype/category-Mn-tests (Files): Likewise.
28729         * modules/unictype/category-N-tests (Files): Likewise.
28730         * modules/unictype/category-Nd-tests (Files): Likewise.
28731         * modules/unictype/category-Nl-tests (Files): Likewise.
28732         * modules/unictype/category-No-tests (Files): Likewise.
28733         * modules/unictype/category-P-tests (Files): Likewise.
28734         * modules/unictype/category-Pc-tests (Files): Likewise.
28735         * modules/unictype/category-Pd-tests (Files): Likewise.
28736         * modules/unictype/category-Pe-tests (Files): Likewise.
28737         * modules/unictype/category-Pf-tests (Files): Likewise.
28738         * modules/unictype/category-Pi-tests (Files): Likewise.
28739         * modules/unictype/category-Po-tests (Files): Likewise.
28740         * modules/unictype/category-Ps-tests (Files): Likewise.
28741         * modules/unictype/category-S-tests (Files): Likewise.
28742         * modules/unictype/category-Sc-tests (Files): Likewise.
28743         * modules/unictype/category-Sk-tests (Files): Likewise.
28744         * modules/unictype/category-Sm-tests (Files): Likewise.
28745         * modules/unictype/category-So-tests (Files): Likewise.
28746         * modules/unictype/category-Z-tests (Files): Likewise.
28747         * modules/unictype/category-Zl-tests (Files): Likewise.
28748         * modules/unictype/category-Zp-tests (Files): Likewise.
28749         * modules/unictype/category-Zs-tests (Files): Likewise.
28750         * modules/unictype/category-and-not-tests (Files): Likewise.
28751         * modules/unictype/category-and-tests (Files): Likewise.
28752         * modules/unictype/category-byname-tests (Files): Likewise.
28753         * modules/unictype/category-name-tests (Files): Likewise.
28754         * modules/unictype/category-none-tests (Files): Likewise.
28755         * modules/unictype/category-of-tests (Files): Likewise.
28756         * modules/unictype/category-or-tests (Files): Likewise.
28757         * modules/unictype/category-test-withtable-tests (Files): Likewise.
28758         * modules/unictype/combining-class-tests (Files): Likewise.
28759         * modules/unictype/ctype-alnum-tests (Files): Likewise.
28760         * modules/unictype/ctype-alpha-tests (Files): Likewise.
28761         * modules/unictype/ctype-blank-tests (Files): Likewise.
28762         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
28763         * modules/unictype/ctype-digit-tests (Files): Likewise.
28764         * modules/unictype/ctype-graph-tests (Files): Likewise.
28765         * modules/unictype/ctype-lower-tests (Files): Likewise.
28766         * modules/unictype/ctype-print-tests (Files): Likewise.
28767         * modules/unictype/ctype-punct-tests (Files): Likewise.
28768         * modules/unictype/ctype-space-tests (Files): Likewise.
28769         * modules/unictype/ctype-upper-tests (Files): Likewise.
28770         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
28771         * modules/unictype/decimal-digit-tests (Files): Likewise.
28772         * modules/unictype/digit-tests (Files): Likewise.
28773         * modules/unictype/mirror-tests (Files): Likewise.
28774         * modules/unictype/numeric-tests (Files): Likewise.
28775         * modules/unictype/property-alphabetic-tests (Files): Likewise.
28776         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
28777         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
28778         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
28779         Likewise.
28780         * modules/unictype/property-bidi-block-separator-tests (Files):
28781         Likewise.
28782         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
28783         Likewise.
28784         * modules/unictype/property-bidi-common-separator-tests (Files):
28785         Likewise.
28786         * modules/unictype/property-bidi-control-tests (Files): Likewise.
28787         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
28788         Likewise.
28789         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
28790         Likewise.
28791         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
28792         Likewise.
28793         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
28794         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
28795         Likewise.
28796         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
28797         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
28798         Likewise.
28799         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
28800         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
28801         * modules/unictype/property-bidi-segment-separator-tests (Files):
28802         Likewise.
28803         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
28804         * modules/unictype/property-byname-tests (Files): Likewise.
28805         * modules/unictype/property-combining-tests (Files): Likewise.
28806         * modules/unictype/property-composite-tests (Files): Likewise.
28807         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
28808         * modules/unictype/property-dash-tests (Files): Likewise.
28809         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
28810         * modules/unictype/property-default-ignorable-code-point-tests (Files):
28811         Likewise.
28812         * modules/unictype/property-deprecated-tests (Files): Likewise.
28813         * modules/unictype/property-diacritic-tests (Files): Likewise.
28814         * modules/unictype/property-extender-tests (Files): Likewise.
28815         * modules/unictype/property-format-control-tests (Files): Likewise.
28816         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
28817         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
28818         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
28819         * modules/unictype/property-hex-digit-tests (Files): Likewise.
28820         * modules/unictype/property-hyphen-tests (Files): Likewise.
28821         * modules/unictype/property-id-continue-tests (Files): Likewise.
28822         * modules/unictype/property-id-start-tests (Files): Likewise.
28823         * modules/unictype/property-ideographic-tests (Files): Likewise.
28824         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
28825         * modules/unictype/property-ids-trinary-operator-tests (Files):
28826         Likewise.
28827         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
28828         * modules/unictype/property-iso-control-tests (Files): Likewise.
28829         * modules/unictype/property-join-control-tests (Files): Likewise.
28830         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
28831         * modules/unictype/property-line-separator-tests (Files): Likewise.
28832         * modules/unictype/property-logical-order-exception-tests (Files):
28833         Likewise.
28834         * modules/unictype/property-lowercase-tests (Files): Likewise.
28835         * modules/unictype/property-math-tests (Files): Likewise.
28836         * modules/unictype/property-non-break-tests (Files): Likewise.
28837         * modules/unictype/property-not-a-character-tests (Files): Likewise.
28838         * modules/unictype/property-numeric-tests (Files): Likewise.
28839         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
28840         * modules/unictype/property-other-default-ignorable-code-point-tests
28841         (Files): Likewise.
28842         * modules/unictype/property-other-grapheme-extend-tests (Files):
28843         Likewise.
28844         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
28845         * modules/unictype/property-other-id-start-tests (Files): Likewise.
28846         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
28847         * modules/unictype/property-other-math-tests (Files): Likewise.
28848         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
28849         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
28850         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
28851         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
28852         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
28853         * modules/unictype/property-private-use-tests (Files): Likewise.
28854         * modules/unictype/property-punctuation-tests (Files): Likewise.
28855         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
28856         * modules/unictype/property-radical-tests (Files): Likewise.
28857         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
28858         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
28859         * modules/unictype/property-space-tests (Files): Likewise.
28860         * modules/unictype/property-terminal-punctuation-tests (Files):
28861         Likewise.
28862         * modules/unictype/property-test-tests (Files): Likewise.
28863         * modules/unictype/property-titlecase-tests (Files): Likewise.
28864         * modules/unictype/property-unassigned-code-value-tests (Files):
28865         Likewise.
28866         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
28867         * modules/unictype/property-uppercase-tests (Files): Likewise.
28868         * modules/unictype/property-variation-selector-tests (Files): Likewise.
28869         * modules/unictype/property-white-space-tests (Files): Likewise.
28870         * modules/unictype/property-xid-continue-tests (Files): Likewise.
28871         * modules/unictype/property-xid-start-tests (Files): Likewise.
28872         * modules/unictype/property-zero-width-tests (Files): Likewise.
28873         * modules/unictype/scripts-tests (Files): Likewise.
28874         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
28875         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
28876         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
28877         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
28878         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
28879         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
28880         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
28881         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
28882         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
28883         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
28884         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
28885         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
28886         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
28887         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
28888         * modules/uninorm/composition-tests (Files): Likewise.
28889         * modules/uninorm/decomposing-form-tests (Files): Likewise.
28890         * modules/uninorm/decomposition-tests (Files): Likewise.
28891         * modules/uninorm/filter-tests (Files): Likewise.
28892         * modules/uninorm/nfc-tests (Files): Likewise.
28893         * modules/uninorm/nfd-tests (Files): Likewise.
28894         * modules/uninorm/nfkc-tests (Files): Likewise.
28895         * modules/uninorm/nfkd-tests (Files): Likewise.
28896         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
28897         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
28898         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
28899         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
28900         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
28901         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
28902         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
28903         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
28904         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
28905         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
28906         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
28907         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
28908         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
28909         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
28910         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
28911         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
28912         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
28913         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
28914         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
28915         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
28916         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
28917         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
28918         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
28919         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
28920         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
28921         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
28922         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
28923         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
28924         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
28925         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
28926         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
28927         * modules/uniwidth/u8-width-tests (Files): Likewise.
28928         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
28929         * modules/uniwidth/u16-width-tests (Files): Likewise.
28930         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
28931         * modules/uniwidth/u32-width-tests (Files): Likewise.
28932         * modules/uniwidth/width-tests (Files): Likewise.
28933         * modules/unlink-tests (Files): Likewise.
28934         * modules/unsetenv-tests (Files): Likewise.
28935         * modules/usleep-tests (Files): Likewise.
28936         * modules/utimens-tests (Files): Likewise.
28937         * modules/utimensat-tests (Files): Likewise.
28938         * modules/vasnprintf-posix-tests (Files): Likewise.
28939         * modules/vasnprintf-tests (Files): Likewise.
28940         * modules/vasprintf-posix-tests (Files): Likewise.
28941         * modules/vasprintf-tests (Files): Likewise.
28942         * modules/vdprintf-posix-tests (Files): Likewise.
28943         * modules/vfprintf-posix-tests (Files): Likewise.
28944         * modules/vprintf-posix-tests (Files): Likewise.
28945         * modules/vsnprintf-posix-tests (Files): Likewise.
28946         * modules/vsnprintf-tests (Files): Likewise.
28947         * modules/vsprintf-posix-tests (Files): Likewise.
28948         * modules/wcrtomb-tests (Files): Likewise.
28949         * modules/wcsnrtombs-tests (Files): Likewise.
28950         * modules/wcsrtombs-tests (Files): Likewise.
28951         * modules/wctype-tests (Files): Likewise.
28952         * modules/wcwidth-tests (Files): Likewise.
28953         * modules/xmemdup0-tests (Files): Likewise.
28954         * modules/xprintf-posix-tests (Files): Likewise.
28955         * modules/xvasprintf-tests (Files): Likewise.
28956
28957 2009-12-24  Eric Blake  <ebb9@byu.net>
28958
28959         test-nanosleep: fix typo
28960         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
28961         patch.
28962         Reported by Bruno Haible.
28963
28964 2009-12-24  Bruno Haible  <bruno@clisp.org>
28965
28966         Reduce namespace pollution on glibc systems.
28967         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
28968         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
28969         systems.
28970         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
28971         <getopt.h> on glibc systems.
28972         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
28973         systems.
28974         * lib/fcntl.c: Include <unistd.h> here instead.
28975
28976 2009-12-24  Bruno Haible  <bruno@clisp.org>
28977
28978         * lib/stdlib.in.h (includes): Fix typo in today's commit.
28979
28980 2009-12-24  Eric Blake  <ebb9@byu.net>
28981
28982         tests: add signature checks
28983         * tests/signature.h (SIGNATURE_CHECK): New file.
28984         * modules/atexit-tests (Files): Use it.
28985         * modules/btowc-tests (Files): Likewise.
28986         * modules/canonicalize-lgpl-tests (Files): Likewise.
28987         * modules/ceilf-tests (Files): Likewise.
28988         * modules/ceill-tests (Files): Likewise.
28989         * modules/chown-tests (Files): Likewise.
28990         * modules/dprintf-posix-tests (Files): Likewise.
28991         * modules/dup2-tests (Files): Likewise.
28992         * modules/dup3-tests (Files): Likewise.
28993         * modules/duplocale-tests (Files): Likewise.
28994         * modules/fchdir-tests (Files): Likewise.
28995         * modules/fcntl-tests (Files): Likewise.
28996         * modules/fdopendir-tests (Files): Likewise.
28997         * modules/fflush-tests (Files): Likewise.
28998         * modules/flock-tests (Files): Likewise.
28999         * modules/floorf-tests (Files): Likewise.
29000         * modules/floorl-tests (Files): Likewise.
29001         * modules/fnmatch-tests (Files): Likewise.
29002         * modules/fopen-tests (Files): Likewise.
29003         * modules/fprintf-posix-tests (Files): Likewise.
29004         * modules/freopen-tests (Files): Likewise.
29005         * modules/frexp-nolibm-tests (Files): Likewise.
29006         * modules/frexp-tests (Files): Likewise.
29007         * modules/frexpl-nolibm-tests (Files): Likewise.
29008         * modules/frexpl-tests (Files): Likewise.
29009         * modules/fseek-tests (Files): Likewise.
29010         * modules/fseeko-tests (Files): Likewise.
29011         * modules/fsync-tests (Files): Likewise.
29012         * modules/ftell-tests (Files): Likewise.
29013         * modules/ftello-tests (Files): Likewise.
29014         * modules/futimens-tests (Files): Likewise.
29015         * modules/getaddrinfo-tests (Files): Likewise.
29016         * modules/getcwd-tests (Files): Likewise.
29017         * modules/getdelim-tests (Files): Likewise.
29018         * modules/getdtablesize-tests (Files): Likewise.
29019         * modules/getgroups-tests (Files): Likewise.
29020         * modules/gethostname-tests (Files): Likewise.
29021         * modules/getline-tests (Files): Likewise.
29022         * modules/getopt-posix-tests (Files): Likewise.
29023         * modules/gettimeofday-tests (Files): Likewise.
29024         * modules/glob-tests (Files): Likewise.
29025         * modules/iconv-tests (Files): Likewise.
29026         * modules/inet_ntop-tests (Files): Likewise.
29027         * modules/inet_pton-tests (Files): Likewise.
29028         * modules/isblank-tests (Files): Likewise.
29029         * modules/lchown-tests (Files): Likewise.
29030         * modules/ldexpl-tests (Files): Likewise.
29031         * modules/link-tests (Files): Likewise.
29032         * modules/linkat-tests (Files): Likewise.
29033         * modules/lseek-tests (Files): Likewise.
29034         * modules/lstat-tests (Files): Likewise.
29035         * modules/mbrtowc-tests (Files): Likewise.
29036         * modules/mbsinit-tests (Files): Likewise.
29037         * modules/mbsnrtowcs-tests (Files): Likewise.
29038         * modules/mbsrtowcs-tests (Files): Likewise.
29039         * modules/memchr-tests (Files): Likewise.
29040         * modules/memcmp-tests (Files): Likewise.
29041         * modules/memmem-tests (Files): Likewise.
29042         * modules/memrchr-tests (Files): Likewise.
29043         * modules/mkdir-tests (Files): Likewise.
29044         * modules/mkfifo-tests (Files): Likewise.
29045         * modules/mkfifoat-tests (Files): Likewise.
29046         * modules/mknod-tests (Files): Likewise.
29047         * modules/nanosleep-tests (Files): Likewise.
29048         * modules/nl_langinfo-tests (Files): Likewise.
29049         * modules/obstack-printf-tests (Files): Likewise.
29050         * modules/open-tests (Files): Likewise.
29051         * modules/openat-tests (Files): Likewise.
29052         * modules/perror-tests (Files): Likewise.
29053         * modules/pipe2-tests (Files): Likewise.
29054         * modules/poll-tests (Files): Likewise.
29055         * modules/popen-tests (Files): Likewise.
29056         * modules/posix_spawn-tests (Files): Likewise.
29057         * modules/posix_spawnp-tests (Files): Likewise.
29058         * modules/pread-tests (Files): Likewise.
29059         * modules/printf-posix-tests (Files): Likewise.
29060         * modules/pty-tests (Files): Likewise.
29061         * modules/random_r-tests (Files): Likewise.
29062         * modules/rawmemchr-tests (Files): Likewise.
29063         * modules/readlink-tests (Files): Likewise.
29064         * modules/remove-tests (Files): Likewise.
29065         * modules/rename-tests (Files): Likewise.
29066         * modules/renameat-tests (Files): Likewise.
29067         * modules/rmdir-tests (Files): Likewise.
29068         * modules/round-tests (Files): Likewise.
29069         * modules/roundf-tests (Files): Likewise.
29070         * modules/roundl-tests (Files): Likewise.
29071         * modules/select-tests (Files): Likewise.
29072         * modules/setenv-tests (Files): Likewise.
29073         * modules/sigaction-tests (Files): Likewise.
29074         * modules/sleep-tests (Files): Likewise.
29075         * modules/snprintf-posix-tests (Files): Likewise.
29076         * modules/snprintf-tests (Files): Likewise.
29077         * modules/sprintf-posix-tests (Files): Likewise.
29078         * modules/stat-tests (Files): Likewise.
29079         * modules/strcasestr-tests (Files): Likewise.
29080         * modules/strchrnul-tests (Files): Likewise.
29081         * modules/strerror-tests (Files): Likewise.
29082         * modules/strsignal-tests (Files): Likewise.
29083         * modules/strstr-tests (Files): Likewise.
29084         * modules/strtod-tests (Files): Likewise.
29085         * modules/strverscmp-tests (Files): Likewise.
29086         * modules/symlink-tests (Files): Likewise.
29087         * modules/symlinkat-tests (Files): Likewise.
29088         * modules/times-tests (Files): Likewise.
29089         * modules/trunc-tests (Files): Likewise.
29090         * modules/truncf-tests (Files): Likewise.
29091         * modules/truncl-tests (Files): Likewise.
29092         * modules/tsearch-tests (Files): Likewise.
29093         * modules/uname-tests (Files): Likewise.
29094         * modules/unlink-tests (Files): Likewise.
29095         * modules/unsetenv-tests (Files): Likewise.
29096         * modules/usleep-tests (Files): Likewise.
29097         * modules/utimensat-tests (Files): Likewise.
29098         * modules/vasprintf-tests (Files): Likewise.
29099         * modules/vdprintf-posix-tests (Files): Likewise.
29100         * modules/vfprintf-posix-tests (Files): Likewise.
29101         * modules/vprintf-posix-tests (Files): Likewise.
29102         * modules/vsnprintf-posix-tests (Files): Likewise.
29103         * modules/vsnprintf-tests (Files): Likewise.
29104         * modules/vsprintf-posix-tests (Files): Likewise.
29105         * modules/wcrtomb-tests (Files): Likewise.
29106         * modules/wcsnrtombs-tests (Files): Likewise.
29107         * modules/wcsrtombs-tests (Files): Likewise.
29108         * modules/wcwidth-tests (Files): Likewise.
29109         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
29110         * tests/test-isinf.c (isinf): Likewise.
29111         * tests/test-isnan.c (isnan): Likewise.
29112         * tests/test-signbit.c (signbit): Likewise.
29113         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
29114         declaration, either as macro or with correct signature.
29115         (select): Ensure function under test is declared with correct
29116         signature in correct header.
29117         * tests/test-atexit.c (atexit): Likewise.
29118         * tests/test-btowc.c (btowc): Likewise.
29119         * tests/test-canonicalize-lgpl.c (realpath)
29120         (canonicalize_file_name): Likewise.
29121         * tests/test-ceilf1.c (ceilf): Likewise.
29122         * tests/test-ceill.c (ceill): Likewise.
29123         * tests/test-chown.c (chown): Likewise.
29124         * tests/test-dprintf-posix.c (dprintf): Likewise.
29125         * tests/test-dup2.c (dup2): Likewise.
29126         * tests/test-dup3.c (dup3): Likewise.
29127         * tests/test-duplocale.c (duplocale): Likewise.
29128         * tests/test-fchdir.c (fchdir): Likewise.
29129         * tests/test-fchownat.c (fchownat): Likewise.
29130         * tests/test-fcntl.c (fcntl): Likewise.
29131         * tests/test-fdopendir.c (fdopendir): Likewise.
29132         * tests/test-fflush.c (fflush): Likewise.
29133         * tests/test-flock.c (flock): Likewise.
29134         * tests/test-floorf1.c (floorf): Likewise.
29135         * tests/test-floorl.c (floorl): Likewise.
29136         * tests/test-fnmatch.c (fnmatch): Likewise.
29137         * tests/test-fopen.c (fopen): Likewise.
29138         * tests/test-fprintf-posix.c (fprintf): Likewise.
29139         * tests/test-freopen.c (freopen): Likewise.
29140         * tests/test-frexp.c (frexp): Likewise.
29141         * tests/test-frexpl.c (frexpl): Likewise.
29142         * tests/test-fseek.c (fseek): Likewise.
29143         * tests/test-fseeko.c (fseeko): Likewise.
29144         * tests/test-fstatat.c (fstatat): Likewise.
29145         * tests/test-fsync.c (fsync): Likewise.
29146         * tests/test-ftell.c (ftell): Likewise.
29147         * tests/test-ftello.c (ftello): Likewise.
29148         * tests/test-futimens.c (futimens): Likewise.
29149         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
29150         (gai_strerror): Likewise.
29151         * tests/test-getcwd.c (getcwd): Likewise.
29152         * tests/test-getdelim.c (getdelim): Likewise.
29153         * tests/test-getdtablesize.c (getdtablesize): Likewise.
29154         * tests/test-getgroups.c (getgroups): Likewise.
29155         * tests/test-gethostname.c (gethostname): Likewise.
29156         * tests/test-getline.c (getline): Likewise.
29157         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
29158         Likewise.
29159         * tests/test-gettimeofday.c (gettimeofday): Likewise.
29160         * tests/test-glob.c (glob, globfree): Likewise.
29161         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
29162         * tests/test-inet_ntop.c (inet_ntop): Likewise.
29163         * tests/test-inet_pton.c (inet_pton): Likewise.
29164         * tests/test-isblank.c (isblank): Likewise.
29165         * tests/test-lchown.c (lchown): Likewise.
29166         * tests/test-ldexpl.c (ldexpl): Likewise.
29167         * tests/test-link.c (link): Likewise.
29168         * tests/test-linkat.c (linkat): Likewise.
29169         * tests/test-lseek.c (lseek): Likewise.
29170         * tests/test-lstat.c (lstat): Likewise.
29171         * tests/test-mbrtowc.c (mbrtowc): Likewise.
29172         * tests/test-mbsinit.c (mbsinit): Likewise.
29173         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
29174         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
29175         * tests/test-memchr.c (memchr): Likewise.
29176         * tests/test-memcmp.c (memcmp): Likewise.
29177         * tests/test-memmem.c (memmem): Likewise.
29178         * tests/test-memrchr.c (memrchr): Likewise.
29179         * tests/test-mkdir.c (mkdir): Likewise.
29180         * tests/test-mkdirat.c (mkdirat): Likewise.
29181         * tests/test-mkfifo.c (mkfifo): Likewise.
29182         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
29183         * tests/test-mknod.c (mknod): Likewise.
29184         * tests/test-nanosleep.c (nanosleep): Likewise.
29185         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
29186         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
29187         Likewise.
29188         * tests/test-open.c (open): Likewise.
29189         * tests/test-openat.c (openat): Likewise.
29190         * tests/test-perror.c (perror): Likewise.
29191         * tests/test-pipe2.c (pipe2): Likewise.
29192         * tests/test-poll.c (poll): Likewise.
29193         * tests/test-popen.c (popen, pclose): Likewise.
29194         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
29195         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
29196         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
29197         (posix_spawn_file_actions_destroy)
29198         (posix_spawn_file_actions_addclose)
29199         (posix_spawn_file_actions_addopen)
29200         (posix_spawn_file_actions_adddup2): Likewise.
29201         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
29202         * tests/test-pread.c (pread): Likewise.
29203         * tests/test-printf-posix.c (printf): Likewise.
29204         * tests/test-pty.c (openpty, forkpty): Likewise.
29205         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
29206         (random_r): Likewise.
29207         * tests/test-rawmemchr.c (rawmemchr): Likewise.
29208         * tests/test-readlink.c (readlink): Likewise.
29209         * tests/test-remove.c (remove): Likewise.
29210         * tests/test-rename.c (rename): Likewise.
29211         * tests/test-renameat.c (renameat): Likewise.
29212         * tests/test-rmdir.c (rmdir): Likewise.
29213         * tests/test-round1.c (round): Likewise.
29214         * tests/test-roundf1.c (roundf): Likewise.
29215         * tests/test-roundl.c (roundl): Likewise.
29216         * tests/test-setenv.c (setenv): Likewise.
29217         * tests/test-sigaction.c (sigaction): Likewise.
29218         * tests/test-sleep.c (sleep): Likewise.
29219         * tests/test-snprintf.c (snprintf): Likewise.
29220         * tests/test-sprintf-posix.c (sprintf): Likewise.
29221         * tests/test-stat.c (stat): Likewise.
29222         * tests/test-stpncpy.c (stpncpy): Likewise.
29223         * tests/test-strcasestr.c (strcasestr): Likewise.
29224         * tests/test-strchrnul.c (strchrnul): Likewise.
29225         * tests/test-strerror.c (strerror): Likewise.
29226         * tests/test-strsignal.c (strsignal): Likewise.
29227         * tests/test-strstr.c (strstr): Likewise.
29228         * tests/test-strtod.c (strtod): Likewise.
29229         * tests/test-strverscmp.c (strverscmp): Likewise.
29230         * tests/test-symlink.c (symlink): Likewise.
29231         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
29232         * tests/test-times.c (times): Likewise.
29233         * tests/test-trunc1.c (trunc): Likewise.
29234         * tests/test-truncf1.c (truncf): Likewise.
29235         * tests/test-truncl.c (truncl): Likewise.
29236         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
29237         Likewise.
29238         * tests/test-uname.c (uname): Likewise.
29239         * tests/test-unlink.c (unlink): Likewise.
29240         * tests/test-unlinkat.c (unlinkat): Likewise.
29241         * tests/test-unsetenv.c (unsetenv): Likewise.
29242         * tests/test-usleep.c (usleep): Likewise.
29243         * tests/test-utimensat.c (utimensat): Likewise.
29244         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
29245         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
29246         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
29247         * tests/test-vprintf-posix.c (vprintf): Likewise.
29248         * tests/test-vsnprintf.c (vsnprintf): Likewise.
29249         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
29250         * tests/test-wcrtomb.c (wcrtomb): Likewise.
29251         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
29252         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
29253         * tests/test-wcwidth.c (wcwidth): Likewise.
29254
29255         build: pull in conditional headers during GNULIB_POSIXCHECK
29256         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
29257         definitions from any conditionally-included headers.
29258         * lib/stdlib.in.h (includes): Likewise.
29259         * lib/unistd.in.h (includes): Likewise.
29260
29261 2009-12-24  Bruno Haible  <bruno@clisp.org>
29262
29263         * tests/test-argv-iter.c: Include header file being tested immediately
29264         after config.h.
29265         * tests/test-base64.c: Likewise.
29266         * tests/test-flock.c: Likewise.
29267         * tests/test-fsync.c: Likewise.
29268         * tests/test-getdate.c: Likewise.
29269         * tests/test-getndelim2.c: Likewise.
29270         * tests/test-isfinite.c: Likewise.
29271         * tests/test-isinf.c: Likewise.
29272         * tests/test-strerror.c: Likewise.
29273         * tests/test-strsignal.c: Likewise.
29274
29275 2009-12-23  Eric Blake  <ebb9@byu.net>
29276
29277         unistd: work around cygwin bug
29278         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
29279         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
29280         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
29281
29282 2009-12-23  Bruno Haible  <bruno@clisp.org>
29283
29284         localename: More tests.
29285         * tests/test-localename.c (SIZEOF): New macro.
29286         (categories): New variable.
29287         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
29288         test_locale_name_default): Add test w.r.t. thread locale.
29289         (test_locale_name_thread): New function.
29290         (main): Invoke it.
29291
29292         localename: Make aware of thread locale.
29293         * lib/localename.h (gl_locale_name_thread): New declaration.
29294         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
29295         behaviour with respect to thread locale.
29296         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
29297         <langinfo.h>, glthread/lock.h.
29298         (SIZE_BITS): New macro.
29299         (string_hash): New function.
29300         (struct hash_node): New type.
29301         (HASH_TABLE_SIZE): New macro.
29302         (struniq_hash_table, struniq_lock): New variables.
29303         (struniq): New function.
29304         (gl_locale_name_thread): New function.
29305         (gl_locale_name): Invoke it.
29306         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
29307         * modules/localename (Depends-on): Add lock.
29308         Reported by Mike Gran <spk121@yahoo.com>.
29309
29310 2009-12-23  Eric Blake  <ebb9@byu.net>
29311
29312         va-args: new module
29313         * modules/va-args: New file.
29314         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
29315         * MODULES.html.sh (Core language properties): Mention it.
29316
29317         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
29318         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
29319         named alias for __attribute__((__unused__)).
29320         * lib/chown.c: Update client.
29321         * lib/fchmodat.c: Likewise.
29322         * lib/fts.c: Likewise.
29323         * lib/getdate.y: Likewise.
29324         * lib/getgroups.c: Likewise.
29325         * lib/getopt.c: Likewise.
29326         * lib/getugroups.c: Likewise.
29327         * lib/mkdir.c: Likewise.
29328         * lib/mkfifo.c: Likewise.
29329         * lib/mkfifoat.c: Likewise.
29330         * lib/mknod.c: Likewise.
29331         * lib/mknodat.c: Likewise.
29332         * lib/readlink.c: Likewise.
29333         * lib/se-context.in.h: Likewise.
29334         * lib/se-selinux.in.h: Likewise.
29335         * lib/sockets.c: Likewise.
29336         * lib/symlink.c: Likewise.
29337         * lib/symlinkat.c: Likewise.
29338         * lib/unicodeio.c: Likewise.
29339         * lib/unistr.h: Likewise.
29340         * tests/test-areadlink.c: Likewise.
29341         * tests/test-areadlinkat.c: Likewise.
29342         * tests/test-filenamecat.c: Likewise.
29343         * tests/test-fseeko.c: Likewise.
29344         * tests/test-ftello.c: Likewise.
29345         * tests/test-getdate.c: Likewise.
29346         * tests/test-getgroups.c: Likewise.
29347         * tests/test-gethostname.c: Likewise.
29348         * tests/test-quotearg.c: Likewise.
29349         * tests/test-version-etc.c: Likewise.
29350         * tests/test-xalloc-die.c: Likewise.
29351         * tests/test-xfprintf-posix.c: Likewise.
29352         * tests/test-xprintf-posix.c: Likewise.
29353         * tests/test-xvasprintf.c: Likewise.
29354
29355         tests: avoid compiler warnings
29356         * tests/test-fcntl.c (main): Delete unused parameters.
29357         * tests/test-freopen-safer.c (main): Likewise.
29358         * tests/test-xalloc-die.c (main): Mark unused parameters.
29359         * tests/test-fseeko.c (main): Likewise.
29360         * tests/test-ftello.c (main): Likewise.
29361         * tests/test-nanosleep.c (main): Avoid declaration warning.
29362         * tests/test-sleep.c (main): Likewise.
29363         * tests/test-unsetenv.c (main): Silence warning about string
29364         literal.
29365         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
29366
29367 2009-12-23  Bruno Haible  <bruno@clisp.org>
29368
29369         * tests/test-localename.c (test_locale_name): New function, extracted
29370         from main. Also test mixed situations.
29371         (test_locale_name_posix, test_locale_name_environ,
29372         test_locale_name_default): New functions.
29373         (main): Invoke them all.
29374         * modules/localename-tests (configure.ac): Test for newlocale.
29375
29376 2009-12-23  Bruno Haible  <bruno@clisp.org>
29377
29378         unistd: Ensure getcwd gets declared before being overridden.
29379         * lib/unistd.in.h: Conditionally include <io.h>.
29380
29381 2009-12-22  Bruno Haible  <bruno@clisp.org>
29382
29383         wchar: Diagnose broken combination of glibc and gcc versions and flags.
29384         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
29385         (gl_WCHAR_H): Invoke it.
29386         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
29387         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
29388         Reported by Karl Berry <karl@freefriends.org>.
29389
29390 2009-12-22  Eric Blake  <ebb9@byu.net>
29391
29392         math, unistd: avoid redundant includes
29393         * lib/math.in.h (isnan): No need to re-include <math.h>.
29394         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
29395
29396         getsubopt: work around cygwin bug
29397         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
29398         avoid conflicting with system getsubopt.
29399         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
29400         bug.
29401
29402         getopt: synchronize from glibc
29403         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
29404         parameter order.  Adjust all callers.
29405         (_getopt_internal_r, main): Adjust quoting in error messages.
29406         Drop considerations for outdated POSIX 1003.2 error message.
29407         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
29408         callers.
29409         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
29410
29411         test-getopt: test stderr behavior
29412         * modules/getopt-posix-tests (Depends-on): Add dup2.
29413         * tests/test-getopt.c (ASSERT): Avoid stderr.
29414         (main): Move stderr to a temporary file.
29415         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
29416         Instead, add parameter to inform caller if output occurred.
29417         (test_getopt): Adjust all existing tests to expect silence, and
29418         add new tests of leading ":".
29419         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
29420         glibc shortcomings with leading "-:" or "+:" in optstring.
29421         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29422         Likewise.
29423         * doc/posix-functions/getopt.texi (getopt): Likewise.
29424
29425         test-getopt: enhance test
29426         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
29427         supports optind=0.
29428         * tests/test-getopt.c (OPTIND_MIN): Move...
29429         * tests/test-getopt.h (OPTIND_MIN): ...here.
29430         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
29431         Require that optind=0 works, since modern BSD supports it in
29432         addition to optreset, and since coreutils expects it.
29433         (test_getopt_long_only): New test.
29434         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
29435         glibc shortcomings with 'W;', and enforcement of optind=0.
29436         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29437         Likewise.
29438
29439 2009-12-21  Bruno Haible  <bruno@clisp.org>
29440
29441         localename: Improvements for MacOS X and Cygwin.
29442         * lib/localename.h (gl_locale_name_environ): New declaration.
29443         * lib/localename.c (gl_locale_name_environ): New function, extracted from
29444         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
29445         (gl_locale_name_posix): Invoke it.
29446         (gl_locale_name_default): Add comments. Use Windows native API also on
29447         Cygwin.
29448
29449 2009-12-21  Bruno Haible  <bruno@clisp.org>
29450
29451         Update list of Win32 locale ids.
29452         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
29453         (LANG_SAMI): Renamed from LANG_SAAMI.
29454         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
29455         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
29456         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
29457         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
29458         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
29459         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
29460         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
29461         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
29462         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
29463         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
29464         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
29465         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
29466         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
29467         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
29468         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
29469         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
29470         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
29471         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
29472         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
29473         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
29474         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
29475         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
29476         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
29477         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
29478         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
29479         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
29480         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
29481         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
29482         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
29483         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
29484         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
29485         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
29486         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
29487         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
29488         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
29489         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
29490         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
29491         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
29492         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
29493         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
29494         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
29495         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
29496         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
29497         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
29498         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
29499         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
29500         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
29501         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
29502         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
29503         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
29504         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
29505         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
29506         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
29507         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
29508         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
29509         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
29510         Add more languages and countries for Sami, Sorbian. Add more countries
29511         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
29512         for Pashto. Change country for Syriac, Tswana.
29513
29514 2009-12-21  Eric Blake  <ebb9@byu.net>
29515
29516         test-utimens: avoid spurious failure
29517         * tests/test-chown.h (nap): Factor...
29518         * tests/nap.h: ...into new file.
29519         * tests/test-lchown.h (nap): Avoid duplication.
29520         * tests/test-utimens-common.h (nap): Use shared implementation,
29521         necessary on file systems with 1-second resolution.
29522         * modules/chown-tests (Files): Include new file.
29523         * modules/fdutimensat-tests (Files): Likewise.
29524         * modules/futimens-tests (Files): Likewise.
29525         * modules/lchown-tests (Files): Likewise.
29526         * modules/openat-tests (Files): Likewise.
29527         * modules/utimens-tests (Files): Likewise.
29528         * modules/utimensat-tests (Files): Likewise.
29529
29530 2009-12-19  Eric Blake  <ebb9@byu.net>
29531
29532         futimens, utimensat: work around Linux bug
29533         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
29534         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29535         * lib/utimensat.c (rpl_utimensat): Work around it.
29536         * lib/futimens.c (rpl_futimens): Adjust comment.
29537
29538         utimens: work around Linux ctime bug
29539         * lib/utimens.c (detect_ctime_bug): New helper function.
29540         (update_timespec): Differentiate between workaround needed for
29541         this bug vs. what is needed for systems that lack utimensat.
29542         (fdutimens, lutimens): Work around bug.
29543
29544         utimens: check for ctime update
29545         * tests/test-utimens-common.h (check_ctime): Define.
29546         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
29547         * tests/test-futimens.h (test_futimens): Likewise.
29548         * tests/test-lutimens.h (test_lutimens): Likewise.
29549         * doc/posix-functions/futimens.texi (futimens): Document the bug.
29550         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29551
29552 2009-12-19  Bruno Haible  <bruno@clisp.org>
29553
29554         dprintf-posix: Check against memory leak fixed on 2009-12-15.
29555         * tests/test-dprintf-posix2.sh: New file.
29556         * tests/test-dprintf-posix2.c: New file.
29557         * modules/dprintf-posix-tests (Files): Add them.
29558         (configure.ac): Check for getrlimit and setrlimit.
29559         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
29560
29561 2009-12-19  Bruno Haible  <bruno@clisp.org>
29562
29563         fprintf-posix: Check against memory leak fixed on 2009-12-15.
29564         * tests/test-fprintf-posix3.sh: New file.
29565         * tests/test-fprintf-posix3.c: New file.
29566         * modules/fprintf-posix-tests (Files): Add them.
29567         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
29568
29569 2009-12-19  Eric Blake  <ebb9@byu.net>
29570
29571         dirfd: fix prototype
29572         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
29573         * lib/dirfd.c (dirfd): Likewise.
29574
29575         canonicalize: reduce memory usage
29576         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
29577         allocation to size.
29578         Reported by Solar Designer <solar@openwall.com>.
29579
29580 2009-12-19  Bruno Haible  <bruno@clisp.org>
29581
29582         New module attribute 'Applicability'.
29583         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
29584         * gnulib-tool: New option --extract-applicability.
29585         (func_usage): Document it.
29586         (sed_extract_prog): Recognize it.
29587         (func_get_applicability): New function.
29588         (func_import): Generalize handling of 'link-warning' module.
29589         * modules/link-warning (Applicability): New section.
29590         * modules/arg-nonnull (Applicability): New section.
29591         Repoted by Simon Josefsson <simon@josefsson.org>.
29592
29593 2009-12-19  Bruno Haible  <bruno@clisp.org>
29594
29595         fflush: tweak
29596         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
29597         * lib/fseeko.c (rpl_fseeko): Likewise.
29598
29599 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
29600
29601         * lib/gl_list.h: Fix typo in comment.
29602
29603 2009-12-16  Eric Blake  <ebb9@byu.net>
29604
29605         fcntl: use to simplify other modules
29606         * modules/cloexec (Depends-on): Add fcntl.
29607         * modules/fchdir (Depends-on): Likewise.
29608         * modules/fd-safer-flag (Depends-on): Likewise.
29609         * modules/unistd-safer (Depends-on): Likewise.
29610         * modules/dup3 (configure.ac): Set module indicator.
29611         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
29612         missing.
29613         * lib/fchdir.c (_gl_register_dup): Fix comment.
29614         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
29615         * lib/dup-safer.c (dup_safer): Likewise.
29616         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
29617         * lib/dup3.c (dup3): Likewise.
29618         * tests/test-fchdir.c (main): Enhance test.
29619         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
29620
29621         fcntl: port portions of fcntl to mingw
29622         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
29623         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
29624         replacement for mingw.
29625         * modules/fcntl (Description): Update.
29626         (Depends-on): Add dup2.
29627         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
29628         * modules/fcntl-h (Makefile.am): Substitute it.
29629         * lib/fcntl.in.h (fcntl): Update declaration.
29630         (F_DUPFD, F_GETFD): New macros, when needed.
29631         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
29632         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
29633         * tests/test-fcntl.c (check_flags, main): Enhance test for items
29634         we now guarantee.
29635
29636         fcntl: work around cygwin bug in F_DUPFD
29637         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
29638         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
29639         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
29640         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
29641         * doc/posix-functions/fcntl.texi (fcntl): Document it.
29642
29643         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
29644         * modules/fcntl (Files): List new files.
29645         (configure.ac): Run a test.
29646         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
29647         * lib/fcntl.c (rpl_fcntl): Likewise.
29648         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
29649         (gl_FCNTL_H): Always replace fcntl.h.
29650         * modules/fcntl-h (Makefile.am): Substitute witnesses.
29651         * lib/fcntl.in.h (fcntl): Declare replacement.
29652         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
29653         needed, plus a witness.
29654         * doc/posix-functions/fcntl.texi (fcntl): Document this.
29655         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
29656         * tests/test-fcntl.c: New file.
29657         * modules/fcntl-tests: Likewise.
29658
29659         binary-io: avoid potential compilation warning
29660         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
29661         directives.
29662
29663         fflush: avoid compilation error on NetBSD
29664         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
29665         between off_t and fpos_t, since the latter is sometimes a struct.
29666         * lib/fseeko.c (rpl_fseeko): Likewise.
29667         Reported by Alexander Nasonov <alnsn@yandex.ru>.
29668
29669 2009-12-15  Eric Blake  <ebb9@byu.net>
29670
29671         fcntl-h, stdio, sys_ioctl: fix declarations
29672         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
29673         function must not take arguments.
29674         * lib/sys_ioctl.in.h (ioctl): Likewise.
29675         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
29676         (open): Add a link warning.
29677
29678 2009-12-15  Jim Meyering  <meyering@redhat.com>
29679
29680         areadlink, areadlink-with-size: relax license to LGPLv2+
29681         * modules/areadlink (License): Relax to LGPLv2+.
29682         * modules/areadlink-with-size (License): Likewise.
29683
29684 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
29685             Bruno Haible  <bruno@clisp.org>
29686
29687         *printf: Fix memory leak.
29688         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
29689         * lib/vfprintf.c (vfprintf): Likewise.
29690         * lib/dprintf.c (dprintf): Likewise.
29691         * lib/vdprintf.c (vdprintf): Likewise.
29692
29693 2009-12-14  Eric Blake  <ebb9@byu.net>
29694
29695         accept4: adjust module dependencies
29696         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
29697
29698         utimens: one more try at avoiding compiler warning
29699         * lib/utimens.c (lutimens): Lower scope of result.
29700
29701 2009-12-13  Bruno Haible  <bruno@clisp.org>
29702
29703         Move the malloc checking from module 'list' to new module 'xlist'.
29704         * modules/xlist: New file.
29705         * lib/gl_xlist.h: New file.
29706         * lib/gl_xlist.c: New file.
29707         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
29708         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
29709         gl_list_add_last, gl_list_add_before, gl_list_add_after,
29710         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
29711         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
29712         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
29713         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
29714         gl_sortedlist_nx_add): New declarations.
29715         (struct gl_list_implementation): Rename and change methods accordingly.
29716         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
29717         (gl_list_nx_create): Renamed from gl_list_create.
29718         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
29719         (gl_list_nx_set_at): Renamed from gl_list_set_at.
29720         (gl_list_nx_add_first): Renamed from gl_list_add_first.
29721         (gl_list_nx_add_last): Renamed from gl_list_add_last.
29722         (gl_list_nx_add_before): Renamed from gl_list_add_before.
29723         (gl_list_nx_add_after): Renamed from gl_list_add_after.
29724         (gl_list_nx_add_at): Renamed from gl_list_add_at.
29725         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
29726         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
29727         gl_list_create_empty.
29728         (gl_list_nx_create): Renamed from gl_list_create.
29729         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
29730         (gl_list_nx_set_at): Renamed from gl_list_set_at.
29731         (gl_list_nx_add_first): Renamed from gl_list_add_first.
29732         (gl_list_nx_add_last): Renamed from gl_list_add_last.
29733         (gl_list_nx_add_before): Renamed from gl_list_add_before.
29734         (gl_list_nx_add_after): Renamed from gl_list_add_after.
29735         (gl_list_nx_add_at): Renamed from gl_list_add_at.
29736         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
29737         * lib/gl_array_list.c: Don't include xalloc.h.
29738         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
29739         NULL upon out-of-memory.
29740         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
29741         out-of-memory.
29742         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
29743         Change return type to 'int'.
29744         (gl_array_nx_set_at): Renamed from gl_array_set_at.
29745         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
29746         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
29747         upon out-of-memory.
29748         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
29749         upon out-of-memory.
29750         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
29751         upon out-of-memory.
29752         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
29753         upon out-of-memory.
29754         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
29755         out-of-memory.
29756         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
29757         Update.
29758         (gl_array_list_implementation): Update.
29759         * lib/gl_carray_list.c: Don't include xalloc.h.
29760         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
29761         Return NULL upon out-of-memory.
29762         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
29763         out-of-memory.
29764         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
29765         Change return type to 'int'.
29766         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
29767         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
29768         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
29769         upon out-of-memory.
29770         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
29771         upon out-of-memory.
29772         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
29773         out-of-memory.
29774         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
29775         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
29776         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
29777         Update.
29778         (gl_carray_list_implementation): Update.
29779         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
29780         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
29781         gl_linked_create_empty. Return NULL upon out-of-memory.
29782         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
29783         out-of-memory.
29784         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
29785         Change return type to 'int'. Return -1 upon out-of-memory.
29786         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
29787         out-of-memory.
29788         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
29789         upon out-of-memory.
29790         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
29791         upon out-of-memory.
29792         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
29793         NULL upon out-of-memory.
29794         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
29795         upon out-of-memory.
29796         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
29797         out-of-memory.
29798         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
29799         Update.
29800         * lib/gl_linked_list.c: Don't include xalloc.h.
29801         (gl_linked_list_implementation): Update.
29802         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
29803         (add_to_bucket): Change return type to 'int'.
29804         (gl_linkedhash_list_implementation): Update.
29805         * lib/gl_anytree_list1.h (free_subtree): New function.
29806         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
29807         gl_tree_create_empty. Return NULL upon out-of-memory.
29808         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
29809         Change return type to 'int'. Return -1 upon out-of-memory.
29810         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
29811         out-of-memory.
29812         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
29813         (gl_tree_remove_node): New function, moved here from
29814         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
29815         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
29816         Update.
29817         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
29818         malloc, not xmalloc. Return NULL upon out-of-memory.
29819         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
29820         out-of-memory.
29821         (gl_tree_remove_node_from_tree): New function, extracted from
29822         gl_tree_remove_node.
29823         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
29824         upon out-of-memory.
29825         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
29826         out-of-memory.
29827         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
29828         upon out-of-memory.
29829         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
29830         upon out-of-memory.
29831         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
29832         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
29833         not xmalloc. Return NULL upon out-of-memory.
29834         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
29835         out-of-memory.
29836         (gl_tree_remove_node_from_tree): New function, extracted from
29837         gl_tree_remove_node.
29838         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
29839         upon out-of-memory.
29840         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
29841         out-of-memory.
29842         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
29843         upon out-of-memory.
29844         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
29845         upon out-of-memory.
29846         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
29847         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
29848         gl_anytree_list1.h before gl_anyavltree_list2.h.
29849         (gl_avltree_list_implementation): Update.
29850         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
29851         gl_anytree_list1.h before gl_anyavltree_list2.h.
29852         (gl_rbtree_list_implementation): Update.
29853         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
29854         Change return type to 'int'. Return -1 upon out-of-memory. Use
29855         __builtin_expect.
29856         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
29857         (gl_avltreehash_list_implementation): Update.
29858         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
29859         (gl_rbtreehash_list_implementation): Update.
29860         * modules/array-list (Depends-on): Remove xalloc.
29861         * modules/carray-list (Depends-on): Likewise.
29862         * modules/linked-list (Depends-on): Likewise.
29863         * modules/linkedhash-list (Depends-on): Likewise.
29864         * modules/avltree-list (Depends-on): Likewise.
29865         * modules/rbtree-list (Depends-on): Likewise.
29866         * modules/avltreehash-list (Depends-on): Likewise.
29867         * modules/rbtreehash-list (Depends-on): Likewise.
29868
29869         * modules/xsublist: New file.
29870         * lib/gl_xsublist.h: New file.
29871         * lib/gl_xsublist.c: New file.
29872         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
29873         (gl_sublist_nx_create): New declaration.
29874         * lib/gl_sublist.c: Don't include xalloc.h.
29875         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
29876         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
29877         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
29878         Change return type to 'int'. Return -1 upon out-of-memory.
29879         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
29880         upon out-of-memory.
29881         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
29882         NULL upon out-of-memory.
29883         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
29884         upon out-of-memory.
29885         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
29886         NULL upon out-of-memory.
29887         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
29888         NULL upon out-of-memory.
29889         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
29890         upon out-of-memory.
29891         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
29892         (gl_sublist_list_implementation): Update.
29893         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
29894         upon out-of-memory.
29895         * modules/sublist (Depends-on): Remove xalloc.
29896
29897         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
29898         * tests/test-carray_list.c: Likewise.
29899         * tests/test-linked_list.c: Likewise.
29900         * tests/test-linkedhash_list.c: Likewise.
29901         * tests/test-avltree_list.c: Likewise.
29902         * tests/test-rbtree_list.c: Likewise.
29903         * tests/test-avltreehash_list.c: Likewise.
29904         * tests/test-rbtreehash_list.c: Likewise.
29905         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
29906         * modules/carray-list-tests (Makefile.am): Likewise.
29907         * modules/linked-list-tests (Makefile.am): Likewise.
29908         * modules/linkedhash-list-tests (Makefile.am): Likewise.
29909         * modules/avltree-list-tests (Makefile.am): Likewise.
29910         * modules/rbtree-list-tests (Makefile.am): Likewise.
29911         * modules/avltreehash-list-tests (Makefile.am): Likewise.
29912         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
29913
29914         * NEWS: Mention the changes.
29915
29916         * lib/clean-temp.c: Include gl_xlist.h.
29917         * modules/clean-temp (Depends-on): Add xlist.
29918
29919         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
29920         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
29921
29922         * tests/test-array_oset.c: Include gl_xlist.h.
29923         * modules/array-oset-tests (Depends-on): Add xlist.
29924
29925         Reported by José E. Marchesi <jemarch@gnu.org>.
29926
29927 2009-12-13  Bruno Haible  <bruno@clisp.org>
29928
29929         Move the malloc checking from module 'oset' to new module 'xoset'.
29930         * modules/xoset: New file.
29931         * lib/gl_xoset.h: New file.
29932         * lib/gl_xoset.c: New file.
29933         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
29934         declarations.
29935         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
29936         (struct gl_oset_implementation): Rename and change methods accordingly.
29937         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
29938         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
29939         'int'. Mark as __warn_unused_result__.
29940         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
29941         gl_oset_create_empty.
29942         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
29943         'int'.
29944         * lib/gl_array_oset.c: Don't include xalloc.h.
29945         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
29946         malloc, not xmalloc.
29947         (grow): Change return type to 'int'. Don't call xalloc_die.
29948         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
29949         to 'int'.
29950         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
29951         'int'.
29952         (gl_array_oset_implementation): Update.
29953         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
29954         gl_tree_create_empty.
29955         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
29956         'int'.
29957         * lib/gl_avltree_oset.c: Don't include xalloc.h.
29958         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
29959         xmalloc.
29960         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
29961         not xmalloc.
29962         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
29963         xmalloc.
29964         (gl_avltree_oset_implementation): Update.
29965         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
29966         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
29967         xmalloc.
29968         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
29969         not xmalloc.
29970         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
29971         xmalloc.
29972         (gl_rbtree_oset_implementation): Update.
29973         * modules/array-oset (Depends-on): Remove xalloc.
29974         * modules/avltree-oset (Depends-on): Likewise.
29975         * modules/rbtree-oset (Depends-on): Likewise.
29976         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
29977         * tests/test-avltree_oset.c: Likewise.
29978         * tests/test-rbtree_oset.c: Likewise.
29979         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
29980         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
29981         * modules/rbtree-oset-tests (Makefile.am): Likewise.
29982         * NEWS: Mention the change.
29983
29984 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
29985
29986         maint.mk: allow a project to override release-prep commands
29987         * top/maint.mk (alpha, beta, stable): Move release-preparatory
29988         commands into a new rule.
29989         (release-prep): New rule.
29990         (release-prep-hook): New overridable variable.
29991
29992 2009-12-13  Bruno Haible  <bruno@clisp.org>
29993
29994         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
29995
29996 2009-12-13  Jim Meyering  <meyering@redhat.com>
29997
29998         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
29999         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
30000
30001 2009-12-12  Bruno Haible  <bruno@clisp.org>
30002
30003         duplocale: Tweak.
30004         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
30005
30006 2009-12-12  Karl Berry  <karl@gnu.org>
30007
30008         * config/srclist.txt (strtoll.c): tab changes, no more sync.
30009
30010 2009-12-12  Bruno Haible  <bruno@clisp.org>
30011
30012         * m4/po.m4: Undo incorrect untabification.
30013
30014 2009-12-12  Bruno Haible  <bruno@clisp.org>
30015
30016         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
30017         * modules/c-strtod (Depends-on): Add locale.
30018         * modules/c-strtold (Depends-on): Likewise.
30019
30020 2009-12-12  Bruno Haible  <bruno@clisp.org>
30021
30022         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
30023
30024 2009-12-11  Eric Blake  <ebb9@byu.net>
30025
30026         setenv: relax requirement in light of POSIX ruling
30027         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
30028         not NULL.
30029         * tests/test-setenv.c (main): Relax test.
30030         * tests/test-unsetenv.c (main): Likewise.
30031         * doc/posix-functions/setenv.texi (setenv): Document this.
30032         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
30033
30034 2009-12-11  Bruno Haible  <bruno@clisp.org>
30035
30036         New module 'fd-safer-flag'.
30037         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
30038         * lib/dup-safer.c (dup_safer_flag): Remove function.
30039         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
30040         * lib/fd-safer.c (fd_safer_flag): Remove function.
30041         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
30042         * modules/cloexec (configure.ac): Drop indicator macro.
30043         * modules/fd-safer-flag: New file.
30044         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
30045         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
30046         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
30047
30048 2009-12-11  Bruno Haible  <bruno@clisp.org>
30049
30050         Tests for module 'nl_langinfo'.
30051         * modules/nl_langinfo-tests: New file.
30052         * tests/test-nl_langinfo.sh: New file.
30053         * tests/test-nl_langinfo.c: New file.
30054
30055         New module 'nl_langinfo'.
30056         * lib/nl_langinfo.c: New file.
30057         * m4/nl_langinfo.m4: New file.
30058         * modules/nl_langinfo: New file.
30059         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
30060
30061 2009-12-11  Bruno Haible  <bruno@clisp.org>
30062
30063         Tests for module 'langinfo'.
30064         * modules/langinfo-tests: New file.
30065         * tests/test-langinfo.c: New file.
30066
30067         New module 'langinfo'.
30068         * lib/langinfo.in.h: New file.
30069         * m4/langinfo_h.m4: New file.
30070         * modules/langinfo: New file.
30071         * doc/posix-headers/langinfo.texi: Mention the new module.
30072
30073 2009-12-11  Bruno Haible  <bruno@clisp.org>
30074
30075         * lib/config.charset: Untabify.
30076
30077 2009-12-11  Bruno Haible  <bruno@clisp.org>
30078
30079         * modules/unistd-safer (configure.ac): Drop indicator macro.
30080
30081 2009-12-11  Bruno Haible  <bruno@clisp.org>
30082
30083         Move pipe2-safer code to its own file.
30084         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
30085         * lib/pipe-safer.c (pipe2_safer): Remove function.
30086         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
30087         (Makefile.am): Add it to lib_SOURCES.
30088
30089 2009-12-10  Bruno Haible  <bruno@clisp.org>
30090
30091         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
30092
30093 2009-12-10  Bruno Haible  <bruno@clisp.org>
30094
30095         Declare which arguments expect non-NULL values, for GCC and clang.
30096         * build-aux/arg-nonnull.h: New file.
30097         * modules/arg-nonnull: New file.
30098         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
30099         (inet_ntop, inet_pton): Use it.
30100         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
30101         (closedir, dirfd, opendir, scandir, alphasort): Use it.
30102         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
30103         (open, openat): Use it.
30104         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
30105         (fnmatch): Use it.
30106         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
30107         (getopt, getopt_long, getopt_long_only): Use it.
30108         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
30109         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
30110         Use it.
30111         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
30112         (iconv_open): Use it.
30113         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
30114         (strtoimax, strtoumax): Use it.
30115         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
30116         (duplocale): Use it.
30117         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
30118         (frexp, frexpl): Use it.
30119         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
30120         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
30121         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
30122         (tsearch, tfind, tdelete, twalk): Use it.
30123         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
30124         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
30125         sigpending): Use it.
30126         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
30127         (posix_spawn, posix_spawnp, posix_spawnattr_init,
30128         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
30129         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
30130         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
30131         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
30132         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
30133         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
30134         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
30135         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
30136         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
30137         Use it.
30138         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
30139         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
30140         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
30141         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
30142         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
30143         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
30144         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
30145         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
30146         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
30147         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
30148         strtoull, unsetenv): Use it.
30149         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
30150         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
30151         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
30152         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
30153         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
30154         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
30155         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
30156         (strcasecmp, strncasecmp): Use it.
30157         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
30158         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
30159         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
30160         rpl_setsockopt): Use it.
30161         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
30162         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
30163         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
30164         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
30165         (gettimeofday): Use it.
30166         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
30167         (times): Use it.
30168         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
30169         (uname): Use it.
30170         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
30171         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
30172         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
30173         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
30174         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
30175         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
30176         unlinkat, write): Use it.
30177         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
30178         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
30179         * lib/argv-iter.h: Include arg-nonnull.h.
30180         (_ATTRIBUTE_NONNULL_): Remove macro.
30181         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
30182         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
30183         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
30184         optimization.
30185         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
30186         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
30187         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
30188         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
30189         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
30190         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
30191         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
30192         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
30193         * modules/arpa_inet (Depends-on): Add arg-nonnull.
30194         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
30195         * modules/dirent (Depends-on): Add arg-nonnull.
30196         (Makefile.am): Insert arg-nonnull.h into dirent.h.
30197         * modules/fcntl-h (Depends-on): Add arg-nonnull.
30198         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
30199         * modules/fnmatch (Depends-on): Add arg-nonnull.
30200         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
30201         * modules/getopt-posix (Depends-on): Add arg-nonnull.
30202         (Makefile.am): Insert arg-nonnull.h into getopt.h.
30203         * modules/glob (Depends-on): Add arg-nonnull.
30204         (Makefile.am): Insert arg-nonnull.h into glob.h.
30205         * modules/iconv_open (Depends-on): Add arg-nonnull.
30206         (Makefile.am): Insert arg-nonnull.h into iconv.h.
30207         * modules/inttypes (Depends-on): Add arg-nonnull.
30208         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
30209         * modules/locale (Depends-on): Add arg-nonnull.
30210         (Makefile.am): Insert arg-nonnull.h into locale.h.
30211         * modules/math (Depends-on): Add arg-nonnull.
30212         (Makefile.am): Insert arg-nonnull.h into math.h.
30213         * modules/netdb (Depends-on): Add arg-nonnull.
30214         (Makefile.am): Insert arg-nonnull.h into netdb.h.
30215         * modules/search (Depends-on): Add arg-nonnull.
30216         (Makefile.am): Insert arg-nonnull.h into search.h.
30217         * modules/signal (Depends-on): Add arg-nonnull.
30218         (Makefile.am): Insert arg-nonnull.h into signal.h.
30219         * modules/spawn (Depends-on): Add arg-nonnull.
30220         (Makefile.am): Insert arg-nonnull.h into spawn.h.
30221         * modules/stdio (Depends-on): Add arg-nonnull.
30222         (Makefile.am): Insert arg-nonnull.h into stdio.h.
30223         * modules/stdlib (Depends-on): Add arg-nonnull.
30224         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
30225         * modules/string (Depends-on): Add arg-nonnull.
30226         (Makefile.am): Insert arg-nonnull.h into string.h.
30227         * modules/strings (Depends-on): Add arg-nonnull.
30228         (Makefile.am): Insert arg-nonnull.h into strings.h.
30229         * modules/sys_socket (Depends-on): Add arg-nonnull.
30230         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
30231         * modules/sys_stat (Depends-on): Add arg-nonnull.
30232         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
30233         * modules/sys_time (Depends-on): Add arg-nonnull.
30234         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
30235         * modules/sys_times (Depends-on): Add arg-nonnull.
30236         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
30237         * modules/sys_utsname (Depends-on): Add arg-nonnull.
30238         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
30239         * modules/time (Depends-on): Add arg-nonnull.
30240         (Makefile.am): Insert arg-nonnull.h into time.h.
30241         * modules/unistd (Depends-on): Add arg-nonnull.
30242         (Makefile.am): Insert arg-nonnull.h into unistd.h.
30243         * modules/wchar (Depends-on): Add arg-nonnull.
30244         (Makefile.am): Insert arg-nonnull.h into wchar.h.
30245         * modules/argv-iter (Depends-on): Add arg-nonnull.
30246         * tests/test-canonicalize.c (null_ptr): New function.
30247         (main): Use it.
30248         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
30249         (main): Use it.
30250         * tests/test-memmem.c (null_ptr): New function.
30251         (main): Use it.
30252         Reported by Jim Meyering.
30253
30254 2009-12-10  Bruno Haible  <bruno@clisp.org>
30255
30256         Use spaces for indentation, not tabs.
30257         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
30258         * m4/*.m4: Untabify.
30259         * build-aux/*.h: Untabify.
30260         * tests/**/*.[hc]: Untabify.
30261         * README: New section "Indent with spaces, not TABs", based on
30262         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
30263         * NEWS: Mention the change.
30264
30265 2009-12-10  Bruno Haible  <bruno@clisp.org>
30266
30267         pty test: Fix link error.
30268         * modules/pty-tests (Makefile.am): Add the default LDADD value to
30269         test_pty_LDADD.
30270
30271 2009-12-07  Simon Josefsson  <simon@josefsson.org>
30272
30273         * modules/pty: New file.
30274         * modules/pty-tests: New file.
30275         * m4/pty.m4: New file.
30276         * tests/test-pty.c: New file.
30277         * doc/glibc-headers/pty.texi: Modified.
30278         * doc/glibc-functions/forkpty.texi: Modified.
30279         * doc/glibc-functions/openpty.texi: Modified.
30280
30281 2009-12-10  Bruno Haible  <bruno@clisp.org>
30282
30283         Avoid syntax error in C++ mode.
30284         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
30285
30286 2009-12-10  Bruno Haible  <bruno@clisp.org>
30287
30288         Use sed with option -e.
30289         * gnulib-tool (func_version, func_emit_copyright_notice,
30290         func_emit_initmacro_end, func_import, func_create_testdir): Pass
30291         option -e to sed.
30292         * modules/link-warning (Makefile.am): Likewise.
30293
30294 2009-12-10  Jim Meyering  <meyering@redhat.com>
30295
30296         mgetgroups: do not write bytes beyond end of malloc'd buffer
30297         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
30298         username, we call getgroups with a one-element-shorter buffer,
30299         but still told it the length was original, max_n_groups.
30300
30301 2009-12-09  Eric Blake  <ebb9@byu.net>
30302
30303         cloexec: relax license
30304         * modules/cloexec (Maintainer): Add myself.
30305         (License): Use LGPL, not GPL.
30306
30307         link-warning: optimize generation
30308         * modules/link-warning (Makefile.am): Reduce process usage.
30309
30310 2009-12-09  Bruno Haible  <bruno@clisp.org>
30311
30312         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
30313         workaround was added on 2009-11-17.
30314
30315 2009-12-09  Jim Meyering  <meyering@redhat.com>
30316             Bruno Haible  <bruno@clisp.org>
30317
30318         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
30319         * modules/link-warning (Makefile.am): Make the comment-removing sed
30320         command more robust in the face of bootstrap-prepended comment lines.
30321
30322 2009-12-09  Bruno Haible  <bruno@clisp.org>
30323
30324         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
30325         most one group.
30326
30327 2009-12-09  Simon Josefsson <simon@josefsson.org>
30328             Bruno Haible  <bruno@clisp.org>
30329
30330         * build-aux/link-warning.h: Add copyright notice.
30331         * modules/link-warning (Makefile.am): Generate link-warning.h from
30332         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
30333         * NEWS: Mention change in link-warning module.
30334         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
30335         * modules/dirent (Makefile.am): Add dependency to dirent.h.
30336         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
30337         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
30338         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
30339         * modules/math (Makefile.am): Add dependency to math.h.
30340         * modules/search (Makefile.am): Add dependency to search.h.
30341         * modules/signal (Makefile.am): Add dependency to signal.h.
30342         * modules/spawn (Makefile.am): Add dependency to spawn.h.
30343         * modules/stdio (Makefile.am): Add dependency to stdio.h.
30344         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
30345         * modules/string (Makefile.am): Add dependency to string.h.
30346         * modules/strings (Makefile.am): Add dependency to strings.h.
30347         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
30348         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
30349         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
30350         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
30351         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
30352         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
30353         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
30354         * modules/unistd (Makefile.am): Add dependency to unistd.h.
30355         * modules/wchar (Makefile.am): Add dependency to wchar.h.
30356
30357 2009-12-09  Bruno Haible  <bruno@clisp.org>
30358
30359         fchdir: Optimize away rpl_fstat when possible.
30360         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
30361         REPLACE_OPEN_DIRECTORY.
30362         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
30363
30364 2009-12-09  Bruno Haible  <bruno@clisp.org>
30365
30366         * lib/fchdir.c: Update comment.
30367
30368 2009-12-09  Bruno Haible  <bruno@clisp.org>
30369
30370         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
30371
30372 2009-12-08  Eric Blake  <ebb9@byu.net>
30373
30374         fchdir: avoid memory leak on re-registration.
30375         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
30376
30377 2009-12-08  Jim Meyering  <meyering@redhat.com>
30378
30379         init.sh: avoid Solaris 10 /bin/sh portability problem
30380         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
30381         sourced script:
30382           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
30383           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
30384           bar
30385         tests/init.sh relied on that, accepting a --set-path=DIR argument,
30386         and two tests used that idiom.
30387         * tests/init.sh: Update suggested usage comments.
30388         (path_prepend_): New function, to be used in place
30389         of the --src-path=DIR option.
30390         (setup_): Move PATH-prepending code into path_prepend_.
30391         * tests/test-pread.sh: Adapt to new usage.
30392         * tests/test-xalloc-die.sh: Likewise.
30393
30394 2009-12-08  Simon Josefsson  <simon@josefsson.org>
30395
30396         * doc/gnulib.texi (Glibc pty.h): Add.
30397         * doc/glibc-functions/forkpty.texi: Add.
30398         * doc/glibc-functions/openpty.texi: Add.
30399         Suggested by Bruno Haible.
30400
30401 2009-12-08  Eric Blake  <ebb9@byu.net>
30402
30403         fchdir: fix logic bugs
30404         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
30405         * tests/test-fchdir.c (main): Enhance test.
30406         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
30407         is in use.
30408
30409         dup2: fix logic bugs
30410         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
30411         REPLACE_DUP2 to decide when rpl_dup2 is needed.
30412         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
30413         exists.
30414         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
30415
30416 2009-12-07  Eric Blake  <ebb9@byu.net>
30417
30418         unlink: fix m4 detection
30419         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
30420
30421         unistd-safer: add unit test
30422         * modules/unistd-safer-tests: New file.
30423         * tests/test-dup-safer.c: Likewise.
30424         * tests/test-cloexec.c (setmode): Avoid compiler warning.
30425         * tests/test-dup2.c (setmode): Likewise.
30426         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
30427
30428         cloexec: preserve text vs. binary across dup_cloexec
30429         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
30430         mode.
30431         * modules/dup2-tests (Depends-on): Add binary-io.
30432         * modules/cloexec-tests (Depends-on): Likewise.
30433         * tests/test-dup2.c (setmode, is_mode): New helpers.
30434         (main): Add tests that translation mode is preserved.
30435         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
30436         Reported by Bruno Haible.
30437
30438         mgetgroups: reduce duplicate listings
30439         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
30440         resulting array.
30441         * tests/test-chown.h (test_chown): Simplify client.
30442         * tests/test-lchown.h (test_lchown): Likewise.
30443
30444 2009-12-06  Bruno Haible  <bruno@clisp.org>
30445
30446         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
30447         value.
30448
30449 2009-12-06  Bruno Haible  <bruno@clisp.org>
30450
30451         * lib/progname.c: Include stdio.h, stdlib.h.
30452         (set_program_name): Reject a NULL argument.
30453
30454 2009-12-05  Eric Blake  <ebb9@byu.net>
30455
30456         pipe2-safer: new module
30457         * modules/pipe2-safer: New file.
30458         * lib/unistd-safer.h (pipe2_safer): New prototype.
30459         * lib/unistd--.h (pipe2): New wrapper.
30460         * lib/pipe-safer.c (pipe2_safer): New function.
30461         * modules/pipe (Depends-on): Add pipe2-safer.
30462         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
30463
30464         stdlib-safer: preserve cloexec flag for mkostemp[s]
30465         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
30466         fd_safer_flag.
30467
30468         unistd-safer: allow preservation of cloexec status via flag
30469         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
30470         prototypes.
30471         * lib/dup-safer.c (dup_safer_flag): New function.
30472         * lib/fd-safer.c (fd_safer_flag): Likewise.
30473         * modules/cloexec (configure.ac): Set witness.
30474
30475         test-dup2: enhance test
30476         * modules/dup2-tests (Depends-on): Add cloexec.
30477         * tests/test-dup2.c (main): Enhance test.
30478
30479         cloexec: add dup_cloexec
30480         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
30481         header and comments.
30482         * lib/cloexec.c (set_cloexec_flag): Add comments.
30483         (dup_cloexec): New function, with mingw implementation borrowed
30484         from...
30485         * lib/w32spawn.h (dup_noinherit): ...here.
30486         * modules/execute (Depends-on): Add cloexec.
30487         * modules/pipe (Depends-on): Likewise.
30488         * modules/cloexec (Depends-on): Add dup2.
30489         * modules/cloexec-tests (Files): New file.
30490         * tests/test-cloexec.c: Likewise.
30491
30492         test-xalloc-die: fix test for mingw
30493         * modules/xalloc-die-tests (Files): Add tests/init.sh.
30494         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
30495         directory and .exe suffix off argv[0] output.
30496
30497         test-fseeko: fix test for mingw
30498         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
30499         than undefining fseek, so test will pass on mingw.
30500
30501 2009-12-05  Bruno Haible  <bruno@clisp.org>
30502
30503         * lib/progname.h (set_program_name): Clarify specification.
30504         * lib/progname.c (set_program_name): Likewise.
30505         Reported by Jim Meyering.
30506
30507 2009-12-05  Jim Meyering  <meyering@redhat.com>
30508
30509         maint.mk: backslash-escape parens in default regexp
30510         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
30511         backslash-escape the literal parentheses.
30512
30513         maint.mk: news-date-check: use grep -E
30514         * top/maint.mk (today): Define a Make variable, not a...
30515         (news-date-check): ...shell variable.
30516         (news-date-regexp): Use the Make variable.
30517         Use grep's -E option.  Change the failing diagnostic to mention
30518         the variable, $(news-date-regexp).
30519
30520 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
30521
30522         maintainer-makefile: allow customization of NEWS entry format
30523         * top/maint.mk (news-date-regexp): New overridable variable.
30524         (news-date-check): Use it.
30525
30526 2009-12-04  Eric Blake  <ebb9@byu.net>
30527
30528         mgetgroups: add xgetgroups, and avoid ENOSYS failures
30529         * lib/mgetgroups.h (xgetgroups): New prototype.
30530         * lib/mgetgroups.c (xgetgroups): New wrapper.
30531         (mgetgroups): Handle ENOSYS.
30532         * modules/mgetgroups (Depends-on): Add realloc.
30533         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
30534
30535         mgetgroups: avoid argument promotion issues with -1
30536         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
30537         for invalid gid_t.
30538         * tests/test-chown.h (getegid, test_chown): Likewise.
30539         * tests/test-lchown.h (getegid, test_lchown): Likewise.
30540
30541 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
30542
30543         exclude: Fix header file problems.
30544         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
30545
30546 2009-12-01  Jim Meyering  <meyering@redhat.com>
30547
30548         fts: fts_open: do not let an empty string cause immediate failure
30549         This is required in support of GNU rm, for which the command
30550         "rm A '' B" must process and remove both A and B, in spite of
30551         the empty string argument.
30552         * lib/fts.c (fts_open): Do not let the presence of an empty string
30553         cause fts_open to fail immediately.  Most fts-using tools must be
30554         able to process all arguments, in order, and can be expected to
30555         diagnose such arguments themselves.
30556
30557 2009-11-30  Eric Blake  <ebb9@byu.net>
30558
30559         utimens: fix compilation error
30560         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
30561         Declare variable at right scope.
30562
30563 2009-11-29  Jim Meyering  <meyering@redhat.com>
30564
30565         bootstrap: handle perl-5.11's changed --version output
30566         * build-aux/bootstrap (get_version): Handle perl separately,
30567         since perl-5.11's --version output is different.
30568
30569 2009-11-28  Jim Meyering  <meyering@redhat.com>
30570
30571         userspec: depend on the inttostr module, too
30572         * modules/userspec (Depends-on): Add inttostr.
30573
30574         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
30575         * lib/userspec.c (parse_with_separator): Do not accept a user ID
30576         number of MAXUID when it evaluates to (uid_t) -1.
30577         Likewise for group ID.  Reported by Matt McCutchen in
30578         <http://savannah.gnu.org/bugs/?28113>
30579
30580         userspec: reformat to use spaces, not TABs
30581         * lib/userspec.c: Expand TABs to spaces.
30582         Add Emacs' "indent-tabs-mode: nil" hint.
30583
30584 2009-11-27  Eric Blake  <ebb9@byu.net>
30585
30586         getopt-gnu: flush out another BSD bug
30587         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
30588         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
30589         flush out BSD bug.
30590         * tests/test-getopt.h (test_getopt): End lists with NULL.
30591         * tests/test-getopt_long.h (test_getopt_long): Likewise.
30592         (test_getopt_long_posix): Enhance test.
30593         * modules/getopt-posix-tests (Depends-on): Add stdbool.
30594         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
30595         getopt-gnu.
30596         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30597         Likewise.
30598
30599 2009-11-27  Simon Josefsson  <simon@josefsson.org>
30600
30601         * modules/idpriv-droptemp-tests (Notice): Fix text.
30602
30603 2009-11-27  Jim Meyering  <meyering@redhat.com>
30604
30605         test-xalloc-die: avoid spurious failure due to libtool argv difference
30606         In a libtool-enabled project, this test would fail due to a difference
30607         in the emitted program name, e.g.,
30608         -test-xalloc-die: memory exhausted
30609         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
30610         Use program to avoid that.
30611         * modules/xalloc-die-tests (Depends-on): Add progname.
30612         * tests/test-xalloc-die.c: Include progname.h".
30613         (program_name): Remove decl.
30614         (main): Call set_program_name.
30615         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
30616
30617 2009-11-26  Richard Jones  <rjones@redhat.com>
30618
30619         w32sock: leave win32 error in place.
30620         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
30621
30622 2009-11-26  Eric Blake  <ebb9@byu.net>
30623
30624         init.sh: suggest to use skip_ and fail_ functions in comments
30625         * tests/init.sh: Add a sentence.
30626
30627 2009-11-25  Bruno Haible  <bruno@clisp.org>
30628
30629         init.sh: add documentation in comments
30630         * tests/init.sh: Add some developer and user documentation.
30631
30632 2009-11-26  Jim Meyering  <meyering@redhat.com>
30633
30634         init.sh: accommodate even those who specify bogus srcdir manually
30635         * tests/init.sh: Normally, srcdir is guaranteed by automake and
30636         configure-time tests to be sanitized, so that there is no need to
30637         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
30638         (with no double quotes) suffices.  However, since tests may be
30639         invoked manually, and since you may explicitly set srcdir to the
30640         name of a directory containing spaces, do quote its uses here.
30641         * tests/test-pread.sh: Likewise.
30642         Suggested by Bruno Haible.
30643
30644         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
30645         * tests/test-pread.sh: Write no data into the pipe, because
30646         test-pread actually reads none.  This avoids a diagnostic,
30647         "bash: echo: write error: Broken pipe", that arises in the unusual
30648         event something is ignoring SIGPIPE, and might be interpreted
30649         as some sort of failure.  Reported by Bruno Haible.
30650
30651 2009-11-25  Jim Meyering  <meyering@redhat.com>
30652
30653         test-pread: cover failure with ESPIPE and EINVAL
30654         * tests/test-pread.c (main): Test for failure, too.
30655         * tests/test-pread.sh: Invoke with stdin on a pipe.
30656         Suggested by Eric Blake.
30657
30658         pread: improvement and fix
30659         * modules/pread (Depends-on): Depend on lseek, for portability to
30660         e.g., mingw.  Suggested by Eric Blake.
30661         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
30662
30663         unistd.in.h: correct declaration of pread
30664         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
30665         Reported by Richard W.M. Jones.
30666
30667         test-pread.sh: distribute the test script
30668         * modules/pread-tests (Files): Include test-pread.sh.
30669
30670         test-pread.sh: clean up
30671         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
30672         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
30673         That is unnecessary, since it's always ".".
30674         Suggestion from Eric Blake.
30675
30676         test-pread.sh: make executable
30677         * tests/test-pread.sh: Set executable bit.
30678         Reported by Eric Blake.
30679
30680         correct typo in test-pread.sh
30681         * tests/test-pread.sh: Add #! line.
30682
30683         test pread
30684         * tests/test-pread.c: New file.
30685         * tests/test-pread.sh: Likewise.
30686         * modules/pread-tests: Likewise.
30687
30688         pread: new module
30689         * modules/pread: New file.
30690         * lib/unistd.in.h (pread): Define/declare.
30691         * lib/pread.c (pread): New file.
30692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
30693         * modules/unistd (Makefile.am): Substitute witnesses.
30694         * doc/posix-functions/pread.texi (pread): Update.
30695         * MODULES.html.sh: Add pread.
30696
30697 2009-11-25  Jim Meyering  <meyering@redhat.com>
30698
30699         tests/init.sh: new file to be used via most *.sh tests
30700         * tests/init.sh: New file.
30701
30702 2009-11-25  Eric Blake  <ebb9@byu.net>
30703
30704         utimens: work around older Linux failure with symlinks
30705         * lib/utimens.c (lutimensat_works_really): New variable.
30706         (fdutimens, lutimens): Use it to manage kernels that support
30707         nanosecond times on files, but not on symlinks.
30708         Reported by OndÅ™ej Vašík.
30709
30710         utimes: fix configure grammar
30711         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
30712
30713 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
30714
30715         regex: Fix fastmap for multibyte character ranges.
30716         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
30717         characters when a multibyte character range is included.
30718
30719 2009-11-22  Andy Wingo  <wingo@pobox.com>
30720
30721         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
30722         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
30723
30724 2009-11-24  Bruno Haible  <bruno@clisp.org>
30725
30726         doc: Most *_l functions exist in MacOS X 10.5.
30727         * doc/posix-functions/duplocale.texi: Update platforms list.
30728         * doc/posix-functions/freelocale.texi: Likewise.
30729         * doc/posix-functions/newlocale.texi: Likewise.
30730         * doc/posix-functions/uselocale.texi: Likewise.
30731         * doc/posix-functions/isalnum_l.texi: Likewise.
30732         * doc/posix-functions/isalpha_l.texi: Likewise.
30733         * doc/posix-functions/isblank_l.texi: Likewise.
30734         * doc/posix-functions/iscntrl_l.texi: Likewise.
30735         * doc/posix-functions/isdigit_l.texi: Likewise.
30736         * doc/posix-functions/isgraph_l.texi: Likewise.
30737         * doc/posix-functions/islower_l.texi: Likewise.
30738         * doc/posix-functions/isprint_l.texi: Likewise.
30739         * doc/posix-functions/ispunct_l.texi: Likewise.
30740         * doc/posix-functions/isspace_l.texi: Likewise.
30741         * doc/posix-functions/isupper_l.texi: Likewise.
30742         * doc/posix-functions/iswalnum_l.texi: Likewise.
30743         * doc/posix-functions/iswalpha_l.texi: Likewise.
30744         * doc/posix-functions/iswblank_l.texi: Likewise.
30745         * doc/posix-functions/iswcntrl_l.texi: Likewise.
30746         * doc/posix-functions/iswctype_l.texi: Likewise.
30747         * doc/posix-functions/iswdigit_l.texi: Likewise.
30748         * doc/posix-functions/iswgraph_l.texi: Likewise.
30749         * doc/posix-functions/iswlower_l.texi: Likewise.
30750         * doc/posix-functions/iswprint_l.texi: Likewise.
30751         * doc/posix-functions/iswpunct_l.texi: Likewise.
30752         * doc/posix-functions/iswspace_l.texi: Likewise.
30753         * doc/posix-functions/iswupper_l.texi: Likewise.
30754         * doc/posix-functions/iswxdigit_l.texi: Likewise.
30755         * doc/posix-functions/isxdigit_l.texi: Likewise.
30756         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
30757         * doc/posix-functions/strcasecmp_l.texi: Likewise.
30758         * doc/posix-functions/strcoll_l.texi: Likewise.
30759         * doc/posix-functions/strfmon_l.texi: Likewise.
30760         * doc/posix-functions/strftime_l.texi: Likewise.
30761         * doc/posix-functions/strncasecmp_l.texi: Likewise.
30762         * doc/posix-functions/strxfrm_l.texi: Likewise.
30763         * doc/posix-functions/tolower_l.texi: Likewise.
30764         * doc/posix-functions/toupper_l.texi: Likewise.
30765         * doc/posix-functions/towctrans_l.texi: Likewise.
30766         * doc/posix-functions/towlower_l.texi: Likewise.
30767         * doc/posix-functions/towupper_l.texi: Likewise.
30768         * doc/posix-functions/wcscoll_l.texi: Likewise.
30769         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
30770         * doc/posix-functions/wctrans_l.texi: Likewise.
30771         * doc/posix-functions/wctype_l.texi: Likewise.
30772         * doc/glibc-functions/strptime_l.texi: Likewise.
30773         * doc/glibc-functions/strtod_l.texi: Likewise.
30774         * doc/glibc-functions/strtof_l.texi: Likewise.
30775         * doc/glibc-functions/strtol_l.texi: Likewise.
30776         * doc/glibc-functions/strtold_l.texi: Likewise.
30777         * doc/glibc-functions/strtoll_l.texi: Likewise.
30778         * doc/glibc-functions/strtoul_l.texi: Likewise.
30779         * doc/glibc-functions/strtoull_l.texi: Likewise.
30780         * doc/glibc-functions/wcsftime_l.texi: Likewise.
30781         * doc/glibc-functions/wcstod_l.texi: Likewise.
30782         * doc/glibc-functions/wcstof_l.texi: Likewise.
30783         * doc/glibc-functions/wcstol_l.texi: Likewise.
30784         * doc/glibc-functions/wcstold_l.texi: Likewise.
30785         * doc/glibc-functions/wcstoll_l.texi: Likewise.
30786         * doc/glibc-functions/wcstoul_l.texi: Likewise.
30787         * doc/glibc-functions/wcstoull_l.texi: Likewise.
30788
30789 2009-11-24  Bruno Haible  <bruno@clisp.org>
30790
30791         duplocale: Fix logic bug.
30792         * lib/duplocale.c: Don't include <langinfo.h>.
30793         (_NL_LOCALE_NAME): Remove macro.
30794         (rpl_duplocale): Use setlocale instead of nl_langinfo.
30795         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
30796
30797 2009-11-23  Jim Meyering  <meyering@redhat.com>
30798
30799         test-update-copyright: don't hard-code /usr/bin/perl
30800         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
30801         perl to print the current year.  Gilles Espinasse reported that
30802         the replaced use of perl was hard-coded as /usr/bin/perl.
30803
30804 2009-11-23  Bruno Haible  <bruno@clisp.org>
30805
30806         duplocale: Add support for glibc 2.3.x.
30807         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
30808
30809 2009-11-22  Bruno Haible  <bruno@clisp.org>
30810
30811         vasnprintf: Tiny optimization.
30812         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
30813         MacOS X.
30814
30815 2009-11-22  Bruno Haible  <bruno@clisp.org>
30816
30817         Tests for module 'duplocale'.
30818         * modules/duplocale-tests: New file.
30819         * tests/test-duplocale.c: New file.
30820
30821         New module 'duplocale'.
30822         * m4/duplocale.m4: New file.
30823         * lib/locale.in.h (duplocale): New declaration.
30824         * lib/duplocale.c: New file.
30825         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
30826         gl_LOCALE_H_DEFAULTS): New macros.
30827         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
30828         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
30829         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
30830         REPLACE_DUPLOCALE.
30831         * modules/duplocale: New file.
30832         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
30833
30834 2009-11-22  Bruno Haible  <bruno@clisp.org>
30835
30836         * modules/locale-tests (configure.ac): Test for newlocale function.
30837         * tests/test-locale.c: When the system has extended locale functions,
30838         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
30839
30840         locale: Make locale_t available when possible.
30841         * lib/locale.in.h: Include <xlocale.h> when it exists.
30842         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
30843         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
30844         * modules/locale (Depends-on): Add extensions.
30845         (Makefile.am): Also substitute HAVE_XLOCALE_H.
30846         * doc/posix-headers/locale.texi: Document the problem with locale_t.
30847
30848 2009-11-22  Bruno Haible  <bruno@clisp.org>
30849
30850         Add comments.
30851         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
30852         invocation.
30853         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
30854         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
30855         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30856
30857 2009-11-22  Bruno Haible  <bruno@clisp.org>
30858
30859         error: account for the possibility of freopen (stdout).
30860         * lib/error.c: Include <unistd.h>.
30861         (flush_stdout): New function, extracted from error and error_at_line.
30862         Determine stdout's fd dynamically.
30863         (error, error_at_line): Invoke flush_stdout.
30864         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
30865         * modules/error (Depends-on): Add unistd.
30866
30867 2009-11-22  Bruno Haible  <bruno@clisp.org>
30868
30869         diffseq: Add comment.
30870         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
30871
30872 2009-11-22  Jim Meyering  <meyering@redhat.com>
30873
30874         c-stack: avoid defining an unused static function
30875         * lib/c-stack.c (find_stack_direction): Do not define this function
30876         when it will not be used.
30877
30878         diffseq: avoid spurious gcc warnings
30879         * lib/diffseq.h (IF_LINT2): Define.
30880         (compareseq): Use it to initialize two members of "part".
30881         This avoids two used-uninitialized warnings.
30882
30883 2009-11-21  Jim Meyering  <meyering@redhat.com>
30884
30885         c-stack: avoid "ignoring return value of `write'" warning
30886         * lib/c-stack.c: Include "ignore-value.h".
30887         (die): Explicitly ignore each write return value.
30888         * modules/c-stack (Depends-on): Add ignore-value.
30889
30890 2009-11-21  Bruno Haible  <bruno@clisp.org>
30891
30892         diffseq: reduce scope of variable 'best'.
30893         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
30894         variable, earlier used for two different purposes.
30895
30896 2009-11-21  Jim Meyering  <meyering@redhat.com>
30897
30898         diffseq: remove useless assignment to "best"
30899         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
30900         assignment.  At that point "best" is already guaranteed to be zero.
30901
30902 2009-11-20  Eric Blake  <ebb9@byu.net>
30903
30904         build: mention ftp redirector in release announcements
30905         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
30906         values that used to come from cfg.mk; mention FTP redirect URL.
30907         * build-aux/announce-gen: Mention the mirror list.
30908         Suggested by Karl Berry.
30909
30910         nanosleep: improve port to mingw
30911         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
30912         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
30913         LIB_NANOSLEEP, but only when needed.
30914         * modules/select (Link): Document LIBSOCKET.
30915         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
30916         enough.
30917
30918         nanosleep: work around cygwin bug
30919         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
30920         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
30921         bug.
30922         (getnow): Delete, not needed.
30923         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
30924         LIB_CLOCK_GETTIME.
30925         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
30926         clock-time, gettime.
30927         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
30928         bug.
30929         * modules/nanosleep-tests: New test.
30930         * tests/test-nanosleep.c: New file.
30931
30932         sleep: work around cygwin bug
30933         * lib/sleep.c (rpl_sleep): Work around the bug.
30934         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
30935         (gl_PREREQ_SLEEP): Delete unused macro.
30936         * modules/sleep (Depends-on): Add verify.
30937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
30938         * modules/unistd (Makefile.am): Substitute witness.
30939         * lib/unistd.in.h (sleep): Update prototype.
30940         * doc/posix-functions/sleep.texi (sleep): Document the bug.
30941         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
30942         * modules/sleep-tests (Depends-on): Check for alarm.
30943
30944 2009-11-20  Jim Meyering  <meyering@redhat.com>
30945
30946         maint.mk: improve sc_prohibit_magic_number_exit
30947         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
30948         so it does not match uses like System.exit(1).
30949         Add comments showing how to correct all offenders.
30950
30951 2009-11-19  Eric Blake  <ebb9@byu.net>
30952
30953         xalloc-die-tests: add missing library
30954         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
30955
30956         test-xvasprintf: silence compiler warnings
30957         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
30958         empty string from gcc.
30959
30960 2009-11-19  Jim Meyering  <meyering@redhat.com>
30961
30962         xfreopen: new module, from coreutils
30963         * modules/xfreopen: New module.
30964         * lib/xfreopen.c: New file.
30965         * lib/xfreopen.h: New file.
30966         * MODULES.html.sh (File stream based Input/Output"): Add it.
30967
30968 2009-11-19  Eric Blake  <ebb9@byu.net>
30969
30970         manywarnings: depend on warnings
30971         * modules/manywarnings (Depends-on): Add warnings.
30972
30973         build: avoid compiler warnings
30974         * lib/select.c (rpl_select): Delete unused variable.
30975         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
30976
30977 2009-11-18  Eric Blake  <ebb9@byu.net>
30978
30979         tests: avoid false negative with --with-packager
30980         * tests/test-version-etc.sh: Discard packager information.
30981         * tests/test-argp-version-etc-1.sh: Likewise.
30982         Reported by Mike Frysinger.
30983
30984         utimens: fix regression on Solaris
30985         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
30986         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
30987         can only change fd timestamps via futimesat.  Instead, use an
30988         additional witness macro to avoid BSD bug.
30989         Reported by Jim Meyering.
30990
30991 2009-11-17  Eric Blake  <ebb9@byu.net>
30992
30993         usleep: use it to simplify tests
30994         * modules/stat-time-tests (Depends-on): Add usleep.
30995         (configure.ac): Drop usleep check.
30996         * modules/chown-tests (Depends-on, configure.ac): Likewise.
30997         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
30998         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
30999         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
31000         * modules/openat-tests (Depends-on, configure.ac): Likewise.
31001         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
31002         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
31003         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
31004         Likewise.
31005         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
31006         * tests/test-lchown.h (nap): Likewise.
31007         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
31008         * tests/test-stat-time.c (nap): Likewise.
31009         * tests/test-utimens-common.h (nap): Update comments.
31010
31011         usleep: new module
31012         * modules/usleep: New file.
31013         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
31014         * lib/usleep.c (usleep): Likewise.
31015         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31016         * modules/unistd (Makefile.am): Substitute witnesses.
31017         * lib/unistd.in.h (usleep): Add declaration.
31018         * doc/pastposix-functions/usleep.texi (usleep): Document this.
31019         * MODULES.html.sh (Date and time): Likewise.
31020         * modules/usleep-tests (Depends-on): New test.
31021         * tests/test-usleep.c: New file.
31022
31023         chown: work around OpenBSD bug
31024         * lib/chown.c (rpl_chown): Work around the bug.
31025         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
31026         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
31027         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
31028         * modules/chown (Depends-on): Add stdbool.
31029         * modules/lchown (Depends-on): Likewise.
31030         * doc/posix-functions/chown.texi (chown): Document the bug.
31031         * doc/posix-functions/lchown.texi (lchown): Likewise.
31032         * tests/test-lchown.h (test_chown): Relax test.
31033
31034         mkstemp: avoid conflict with C++ keyword template
31035         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
31036         * lib/mkostemp.c (mkostemp): Likewise.
31037         * lib/mkostemps.c (mkostemps): Likewise.
31038         * lib/mkstemp.c (mkstemp): Likewise.
31039         * lib/mkstemps.c (mkstemps): Likewise.
31040
31041         xalloc-die-tests: optimize
31042         * tests/test-xalloc-die.sh: Reduce number of processes.
31043
31044 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31045
31046         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
31047         patch from ludo@gnu.org (Ludovic Courtès).
31048
31049 2009-11-17  Jim Meyering  <meyering@redhat.com>
31050
31051         version-etc: use proper license string
31052         * modules/version-etc (License): Use LGPL, not LGPLv3+.
31053         * modules/version-etc-fsf: Likewise.
31054
31055 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31056
31057         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
31058         printed to stdout.  Deal with EOL differences.
31059
31060 2009-11-17  Eric Blake  <ebb9@byu.net>
31061
31062         unsetenv: work around Solaris bug
31063         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
31064         * lib/unsetenv.c (rpl_unsetenv): Work around it.
31065         Reported by Jim Meyering.
31066
31067         vasnprintf: avoid compiler warnings
31068         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
31069         variables.
31070         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
31071
31072 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31073
31074         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
31075         settings since xalloc-die is no longer the self test,
31076         xalloc-die.sh is.
31077
31078 2009-11-17  Jim Meyering  <meyering@redhat.com>
31079
31080         test-xalloc-die.sh: make the code agree with the commit log
31081         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
31082         at the end, just in case you happen to have a test-xalloc-die
31083         program in some other PATH directory.
31084
31085         test-xalloc-die.sh: fix a portability bug
31086         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
31087         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
31088         Otherwise, argv[0] (as often seen in diagnostics) would be too
31089         system-dependent, sometimes with, and sometimes without the leading "./".
31090
31091         version-etc-fsf: relax license to LGPLv3+
31092         * modules/version-etc-fsf (License): Relax license.
31093
31094 2009-11-16  Eric Blake  <ebb9@byu.net>
31095
31096         xalloc-die-tests: avoid printing null pointer
31097         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
31098         shell script.
31099         * tests/test-xalloc-die.c (program_name): Declare.
31100         * tests/test-xalloc-die.sh (tmpfiles): New file.
31101
31102         setenv, unsetenv: work around various bugs
31103         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
31104         (setenv) [HAVE_SETENV]: Work around bugs.
31105         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
31106         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
31107         for bugs.
31108         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
31109         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
31110         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
31111         * modules/stdlib (Makefile.am): Update substitutions.
31112         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
31113         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
31114         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31115         * modules/setenv-tests: New test.
31116         * modules/unsetenv-tests: Likewise.
31117         * tests/test-setenv.c: New file.
31118         * tests/test-unsetenv.c: Likewise.
31119
31120 2009-11-16  Jim Meyering  <meyering@redhat.com>
31121
31122         version-etc: relax license to LGPLv3+
31123         * modules/version-etc (License): Relax license.
31124
31125         better AC_REQUIRE expanded-before-required-warning avoidance
31126         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
31127         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
31128         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
31129         which is no longer needed.
31130
31131 2009-11-16  Eric Blake  <ebb9@byu.net>
31132
31133         test-freading: clean up temporary file
31134         * tests/test-freading.c (main): Remove file on success, and use
31135         ASSERT more liberally.
31136         Reported by Jim Meyering.
31137
31138 2009-11-16  Jim Meyering  <meyering@redhat.com>
31139
31140         avoid new AC_REQUIRE expanded-before-required warnings
31141         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
31142         merely using it.
31143         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
31144         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
31145
31146 2009-11-15  Simon Josefsson  <simon@josefsson.org>
31147
31148         * tests/test-xalloc-die.c: New file.
31149         * modules/xalloc-die-tests: New file.
31150         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
31151         XFAIL_TESTS so it can be appended by modules.
31152
31153 2009-11-15  Simon Josefsson  <simon@josefsson.org>
31154
31155         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
31156         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
31157
31158 2009-11-14  Eric Blake  <ebb9@byu.net>
31159
31160         fnmatch: avoid compiler warning
31161         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
31162         to silence compiler warning about mismatch signedness in ?:.
31163         Reported by Robert Millan.
31164
31165         intprops: add double-inclusion guard
31166         * lib/intprops.h: Allow idempotent includes.
31167         Suggested by Bruce Korb.
31168
31169         openat: detect Solaris fchownat bug
31170         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
31171         penalizing glibc chownat when only lchownat is broken.
31172         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
31173         trailing slash bugs.
31174         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
31175         * modules/openat-tests (Files): Include more files.
31176         (Depends-on): Add mgetgroups, sleep, stat-time.
31177         (configure.ac): Add additional checks.
31178         (Makefile.am): Build new test.
31179         * tests/test-fchownat.c: New file.
31180
31181         lchown: detect Solaris and FreeBSD bug
31182         * lib/lchown.c (rpl_lchown): Work around bug.
31183         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
31184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31185         * modules/unistd (Makefile.am): Populate it.
31186         * lib/unistd.in.h (lchown): Update declaration.
31187         * doc/posix-functions/lchown.texi (lchown): Document the bug.
31188         * modules/lchown-tests: New file.
31189         * tests/test-lchown.h (test_lchown): Likewise.
31190         * tests/test-lchown.c (main): Likewise.
31191
31192         chown: detect Solaris and FreeBSD bug
31193         * lib/chown.c (rpl_chown): Work around bug.
31194         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
31195         (gl_PREREQ_CHOWN): Delete.
31196         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31197         * modules/unistd (Makefile.am): Populate it.
31198         * lib/unistd.in.h (chown): Update declaration.
31199         * lib/lchown.c (chown): Update client.
31200         * modules/lchown (Depends-on): Add lstat.
31201         * doc/posix-functions/chown.texi (chown): Document the bug.
31202         * doc/posix-functions/getgroups.texi (getgroups): Document
31203         getgroups pitfall.
31204         * modules/chown-tests: New file.
31205         * tests/test-chown.h (test_chown): Likewise.
31206         * tests/test-chown.c (main): Likewise.
31207
31208 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
31209
31210         gnulib-tool: correctly detect absence of m4 directories
31211         * gnulib-tool: Avoid extra newline on data passed to wc -l.
31212
31213 2009-11-14  Jim Meyering  <meyering@redhat.com>
31214
31215         maint.mk: Prohibit inclusion of "xalloc.h" without use.
31216         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
31217
31218 2009-11-14  John W. Eaton  <jwe@gnu.org>
31219
31220         strftime.h: wrap funtion declaration in extern "C" block
31221         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
31222
31223 2009-11-13  Eric Blake  <ebb9@byu.net>
31224
31225         getgroups: avoid compiler warning
31226         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
31227
31228         getgroups: work around FreeBSD bug
31229         * lib/getgroups.c (rpl_getgroups): Work around the bug.
31230         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
31231         * doc/posix-functions/getgroups.texi (getgroups): Document it.
31232         * tests/test-getgroups.c (main): Fix buffer overrun.
31233
31234         getgroups: avoid compilation failure
31235         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
31236         * modules/getgroups (Depends-on): Add stdint.
31237
31238 2009-11-13  Jim Meyering  <meyering@redhat.com>
31239
31240         test-getgroups: avoid compilation failure
31241         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
31242
31243 2009-11-13  Eric Blake  <ebb9@byu.net>
31244
31245         mgetgroups: new module, taken from coreutils
31246         * modules/mgetgroups: New file.
31247         * lib/mgetgroups.h: Likewise.
31248         * lib/mgetgroups.c (mgetgroups): Likewise.
31249         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
31250         * MODULES.html.sh (Users and groups): Mention it.
31251
31252         getgroups: don't expose GETGROUPS_T to user
31253         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
31254         an element at a time if GETGROUPS_T is wrong size.
31255         * lib/getugroups.h (getugroups): Change signature.
31256         * lib/unistd.in.h (getgroups): Likewise.
31257         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
31258         signature needs fixing.
31259         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
31260         AC_TYPE_GETGROUPS.
31261         * modules/group-member (Depends-on): Add getgroups.
31262         * lib/group-member.c (group_info, get_group_info): Use gid_t.
31263         (group_member): Rely on getgroups replacement.
31264         * lib/getugroups.c (getugroups): Use gid_t.
31265         * tests/test-getgroups.c (main): Likewise.
31266         * NEWS: Mention the signature change.
31267         * doc/posix-functions/getgroups.texi (getgroups): Mention the
31268         problem with signature.
31269         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
31270         GETGROUPS_T is still useful for setgroups.
31271
31272         getgroups, getugroups: provide stubs for mingw
31273         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
31274         * lib/getugroups.c (getugroups): Likewise.
31275         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
31276         function.  Modernize replacement scheme.
31277         (gl_PREREQ_GETGROUPS): Delete.
31278         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
31279         * modules/getgroups (configure.ac): Declare witness.
31280         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
31281         * modules/unistd (Depends-on): Substitute witness.
31282         * lib/unistd.in.h (getgroups): Declare replacement.
31283
31284         getgroups: avoid calling exit
31285         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
31286         drop xalloc.
31287         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
31288         dependencies.
31289         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
31290         exiting, in the rare case of malloc failure.
31291
31292         getgroups: fix logic error
31293         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
31294         has more than 20 groups.
31295         * modules/getgroups-tests: New test.
31296         * tests/test-getgroups.c: New file.
31297
31298 2009-11-13  Simon Josefsson  <simon@josefsson.org>
31299
31300         * tests/test-base64.c: Improve.
31301
31302 2009-11-13  Simon Josefsson  <simon@josefsson.org>
31303
31304         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
31305         Blake <ebb9@byu.net>.
31306
31307 2009-11-13  Simon Josefsson  <simon@josefsson.org>
31308
31309         * tests/test-xvasprintf.c: Add %s%s related checks.
31310
31311 2009-11-12  Eric Blake  <ebb9@byu.net>
31312
31313         version-etc: match standards.texi style
31314         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
31315         and use <> only for URLs.
31316
31317 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
31318
31319         fts: do not fail on a submount during traversal
31320         * lib/fts.c (fts_build): Read the stat info again after opening
31321         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
31322         Original report at http://bugzilla.redhat.com/501848.
31323
31324 2009-11-12  Jim Meyering  <meyering@redhat.com>
31325
31326         bootstrap: sync from coreutils
31327         * build-aux/bootstrap (bootstrap_epilogue): New function.
31328         Use git_modules_config in one more place.  This make bootstrap's
31329         --gnulib-srcdir option more useful for testing.
31330
31331         bootstrap: generalize autoheader check
31332         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
31333         AC_CONFIG_HEADERS.
31334
31335 2009-11-11  Eric Blake  <ebb9@byu.net>
31336
31337         mkfifoat: use new modules for Solaris and BSD bugs
31338         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
31339         * lib/mkfifoat.c (mknodat): Split...
31340         * lib/mknodat.c (mknodat): ...into new file.
31341         * modules/mkfifoat (Files): Ship new file.
31342         (Depends-on): Add mkfifo, mknod.
31343         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
31344         (Depends-on): Add symlink.
31345         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
31346         redundant with test_mkfifo.h.
31347         (do_mkfifoat, do_mknodat): New helpers.
31348
31349         mknod: new module
31350         * modules/mknod: New file.
31351         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
31352         * lib/mknod.c (mknod): Likewise.
31353         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
31354         defaults.
31355         * modules/sys_stat (Makefile.am): Substitute them.
31356         * lib/sys_stat.in.h (mknod): Declare replacement.
31357         * MODULES.html.sh (Support for systems lacking POSIX:2008):
31358         Document it.
31359         * doc/posix-functions/mknod.texi (mknod): Likewise.
31360         * modules/mknod-tests: New test.
31361         * tests/test-mknod.c: Likewise.
31362
31363         mkfifo: new module
31364         * modules/mkfifo: New file.
31365         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
31366         * lib/mkfifo.c (mkfifo): Likewise.
31367         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
31368         defaults.
31369         * modules/sys_stat (Makefile.am): Substitute them.
31370         * lib/sys_stat.in.h (mkfifo): Declare replacement.
31371         * MODULES.html.sh (Support for systems lacking POSIX:2008):
31372         Document it.
31373         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
31374         * modules/mkfifo-tests: New test.
31375         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
31376         from test-mkfifoat.c.
31377         * tests/test-mkfifo.c: New file.
31378
31379         readlink: detect FreeBSD bug
31380         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
31381         slash on symlink.
31382         * doc/posix-functions/readlink.texi (readlink): Document the bug.
31383         * tests/test-readlink.h (test_readlink): Enhance test.
31384
31385         symlink: detect FreeBSD bug
31386         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
31387         slash on symlink.
31388         * doc/posix-functions/symlink.texi (symlink): Document the bug.
31389         * tests/test-symlink.h (test_symlink): Enhance test.
31390
31391 2009-11-10  Eric Blake  <ebb9@byu.net>
31392
31393         link: detect FreeBSD bug
31394         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
31395         symlink.
31396         * doc/posix-functions/link.texi (link): Document the bug.
31397         * tests/test-link.h (test_link): Enhance test.
31398         * tests/test-linkat.c (main): Update caller.
31399
31400         unlink, remove: detect FreeBSD bug
31401         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
31402         slash on symlink.
31403         * doc/posix-functions/unlink.texi (unlink): Document the bug.
31404         * doc/posix-functions/remove.texi (remove): Likewise.
31405         * tests/test-unlink.h (test_unlink): Enhance test.
31406         * tests/test-remove.c (main): Likewise.
31407
31408 2009-11-09  Eric Blake  <ebb9@byu.net>
31409
31410         rename: detect FreeBSD bug
31411         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
31412         slash on symlink.
31413         * modules/renameat-tests (Depends-on): Add filenamecat.
31414         * tests/test-rename.h (test_rename): Allow one more errno.
31415         * tests/test-renameat.c (main): Likewise.
31416         * doc/posix-functions/rename.texi (rename): Document the bug.
31417
31418         open: detect FreeBSD bug
31419         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
31420         symlink.
31421         * doc/posix-functions/open.texi (open): Document the bug.
31422         * doc/posix-functions/utimes.texi (utimes): Likewise.
31423         * tests/test-open.h (test_open): Add parameters, and test symlink
31424         handling.
31425         * tests/test-open.c (main): Adjust caller.
31426         * tests/test-fcntl-safer.c (main): Likewise.
31427         * modules/open-tests (Depends-on): Add stdbool, symlink.
31428         * modules/fcntl-safer-tests (Depends-on): Likewise.
31429         * tests/test-openat.c (main): Add test-open tests.
31430
31431         stat: detect FreeBSD bug
31432         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
31433         symlink.
31434         * doc/posix-functions/stat.texi (stat): Document the bug.
31435         * tests/test-stat.h (test_stat_func): Add argument.
31436         * tests/test-stat.c (main): Adjust caller.
31437         * tests/test-fstatat.c (main): Likewise.
31438         * modules/stat-tests (Depends-on): Add stdbool, symlink.
31439         Reported by Jim Meyering.
31440
31441 2009-11-09  James Youngman  <jay@gnu.org>
31442
31443         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
31444         * lib/strftime.c: Correct placement of #include "ignore-value.h".
31445
31446 2009-11-08  Jim Meyering  <meyering@redhat.com>
31447
31448         utimens: remove invalid futimesat call
31449         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
31450         It used the file descriptor of the target file as the DIR_FD
31451         parameter and NULL as the file name.  That caused failure with
31452         errno == EFAULT on FreeBSD-8.0-rc2
31453
31454 2009-11-07  Eric Blake  <ebb9@byu.net>
31455
31456         fflush, freadseek: use fseeko, not fseek
31457         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
31458         (clear_ungetc_buffer): Avoid potential problems on large files.
31459         * lib/freadseek.c (freadseek): Likewise.
31460         * modules/freadseek (Depends-on): Add fseeko.
31461         * modules/fseek (configure.ac): Set a witness.
31462         * tests/test-fflush.c (main): Use fseeko.
31463         * tests/test-fpurge.c (fseek): Disable link warning.
31464         * tests/test-freadable.c (fseek): Likewise.
31465         * tests/test-freading.c (fseek): Likewise.
31466         * tests/test-fseeko.c (fseek): Likewise.
31467         * tests/test-ftell.c (fseek): Likewise.
31468         * tests/test-ftello.c (fseek): Likewise.
31469         * tests/test-fwritable.c (fseek): Likewise.
31470         * tests/test-fwriting.c (fseek): Likewise.
31471
31472 2009-11-06  Simon Josefsson  <simon@josefsson.org>
31473
31474         * modules/memchr (Depends-on): Drop getpagesize dependency.
31475
31476 2009-11-06  Simon Josefsson  <simon@josefsson.org>
31477
31478         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
31479         Reported by Ludovic Courtès.
31480         * build-aux/pmccabe2html: Improve example usage.
31481         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
31482
31483 2009-11-06  Jim Meyering  <meyering@redhat.com>
31484
31485         do-release-commit-and-tag: New module.
31486         Automate the release-commit and tag process.
31487         * build-aux/do-release-commit-and-tag: New script, from coreutils.
31488         * modules/do-release-commit-and-tag: New file.
31489         * MODULES.html.sh (Support for maintaining and releasing): Add it.
31490
31491 2009-11-06  Simon Josefsson  <simon@josefsson.org>
31492
31493         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
31494         because test-select.c uses inet_pton.
31495
31496 2009-11-06  Simon Josefsson  <simon@josefsson.org>
31497
31498         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
31499         GETADDRINFO_LIB.  Bump serial number.
31500         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
31501         Suggested by Eric Blake <ebb9@byu.net>.
31502
31503 2009-11-05  Eric Blake  <ebb9@byu.net>
31504
31505         strtod: detect darwin bug
31506         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
31507         Reported by Leo Davis.
31508
31509         freopen-safer: new module
31510         * modules/freopen-safer: New module.
31511         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
31512         * lib/freopen-safer.c (freopen_safer): New file.
31513         * lib/stdio-safer.h (freopen_safer): New declaration.
31514         * lib/stdio--.h (freopen): New override.
31515         * MODULES.html.sh (File stream based Input/Output): Mention it.
31516         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
31517         freopen-safer module.
31518         * doc/posix-functions/stderr.texi (stderr): Likewise.
31519         * doc/posix-functions/stdin.texi (stdin): Likewise.
31520         * doc/posix-functions/stdout.texi (stdout): Likewise.
31521         * modules/freopen-safer-tests: New test.
31522         * tests/test-reopen-safer.c: New file.
31523
31524 2009-11-05  Jim Meyering  <meyering@redhat.com>
31525
31526         maint.mk: Prohibit inclusion of "close-stream.h" without use.
31527         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
31528
31529 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31530
31531         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
31532
31533 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31534
31535         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
31536
31537 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31538
31539         Fix link error.
31540         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
31541         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31542
31543 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31544
31545         * tests/test-func.c: Also test value of __func__.
31546
31547 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31548
31549         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
31550         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
31551
31552 2009-11-05  Bruno Haible  <bruno@clisp.org>
31553
31554         Fix link error.
31555         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
31556         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31557         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
31558
31559 2009-11-05  Bruno Haible  <bruno@clisp.org>
31560
31561         Tests for module 'inet_pton'.
31562         * modules/inet_pton-tests: New file.
31563         * tests/test-inet_pton.c: New file.
31564
31565 2009-11-05  Bruno Haible  <bruno@clisp.org>
31566
31567         Tests for module 'inet_ntop'.
31568         * modules/inet_ntop-tests: New file.
31569         * tests/test-inet_ntop.c: New file.
31570
31571 2009-11-04  Eric Blake  <ebb9@byu.net>
31572
31573         stdlib-safer: wrap all mkstemp variants
31574         * modules/mkostemp (configure.ac): Set witness.
31575         * modules/mkostemps (configure.ac): Likewise.
31576         * modules/mkstemps (configure.ac): Likewise.
31577         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
31578         (mkstemps_safer): Wrap more functions.
31579         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
31580         wrapping.
31581         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
31582         (mkstemps_safer): Implement the wrappers.
31583
31584         mkstemps, mkostemps: new modules
31585         * modules/mkostemps: New module.
31586         * modules/mkstemps: Likewise.
31587         * lib/mkostemps.c (mkostemps): New file.
31588         * lib/mkstemps.c (mkstemps): Likewise.
31589         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
31590         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
31591         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
31592         * modules/stdlib (Makefile.am): Substitute them.
31593         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
31594         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
31595         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
31596         * doc/gnulib.texi (Glibc stdlib.h): Include them.
31597         * MODULES.html.sh (File system functions): Mention them.
31598
31599         tempname: resync from glibc
31600         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
31601         same values for __GT_FILE as glibc.  Abort even when assertions
31602         are disabled.
31603         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
31604         match its value otherwise.  Allow idempotent inclusion.
31605         * lib/mkdtemp.c (mkdtemp): Adjust caller.
31606         * lib/mkostemp.c (mkostemp): Likewise.
31607         * lib/mkstemp.c (mkstemp): Likewise.
31608         * lib/tmpfile.c (tmpfile): Likewise.
31609         * NEWS: Document this.
31610
31611         utimens: fix use of futimens on older Linux
31612         * lib/utimens.c (fdutimens): Use updated, rather than original,
31613         timespec to avoid bug in older Linux kernel.
31614         Reported by Simon Josefsson.
31615
31616 2009-11-04  Bruno Haible  <bruno@clisp.org>
31617
31618         Make num_processors more flexible and consistent.
31619         * lib/nproc.h (enum nproc_query): New type.
31620         (num_processors): Add a 'query' argument.
31621         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
31622         (num_processors): Add a 'query' argument. Test the value of the
31623         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
31624         mingw, count the number of CPUs available for the current process.
31625         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
31626         Check for sched_getaffinity and sched_getaffinity_np.
31627         * modules/nproc (Depends-on): Add c-ctype, extensions.
31628         * NEWS: Mention the change.
31629
31630 2009-11-03  Bruno Haible  <bruno@clisp.org>
31631
31632         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
31633
31634 2009-11-03  Jim Meyering  <meyering@redhat.com>
31635
31636         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
31637         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
31638         if it is defined.
31639
31640 2009-11-02  Eric Blake  <ebb9@byu.net>
31641
31642         mktime, timegm: share common declaration
31643         * lib/mktime-internal.h: New file.
31644         * lib/mktime.c: Use it rather than open-coding a declaration.
31645         * lib/timegm.c: Likewise.
31646         * modules/mktime (Files): Ship it.
31647         * modules/timegm (Files): Likewise.
31648         Suggested by Bruno Haible.
31649
31650         test-update-copyright: update test to match script changes
31651         * tests/test-update-copyright.sh: Avoid hard-coding perl
31652         location.  Don't update *.bak created by earlier runs.
31653
31654 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
31655             Simon Josefsson  <simon@josefsson.org>
31656             Bruno Haible  <bruno@clisp.org>
31657
31658         Fix link error on Solaris 8.
31659         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
31660         also in libnsl. Define also INET_PTON_LIB.
31661         * modules/inet_pton (Link): New section.
31662
31663 2009-11-02  Simon Josefsson  <simon@josefsson.org>
31664             Bruno Haible  <bruno@clisp.org>
31665
31666         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
31667         * modules/inet_ntop (Link): New section.
31668         Reported by Boyan Kasarov <bkasarov@gmail.com>.
31669
31670 2009-11-02  Eric Blake  <ebb9@byu.net>
31671
31672         maint: avoid compiler warnings in m4 macros
31673         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
31674         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
31675
31676 2009-11-02  Simon Josefsson  <simon@josefsson.org>
31677
31678         * m4/pmccabe2html.m4: Remove file.
31679         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
31680         function.  Change maintainer.
31681         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
31682         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
31683         Courtès).
31684
31685 2009-10-31  Eric Blake  <ebb9@byu.net>
31686
31687         fseeko: fix m4 regression
31688         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
31689         regression from 2009-10-27.
31690         Reported by Ralf Wildenhues.
31691
31692 2009-10-31  Jim Meyering  <meyering@redhat.com>
31693
31694         inttostr: aesthetics and improved (compile-time) safety
31695         Define inttype_is_signed rather than inttype_is_unsigned,
31696         since the sole use is via "#if inttype_is_signed".
31697         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
31698         inttype_is_unsigned.
31699         * lib/offtostr.c (inttype_is_signed): Likewise.
31700         * lib/uinttostr.c (inttype_is_signed): Likewise.
31701         * lib/umaxtostr.c (inttype_is_signed): Likewise.
31702         * lib/inttostr.c (inttostr): Use verify to cross-check the
31703         inttype_is_signed value and the signedness of the actual type.
31704         * modules/inttostr (Depends-on): Add verify.
31705
31706 2009-10-30  Eric Blake  <ebb9@byu.net>
31707
31708         build: avoid compiler warnings
31709         * lib/fchmodat.c (lchmod): Mark unused variables.
31710         * lib/getopt.c (_getopt_initialize): Likewise.
31711         * lib/mktime.c (__mktime_internal): Provide prototype.
31712         * lib/inttostr.c (inttostr): Avoid compiler warning even with
31713         older gcc that do not understand #pragma GCC diagnostic.
31714         * lib/uinttostr.c (inttype_is_unsigned): Define.
31715         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
31716
31717 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
31718
31719         stat: fix compilation on AIX
31720         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
31721         only see struct stat64.
31722
31723 2009-10-30  Eric Blake  <ebb9@byu.net>
31724
31725         exclude: make more robust
31726         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
31727         rather than masking a coding bug.
31728         Suggested by Bruno Haible.
31729
31730 2009-10-30  Jim Meyering  <meyering@redhat.com>
31731
31732         perl scripts: remove #!/usr/bin/perl in favor of more portable...
31733         Rather than putting #!/usr/bin/perl on the first line,
31734         start with a variant of what's recommended by "man perlrun" that
31735         invokes the first "perl" program from your shell's search path.
31736         * build-aux/gitlog-to-changelog: Replace #!... as above.
31737         Add a "Local Variables" perl mode setting.
31738         Prompted by a patch from Ludovic Courtès.
31739         Improved by Eric Blake.
31740         * build-aux/useless-if-before-free: Likewise.
31741         * build-aux/announce-gen: Likewise.
31742         * build-aux/update-copyright: Likewise.
31743
31744 2009-10-29  Eric Blake  <ebb9@byu.net>
31745
31746         filenamecat-lgpl: adjust clients
31747         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
31748         filenamecat.
31749         * modules/renameat (Depends-on): Likewise.
31750
31751         filenamecat: split into filenamecat-lgpl
31752         * modules/filenamecat-lgpl: New module.
31753         * modules/filenamecat (Files): Move library-safe files into
31754         filenamecat-lgpl.
31755         (Depends-on): Add filenamecat-lgpl.
31756         (configure.ac): Declare witness.
31757         * lib/filenamecat.h (file_name_concat): Only declare when using
31758         GPL module.
31759         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
31760         Move...
31761         * lib/filenamecat-lgpl.c: ...into new file.
31762         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
31763         (gl_FILE_NAME_CONCAT): Use it.
31764         * MODULES.html.sh (File system functions): Mention new module.
31765
31766         argp: avoid memory leak
31767         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
31768         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
31769         base_name, since the latter malloc()s and can call exit().
31770         Leak introduced 2006-07-03.
31771
31772         dirname-lgpl: adjust clients that don't need full dirname
31773         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
31774         * modules/filenamecat (Depends-on): Likewise.
31775         * modules/linkat (Depends-on): Likewise.
31776         * modules/mkancesdirs (Depends-on): Likewise.
31777         * modules/mkdir (Depends-on): Likewise.
31778         * modules/openat (Depends-on): Likewise.
31779         * modules/savewd (Depends-on): Likewise.
31780         * modules/rename (Depends-on): Likewise.
31781         (License): Relax license.
31782         * modules/mkdir-tests (Depends-on): Drop progname.
31783         (Makefile.am): Delete unneeded LDADD.
31784         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
31785
31786         dirname: split into dirname-lgpl
31787         * modules/dirname-lgpl: New module.
31788         * modules/dirname (Files): Move library-safe files into
31789         dirname-lgpl.
31790         (Depends-on): Add dirname-lgpl.
31791         (configure.ac): Declare witness.
31792         * modules/double-slash-root (License): Relax license.
31793         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
31794         module.
31795         * lib/dirname.c (dir_len, mdir_name): Move...
31796         * lib/dirname-lgpl.c: ...into new file.
31797         * lib/basename.c (last_component, base_len): Move...
31798         * lib/basename-lgpl.c: ...into new file.
31799         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
31800         (gl_DIRNAME): Use it.
31801         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
31802         Mention new module.
31803         * modules/dirname-tests (Depends-on): Add progname.
31804         * tests/test-dirname.c (program_name): Delete.
31805
31806         mkdir: make safe for libraries
31807         * modules/mkdir (Depends-on): Drop xalloc.
31808         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
31809         exit.
31810
31811         tests: avoid some compiler warnings
31812         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
31813         literals.
31814         * tests/test-memchr.c (main): Avoid type mismatch.
31815         * tests/test-arpa_inet.c (main): Avoid unused parameters.
31816         * tests/test-base64.c (main): Likewise.
31817         * tests/test-getdelim.c (main): Likewise.
31818         * tests/test-gethostname.c (main): Likewise.
31819         * tests/test-getline.c (main): Likewise.
31820         * tests/test-netinet_in.c (main): Likewise.
31821         * tests/test-select.c (open_server_socket, main): Likewise.
31822         * tests/test-select-stdin.c (main): Likewise.
31823         * tests/test-sockets.c (main): Likewise.
31824         * tests/test-strsignal.c (main): Likewise.
31825         * tests/test-sys_select.c (main): Likewise.
31826         * tests/test-sys_socket.c (main): Likewise.
31827         * tests/test-u64.c (main): Likewise.
31828         * tests/test-xfprintf-posix.c (main): Likewise.
31829         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
31830
31831         sockets: avoid compiler warning
31832         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
31833
31834         maint: detect usage(1) and other suspicious exits
31835         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
31836
31837 2009-10-29  Jim Meyering  <meyering@redhat.com>
31838
31839         timespec: long-to-int truncation could make timespec_cmp malfunction
31840         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
31841         a multiple of 2^32 nanoseconds as no difference.
31842
31843 2009-10-28  Jim Meyering  <meyering@redhat.com>
31844
31845         fprintftime: wrap macro code argument in "do {...} while(0)"
31846         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
31847         cpy macro must be a statement that can be followed by a semicolon.
31848         Now that the else clause contains a comment and is hence longer
31849         than one line, I require curly braces.  That in turn requires
31850         that we wrap this code block in the standard do...while(0).
31851
31852         fprintftime: remove stray semicolon from previous change
31853         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
31854
31855         fprintftime: avoid a warning about ignored fwrite return value
31856         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
31857         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
31858         that is unsafe.
31859         * modules/fprintftime (Depends-on): Add ignore-value.
31860
31861         exclude: avoid an unwarranted warning
31862         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
31863
31864 2009-10-27  Eric Blake  <ebb9@byu.net>
31865
31866         fseek: avoid compilation failure when fflush is replaced
31867         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
31868         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
31869         module is in use.
31870         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
31871         module is not in use; since REPLACE_FSEEK worked otherwise.
31872         (GNULIB_FTELLO): Likewise for ftell.
31873         Reported by Ian Beckwith and others.
31874
31875 2009-10-27  Bruno Haible  <bruno@clisp.org>
31876
31877         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
31878         Reported by Jim Meyering.
31879
31880 2009-10-27  Jim Meyering  <jim@meyering.net>
31881             Bruno Haible  <bruno@clisp.org>
31882
31883         Avoid warning despite dropping the return value of fwrite.
31884         * lib/unicodeio.c: Include ignore-value.h.
31885         (fwrite_success_callback): Explicitly ignore fwrite's return value.
31886         * modules/unicodeio (Depends-on): Add ignore-value.
31887
31888 2009-10-26  Eric Blake  <ebb9@byu.net>
31889
31890         areadlinkat: fix fallback path
31891         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
31892         pointer and zero.
31893
31894 2009-10-22  Pádraig Brady  <P@draigBrady.com>
31895
31896         Use a better IO block size for modern systems
31897         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
31898         * lib/md2.c: Likewise.
31899         * lib/md4.c: Likewise.
31900         * lib/md5.c: Likewise.
31901         * lib/sha1.c: Likewise.
31902         * lib/sha256.c: Likewise.
31903         * lib/sha512.c: Likewise.
31904
31905 2009-10-22  Eric Blake  <ebb9@byu.net>
31906
31907         tests: avoid several compiler warnings
31908         * tests/test-getcwd.c (main): Avoid buffer underflow.
31909         * tests/test-getdate.c (main): String literals are not safe with
31910         putenv, so use setenv.  Declare unused argument.
31911         * modules/getdate-tests (Depends-on): Add setenv.
31912         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
31913         problems with string literals in char *.
31914         * tests/test-hash.c (main): Avoid shadowing declaration.
31915         (insert_new): Treat string literals as char const *.
31916         * tests/test-getopt.h (test_getopt): Likewise.
31917         (getopt_loop): Alter types to minimize casting elsewhere.
31918         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
31919         (test_getopt_long_posix): Likewise.
31920         (do_getopt_long): Add wrapper to minimize casting.
31921         * tests/test-atexit.c (clear_temp_file): Use void.
31922         * tests/test-areadlink-with-size.c (main): Declare unused
31923         arguments.
31924         * tests/test-areadlink.c (main): Likewise.
31925         * tests/test-areadlinkat-with-size.c (main): Likewise.
31926         * tests/test-areadlinkat.c (main): Likewise.
31927         * tests/test-canonicalize-lgpl.c (main): Likewise.
31928         * tests/test-canonicalize.c (main): Likewise.
31929         * tests/test-dirent-safer.c (main): Likewise.
31930         * tests/test-dirname.c (main): Likewise.
31931         * tests/test-dup2.c (main): Likewise.
31932         * tests/test-fchdir.c (main): Likewise.
31933         * tests/test-fcntl-h.c (main): Likewise.
31934         * tests/test-fcntl-safer.c (main): Likewise.
31935         * tests/test-fdopendir.c (main): Likewise.
31936         * tests/test-fdutimensat.c (main): Likewise.
31937         * tests/test-fflush.c (main): Likewise.
31938         * tests/test-filenamecat.c (main): Likewise.
31939         * tests/test-filevercmp.c (main): Likewise.
31940         * tests/test-fopen-safer.c (main): Likewise.
31941         * tests/test-fopen.c (main): Likewise.
31942         * tests/test-fpending.c (main): Likewise.
31943         * tests/test-fpurge.c (main): Likewise.
31944         * tests/test-freading.c (main): Likewise.
31945         * tests/test-fstatat.c (main): Likewise.
31946         * tests/test-fsync.c (main): Likewise.
31947         * tests/test-futimens.c (main): Likewise.
31948         * tests/test-getndelim2.c (main): Likewise.
31949         * tests/test-gettimeofday.c (main): Likewise.
31950         * tests/test-getopt.c (main): Likewise.
31951         * tests/test-i-ring.c (main): Likewise.
31952         * tests/test-inttypes.c (main): Likewise.
31953         * tests/test-link.c (main): Likewise.
31954         * tests/test-lstat.c (main): Likewise.
31955         * tests/test-math.c (main): Likewise.
31956         * tests/test-md5.c (main): Likewise.
31957         * tests/test-memchr2.c (main): Likewise.
31958         * tests/test-memrchr.c (main): Likewise.
31959         * tests/test-mkdir.c (main): Likewise.
31960         * tests/test-mkdirat.c (main): Likewise.
31961         * tests/test-mkfifoat.c (main): Likewise.
31962         * tests/test-open.c (main): Likewise.
31963         * tests/test-openat-safer.c (main): Likewise.
31964         * tests/test-openat.c (main): Likewise.
31965         * tests/test-quotearg.c (main): Likewise.
31966         * tests/test-rawmemchr.c (main): Likewise.
31967         * tests/test-readlink.c (main): Likewise.
31968         * tests/test-remove.c (main): Likewise.
31969         * tests/test-rename.c (main): Likewise.
31970         * tests/test-renameat.c (main): Likewise.
31971         * tests/test-rmdir.c (main): Likewise.
31972         * tests/test-sha1.c (main): Likewise.
31973         * tests/test-signal.c (main): Likewise.
31974         * tests/test-sigaction.c (main): Likewise.
31975         * tests/test-stat.c (main): Likewise.
31976         * tests/test-stat-time.c (main): Likewise.
31977         * tests/test-stddef.c (main): Likewise.
31978         * tests/test-stdint.c (main): Likewise.
31979         * tests/test-stdio.c (main): Likewise.
31980         * tests/test-stdlib.c (main): Likewise.
31981         * tests/test-strchrnul.c (main): Likewise.
31982         * tests/test-strerror.c (main): Likewise.
31983         * tests/test-string.c (main): Likewise.
31984         * tests/test-strtod.c (main): Likewise.
31985         * tests/test-strverscmp.c (main): Likewise.
31986         * tests/test-symlink.c (main): Likewise.
31987         * tests/test-symlinkat.c (main): Likewise.
31988         * tests/test-sys_stat.c (main): Likewise.
31989         * tests/test-sys_time.c (main): Likewise.
31990         * tests/test-time.c (main): Likewise.
31991         * tests/test-unistd.c (main): Likewise.
31992         * tests/test-unlink.c (main): Likewise.
31993         * tests/test-unlinkat.c (main): Likewise.
31994         * tests/test-utimens.c (main): Likewise.
31995         * tests/test-utimensat.c (main): Likewise.
31996         * tests/test-version-etc.c (main): Likewise.
31997         * tests/test-wchar.c (main): Likewise.
31998         * tests/test-wctype.c (main): Likewise.
31999         * tests/test-xprintf-posix.c (main): Likewise.
32000         * tests/test-posixtm.c (main): Likewise.
32001         (STREQ): Delete unused macro.
32002         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
32003         shadowed variables.
32004         * tests/test-memchr.c (main): Likewise.
32005
32006 2009-10-21  Eric Blake  <ebb9@byu.net>
32007
32008         areadlinkat: avoid failure on older glibc
32009         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
32010         rather than mis-comparing 0 against FUNC_RESULT of char*.
32011
32012 2009-10-21  Bruno Haible  <bruno@clisp.org>
32013
32014         * modules/stpncpy (License): Relicense under LGPLv2+.
32015         Reported by David Lutterkort <lutter@redhat.com>.
32016
32017 2009-10-20  Eric Blake  <ebb9@byu.net>
32018
32019         utimensat: work around Solaris 9 bug
32020         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
32021         has trailing slash bugs.
32022         * tests/test-lutimens.h (test_lutimens): Enhance test.
32023         * tests/test-utimens.h (test_utimens): Likewise.
32024         * doc/posix-functions/utime.texi (utime): Enhance documentation.
32025         * doc/posix-functions/utimes.texi (utimes): Likewise.
32026         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32027         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
32028         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
32029         * doc/posix-functions/futimens.texi (futimens): Likewise.
32030
32031         fdutimensat: new module
32032         * modules/fdutimensat: New file.
32033         * lib/fdutimensat.c (fdutimensat): Likewise.
32034         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
32035         * MODULES.html.sh (File system functions): Mention module.
32036         * modules/fdutimensat-tests: New test.
32037         * tests/test-fdutimensat.c: Likewise.
32038
32039         doc: regenerate INSTALL
32040         * doc/INSTALL: Reflect recent autoconf update.
32041         * doc/INSTALL.ISO: Likewise.
32042         * doc/INSTALL.UTF-8: Likewise.
32043
32044 2009-10-20  Pádraig Brady  <P@draigBrady.com>
32045
32046         acl: warn if ACL support is not detected
32047         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
32048
32049 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
32050
32051         * lib/nproc.h: Add extern "C" block for C++.
32052
32053 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
32054             Bruno Haible  <bruno@clisp.org>
32055
32056         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
32057         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
32058         * doc/posix-functions/isalpha.texi: Likewise.
32059         * doc/posix-functions/isblank.texi: Likewise.
32060         * doc/posix-functions/iscntrl.texi: Likewise.
32061         * doc/posix-functions/isdigit.texi: Likewise.
32062         * doc/posix-functions/isgraph.texi: Likewise.
32063         * doc/posix-functions/islower.texi: Likewise.
32064         * doc/posix-functions/isprint.texi: Likewise.
32065         * doc/posix-functions/ispunct.texi: Likewise.
32066         * doc/posix-functions/isspace.texi: Likewise.
32067         * doc/posix-functions/isupper.texi: Likewise.
32068         * doc/posix-functions/isxdigit.texi: Likewise.
32069
32070 2009-10-18  Bruno Haible  <bruno@clisp.org>
32071
32072         Tests for module 'isblank'.
32073         * modules/isblank-tests: New file.
32074         * tests/test-isblank.c: New file.
32075
32076         New module 'isblank'.
32077         * lib/isblank.c: New file.
32078         * m4/isblank.m4: New file.
32079         * modules/isblank: New file.
32080         * doc/posix-functions/isblank.texi: Mention the new module.
32081
32082 2009-10-18  Bruno Haible  <bruno@clisp.org>
32083
32084         New module 'ctype'.
32085         * lib/ctype.in.h: New file.
32086         * m4/ctype.m4: New file.
32087         * modules/ctype: New file.
32088         * doc/posix-headers/ctype.texi: Mention the new module.
32089
32090 2009-10-18  Jim Meyering  <meyering@redhat.com>
32091
32092         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
32093         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
32094         right after its initialization, rather than farther down.
32095         Keeping these in close proximity makes it easier to ensure
32096         that each such variable is initialized.  E.g.,
32097
32098             LIB_CLOCK_GETTIME=
32099             AC_SUBST([LIB_CLOCK_GETTIME])
32100
32101         This change also increments these serial numbers.
32102         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
32103         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
32104         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32105
32106 2009-10-18  Bruno Haible  <bruno@clisp.org>
32107
32108         Don't let environment variables perturb build.
32109         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
32110         (gl_PREREQ_GETHRXTIME): ... not here.
32111
32112 2009-10-18  Bruno Haible  <bruno@clisp.org>
32113
32114         Avoid symlink attack in localcharset module.
32115         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
32116         (O_NOFOLLOW): Define fallback.
32117         (get_charset_aliases): Don't open the file if it is a symbolic link.
32118         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
32119         gl_FCNTL_H.
32120         (gl_FCNTL_H): Require it.
32121         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
32122         * modules/localcharset (Files): Add m4/fcntl_h.m4.
32123         Reported by Fergal Glynn <fglynn@veracode.com>.
32124
32125 2009-10-18  Bruno Haible  <bruno@clisp.org>
32126
32127         Implement nproc for mingw.
32128         * lib/nproc.c: Include <windows.h>
32129         (num_processors): On native Windows platforms, try GetSystemInfo.
32130
32131 2009-10-18  Bruno Haible  <bruno@clisp.org>
32132
32133         Implement nproc for IRIX.
32134         * lib/nproc.c: Include <sys/sysmp.h>.
32135         (num_processors): On IRIX systems, try sysmp.
32136         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
32137
32138 2009-10-18  Bruno Haible  <bruno@clisp.org>
32139
32140         Implement nproc for HP-UX.
32141         * lib/nproc.c: Include <sys/pstat.h>
32142         (num_processors): On HP-UX systems, try pstat_getdynamic.
32143         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
32144         pstat_getdynamic.
32145
32146 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
32147             Bruno Haible  <bruno@clisp.org>
32148
32149         Implement nproc for NetBSD, OpenBSD.
32150         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
32151         (ARRAY_SIZE): New macro.
32152         (num_processors): On BSD systems, try sysctl of HW_NCPU.
32153         * m4/nproc.m4: New file.
32154         * modules/nproc (Files): Add m4/nproc.m4.
32155         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
32156         (Makefile.am): Instead, augment lib_SOURCES.
32157
32158 2009-10-18  Bruno Haible  <bruno@clisp.org>
32159
32160         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
32161         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
32162         sys/param.h.
32163
32164 2009-10-16  Eric Blake  <ebb9@byu.net>
32165
32166         utimensat: new module
32167         * modules/utimensat: New file.
32168         * lib/utimensat.c (utimensat): Likewise.
32169         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32170         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
32171         so we can work around Linux bugs.
32172         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32173         * modules/sys_stat (Makefile.am): Substitute them.
32174         * lib/sys_stat.in.h (utimensat): Declare it.
32175         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32176         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32177         * modules/utimensat-tests: New test.
32178         * tests/test-utimensat.c: Likewise.
32179
32180         utimens: let lutimens work on non-symlinks
32181         * lib/utimens.c (lutimens): Fall back to utimens rather than
32182         failing with ENOSYS, when file is not a symlink.
32183         (utimens): Reduce redirection.
32184         * tests/test-lutimens.h (test_lutimens): Update test to cover
32185         non-symlinks.
32186         * tests/test-utimens.h (test_utimens): Update test to cover
32187         symlinks.
32188         * tests/test-utimens.c (main): Update caller.
32189
32190         utimens: cache whether utimensat syscall works
32191         * lib/utimens.c (utimensat_works_really): New cache variable.
32192         (fdutimens, lutimens): Use it to avoid failing syscall.
32193
32194         test-stat-time, test-utimens: improve portability
32195         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
32196         ext4 on alpha, and for cygwin.
32197         * tests/test-utimens-common.h: New file.
32198         (nap): Factor delays into single function.
32199         * tests/test-lutimens.h (test_lutimens): Use new header.
32200         * tests/test-futimens.h (test_futimens): Likewise.
32201         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
32202         timestamps to occur from same machine, as was done previously for
32203         test_utimens.
32204         * modules/utimens-tests (Files): Ship new file.
32205         * modules/futimens-tests (Files): Likewise.
32206         Reported in part by Jim Meyering.
32207
32208         sys_stat: sort replacement declarations
32209         * lib/sys_stat.in.h: Sort declarations.
32210         * lib/futimens.c (futimens): Fix typo.
32211
32212 2009-10-15  Jim Meyering  <meyering@redhat.com>
32213
32214         don't let environment settings perturb build
32215         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
32216         could cause a configure-time and/or build-time malfunction.
32217         Typically, a configure-time function-in-library test is performed
32218         via code like this:
32219
32220           LIB_VAR=
32221           AC_SUBST([LIB_VAR])
32222           prefix_saved_LIBS=$LIBS
32223             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
32224                        [test "$ac_cv_search_FUNC" = "none required" ||
32225                         LIB_VAR=$ac_cv_search_FUNC])
32226           LIBS=$prefix_saved_LIBS
32227
32228         However, in each of the files affected by this change, the LIB_VAR=
32229         initialization was omitted.  Thus, when set in the environment, its
32230         value would propagate into generated Makefiles when FUNC is not found
32231         in LIB_NAME.
32232         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
32233         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
32234         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32235
32236 2009-10-14  Eric Blake  <ebb9@byu.net>
32237
32238         fchdir: avoid infinite recursion in mingw
32239         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
32240         recursing.
32241
32242         test-stat-time: port to mingw
32243         * tests/test-stat-time.c (force_unlink): Return a value.
32244         (test_ctime) [W32]: Fix compilation error.
32245         (nap): Don't call usleep with too large an argument.  Use
32246         force_unlink.
32247         * doc/pastposix-functions/usleep.texi (usleep): Document the
32248         portability issue.
32249
32250 2009-10-13  Jim Meyering  <meyering@redhat.com>
32251
32252         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
32253         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
32254         * modules/pipe-filter-ii: Likewise.
32255         * modules/sys_socket-tests: Likewise.
32256         * modules/tsearch-tests: Likewise.
32257         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
32258         (check): Depend on it.
32259
32260 2009-10-12  Eric Blake  <ebb9@byu.net>
32261
32262         utimens-tests: port to NFS file systems
32263         * tests/test-utimens.h (test_utimens): Refactor utimecmp
32264         comparisons to avoid spurious failures from timestamp drift
32265         between NFS machines.
32266
32267 2009-10-12  Eric Blake  <ebb9@byu.net>
32268
32269         stat-time-tests: minor cleanups
32270         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
32271         * tests/test-stat-time.c (nap): Separate assignment from call.
32272         Suggested by Paolo Bonzini and Bruno Haible.
32273
32274         sys_stat: guarantee struct timespec
32275         * lib/sys_stat.in.h (includes): Always include <time.h>
32276         * modules/sys_stat (Depends-on): Add time.
32277         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
32278         mode_t permission values.
32279         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
32280         get at subsecond timestamps.
32281
32282 2009-10-10  Eric Blake  <ebb9@byu.net>
32283
32284         futimens: new module
32285         * modules/futimens: New file.
32286         * lib/futimens.c (futimens): Likewise.
32287         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
32288         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
32289         we can work around Linux bugs.
32290         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32291         * modules/sys_stat (Makefile.am): Substitute them.
32292         * lib/sys_stat.in.h (futimens): Declare it.
32293         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32294         * doc/posix-functions/futimens.texi (futimens): Likewise.
32295         * modules/futimens-tests: New test.
32296         * tests/test-futimens.c: Likewise.
32297
32298         utimens: introduce fdutimens
32299         * lib/utimens.h (fdutimens): New prototype.
32300         * lib/utimens.c (gl_futimens): Move guts...
32301         (fdutimens): ...to new interface.
32302         * tests/test-utimens.c (do_fdutimens): Use it.
32303
32304         utimens: add UTIME_NOW and UTIME_OMIT support
32305         * lib/utimens.c (validate_timespec, update_timespec): New helper
32306         functions.
32307         (gl_futimens, lutimens): Use them.
32308         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
32309         stdbool, sys_stat.
32310         (Link): Mention resulting library dependency.
32311         * modules/utimecmp (Link): Likewise.
32312         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
32313         (Makefile.am): Pick up library dependency.
32314         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
32315         definition.
32316         * tests/test-sys_stat.c: Test the definitions.
32317         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
32318         * NEWS: Document library dependency.
32319
32320         utimecmp: support symlink timestamps
32321         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
32322         hashing when possible.  Use pathconf when available.
32323         (SYSCALL_RESOLUTION): Recognize tighter resolution.
32324         * modules/utimecmp (Depends-on): Add lstat.
32325
32326         utimens: add lutimens interface
32327         * lib/utimens.c (lutimens): New function.
32328         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
32329         * lib/utimens.h (lutimens): Declare new interface.
32330         * tests/test-utimens.c (main): Enhance test.
32331         * tests/test-lutimens.h (test_lutimens): New file.
32332         * modules/utimens-tests (Files): Distribute it.
32333         (Depends-on): Add symlink.
32334         (configure.ac): Check for usleep.
32335
32336         utimens: validate futimens usage
32337         * lib/utimens.c (gl_futimens): Require valid fd up front, using
32338         fewer syscalls on failure later on.  Avoid compiler warning on
32339         mingw.
32340         * modules/utimens (Depends-on): Add dup2.
32341
32342         utimens: add test
32343         * modules/utimens-tests: New test.
32344         * tests/test-utimens.h: New file.
32345         * tests/test-futimens.h: Likewise.
32346         * tests/test-utimens.c: Likewise.
32347
32348         doc: mention timestamp portability issues
32349         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
32350         instead.
32351         * doc/posix-functions/utime.texi (utime): Likewise.
32352         * doc/posix-functions/utimes.texi (utimes): Likewise.
32353         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
32354         instead.
32355         * doc/posix-functions/futimens.texi (futimens): Mention utimens
32356         module.
32357         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32358         Mention weakness with symlink timestamps.
32359         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
32360         to utimensat/futimens instead.
32361         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
32362
32363         test-dup2: enhance test
32364         * tests/test-dup2.c (main): Also check AT_FDCWD.
32365
32366         test-stat-time: avoid more spurious failures
32367         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
32368         xfs; and avoid race if the two timestamps cross quantization edge.
32369
32370         relocatable: prefer 'file system' over 'filesystem'
32371         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
32372         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
32373         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
32374         * doc/relocatable.texi (Enabling Relocatability): Likewise.
32375         * lib/relocatable.c (compute_curr_prefix): Likewise.
32376
32377 2009-10-10  Jim Meyering  <meyering@redhat.com>
32378
32379         stat-time-tests: check for the usleep function
32380         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
32381
32382 2009-10-10  Bruno Haible  <bruno@clisp.org>
32383
32384         * modules/xnanosleep: Put the Link section after the Include section.
32385
32386 2009-10-09  Eric Blake  <ebb9@byu.net>
32387
32388         dup2: work around FreeBSD 6.1 bug
32389         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
32390         * doc/posix-functions/dup2.texi (dup2): Document it.
32391         Reported by Nelson H. F. Beebe and Jim Meyering.
32392
32393         test-stat-time: port to buggy NFS clients
32394         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
32395         (test_ctime): Also skip test if mtime and ctime are skewed.
32396
32397         maint: prefer 'file system' over 'filesystem'
32398         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
32399         * doc/posix-functions/lstat.texi (lstat): Likewise.
32400         * lib/file-has-acl.c (file_has_acl): Likewise.
32401         * lib/fwriteerror.c [TEST]: Likewise.
32402         * tests/test-areadlink.h (test_areadlink): Likewise.
32403         * tests/test-areadlinkat-with-size.c (main): Likewise.
32404         * tests/test-areadlinkat.c (main): Likewise.
32405         * tests/test-canonicalize-lgpl.c (main): Likewise.
32406         * tests/test-canonicalize.c (main): Likewise.
32407         * tests/test-fstatat.c (main): Likewise.
32408         * tests/test-linkat.c (main): Likewise.
32409         * tests/test-lstat.h (test_lstat_func): Likewise.
32410         * tests/test-mkdir.h (test_mkdir): Likewise.
32411         * tests/test-readlink.h (test_readlink): Likewise.
32412         * tests/test-remove.c (main): Likewise.
32413         * tests/test-rename.h (test_rename): Likewise.
32414         * tests/test-renameat.c (main): Likewise.
32415         * tests/test-rmdir.h (test_rmdir_func): Likewise.
32416         * tests/test-symlink.h (test_symlink): Likewise.
32417         * tests/test-symlinkat.c (main): Likewise.
32418         * tests/test-unlink.h (test_unlink_func): Likewise.
32419         * tests/test-unlinkat.c (main): Likewise.
32420
32421         maint: make realtime library usage explicit
32422         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
32423         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
32424         * modules/settime (Link): Likewise.
32425         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
32426
32427         test-stat-time: speed up execution
32428         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
32429         warning on mingw.
32430         (nap): New helper function.
32431         (prepare_test): Use it to reduce sleep time.
32432         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
32433         execution.
32434         * modules/stat-time-tests (configure.ac): Check for usleep.
32435
32436 2009-10-09  Jim Meyering  <meyering@redhat.com>
32437
32438         selinux-h: always use getfilecon wrappers
32439         * lib/getfilecon.c: New file.
32440         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
32441         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
32442         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
32443         (fgetfilecon): Provide a stub.
32444         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
32445         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
32446         file unconditionally.
32447         When <selinux/selinux.h> is found, arrange to use wrappers.
32448         * modules/selinux-h (Files): Add getfilecon.c.
32449         (Makefile.am): Substitute include-next-related bits
32450         into the now-always-generated selinux/selinux.h file.
32451         * doc/glibc-functions/lgetfilecon.texi: New file.
32452         * doc/glibc-functions/fgetfilecon.texi: New file.
32453         * doc/glibc-functions/getfilecon.texi: New file.
32454         * doc/glibc-functions/getfilecon-desc.texi: New file.
32455         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
32456         which to pull in the new files.
32457         * MODULES.html.sh (Misc): Add selinux-h.
32458
32459 2009-10-08  Jim Meyering  <meyering@redhat.com>
32460
32461         unistd: fix comment typo
32462         * lib/unistd.in.h (euidaccess): Fix a comment typo.
32463
32464 2009-10-08  Eric Blake  <ebb9@byu.net>
32465
32466         areadlink: use SIZE_MAX consistently
32467         * modules/areadlink (Depends-on): Add stdint.
32468         * modules/areadlink-with-size (Depends-on): Likewise.
32469         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
32470         gives NULL; drop sys/types, since unistd gives size_t; and add
32471         stdint for SIZE_MAX.
32472         (SIZE_MAX): Rely on headers.
32473         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
32474         and add stdint.
32475         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
32476         (SIZE_MAX): Likewise.
32477         (INITIAL_BUF_SIZE): Turn into enum.
32478         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
32479
32480 2009-10-08  Jim Meyering  <meyering@redhat.com>
32481
32482         areadlinkat: avoid compilation failure
32483         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
32484         Fix typo in comment.
32485
32486 2009-10-07  Eric Blake  <ebb9@byu.net>
32487
32488         areadlinkat-with-size: new module
32489         * modules/areadlinkat-with-size: New module.
32490         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
32491         * lib/areadlink.h (areadlinkat): Declare it.
32492         * MODULES.html.sh (File system functions): Mention it.
32493         * modules/areadlinkat-with-size-tests: New test.
32494         * tests/test-areadlinkat-with-size.c: New file.
32495
32496         xreadlinkat: new module
32497         * modules/xreadlinkat: New module.
32498         * lib/xreadlinkat.c (xreadlinkat): New file.
32499         * lib/xreadlink.h (xreadlinkat): Declare it.
32500         * MODULES.html.sh (File system functions): Mention it.
32501
32502         areadlinkat: new module
32503         * lib/at-func.c (FUNC_FAIL): New define.
32504         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
32505         * modules/areadlinkat: New module.
32506         * lib/linkat.c (areadlinkat): Move...
32507         * lib/areadlinkat.c (areadlinkat): ...to new file.
32508         * lib/areadlink.h (areadlinkat): Declare it.
32509         * modules/linkat (Depends-on): Add areadlinkat.
32510         * MODULES.html.sh (File system functions): Mention it.
32511         * modules/areadlinkat-tests: New test.
32512         * tests/test-areadlinkat.c: New file.
32513
32514         areadlink, areadlink-with-size: add tests
32515         * modules/areadlink-tests: New test.
32516         * modules/areadlink-with-size-tests: Likewise.
32517         * tests/test-areadlink.h: New file.
32518         * tests/test-areadlink.c: Likewise.
32519         * tests/test-areadlink-with-size.c: Likewise.
32520
32521         maint: minor cleanups
32522         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
32523         _UNUSED_PARAMETER_ instead.
32524         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
32525         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
32526         * modules/linkat-tests (Files): Distribute test-link.h.
32527
32528         openat, utimens: whitespace cleanup
32529         * lib/openat.c: Prefer space throughout, rather than mix of 8
32530         spaces vs. tabs.
32531         * lib/at-func.c: Likewise.
32532         * lib/utimens.c: Likewise.
32533
32534         openat: avoid using wrong fd
32535         * lib/openat.c (openat_permissive): Reject user's fd if saving the
32536         working directory chooses same fd.
32537         * lib/at-func.c (AT_FUNC_NAME): Likewise.
32538
32539         mkdir, mkdirat: fix cygwin 1.5.x bug
32540         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
32541         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
32542         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
32543         bug.
32544         (gl_PREREQ_MKDIR): Delete unused macro.
32545         * modules/mkdir (Files): Track file rename.
32546         (configure.ac): Update macro name.
32547         * modules/openat (Depends-on): Add mkdir.
32548         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
32549
32550         mkdir, mkdirat: add tests
32551         * modules/mkdir-tests: New test.
32552         * tests/test-mkdir.h: New file.
32553         * tests/test-mkdir.c: Likewise.
32554         * tests/test-mkdirat.c: Likewise.
32555         * modules/openat-tests (Files): Add new files.
32556         (Makefile.am): Run new test.
32557
32558 2009-10-06  Eric Blake  <ebb9@byu.net>
32559
32560         doc: tweak *at function documentation
32561         * doc/posix-functions/faccessat.texi (faccessat): Mention
32562         known issue with replacement.
32563         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
32564         * doc/posix-functions/linkat.texi (linkat): Likewise.
32565         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
32566         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
32567         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32568         * doc/posix-functions/renameat.texi (renameat): Likewise.
32569         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32570
32571         openat: fix GNU/Hurd bug in unlinkat
32572         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
32573         broken.
32574         * doc/posix-functions/unlink.texi (unlink): Document this.
32575         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
32576
32577         fdopendir: fix GNU/Hurd bug
32578         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
32579         allowing non-directory fds.
32580         * lib/fdopendir.c (rpl_fdopendir): Work around it.
32581         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
32582         * modules/dirent (Makefile.am): Substitute it.
32583         * lib/dirent.in.h (fdopendir): Declare replacement.
32584         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
32585         * tests/test-fdopendir.c (main): Test something other than
32586         /dev/null, since on Hurd that behaves like a directory.
32587
32588         test-symlink: port to GNU/Hurd
32589         * tests/test-symlink.h (test_symlink): Relax expected errno.
32590
32591         doc: tweak more cygwin information
32592         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
32593         now compatible with glibc.
32594         * doc/posix-functions/getopt.texi (getopt): Likewise.
32595
32596         getopt-gnu: add another test
32597         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
32598         guarantee behavior relied on by m4.
32599         * tests/test-getopt.c (main): Use it.
32600         * modules/getopt-posix-tests (Depends-on): Add setenv.
32601         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
32602
32603         getopt: fix compilation on darwin
32604         * lib/getopt.in.h (includes): Leave breadcrumbs during system
32605         include.
32606         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
32607         Reported by Ludovic Courtès.
32608
32609 2009-10-06  Bruno Haible  <bruno@clisp.org>
32610
32611         * modules/size_max (Description): Discourage its use.
32612         Reported by Simon Josefsson.
32613
32614 2009-10-06  Jim Meyering  <meyering@redhat.com>
32615
32616         linkat: avoid compilation failure
32617         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
32618
32619 2009-10-05  Eric Blake  <ebb9@byu.net>
32620
32621         linkat: support Linux 2.6.17
32622         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
32623         linkat on Linux, but allow cache variable override.
32624         * lib/linkat.c (rpl_linkat): Define override.
32625         * modules/linkat (Depends-on): Add symlinkat.
32626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
32627         * modules/unistd (Makefile.am): Substitute it.
32628         * lib/unistd.in.h (linkat): Declare replacement.
32629         Reported by Pádraig Brady.
32630
32631         quotearg: port test to systems with C.UTF-8 locale
32632         * tests/test-quotearg.c (struct result_strings): Add another
32633         member, differentiating between C.ASCII and C.UTF-8 handling.
32634         (compare_strings): Add parameter.
32635         (main): Adjust all callers.
32636
32637         getopt: avoid clash with FreeBSD _getopt_internal
32638         * lib/getopt.in.h (_getopt_internal): Override the name.
32639         * lib/getopt_int.h (includes): Pick up any overrides.
32640         Reported by Reuben Thomas.
32641
32642         hash: allow C89 compilation
32643         * lib/hash.c (check_tuning): Move declaration before statement.
32644         Reported by Reuben Thomas.
32645
32646 2009-10-05  Karl Berry  <karl@gnu.org>
32647
32648         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
32649
32650 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
32651             Bruno Haible  <bruno@clisp.org>
32652
32653         * lib/uname.c (uname): Use a table-driven algorithm to compute
32654         Windows NT versions.
32655
32656 2009-10-04  Bruno Haible  <bruno@clisp.org>
32657
32658         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
32659         program_invocation_short_name.
32660         * modules/progname (configure.ac): Test for presence of
32661         program_invocation_short_name.
32662         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
32663
32664 2009-10-04  Bruno Haible  <bruno@clisp.org>
32665
32666         * lib/progname.c (set_program_name): Fix comment.
32667         Reported by Jim Meyering.
32668
32669 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
32670             Bruno Haible  <bruno@clisp.org>
32671
32672         * lib/uname.c: Include <string.h>.
32673         (uname): Do only one call to GetVersionEx in the common case.
32674
32675 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
32676             Bruno Haible  <bruno@clisp.org>
32677
32678         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
32679         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
32680         (uname): Add support for Windows CE and various non-x86 CPU types.
32681
32682 2009-10-03  Bruno Haible  <bruno@clisp.org>
32683
32684         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
32685         invocation to tests/configure.ac.
32686         Reported by Ian Beckwith <ianb@erislabs.net>.
32687
32688 2009-10-02  Eric Blake  <ebb9@byu.net>
32689
32690         fchdir: avoid compiler warning
32691         * lib/fchdir.c (canonicalize_file_name)
32692         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
32693
32694         test-open: support mingw errno values
32695         * tests/test-open.h (test_open): Relax test.
32696         * tests/test-fopen.h (test_fopen): Likewise.
32697         * tests/test-openat-safer.c (main): Likewise.
32698
32699         open: fix opening directory on mingw
32700         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
32701
32702         test-open: on GNU/Hurd, /dev/null is a directory
32703         * tests/test-fopen.h (main): Rename...
32704         (test_fopen): ...to this.  Use a guaranteed non-directory when
32705         confirming open behavior on trailing slash.
32706         * tests/test-openat-safer.c (main): Likewise.
32707         * tests/test-open.h (main): Likewise....
32708         (test_open): ...to this.
32709         * tests/test-fopen.c (main): Adjust caller.
32710         * tests/test-fopen-safer.c (main): Likewise.
32711         * tests/test-open.c (main): Likewise.
32712         * tests/test-fcntl-safer.c (main): Likewise.
32713         Reported by Samuel Thibault.
32714
32715         rename, fchdir: don't ignore chdir failure
32716         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
32717         * lib/rename.c (rpl_rename) [W32]: Likewise.
32718         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
32719         an empty destination directory if source cannot be renamed,
32720         although there is still possibility for failure.
32721         * doc/posix-functions/rename.texi (rename): Document the race.
32722         Reported by Jim Meyering.
32723
32724         maint: cleanup whitespace in recent commits
32725         * lib/rename.c (rpl_rename): Remove tabs.
32726         * tests/test-link.h (test_link): Likewise.
32727         * lib/fchdir.c (get_name): Likewise.
32728         Reported by Jim Meyering.
32729
32730 2009-10-02  Ben Pfaff  <blp@gnu.org>
32731
32732         relocatable-prog-wrapper: Add missing dependency on
32733         double-slash-root.
32734         * modules/relocatable-prog-wrapper: Add dependency.
32735         Reported by Ian Beckwith <ianb@erislabs.net>.
32736
32737 2009-10-02  Eric Blake  <ebb9@byu.net>
32738
32739         renameat: fix Solaris bugs
32740         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
32741         needed fixing.
32742         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
32743         * modules/stdio (Makefile.am): Substitute it.
32744         * lib/stdio.in.h (renameat): Declare replacement.
32745         * lib/renameat.c (rpl_renameat): Implement fix.
32746
32747         renameat: new module
32748         * modules/renameat: New file.
32749         * lib/renameat.c (renameat): Likewise.
32750         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
32751         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
32752         * modules/stdio (Makefile.am): Substitute them.
32753         * lib/stdio.in.h (renameat): Declare it.
32754         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32755         * doc/posix-functions/renameat.texi (renameat): Likewise.
32756         * modules/renameat-tests: New test.
32757         * tests/test-renameat.c: Likewise.
32758
32759         rename: fix mingw bugs
32760         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
32761         directory overwrite bugs.
32762
32763         rename: fix another cygwin 1.5 bug
32764         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
32765         checks.
32766         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
32767         unnecessary cygwin workarounds.  Also work around bug with moving
32768         full directory onto an empty one.
32769         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
32770
32771         rename-dest-slash: merge into rename module
32772         * modules/rename-dest-slash (Status): Mark obsolete.
32773         (Depends-on): Add rename.
32774         (Files): Let rename do it all.
32775         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
32776         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
32777         * m4/rename-dest-slash.m4: ...so this file can be deleted.
32778         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
32779         * lib/rename.c (rpl_rename): Update comments.
32780
32781         rename: fix cygwin 1.5.x bugs
32782         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
32783         * lib/rename.c (rpl_rename): Work around them.
32784         * modules/rename (Depends-on): Add same-inode.
32785
32786         rename: fix Solaris 10 bug
32787         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
32788         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
32789         was the only bug.
32790
32791         rename: fix Solaris 9 bug
32792         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
32793         on non-directory.  Avoid calling exit.
32794         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
32795         strdup.
32796         * modules/rename-tests (Depends-on): Drop lstat.
32797         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
32798         (gl_PREREQ_RENAME): Delete unused macro.
32799
32800         rename-dest-slash: fix NetBSD bug
32801         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
32802         links.
32803         * modules/rename-dest-slash (Depends-on): Add same-inode.
32804
32805         rename-tests: new test, exposes several platform bugs
32806         * modules/rename-tests: New file.
32807         * tests/test-rename.h: Likewise.
32808         * tests/test-rename.c: Likewise.
32809         * doc/posix-functions/rename.texi (rename): Improve documentation,
32810         including bugs that will eventually be fixed in gnulib.
32811
32812 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
32813
32814         * lib/uname.c: Include <stdlib.h>
32815         (uname): Assume version info is available.
32816
32817 2009-10-02  Jim Meyering  <meyering@redhat.com>
32818
32819         gnu-web-doc-update: correct --help output
32820         * build-aux/gnu-web-doc-update: Make --help output relevant.
32821
32822         gnu-web-doc-update: add standard options
32823         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
32824
32825         gnu-web-doc-update: New module.
32826         Use this script to automatically update the on-line web documentation
32827         for your GNU project at http://www.gnu.org/software/$pkg/manual/
32828         * modules/gnu-web-doc-update: New file, from coreutils.
32829         * build-aux/gnu-web-doc-update: New script.
32830
32831 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
32832
32833         link: LoadLibrary is not needed.
32834         * lib/link.c: Use GetModuleHandle.
32835
32836 2009-10-01  Eric Blake  <ebb9@byu.net>
32837
32838         getopt: bump serial number
32839         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
32840         change.
32841
32842         tests: tighten link, rmdir, and remove tests
32843         * tests/test-link.h (includes): No need to use <config.h> here.
32844         Clean up if directory hard link was created, otherwise test for
32845         trailing '.'.
32846         * tests/test-linkat.c (main): Simplify.
32847         * tests/test-remove.c (main): Enhance test for trailing '.'.
32848         * tests/test-rmdir.h (test_rmdir_func): Likewise.
32849
32850 2009-10-01  Jim Meyering  <meyering@redhat.com>
32851
32852         maint.mk: requiring "make major" was annoying, for a "minor" release.
32853         What is intended is "stable", to contrast with alpha and beta,
32854         so require "make stable", not "make major".
32855         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
32856         (get_tool_versions): Likewise.
32857         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
32858
32859 2009-09-30  Ben Pfaff  <blp@gnu.org>
32860
32861         Fix broken build of replacement for Windows tmpfile().
32862         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
32863         flags argument added along with the 'mkostemp' module.
32864
32865 2009-09-28  Bruno Haible  <bruno@clisp.org>
32866
32867         Avoid identifier clash with POSIX function 'remove' defined as a macro.
32868         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
32869         to 'remove_elt'.
32870         (gl_list_remove): Update.
32871         * lib/gl_list.c (gl_list_remove): Update.
32872         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
32873         to 'remove_elt'.
32874         (gl_oset_remove): Update.
32875         * lib/gl_list.c (gl_oset_remove): Update.
32876         Reported by Eric Blake.
32877
32878 2009-09-28  Eric Blake  <ebb9@byu.net>
32879
32880         doc: mention yet more cygwin 1.7 status
32881         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
32882         cygwin.
32883         * doc/glibc-functions/execvpe.texi (execvpe): New file.
32884         * doc/gnulib.texi (Glibc unistd.h): Mention it.
32885
32886         argp: fix test failure
32887         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
32888         that are not upper-case.  Pass correct range to tolower.
32889
32890 2009-09-27  Jim Meyering  <meyering@redhat.com>
32891
32892         test-yesno: work around sparc-dash here-document infelicity
32893         Without this change, the literal \177 byte in a here document
32894         would make dash 0.5.5.1-3 access uninitialized memory.
32895         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
32896         Instead, use a marker, "@", and filter through tr to create the desired
32897         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
32898
32899 2009-09-27  Bruno Haible  <bruno@clisp.org>
32900
32901         Disable untested support for new flavours of ACLs on AIX.
32902         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
32903         progress.
32904         * lib/set-mode-acl.c (qset_acl): Likewise.
32905
32906 2008-12-07  Bruno Haible  <bruno@clisp.org>
32907
32908         Add support for new flavours of ACLs on AIX. (Untested.)
32909         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
32910         (file_has_acl): Add support for newer AIX.
32911         * lib/set-mode-acl.c (qset_acl): Likewise.
32912         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
32913         Rainer Tammer <tammer@tammer.net>.
32914
32915 2009-09-26  Eric Blake  <ebb9@byu.net>
32916
32917         argp: fix compilation of getopt
32918         * lib/getopt.in.h (includes): Use different guard than glibc.
32919         Reported by Sergey Poznyakoff.
32920
32921         doc: mention more cygwin 1.7 status
32922         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
32923         bug.
32924         * doc/posix-functions/execl.texi (execl): Likewise.
32925         * doc/posix-functions/execle.texi (execle): Likewise.
32926         * doc/posix-functions/execlp.texi (execlp): Likewise.
32927         * doc/posix-functions/execv.texi (execv): Likewise.
32928         * doc/posix-functions/execve.texi (execve): Likewise.
32929         * doc/posix-functions/execvp.texi (execvp): Likewise.
32930         * doc/glibc-functions/canonicalize_file_name.texi
32931         (canonicalize_file_name): Cygwin 1.7 now provides this.
32932         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
32933         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
32934         on AT_SYMLINK_NOFOLLOW.
32935
32936 2009-09-24  Eric Blake  <ebb9@byu.net>
32937
32938         test-linkat: make test more robust
32939         * tests/test-linkat.c (main): Avoid collision with EEXIST.
32940
32941         getopt: fix inclusion guards for cygwin
32942         * modules/getopt-posix (Depends-on): Add include-next.
32943         (Makefile.am): Substitute more items in replacement header.
32944         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
32945         <getopt.h>.
32946         * lib/getopt.in.h (includes): Use split inclusion guard, and
32947         prefer <getopt.h> over include <unistd.h> when one is present.
32948         (option): Also override name of 'struct option'.
32949
32950         same-inode: revert prior change; it is not yet ready
32951         * NEWS: Undo mention of this change.
32952         * lib/same-inode.h (same-inode.h): Undo tri-state change.
32953         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
32954         * lib/cycle-check.c (cycle_check): Likewise.
32955         * lib/same.c (same_name): Likewise.
32956         * lib/at-func2.c (at_func2): Likewise.
32957
32958 2009-09-23  Eric Blake  <ebb9@byu.net>
32959
32960         linkat: new module
32961         * modules/linkat: New file.
32962         * lib/at-func2.c (at_func2): Likewise.
32963         * lib/linkat.c (linkat): Likewise.
32964         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
32965         * lib/openat-priv.h (at_func2): Add declaration.
32966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
32967         * modules/unistd (Makefile.am): Substitute them.
32968         * lib/unistd.in.h (linkat): Declare it.
32969         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32970         * doc/posix-functions/linkat.texi (linkat): Likewise.
32971         * doc/posix-functions/link.texi (link): Tweak wording.
32972         * tests/test-link.c (main): Move guts...
32973         * tests/test-link.h (test_link): ...into new file.
32974         * modules/linkat-tests: New test.
32975         * tests/test-linkat.c: Likewise.
32976         * modules/link-tests (Files): Ship new file.
32977         (Depends-on): Add stdbool.
32978
32979         dirname: add library-safe mdir_name
32980         * lib/dirname.h (mdir_name): New prototype.
32981         * lib/dirname.c (dir_name): Move guts...
32982         (mdir_name): ...to new function that avoids xalloc_die.
32983
32984         fchdir: another mingw fix
32985         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
32986         * lib/fchdir.c (get_name): New helper method; skips canonicalize
32987         on mingw (where it has not yet been ported), and make it optional
32988         elsewhere.
32989         (_gl_register_fd): Use it.
32990
32991         same-inode: make SAME_INODE tri-state, to port to mingw
32992         * NEWS: Mention this change.
32993         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
32994         st_ino always being 0.
32995         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
32996         * lib/cycle-check.c (cycle_check): Likewise.
32997         * lib/same.c (same_name): Likewise.
32998
32999         lstat: avoid mingw compilation error
33000         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
33001         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
33002         lstat ourselves.
33003         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
33004         was adequate.
33005         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
33006         the checks for lstat.
33007         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
33008
33009         link: fix test failure on Solaris 9
33010         * lib/link.c (rpl_link): Don't assume link will catch bogus
33011         trailing slash on source.
33012
33013         test-symlinkat: enhance test
33014         * tests/test-readlink.c (main): Move guts...
33015         * tests/test-readlink.h (test_readlink): ...into new file.
33016         * tests/test-symlink.c (main): Move guts...
33017         * tests/test-symlink.h (test_symlink): ...into new file.
33018         * tests/test-symlinkat.c (main): Use new files for further
33019         coverage.
33020         (do_symlink, do_readlink): New helper functions.
33021         * modules/symlink-tests (Files): Ship new file.
33022         (Depends-on): Add stdbool.
33023         * modules/readlink-tests (Files): Ship new file.
33024         (Depends-on): Add stdbool.
33025         * modules/symlinkat-tests (Files): Use new files.
33026
33027 2009-09-23  Eric Blake  <ebb9@byu.net>
33028
33029         readlink: document portability issue with symlink length
33030         * doc/posix-functions/lstat.texi (lstat): Mention that some file
33031         systems have bogus st_size on symlinks, and mention the
33032         areadlink-with-size module.
33033         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
33034         * doc/posix-functions/readlink.texi (readlink): Mention the
33035         areadlink module, and ERANGE failure.
33036         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33037         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
33038
33039         readlink: fix Solaris 9 bug with trailing slash
33040         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
33041         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
33042         * doc/posix-functions/readlink.texi (readlink): Document this.
33043         * modules/readlink-tests: New test.
33044         * tests/test-readlink.c: Likewise.
33045
33046         readlink: fix cygwin 1.5.x bug with return type
33047         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
33048         * lib/unistd.in.h (readlink): Use ssize_t.
33049         * lib/readlink.c (readlink): Likewise.
33050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33051         * modules/unistd (Makefile.am): Substitute it.
33052         * lib/unistd.in.h (readlink): Declare replacement.
33053         * doc/posix-functions/readlink.texi (readlink): Document this.
33054
33055         symlink: use throughout gnulib
33056         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
33057         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
33058         symlink is not used.
33059         * modules/symlinkat (Depends-on): Add symlink.
33060         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33061         * modules/canonicalize-tests (Depends-on): Likewise.
33062         * modules/lstat-tests (Depends-on): Likewise.
33063         * modules/openat-tests (Depends-on): Likewise.
33064         * modules/remove-tests (Depends-on): Likewise.
33065         * modules/rmdir-tests (Depends-on): Likewise.
33066         * modules/unlink-tests (Depends-on): Likewise.
33067         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
33068         * tests/test-canonicalize.c (symlink): Likewise.
33069         * tests/test-fstatat.c (symlink): Likewise.
33070         * tests/test-lstat.c (symlink): Likewise.
33071         * tests/test-remove.c (symlink): Likewise.
33072         * tests/test-rmdir.c (symlink): Likewise.
33073         * tests/test-unlink.c (symlink): Likewise.
33074         * tests/test-unlinkat.c (symlink): Likewise.
33075
33076         symlink: new module, for Solaris 9 bug
33077         * modules/symlink: New file.
33078         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
33079         * lib/symlink.c: Likewise.
33080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33081         * modules/unistd (Makefile.am): Substitute them.
33082         * lib/unistd.in.h (symlink): Declare replacement.
33083         * MODULES.html.sh (File system functions): Mention it.
33084         * doc/posix-functions/symlink.texi (symlink): Likewise.
33085         * modules/symlink-tests: New test.
33086         * tests/test-symlink.c: Likewise.
33087
33088 2009-09-23  Bruno Haible  <bruno@clisp.org>
33089
33090         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
33091         when needed.
33092         Test case: gnulib-tool --import --with-tests atexit inttypes.
33093         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
33094
33095 2009-09-23  Bruno Haible  <bruno@clisp.org>
33096
33097         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
33098         subcommand, not in a subshell.
33099
33100 2009-09-22  Eric Blake  <ebb9@byu.net>
33101
33102         unistd: sort replacement declarations
33103         * lib/unistd.in.h: Sort declarations.
33104
33105         open, openat: minor optimization
33106         * lib/open.c (open): If open succeeded, len is non-zero.
33107         * lib/openat.c (rpl_openat): Likewise.
33108
33109         link-follow: ensure correct result
33110         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
33111         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
33112         distinguish between possible failures.
33113
33114 2009-09-21  Eric Blake  <ebb9@byu.net>
33115
33116         fts: avoid compiler warning
33117         * lib/fts.c (dirent_inode_sort_may_be_useful)
33118         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
33119
33120 2009-09-19  Bruno Haible  <bruno@clisp.org>
33121
33122         * lib/progreloc.c (canonicalize_file_name): New declaration.
33123
33124 2009-09-19  Eric Blake  <ebb9@byu.net>
33125
33126         link: fix quoting
33127         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
33128
33129         openat: fix openat bugs on Solaris 9
33130         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
33131         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
33132         * modules/openat (Depends-on): Add open.
33133         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
33134         * modules/fcntl-h (Makefile.am): Substitute it.
33135         * lib/fcntl.in.h (openat): Declare replacement.
33136         * doc/posix-functions/openat.texi (openat): Document this.
33137
33138         openat: move fstatat and unlinkat into correct files
33139         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
33140         compiled.
33141         * lib/openat.c (fstatat, unlinkat): Move...
33142         * lib/fstatat.c (fstatat): ...into correct files.
33143         * lib/unlinkat.c (unlinkat): Likewise.
33144
33145         openat: fix unlinkat bugs on Solaris 9
33146         * lib/unlinkat.c (unlinkat): New file.
33147         * modules/openat (Depends-on): Add unlink.
33148         (Files): Distribute it.
33149         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
33150         trailing slash behavior is broken.
33151         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33152         * modules/unistd (Makefile.am): Substitute it.
33153         * lib/unistd.in.h (unlinkat): Declare replacement.
33154         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
33155
33156         openat: fix fstatat bugs on Solaris 9
33157         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
33158         stat.
33159         * doc/posix-functions/fstatat.texi (fstatat): Document this.
33160
33161         test-unlinkat: enhance test, to expose Solaris 9 bug
33162         * tests/test-unlink.c (main): Factor guts...
33163         * tests/test-unlink.h (test_rmdir_func): ...into new file.
33164         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
33165         * tests/test-rmdir.c (main): Adjust caller.
33166         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
33167         (unlinker): New helper function.
33168         (rmdirat): Enhance check.
33169         * modules/rmdir-tests (Depends-on): Add stdbool.
33170         * modules/unlink-tests (Depends-on): Likewise.
33171         (Files): Add test-unlink.h.
33172         * modules/openat-tests (Files): Likewise.
33173         (Depends-on): Add unlinkdir.
33174
33175         test-fstatat: new test, to expose Solaris 9 bugs
33176         * tests/test-stat.c (main): Factor guts...
33177         * tests/test-stat.h (test_stat_func): ...into new file.
33178         * tests/test-lstat.c (main): Factor guts...
33179         * tests/test-lstat.h (test_lstat_func): ...into new file.
33180         * tests/test-fstatat.c: New file.
33181         * modules/stat-tests (Files): Add test-stat.h.
33182         * modules/lstat-tests (Files): Add test-lstat.h.
33183         (Depends-on): Add stdbool.
33184         * modules/openat-tests (Depends-on): Add pathmax.
33185         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
33186         (Makefile.am): Run new test.
33187
33188         remove: new module, for mingw and Solaris 9 bugs
33189         * modules/remove: New file.
33190         * lib/remove.c: Likewise.
33191         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
33192         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
33193         * modules/stdio (Makefile.am): Use them.
33194         * lib/stdio.in.h (remove): Declare replacement.
33195         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33196         * doc/posix-functions/remove.texi (remove): Likewise.
33197         * modules/remove-tests: New test.
33198         * tests/test-remove.c: Likewise.
33199
33200         unlink: new module, for Solaris 9 bug
33201         * modules/unlink: New file.
33202         * lib/unlink.c: Likewise.
33203         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
33204         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33205         * modules/unistd (Makefile.am): Use them.
33206         * lib/unistd.in.h (stat): Declare replacement.
33207         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33208         * doc/posix-functions/unlink.texi (unlink): Likewise.
33209         * modules/unlink-tests: New test.
33210         * tests/test-unlink.c: Likewise.
33211
33212         lstat: fix Solaris 9 bug
33213         * lib/lstat.c (lstat): Also check for trailing slash on
33214         non-symlink, non-directories.  Use stat module to simplify logic.
33215         * doc/posix-functions/lstat.texi (lstat): Document it.
33216         * modules/lstat-tests (Depends-on): Add errno, same-inode.
33217         (configure.ac): Check for symlink.
33218         * tests/test-lstat.c (main): Add more tests.
33219
33220         stat: add as dependency to other modules
33221         * modules/chown (Depends-on): Add stat.
33222         * modules/euidaccess (Depends-on): Likewise.
33223         * modules/fchdir (Depends-on): Likewise.
33224         * modules/isdir (Depends-on): Likewise.
33225         * modules/link (Depends-on): Likewise.
33226         * modules/lstat (Depends-on): Likewise.
33227         * modules/mkdir-p (Depends-on): Likewise.
33228         * modules/modechange (Depends-on): Likewise.
33229         * modules/open (Depends-on): Likewise.
33230         * modules/readlink (Depends-on): Likewise.
33231         * modules/same (Depends-on): Likewise.
33232
33233         stat: fix Solaris 9 bug
33234         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
33235         slash.
33236         * lib/stat.c (rpl_stat): Work around it.
33237         * doc/posix-functions/stat.texi (stat): Update documentation.
33238
33239         stat: new module, for mingw bug
33240         * modules/stat: New file.
33241         * lib/stat.c: Likewise.
33242         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
33243         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33244         * modules/sys_stat (Makefile.am): Use them.
33245         * lib/sys_stat.in.h (stat): Declare replacement.
33246         * lib/openat.c (fstatat): Deal with lstat and stat being function
33247         macros.
33248         * modules/openat (Depends-on): Add inline.
33249         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33250         * doc/posix-functions/stat.texi (stat): Likewise.
33251         * modules/stat-tests: New test.
33252         * tests/test-stat.c: Likewise.
33253
33254 2009-09-19  Jim Meyering  <meyering@redhat.com>
33255
33256         syntax-check: detect unnecessary inclusion of canonicalize.h
33257         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
33258
33259 2009-09-19  Eric Blake  <ebb9@byu.net>
33260
33261         canonicalize-lgpl: adjust clients to use correct header
33262         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
33263         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
33264         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
33265         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
33266         * lib/progreloc.c (includes): Likewise.
33267
33268 2009-09-19  Jim Meyering  <meyering@redhat.com>
33269
33270         test-posixtm.c: correct a comment
33271         * tests/test-posixtm.c: Correct first-line comment.
33272         Spotted by Eric Blake.
33273
33274 2009-09-16  Jim Meyering  <meyering@redhat.com>
33275
33276         posixtm-tests: make T const-correct; add a test case
33277         * tests/test-posixtm.c (T): Declare const.
33278         Add a test for -(2^31+1).
33279         Remove useless can-succeed-only-in-2002 test.
33280
33281         posixtm-tests: adjust the sole failing test
33282         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
33283         expected output matches what mktime now produces.  Cross-checked via
33284         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
33285
33286         posixtm: move #ifdef'd tests into a new module
33287         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
33288         * tests/test-posixtm.c: ... this new file.
33289         * modules/posixtm-tests: New module.
33290
33291 2009-09-19  Eric Blake  <ebb9@byu.net>
33292
33293         openat: simplify use of at-func.c
33294         * lib/at-func.c (includes): Include prerequisites here, to
33295         simplify requirements on client files.
33296         * lib/openat-priv.h: Add double-inclusion guard.
33297         * lib/faccessat.c (includes): Simplify.
33298         * lib/fchmodat.c (includes): Likewise.
33299         * lib/fchownat.c (includes): Likewise.
33300         * lib/mkdirat.c (includes): Likewise.
33301         * lib/mkfifoat.c (includes): Likewise.
33302         * lib/symlinkat.c (includes): Likewise.
33303
33304         openat: allow return of fd 0
33305         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
33306         * modules/save-cwd (Depends-on): Replace fcntl-safer with
33307         unistd-safer.
33308         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
33309         <fcntl.h>; this module does not leak fds.
33310         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
33311         must be allowed to return 0, leaving openat_safer to add the
33312         safety.
33313         (openat_permissive): Avoid writing to just-opened fd 2 if
33314         restoring the current directory fails.
33315         * lib/openat-die.c (openat_restore_fail): Add comment.
33316         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
33317         (save_cwd): Guarantee safe fd, but without use of open_safer.
33318         * tests/test-openat.c: New test.
33319         * modules/openat-tests (Files, Makefile.am): Distribute and build
33320         new file.
33321
33322         relocatable-prog-wrapper: fix build
33323         * modules/relocatable-prog-wrapper (Files): Update name of
33324         canonicalize m4 file, broken on 2009-09-17.
33325         Reported by emad hajjar <aleppos@hotmail.com>.
33326
33327 2009-09-19  Bruno Haible  <bruno@clisp.org>
33328
33329         * lib/safe-alloc.h: Use the standard header with GPL copyright.
33330         * lib/safe-alloc.c: Likewise.
33331         Reported by Ian Beckwith <ianb@erislabs.net>.
33332
33333 2009-09-18  Bruno Haible  <bruno@clisp.org>
33334
33335         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
33336         Reported by <erobles@sensacd.com.mx>.
33337
33338 2009-09-17  Eric Blake  <ebb9@byu.net>
33339
33340         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
33341         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
33342         slashes when checking if last component is missing.
33343         * tests/test-canonicalize.c (main): Test this.
33344
33345         canonicalize, canonicalize-lgpl: honor // if distinct from /
33346         * modules/canonicalize (Files): Add double-slash-root.m4.
33347         * modules/canonicalize-lgpl (Files): Likewise.
33348         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
33349         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
33350         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
33351         fallback definition.
33352         (canonicalize_filename_mode): Use it to protect //.
33353         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
33354         (__realpath): Likewise.
33355         * tests/test-canonicalize.c (main): Test this.
33356         * tests/test-canonicalize-lgpl.c (main): Likewise.
33357         * modules/canonicalize-tests (Depends-on): Add same-inode.
33358         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33359
33360         canonicalize-lgpl: fix glibc bug with trailing slash
33361         * m4/canonicalize-lgpl.m4: Move contents...
33362         * m4/canonicalize.m4: ...here.
33363         (gl_CANONICALIZE_LGPL): Factor realpath check...
33364         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
33365         glibc 2.3.5 bug, fixed 2005-04-27.
33366         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
33367         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
33368         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
33369         * modules/canonicalize-lgpl (Files): Manage file rename.
33370         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
33371         * modules/stdlib (Makefile.am): Substitute witness.
33372         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
33373         is needed.
33374         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
33375         replacement is required.
33376         * lib/canonicalize.c (canonicalize_file_name): Likewise.
33377         * doc/glibc-functions/canonicalize_file_name.texi
33378         (canonicalize_file_name): Document this.
33379         * doc/posix-functions/realpath.texi (realpath): Likewise.
33380
33381         canonicalize-lgpl: reject non-directory with trailing slash
33382         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
33383         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
33384         catches failures in glibc 2.3.5.
33385         * tests/test-canonicalize.c (main): Likewise.
33386
33387         canonicalize-lgpl: use native realpath if it works
33388         * lib/canonicalize-lgpl.c (realpath): Guard with
33389         FUNC_REALPATH_WORKS.
33390         * lib/stdlib.in.h (realpath): Make declaration optional based on
33391         HAVE_REALPATH.
33392         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
33393         native realpath works.
33394         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
33395         * modules/stdlib (Makefile.am): Substitute witness.
33396
33397         canonicalize, canonicalize-lgpl: use <stdlib.h>
33398         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
33399         (Include): Mention <stdlib.h>.
33400         (configure.ac): Mention functions we provide.
33401         * modules/canonicalize (configure.ac): Likewise.
33402         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
33403         realpath if canonicalize_file_name is missing.
33404         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
33405         * modules/stdlib (Makefile.am): Substitute witnesses.
33406         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
33407         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
33408         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
33409         * NEWS: Document this.
33410         * doc/glibc-functions/canonicalize_file_name.texi
33411         (canonicalize_file_name): Likewise.
33412         * doc/posix-functions/realpath.texi (realpath): Likewise.
33413         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
33414
33415         test-canonicalize: consolidate into single C program
33416         * tests/test-canonicalize.sh: Delete; move setup into...
33417         * tests/test-canonicalize.c (main): ...the program, making it
33418         easier to run in debugger.  Add some tests.
33419         * modules/canonicalize-tests (Files): Remove unused file.
33420         (Depends-on): Add progname.
33421         (configure.ac, Makefile.am): Simplify.
33422
33423         test-canonicalize-lgpl: consolidate into single C program
33424         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
33425         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
33426         easier to run in debugger.  Add some tests.
33427         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
33428         (configure.ac, Makefile.am): Simplify.
33429
33430         canonicalize: avoid resolvepath
33431         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
33432         unnecessary checks.
33433         * lib/canonicalize.c (includes): Simplify.
33434         (canonicalize_file_name): Drop resolvepath implementation.
33435         * modules/canonicalize (Depends-on): Drop filenamecat.
33436
33437         canonicalize: don't lose errno
33438         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
33439         over calls to free.
33440
33441         canonicalize: simplify errno handling
33442         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
33443         assignment.
33444
33445         canonicalize, canonicalize-lgpl: update module dependencies
33446         * modules/canonicalize (Depends-on): Add extensions, lstat,
33447         pathmax, stdlib.
33448         (Files): Drop pathmax.h.
33449         (configure.ac): Adjust macro name.
33450         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
33451         lstat, stdlib, sys_stat.
33452         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
33453         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
33454         extensions.
33455         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
33456         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
33457         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
33458         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
33459         declaration, if available.
33460         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
33461         we can rely on the readlink module.
33462         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
33463         (includes): Use <unistd.h> unconditionally.
33464
33465 2009-09-17  Eric Blake  <ebb9@byu.net>
33466
33467         maint: make Include sections of modules consistent
33468         * modules/alloca: Use only header name; no need to list #include.
33469         * modules/alloca-opt: Likewise.
33470         * modules/arpa_inet: Likewise.
33471         * modules/canon-host: Likewise.
33472         * modules/configmake: Likewise.
33473         * modules/dirent: Likewise.
33474         * modules/eealloc: Likewise.
33475         * modules/environ: Likewise.
33476         * modules/fchdir: Likewise.
33477         * modules/fcntl: Likewise.
33478         * modules/fcntl-h: Likewise.
33479         * modules/gethrxtime: Likewise.
33480         * modules/gettime: Likewise.
33481         * modules/ignore-value: Likewise.
33482         * modules/inet_ntop: Likewise.
33483         * modules/inet_pton: Likewise.
33484         * modules/inttypes: Likewise.
33485         * modules/isnand-nolibm: Likewise.
33486         * modules/isnanf-nolibm: Likewise.
33487         * modules/mbchar: Likewise.
33488         * modules/mbfile: Likewise.
33489         * modules/mbiter: Likewise.
33490         * modules/mbuiter: Likewise.
33491         * modules/netdb: Likewise.
33492         * modules/netinet_in: Likewise.
33493         * modules/nproc: Likewise.
33494         * modules/pagealign_alloc: Likewise.
33495         * modules/poll: Likewise.
33496         * modules/printf-frexp: Likewise.
33497         * modules/pthread: Likewise.
33498         * modules/putenv: Likewise.
33499         * modules/random_r: Likewise.
33500         * modules/relocatable-prog: Likewise.
33501         * modules/search: Likewise.
33502         * modules/select: Likewise.
33503         * modules/selinux-h: Likewise.
33504         * modules/settime: Likewise.
33505         * modules/signal: Likewise.
33506         * modules/size_max: Likewise.
33507         * modules/socklen: Likewise.
33508         * modules/ssize_t: Likewise.
33509         * modules/stdarg: Likewise.
33510         * modules/stdbool: Likewise.
33511         * modules/stddef: Likewise.
33512         * modules/stdint: Likewise.
33513         * modules/stdio: Likewise.
33514         * modules/stdlib: Likewise.
33515         * modules/string: Likewise.
33516         * modules/strings: Likewise.
33517         * modules/sys_file: Likewise.
33518         * modules/sys_ioctl: Likewise.
33519         * modules/sys_select: Likewise.
33520         * modules/sys_socket: Likewise.
33521         * modules/sys_stat: Likewise.
33522         * modules/sys_time: Likewise.
33523         * modules/sys_times: Likewise.
33524         * modules/sys_utsname: Likewise.
33525         * modules/sys_wait: Likewise.
33526         * modules/sysexits: Likewise.
33527         * modules/time: Likewise.
33528         * modules/times: Likewise.
33529         * modules/tmpfile: Likewise.
33530         * modules/trim: Likewise.
33531         * modules/unistd: Likewise.
33532         * modules/wchar: Likewise.
33533         * modules/wctype: Likewise.
33534
33535 2009-09-17  Bruno Haible  <bruno@clisp.org>
33536
33537         Make getdate.y compile on QNX and NetBSD 5 / i386.
33538         * m4/getdate.m4 (gl_GETDATE): Conditionally define
33539         TIME_T_FITS_IN_LONG_INT.
33540         * lib/getdate.y (long_time_t): New type.
33541         (relative_time): Change type of 'seconds' field to long_time_t.
33542         (get_date): Update types of local variables. Check against overflow
33543         during conversion from long_time_t to time_t.
33544         Reported by Matt Kraai <kraai@ftbfs.org>
33545         and Hasso Tepper <hasso@netbsd.org>.
33546
33547 2009-09-17  Bruno Haible  <bruno@clisp.org>
33548
33549         * modules/COPYING: Update copyright years.
33550         * modules/README: Likeiwse.
33551         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
33552         Reported by Ian Beckwith <ianb@erislabs.net>.
33553
33554 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
33555
33556         * users.txt: Update references for gnuit package.
33557
33558 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
33559
33560         * m4/getdelim.m4: Fix typo in copyright line.
33561
33562 2009-09-17  Bruno Haible  <bruno@clisp.org>
33563
33564         * lib/atoll.c: Use the standard header with GPL copyright.
33565         * lib/argz.in.h: Likewise.
33566         * lib/glob.c: Likewise.
33567         * lib/glob-libc.h: Likewise.
33568         * lib/random_r.c: Likewise.
33569         * lib/siglist.h: Likewise.
33570         * lib/strsignal.c: Likewise.
33571         Reported by Ian Beckwith <ianb@erislabs.net>.
33572
33573 2009-09-17  Eric Blake  <ebb9@byu.net>
33574
33575         rmdir: ensure correct dependency order
33576         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
33577
33578 2009-09-17  Bruno Haible  <bruno@clisp.org>
33579
33580         Disable assertion that fails on NetBSD 5 / i386.
33581         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
33582         Reported by Sam Steingold <sds@gnu.org>
33583         and Hasso Tepper <hasso@netbsd.org>.
33584
33585 2009-09-16  Eric Blake  <ebb9@byu.net>
33586
33587         unlinkdir: port to mingw
33588         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
33589         on which no one can unlink a directory.
33590
33591         stdlib: sort witness names
33592         * modules/stdlib (Makefile.am): Sort replacements.
33593         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
33594         * lib/stdlib.in.h: Likewise.
33595
33596         parse-duration-tests: avoid link failure
33597         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
33598         LIBINTL.
33599         Reported by Tom G. Christensen.
33600
33601         openat-tests: ensure unlinkat behaves like rmdir
33602         * tests/test-rmdir.c (main): Factor guts...
33603         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
33604         * modules/rmdir-tests (Files): Ship new file.
33605         * modules/openat-tests: New test.
33606         * tests/test-unlinkat.c: Likewise.
33607
33608         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
33609         * modules/rmdir-errno (Status, Notice): Now obsolete.
33610
33611         rmdir: work around cygwin 1.5.x and mingw bugs
33612         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
33613         * lib/rmdir.c (rmdir): Work around it.
33614         * modules/rmdir (Status, Notice): No longer obsolete.
33615         (Files): Add dos.m4.
33616         (Depends-on): Add unistd.
33617         (configure.ac): Set witnesses.
33618         (License): Relax to LGPLv2+.
33619         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
33620         * modules/unistd (Makefile.am): Substitute witnesses.
33621         * lib/unistd.in.h (rmdir): Declare replacement.
33622         * doc/posix-functions/rmdir.texi (rmdir): Document this.
33623         * modules/rmdir-tests: New tests.
33624         * tests/test-rmdir.c: Likewise.
33625
33626 2009-09-15  Eric Blake  <ebb9@byu.net>
33627
33628         fchdir: improve use of replacement functions
33629         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
33630         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
33631         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
33632         REPLACE_CLOSEDIR.
33633         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
33634         * modules/sys_stat (Makefile.am): Substitute correct witness.
33635         * modules/dirent (Makefile.am): Likewise.
33636         * modules/unistd (Makefile.am): Likewise.
33637         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
33638         * lib/unistd.in.h (dup): Likewise.
33639         * lib/sys_stat.in.h (fstat): Likewise.
33640
33641         maint: ignore gnulib-tool temp files
33642         * .gitignore: Ignore files created during gnulib-tool --test.
33643
33644 2009-09-13  Jim Meyering  <meyering@redhat.com>
33645
33646         posixtm: don't reject a time that specify "60" as the number of seconds
33647         * lib/posixtm.c (posixtime): The code to reject invalid dates
33648         would also reject a time specified with the .60 suffix.
33649         But POSIX allows that, in order to accommodate leap seconds.
33650         So don't reject it.
33651         (main): Adjust tests accordingly.
33652         * modules/posixtm (Depends-on): Add stpcpy.
33653
33654 2009-09-11  Jim Meyering  <meyering@redhat.com>
33655
33656         announce-gen: include [$release_type] in emitted Subject:
33657         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
33658         e.g., [stable] in the emitted Subject: line.
33659
33660 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33661
33662         Remove obsolete macros from several modules.
33663         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
33664         obsolete Autoconf macros with their modern counterparts.
33665         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
33666         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
33667         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
33668         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
33669         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
33670         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
33671         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
33672         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
33673         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
33674         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
33675         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
33676         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
33677         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
33678         * m4/sockets.m4 (gl_SOCKETS): Likewise.
33679         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
33680         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
33681         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
33682         * m4/time_r.m4 (gl_TIME_R): Likewise.
33683         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
33684         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
33685         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
33686
33687         Fix copyright header in build-aux scripts.
33688         * build-aux/git-version-gen: Fix copyright header to match GPLv3
33689         recommendation.
33690         * build-aux/ncftpput-ftp: Likewise.
33691         * build-aux/update-copyright: Likewise.
33692
33693 2009-09-09  Eric Blake  <ebb9@byu.net>
33694
33695         test-link: allow Linux choice of errno
33696         * tests/test-link.c (main): Relax test for alternate error.
33697
33698         strndup: fix improper m4 caching
33699         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
33700         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
33701         (gl_PREREQ_STRNDUP): Delete.
33702         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
33703         * modules/string (Makefile.am): Substitute it.
33704         * lib/string.in.h (strndup): Modernize prototype.
33705
33706         getcwd: port to mingw
33707         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
33708         different from the POSIX assumptions made throughout the getcwd
33709         module; fortunately, the mingw getcwd does not need replacement.
33710         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
33711         * modules/getcwd-tests: New test.
33712         * tests/test-getcwd.c: Likewise.
33713
33714         link: fix platform bugs
33715         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
33716         * lib/link.c (link): Work around them.  Fix related mingw bug.
33717         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
33718         * modules/unistd (Makefile.am): Substitute it.
33719         * lib/unistd.in.h (link): Declare replacement.
33720         * doc/posix-functions/link.texi (link): Document this.
33721         * modules/link (Depends-on): Add strdup-posix, sys_stat.
33722
33723         test-link: consolidate into single C program, test more cases
33724         * tests/test-link.sh: Delete.
33725         * tests/test-link.c: Test more error conditions.  Exposes bugs on
33726         at least Cygwin and Solaris.
33727         * modules/link-tests (Files): Remove unused file.
33728         (Depends-on): Add errno, sys_stat.
33729         (Makefile.am): Simplify.
33730
33731 2009-09-08  Bruno Haible  <bruno@clisp.org>
33732
33733         Work around towlower, towupper bug on mingw.
33734         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
33735         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
33736         * doc/posix-functions/towlower.texi: Mention the mingw bug.
33737         * doc/posix-functions/towupper.texi: Likewise.
33738         Reported by Eric Blake.
33739
33740 2009-09-08  Jim Meyering  <meyering@redhat.com>
33741
33742         build: don't try to run autoheader if we don't use it
33743         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
33744         is not used in configure.ac.
33745
33746 2009-09-08  Eric Blake  <ebb9@byu.net>
33747
33748         euidaccess: fix compilation error
33749         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
33750
33751         rawmemchr: relax license
33752         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
33753         okay.
33754         Reported by Jim Meyering.
33755
33756         mkfifoat: new module
33757         * modules/mkfifoat: New file.
33758         * lib/mkfifoat.c: Likewise.
33759         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
33760         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33761         * modules/sys_stat (Makefile.am): Use them.
33762         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
33763         * MODULES.html.sh (File system functions): Mention module.
33764         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
33765         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
33766         * modules/mkfifoat-tests: New test.
33767         * tests/test-mkfifoat.c: Likewise.
33768
33769         strchrnul: relax license
33770         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
33771         okay.
33772         Reported by Jim Meyering.
33773
33774 2009-09-08  Eric Blake  <ebb9@byu.net>
33775
33776         fstatat: fix compilation on Solaris
33777         * lib/fstatat.c (includes): Add fcntl.h.
33778         Reported by Pádraig Brady.
33779
33780 2009-09-07  Eric Blake  <ebb9@byu.net>
33781
33782         rename: modernize replacement
33783         * modules/rename (Depends-on): Add stdio.
33784         (configure.ac): Declare witness.
33785         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
33786         stdio take care of replacement.
33787         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
33788         * modules/stdio (Makefile.am): Substitute them.
33789         * lib/stdio.in.h (rename): Declare replacement.
33790         * lib/rename.c (includes): Allow cross-compilation to non-windows
33791         machines.
33792         * doc/posix-functions/rename.texi (rename): Improve
33793         documentation.
33794
33795         stdio: sort witness names
33796         * modules/stdio (Makefile.am): Sort replacements.
33797         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33798         * lib/stdio.in.h: Likewise.
33799
33800         getcwd: minor cleanups
33801         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
33802         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
33803
33804         openat: provide more convenience names
33805         * modules/faccessat (configure.ac): Add C witness.
33806         * lib/unistd.in.h (readlinkat): Fix typo.
33807         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
33808         convenience wrappers.
33809         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
33810         wrappers in syntax checks.
33811
33812 2009-09-06  Eric Blake  <ebb9@byu.net>
33813
33814         doc: fix comments in recent patches
33815         * lib/faccessat.c: Mention correct function.
33816         * lib/fchmodat.c: Likewise.
33817         * lib/fchownat.c: Likewise.
33818         * lib/symlinkat.c: Likewise.
33819         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
33820         constants.
33821
33822         faccessat, symlinkat: continue cleanup of previous patch
33823         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
33824         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
33825         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
33826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
33827         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
33828         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
33829         set.
33830
33831 2009-09-06  Bruno Haible  <bruno@clisp.org>
33832
33833         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
33834         (fstatat): Declare if GNULIB_FSTATAT is set.
33835         (mkdirat): Declare if GNULIB_MKDIRAT is set.
33836         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
33837         (unlinkat): Declare if GNULIB_UNLINKAT is set.
33838         * modules/fcntl-h (Files): Remove m4/openat.m4.
33839         * modules/sys_stat (Files): Remove m4/openat.m4.
33840         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
33841         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
33842         * modules/unistd (Files): Remove m4/openat.m4.
33843         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
33844         GNULIB_OPENAT.
33845         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
33846         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
33847         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
33848         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
33849         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
33850         gl_OPENAT_DEFAULTS.
33851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
33852         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
33853         Don't require gl_OPENAT_DEFAULTS.
33854         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
33855         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
33856         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
33857         (gl_OPENAT_DEFAULTS): Remove macro.
33858
33859 2009-09-06  Bruno Haible  <bruno@clisp.org>
33860
33861         * modules/openat (configure.ac): Remove unneeded witness.
33862
33863 2009-09-06  Bruno Haible  <bruno@clisp.org>
33864
33865         Set errno to ENOSYS when a function is entirely unsupported.
33866         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
33867         EOPNOTSUPP.
33868         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
33869         * modules/chown (Depends-on): Remove errno.
33870
33871 2009-09-06  Bruno Haible  <bruno@clisp.org>
33872
33873         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
33874
33875 2009-09-06  Bruno Haible  <bruno@clisp.org>
33876
33877         * lib/sys_stat.in.h: Fix preprocessor command indentation.
33878
33879 2009-09-06  Ben Pfaff  <blp@gnu.org>
33880             Bruno Haible  <bruno@clisp.org>
33881
33882         Work around a glibc bug in strtok_r.
33883         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
33884         Undefine if UNDEFINE_STRTOK_R is set.
33885         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
33886         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33887         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
33888         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
33889         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
33890         UNDEFINE_STRTOK_R.
33891         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
33892
33893 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
33894
33895         exclude: minor fix
33896         * lib/exclude.c: Include wctype.h
33897
33898 2009-09-06  Akim Demaille  <demaille@gostai.com>
33899
33900         bootstrap: improve error message
33901         * build-aux/bootstrap (find_tool): Upon failure, report the list
33902         of candidates.
33903         Honor the initial value of the envvar.
33904
33905 2009-09-05  Eric Blake  <ebb9@byu.net>
33906
33907         symlinkat: new module
33908         * modules/symlinkat: New file.
33909         * lib/symlinkat.c: Likewise.
33910         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
33911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33912         * modules/unistd (Makefile.am): Use them.
33913         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
33914         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
33915         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
33916         * MODULES.html.sh (File system functions): Mention module.
33917         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33918         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33919         * modules/symlinkat-tests: New test.
33920         * tests/test-symlinkat.c: Likewise.
33921
33922         test-openat-safer: add more checks
33923         * tests/test-openat-safer.c (main): Check more code paths.
33924
33925 2009-09-05  Jim Meyering  <meyering@redhat.com>
33926
33927         syntax-check: detect unnecessary inclusion of openat.h
33928         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
33929
33930 2009-09-05  Bruno Haible  <bruno@clisp.org>
33931
33932         Support towlower, towupper.
33933         * doc/posix-functions/towlower.texi: Mention module wctype.
33934         * doc/posix-functions/towupper.texi: Likewise.
33935         * lib/wctype.in.h (towlower, towupper): New functions.
33936         * tests/test-wctype.c: Include stdio.h, stdlib.h.
33937         (ASSERT): New macro.
33938         (e): New variable.
33939         (main): Test also towlower, towupper. Test WEOF argument.
33940         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
33941
33942 2009-09-05  Bruno Haible  <bruno@clisp.org>
33943
33944         Fix conversion behaviour when the input is invalid.
33945         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
33946         mark occurring in first pass of indirect conversion.
33947         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
33948         input.
33949         Found by clang's static analyzer.
33950
33951 2009-09-05  Bruno Haible  <bruno@clisp.org>
33952
33953         * tests/test-striconveh.c (main): Test indirect conversion on platforms
33954         where direct conversion is possible.
33955
33956 2009-09-04  Eric Blake  <ebb9@byu.net>
33957
33958         openat: fail with ENOENT on empty name
33959         * lib/openat-proc.c (openat_proc_name): Special-case the empty
33960         buffer.
33961
33962         link-follow: fix logic bug in prior patch
33963         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
33964         reversed sense of yes and no in prior patch.  Avoid confusing
33965         compilation failure with desired semantics.
33966
33967         link-follow: accomodate mingw and cross-compilation
33968         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
33969         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
33970         cross-compilation results to -1, to make linkat easier to
33971         implement when cross-compiling.  Trivially support mingw.
33972         * modules/link-follow (configure.ac): Call new name.
33973         * NEWS: Mention this.
33974
33975 2009-09-03  Eric Blake  <ebb9@byu.net>
33976
33977         faccessat: compile replacement
33978         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
33979         needed.
33980
33981         fts: fix compilation error
33982         * lib/fts.c (includes): Re-add "openat.h", for
33983         openat_needs_fchdir.
33984
33985         faccessat: new module
33986         * modules/faccessat: New file.
33987         * lib/faccessat.c: Likewise.
33988         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
33989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33990         * modules/unistd (Makefile.am): Use it.
33991         * lib/unistd.in.h (faccessat): Declare it.
33992         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
33993         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
33994         * MODULES.html.sh (File system functions): Mention it.
33995         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
33996         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
33997
33998         euidaccess: prefer POSIX over non-standard implementation
33999         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
34000         * lib/euidaccess.c (euidaccess): Use it if available.
34001
34002         openat: make template easier to use
34003         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
34004         AT_FUNC_F2 to be undefined.
34005         (VALIDATE_FLAG): New macro; use it to reject bad flags.
34006         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
34007         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
34008         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
34009         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
34010         Likewise.
34011         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
34012         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
34013         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
34014         Likewise.
34015
34016         openat: declare in POSIX headers
34017         * NEWS: Mention this.
34018         * modules/openat (configure.ac): Declare witnesses.
34019         (Depends-on): Add fcntl-h, sys_stat, unistd.
34020         (Include): Mention correct headers.
34021         * modules/fcntl-h (Depends-on): Add link-warning.
34022         (Files): Add openat.m4.
34023         (Makefile.am): Substitute witnesses.
34024         * modules/sys_stat (Files, Makefile.am): Likewise.
34025         * modules/unistd (Files, Makefile.am): Likewise.
34026         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
34027         (gl_OPENAT_DEFAULTS): New macro.
34028         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
34029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
34030         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
34031         (SYS_STAT_H): Remove unused variable.
34032         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
34033         * lib/fcntl--.h (includes): Remove unneeded header.
34034         * lib/openat-safer.c (includes): Likewise.
34035         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
34036         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
34037         appropriate headers.
34038         (__OPENAT_PREFIX): Delete.
34039         * lib/fcntl.in.h (openat): Provide declaration.
34040         (AT_FDCWD): Fix Solaris bug.
34041         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
34042         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
34043         * lib/fchmodat.c (includes):  Adjust to find declaration.
34044         * lib/fchownat.c (includes): Likewise.
34045         * lib/mkdirat.c (includes): Likewise.
34046         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
34047         still visible.
34048
34049 2009-09-02  Eric Blake  <ebb9@byu.net>
34050
34051         errno: use consistently
34052         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
34053         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
34054         * lib/canonicalize.c (ELOOP): Likewise.
34055         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
34056         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
34057         * lib/lchown.c (EOPNOTSUPP): Likewise.
34058         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
34059         * lib/savewd.c (ESTALE): Likewise.
34060         * lib/settime.c (ENOSYS): Likewise.
34061         * lib/utimens.c (ENOSYS): Likewise.
34062         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
34063         * lib/chdir-safer.c (ELOOP): Likewise.
34064         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
34065         * modules/c-stack (Depends-on): Add errno.
34066         * modules/canonicalize (Depends-on): Likewise.
34067         * modules/chdir-safer (Depends-on): Likewise.
34068         * modules/fdopendir (Depends-on): Likewise.
34069         * modules/inet_ntop (Depends-on): Likewise.
34070         * modules/inet_pton (Depends-on): Likewise.
34071         * modules/lchown (Depends-on): Likewise.
34072         * modules/openat (Depends-on): Likewise.
34073         * modules/savewd (Depends-on): Likewise.
34074         * modules/settime (Depends-on): Likewise.
34075         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
34076
34077         fts: avoid leaking fds
34078         * modules/fts (Depends-on): Add cloexec.
34079         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
34080         flag.
34081
34082         fts: make directory fds more robust
34083         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
34084         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
34085
34086         backupfile, chdir-long, fts, savedir: make safer
34087         * lib/backupfile.c (includes): Use "dirent--.h", since
34088         numbered_backup can write to stderr during readdir.
34089         * lib/savedir.c (includes): Likewise.
34090         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
34091         emulation can write to stderr on failure.
34092         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
34093         * lib/getcwd.c: Document why opendir_safer is unused.
34094         * lib/glob.c: Likewise.
34095         * lib/scandir.c: Likewise.
34096         * lib/openat-proc.c: Likewise, for open_safer.
34097         * modules/backupfile (Depends-on): Add dirent-safer.
34098         * modules/savedir (Depends-on): Likewise.
34099         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
34100         * modules/chdir-long (Depends-on): Add openat-safer.
34101
34102         openat-safer: new module
34103         * modules/openat-safer: New file.
34104         * lib/openat-safer.c: Likewise.
34105         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
34106         * lib/fcntl-safer.h (openat_safer): Declare.
34107         * lib/fcntl--.h (openat): Override.
34108         * MODULES.html.sh (File descriptor based I/O): Mention it.
34109         * lib/openat.h: Add double-inclusion guards.
34110         * lib/openat.c (includes): Only include "fcntl-safer.h", not
34111         "fcntl--.h", so we can implement openat.
34112         * modules/openat-safer-tests: New test.
34113         * tests/test-openat-safer.c: New file.
34114
34115         dirent-safer: new module
34116         * modules/dirent-safer: New file.
34117         * lib/dirent--.h: Likewise.
34118         * lib/dirent-safer.h: Likewise.
34119         * lib/opendir-safer.c: Likewise.
34120         * m4/dirent-safer.m4: Likewise.
34121         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
34122         * modules/dirent-safer-tests: New test.
34123         * tests/test-dirent-safer.c: New file.
34124         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
34125
34126         fdopendir: optimize on mingw
34127         * lib/unistd.in.h (_gl_directory_name): New prototype.
34128         * lib/fchdir.c (_gl_directory_name): Implement it.
34129         (fchdir): Use it to simplify implementation.
34130         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
34131         fchdir, when available, to avoid calling [f]chdir().
34132
34133         fdopendir: split into its own module
34134         * lib/openat.c (fdopendir): Move...
34135         * lib/fdopendir.c: ...into new file.
34136         * modules/fdopendir: New module.
34137         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
34138         * modules/openat (Depends-on): Add fdopendir.
34139         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
34140         fdopendir here.
34141         * modules/savedir (Depends-on): Only need fdopendir, not full
34142         openat.
34143         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
34144         * lib/openat.h (fdopendir): Drop prototype.
34145         * lib/dirent.in.h (fdopendir): Provide prototype.
34146         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
34147         * modules/dirent (Makefile.am): Substitute them.
34148         * MODULES.html.sh (File system functions): Mention it.
34149         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
34150         * modules/fdopendir-tests: New file.
34151         * tests/test-fdopendir.c: Likewise.
34152
34153         fchdir: use more consistent macro convention
34154         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
34155         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
34156         REPLACE_FCHDIR, rather than relying on config.h macros.
34157         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
34158         inside a single make-time REPLACE_FCHDIR block, rather than using
34159         the config.h FCHDIR_REPLACEMENT.
34160         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
34161         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
34162         Manage fstat replacement.
34163         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
34164         REPLACE_FCHDIR.
34165         * modules/sys_stat (Files): Add m4/unistd_h.m4.
34166         (Makefile.am): Substitute REPLACE_FCHDIR.
34167         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
34168         FCHDIR_REPLACEMENT.
34169         * lib/dup-safer.c (dup_safer): Likewise.
34170         * lib/dup2.c (rpl_dup2): Likewise.
34171         * lib/dup3.c (rpl_dup3): Likewise.
34172         * lib/open.c (rpl_open): Likewise.
34173
34174         fchdir: simplify error handling, and support dup3
34175         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
34176         stdbool, malloc-posix, realloc-posix.
34177         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
34178         (ensure_dirs_slot): Return false on allocation failure.
34179         (rpl_dup2): Delete.
34180         (_gl_register_dup): New function.
34181         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
34182         (_gl_register_fd): Close fd on allocation failure.
34183         * lib/fcntl.in.h (_gl_register_fd): Update signature.
34184         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
34185         prototype.
34186         (rpl_dup2_fchdir): Delete prototype.
34187         * lib/open.c (open): Update caller.
34188         * lib/dup2.c (dup2): Track fchdir metadata.
34189         * lib/dup3.c (dup3): Likewise.
34190         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
34191         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
34192
34193 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34194
34195         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
34196         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
34197         don't pass arguments to AC_OUTPUT.
34198
34199 2009-09-02  Bruno Haible  <bruno@clisp.org>
34200
34201         * modules/mkdtemp (License): Relicense under LGPLv2+.
34202         Reported by Paolo Bonzini.
34203
34204 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34205
34206         Replace uses of obsolete autoconf macros in Jim's modules.
34207         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
34208         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
34209         can evoke a warning from autoconf when run with -Wobsolete
34210         enabled.  They were declared obsolete for good reasons (see
34211         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
34212         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
34213         should not continue using the deprecated macros.
34214         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
34215         obsolete Autoconf macros with modern counterparts.
34216         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
34217         * m4/dos.m4 (gl_AC_DOS): Likewise.
34218         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
34219         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
34220         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
34221         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
34222         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
34223         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
34224         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
34225         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
34226         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
34227         Likewise.
34228         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
34229         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
34230         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
34231         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
34232         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
34233         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
34234
34235 2009-09-01  Eric Blake  <ebb9@byu.net>
34236
34237         fchdir: fix off-by-one bug in previous patch
34238         * lib/fchdir.c (rpl_fstat): Use correct bounds.
34239         (_gl_unregister_fd): Delete useless if.
34240
34241 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
34242
34243         maint.mk: sort the list of syntax-check rules
34244         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
34245         easier to get a sense of progress when the rules are run sequentially
34246         and take a long time.
34247
34248 2009-09-01  Simon Josefsson  <simon@josefsson.org>
34249
34250         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
34251         * modules/netinet_in: Likewise.
34252         * modules/sys_file: Likewise.
34253         * modules/sys_ioctl: Likewise.
34254         * modules/sys_select: Likewise.
34255         * modules/sys_socket: Likewise.
34256         * modules/sys_stat: Likewise.
34257         * modules/sys_time: Likewise.
34258         * modules/sys_times: Likewise.
34259         * modules/sys_utsname: Likewise.
34260         * modules/sys_wait: Likewise.
34261
34262 2009-09-01  Jim Meyering  <meyering@redhat.com>
34263
34264         fts: help ensure that return values are not ignored
34265         * lib/fts_.h (__GNUC_PREREQ): Define.
34266         (__attribute_warn_unused_result__): Define.
34267         (fts_children, fts_close, fts_open, fts_read): Declare with
34268         __attribute_warn_unused_result__.
34269
34270         fts: fts_close now fails also when closing a dir file descriptor fails
34271         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
34272         and propagate to caller, along with errno.
34273
34274         announce-gen: correct formatting in --help output
34275         * build-aux/announce-gen (usage): Move the one-line description in
34276         --help output "up", to where it belongs, just after Usage:.
34277
34278 2009-08-31  Eric Blake  <ebb9@byu.net>
34279
34280         fchdir: port to mingw
34281         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
34282         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
34283         opened, then use a substitute.
34284         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
34285         replacement.
34286         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
34287         (_gl_register_fd): No need to check stat if open already filters
34288         all directories.
34289         (fchdir): Fix error condition to match POSIX.
34290         * modules/fchdir (Depends-on): Add sys_stat.
34291         * doc/posix-functions/open.texi (open): Document the limitation.
34292         * modules/fchdir-tests: New file.
34293         * tests/test-fchdir.c: Likewise.
34294
34295         canonicalize: allow cross-testing from cygwin to mingw
34296         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
34297         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
34298         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
34299         Likewise.
34300         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
34301         target does not support symlinks.
34302         * tests/test-canonicalize-lgpl.sh: Likewise.
34303
34304         chown: avoid compilation warning on mingw
34305         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
34306         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
34307         mingw.
34308         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
34309         * modules/chown (Depends-on): Add errno.
34310
34311 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
34312
34313         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
34314         command.
34315
34316 2009-08-31  Jim Meyering  <meyering@redhat.com>
34317
34318         canonicalize: remove useless initialization
34319         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
34320         initialization of local, "end".
34321
34322 2009-08-30  Bruno Haible  <bruno@clisp.org>
34323
34324         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
34325         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
34326         ENOSYS.
34327
34328 2009-08-30  Bruno Haible  <bruno@clisp.org>
34329
34330         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
34331         /usr/xpg4/bin/tr when it exists.
34332         * tests/test-pipe-filter-gi1.sh: Likewise.
34333
34334 2009-08-30  Bruno Haible  <bruno@clisp.org>
34335
34336         Work around deficient /usr/bin/id program on Solaris.
34337         * tests/test-file-has-acl.sh (ID): New variable.
34338         * tests/test-set-mode-acl.sh (ID): Likewise.
34339         * tests/test-copy-acl.sh (ID): Likewise.
34340         * tests/test-copy-file.sh (ID): Likewise.
34341
34342 2009-08-30  Bruno Haible  <bruno@clisp.org>
34343
34344         New module 'xstriconveh'.
34345         * lib/xstriconveh.h: New file.
34346         * lib/xstriconveh.c: New file.
34347         * modules/xstriconveh: New file.
34348
34349 2009-08-30  Bruno Haible  <bruno@clisp.org>
34350
34351         Make it easier to use mem_cd_iconveh.
34352         * lib/striconveh.h (iconveh_t): New type.
34353         (iconveh_open, iconveh_close): New declarations.
34354         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
34355         with a single 'const iconveh_t *' argument.
34356         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
34357         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
34358         with a single 'const iconveh_t *' argument.
34359         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
34360         * tests/test-striconveh.c (main): Update.
34361         * NEWS: Mention the change.
34362
34363 2009-08-30  Bruno Haible  <bruno@clisp.org>
34364
34365         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
34366         problem.
34367
34368 2009-08-30  Bruno Haible  <bruno@clisp.org>
34369
34370         Work around iconv_open problem on Solaris.
34371         * lib/iconv_open-solaris.gperf: New file.
34372         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
34373         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
34374         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
34375         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
34376         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
34377         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
34378
34379 2009-08-29  Jim Meyering  <meyering@redhat.com>
34380
34381         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
34382         * top/maint.mk (cvs-check): Remove target; it was just an alias
34383         to the better-named vc-diff-check.
34384         (maintainer-distcheck): Remove rule.  It was used only from
34385         the (alpha/beta/major) target, and all of its commands but one
34386         were coreutils-specific.
34387         (vc-dist): Remove rule.
34388         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
34389         Run vc-diff-check, not vc-dist.
34390         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
34391
34392 2009-08-27  Bruno Haible  <bruno@clisp.org>
34393
34394         * tests/test-bitrotate.c (main): Remove test that uses a shift count
34395         of 0.
34396
34397 2009-08-27  Bruno Haible  <bruno@clisp.org>
34398
34399         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
34400         compilers.
34401         * doc/func.texi: Document the SunPRO C bug.
34402
34403 2009-08-27  Bruno Haible  <bruno@clisp.org>
34404
34405         Fix link error on Solaris.
34406         * tests/test-parse-duration.c (xstrdup): Remove function.
34407
34408 2009-08-26  Pádraig Brady  <P@draigbrady.com>
34409
34410         ignore-value: handle pointer types, too
34411         * lib/ignore-value.h (__attribute__): Remove definition.
34412         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
34413         of a more concise and more-often effective "(void) i" statement.
34414         (ignore_ptr): New function to suppress warnings from functions that
34415         return pointers, and to make it explicit that one function doesn't
34416         handle all cases.
34417
34418 2009-08-25  Bruno Haible  <bruno@clisp.org>
34419
34420         dup2: work around a Linux bug.
34421         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
34422         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
34423         * doc/posix-functions/dup2.texi: Mention the Linux bug.
34424         Reported by Simon Josefsson.
34425
34426 2009-08-25  Jim Meyering  <meyering@redhat.com>
34427
34428         libguestfs uses gnulib
34429         * users.txt: Add libguestfs.
34430
34431 2009-08-24  Eric Blake  <ebb9@byu.net>
34432
34433         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
34434         * lib/pipe2.c (includes): Add binary-io.h.
34435         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
34436
34437 2009-08-24  Bruno Haible  <bruno@clisp.org>
34438
34439         Tolerate declared but missing accept4 syscall.
34440         * lib/accept4.c (accept4): Invoke original accept4 function first, if
34441         available.
34442         * lib/sys_socket.in.h (accept4): If the function is already present,
34443         override it.
34444         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
34445         * modules/accept4 (Makefile.am): Compile accept4.c always.
34446         Reported by Paolo Bonzini and Eric Blake.
34447
34448 2009-08-23  Bruno Haible  <bruno@clisp.org>
34449
34450         New module 'accept4'.
34451         * lib/sys_socket.in.h (accept4): New declaration.
34452         * lib/accept4.c: New file.
34453         * m4/accept4.m4: New file.
34454         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
34455         GNULIB_ACCEPT4, HAVE_ACCEPT4.
34456         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
34457         HAVE_ACCEPT4.
34458         * modules/accept4: New file.
34459         * doc/glibc-functions/accept4.texi: Mention the new module.
34460
34461 2009-08-24  Jim Meyering  <meyering@redhat.com>
34462
34463         progname: also set global program_invocation_name, when possible
34464         Before this change, a libtool-enabled program that calls glibc's
34465         error function would report the program name as
34466         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
34467         * modules/progname (configure.ac): Check for a declaration of
34468         program_invocation_name.
34469         * lib/progname.c:  Include <errno.h>.
34470         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
34471         Set program_invocation_name.
34472
34473 2009-08-23  Bruno Haible  <bruno@clisp.org>
34474
34475         * lib/dup3.c: Include <string.h>.
34476
34477 2009-08-23  Bruno Haible  <bruno@clisp.org>
34478
34479         * lib/dup3.c (dup3): Test only once whether the system actually exists.
34480         * lib/pipe2.c (pipe2): Likewise.
34481         Suggested by Eric Blake.
34482
34483 2009-08-23  Bruno Haible  <bruno@clisp.org>
34484
34485         Tolerate declared but missing dup3 syscall.
34486         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
34487         * lib/unistd.in.h (dup3): If the function is already present,
34488         override it.
34489         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
34490         * modules/dup3 (Makefile.am): Compile dup3.c always.
34491         Reported by Paolo Bonzini.
34492
34493 2009-08-23  Bruno Haible  <bruno@clisp.org>
34494
34495         Tolerate declared but missing pipe2 syscall.
34496         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
34497         available.
34498         * lib/unistd.in.h (pipe2): If the function is already present,
34499         override it.
34500         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
34501         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
34502         Reported by Paolo Bonzini.
34503
34504 2009-08-23  Bruno Haible  <bruno@clisp.org>
34505
34506         * lib/pipe2.c (pipe2): Move #ifs inside function.
34507
34508 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
34509
34510         quotearg: document limitations of quote_these_too
34511         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
34512         those limitations are created.
34513         * lib/quotearg.h (set_char_quoting): Document that digits and
34514         letters that are special after backslash are not permitted.
34515         (quotearg_char): Cross-reference set_char_quoting documentation.
34516
34517 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
34518
34519         quotearg: implement custom_quoting_style
34520         * lib/quotearg.c: (struct quoting_options): Add left_quote and
34521         right_quote fields.
34522         (set_custom_quoting): New public function.
34523         (quotearg_buffer_restyled): Add left_quote and right_quote
34524         arguments, handle them very much like locale quoting, and update
34525         all uses.
34526         (quotearg_n_custom): New public function.
34527         (quotearg_n_custom_mem): New public function.
34528         (quotearg_custom): New public function.
34529         (quotearg_custom_mem): New public function.
34530         * lib/quotearg.h: Prototype and document new public functions.
34531         (enum quoting_style): For escape_quoting_style and
34532         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
34533         ignored even though they're otherwise like c_quoting_style.
34534         Add custom_quoting_style member and document with comparison to
34535         clocale_quoting_style.
34536         * tests/test-quotearg.c (custom_quotes): New array.
34537         (custom_results): New array.
34538         (main): Extend to test custom quoting.
34539
34540 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
34541
34542         quotearg: fix right quote escaping when it's in quote_these_too
34543         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
34544         quote, be sure to prepend only one backslash.
34545         * tests/test-quotearg.c (use_quote_double_quotes): New function.
34546         (main): Test it.
34547
34548 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
34549
34550         quotearg-tests: test escaping of embedded locale quotes
34551         * tests/test-quotearg.c (struct result_strings): Add member for
34552         new input.
34553         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
34554         (inputs): Add new input.
34555         (results_g): Add expected results.
34556         (flag_results): Likewise.
34557         (locale_results): Likewise.
34558         (compare_strings): Check those.
34559
34560 2009-08-23  Bruno Haible  <bruno@clisp.org>
34561
34562         Tests for module 'dup3'.
34563         * modules/dup3-tests: New file.
34564         * tests/test-dup3.c: New file.
34565
34566         New module 'dup3'.
34567         * lib/unistd.in.h (dup3): New declaration.
34568         * lib/dup3.c: New file.
34569         * m4/dup3.m4: New file.
34570         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
34571         HAVE_DUP3.
34572         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
34573         * modules/dup3: New file.
34574         * doc/glibc-functions/dup3.texi: Mention the new module.
34575
34576 2009-08-23  Bruno Haible  <bruno@clisp.org>
34577
34578         Tweak the dup2 test.
34579         * tests/test-dup2.c (main): Create the test file empty. Verify that an
34580         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
34581         the test file is still empty. Fix argument order of lseek.
34582
34583 2009-08-23  Bruno Haible  <bruno@clisp.org>
34584
34585         Avoid test link errors when the modules getopt-gnu, gettext are used.
34586         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
34587         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34588
34589 2009-08-23  Bruno Haible  <bruno@clisp.org>
34590
34591         Fix getdtablesize() on mingw.
34592         * lib/getdtablesize.c (getdtablesize): Implement differently.
34593         * lib/unistd.in.h (getdtablesize): Improve comment.
34594
34595 2009-08-23  Bruno Haible  <bruno@clisp.org>
34596
34597         New module 'mkostemp'.
34598         Based on Ulrich Drepper's 2007-08-10 change in glibc.
34599         * lib/stdlib.in.h (mksotemp): New declaration.
34600         * lib/mkostemp.c: New file, from glibc with modifications.
34601         * lib/tempname.h (GT_FILE): Remove outdated comment.
34602         (gen_tempname): Add flags argument.
34603         * lib/tempname.c (__GT_BIGFILE): Remove macro.
34604         (__GT_FILE): Map to 1.
34605         (small_open, large_open): Remove macros.
34606         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
34607         * lib/mkstemp.c (mkstemp): Update.
34608         * lib/mkdtemp.c (mkdtemp): Likewise.
34609         * m4/mkostemp.m4: New file.
34610         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
34611         HAVE_MKOSTEMP.
34612         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
34613         HAVE_MKOSTEMP.
34614         * modules/mkostemp: New file, based on modules/mkstemp.
34615         * doc/glibc-functions/mkostemp.texi: Mention the new module.
34616         * NEWS: Mention the change.
34617
34618 2009-08-23  Bruno Haible  <bruno@clisp.org>
34619
34620         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
34621         Reported by Eric Blake.
34622
34623 2009-08-23  Bruno Haible  <bruno@clisp.org>
34624
34625         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
34626         Reported by Eric Blake.
34627
34628 2009-08-23  Bruno Haible  <bruno@clisp.org>
34629
34630         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
34631         * modules/pipe2 (Depends-on): Likewise.
34632
34633 2009-08-23  Eric Blake  <ebb9@byu.net>
34634
34635         fcntl-h: add O_TTY_INIT support
34636         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
34637         * tests/test-fcntl-h.c (o): Test it.
34638         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
34639
34640         fcntl-h: rename from fcntl, in preparation for fcntl(2)
34641         * modules/fcntl: Move <fcntl.h> header replacement...
34642         * modules/fcntl-h: ...to new name, so as not to collide with
34643         like-named function.
34644         * tests/test-fcntl.c: Rename...
34645         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
34646         * modules/fcntl-tests: Rename...
34647         * modules/fcntl-h-tests: ...to this.  Update test file name.
34648         * modules/chdir-long (Depends-on): Update clients.
34649         * modules/chdir-safer (Depends-on): Likewise.
34650         * modules/fcntl-safer (Depends-on): Likewise.
34651         * modules/fts (Depends-on): Likewise.
34652         * modules/mkancesdirs (Depends-on): Likewise.
34653         * modules/mkdir-p (Depends-on): Likewise.
34654         * modules/open (Depends-on): Likewise.
34655         * modules/savewd (Depends-on): Likewise.
34656         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
34657         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
34658
34659 2009-08-22  Bruno Haible  <bruno@clisp.org>
34660
34661         * modules/binary-io (License): Relicense under LGPL.
34662         * modules/pipe2 (License): Likewise.
34663
34664 2009-08-22  Bruno Haible  <bruno@clisp.org>
34665
34666         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
34667         return value.
34668         * lib/pipe-filter-gi.c (filter_init): Likewise.
34669         Reported by Eric Blake.
34670
34671 2009-08-22  Bruno Haible  <bruno@clisp.org>
34672
34673         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
34674         * modules/pipe (Depends-on): Add pipe2.
34675
34676 2009-08-22  Bruno Haible  <bruno@clisp.org>
34677
34678         Tests for module 'pipe2'.
34679         * modules/pipe2-tests: New file.
34680         * tests/test-pipe2.c: New file.
34681
34682         New module 'pipe2'.
34683         * lib/unistd.in.h (pipe2): New declaration.
34684         * lib/pipe2.c: New file.
34685         * m4/pipe2.m4: New file.
34686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
34687         HAVE_PIPE2.
34688         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
34689         * modules/pipe2: New file.
34690         * doc/glibc-functions/pipe2.texi: Mention the new module.
34691
34692 2009-08-22  Bruno Haible  <bruno@clisp.org>
34693
34694         Reference some new glibc functions.
34695         * doc/glibc-functions/accept4.texi: New file.
34696         * doc/glibc-functions/dup3.texi: New file.
34697         * doc/glibc-functions/mkostemp.texi: New file.
34698         * doc/glibc-functions/pipe2.texi: New file.
34699         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
34700         (Glibc sys/socket.h): Refer to accept4.
34701         (Glibc unistd.h): Refer to dup3, pipe2.
34702         Reported by Eric Blake.
34703
34704 2009-08-22  Jim Meyering  <meyering@redhat.com>
34705             Bruno Haible  <bruno@clisp.org>
34706
34707         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
34708         This makes it so packages using automake-1.11's silent-rules option
34709         can print e.g., a single "GEN    configmake.h" line, rather than
34710         the 30+ statements that perform the job.  If you want to see the
34711         actual commands, you can still run "make V=1".
34712         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
34713         so that make output is abbreviated when those variables are defined
34714         appropriately.
34715         * modules/argz: Likewise.
34716         * modules/arpa_inet: Likewise.
34717         * modules/byteswap: Likewise.
34718         * modules/configmake: Likewise.
34719         * modules/dirent: Likewise.
34720         * modules/errno: Likewise.
34721         * modules/fcntl: Likewise.
34722         * modules/float: Likewise.
34723         * modules/fnmatch: Likewise.
34724         * modules/getopt-posix: Likewise.
34725         * modules/glob: Likewise.
34726         * modules/iconv_open: Likewise.
34727         * modules/inttypes: Likewise.
34728         * modules/localcharset: Likewise.
34729         * modules/locale: Likewise.
34730         * modules/math: Likewise.
34731         * modules/netdb: Likewise.
34732         * modules/netinet_in: Likewise.
34733         * modules/poll: Likewise.
34734         * modules/posix_spawnp-tests: Likewise.
34735         * modules/sched: Likewise.
34736         * modules/search: Likewise.
34737         * modules/selinux-h: Likewise.
34738         * modules/signal: Likewise.
34739         * modules/spawn: Likewise.
34740         * modules/stdarg: Likewise.
34741         * modules/stdbool: Likewise.
34742         * modules/stddef: Likewise.
34743         * modules/stdint: Likewise.
34744         * modules/stdio: Likewise.
34745         * modules/stdlib: Likewise.
34746         * modules/string: Likewise.
34747         * modules/strings: Likewise.
34748         * modules/sys_file: Likewise.
34749         * modules/sys_ioctl: Likewise.
34750         * modules/sys_select: Likewise.
34751         * modules/sys_socket: Likewise.
34752         * modules/sys_stat: Likewise.
34753         * modules/sys_time: Likewise.
34754         * modules/sys_times: Likewise.
34755         * modules/sys_utsname: Likewise.
34756         * modules/sys_wait: Likewise.
34757         * modules/sysexits: Likewise.
34758         * modules/time: Likewise.
34759         * modules/unistd: Likewise.
34760         * modules/wchar: Likewise.
34761         * modules/wctype: Likewise.
34762
34763 2009-08-22  Jim Meyering  <meyering@redhat.com>
34764
34765         announce-gen: detect write failure
34766         * build-aux/announce-gen: Add Coda at end.
34767         Remove equivalent-but-more-verbose block at top.
34768
34769 2009-08-19  Akim Demaille  <demaille@gostai.com>
34770
34771         bootstrap: --help to stdout.
34772         * bootstrap (usage): Don't send --help to stderr.
34773         Use a here doc instead of a long string.
34774
34775 2009-08-21  Eric Blake  <ebb9@byu.net>
34776
34777         test-popen-safer: split from test-popen
34778         * tests/test-popen.c (main): Move...
34779         * tests/test-popen.h: ...into new file.
34780         * tests/test-popen-safer2.c: New file.
34781         * modules/popen-tests (Files): Add test-popen.h.
34782         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
34783         Suggested by Bruno Haible.
34784
34785         test-fcntl-safer: split from test-open
34786         * tests/test-open.c (main): Move...
34787         * tests/test-open.h: ...into new file.
34788         * tests/test-fcntl-safer.c: New file.
34789         * modules/open-tests (Files): Add test-open.h.
34790         * modules/fcntl-safer-tests: New file.
34791         Suggested by Bruno Haible.
34792
34793         test-fopen-safer: split from test-fopen
34794         * tests/test-fopen.c (main): Move...
34795         * tests/test-fopen.h: ...into new file.
34796         * tests/test-fopen-safer.c: New file.
34797         * modules/fopen-tests (Files): Add test-fopen.h.
34798         * modules/fopen-safer-tests: New file.
34799         Suggested by Bruno Haible.
34800
34801 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
34802
34803         popen-safer: test O_CLOEXEC at run-time.
34804         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
34805
34806 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
34807
34808         fcntl: move more flags to the header
34809         * lib/cloexec.c: Do not define FD_CLOEXEC here.
34810         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
34811         * lib/fcntl.in.h: Do both things here.
34812
34813 2009-08-21  Jim Meyering  <meyering@redhat.com>
34814
34815         consistently remove $@-t before redirecting to it
34816         * modules/argz: Remove $@-t and $@ before redirecting to the former.
34817         * modules/alloca-opt: Likewise.
34818         * modules/byteswap: Likewise.
34819         * modules/fnmatch: Likewise.
34820         * modules/getopt-posix: Likewise.
34821         * modules/glob: Likewise.
34822         * modules/poll: Likewise.
34823         * modules/posix_spawnp-tests: Likewise.
34824         * modules/sys_socket: Likewise.
34825         * modules/sysexits: Likewise.
34826
34827 2009-08-21  Eric Blake  <ebb9@byu.net>
34828
34829         popen: simplify access to original popen
34830         * lib/popen.c (rpl_popen): No need to worry about popen being a
34831         macro.
34832         Reported by Bruno Haible.
34833
34834 2009-08-20  Eric Blake  <ebb9@byu.net>
34835
34836         build: avoid some compiler warnings
34837         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
34838         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
34839         type.
34840         (new_exclude_segment, excluded_file_pattern_p)
34841         (excluded_file_name_p): Reduce scope.
34842         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
34843         old-style declaration.
34844
34845 2009-08-20  Simon Josefsson  <simon@josefsson.org>
34846
34847         * tests/test-exclude1.sh: Handle Windows EOL.
34848         * tests/test-exclude2.sh: Likewise.
34849         * tests/test-exclude3.sh: Likewise.
34850         * tests/test-exclude4.sh: Likewise.
34851         * tests/test-exclude5.sh: Likewise.
34852         * tests/test-exclude6.sh: Likewise.
34853         * tests/test-exclude7.sh: Likewise.
34854
34855 2009-08-19  Akim Demaille  <demaille@gostai.com>
34856
34857         bootstrap: find sha1sum when named gsha1sum.
34858         * bootstrap (find_tool): New.
34859         ($SHA1SUM): New.
34860         Use it.
34861
34862 2009-08-20  Jim Meyering  <meyering@redhat.com>
34863
34864         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
34865         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
34866         expression that converts "." in a file name to "\." in the resulting
34867         regexp.  Start with a dummy statement, so that prior shell variable
34868         definitions are expanded portably.  Reported by Simon Josefsson.
34869
34870 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
34871
34872         Fix polling for writeability of a screen buffer.
34873         * lib/poll.c: Distinguish input and screen buffers for the
34874         Win32 implementation.
34875         * lib/select.c: Likewise.
34876
34877 2009-08-19  Eric Blake  <ebb9@byu.net>
34878
34879         popen-safer: prevent popen from clobbering std descriptors
34880         * modules/popen-safer: New file.
34881         * lib/popen-safer.c: Likewise.
34882         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
34883         * lib/stdio--.h (popen): Provide override.
34884         * lib/stdio-safer.h (popen_safer): Provide declaration.
34885         * tests/test-popen.c (includes): Partially test this.
34886         * modules/popen-safer-tests: New file, for more tests.
34887         * tests/test-popen-safer.c: Likewise.
34888         * MODULES.html.sh (file stream based Input/Output): Mention it.
34889
34890         tests: test some of the *-safer modules
34891         * modules/fopen-safer (Depends-on): Add fopen.
34892         * modules/fcntl-safer (Depends-on): Add fcntl.
34893         * modules/stdlib-safer (Depends-on): Add stdlib.
34894         (configure.ac): Set indicator.
34895         * modules/unistd-safer (configure.ac): Likewise.
34896         * modules/tmpfile-safer (configure.ac): Likewise.
34897         (Depends-on): Add tmpfile.
34898         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
34899         active.
34900         * tests/test-fopen.c (includes): Test safer versions when they are
34901         in use.
34902         * tests/test-open.c (includes): Likewise.
34903
34904         popen: fix cygwin 1.5 bug when stdin closed
34905         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
34906         * modules/popen: New file.
34907         * modules/popen-tests: Likewise.
34908         * tests/test-popen.c: Likewise.
34909         * m4/popen.m4: Likewise.
34910         * lib/popen.c: Likewise.
34911         * lib/stdio.in.h (popen): New declaration.
34912         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
34913         * modules/stdio (Makefile.am): Likewise.
34914         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
34915
34916 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
34917
34918         maint.mk: give full control over update-copyright exclusions
34919         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
34920         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
34921         (update-copyright): Don't force inclusion of top-level
34922         ChangeLog.  Don't force exclusion of all COPYING files, but make
34923         them the default exclusion instead.
34924
34925 2009-08-16  Bruno Haible  <bruno@clisp.org>
34926
34927         Fix test failures on Solaris 10.
34928         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
34929         tests when Solaris iconv() is used.
34930         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
34931         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
34932         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
34933         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
34934         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
34935
34936 2009-08-16  Bruno Haible  <bruno@clisp.org>
34937
34938         Fix test failures on Solaris 10.
34939         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
34940         'tr' program and pass it as first argument.
34941         * tests/test-pipe-filter-gi1.sh: Likewise.
34942         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
34943         program as first argument.
34944         * tests/test-pipe-filter-gi1.c (main): Likewise.
34945
34946 2009-08-16  Eric Blake  <ebb9@byu.net>
34947
34948         fpurge: fix previous commits
34949         * modules/fpurge (Makefile.am): Make replacement conditional,
34950         partially reverting 2007-04-29 change; missed in previous
34951         attempt.
34952         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
34953         is missing.
34954
34955 2009-08-16  Bruno Haible  <bruno@clisp.org>
34956
34957         Clarify fpurge's effect on the file position.
34958         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
34959         * tests/test-fpurge.c (main): Make a second pass for checking the file
34960         position.
34961
34962 2009-08-16  Bruno Haible  <bruno@clisp.org>
34963
34964         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
34965         declaration of fpurge is missing.
34966         * tests/test-fpurge.c (main): Check that the file has not more contents
34967         than expected. Close the file before removing it.
34968
34969 2009-08-15  Eric Blake  <ebb9@byu.net>
34970
34971         fpurge: don't wrap working cygwin implementation
34972         * lib/fpurge.c (fpurge): Fix comment typo.
34973         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
34974         1.7 to avoid replacement.
34975         * tests/test-fpurge.c (main): Enhance test.
34976
34977 2009-08-15  Eric Blake  <ebb9@byu.net>
34978         and Jim Meyering  <meyering@redhat.com>
34979
34980         test-update-copyright: skip if perl is insufficient
34981         * tests/test-update-copyright.sh: Failure to run maintainer tool
34982         should not cause testsuite failure on cygwin 1.5.
34983
34984 2009-08-14  Eric Blake  <ebb9@byu.net>
34985
34986         doc: mention more functions added in cygwin 1.7.0
34987         * doc/posix-headers/limits.texi (limits.h): Update for recent
34988         cygwin additions.
34989         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
34990         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
34991         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
34992         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
34993         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
34994
34995 2009-08-14  Eric Blake  <ebb9@byu.net>
34996
34997         maint.mk: simplify update-copyright rule
34998         * top/maint.mk (update-copyright-local): Delete, and document how
34999         to do it in cfg.mk instead.
35000         (update-copyright-exclude-regexp): Delete, and document how to do
35001         it in .x-update-copyright instead.
35002         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
35003         exclude ChangeLog.
35004
35005 2009-08-14  Bruno Haible  <bruno@clisp.org>
35006
35007         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
35008
35009 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35010
35011         maint.mk: support update-copyright-env
35012         * top/maint.mk (update-copyright-env): Define place-holder.
35013         (update-copyright): Expand $(update-copyright-env) before
35014         invoking update-copyright.
35015
35016 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35017
35018         update-copyright: implement forced reformatting
35019         * build-aux/update-copyright: Implement and document
35020         UPDATE_COPYRIGHT_FORCE.
35021         * tests/test-update-copyright.sh: Test it.
35022
35023 2009-08-14  Eric Blake  <ebb9@byu.net>
35024         and Bruno Haible  <bruno@clisp.org>
35025
35026         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
35027         * tests/test-locale.c: Revert previous patch related to NULL.
35028         * tests/test-stdio.c: Likewise.
35029         * tests/test-stdlib.c: Likewise.
35030         * tests/test-string.c: Likewise.
35031         * tests/test-unistd.c: Likewise.
35032         * modules/time-tests (Depends-on): Add verify.
35033         * modules/wchar-tests (Depends-on): Likewise.
35034         * tests/test-time.c: Test for NULL compliance.
35035         * tests/test-wchar.c: Likewise.
35036         * modules/locale (Depends-on): Add stddef.
35037         * modules/stdio (Depends-on): Likewise.
35038         * modules/stdlib (Depends-on): Likewise.
35039         * modules/string (Depends-on): Likewise.
35040         * modules/time (Depends-on): Likewise.
35041         * modules/unistd (Depends-on): Likewise.
35042         * modules/wchar (Depends-on): Likewise.
35043         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
35044         * lib/stdlib.in.h (includes): Likewise.
35045         * lib/string.in.h (includes): Likewise.
35046         * lib/time.in.h (includes): Likewise.
35047         * lib/unistd.in.h (includes): Likewise.
35048         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
35049         replaced.
35050         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35051         * m4/stddef_h.m4: New file.
35052         * modules/stddef: Likewise.
35053         * lib/stddef.in.h: Likewise.
35054         * modules/stddef-tests: Likewise.
35055         * tests/test-stddef.c: Likewise.
35056         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
35057         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
35058         * doc/posix-headers/locale.texi (locale.h): Likewise.
35059         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
35060         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
35061         * doc/posix-headers/string.texi (string.h): Likewise.
35062         * doc/posix-headers/time.texi (time.h): Likewise.
35063         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
35064         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
35065
35066 2009-08-14  Eric Blake  <ebb9@byu.net>
35067
35068         doc: improve git diff of texinfo files
35069         * .gitattributes: Add rule for *.texi files, with hint on how to
35070         use it.
35071         Copied from m4, and based on a report by Bruno Haible.
35072
35073 2009-08-14  Bruno Haible  <bruno@clisp.org>
35074
35075         Disable multithread support by default on Cygwin 1.5.x for real.
35076         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
35077
35078 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35079
35080         update-copyright: much ado about intervals
35081         * build-aux/update-copyright: Implement and document
35082         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
35083         of copyright year intervals.
35084         Also, document UPDATE_COPYRIGHT_YEAR.
35085         * tests/test-update-copyright.sh: Test it.
35086
35087         update-copyright: convert 2-digit to 4-digit years
35088         * build-aux/update-copyright: Implement and document.
35089         * tests/test-update-copyright.sh: Update.
35090
35091 2009-08-14  Jim Meyering  <meyering@redhat.com>
35092
35093         test-exclude: avoid coreutils "make check" failure
35094         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
35095         just as in test-argmatch.c.
35096
35097 2009-08-13  Eric Blake  <ebb9@byu.net>
35098
35099         test-dup2: fix bad assumption
35100         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
35101         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
35102
35103         test-version-etc: fix CRLF portability issue
35104         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
35105         recognize \r.
35106         * tests/test-argp-version-etc-1.sh: Likewise.
35107
35108         getopt: update client modules
35109         * modules/argp (Depends-on): Use getopt-gnu.
35110         * modules/git-merge-changelog (Depends-on): Likewise.
35111         * modules/long-options (Depends-on): Likewise.
35112         * modules/xstrtol (Depends-on): Likewise.
35113
35114 2009-08-13  Simon Josefsson  <simon@josefsson.org>
35115
35116         * tests/test-version-etc.sh: Don't fail on different
35117         project/version.  Don't fail on CRLF differences.  Rewrite to use
35118         multiple -e instead of multiple sed forks, suggested by Eric Blake
35119         <ebb9@byu.net>.
35120         * tests/test-argp-version-etc-1.sh: Likewise.
35121
35122 2009-08-13  Simon Josefsson  <simon@josefsson.org>
35123
35124         * tests/test-version-etc.sh: Don't fail on different
35125         project/version.
35126
35127 2009-08-12  Bruno Haible  <bruno@clisp.org>
35128
35129         Tests for modules 'getopt-posix', 'getopt-gnu'.
35130         * modules/getopt-posix-tests: New file.
35131         * tests/test-getopt.c: New file.
35132         * tests/test-getopt.h: New file.
35133         * tests/test-getopt_long.h: New file.
35134
35135         New modules 'getopt-posix', 'getopt-gnu'.
35136         * modules/getopt-gnu: New file, renamed from modules/getopt.
35137         * modules/getopt-posix: New file.
35138         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
35139         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
35140         (gl_GETOPT): Remove macro.
35141         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
35142         Disable the test against BSD systems that declare optreset. Test
35143         against mingw bug. Test against lack of support of optional arguments
35144         on many platforms.
35145         * doc/glibc-headers/getopt.texi: Update module name and list of
35146         relevant platforms.
35147         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
35148         'getopt-gnu' and more portability problems.
35149         * NEWS: Mention the changes.
35150
35151 2009-08-12  Bruno Haible  <bruno@clisp.org>
35152
35153         Ensure that optarg etc. get declared by <unistd.h>.
35154         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
35155         AC_USE_SYSTEM_EXTENSIONS.
35156         * modules/getopt (Depends-on): Add 'extensions'.
35157
35158 2009-08-12  Bruno Haible  <bruno@clisp.org>
35159
35160         Avoid test link errors.
35161         * modules/pipe-filter-ii-tests (Makefile.am): Define
35162         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
35163         * modules/pipe-filter-gi-tests (Makefile.am): Define
35164         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
35165         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35166
35167 2009-08-12  Bruno Haible  <bruno@clisp.org>
35168
35169         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
35170         gl_GETOPT_SUBSTITUTE before.
35171         (gl_GETOPT): Use it.
35172         * m4/argp.m4 (gl_ARGP): Update.
35173         Reported by Sergey Poznyakoff.
35174
35175         * m4/getopt.m4: Reorder macros.
35176         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
35177         (gl_GETOPT_SUBSTITUTE): Remove macro.
35178
35179 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35180
35181         Minor improvement in gitlog-to-changelog
35182
35183         * build-aux/gitlog-to-changelog: New option `--format' makes
35184         output format string configurable.
35185
35186 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35187
35188         Optimize exclude: use hash tables for non-wildcard patterns.
35189
35190         * lib/exclude.c: Include hash.h and mbuiter.h
35191         (struct exclude_pattern, exclude_segment): New data types.
35192         (struct exclude): Rewrite.
35193         (fnmatch_pattern_has_wildcards): New function.
35194         (new_exclude_segment, free_exclude_segment): New functions.
35195         (excluded_file_pattern_p, excluded_file_name_p): New functions.
35196         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
35197         * lib/exclude.h (is_fnmatch_pattern): New prototype.
35198         * modules/exclude: Depend on hash and mbuiter.
35199
35200         * modules/exclude-tests: New file.
35201         * tests/test-exclude.c: New file.
35202         * tests/test-exclude1.sh: New file.
35203         * tests/test-exclude2.sh: New file.
35204         * tests/test-exclude3.sh: New file.
35205         * tests/test-exclude4.sh: New file.
35206         * tests/test-exclude5.sh: New file.
35207         * tests/test-exclude6.sh: New file.
35208         * tests/test-exclude7.sh: New file.
35209
35210 2009-08-12  Bruno Haible  <bruno@clisp.org>
35211
35212         Ensure that getopt() gets declared by <unistd.h>.
35213         * lib/unistd.in.h: Conditionally include getopt.h.
35214         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
35215         Set GNULIB_UNISTD_H_GETOPT.
35216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35217         GNULIB_UNISTD_H_GETOPT.
35218         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
35219
35220 2009-08-12  Bruno Haible  <bruno@clisp.org>
35221
35222         Clarify logic.
35223         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
35224         gl_replace_getopt instead of GETOPT_H.
35225
35226 2009-08-12  Bruno Haible  <bruno@clisp.org>
35227
35228         * m4/getopt.m4: Add comments.
35229
35230 2009-08-12  Bruno Haible  <bruno@clisp.org>
35231
35232         Disable multithread support by default on Cygwin 1.5.x.
35233         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
35234         set gl_use_threads=no if not specified otherwise.
35235
35236 2009-08-11  Bruno Haible  <bruno@clisp.org>
35237
35238         Avoid compilation error on NetBSD 5.0.
35239         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
35240         * tests/test-stdio.c: Likewise.
35241         * tests/test-stdlib.c: Likewise.
35242         * tests/test-string.c: Likewise.
35243         * tests/test-unistd.c: Likewise.
35244         Reported by Greg Troxel <gdt@ir.bbn.com>
35245         at <https://savannah.gnu.org/support/?106973>.
35246
35247 2009-08-11  Bruno Haible  <bruno@clisp.org>
35248
35249         * modules/dup2-tests (Depends-on): Remove close.
35250
35251         Undo 2009-07-19 commit.
35252         * modules/acl-tests (Depends-on): Remove close.
35253         * modules/binary-io-tests (Depends-on): Likewise.
35254         * modules/closein-tests (Depends-on): Likewise.
35255         * modules/flock-tests (Depends-on): Likewise.
35256         * modules/fsync-tests (Depends-on): Likewise.
35257         * modules/lseek-tests (Depends-on): Likewise.
35258         * modules/pipe-tests (Depends-on): Likewise.
35259         * modules/posix_spawn-tests (Depends-on): Likewise.
35260         * modules/posix_spawnp-tests (Depends-on): Likewise.
35261         * modules/stat-time-tests (Depends-on): Likewise.
35262         * modules/yesno-tests (Depends-on): Likewise.
35263
35264 2009-08-10  Bruno Haible  <bruno@clisp.org>
35265
35266         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
35267
35268 2009-08-10  Bruno Haible  <bruno@clisp.org>
35269
35270         Fix a gcc warning.
35271         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
35272
35273 2009-08-10  Bruno Haible  <bruno@clisp.org>
35274
35275         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
35276         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
35277         not only the first time.
35278         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
35279         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
35280         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
35281         is 1, not only the the first time.
35282
35283 2009-08-10  Bruno Haible  <bruno@clisp.org>
35284
35285         Make it possible to use module 'gethostname' without module 'close'.
35286         * lib/unistd.in.h (close): Evoke a link error only if
35287         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
35288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35289         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35290         * modules/unistd (Makefile.am): Substitute
35291         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35292         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
35293         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
35294         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
35295         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35296         * modules/sys_ioctl (Makefile.am): Substitute
35297         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35298         * modules/socket (configure.ac): On native Windows, set
35299         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
35300         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35301         Reported by Sam Steingold <sds@gnu.org>.
35302
35303 2009-08-10  Bruno Haible  <bruno@clisp.org>
35304
35305         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
35306         * modules/ioctl (configure.ac): Likewise.
35307
35308 2009-08-10  Bruno Haible  <bruno@clisp.org>
35309
35310         Avoid collision between gnulib wrapper and libintl wrapper.
35311         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
35312         already defined in intl/printf.c.
35313         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
35314         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
35315
35316 2009-08-09  Bruno Haible  <bruno@clisp.org>
35317
35318         Make <sys/select.h> really self-contained, also on Solaris 10.
35319         * lib/sys_select.in.h: Include <string.h>.
35320         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
35321         Solaris 10 problem.
35322         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
35323         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
35324         Reported by Jim Meyering.
35325
35326 2009-08-09  Bruno Haible  <bruno@clisp.org>
35327
35328         Avoid warnings from 'aclocal' that are due to a use of macro name
35329         AM_XGETTEXT_OPTION that is not defined in automake.
35330         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
35331         automake.
35332         * modules/error (configure.ac): Likewise.
35333         * modules/propername (configure.ac): Likewise.
35334         * modules/vasprintf (configure.ac): Likewise.
35335         * modules/verror (configure.ac): Likewise.
35336         * modules/xprintf (configure.ac): Likewise.
35337         * modules/xvasprintf (configure.ac): Likewise.
35338
35339 2009-08-08  Bruno Haible  <bruno@clisp.org>
35340
35341         Avoid compilation error in C++ mode.
35342         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
35343         Reported by Sam Steingold <sds@gnu.org>.
35344
35345 2009-08-08  Bruno Haible  <bruno@clisp.org>
35346
35347         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
35348         for the various Unix platforms.
35349         * doc/posix-headers/limits.texi: Update platforms list regarding
35350         HOST_NAME_MAX.
35351         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35352
35353 2009-08-07  Jim Meyering  <meyering@redhat.com>
35354
35355         selinux-at: fix typo in a comment
35356         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
35357         Spotted by Paolo Bonzini.
35358
35359         selinux-at: remove redundant m4 code, add documentation
35360         * modules/selinux-at (configure.ac): Remove redundant code.
35361         LIB_SELINUX is already set via the dependent module, selinux-h.
35362         (Include): Add quotes around selinux-at.h.
35363         * lib/selinux-at.h: Add documentation.
35364         Reported by Bruno Haible in
35365         http://marc.info/?l=gnulib-bug&m=124958988300749
35366
35367 2009-08-07  Bruno Haible  <bruno@clisp.org>
35368
35369         Avoid link error on MacOS X 10.3 and 10.4.
35370         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
35371         on non-ELF systems.
35372         * lib/argp-pv.c (argp_program_version): Likewise.
35373         Reported by Simon Josefsson.
35374
35375 2009-08-07  Simon Josefsson  <simon@josefsson.org>
35376
35377         * tests/test-version-etc.sh: Use $EXEEXT.
35378
35379 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
35380
35381         update-copyright: update documentation to point to maint.mk
35382         * build-aux/update-copyright: Here.
35383
35384 2009-08-06  Jim Meyering  <meyering@redhat.com>
35385
35386         maint.mk: support update-copyright-local
35387         * top/maint.mk (update-copyright-local): Define place-holder.
35388         (update-copyright): Depend on $(update-copyright-local).
35389
35390 2009-08-06  Jim Meyering  <meyering@redhat.com>
35391
35392         selinux-at: new module
35393         Initially written for coreutils, this module will soon be
35394         used by findutils, too.
35395         * MODULES.html.sh [Misc]: Add selinux-at.
35396         * lib/selinux-at.h: New file, from coreutils.
35397         * lib/selinux-at.c: Likewise.
35398         * modules/selinux-at: Likewise.
35399         (License): Change from LGPL to GPL, since it depends
35400         on the GPL'd openat module.
35401
35402         doc: update README
35403         * README: Remove references to cogito.
35404         Remove cvs-repo-updating instructions from 2007.
35405         Don't imply that CVS is better if you have limited disk space.
35406
35407 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35408
35409         update-copyright: support C-style comments
35410         * build-aux/update-copyright: Implement and document.
35411         * tests/test-update-copyright.sh: Test.
35412
35413 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35414
35415         update-copyright: support omitted "(C)"
35416         * build-aux/update-copyright: Implement and document.  Also,
35417         allow variable whitespace before "(C)".
35418         * tests/test-update-copyright.sh: Test.
35419
35420 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35421
35422         update-copyright: don't trip on non-FSF copyright statements
35423         * build-aux/update-copyright: Fix so that the first correctly
35424         formatted FSF copyright statement is recognized no matter what
35425         appears before it.  Update documentation.
35426         * tests/test-update-copyright.sh: Test that.
35427
35428 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35429
35430         update-copyright: clean up code a little
35431         * build-aux/update-copyright: Append "_re" to the name of any
35432         variable holding a regular expression.
35433         Replace "old" and "new" with "stmt" in variable names.
35434         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
35435         handled correctly.
35436         Format code more consistently.
35437
35438 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35439
35440         update-copyright-tests: improve portability
35441         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
35442         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
35443
35444 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
35445
35446         update-copyright: support @copyright{} and &copy;
35447         * build-aux/update-copyright: Implement and document.
35448         * tests/test-update-copyright.sh: Test.
35449
35450 2009-08-04  Jim Meyering  <meyering@redhat.com>
35451
35452         update-copyright-tests: correctly test EOL=\r\n handling
35453         * tests/test-update-copyright.sh: Put \r at the end of some lines
35454         for the dos-eol tests.  Based on a patch by Joel E. Denny.
35455
35456         maint.mk: make update-copyright exclusion list more configurable
35457         * top/maint.mk (update-copyright): Default to excluding COPYING,
35458         but allow an override, in case someone does want to update that file.
35459
35460         maint.mk: don't update copyright date in COPYING
35461         * top/maint.mk (update-copyright): Exclude COPYING.
35462
35463         maint.mk: add a copyright-updating rule
35464         * top/maint.mk (update-copyright): New rule.
35465         Derived from coreutils/Makefile.am.
35466
35467         update-copyright: rename some variables
35468         * build-aux/update-copyright: Rename a few variables for clarity.
35469         Tweak syntax.  List Joel E. Denny as coauthor.
35470
35471 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
35472
35473         update-copyright: fix bug for 2-digit last year and add tests
35474         * build-aux/update-copyright: Fix bug.
35475         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
35476         specified.
35477         * modules/update-copyright-tests: New
35478         * tests/test-update-copyright.sh: New.
35479
35480 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
35481
35482         update-copyright: handle leading tabs in line prefix
35483         * build-aux/update-copyright: Count leading tabs as 8 spaces
35484         when computing margin.  This helps with the formatting of
35485         ChangeLogs, for example.
35486         Fix documentation a little.
35487
35488 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
35489
35490         update-copyright: support EOL=\r\n
35491         * build-aux/update-copyright: Implement that.
35492
35493 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
35494
35495         update-copyright: automatically format copyright statements
35496         * build-aux/update-copyright: Implement that.
35497         Also, be a little more predictable and safer by always failing
35498         when the full copyright format is not perfectly recognized as an
35499         unbroken whole.  Discussed at
35500         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
35501         Rewrite documentation.
35502
35503 2009-08-03  Bruno Haible  <bruno@clisp.org>
35504
35505         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
35506
35507 2009-08-02  Bruno Haible  <bruno@clisp.org>
35508
35509         Tests for module 'uname'.
35510         * modules/uname-tests: New file.
35511         * tests/test-uname.c: New file.
35512
35513         New module 'uname'.
35514         * lib/uname.c: New file.
35515         * m4/uname.m4: New file.
35516         * modules/uname: New file.
35517         * doc/posix-functions/uname.texi: Mention the new module.
35518
35519 2009-08-02  Bruno Haible  <bruno@clisp.org>
35520
35521         Tests for module 'sys_utsname'.
35522         * modules/sys_utsname-tests: New file.
35523         * tests/test-sys_utsname.c: New file.
35524
35525         New module 'sys_utsname'.
35526         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
35527         * m4/sys_utsname_h.m4: New file.
35528         * modules/sys_utsname: New file.
35529         * doc/posix-headers/sys_utsname.texi: Mention the new module.
35530
35531 2009-08-02  Bruno Haible  <bruno@clisp.org>
35532
35533         Implicitly initialize the sockets library.
35534         * lib/gethostname.c: Include sockets.h.
35535         (rpl_gethostname): Invoke gl_sockets_startup.
35536         * lib/socket.c: Include sockets.h.
35537         (rpl_socket): Invoke gl_sockets_startup.
35538         * modules/gethostname (Depends-on): Add sockets.
35539         * modules/socket (Depends-on): Likewise.
35540         * tests/test-poll.c: Don't include sockets.h.
35541         (main): Don't invoke gl_sockets_startup.
35542         * tests/test-select.c: Don't include sockets.h.
35543         (main): Don't invoke gl_sockets_startup.
35544
35545 2009-08-02  Bruno Haible  <bruno@clisp.org>
35546
35547         Allow multiple calls to gl_sockets_startup.
35548         * lib/sockets.c (initialized_sockets_version): New variable.
35549         (gl_sockets_startup): Do nothing if already called for this or a higher
35550         version.
35551         (gl_sockets_cleanup): Reset initialized_sockets_version.
35552
35553 2009-08-03  Simon Josefsson  <simon@josefsson.org>
35554
35555         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
35556         different project/version.
35557
35558 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
35559             Bruno Haible  <bruno@clisp.org>
35560
35561         Tests for module 'pipe-filter-gi'.
35562         * modules/pipe-filter-gi-tests: New file.
35563         * tests/test-pipe-filter-gi1.sh: New file.
35564         * tests/test-pipe-filter-gi1.c: New file.
35565         * tests/test-pipe-filter-gi2.sh: New file.
35566         * tests/test-pipe-filter-gi2-main.c: New file.
35567         * tests/test-pipe-filter-gi2-child.c: New file.
35568
35569         New module 'pipe-filter-gi'.
35570         * lib/pipe-filter-gi.c: New file.
35571         * modules/pipe-filter-gi: New file.
35572
35573 2009-08-02  Bruno Haible  <bruno@clisp.org>
35574             Paolo Bonzini  <bonzini@gnu.org>
35575
35576         Tests for module 'pipe-filter-ii'.
35577         * modules/pipe-filter-ii-tests: New file.
35578         * tests/test-pipe-filter-ii1.sh: New file.
35579         * tests/test-pipe-filter-ii1.c: New file.
35580         * tests/test-pipe-filter-ii2.sh: New file.
35581         * tests/test-pipe-filter-ii2-main.c: New file.
35582         * tests/test-pipe-filter-ii2-child.c: New file.
35583
35584         New module 'pipe-filter-ii'.
35585         * lib/pipe-filter.h: New file.
35586         * lib/pipe-filter-ii.c: New file.
35587         * lib/pipe-filter-aux.h: New file.
35588         * modules/pipe-filter-ii: New file.
35589
35590 2009-08-02  Simon Josefsson  <simon@josefsson.org>
35591
35592         * lib/gc-libgcrypt.c: Change copyright to FSF.
35593         * lib/gc-gnulib.c: Likewise.
35594
35595 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
35596
35597         * lib/gethostname.c: Include limits.h.
35598
35599 2009-08-02  Simon Josefsson  <simon@josefsson.org>
35600             Bruno Haible  <bruno@clisp.org>
35601
35602         Ensure HOST_NAME_MAX as part of the gethostname module.
35603         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
35604         define also HOST_NAME_MAX.
35605         * tests/test-gethostname.c: Include <limits.h>.
35606         (main): Check also HOST_NAME_MAX.
35607         * doc/posix-headers/limits.texi: Document the mingw problem.
35608
35609 2009-08-02  Bruno Haible  <bruno@clisp.org>
35610
35611         * lib/gethostname.c (gethostname): Fix handling of large len argument.
35612         Add comments.
35613
35614 2009-03-31  Simon Josefsson  <simon@josefsson.org>
35615
35616         * lib/gethostname.c: Add Windows wrapper.
35617         * m4/gethostname.m4: Look for gethostname in -lws2_32.
35618         * modules/gethostname: Depend on sys_socket & errno, for also
35619         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
35620         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
35621
35622 2009-07-31  Jim Meyering  <meyering@redhat.com>
35623
35624         getloadavg: fix symbol name in comment
35625         * lib/getloadavg.c: Correct a typo I introduced when adding
35626         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
35627         Matt Kraai spotted the problem.
35628
35629 2009-07-29  Matt Kraai  <mkraai@beckman.com>
35630
35631         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
35632         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
35633         code also if ! defined N_NAME_POINTER.
35634         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
35635         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
35636         but the n_name member is a 12-byte array.
35637
35638 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
35639
35640         update-copyright: generalize comment handling
35641         * build-aux/update-copyright: Handle copyright statements
35642         within more comment styles.
35643         Document usage.
35644         Report any file with an external copyright holder or parse failure.
35645
35646 2009-07-29  Jim Meyering  <meyering@redhat.com>
35647
35648         mktime: correct setting of REPLACE_MKTIME
35649         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
35650
35651         update-copyright: new module
35652         * modules/update-copyright: New file.
35653         * build-aux/update-copyright: New file.
35654         * MODULES.html.sh (maint+release support): Add update-copyright.
35655
35656 2009-07-27  Bruno Haible  <bruno@clisp.org>
35657
35658         Fix compilation error when <ctime> is used and mktime is replaced.
35659         * lib/time.in.h (mktime): New declaration.
35660         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
35661         REPLACE_MKTIME instead of defining mktime in config.h.
35662         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
35663         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
35664         Reported by Ross McFarland <rwmcfa1@neces.com>.
35665
35666 2009-07-27  Bruno Haible  <bruno@clisp.org>
35667
35668         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
35669         Reported by Matt Kraai <mkraai@beckman.com>.
35670
35671 2009-07-25  Jim Meyering  <meyering@redhat.com>
35672
35673         maint.mk: avoid warnings about missing files
35674         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
35675         diagnostic when .prev-version does not exist.
35676         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
35677         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
35678         nonexistent cfg.mk.
35679         Suggestions from Simon Josefsson.
35680
35681 2009-07-25  Bruno Haible  <bruno@clisp.org>
35682
35683         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
35684         defined as macros. Needed on QNX 6.4.1.
35685         Reported by Matt Kraai <mkraai@beckman.com>.
35686
35687 2009-07-23  Jim Meyering  <meyering@redhat.com>
35688
35689         maint.mk: invoke "make dist" with a working value of XZ_OPT
35690         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
35691
35692 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
35693
35694         Make fseeko.c compile on QNX.
35695         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
35696
35697 2009-07-22  Peter Simons  <simons@cryp.to>
35698
35699         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
35700         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
35701         * lib/md4.h: Likewise.
35702         * lib/md5.h: Likewise.
35703         * lib/sha1.h: Likewise.
35704         * lib/sha256.h: Likewise.
35705         * lib/sha512.h: Likewise.
35706
35707         tests-sha1: don't assign literal string to 'char *' variable
35708         * tests/test-sha1.c (main): Declare locals with "const" to match
35709         attributes of the right hand side.
35710
35711 2009-07-21  Eric Blake  <ebb9@byu.net>
35712
35713         dup2: fix more mingw problems
35714         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
35715         fd to itself.
35716         * doc/posix-functions/dup2.texi (dup2): Document the bug.
35717         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
35718         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
35719         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
35720         care of mingw bugs.
35721
35722 2009-07-21  Jim Meyering  <meyering@redhat.com>
35723
35724         vc-list-files: avoid failure when /bin/sh is dash
35725         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
35726         On some Debian based systems, /bin/sh is a symlink to dash, and running
35727         this command would omit the "/" following each 'tests' prefix:
35728           dash -x build-aux/vc-list-files -C . tests
35729         That is because bash and dash work differently:
35730           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
35731           bash ok
35732           dash odd
35733
35734 2009-07-21  Eric Blake  <ebb9@byu.net>
35735
35736         dup2-tests: test previous patch
35737         * modules/dup2-tests: New file.
35738         * tests/test-dup2.c: Likewise.
35739         * tests/test-open.c (main): Avoid unspecified behavior.
35740         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
35741         test.
35742
35743         dup2: work around mingw and cygwin 1.5 bug
35744         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
35745         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35746         * modules/unistd (Makefile.am): Substitute it.
35747         * lib/unistd.in.h (dup2): Declare the replacement.
35748         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
35749         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
35750         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
35751         * modules/execute (Depends-on): Add dup2.
35752         * modules/fseterr (Depends-on): Likewise.
35753         * modules/pipe (Depends-on): Likewise.
35754         * modules/posix_spawn-internal (Depends-on): Likewise.
35755
35756 2009-07-21  Bruno Haible  <bruno@clisp.org>
35757
35758         * modules/.gitattributes: New file.
35759
35760 2009-07-20  Bruno Haible  <bruno@clisp.org>
35761
35762         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
35763         (main): Use it.
35764
35765 2009-07-20  Eric Blake  <ebb9@byu.net>
35766
35767         test-pipe: make a bit more robust.
35768         * tests/test-pipe.c (myerr): Allow error messages regardless of
35769         what we do to stderr.
35770         (test_pipe): Rearrange to avoid deadlock.
35771         (child_main): Try a larger read, to ensure we avoided deadlock.
35772         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
35773         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
35774         if misused.
35775
35776 2009-07-19  Jim Meyering  <meyering@redhat.com>
35777
35778         fts: avoid false-positive cycle-detection
35779         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
35780         for each new command line argument.
35781
35782 2009-07-19  Bruno Haible  <bruno@clisp.org>
35783
35784         Fix build error on mingw with the modules sys_select and unistd.
35785         * modules/acl-tests (Depends-on): Add close.
35786         * modules/binary-io-tests (Depends-on): Likewise.
35787         * modules/closein-tests (Depends-on): Likewise.
35788         * modules/flock-tests (Depends-on): Likewise.
35789         * modules/fsync-tests (Depends-on): Likewise.
35790         * modules/lseek-tests (Depends-on): Likewise.
35791         * modules/pipe-tests (Depends-on): Likewise.
35792         * modules/posix_spawn-tests (Depends-on): Likewise.
35793         * modules/posix_spawnp-tests (Depends-on): Likewise.
35794         * modules/stat-time-tests (Depends-on): Likewise.
35795         * modules/yesno-tests (Depends-on): Likewise.
35796
35797 2009-07-19  Bruno Haible  <bruno@clisp.org>
35798
35799         Unify conditionals.
35800         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
35801         macros, not at the compiler macros.
35802         * lib/pipe.c: Likewise.
35803         * lib/execute.c: Likewise.
35804         * lib/spawni.c: Likewise.
35805
35806 2009-07-19  Bruno Haible  <bruno@clisp.org>
35807
35808         Fix handling of closed stdin/stdout/stderr on mingw.
35809         * lib/w32spawn.h: Include unistd.h.
35810         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
35811         file descriptor with O_NOINHERIT flag.
35812         (fd_safer_noinherit): New function, based on fd-safer.c.
35813         (dup_safer_noinherit): New function, based on dup-safer.c.
35814         (undup_safer_noinherit): New function.
35815         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
35816         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
35817         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
35818         instead of fd_safer.
35819         * tests/test-pipe.c: Include <windows.h>.
35820         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
35821         result.
35822
35823         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
35824         from main.
35825         (test_pipe): Pass an extra argument for disambiguation.
35826         (main): Invoke parent_main or child_main.
35827
35828         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
35829         consistently.
35830
35831 2009-07-18  Eric Blake  <ebb9@byu.net>
35832
35833         test-pipe: fix mingw build
35834         * tests/test-pipe.c (main): Avoid fcntl on mingw.
35835
35836 2009-07-18  Bruno Haible  <bruno@clisp.org>
35837
35838         * modules/pipe-tests (Makefile.am): Fix typo.
35839
35840 2009-07-18  Eric Blake  <ebb9@byu.net>
35841
35842         error: fix mingw build
35843         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
35844         Reported by Bruno Haible.
35845
35846         error: avoid undefined use of stdout
35847         * lib/error.c (error, error_at_line): Check that fd 1 is open
35848         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
35849         is handling faults and the close_stdout module wants to report the
35850         detection of closed stdout as an error.
35851
35852 2009-07-17  Eric Blake  <ebb9@byu.net>
35853
35854         pipe: be robust in face of closed fds
35855         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
35856         should cause child to misbehave.
35857         * modules/pipe-tests: New module.
35858         * tests/test-pipe.c: New file.
35859         * tests/test-pipe.sh: New file.
35860         Reported by Akim Demaille.
35861
35862 2009-07-14  Bruno Haible  <bruno@clisp.org>
35863
35864         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
35865         Reported by anonymous kc.
35866
35867 2009-07-07  Jim Meyering  <meyering@redhat.com>
35868
35869         maint.mk: don't look for translatable strings in *.m4 or *.mk
35870         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
35871         when searching for translatable strings.
35872
35873 2009-07-05  Jim Meyering  <meyering@redhat.com>
35874
35875         remove superfluous parentheses in STREQ definition
35876         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
35877         * lib/getugroups.c (STREQ): Likewise.
35878         * lib/fnmatch.c (STREQ): Likewise.
35879         Spotted by Bruno Haible.
35880
35881 2009-07-04  Jim Meyering  <meyering@redhat.com>
35882
35883         argv-iter: new module
35884         * MODULES.html.sh: Add argv-iter.
35885         * lib/argv-iter.c, lib/argv-iter.h: New files.
35886         * modules/argv-iter: New file.
35887         * modules/argv-iter-tests: New file.
35888         * tests/test-argv-iter.c: Test it.
35889
35890 2009-07-04  Bruno Haible  <bruno@clisp.org>
35891
35892         Fix assertion.
35893         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
35894         contains more exact copies of a given entry than file2, leave the extra
35895         copies unpaired rather than aborting.
35896         Reported by Eric Blake.
35897
35898 2009-07-02  Bruno Haible  <bruno@clisp.org>
35899
35900         Speedup git-merge-changelog for git cherry-pick.
35901         * lib/git-merge-changelog.c (struct entries_mapping): New type.
35902         (entries_mapping_get): New function, extracted from compute_mapping.
35903         (entries_mapping_reverse_get): New function.
35904         (compute_mapping): Add a 'full' argument. Return the result in a
35905         'struct entries_mapping'.
35906         (main): Update. Access the mappings through entries_mapping_get.
35907         Reported by Eric Blake.
35908
35909 2009-07-02  Bruno Haible  <bruno@clisp.org>
35910
35911         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
35912         best_i.
35913
35914 2009-07-02  Bruno Haible  <bruno@clisp.org>
35915
35916         Speed up approximate search for matching ChangeLog entries.
35917         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
35918         argument. Call fstrcmp_bounded instead of fstrcmp.
35919         (compute_mapping, try_split_merged_entry, main): Update callers.
35920
35921 2009-07-02  Bruno Haible  <bruno@clisp.org>
35922
35923         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
35924
35925 2009-06-30  Bruno Haible  <bruno@clisp.org>
35926
35927         Reduce the number of uc_is_cased calls.
35928         * lib/unicase.h (casing_suffix_context_t): Add
35929         'first_char_except_ignorable' field.
35930         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
35931         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
35932         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
35933         Update initializer.
35934         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
35935         case-ignorable characters.
35936         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
35937         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
35938         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
35939         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
35940         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
35941
35942 2009-06-30  Bruno Haible  <bruno@clisp.org>
35943
35944         Tests for module 'unicase/ignorable'.
35945         * modules/unicase/ignorable-tests: New file.
35946         * tests/unicase/test-ignorable.c: New file, generated by
35947         gen-uni-tables.
35948
35949         Tests for module 'unicase/cased'.
35950         * modules/unicase/cased-tests: New file.
35951         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
35952         * tests/unicase/test-predicate-part1.h: New file, derived from
35953         tests/unictype/test-predicate-part1.h.
35954         * tests/unicase/test-predicate-part2.h: New file, same as
35955         tests/unictype/test-predicate-part2.h.
35956
35957         Fix evaluation of "Before C" condition of FINAL_SIGMA.
35958         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
35959         (output_casing_properties): New function.
35960         (main): Call it.
35961         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
35962         * lib/unicase/cased.c: Include unictype/bitmap.h.
35963         (uc_is_cased): Define through a bitmap lookup.
35964         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
35965         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
35966         (uc_is_case_ignorable): Define through a bitmap lookup.
35967         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
35968         lib/unictype/bitmap.h.
35969         (Depends-on): Add inline. Clean up.
35970         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
35971         lib/unictype/bitmap.h.
35972         (Depends-on): Add inline. Clean up.
35973         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
35974         recognition.
35975         * tests/unicase/test-u16-tolower.c (main): Likewise.
35976         * tests/unicase/test-u32-tolower.c (main): Likewise.
35977
35978 2009-06-30  Bruno Haible  <bruno@clisp.org>
35979
35980         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
35981         * lib/unicase/u16-casemap.c: Likewise.
35982         * lib/unicase/u32-casemap.c: Likewise.
35983
35984 2009-06-29  Bruno Haible  <bruno@clisp.org>
35985
35986         Define u32_casefold as a wrapper around u32_ct_casefold.
35987         * lib/unicase/u32-casefold.c: Update.
35988         * modules/unicase/u32-casefold (Depends-on): Add
35989         unicase/u32-ct-casefold, unicase/empty-prefix-context,
35990         unicase/empty-suffix-context. Clean up.
35991
35992         Define u16_casefold as a wrapper around u16_ct_casefold.
35993         * lib/unicase/u16-casefold.c: Update.
35994         * modules/unicase/u16-casefold (Depends-on): Add
35995         unicase/u16-ct-casefold, unicase/empty-prefix-context,
35996         unicase/empty-suffix-context. Clean up.
35997
35998         Define u8_casefold as a wrapper around u8_ct_casefold.
35999         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
36000         * lib/unicase/u8-casefold.c: Update.
36001         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
36002         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36003
36004         Define u32_totitle as a wrapper around u32_ct_totitle.
36005         * lib/unicase/u32-totitle.c: Update.
36006         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
36007         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36008
36009         Define u16_totitle as a wrapper around u16_ct_totitle.
36010         * lib/unicase/u16-totitle.c: Update.
36011         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
36012         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36013
36014         Define u8_totitle as a wrapper around u8_ct_totitle.
36015         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
36016         functions.
36017         (FUNC): Delegate to U_CT_TOTITLE.
36018         * lib/unicase/u8-totitle.c: Update.
36019         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
36020         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36021
36022         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
36023         invocation.
36024         * modules/unicase/u32-tolower (Depends-on): Add
36025         unicase/empty-prefix-context, unicase/empty-suffix-context.
36026
36027         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
36028         invocation.
36029         * modules/unicase/u16-tolower (Depends-on): Add
36030         unicase/empty-prefix-context, unicase/empty-suffix-context.
36031
36032         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
36033         * modules/unicase/u8-tolower (Depends-on): Add
36034         unicase/empty-prefix-context, unicase/empty-suffix-context.
36035
36036         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
36037         invocation.
36038         * modules/unicase/u32-toupper (Depends-on): Add
36039         unicase/empty-prefix-context, unicase/empty-suffix-context.
36040
36041         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
36042         invocation.
36043         * modules/unicase/u16-toupper (Depends-on): Add
36044         unicase/empty-prefix-context, unicase/empty-suffix-context.
36045
36046         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
36047         * modules/unicase/u8-toupper (Depends-on): Add
36048         unicase/empty-prefix-context, unicase/empty-suffix-context.
36049
36050         New module 'unicase/u32-ct-casefold'.
36051         * lib/unicase/u32-ct-casefold.c: New file.
36052         * modules/unicase/u32-ct-casefold: New file.
36053
36054         New module 'unicase/u16-ct-casefold'.
36055         * lib/unicase/u16-ct-casefold.c: New file.
36056         * modules/unicase/u16-ct-casefold: New file.
36057
36058         New module 'unicase/u8-ct-casefold'.
36059         * lib/unicase/u8-ct-casefold.c: New file.
36060         * lib/unicase/u-ct-casefold.h: New file, derived from
36061         lib/unicase/u-casefold.h.
36062         * modules/unicase/u8-ct-casefold: New file.
36063
36064         New module 'unicase/u32-ct-totitle'.
36065         * lib/unicase/u32-ct-totitle.c: New file.
36066         * modules/unicase/u32-ct-totitle: New file.
36067
36068         New module 'unicase/u16-ct-totitle'.
36069         * lib/unicase/u16-ct-totitle.c: New file.
36070         * modules/unicase/u16-ct-totitle: New file.
36071
36072         New module 'unicase/u8-ct-totitle'.
36073         * lib/unicase/u8-ct-totitle.c: New file.
36074         * lib/unicase/u-ct-totitle.h: New file, derived from
36075         lib/unicase/u-totitle.h.
36076         * modules/unicase/u8-ct-totitle: New file.
36077
36078         New module 'unicase/u32-ct-tolower'.
36079         * lib/unicase/u32-ct-tolower.c: New file.
36080         * modules/unicase/u32-ct-tolower: New file.
36081
36082         New module 'unicase/u16-ct-tolower'.
36083         * lib/unicase/u16-ct-tolower.c: New file.
36084         * modules/unicase/u16-ct-tolower: New file.
36085
36086         New module 'unicase/u8-ct-tolower'.
36087         * lib/unicase/u8-ct-tolower.c: New file.
36088         * modules/unicase/u8-ct-tolower: New file.
36089
36090         New module 'unicase/u32-ct-toupper'.
36091         * lib/unicase/u32-ct-toupper.c: New file.
36092         * modules/unicase/u32-ct-toupper: New file.
36093
36094         New module 'unicase/u16-ct-toupper'.
36095         * lib/unicase/u16-ct-toupper.c: New file.
36096         * modules/unicase/u16-ct-toupper: New file.
36097
36098         New module 'unicase/u8-ct-toupper'.
36099         * lib/unicase/u8-ct-toupper.c: New file.
36100         * modules/unicase/u8-ct-toupper: New file.
36101
36102         Add context arguments to u*_casemap functions.
36103         * lib/unicase/unicasemap.h: Include unicase.h.
36104         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
36105         suffix_context arguments.
36106         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
36107         functions.
36108         (FUNC): Add prefix_context and suffix_context arguments. Use
36109         uc_is_cased and uc_is_case_ignorable.
36110         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
36111         * lib/unicase/u16-casemap.c: Likewise.
36112         * lib/unicase/u32-casemap.c: Likewise.
36113         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
36114         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36115         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
36116         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36117         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
36118         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36119
36120         New module 'unicase/u32-suffix-context'.
36121         * lib/unicase/u32-suffix-context.c: New file.
36122         * modules/unicase/u32-suffix-context: New file.
36123
36124         New module 'unicase/u16-suffix-context'.
36125         * lib/unicase/u16-suffix-context.c: New file.
36126         * modules/unicase/u16-suffix-context: New file.
36127
36128         New module 'unicase/u8-suffix-context'.
36129         * lib/unicase/u8-suffix-context.c: New file.
36130         * lib/unicase/u-suffix-context.h: New file.
36131         * modules/unicase/u8-suffix-context: New file.
36132
36133         New module 'unicase/empty-suffix-context'.
36134         * lib/unicase/empty-suffix-context.c: New file.
36135         * modules/unicase/empty-suffix-context: New file.
36136
36137         New module 'unicase/u32-prefix-context'.
36138         * lib/unicase/u32-prefix-context.c: New file.
36139         * modules/unicase/u32-prefix-context: New file.
36140
36141         New module 'unicase/u16-prefix-context'.
36142         * lib/unicase/u16-prefix-context.c: New file.
36143         * modules/unicase/u16-prefix-context: New file.
36144
36145         New module 'unicase/u8-prefix-context'.
36146         * lib/unicase/u8-prefix-context.c: New file.
36147         * lib/unicase/u-prefix-context.h: New file.
36148         * lib/unicase/context.h: New file.
36149         * modules/unicase/u8-prefix-context: New file.
36150
36151         New module 'unicase/empty-prefix-context'.
36152         * lib/unicase/empty-prefix-context.c: New file.
36153         * modules/unicase/empty-prefix-context: New file.
36154
36155         New module 'unicase/ignorable'.
36156         * lib/unicase/ignorable.c: New file.
36157         * modules/unicase/ignorable: New file.
36158
36159         New module 'unicase/cased'.
36160         * lib/unicase/caseprop.h: New file.
36161         * lib/unicase/cased.c: New file.
36162         * modules/unicase/cased: New file.
36163
36164         New functions for case mapping of substrings.
36165         * lib/unicase.h (casing_prefix_context_t): New type.
36166         (unicase_empty_prefix_context): New variable.
36167         (u8_casing_prefix_context, u16_casing_prefix_context,
36168         u32_casing_prefix_context, u8_casing_prefixes_context,
36169         u16_casing_prefixes_context, u32_casing_prefixes_context): New
36170         declarations.
36171         (casing_suffix_context_t): New type.
36172         (unicase_empty_suffix_context): New variable.
36173         (u8_casing_suffix_context, u16_casing_suffix_context,
36174         u32_casing_suffix_context, u8_casing_suffixes_context,
36175         u16_casing_suffixes_context, u32_casing_suffixes_context,
36176         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
36177         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
36178         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
36179         declarations.
36180
36181 2009-06-28  Jim Meyering  <meyering@redhat.com>
36182
36183         boostrap: indent only with spaces
36184         * build-aux/bootstrap: Indent only with spaces, never TABs.
36185
36186         bootstrap: split long lines
36187         * build-aux/bootstrap: Keep line length < 80.
36188
36189         bootstrap: sync from coreutils
36190         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
36191         just as autoreconf does.  Verify a list of prerequisite
36192         package-name,version-number pairs if defined in bootstrap.conf.
36193         Refer to README-prereq, if prerequisites are not satisfied.
36194
36195 2009-06-27  Eric Blake  <ebb9@byu.net>
36196
36197         tests: add test for bogus NULL definition
36198         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
36199         * tests/test-stdlib.c: Likewise.
36200         * tests/test-string.c: Likewise.
36201         * tests/test-locale.c: Likewise.
36202         * tests/test-unistd.c: Likewise.
36203         * modules/stdio-tests (Depends-on): Add verify.
36204         * modules/stdlib-tests (Depends-on): Likewise.
36205         * modules/string-tests (Depends-on): Likewise.
36206         * modules/locale-tests (Depends-on): Likewise.
36207         * modules/unistd-tests (Depends-on): Likewise.
36208
36209 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
36210
36211         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
36212         self-explaining comment.
36213         * m4/selinux-selinux-h: Update serial.
36214         (gl_LIBSELINUX): New macro, adding a warning for missing development
36215         packages to code extracted from...
36216         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
36217         Add warning for missing development packages here, too.
36218
36219 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
36220
36221         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
36222
36223 2009-06-25  Eric Blake  <ebb9@byu.net>
36224
36225         version-etc: fix regression
36226         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
36227         gcc.
36228         (version_etc): Use it, to catch bugs with trailing NULL.
36229         * lib/version-etc.c (version_etc_arn): Delete unused argument.
36230         (version_etc_va): Fix logic bug.
36231         * modules/version-etc-tests: Add test.
36232         * tests/test-version-etc.c: New file.
36233         * tests/test-version-etc.sh: Likewise.
36234
36235 2009-06-25  Sam Steingold  <sds@gnu.org>
36236
36237         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
36238         mbtowc declaration.
36239
36240 2009-06-25  Eric Blake  <ebb9@byu.net>
36241
36242         fpurge: migrate into <stdio.h>
36243         * lib/fpurge.h: Delete...
36244         * lib/stdio.in.h (fpurge): ...and declare here, instead.
36245         * lib/fpurge.c (fpurge): Change declaring header.
36246         * modules/fpurge (Files): Drop deleted file.
36247         (Depends-on): Add stdio.
36248         (configure.ac): Set witness.
36249         * modules/stdio (Makefile.am): Support fpurge macros.
36250         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36251         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
36252         * lib/fflush.c: Update client.
36253         * tests/test-fpurge.c: Likewise.
36254         * NEWS: Mention the change.
36255
36256 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36257
36258         * lib/argp-version-etc.c (program_authors): Add const
36259         qualifier.
36260         * lib/version-etc.c: Fix typos in the comments.
36261         * modules/argp-version-etc: Depends on version-etc.
36262
36263 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36264
36265         argp-version-etc: new module.
36266
36267         * lib/argp-version-etc.c: New file.
36268         * lib/argp-version-etc.h: New file.
36269         * modules/argp-version-etc: New file.
36270         * modules/argp-version-etc-tests: New file.
36271         * tests/test-argp-version-etc.c: New test.
36272         * tests/test-argp-version-etc-1.sh: New test.
36273
36274 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36275
36276         Provide additional interfaces and documentation for version-etc
36277         module.
36278
36279         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
36280         interfaces.
36281         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
36282         prototypes.
36283
36284 2009-06-24  Bruno Haible  <bruno@clisp.org>
36285
36286         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
36287         HAVE_LIB${NAME} macro.
36288         Reported by Sam Steingold <sds@gnu.org>.
36289
36290 2009-06-23  Simon Josefsson  <simon@josefsson.org>
36291
36292         * modules/hash-tests (test_hash_LDADD): Link to libintl when
36293         needed.
36294
36295 2009-06-21  Bruno Haible  <bruno@clisp.org>
36296
36297         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
36298         work.
36299         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
36300         together with LIB${NAME}, LTLIB${NAME}.
36301         Reported by Sam Steingold <sds@gnu.org>.
36302
36303 2009-06-20  Jim Meyering  <meyering@redhat.com>
36304
36305         tests: make sc_require_test_exit_idiom more generic
36306         * top/maint.mk (Exit_witness_file): New overridable variable.
36307         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
36308         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
36309
36310 2009-06-19  Jim Meyering  <meyering@redhat.com>
36311
36312         hash: reverse order of src/dst parameters in an internal interface
36313         * lib/hash.c (transfer_entries): Reverse order of parameters to
36314         put DST before SRC.  Adjust callers.
36315
36316         tests: test-hash: avoid wholesale duplication
36317         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
36318         Instead, use a loop and add a single conditional.
36319
36320         tests: test-hash: allow seed selection via a command line argument
36321         * tests/test-hash.c (get_seed): New function.
36322         (main): Use it.
36323
36324 2009-06-19  Eric Blake  <ebb9@byu.net>
36325
36326         hash: avoid memory leak on allocation failure
36327         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
36328         failure.  Factor repeated algorithm...
36329         (transfer_entries): ...into new helper routine.
36330         (hash_delete): React to hash_rehash return value.
36331
36332         hash: reduce memory pressure in hash_rehash no-op case
36333         * lib/hash.c (next_prime): Avoid overflow.
36334         (hash_initialize): Factor bucket size computation...
36335         (compute_bucket_size): ...into new helper function.
36336         (hash_rehash): Use new function and open coding to reduce memory
36337         pressure, and avoid a memory leak in USE_OBSTACK code.
36338         Reported by Jim Meyering.
36339
36340 2009-06-18  Eric Blake  <ebb9@byu.net>
36341
36342         hash: make rotation more obvious
36343         * modules/hash (Depends-on): Add bitrotate and stdint.
36344         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
36345         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
36346         (SIZE_MAX): Rely on headers for definition.
36347         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
36348         (raw_hasher): Use rotr_sz.
36349         Suggested by Jim Meyering.
36350
36351         hash: fix memory leak in last patch
36352         * lib/hash.c (hash_rehash): Avoid memory leak.
36353
36354         hash: avoid no-op rehashing
36355         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
36356
36357         hash: provide default callback functions
36358         * lib/hash.c (raw_hasher, raw_comparator): New functions.
36359         (hash_initialize): Use them as defaults.
36360         * tests/test-hash.c (main): Test this.
36361
36362         hash: minor optimization
36363         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
36364         when possible.
36365         (hash_initialize): Document this promise.
36366         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
36367         * tests/test-hash.c (hash_compare_strings): Test this.
36368
36369 2009-06-18  Bruno Haible  <bruno@clisp.org>
36370
36371         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
36372         going to be replaced anyway.
36373
36374 2009-06-18  Bruno Haible  <bruno@clisp.org>
36375
36376         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
36377         in one place.
36378         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
36379         be replaced anyway.
36380
36381 2009-06-18  Eric Blake  <ebb9@byu.net>
36382
36383         hash: check for resize before insertion
36384         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
36385         threshold before insertion, so that a pathological hash_rehash
36386         that fills every bucket can still trigger another rehash.
36387
36388 2009-06-18  Jim Meyering  <meyering@redhat.com>
36389
36390         hash-tests: add a loop around the small tests
36391         * tests/test-hash.c (main): Repeat small tests with selected
36392         small initial table sizes.
36393
36394 2009-06-17  Eric Blake  <ebb9@byu.net>
36395
36396         hash: minor cleanups
36397         * lib/hash.h (hash_entry): Make opaque, by moving...
36398         * lib/hash.c (hash_entry): ...here.
36399         (hash_insert): Clarify restrictions on what can be inserted.
36400         (hash_get_next): Clarify when it is safe to remove an element
36401         during traversal.
36402         (check_tuning): Skip verification when tuning is known safe.
36403         (hash_initialize): Clarify restrictions on tuning.
36404
36405 2009-06-17  Jim Meyering  <jim@meyering.net>
36406         and Eric Blake  <ebb9@byu.net>
36407
36408         hash-tests: new module
36409         * modules/hash-tests: New file.
36410         * tests/test-hash.c: New file.
36411
36412 2009-06-17  Eric Blake  <ebb9@byu.net>
36413
36414         strstr-simple: document new module
36415         * MODULES.html.sh: Document new module.
36416
36417         strstr, strcasestr: replace on platforms with broken memchr
36418         * modules/strstr: Split into...
36419         * modules/strstr-simple: ...new module that does not care about
36420         performance, but does care about glibc bug.
36421         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
36422         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
36423         if platform memchr is broken, per Debian bug 521737.
36424         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
36425         memchr.
36426         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
36427         * doc/posix-functions/strstr.texi (strstr): Document the fix.
36428         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
36429         * modules/mountlist (Depends-on): Add strstr-simple.
36430         * modules/gen-uni-tables (Depends-on): Likewise.
36431         * modules/argz (Depends-on): Add strstr.
36432
36433 2009-06-17  Bruno Haible  <bruno@clisp.org>
36434
36435         * modules/posix_spawn-internal (Depends-on): Add errno.
36436
36437 2009-06-17  Bruno Haible  <bruno@clisp.org>
36438
36439         Define missing ESTALE on Interix 3.5.
36440         * lib/errno.in.h (ESTALE): Assign a value if missing.
36441         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
36442         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
36443         missing.
36444         * doc/posix-headers/errno.texi: Mention the Interix bug.
36445         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
36446
36447 2009-06-15  Eric Blake  <ebb9@byu.net>
36448
36449         memchr, memchr2: add valgrind exception
36450         * lib/memchr.valgrind: New file.
36451         * lib/memchr2.valgrind: New file.
36452         * modules/memchr (Files): Distribute valgrind file.
36453         * modules/memchr2 (Files): Likewise.
36454
36455         docs: memchr is no longer obsolete
36456         * MODULES.html.sh: Move memchr from obsolete to string.h section.
36457         * lib/string.in.h (memchr): Simplify logic.
36458
36459 2009-06-14  Jim Meyering  <meyering@redhat.com>
36460
36461         link-follow: fix the "checking..." message to not mention trailing slash
36462         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
36463         never considered trailing slashes.
36464
36465 2009-06-14  Bruno Haible  <bruno@clisp.org>
36466
36467         * m4/memchr.m4: Mention also the bug on IA-64.
36468         * doc/posix-functions/memchr.texi: Likewise.
36469
36470 2009-06-12  Eric Blake  <ebb9@byu.net>
36471
36472         memchr: detect broken x86_64 and alpha implementations
36473         * modules/memchr-tests (Depends-on): Move mmap detection...
36474         * modules/memchr (Depends-on): ...here.
36475         (configure.ac): Set indicator.
36476         * lib/string.in.h (memchr): Declare replacement.
36477         * modules/string (Makefile.am): Trigger replacement.
36478         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
36479         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
36480         bugs.
36481         * doc/posix-functions/memchr.texi (memchr): Document the bug.
36482         * modules/getpagesize (License): Relax license.
36483
36484 2009-06-11  Bruno Haible  <bruno@clisp.org>
36485
36486         * lib/idpriv.h: Add more references.
36487
36488 2009-06-08  Bruno Haible  <bruno@clisp.org>
36489
36490         Tests for module 'idpriv-droptemp'.
36491         * modules/idpriv-droptemp-tests: New file.
36492         * tests/test-idpriv-droptemp.sh: New file.
36493         * tests/test-idpriv-droptemp.su.sh: New file.
36494         * tests/test-idpriv-droptemp.c: New file.
36495
36496         New module 'idpriv-droptemp'.
36497         * lib/idpriv-droptemp.c: New file.
36498         * modules/idpriv-droptemp: New file.
36499
36500 2009-06-08  Bruno Haible  <bruno@clisp.org>
36501
36502         Tests for module 'idpriv-drop'.
36503         * modules/idpriv-drop-tests: New file.
36504         * tests/test-idpriv-drop.sh: New file.
36505         * tests/test-idpriv-drop.su.sh: New file.
36506         * tests/test-idpriv-drop.c: New file.
36507
36508         New module 'idpriv-drop'.
36509         * lib/idpriv.h: New file.
36510         * lib-idpriv-drop.c: New file.
36511         * m4/idpriv.m4: New file.
36512         * modules/idpriv-drop: New file.
36513
36514 2009-06-08  Bruno Haible  <bruno@clisp.org>
36515
36516         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
36517         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36518         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36519         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36520         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36521         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36522         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36523
36524 2009-06-08  Eric Blake  <ebb9@byu.net>
36525
36526         test-strstr: use memory fence, when possible
36527         * tests/test-strstr.c (main): Use memory fence, in order to be
36528         more likely to trigger Debian bug 521737.
36529         * modules/strstr-tests (Files): Pull in additional files.
36530
36531         memchr: no longer obsolete, for wider field testing
36532         * modules/memchr (Status, Notice): Delete, this module is no
36533         longer obsolete.
36534         * modules/vasnprintf (Depends-on): Add memchr.
36535
36536 2009-06-07  Jim Meyering  <meyering@redhat.com>
36537
36538         hash: declare some functions with the warn_unused_result attribute
36539         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
36540
36541 2009-06-07  Bruno Haible  <bruno@clisp.org>
36542
36543         * tests/test-alignof.c: Don't test int64_t if it does not exist.
36544         Reported by Eric Blake.
36545
36546 2009-06-06  Eric Blake  <ebb9@byu.net>
36547
36548         test-alignof: fix typo with long double
36549         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
36550         compiler error.
36551
36552 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
36553
36554         Escape non-texinfo { and }s.
36555         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
36556         markup error.
36557
36558 2009-06-04  Jim Meyering  <meyering@redhat.com>
36559
36560         gitlog-to-changelog: don't infloop on an empty commit log
36561         * build-aux/gitlog-to-changelog: Warn about an empty log message.
36562         Reported by Boris Petersen <transacid@centerim.org>.
36563
36564 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
36565
36566         version-etc: extend for packagers
36567         Add three new configure options, intended for packagers:
36568           --with-packager="packager name"
36569           --with-packager-version="packager-specific version"
36570           --with-packager-bug-reports="packager bug reporting"
36571         An example with coreutils:
36572           $ ./configure \
36573             --with-packager=Gentoo \
36574             --with-packager-bug-report=http://bugs.gentoo.org/ \
36575             --with-packager-version="patchset 1.6"
36576           $ ./src/ls --version | head -n2
36577           ls (GNU coreutils) 7.1-dirty
36578           Packaged by Gentoo (patchset 1.6)
36579         Note that the bug reporting info via --help doesn't show up because
36580         coreutils uses its own custom emit_bug_reporting_address() implementation
36581         in src/system.h.  If it didn't, it'd look like:
36582           $ ./src/ls --help | tail -n4
36583           Report bugs to <bug-coreutils@gnu.org>.
36584           Report Gentoo bugs to <http://bugs.gentoo.org/>.
36585           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
36586           General help using GNU software: <http://www.gnu.org/gethelp/>.
36587         * lib/version-etc.c: Print new information, if provided.
36588         * m4/version-etc.m4: New file.
36589         * modules/version-etc (Files): Add m4/version-etc.m4.
36590         (configure.ac): Add gl_VERSION_ETC.
36591
36592 2009-05-31  Bruno Haible  <bruno@clisp.org>
36593
36594         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
36595         and 'int64_t'.
36596         * modules/alignof-tests (Dependencies): Add stdint.
36597         Reported by Eric Blake.
36598
36599 2009-05-31  Bruno Haible  <bruno@clisp.org>
36600
36601         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
36602         restriction due to compiler bugs.
36603         Reported by Eric Blake.
36604
36605 2009-05-31  Simon Josefsson  <simon@josefsson.org>
36606             Bruno Haible  <bruno@clisp.org>
36607
36608         Fix test-alignof failure.
36609         * lib/alignof.h (alignof_slot): New macro.
36610         (alignof_type): New macro, with the same semantics as the previous
36611         'alignof'.
36612         (alignof): Alias to alignof_slot.
36613         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
36614         check that the results are usable as constant expressions.
36615
36616 2009-05-31  Bruno Haible  <bruno@clisp.org>
36617
36618         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
36619         * tests/test-memchr.c (main): Check that memchr does not read past the
36620         first occurrence of the byte.
36621         * tests/test-strstr.c (main): Update comment.
36622         Suggested by Eric Blake.
36623
36624 2009-05-30  Bruno Haible  <bruno@clisp.org>
36625
36626         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
36627         detail how to use dumpbin.
36628         Reported by David Byron <dbyron@dbyron.com>.
36629
36630 2009-06-02  Simon Josefsson  <simon@josefsson.org>
36631
36632         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
36633
36634 2009-06-02  Simon Josefsson  <simon@josefsson.org>
36635
36636         * m4/manywarnings.m4: Add GCC 4.4 warnings.
36637
36638 2009-05-28  Bruno Haible  <bruno@clisp.org>
36639
36640         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
36641         build-aux/ files.
36642
36643 2009-05-28  Simon Josefsson  <simon@josefsson.org>
36644
36645         * gnulib-tool (func_import): Transform license on build-aux/ files too.
36646
36647 2009-05-27  Simon Josefsson  <simon@josefsson.org>
36648
36649         * gnulib-tool (sed_transform_main_lib_file)
36650         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
36651         regexps.
36652
36653 2009-05-26  Simon Josefsson  <simon@josefsson.org>
36654
36655         * tests/test-strstr.c: Add another self-test.
36656         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
36657         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
36658
36659 2009-05-23  Bruno Haible  <bruno@clisp.org>
36660
36661         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
36662         change.
36663
36664 2009-05-21  Bruno Haible  <bruno@clisp.org>
36665
36666         Simplify use of mode_t varargs.
36667         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
36668         uses 'mode_t' or 'int'.
36669         * lib/openat.c (openat): Likewise.
36670         * lib/open-safer.c (open_safer): Likewise.
36671         * m4/mode_t.m4: New file.
36672         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
36673         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
36674         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
36675         * modules/open (Files): Add m4/mode_t.m4.
36676         * modules/openat (Files): Likewise.
36677         * modules/fcntl-safer (Files): Likewise.
36678         Suggested by Eric Blake.
36679
36680 2009-05-21  Pádraig Brady  <P@draigbrady.com>
36681
36682         * doc/glibc-functions/fallocate.texi: New file.
36683         * doc/gnulib.texi: Include it.
36684
36685 2009-05-21  Eric Blake  <ebb9@byu.net>
36686             Bruno Haible  <bruno@clisp.org>
36687
36688         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
36689         invocations.
36690         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36691
36692 2009-05-21  Eric Blake  <ebb9@byu.net>
36693             Bruno Haible  <bruno@clisp.org>
36694
36695         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
36696         include_next. Fix of 2008-11-20 commit.
36697         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
36698         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
36699         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
36700         NEXT_MATH_H.
36701         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
36702         instead of NEXT_MATH_H.
36703
36704 2009-05-21  Bruno Haible  <bruno@clisp.org>
36705
36706         Avoid redefinition warnings for SIZE_MAX.
36707         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
36708         Reported by Simon Josefsson.
36709
36710 2009-05-21  Bruno Haible  <bruno@clisp.org>
36711
36712         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
36713         AC_CACHE_VAL.
36714
36715 2009-05-20  Bruno Haible  <bruno@clisp.org>
36716
36717         Make zeroptr.h work on mingw.
36718         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
36719         mprotect.
36720         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
36721         * modules/memchr2-tests (configure.ac): Likewise.
36722         * modules/memcmp-tests (configure.ac): Likewise.
36723         * modules/memmem-tests (configure.ac): Likewise.
36724         * modules/memrchr-tests (configure.ac): Likewise.
36725         Reported by Simon Josefsson.
36726
36727 2009-05-20  Simon Josefsson  <simon@josefsson.org>
36728
36729         * tests/test-glob.c: Include string.h for strcmp prototype.
36730
36731 2009-05-20  Simon Josefsson  <simon@josefsson.org>
36732
36733         * modules/getdelim (Depends-on): Add explicit stdint, although it
36734         was implicitly already pulled in via realloc-posix.
36735         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
36736
36737 2009-05-20  Simon Josefsson  <simon@josefsson.org>
36738
36739         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
36740         G. Christensen" <tgc@jupiterrise.com>.
36741         * m4/sys_socket_h.m4: Check for sa_family_t.
36742         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
36743         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
36744         * tests/test-sys_socket.c: Check that sa_family_t works.
36745
36746 2009-05-18  Eric Blake  <ebb9@byu.net>
36747
36748         maint.mk: allow gnulib_dir in VPATH build
36749         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
36750
36751 2009-05-15  Jim Meyering  <meyering@redhat.com>
36752
36753         maint.mk: Give gnulib_dir a default definition.
36754         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
36755         Thus, most packages no longer need to specify this variable in cfg.mk
36756
36757 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
36758
36759         rename.m4: fix typos that would make non-mingw cross-configure fail
36760         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
36761
36762 2009-05-13  Eric Blake  <ebb9@byu.net>
36763
36764         mmap-anon: avoid out-of-order autoconf expansion
36765         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
36766         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
36767         * modules/memchr-tests (Depends-on): Add extensions.
36768         * modules/memchr2-tests (Depends-on): Add extensions.
36769         * modules/memcmp-tests (Depends-on): Add extensions.
36770         * modules/memmem-tests (Depends-on): Add extensions.
36771         * modules/memrchr-tests (Depends-on): Add extensions.
36772
36773 2009-05-13  Bruno Haible  <bruno@clisp.org>
36774
36775         Make some tests ISO C 99 compliant.
36776         * tests/zerosize-ptr.h: New file.
36777         * tests/test-memchr.c: Include zerosize-ptr.h.
36778         (main): Use a zero-size object pointer instead of NULL.
36779         * tests/test-memchr2.c: Include zerosize-ptr.h.
36780         (main): Use a zero-size object pointer instead of NULL.
36781         * tests/test-memcmp.c: Include zerosize-ptr.h.
36782         (main): Use a zero-size object pointer instead of NULL.
36783         * tests/test-memmem.c: Include zerosize-ptr.h.
36784         (main): Use a zero-size object pointer instead of NULL.
36785         * tests/test-memrchr.c: Include zerosize-ptr.h.
36786         (main): Use a zero-size object pointer instead of NULL.
36787         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
36788         m4/mmap-anon.m4.
36789         (Depends-on): Add getpagesize.
36790         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
36791         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
36792         m4/mmap-anon.m4.
36793         (Depends-on): Add getpagesize.
36794         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
36795         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
36796         m4/mmap-anon.m4.
36797         (Depends-on): Add getpagesize.
36798         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
36799         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
36800         m4/mmap-anon.m4.
36801         (Depends-on): Add getpagesize.
36802         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
36803         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
36804         m4/mmap-anon.m4.
36805         (Depends-on): Add getpagesize.
36806         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
36807
36808 2009-05-12  Bruno Haible  <bruno@clisp.org>
36809
36810         Tests for module 'alignof'.
36811         * modules/alignof-tests: New file.
36812         * tests/test-alignof.c: New file.
36813
36814 2009-05-12  Bruno Haible  <bruno@clisp.org>
36815
36816         Fix alignof macro.
36817         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
36818         vendor compilers that are always correct.
36819
36820 2009-05-12  Bruno Haible  <bruno@clisp.org>
36821
36822         Make the MAP_ANONYMOUS detection work on HP-UX 11.
36823         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
36824         not whether its fully works.
36825
36826 2009-05-12  Bruno Haible  <bruno@clisp.org>
36827
36828         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
36829
36830 2009-05-12  Jim Meyering  <meyering@redhat.com>
36831
36832         * top/maint.mk: Adjust backslash alignment.
36833
36834 2009-05-11  Simon Josefsson  <simon@josefsson.org>
36835
36836         * top/maint.mk: Make $(srcdir)/build-aux configurable.
36837
36838 2009-05-11  Eric Blake  <ebb9@byu.net>
36839
36840         argp: avoid undefined behavior
36841         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
36842         macros.
36843
36844 2009-05-08  Simon Josefsson  <simon@josefsson.org>
36845
36846         * tests/test-vc-list-files-git.sh: Do git config of user.email and
36847         user.name to prevent git commit from complaining.
36848
36849 2009-05-10  Bruno Haible  <bruno@clisp.org>
36850
36851         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
36852         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
36853         it rewrites every file name only once.
36854         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
36855
36856 2009-05-08  Bruno Haible  <bruno@clisp.org>
36857
36858         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
36859         instead of 'max'.
36860
36861 2009-05-08  Simon Josefsson  <simon@josefsson.org>
36862
36863         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
36864         sockaddr_storage test.
36865
36866 2009-05-07  Simon Josefsson  <simon@josefsson.org>
36867
36868         * modules/sys_socket (Makefile.am): Substitute
36869         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
36870         * m4/sys_socket_h.m4: Check for sockaddr_storage.
36871         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
36872         * tests/test-sys_socket.c: Check sockaddr_storage.
36873
36874 2009-05-08  Bruno Haible  <bruno@clisp.org>
36875
36876         New module 'alignof'.
36877         * lib/alignof.h: New file.
36878         * modules/alignof: New file.
36879
36880 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
36881             Bruno Haible  <bruno@clisp.org>
36882
36883         Fix test-file-has-acl on FreeBSD.
36884         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
36885         mask is implicitly added.
36886         * tests/test-file-has-acl.c: Include <signal.h>.
36887         (main): Terminate the test after 5 seconds.
36888         * modules/acl-tests (configure.ac): Check for alarm function.
36889
36890 2009-05-04  Bruno Haible  <bruno@clisp.org>
36891
36892         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
36893         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
36894         * modules/errno (configure.ac): Drop AC_REQUIRE.
36895         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
36896         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
36897
36898 2009-05-04  Simon Josefsson  <simon@josefsson.org>
36899
36900         * modules/glob-tests: New module.
36901         * tests/test-glob.c: Add.
36902
36903 2009-05-04  Simon Josefsson  <simon@josefsson.org>
36904
36905         * modules/fnmatch-tests: New module.
36906         * tests/test-fnmatch.c: Add.
36907
36908 2009-05-04  Eric Blake  <ebb9@byu.net>
36909
36910         maint: make the new no-submodule-changes rule VPATH-safe
36911         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
36912
36913 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
36914             Bruno Haible  <bruno@clisp.org>
36915
36916         acl: Fix infinite loop on FreeBSD.
36917         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
36918         of return value from acl_get_entry.
36919         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
36920         Likewise.
36921
36922 2009-05-03  Bruno Haible  <bruno@clisp.org>
36923
36924         * lib/acl-internal.h (acl_entries): Clarify return value.
36925         * lib/acl_entries.c (acl_entries): Likewise.
36926
36927 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
36928
36929         Bug fix in acl module.
36930         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
36931
36932 2009-05-03  Bruno Haible  <bruno@clisp.org>
36933
36934         Create gperf-generated file in the source dir, not in the build dir.
36935         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
36936         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
36937         * modules/unicase/locale-language (unicase/locale-languages.h):
36938         Likewise.
36939         * modules/unicase/special-casing (unicase/special-casing-table.h):
36940         Likewise.
36941         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
36942         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
36943         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
36944         Reported by Ralf Wildenhues.
36945
36946 2009-05-03  Bruno Haible  <bruno@clisp.org>
36947
36948         * modules/fnmatch (Description, configure.ac): Taken from
36949         fnmatch-posix.
36950         * modules/fnmatch-posix: Turn into a symbolic reference to the
36951         'fnmatch' module, and deprecate.
36952         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
36953
36954 2009-05-03  Bruno Haible  <bruno@clisp.org>
36955
36956         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
36957         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
36958         Reported by Ralf Wildenhues.
36959
36960 2009-05-04  Simon Josefsson  <simon@josefsson.org>
36961
36962         * m4/fnmatch.m4: Fix fnmatch re-define.
36963
36964 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
36965
36966         priv-set: new module and tests; adapt write-any-file
36967         * lib/priv-set.c: New file.
36968         * lib/priv-set.h: New file.
36969         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
36970         * lib/write-any-file.c: Simplify by using priv-set module.
36971         * m4/priv-set.m4: New file.
36972         * modules/priv-set: New file.
36973         * modules/unlinkdir: Add dependency on priv-set module.
36974         * modules/write-any-file: Likewise.
36975
36976         Tests for module 'priv-set'.
36977         * modules/priv-set-tests: New file.
36978         * tests/test-priv-set.c: New file.
36979
36980 2009-05-03  Jim Meyering  <meyering@redhat.com>
36981             Bruno Haible  <bruno@clisp.org>
36982
36983         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
36984         use the converted UTF-8 variant of the name instead.
36985
36986 2009-05-03  Jim Meyering  <meyering@redhat.com>
36987
36988         tests: tighten some getdate tests
36989         * tests/test-getdate.c (main): Tighten tests: require equality,
36990         not just greater than.  Set TZ envvar to UTC0.
36991
36992 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
36993
36994         getdate: correctly interpret "next monday" when run on a Monday
36995         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
36996         that e.g., "next tues" (when run on a tuesday) results in a date
36997         that is one week in the future, and not today's date.
36998         I.e., add a week when the wday is the same as the current one.
36999         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
37000         and earlier by Martin Bernreuther and Jan Minář.
37001         * tests/test-getdate.c (main): Check that "next DAY" is always in
37002         the future and that "last DAY" is always in the past.
37003
37004 2009-05-02  Jim Meyering  <meyering@redhat.com>
37005
37006         build: ensure that a release build fails when a submodule is unclean
37007         * top/maint.mk (no-submodule-changes): New rule.
37008         (alpha beta major): Depend on it.
37009
37010 2009-05-02  Bruno Haible  <bruno@clisp.org>
37011
37012         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
37013         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
37014         shell variable gl_fnmatch_required to detect which variant is
37015         requested.
37016         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
37017         gl_FUNC_FNMATCH_POSIX.
37018         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
37019         exclude fnmatch-posix.
37020
37021 2009-05-02  Bruno Haible  <bruno@clisp.org>
37022
37023         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
37024         * modules/mbsrtowcs (License): Change to LGPLv2+.
37025         * modules/strnlen1 (License): Likewise.
37026         Reported by Simon Josefsson.
37027
37028 2009-05-02  Bruno Haible  <bruno@clisp.org>
37029
37030         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
37031         "cross".
37032         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
37033         gnulib-tool was called with option --source-base=lib.
37034
37035 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37036
37037         Use automake *-local hooks without commands, for extensibility.
37038         * modules/localcharset (Makefile.am): Rename install-exec-local
37039         rule to install-exec-localcharset, and make it a prerequisite of
37040         install-exec-local.  Likewise, rename the uninstall-local rule to
37041         uninstall-localcharset, and make it a prerequisite of the former.
37042
37043 2009-05-01  Bruno Haible  <bruno@clisp.org>
37044
37045         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
37046         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
37047         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
37048         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
37049         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
37050         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
37051         m4/locale-zh.m4, m4/codeset.m4.
37052
37053         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
37054         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
37055         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
37056         m4/locale-zh.m4.
37057
37058         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
37059         REPLACE_WCRTOMB if mbstate_t must be replaced.
37060         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
37061         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
37062
37063 2009-05-01  Bruno Haible  <bruno@clisp.org>
37064
37065         Avoid compiler warnings when redefining macros defined by <libintl.h>.
37066         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
37067         dngettext, dcngettext, textdomain, bindtextdomain,
37068         bind_textdomain_codeset): Undefine before redefining.
37069
37070 2009-04-30  Bruno Haible  <bruno@clisp.org>
37071
37072         Fix bug introduced on 2009-04-25.
37073         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
37074         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
37075         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
37076         is defined.
37077         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
37078         is defined.
37079         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
37080         is defined.
37081         Reported by Elbert_Pol <elbert.pol@gmail.com>.
37082
37083 2009-04-28  Bruno Haible  <bruno@clisp.org>
37084
37085         Comment tweaks.
37086         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
37087         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
37088         * lib/unicase.h (u*_casexfrm): Likewise.
37089         Reported by Paolo Bonzini.
37090
37091 2009-04-28  Bruno Haible  <bruno@clisp.org>
37092
37093         Fix a compilation error.
37094         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
37095         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
37096         Reported by Jim Meyering.
37097
37098 2009-04-27  Bruno Haible  <bruno@clisp.org>
37099
37100         New module 'libunistring'.
37101         * modules/libunistring: New file.
37102         * m4/libunistring.m4: New file.
37103         * MODULES.html.sh (Unicode string functions): Add it.
37104
37105 2009-04-27  Eric Blake  <ebb9@byu.net>
37106
37107         maint.mk: allow package-specific header to provide <config.h>
37108         * top/maint.mk (sc_require_config_h): New variable.
37109         (sc_require_config_h, sc_require_config_h_first): Use it.
37110
37111 2009-04-27  Simon Josefsson  <simon@josefsson.org>
37112
37113         * top/maint.mk (sc_avoid_if_before_free): Except
37114         useless-if-before-free script.
37115
37116 2009-04-27  Eric Blake  <ebb9@byu.net>
37117
37118         maintainer-makefile: depend on all required helper scripts
37119         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
37120         useless-if-before-free.
37121         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
37122         version, rather than assuming gnulib checkout is available.
37123         Reported by Simen Josefsson.
37124
37125 2009-04-26  Bruno Haible  <bruno@clisp.org>
37126
37127         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
37128         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
37129         "../" or "..".
37130
37131 2009-04-26  Bruno Haible  <bruno@clisp.org>
37132
37133         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
37134         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
37135         AC_LIB_HAVE_LINKFLAGS.
37136
37137 2009-04-26  Bruno Haible  <bruno@clisp.org>
37138
37139         Simplify calling convention of u*_conv_from_encoding.
37140         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
37141         u32_conv_from_encoding): Expect a resultbuf argument and return the
37142         result directly as a pointer.
37143         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
37144         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
37145         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
37146         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
37147         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
37148         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
37149         Update.
37150         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
37151         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
37152         * lib/vasnprintf.c (VASNPRINTF): Update.
37153         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
37154         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
37155         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
37156         * NEWS: Mention the change.
37157
37158 2009-04-26  Bruno Haible  <bruno@clisp.org>
37159
37160         Simplify calling convention of u*_conv_to_encoding.
37161         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
37162         u32_conv_to_encoding): Expect a resultbuf argument and return the
37163         result directly as a pointer.
37164         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
37165         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
37166         freeing scaled_offsets if mem_iconveha failed.
37167         * lib/unicase/u-casexfrm.h (FUNC): Update.
37168         * lib/uninorm/u-normxfrm.h (FUNC): Update.
37169         * lib/vasnprintf.c (VASNPRINTF): Update.
37170         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
37171         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
37172         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
37173         * NEWS: Mention the change.
37174
37175 2009-04-26  Bruno Haible  <bruno@clisp.org>
37176
37177         Avoid test failures on AIX and OSF/1.
37178         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
37179         malloc(0).
37180         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
37181         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
37182         Likewise.
37183         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
37184         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
37185         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
37186         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
37187         * doc/posix-functions/malloc.texi: Document the portability problem
37188         related to malloc(0).
37189
37190 2009-04-26  Bruno Haible  <bruno@clisp.org>
37191
37192         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
37193         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
37194         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
37195
37196 2009-04-25  Bruno Haible  <bruno@clisp.org>
37197
37198         Avoid link error when creating a namespace clean library.
37199         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
37200         as macro with arguments if already defined as an alias.
37201         * lib/signbitf.c (gl_signbitf): Don't undefine.
37202         * lib/signbitd.c (gl_signbitd): Don't undefine.
37203         * lib/signbitl.c (gl_signbitl): Don't undefine.
37204
37205 2009-04-25  Jim Meyering  <meyering@redhat.com>
37206
37207         vc-list-files: fix another quoting bug
37208         * build-aux/vc-list-files: Avoid sed backslash expansion
37209         of pathological directory names.
37210
37211 2009-04-25  Eric Blake  <ebb9@byu.net>
37212
37213         vc-list-files: fix shell quoting error
37214         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
37215         timestamp.
37216
37217 2009-04-25  Jim Meyering  <meyering@redhat.com>
37218
37219         vc-list-files: restore lost functionality with subdir argument
37220         * build-aux/vc-list-files: When given a non-"." sub-directory
37221         argument, substitute the $dir/ prefix back onto each resulting name.
37222         Otherwise, coreutils' root_tests check would fail.
37223
37224 2009-04-24  Eric Blake  <ebb9@byu.net>
37225
37226         vc-list-files: ignore git symlinks
37227         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
37228         than ls-files, to ignore git symlinks.
37229
37230         maint.mk: import improvements from m4
37231         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
37232         (move_if_change): Delete unused macro.
37233         (news-date-check, vc-diff-check): Support VPATH builds.
37234         (announcement): Likewise.  Split --bootstrap-tools list...
37235         (boostrap-tools): ...into separate list, which can be overridden
37236         in cfg.mk.
37237         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
37238         requiring dependency on useless-if-before-free module.
37239         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
37240         Support VPATH builds.
37241
37242 2009-04-24  Jim Meyering  <meyering@redhat.com>
37243
37244         maint.mk: remove coreutils-specific rules and variables
37245         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
37246         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
37247         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
37248
37249         maint.mk: remove obsolete rule
37250         * top/maint.mk (rel-check): Remove rule.
37251         (WGET, WGETFLAGS): Remove now-unused variables.
37252
37253 2009-04-24  Simon Josefsson  <simon@josefsson.org>
37254
37255         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
37256         consistency.
37257
37258         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
37259         '$(PATH_SEPARATOR)' instead of ':'.
37260
37261 2009-04-24  Simon Josefsson  <simon@josefsson.org>
37262
37263         * lib/getopt1.c (main): Use 'const' for static array.
37264
37265 2009-04-24  Simon Josefsson  <simon@josefsson.org>
37266
37267         * top/maint.mk: Sync with coreutils.
37268         * NEWS: Explain incompatibilities.
37269
37270 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37271             Bruno Haible  <bruno@clisp.org>
37272
37273         Fix cross-compilation results.
37274         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
37275         statement, as third argument of AC_TRY_RUN.
37276         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
37277         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
37278         Likewise.
37279         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
37280         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
37281         Likewise.
37282         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
37283         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
37284         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
37285
37286 2009-04-20  Bruno Haible  <bruno@clisp.org>
37287
37288         Avoid test failure on mingw.
37289         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
37290
37291 2009-04-20  Bruno Haible  <bruno@clisp.org>
37292
37293         Avoid compilation error on mingw.
37294         * modules/localename-tests (Depends-on): Add locale.
37295
37296 2009-04-19  Bruno Haible  <bruno@clisp.org>
37297
37298         Support for building a shared library on Windows platforms.
37299         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
37300         (main): Test the presence of UNINORM_NFC here.
37301         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
37302         (main): Test the presence of UNINORM_NFD here.
37303         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
37304         (main): Test the presence of UNINORM_NFKC here.
37305         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
37306         (main): Test the presence of UNINORM_NFKD here.
37307
37308 2009-04-19  Bruno Haible  <bruno@clisp.org>
37309
37310         Avoid a compiler warning.
37311         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
37312         Change type of variable 'sequence'.
37313
37314 2009-04-19  Bruno Haible  <bruno@clisp.org>
37315
37316         * modules/configmake (Makefile.am): When the contents of configmake.h
37317         does not change, arrange to preserve its modification time.
37318
37319 2009-04-17  Simon Josefsson  <simon@josefsson.org>
37320
37321         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
37322         gettext domain.
37323
37324 2009-04-16  Jim Meyering  <meyering@redhat.com>
37325
37326         useless-if-before-free: improve conversion code
37327         * build-aux/useless-if-before-free: Adjust code-in-comment to match
37328         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
37329
37330 2009-04-14  Bruno Haible  <bruno@clisp.org>
37331
37332         * modules/fcntl (Depends-on): Add extensions.
37333         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
37334
37335 2009-04-12  Ben Pfaff  <blp@gnu.org>
37336
37337         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
37338         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
37339
37340 2009-03-20  Ben Pfaff  <blp@gnu.org>
37341
37342         Make rename replace existing destinations on Windows.
37343         * m4/rename.m4: Add test for Mingw.
37344         * lib/rename.c: Add rename replacement that uses MoveFileEx with
37345         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
37346         * doc/posix-functions/rename.texi: Document.
37347
37348 2009-04-10  Bruno Haible  <bruno@clisp.org>
37349
37350         New include file "iconveh.h".
37351         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
37352         * lib/striconveh.h: Include it.
37353         (enum iconv_ilseq_handler): Remove definition.
37354         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
37355         striconveh.h.
37356         * lib/striconveha.c: Include striconveh.h.
37357         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
37358         * modules/striconveh (Files): Add lib/iconveh.h.
37359         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
37360         lib/striconveh.h.
37361
37362 2009-04-10  Bruno Haible  <bruno@clisp.org>
37363
37364         * lib/uniconv.h: Update comment.
37365
37366 2009-04-10  Bruno Haible  <bruno@clisp.org>
37367
37368         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
37369         always.
37370         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
37371         * lib/unistr/u16-mbtouc-aux.c: Likewise.
37372         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
37373         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
37374         "unistring-notinline.h", so that the function gets defined always.
37375         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
37376         * lib/unistr/u8-uctomb.c: Likewise.
37377         * lib/unistr/u16-mbtouc.c: Likewise.
37378         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
37379         * lib/unistr/u16-uctomb.c: Likewise.
37380         * lib/unistr/u32-mbtouc.c: Likewise.
37381         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
37382         * lib/unistr/u32-uctomb.c: Likewise.
37383
37384 2009-04-10  Bruno Haible  <bruno@clisp.org>
37385
37386         Mark 'utime' obsolete.
37387         * modules/utime (Status, Notice): New sections.
37388         Suggested by Jim Meyering.
37389
37390         Fix cross-compile guess for utime test.
37391         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
37392         autoconf.
37393         * doc/posix-functions/utime.texi: Give more precisions.
37394         Reported by Jan <ipif@ymail.com>.
37395
37396 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
37397
37398         filevercmp: correct today's change
37399         * lib/filevercmp.c: Also handle coreutils' test inputs.
37400         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
37401
37402         Fix regression in 'filevercmp' module. Thanks Sven Joachim
37403         for reporting it.
37404         * lib/filevercmp.c: Special handle for "", "." and "..".
37405         * tests/test-filevercmp.c: Enlarge the set suite.
37406
37407 2009-04-07  Jim Meyering  <meyering@redhat.com>
37408
37409         useless-if-before-free: show how to remove braced useless free, too
37410         * build-aux/useless-if-before-free: still only in a comment, though.
37411
37412 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
37413
37414         maint.mk: import changes to syntax-check macros from coreutils
37415         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
37416         Use them in the relevant macros.
37417
37418 2009-04-06  Bruno Haible  <bruno@clisp.org>
37419
37420         Fix unportable use of bit-fields.
37421         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
37422         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
37423         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
37424
37425 2009-04-06  Bruno Haible  <bruno@clisp.org>
37426
37427         Avoid test failures on AIX and OSF/1.
37428         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
37429         that malloc(0) = NULL.
37430         * tests/unicase/test-u8-tolower.c (check): Likewise.
37431         * tests/unicase/test-u8-totitle.c (check): Likewise.
37432         * tests/unicase/test-u8-toupper.c (check): Likewise.
37433         * tests/unicase/test-u16-casefold.c (check): Likewise.
37434         * tests/unicase/test-u16-tolower.c (check): Likewise.
37435         * tests/unicase/test-u16-totitle.c (check): Likewise.
37436         * tests/unicase/test-u16-toupper.c (check): Likewise.
37437         * tests/unicase/test-u32-casefold.c (check): Likewise.
37438         * tests/unicase/test-u32-tolower.c (check): Likewise.
37439         * tests/unicase/test-u32-totitle.c (check): Likewise.
37440         * tests/unicase/test-u32-toupper.c (check): Likewise.
37441         * tests/uninorm/test-u8-nfc.c (check): Likewise.
37442         * tests/uninorm/test-u8-nfd.c (check): Likewise.
37443         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
37444         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
37445         * tests/uninorm/test-u16-nfc.c (check): Likewise.
37446         * tests/uninorm/test-u16-nfd.c (check): Likewise.
37447         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
37448         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
37449         * tests/uninorm/test-u32-nfc.c (check): Likewise.
37450         * tests/uninorm/test-u32-nfd.c (check): Likewise.
37451         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
37452         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
37453
37454 2009-04-05  Bruno Haible  <bruno@clisp.org>
37455
37456         Work around an autoconf limitation.
37457         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
37458         comment line if it would be longer than 3 KB.
37459
37460 2009-04-05  Bruno Haible  <bruno@clisp.org>
37461
37462         Avoid test failure with libiconv-1.13.
37463         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
37464         of the expected test results.
37465
37466 2009-04-05  Bruno Haible  <bruno@clisp.org>
37467
37468         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
37469         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
37470         that it should be installed.
37471
37472 2009-04-05  Bruno Haible  <bruno@clisp.org>
37473
37474         * gnulib-tool: New option --copy-file.
37475         (func_usage): Document it.
37476         (func_dest_tmpfilename): Moved out of func_import.
37477         (func_add_file, func_update_file): New functions, extracted from
37478         func_import.
37479         (func_import): Update.
37480
37481 2009-04-05  Karl Berry  <karl@gnu.org>
37482
37483         * README: prominently mention gnulib-tool.
37484         Rearrange sections so getting the code is near the top.
37485
37486 2009-04-05  Bruno Haible  <bruno@clisp.org>
37487
37488         * lib/unicase.h: Mention u*_cmp2.
37489         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
37490         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
37491         * lib/unicase/ulc-casecmp.c: Likewise.
37492         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
37493         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
37494         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
37495         unistr/u8-cmp.
37496         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
37497         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
37498         unistr/u16-cmp.
37499         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
37500         unistr/u32-cmp.
37501
37502         * lib/uninorm.h: Mention u*_cmp2.
37503         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
37504         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
37505         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
37506         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
37507         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
37508         unistr/u8-cmp.
37509         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
37510         unistr/u16-cmp.
37511         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
37512         unistr/u32-cmp.
37513
37514         New module 'unistr/u32-cmp2'.
37515         * lib/unistr/u32-cmp2.c: New file.
37516         * modules/unistr/u32-cmp2: New file.
37517
37518         New module 'unistr/u16-cmp2'.
37519         * lib/unistr/u16-cmp2.c: New file.
37520         * modules/unistr/u16-cmp2: New file.
37521
37522         New module 'unistr/u8-cmp2'.
37523         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
37524         * lib/unistr/u8-cmp2.c: New file.
37525         * lib/unistr/u-cmp2.h: New file.
37526         * modules/unistr/u8-cmp2: New file.
37527
37528 2009-04-05  Bruno Haible  <bruno@clisp.org>
37529
37530         * lib/unictype.h (uc_property_is_valid): New macro.
37531         * tests/unictype/test-pr_byname.c (main): Use it.
37532
37533         * lib/unistr.h: Doc fixes.
37534         * lib/uniconv.h: Doc fixes.
37535         * lib/unictype.h: Doc fixes.
37536
37537 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
37538
37539         Port coreutils 7.2 to Solaris 8.
37540
37541         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
37542         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
37543         for Solaris 8.  This is a bit of a hack, as it means it's the
37544         caller's responsibility to add -lnsl if needed, but most likely it
37545         won't be needed since only getaddrinfo uses this and getaddrinfo
37546         isn't needed on Solaris 8.
37547
37548         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
37549         problem to Solaris 8 encountered with coreutils 7.2, which
37550         resulted in a message "fnmatch.c:292: warning: passing argument 4
37551         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
37552         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
37553
37554 2009-04-03  Simon Josefsson  <simon@josefsson.org>
37555
37556         * m4/ld-version-script.m4: Add FIXME comment.
37557
37558 2009-04-02  Simon Josefsson  <simon@josefsson.org>
37559
37560         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
37561         SOVERSION variable.
37562
37563 2009-04-02  Bruno Haible  <bruno@clisp.org>
37564
37565         * Makefile (info, html, dvi, pdf): Combine the rules.
37566         Suggested by Jim Meyering.
37567
37568 2009-04-01  Bruno Haible  <bruno@clisp.org>
37569
37570         * Makefile (info, html, dvi, pdf): New targets.
37571         Reported by Reuben Thomas <rrt@sc3d.org>.
37572
37573 2009-04-01  Bruno Haible  <bruno@clisp.org>
37574
37575         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
37576         can be put into PATH.
37577         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
37578
37579 2009-04-01  Bruno Haible  <bruno@clisp.org>
37580
37581         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
37582
37583 2009-04-01  Bruno Haible  <bruno@clisp.org>
37584
37585         Rename module 'visibility'.
37586         * modules/lib-symbol-visibility: Renamed from modules/visibility.
37587         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
37588         * doc/gnulib.texi: Update.
37589         * MODULES.html.sh (Misc): Update.
37590         * NEWS: Mention the change.
37591
37592 2009-04-01  Simon Josefsson  <simon@josefsson.org>
37593
37594         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
37595         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
37596         Eric Blake <ebb9@byu.net> for review.
37597         * MODULES.html.sh: Add lib-msvc-compat.
37598         * doc/gnulib.texi: Link to new section.
37599         * m4/ld-output-def.m4: New file.
37600         * doc/ld-output-def.texi: New file.
37601
37602 2009-04-01  Simon Josefsson  <simon@josefsson.org>
37603
37604         Rename ld-version-script to lib-symbol-versions.  Suggested by
37605         Bruno Haible <bruno@clisp.org>.
37606         * modules/ld-version-script: Renamed to lib-symbol-versions.
37607         * doc/ld-version-script.texi: Fix module name.
37608         * MODULES.html.sh: Add lib-symbol-versions.
37609
37610 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37611
37612         * modules/u64-tests: New file.
37613         * tests/test-u64.c: New file.
37614
37615 2009-03-04  Simon Josefsson  <simon@josefsson.org>
37616
37617         * MODULES.html.sh: Mention u64.
37618         * modules/u64: New module.
37619         * modules/crypto/sha512: Depend on u64 module instead of providing
37620         u64.h.
37621
37622 2009-03-27  Eric Blake  <ebb9@byu.net>
37623
37624         test-strerror: make debugging EAI_SYSTEM easier
37625         * modules/getaddrinfo-tests (Depends-on): Add strerror.
37626         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
37627         failure was EAI_SYSTEM.
37628
37629 2009-03-25  Bruno Haible  <bruno@clisp.org>
37630
37631         Fix a problem with --enable-relocatable on Solaris 7.
37632         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
37633         since 2008-02-24.
37634
37635 2009-03-25  Eric Blake  <ebb9@byu.net>
37636
37637         test-sockets: avoid gcc warning
37638         * tests/test-sockets.c (main): Silence compiler warning.
37639
37640 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
37641
37642         New modules nproc, pthread, contributed by Glen Lenker.
37643
37644         * MODULES.html.sh: Add pthread, nproc.
37645         * lib/nproc.c: New file.
37646         * lib/nproc.h: New file.
37647         * lib/pthread.in.h: New file.
37648         * m4/pthread.m4: New file.
37649         * modules/nproc: New file.
37650         * modules/pthread: New file.
37651
37652 2009-03-24  Simon Josefsson  <simon@josefsson.org>
37653
37654         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
37655         New variable.
37656
37657 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
37658
37659         filevercmp: handle simple~ and numbered.~3~ backup suffixes
37660         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
37661         * tests/test-filevercmp.c: Add tests for backup suffixes.
37662
37663 2009-03-24  Simon Josefsson  <simon@josefsson.org>
37664
37665         * modules/stdlib (Depends-on): Add stdint, needed when defining
37666         struct random_data on, for example, HP-UX 10.20.  Reported by
37667         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37668
37669 2009-03-24  Simon Josefsson  <simon@josefsson.org>
37670
37671         * lib/readline.c (readline): Call fflush on stdout after printing
37672         prompt.
37673
37674 2009-03-20  Bruno Haible  <bruno@clisp.org>
37675
37676         Remove dependency from 'close' module to -lws2_32 on native Windows.
37677         * lib/close-hook.h: New file.
37678         * lib/close-hook.c: New file.
37679         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
37680         w32sock.h.
37681         (_gl_close_fd_maybe_socket): Remove function.
37682         (rpl_close): Invoke execute_all_close_hooks instead of
37683         _gl_close_fd_maybe_socket.
37684         * lib/sockets.c: Include close-hook.h, w32sock.h.
37685         (close_fd_maybe_socket): New function, essentially from lib/close.c.
37686         (close_sockets_hook): New variable.
37687         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
37688         (gl_sockets_cleanup): Unregister it.
37689         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
37690         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
37691         * modules/close-hook: New file.
37692         * modules/close (Files): Remove lib/w32sock.h.
37693         (Depends-on): Add close-hook.
37694         (Link): Remove section.
37695         * modules/sockets (Files): Add lib/w32sock.h.
37696         (Depends-on): Add close-hook.
37697         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
37698         invocation.
37699         * NEWS: Mention that LIB_CLOSE is gone.
37700
37701 2009-03-23  Eric Blake  <ebb9@byu.net>
37702
37703         signal-tests: test previous patch
37704         * tests/test-signal.c: New file.
37705         * modules/signal-tests: Likewise.
37706
37707         signal.h: always support 'volatile sig_atomic_t'
37708         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
37709         (gl_SIGNAL_H_DEFAULTS): Add a default.
37710         * modules/signal (Makefile.am): Substitute if needed.
37711         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
37712         users can blindly add volatile.
37713         * doc/posix-headers/signal.texi (signal.h): Document it.
37714         Reported by Matthew Woehlke.
37715
37716 2009-03-23  Jim Meyering  <meyering@redhat.com>
37717
37718         pathmax: PATH_MAX: use pathconf only when available
37719         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
37720         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
37721         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
37722         This avoids a link failure in a PSP cross-compilation environment
37723         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
37724
37725         * lib/vasnprintf.c (divide): Fix typo in comment.
37726
37727 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37728
37729         * gnulib-tool (func_filter_filelist): Fix comment.
37730
37731 2009-03-20  Bruno Haible  <bruno@clisp.org>
37732
37733         Make sockets.h self-contained.
37734         * lib/sockets.c: Include sockets.h first.
37735         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
37736
37737 2009-03-19  Eric Blake  <ebb9@byu.net>
37738
37739         doc: mention more functions added in cygwin 1.7.0
37740         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
37741         addition.
37742         * doc/posix-functions/log2f.texi: Likewise.
37743
37744 2009-03-19  Jim Meyering  <meyering@redhat.com>
37745
37746         fsusage: avoid syntax error due to statement-before-declaration
37747         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
37748         after all declarations.  Reported by Matthew Woehlke in
37749         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
37750
37751 2009-03-18  Eric Blake  <ebb9@byu.net>
37752
37753         build-aux/compile: sync from automake
37754         * build-aux/compile: New file, from automake.
37755         * config/srclist.txt: Mention build-aux/compile.
37756
37757 2009-03-17  Bruno Haible  <bruno@clisp.org>
37758
37759         * lib/git-merge-changelog.c: Fix typo in comment.
37760         Reported by Reuben Thomas <rrt@sc3d.org>.
37761
37762 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
37763
37764         * m4/regex.m4: update and improve help for
37765         --without-included-regex.
37766
37767 2009-03-17  Simon Josefsson  <simon@josefsson.org>
37768
37769         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
37770         failure on missing include files.
37771
37772 2009-03-17  Eric Blake  <ebb9@byu.net>
37773
37774         doc: mention more functions added in cygwin 1.7.0
37775         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
37776         addition.
37777         * doc/posix-functions/fwscanf.texi: Likewise.
37778         * doc/posix-functions/swprintf.texi: Likewise.
37779         * doc/posix-functions/swscanf.texi: Likewise.
37780         * doc/posix-functions/vfwprintf.texi: Likewise.
37781         * doc/posix-functions/vfwscanf.texi: Likewise.
37782         * doc/posix-functions/vswprintf.texi: Likewise.
37783         * doc/posix-functions/vswscanf.texi: Likewise.
37784         * doc/posix-functions/vwprintf.texi: Likewise.
37785         * doc/posix-functions/vwscanf.texi: Likewise.
37786         * doc/posix-functions/wcscasecmp.texi: Likewise.
37787         * doc/posix-functions/wcsdup.texi: Likewise.
37788         * doc/posix-functions/wcsftime.texi: Likewise.
37789         * doc/posix-functions/wcsncasecmp.texi: Likewise.
37790         * doc/posix-functions/wprintf.texi: Likewise.
37791         * doc/posix-functions/wscanf.texi: Likewise.
37792         * doc/glibc-functions/gethostbyname2.texi: Likewise.
37793
37794 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37795
37796         maint.mk: really add $(AM_MAKEFLAGS)
37797         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
37798         was inadvertently omitted in the last commit.
37799         Spotted by Bruno Haible.
37800
37801         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
37802         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
37803         $(AM_MAKEFLAGS)' rather than plain `make'.
37804
37805         gnulib-tool: execute $MAKE not make
37806         * gnulib-tool: Default $MAKE to 'make'.
37807         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
37808         than make.  Initialize $MAKE in the do-autobuild script.
37809
37810         gnulib-tool: use $MAKE not make in generated files
37811         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
37812         make, in generated files.  Initialize $MAKE in the do-autobuild
37813         script.
37814
37815         * top/GNUmakefile (_have-git-version-gen): Fix typo.
37816
37817         GNUmakefile: disable parallelism only for multiple, recursive targets
37818         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
37819         additions in the Makefile.
37820         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
37821         by Automake.
37822         (.NOTPARALLEL): Only disable parallel builds if multiple targets
37823         are listed on the command line and at least one of them is
37824         listed in $(ALL_RECURSIVE_TARGETS).
37825
37826 2009-03-14  Bruno Haible  <bruno@clisp.org>
37827
37828         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
37829         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
37830         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
37831         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
37832         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
37833         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
37834         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
37835         unistr/u8-uctomb.
37836         * modules/unistr/u8-strchr (Depends-on): Likewise.
37837         * modules/unistr/u8-strrchr (Depends-on): Likewise.
37838         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
37839         unistr/u16-uctomb.
37840         * modules/unistr/u16-strchr (Depends-on): Likewise.
37841         * modules/unistr/u16-strrchr (Depends-on): Likewise.
37842
37843 2009-03-12  Bruno Haible  <bruno@clisp.org>
37844
37845         Work around select() bug on Interix 3.5.
37846         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
37847         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
37848         * m4/select.m4: New file.
37849         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
37850         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
37851         * modules/select (Files): Add m4/select.m4.
37852         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
37853         * modules/nanosleep (Depends-on): Add select.
37854         * modules/poll (Depends-on): Likewise.
37855         * doc/posix-functions/select.texi: Mention the Interix bug.
37856         Reported by Markus Duft <mduft@gentoo.org>.
37857
37858         * lib/select.c: Renamed from lib/winsock-select.c.
37859         * modules/select (Files): Add lib/select.c, remove
37860         lib/winsock-select.c.
37861         (configure.ac): Update.
37862
37863 2009-03-12  Jim Meyering  <meyering@redhat.com>
37864
37865         avoid gcc warnings about unused macro definitions
37866         * lib/readtokens.c (STREQ): Remove unused definition.
37867         * lib/xmalloc.c (SIZE_MAX): Likewise.
37868         * lib/openat-die.c (N_): Likewise.
37869         * lib/mountlist.c (SIZE_MAX): Remove definition.
37870         Instead, include <stdint.h>.
37871         * lib/readutmp.c: Likewise.
37872         * modules/readutmp (Depends-on): Add stdint.
37873         * modules/mountlist (Depends-on): Add stdint.
37874         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
37875
37876 2009-03-10  Bruno Haible  <bruno@clisp.org>
37877
37878         Tests for module 'mbmemcasecoll'.
37879         * modules/mbmemcasecoll-tests: New file.
37880         * tests/test-mbmemcasecoll1.sh: New file.
37881         * tests/test-mbmemcasecoll2.sh: New file.
37882         * tests/test-mbmemcasecoll3.sh: New file.
37883         * tests/test-mbmemcasecoll.c: New file.
37884
37885         New module 'mbmemcasecoll'.
37886         * lib/mbmemcasecoll.h: New file.
37887         * lib/mbmemcasecoll.c: New file.
37888         * modules/mbmemcasecoll: New file.
37889
37890         * tests/test-mbmemcasecmp.h: New file, extracted from
37891         tests/test-mbmemcasecmp.c.
37892         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
37893         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
37894         (main): Update.
37895         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
37896
37897 2009-03-09  Bruno Haible  <bruno@clisp.org>
37898
37899         Tests for module 'mbmemcasecmp'.
37900         * modules/mbmemcasecmp-tests: New file.
37901         * tests/test-mbmemcasecmp1.sh: New file.
37902         * tests/test-mbmemcasecmp2.sh: New file.
37903         * tests/test-mbmemcasecmp3.sh: New file.
37904         * tests/test-mbmemcasecmp.c: New file.
37905
37906         New module 'mbmemcasecmp'.
37907         * lib/mbmemcasecmp.h: New file.
37908         * lib/mbmemcasecmp.c: New file.
37909         * modules/mbmemcasecmp: New file.
37910
37911 2009-03-09  Bruno Haible  <bruno@clisp.org>
37912
37913         Tests for module 'unicase/ulc-casecoll'.
37914         * modules/unicase/ulc-casecoll-tests: New file.
37915         * tests/unicase/test-ulc-casecoll1.sh: New file.
37916         * tests/unicase/test-ulc-casecoll2.sh: New file.
37917         * tests/unicase/test-ulc-casecoll.c: New file.
37918
37919         New module 'unicase/ulc-casecoll'.
37920         * lib/unicase.h (ulc_casecoll): New declaration.
37921         * lib/unicase/ulc-casecoll.c: New file.
37922         * modules/unicase/ulc-casecoll: New file.
37923
37924         New module 'unicase/ulc-casexfrm'.
37925         * lib/unicase.h (ulc_casexfrm): New declaration.
37926         * lib/unicase/ulc-casexfrm.c: New file.
37927         * modules/unicase/ulc-casexfrm: New file.
37928
37929 2009-03-09  Bruno Haible  <bruno@clisp.org>
37930
37931         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
37932         invocations.
37933
37934         * m4/mbscasecmp.m4: Remove file.
37935         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
37936         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
37937
37938         * m4/mbscasestr.m4: Remove file.
37939         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
37940         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
37941
37942         * m4/mbschr.m4: Remove file.
37943         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
37944         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
37945
37946         * m4/mbscspn.m4: Remove file.
37947         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
37948         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
37949
37950         * m4/mbslen.m4: Remove file.
37951         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
37952         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
37953
37954         * m4/mbsncasecmp.m4: Remove file.
37955         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
37956         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
37957
37958         * m4/mbsnlen.m4: Remove file.
37959         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
37960         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
37961
37962         * m4/mbspbrk.m4: Remove file.
37963         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
37964         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
37965
37966         * m4/mbspcasecmp.m4: Remove file.
37967         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
37968         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
37969
37970         * m4/mbsrchr.m4: Remove file.
37971         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
37972         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
37973
37974         * m4/mbssep.m4: Remove file.
37975         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
37976         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
37977
37978         * m4/mbsspn.m4: Remove file.
37979         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
37980         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
37981
37982         * m4/mbsstr.m4: Remove file.
37983         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
37984         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
37985
37986         * m4/mbstok_r.m4: Remove file.
37987         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
37988         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
37989
37990         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
37991
37992         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
37993         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
37994
37995         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
37996
37997 2009-03-08  Bruno Haible  <bruno@clisp.org>
37998
37999         Tests for module 'unicase/ulc-casecmp'.
38000         * modules/unicase/ulc-casecmp-tests: New file.
38001         * tests/unicase/test-ulc-casecmp1.sh: New file.
38002         * tests/unicase/test-ulc-casecmp2.sh: New file.
38003         * tests/unicase/test-ulc-casecmp.c: New file.
38004
38005         New module 'unicase/ulc-casecmp'.
38006         * lib/unicase.h (ulc_casecmp): New declaration.
38007         * lib/unicase/ulc-casecmp.c: New file.
38008         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
38009         'const SRC_UNIT *'.
38010         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
38011         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
38012         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
38013         * modules/unicase/ulc-casecmp: New file.
38014
38015         Tests for module 'unicase/u32-is-cased'.
38016         * modules/unicase/u32-is-cased-tests: New file.
38017         * tests/unicase/test-u32-is-cased.c: New file.
38018
38019         Tests for module 'unicase/u16-is-cased'.
38020         * modules/unicase/u16-is-cased-tests: New file.
38021         * tests/unicase/test-u16-is-cased.c: New file.
38022
38023         Tests for module 'unicase/u8-is-cased'.
38024         * modules/unicase/u8-is-cased-tests: New file.
38025         * tests/unicase/test-u8-is-cased.c: New file.
38026         * tests/unicase/test-is-cased.h: New file.
38027
38028         New module 'unicase/u32-is-cased'.
38029         * lib/unicase/u32-is-cased.c: New file.
38030         * modules/unicase/u32-is-cased: New file.
38031
38032         New module 'unicase/u16-is-cased'.
38033         * lib/unicase/u16-is-cased.c: New file.
38034         * modules/unicase/u16-is-cased: New file.
38035
38036         New module 'unicase/u8-is-cased'.
38037         * lib/unicase/u8-is-cased.c: New file.
38038         * lib/unicase/u-is-cased.h: New file.
38039         * modules/unicase/u8-is-cased: New file.
38040
38041         Tests for module 'unicase/u32-is-casefolded'.
38042         * modules/unicase/u32-is-casefolded-tests: New file.
38043         * tests/unicase/test-u32-is-casefolded.c: New file.
38044
38045         Tests for module 'unicase/u16-is-casefolded'.
38046         * modules/unicase/u16-is-casefolded-tests: New file.
38047         * tests/unicase/test-u16-is-casefolded.c: New file.
38048
38049         Tests for module 'unicase/u8-is-casefolded'.
38050         * modules/unicase/u8-is-casefolded-tests: New file.
38051         * tests/unicase/test-u8-is-casefolded.c: New file.
38052         * tests/unicase/test-is-casefolded.h: New file.
38053
38054         New module 'unicase/u32-is-casefolded'.
38055         * lib/unicase/u32-is-casefolded.c: New file.
38056         * modules/unicase/u32-is-casefolded: New file.
38057
38058         New module 'unicase/u16-is-casefolded'.
38059         * lib/unicase/u16-is-casefolded.c: New file.
38060         * modules/unicase/u16-is-casefolded: New file.
38061
38062         New module 'unicase/u8-is-casefolded'.
38063         * lib/unicase/u8-is-casefolded.c: New file.
38064         * modules/unicase/u8-is-casefolded: New file.
38065
38066         Tests for module 'unicase/u32-is-titlecase'.
38067         * modules/unicase/u32-is-titlecase-tests: New file.
38068         * tests/unicase/test-u32-is-titlecase.c: New file.
38069
38070         Tests for module 'unicase/u16-is-titlecase'.
38071         * modules/unicase/u16-is-titlecase-tests: New file.
38072         * tests/unicase/test-u16-is-titlecase.c: New file.
38073
38074         Tests for module 'unicase/u8-is-titlecase'.
38075         * modules/unicase/u8-is-titlecase-tests: New file.
38076         * tests/unicase/test-u8-is-titlecase.c: New file.
38077         * tests/unicase/test-is-titlecase.h: New file.
38078
38079         New module 'unicase/u32-is-titlecase'.
38080         * lib/unicase/u32-is-titlecase.c: New file.
38081         * modules/unicase/u32-is-titlecase: New file.
38082
38083         New module 'unicase/u16-is-titlecase'.
38084         * lib/unicase/u16-is-titlecase.c: New file.
38085         * modules/unicase/u16-is-titlecase: New file.
38086
38087         New module 'unicase/u8-is-titlecase'.
38088         * lib/unicase/u8-is-titlecase.c: New file.
38089         * modules/unicase/u8-is-titlecase: New file.
38090
38091         Tests for module 'unicase/u32-is-lowercase'.
38092         * modules/unicase/u32-is-lowercase-tests: New file.
38093         * tests/unicase/test-u32-is-lowercase.c: New file.
38094
38095         Tests for module 'unicase/u16-is-lowercase'.
38096         * modules/unicase/u16-is-lowercase-tests: New file.
38097         * tests/unicase/test-u16-is-lowercase.c: New file.
38098
38099         Tests for module 'unicase/u8-is-lowercase'.
38100         * modules/unicase/u8-is-lowercase-tests: New file.
38101         * tests/unicase/test-u8-is-lowercase.c: New file.
38102         * tests/unicase/test-is-lowercase.h: New file.
38103
38104         New module 'unicase/u32-is-lowercase'.
38105         * lib/unicase/u32-is-lowercase.c: New file.
38106         * modules/unicase/u32-is-lowercase: New file.
38107
38108         New module 'unicase/u16-is-lowercase'.
38109         * lib/unicase/u16-is-lowercase.c: New file.
38110         * modules/unicase/u16-is-lowercase: New file.
38111
38112         New module 'unicase/u8-is-lowercase'.
38113         * lib/unicase/u8-is-lowercase.c: New file.
38114         * modules/unicase/u8-is-lowercase: New file.
38115
38116         Tests for module 'unicase/u32-is-uppercase'.
38117         * modules/unicase/u32-is-uppercase-tests: New file.
38118         * tests/unicase/test-u32-is-uppercase.c: New file.
38119
38120         Tests for module 'unicase/u16-is-uppercase'.
38121         * modules/unicase/u16-is-uppercase-tests: New file.
38122         * tests/unicase/test-u16-is-uppercase.c: New file.
38123
38124         Tests for module 'unicase/u8-is-uppercase'.
38125         * modules/unicase/u8-is-uppercase-tests: New file.
38126         * tests/unicase/test-u8-is-uppercase.c: New file.
38127         * tests/unicase/test-is-uppercase.h: New file.
38128
38129         New module 'unicase/u32-is-uppercase'.
38130         * lib/unicase/u32-is-uppercase.c: New file.
38131         * modules/unicase/u32-is-uppercase: New file.
38132
38133         New module 'unicase/u16-is-uppercase'.
38134         * lib/unicase/u16-is-uppercase.c: New file.
38135         * modules/unicase/u16-is-uppercase: New file.
38136
38137         New module 'unicase/u8-is-uppercase'.
38138         * lib/unicase/u8-is-uppercase.c: New file.
38139         * modules/unicase/u8-is-uppercase: New file.
38140
38141         New module 'unicase/u32-is-invariant'.
38142         * lib/unicase/u32-is-invariant.c: New file.
38143         * modules/unicase/u32-is-invariant: New file.
38144
38145         New module 'unicase/u16-is-invariant'.
38146         * lib/unicase/u16-is-invariant.c: New file.
38147         * modules/unicase/u16-is-invariant: New file.
38148
38149         New module 'unicase/u8-is-invariant'.
38150         * lib/unicase/u8-is-invariant.c: New file.
38151         * lib/unicase/invariant.h: New file.
38152         * lib/unicase/u-is-invariant.h: New file.
38153         * modules/unicase/u8-is-invariant: New file.
38154
38155         Tests for module 'unicase/u32-casecoll'.
38156         * modules/unicase/u32-casecoll-tests: New file.
38157         * tests/unicase/test-u32-casecoll.c: New file.
38158
38159         Tests for module 'unicase/u16-casecoll'.
38160         * modules/unicase/u16-casecoll-tests: New file.
38161         * tests/unicase/test-u16-casecoll.c: New file.
38162
38163         Tests for module 'unicase/u8-casecoll'.
38164         * modules/unicase/u8-casecoll-tests: New file.
38165         * tests/unicase/test-u8-casecoll.c: New file.
38166
38167         New module 'unicase/u32-casecoll'.
38168         * lib/unicase/u32-casecoll.c: New file.
38169         * modules/unicase/u32-casecoll: New file.
38170
38171         New module 'unicase/u16-casecoll'.
38172         * lib/unicase/u16-casecoll.c: New file.
38173         * modules/unicase/u16-casecoll: New file.
38174
38175         New module 'unicase/u8-casecoll'.
38176         * lib/unicase/u8-casecoll.c: New file.
38177         * lib/unicase/u-casecoll.h: New file.
38178         * modules/unicase/u8-casecoll: New file.
38179
38180         New module 'unicase/u32-casexfrm'.
38181         * lib/unicase/u32-casexfrm.c: New file.
38182         * modules/unicase/u32-casexfrm: New file.
38183
38184         New module 'unicase/u16-casexfrm'.
38185         * lib/unicase/u16-casexfrm.c: New file.
38186         * modules/unicase/u16-casexfrm: New file.
38187
38188         New module 'unicase/u8-casexfrm'.
38189         * lib/unicase/u8-casexfrm.c: New file.
38190         * lib/unicase/u-casexfrm.h: New file.
38191         * modules/unicase/u8-casexfrm: New file.
38192
38193         Tests for module 'unicase/u32-casecmp'.
38194         * modules/unicase/u32-casecmp-tests: New file.
38195         * tests/unicase/test-u32-casecmp.c: New file.
38196
38197         Tests for module 'unicase/u16-casecmp'.
38198         * modules/unicase/u16-casecmp-tests: New file.
38199         * tests/unicase/test-u16-casecmp.c: New file.
38200
38201         Tests for module 'unicase/u8-casecmp'.
38202         * modules/unicase/u8-casecmp-tests: New file.
38203         * tests/unicase/test-u8-casecmp.c: New file.
38204         * tests/unicase/test-casecmp.h: New file.
38205
38206         New module 'unicase/u32-casecmp'.
38207         * lib/unicase/u32-casecmp.c: New file.
38208         * modules/unicase/u32-casecmp: New file.
38209
38210         New module 'unicase/u16-casecmp'.
38211         * lib/unicase/u16-casecmp.c: New file.
38212         * modules/unicase/u16-casecmp: New file.
38213
38214         New module 'unicase/u8-casecmp'.
38215         * lib/unicase/u8-casecmp.c: New file.
38216         * lib/unicase/u-casecmp.h: New file.
38217         * modules/unicase/u8-casecmp: New file.
38218
38219         Tests for module 'unicase/u32-casefold'.
38220         * modules/unicase/u32-casefold-tests: New file.
38221         * tests/unicase/test-u32-casefold.c: New file.
38222
38223         Tests for module 'unicase/u16-casefold'.
38224         * modules/unicase/u16-casefold-tests: New file.
38225         * tests/unicase/test-u16-casefold.c: New file.
38226
38227         Tests for module 'unicase/u8-casefold'.
38228         * modules/unicase/u8-casefold-tests: New file.
38229         * tests/unicase/test-u8-casefold.c: New file.
38230
38231         New module 'unicase/u32-casefold'.
38232         * lib/unicase/u32-casefold.c: New file.
38233         * modules/unicase/u32-casefold: New file.
38234
38235         New module 'unicase/u16-casefold'.
38236         * lib/unicase/u16-casefold.c: New file.
38237         * modules/unicase/u16-casefold: New file.
38238
38239         New module 'unicase/u8-casefold'.
38240         * lib/unicase/u8-casefold.c: New file.
38241         * lib/unicase/u-casefold.h: New file.
38242         * modules/unicase/u8-casefold: New file.
38243
38244         New module 'unicase/tocasefold'.
38245         * lib/unicase/casefold.h: New file.
38246         * lib/unicase/tocasefold.c: New file.
38247         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
38248         * modules/unicase/tocasefold: New file.
38249
38250         Tests for module 'unicase/u32-totitle'.
38251         * modules/unicase/u32-totitle-tests: New file.
38252         * tests/unicase/test-u32-totitle.c: New file.
38253
38254         Tests for module 'unicase/u16-totitle'.
38255         * modules/unicase/u16-totitle-tests: New file.
38256         * tests/unicase/test-u16-totitle.c: New file.
38257
38258         Tests for module 'unicase/u8-totitle'.
38259         * modules/unicase/u8-totitle-tests: New file.
38260         * tests/unicase/test-u8-totitle.c: New file.
38261
38262         New module 'unicase/u32-totitle'.
38263         * lib/unicase/u32-totitle.c: New file.
38264         * modules/unicase/u32-totitle: New file.
38265
38266         New module 'unicase/u16-totitle'.
38267         * lib/unicase/u16-totitle.c: New file.
38268         * modules/unicase/u16-totitle: New file.
38269
38270         New module 'unicase/u8-totitle'.
38271         * lib/unicase/u8-totitle.c: New file.
38272         * lib/unicase/u-totitle.h: New file.
38273         * modules/unicase/u8-totitle: New file.
38274
38275         Tests for module 'unicase/u32-tolower'.
38276         * modules/unicase/u32-tolower-tests: New file.
38277         * tests/unicase/test-u32-tolower.c: New file.
38278
38279         Tests for module 'unicase/u16-tolower'.
38280         * modules/unicase/u16-tolower-tests: New file.
38281         * tests/unicase/test-u16-tolower.c: New file.
38282
38283         Tests for module 'unicase/u8-tolower'.
38284         * modules/unicase/u8-tolower-tests: New file.
38285         * tests/unicase/test-u8-tolower.c: New file.
38286
38287         New module 'unicase/u32-tolower'.
38288         * lib/unicase/u32-tolower.c: New file.
38289         * modules/unicase/u32-tolower: New file.
38290
38291         New module 'unicase/u16-tolower'.
38292         * lib/unicase/u16-tolower.c: New file.
38293         * modules/unicase/u16-tolower: New file.
38294
38295         New module 'unicase/u8-tolower'.
38296         * lib/unicase/u8-tolower.c: New file.
38297         * modules/unicase/u8-tolower: New file.
38298
38299         Tests for module 'unicase/u32-toupper'.
38300         * modules/unicase/u32-toupper-tests: New file.
38301         * tests/unicase/test-u32-toupper.c: New file.
38302
38303         Tests for module 'unicase/u16-toupper'.
38304         * modules/unicase/u16-toupper-tests: New file.
38305         * tests/unicase/test-u16-toupper.c: New file.
38306
38307         Tests for module 'unicase/u8-toupper'.
38308         * modules/unicase/u8-toupper-tests: New file.
38309         * tests/unicase/test-u8-toupper.c: New file.
38310
38311         New module 'unicase/u32-toupper'.
38312         * lib/unicase/u32-toupper.c: New file.
38313         * modules/unicase/u32-toupper: New file.
38314
38315         New module 'unicase/u16-toupper'.
38316         * lib/unicase/u16-toupper.c: New file.
38317         * modules/unicase/u16-toupper: New file.
38318
38319         New module 'unicase/u8-toupper'.
38320         * lib/unicase/u8-toupper.c: New file.
38321         * modules/unicase/u8-toupper: New file.
38322
38323         New module 'unicase/u32-casemap'.
38324         * lib/unicase/u32-casemap.c: New file.
38325         * modules/unicase/u32-casemap: New file.
38326
38327         New module 'unicase/u16-casemap'.
38328         * lib/unicase/u16-casemap.c: New file.
38329         * modules/unicase/u16-casemap: New file.
38330
38331         New module 'unicase/u8-casemap'.
38332         * lib/unicase/unicasemap.h: New file.
38333         * lib/unicase/u8-casemap.c: New file.
38334         * lib/unicase/u-casemap.h: New file.
38335         * modules/unicase/u8-casemap: New file.
38336
38337         New module 'unicase/special-casing'.
38338         * lib/unicase/special-casing.h: New file.
38339         * lib/unicase/special-casing.c: New file.
38340         * lib/unicase/special-casing-table.gperf: New file, generated by
38341         gen-uni-tables.c.
38342         * modules/unicase/special-casing: New file.
38343
38344         Tests for module 'unicase/locale-language'.
38345         * modules/unicase/locale-language-tests: New file.
38346         * tests/unicase/test-locale-language.sh: New file.
38347         * tests/unicase/test-locale-language.c: New file.
38348
38349         New module 'unicase/locale-language'.
38350         * lib/unicase/locale-language.c: New file.
38351         * lib/unicase/locale-languages.gperf: New file.
38352         * modules/unicase/locale-language: New file.
38353
38354         Generate more tables for case conversion and case folding.
38355         * lib/gen-uni-tables.c (SCC_*): New enum items.
38356         (struct special_casing_rule): New type.
38357         (casing_rules, num_casing_rules, allocated_casing_rules): New
38358         variables.
38359         (add_casing_rule, fill_casing_rules): New functions.
38360         (struct casefold_rule): New type.
38361         (casefolding_rules, num_casefolding_rules,
38362         allocated_casefolding_rules): New variables.
38363         (fill_casefolding_rules): New function.
38364         (unicode_casefold): New variable.
38365         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
38366         sort_casing_rules, output_casing_rules): New functions.
38367         (main): Accept to more arguments: SpecialCasing.txt and
38368         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
38369         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
38370         Output mapping for casefolding.
38371
38372         * lib/unicase.h: Include stdbool.h, uninorm.h.
38373         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
38374         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
38375         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
38376         arguments.
38377         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
38378         resultp arguments.
38379         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
38380         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
38381         resultp arguments.
38382         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
38383         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
38384         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
38385         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
38386         declarations.
38387         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
38388
38389 2009-03-08  Bruno Haible  <bruno@clisp.org>
38390
38391         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
38392         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
38393         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
38394         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
38395
38396 2009-03-07  Bruno Haible  <bruno@clisp.org>
38397
38398         Adjust u*_normcmp, u*_normcoll API.
38399         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
38400         u16_normcoll, u32_normcoll): Change failure conventions.
38401         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
38402         errno and return -1.
38403         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
38404
38405 2009-03-07  Bruno Haible  <bruno@clisp.org>
38406
38407         Tests for module 'uninorm/u32-normcoll'.
38408         * modules/uninorm/u32-normcoll-tests: New file.
38409         * tests/uninorm/test-u32-normcoll.c: New file.
38410
38411         Tests for module 'uninorm/u16-normcoll'.
38412         * modules/uninorm/u16-normcoll-tests: New file.
38413         * tests/uninorm/test-u16-normcoll.c: New file.
38414
38415         Tests for module 'uninorm/u8-normcoll'.
38416         * modules/uninorm/u8-normcoll-tests: New file.
38417         * tests/uninorm/test-u8-normcoll.c: New file.
38418
38419 2009-03-07  Bruno Haible  <bruno@clisp.org>
38420
38421         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
38422         tests/uninorm/test-u32-normcmp.c.
38423         * tests/uninorm/test-u32-normcmp.c: Include it.
38424         (test_nonascii): New function, extracted from main. Add some more
38425         tests.
38426         (main): Invoke test_ascii and test_nonascii.
38427         * modules/uninorm/u32-normcmp-tests (Files): Add
38428         tests/uninorm/test-u32-normcmp.h.
38429         (Depends-on): Remove uninorm/u32-normcmp.
38430
38431         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
38432         tests/uninorm/test-u16-normcmp.c.
38433         * tests/uninorm/test-u16-normcmp.c: Include it.
38434         (test_nonascii): New function, extracted from main. Add some more
38435         tests.
38436         (main): Invoke test_ascii and test_nonascii.
38437         * modules/uninorm/u16-normcmp-tests (Files): Add
38438         tests/uninorm/test-u16-normcmp.h.
38439         (Depends-on): Remove uninorm/u16-normcmp.
38440
38441         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
38442         tests/uninorm/test-u8-normcmp.c.
38443         * tests/uninorm/test-u8-normcmp.c: Include it.
38444         (test_nonascii): New function, extracted from main. Add some more
38445         tests.
38446         (main): Invoke test_ascii and test_nonascii.
38447         * modules/uninorm/u8-normcmp-tests (Files): Add
38448         tests/uninorm/test-u8-normcmp.h.
38449         (Depends-on): Remove uninorm/u8-normcmp.
38450
38451 2009-03-07  Bruno Haible  <bruno@clisp.org>
38452
38453         New module 'uninorm/u32-normcoll'.
38454         * lib/uninorm/u32-normcoll.c: New file.
38455         * modules/uninorm/u32-normcoll: New file.
38456
38457         New module 'uninorm/u16-normcoll'.
38458         * lib/uninorm/u16-normcoll.c: New file.
38459         * modules/uninorm/u16-normcoll: New file.
38460
38461         New module 'uninorm/u8-normcoll'.
38462         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
38463         declarations.
38464         * lib/uninorm/u8-normcoll.c: New file.
38465         * lib/uninorm/u-normcoll.h: New file.
38466         * modules/uninorm/u8-normcoll: New file.
38467
38468         New module 'uninorm/u32-normxfrm'.
38469         * lib/uninorm/u32-normxfrm.c: New file.
38470         * modules/uninorm/u32-normxfrm: New file.
38471
38472         New module 'uninorm/u16-normxfrm'.
38473         * lib/uninorm/u16-normxfrm.c: New file.
38474         * modules/uninorm/u16-normxfrm: New file.
38475
38476         New module 'uninorm/u8-normxfrm'.
38477         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
38478         declarations.
38479         * lib/uninorm/u8-normxfrm.c: New file.
38480         * lib/uninorm/u-normxfrm.h: New file.
38481         * modules/uninorm/u8-normxfrm: New file.
38482
38483 2009-03-07  Bruno Haible  <bruno@clisp.org>
38484
38485         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
38486         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
38487         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
38488
38489 2009-03-07  Bruno Haible  <bruno@clisp.org>
38490
38491         New module 'memxfrm'.
38492         * lib/memxfrm.h: New file.
38493         * lib/memxfrm.c: New file.
38494         * modules/memxfrm: New file.
38495
38496 2009-03-07  Bruno Haible  <bruno@clisp.org>
38497
38498         New module 'memcmp2'.
38499         * lib/memcmp2.h: New file.
38500         * lib/memcmp2.c: New file.
38501         * modules/memcmp2: New file.
38502
38503 2009-03-07  Bruno Haible  <bruno@clisp.org>
38504
38505         Tests for module 'uninorm/decomposing-form'.
38506         * modules/uninorm/decomposing-form-tests: New file.
38507         * tests/uninorm/test-decomposing-form.c: New file.
38508
38509         New module 'uninorm/decomposing-form'.
38510         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
38511         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
38512         Add 'decomposing_variant' field.
38513         * lib/uninorm/decomposing-form.c: New file.
38514         * lib/uninorm/nfc.c (uninorm_nfc): Update.
38515         * lib/uninorm/nfd.c (uninorm_nfd): Update.
38516         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
38517         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
38518         * modules/uninorm/decomposing-form: New file.
38519         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
38520         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
38521
38522 2009-03-07  Bruno Haible  <bruno@clisp.org>
38523
38524         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
38525         strings.
38526
38527 2009-03-06  Bruno Haible  <bruno@clisp.org>
38528
38529         Tests for module 'uninorm/u32-normcmp'.
38530         * tests/uninorm/test-u32-normcmp.c: New file.
38531         * modules/uninorm/u32-normcmp-tests: New file.
38532
38533         Tests for module 'uninorm/u16-normcmp'.
38534         * tests/uninorm/test-u16-normcmp.c: New file.
38535         * modules/uninorm/u16-normcmp-tests: New file.
38536
38537         Tests for module 'uninorm/u8-normcmp'.
38538         * tests/uninorm/test-u8-normcmp.c: New file.
38539         * modules/uninorm/u8-normcmp-tests: New file.
38540
38541         New module 'uninorm/u32-normcmp'.
38542         * lib/uninorm/u32-normcmp.c: New file.
38543         * modules/uninorm/u32-normcmp: New file.
38544
38545         New module 'uninorm/u16-normcmp'.
38546         * lib/uninorm/u16-normcmp.c: New file.
38547         * modules/uninorm/u16-normcmp: New file.
38548
38549         New module 'uninorm/u8-normcmp'.
38550         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
38551         declarations.
38552         * lib/uninorm/u8-normcmp.c: New file.
38553         * lib/uninorm/u-normcmp.h: New file.
38554         * modules/uninorm/u8-normcmp: New file.
38555
38556 2009-03-06  Bruno Haible  <bruno@clisp.org>
38557
38558         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
38559         Reported by Eric Blake.
38560
38561 2009-03-06  Eric Blake  <ebb9@byu.net>
38562             Bruno Haible  <bruno@clisp.org>
38563
38564         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
38565         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
38566         condition.
38567         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
38568         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
38569         condition.
38570         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
38571
38572 2009-03-06  Eric Blake  <ebb9@byu.net>
38573
38574         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
38575         to avoid compiler warnings.
38576         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
38577
38578 2009-03-05  Bruno Haible  <bruno@clisp.org>
38579
38580         * tests/test-ftell.c (main): Disable test beyond end of file on
38581         FreeMiNT.
38582         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
38583
38584 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
38585
38586         * lib/filevercmp.c: Move hidden files up in ordering.
38587         * tests/test-filevercmp.c: Add tests for hidden files.
38588
38589 2009-03-04  Bruno Haible  <bruno@clisp.org>
38590
38591         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
38592         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
38593         AM_CFLAGS.
38594         Reported by Simon Josefsson.
38595
38596 2009-03-03  Bruno Haible  <bruno@clisp.org>
38597
38598         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
38599         Reported by Simon Josefsson.
38600
38601         * doc/ld-version-script.texi: Update node reference.
38602
38603 2009-03-03  Bruno Haible  <bruno@clisp.org>
38604
38605         * modules/visibility (License): Change to 'unlimited'.
38606         Suggested by Simon Josefsson.
38607
38608 2009-03-03  Jim Meyering  <meyering@redhat.com>
38609
38610         unlinkdir: cannot_unlink_dir may modify process state
38611         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
38612         it's neither thread-safe nor appropriate for use in a library.
38613
38614 2009-03-03  Eric Blake  <ebb9@byu.net>
38615
38616         test-closein: silence test under Darwin
38617         * tests/test-closein.sh: Ignore stderr from cat, since we don't
38618         care if it dies from EPIPE or EBADF.
38619
38620 2009-03-03  Bruno Haible  <bruno@clisp.org>
38621
38622         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
38623         earlier.
38624         * doc/visibility.texi: Fix @node and @section.
38625
38626 2009-03-03  Simon Josefsson  <simon@josefsson.org>
38627
38628         * doc/gnulib.texi: Link to sections for ld version script and
38629         visibility.
38630         * doc/visibility.texi: Add @node and @section.
38631         * modules/ld-version-script: New module.
38632         * m4/ld-version-script.m4: New file.
38633         * doc/ld-version-script.texi: New file.
38634
38635 2009-03-02  David Lutterkort  <lutter@redhat.com>
38636
38637         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
38638         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38639
38640 2009-03-02  Bruno Haible  <bruno@clisp.org>
38641
38642         * doc/visibility.texi: Mention libtool's -export-symbols option.
38643
38644 2009-03-02  Jim Meyering  <meyering@redhat.com>
38645
38646         announce-gen: new option: --no-print-checksums
38647         * build-aux/announce-gen (usage): Describe it.
38648         (print_checksums): Print a newline here, not in the [*] footnote.
38649         (main): Honor it.
38650
38651 2009-03-01  Bruno Haible  <bruno@clisp.org>
38652
38653         Use socklen_t in the native Windows replacements prototypes.
38654         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
38655         instead of 'int'.
38656         * lib/getsockopt.c (rpl_getsockopt): Likewise.
38657         * lib/setsockopt.c (rpl_setsockopt): Likewise.
38658         * modules/getsockopt (Depends-on): Add socklen.
38659         * modules/setsockopt (Depends-on): Add socklen.
38660
38661 2009-03-01  Bruno Haible  <bruno@clisp.org>
38662
38663         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
38664         least 4.2.
38665
38666 2009-03-01  Eric Blake  <ebb9@byu.net>
38667             Bruno Haible  <bruno@clisp.org>
38668
38669         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
38670         error messages.
38671         * lib/wait-process.c (wait_subprocess): Omit error message about
38672         deadly signal sent to the child of termsigp != NULL.
38673
38674 2009-03-01  Eric Blake  <ebb9@byu.net>
38675
38676         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
38677
38678 2009-03-01  Bruno Haible  <bruno@clisp.org>
38679
38680         Avoid a gcc warning.
38681         * tests/test-sched.c (b): Make global.
38682         Reported by Eric Blake.
38683
38684 2009-01-19  Martin Lambers  <marlam@marlam.de>
38685
38686         Provide POSIX semantics for socket timeout options on W32.
38687         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
38688         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
38689         * modules/setsockopt: Depend on sys_time module for struct timeval.
38690         * modules/getsockopt: Depend on sys_time module for struct timeval.
38691
38692 2009-03-01  Simon Josefsson  <simon@josefsson.org>
38693
38694         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
38695         __USE_GNU, for consistency with netdb.in.h.
38696         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38697
38698 2009-03-01  Bruno Haible  <bruno@clisp.org>
38699
38700         More support for FreeMiNT.
38701         * lib/fseeko.c (rpl_fseeko): Complete last commit.
38702         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38703
38704 2009-03-01  Bruno Haible  <bruno@clisp.org>
38705
38706         More support for FreeMiNT.
38707         * lib/fpurge.c (fpurge): Correct last commit.
38708         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38709
38710 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38711
38712         Fix unportable awk script in vc-list-files.
38713         * build-aux/vc-list-files: In the replacement awk script, use
38714         substr with a second argument of 1, not zero.
38715         Report by Simon Josefsson.
38716
38717 2009-02-28  Bruno Haible  <bruno@clisp.org>
38718
38719         More support for FreeMiNT.
38720         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
38721         to FreeMiNT today.
38722         * lib/fwriting.c (fwriting): Likewise.
38723         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
38724
38725 2009-02-28  Bruno Haible  <bruno@clisp.org>
38726
38727         * tests/test-freadseek.c (main): Disable test beyond end of file on
38728         FreeMiNT.
38729         * tests/test-ftello.c (main): Likewise.
38730         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
38731
38732 2009-02-28  Bruno Haible  <bruno@clisp.org>
38733
38734         Add tentative support for FreeMiNT.
38735         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
38736         * lib/fpurge.c (fpurge): Likewise.
38737         * lib/freadable.c (freadable): Likewise.
38738         * lib/freading.c (freading): Likewise.
38739         * lib/freadptr.c (freadptr): Likewise.
38740         * lib/freadseek.c (freadptrinc): Likewise.
38741         * lib/fseeko.c (rpl_fseeko): Likewise.
38742         * lib/fseterr.c (fseterr): Likewise.
38743         * lib/fwritable.c (fwritable): Likewise.
38744         * lib/fwriting.c (fwriting): Likewise.
38745         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
38746         Hourihane.
38747         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38748
38749 2009-02-28  Bruno Haible  <bruno@clisp.org>
38750
38751         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
38752         SIGCHLD.
38753         Reported by Jim Meyering.
38754
38755 2009-02-28  Bruno Haible  <bruno@clisp.org>
38756
38757         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
38758         Mention the results of these tests on various platforms.
38759         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
38760         order.
38761         * doc/posix-functions/printf.texi: Likewise.
38762         * doc/posix-functions/snprintf.texi: Likewise.
38763         * doc/posix-functions/sprintf.texi: Likewise.
38764         * doc/posix-functions/vfprintf.texi: Likewise.
38765         * doc/posix-functions/vprintf.texi: Likewise.
38766         * doc/posix-functions/vsnprintf.texi: Likewise.
38767         * doc/posix-functions/vsprintf.texi: Likewise.
38768         * doc/glibc-functions/obstack_printf.texi: Likewise.
38769         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
38770
38771 2009-02-28  Bruno Haible  <bruno@clisp.org>
38772
38773         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
38774         Reported by Loïc Minier <lool@dooz.org>.
38775
38776 2009-02-27  Bruno Haible  <bruno@clisp.org>
38777
38778         * gnulib-tool (func_import): Make the sed expression used to create the
38779         sed script for updating the .gitignore file POSIX compliant.
38780         Reported by Eric Blake.
38781
38782 2009-02-27  Bruno Haible  <bruno@clisp.org>
38783
38784         * gnulib-tool (sed): Don't alias as "sed --posix".
38785         Reported by Eric Blake.
38786
38787 2009-02-27  Bruno Haible  <bruno@clisp.org>
38788
38789         Avoid test link errors.
38790         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
38791         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
38792         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
38793         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
38794         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38795
38796 2009-02-27  Bruno Haible  <bruno@clisp.org>
38797
38798         Avoid spurious "(cached)" in configure output.
38799         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
38800         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
38801         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
38802         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
38803         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
38804         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
38805         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
38806         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
38807         Reported by Eric Blake.
38808
38809 2009-02-27  Eric Blake  <ebb9@byu.net>
38810
38811         printf: fix regression in previous patch
38812         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
38813
38814 2009-02-27  Bruno Haible  <bruno@clisp.org>
38815
38816         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
38817         value.
38818         * lib/stdint.in.h: Likewise.
38819         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
38820
38821 2009-02-27  Eric Blake  <ebb9@byu.net>
38822
38823         doc: mention more functions added in cygwin 1.7.0
38824         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
38825         addition.
38826         * doc/posix-functions/open_wmemstream.texi: Likewise.
38827         * doc/posix-functions/wcsnlen.texi: Likewise.
38828         * doc/posix-functions/wcsnrtombs.texi: Likewise.
38829         * doc/posix-functions/wcstod.texi: Likewise.
38830         * doc/posix-functions/wcstof.texi: Likewise.
38831         * doc/posix-functions/wcstoimax.texi: Likewise.
38832         * doc/posix-functions/wcstok.texi: Likewise.
38833         * doc/posix-functions/wcstoumax.texi: Likewise.
38834
38835         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
38836         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
38837         * doc/posix-functions/fprintf.texi: Update.
38838         * doc/posix-functions/printf.texi: Update.
38839         * doc/posix-functions/snprintf.texi: Update.
38840         * doc/posix-functions/sprintf.texi: Update.
38841         * doc/posix-functions/vfprintf.texi: Update.
38842         * doc/posix-functions/vprintf.texi: Update.
38843         * doc/posix-functions/vsnprintf.texi: Update.
38844         * doc/posix-functions/vsprintf.texi: Update.
38845         * doc/glibc-functions/obstack_printf.texi: Update.
38846         * doc/glibc-functions/obstack_vprintf.texi: Update.
38847
38848 2009-02-26  Eric Blake  <ebb9@byu.net>
38849
38850         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
38851         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
38852         compilation bug by using runtime conversion.
38853         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
38854         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
38855         * modules/ceill-tests (Files): Use nan.h.
38856         * modules/floorl-tests (Files): Likewise.
38857         * modules/frexpl-tests (Files): Likewise.
38858         * modules/isnanl-tests (Files): Likewise.
38859         * modules/ldexpl-tests (Files): Likewise.
38860         * modules/roundl-tests (Files): Likewise.
38861         * modules/truncl-tests (Files): Likewise.
38862         * tests/test-ceill.c (main): Use a working NaN.
38863         * tests/test-floorl.c (main): Likewise.
38864         * tests/test-frexpl.c (main): Likewise.
38865         * tests/test-isnan.c (test_long_double): Likewise.
38866         * tests/test-isnanl.h (main): Likewise.
38867         * tests/test-ldexpl.h (main): Likewise.
38868         * tests/test-roundl.h (main): Likewise.
38869         * tests/test-truncl.h (main): Likewise.
38870         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
38871
38872 2009-02-26  Eric Blake  <ebb9@byu.net>
38873             Bruno Haible  <bruno@clisp.org>
38874
38875         Work around a *printf bug with %ls on Solaris.
38876         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
38877         precision is specified, sprintf stops converting the wide string
38878         argument when the number of bytes that have been produced by this
38879         conversion equals or exceeds the precision.
38880         * doc/posix-functions/fprintf.texi: Update.
38881         * doc/posix-functions/printf.texi: Update.
38882         * doc/posix-functions/snprintf.texi: Update.
38883         * doc/posix-functions/sprintf.texi: Update.
38884         * doc/posix-functions/vfprintf.texi: Update.
38885         * doc/posix-functions/vprintf.texi: Update.
38886         * doc/posix-functions/vsnprintf.texi: Update.
38887         * doc/posix-functions/vsprintf.texi: Update.
38888         * doc/glibc-functions/obstack_printf.texi: Update.
38889         * doc/glibc-functions/obstack_vprintf.texi: Update.
38890
38891 2009-02-26  Eric Blake  <ebb9@byu.net>
38892
38893         stdlib: favor compiler check of random.h
38894         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
38895         to avoid an ObjC random.h installed by Swarm.
38896
38897 2009-02-26  Bruno Haible  <bruno@clisp.org>
38898
38899         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
38900         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
38901         Reported by Gary V. Vaughan <gary@gnu.org>.
38902
38903 2009-02-26  Bruno Haible  <bruno@clisp.org>
38904
38905         Fix *printf behaviour regarding the %ls directive.
38906         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
38907         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
38908         NEED_PRINTF_DIRECTIVE_LS.
38909         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
38910         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
38911         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
38912         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
38913         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
38914         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
38915         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
38916         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
38917         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
38918         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
38919         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
38920         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
38921         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
38922         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
38923         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
38924         * doc/posix-functions/fprintf.texi: Update.
38925         * doc/posix-functions/printf.texi: Update.
38926         * doc/posix-functions/snprintf.texi: Update.
38927         * doc/posix-functions/sprintf.texi: Update.
38928         * doc/posix-functions/vfprintf.texi: Update.
38929         * doc/posix-functions/vprintf.texi: Update.
38930         * doc/posix-functions/vsnprintf.texi: Update.
38931         * doc/posix-functions/vsprintf.texi: Update.
38932         * doc/glibc-functions/obstack_printf.texi: Update.
38933         * doc/glibc-functions/obstack_vprintf.texi: Update.
38934         Reported by Eric Blake.
38935
38936 2009-02-25  Bruno Haible  <bruno@clisp.org>
38937
38938         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
38939         with known value.
38940         Reported by Gary V. Vaughan <gary@gnu.org>.
38941
38942 2009-02-25  Bruno Haible  <bruno@clisp.org>
38943
38944         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
38945         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
38946         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
38947         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
38948         Reported by Gary V. Vaughan <gary@gnu.org>.
38949
38950 2009-02-25  Bruno Haible  <bruno@clisp.org>
38951
38952         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
38953         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
38954         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
38955         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
38956         Reported by Gary V. Vaughan <gary@gnu.org>.
38957
38958 2009-02-25  Eric Blake  <ebb9@byu.net>
38959
38960         tests: skip fseek/ftell tests if ungetc is broken
38961         * m4/ungetc.m4: New file.
38962         * modules/fseek-tests: Split test, so ungetc dependency is
38963         separate from rest of test.
38964         * modules/fseeko-tests: Likewise.
38965         * modules/ftell-tests: Likewise.
38966         * modules/ftello-tests: Likewise.
38967         * tests/test-fseek.c (main): Isolate ungetc dependency.
38968         * tests/test-fseeko.c (main): Likewise.
38969         * tests/test-ftell.c (main): Likewise.
38970         * tests/test-ftello.c (main): Likewise.
38971         * tests/test-fseek2.sh: New file.
38972         * tests/test-fseeko2.sh: Likewise.
38973         * tests/test-ftell2.sh: Likewise.
38974         * tests/test-ftello2.sh: Likewise.
38975
38976 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
38977
38978         test-getaddrinfo: fix usage of skip return code 77
38979         * tests/test-gettaddrinfo.c: Return skip code 77 only
38980         for first occurance of skip (4x77 is not 77)
38981
38982 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
38983
38984         strtod: avoid C99 decl-after-statement
38985         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
38986
38987 2009-02-24  Eric Blake  <ebb9@byu.net>
38988
38989         strtod: detect HP-UX 11.31 bug
38990         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
38991         Reported by Gary V. Vaughan.
38992
38993 2009-02-23  Bruno Haible  <bruno@clisp.org>
38994
38995         Fix invalid read past end of memory block.
38996         * lib/vasnprintf.c (DCHAR_SET): Define.
38997         (local_wcslen): Define only when needed.
38998         (local_strnlen, local_wcsnlen): New functions.
38999         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
39000         directives that involve a conversion ourselves.
39001         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
39002         wcsnlen, mbrtowc, wcrtomb.
39003         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
39004         * tests/test-vasprintf-posix.c (test_function): Likewise.
39005         * tests/test-snprintf-posix.h (test_function): Likewise.
39006         * tests/test-sprintf-posix.h (test_function): Likewise.
39007         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39008
39009 2009-02-22  Bruno Haible  <bruno@clisp.org>
39010
39011         Implement new clarified decomposition of Hangul syllables.
39012         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
39013         of type LTV, return only a pairwise decomposition.
39014         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
39015         Likewise.
39016         * tests/uninorm/test-decomposition.c (main): Updated expected result.
39017         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
39018         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
39019
39020 2009-02-22  Bruno Haible  <bruno@clisp.org>
39021
39022         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
39023         zero-length results and shrink excess allocated memory.
39024         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
39025         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
39026         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
39027         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
39028         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
39029         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
39030         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
39031         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
39032         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
39033         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
39034         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
39035         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
39036
39037 2009-02-21  Bruno Haible  <bruno@clisp.org>
39038
39039         * doc/gnulib.texi: Include safe-alloc.texi earlier.
39040         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
39041         spaces after a period. Put a space between a macro name and its
39042         argument list. Trivial rewordings.
39043         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
39044         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
39045         (main): Return 0 explicitly.
39046
39047 2009-02-21  Bruno Haible  <bruno@clisp.org>
39048
39049         Tests for module 'uninorm/filter'.
39050         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
39051         * modules/uninorm/filter-tests: New file.
39052
39053         New module 'uninorm/filter'.
39054         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
39055         uninorm_filter_flush, uninorm_filter_free): New declarations.
39056         * lib/uninorm/uninorm-filter.c: New file.
39057         * modules/uninorm/filter: New file.
39058
39059 2009-02-21  Bruno Haible  <bruno@clisp.org>
39060
39061         Tests for module 'uninorm/nfkc'.
39062         * tests/uninorm/test-nfkc.c: New file.
39063         * tests/uninorm/test-u8-nfkc.c: New file.
39064         * tests/uninorm/test-u16-nfkc.c: New file.
39065         * tests/uninorm/test-u32-nfkc.c: New file.
39066         * tests/uninorm/test-u32-nfkc-big.sh: New file.
39067         * tests/uninorm/test-u32-nfkc-big.c: New file.
39068         * modules/uninorm/nfkc-tests: New file.
39069
39070         New module 'uninorm/nfkc'.
39071         * lib/uninorm/nfkc.c: New file.
39072         * modules/uninorm/nfkc: New file.
39073
39074         Tests for module 'uninorm/nfkd'.
39075         * tests/uninorm/test-nfkd.c: New file.
39076         * tests/uninorm/test-u8-nfkd.c: New file.
39077         * tests/uninorm/test-u16-nfkd.c: New file.
39078         * tests/uninorm/test-u32-nfkd.c: New file.
39079         * tests/uninorm/test-u32-nfkd-big.sh: New file.
39080         * tests/uninorm/test-u32-nfkd-big.c: New file.
39081         * modules/uninorm/nfkd-tests: New file.
39082
39083         New module 'uninorm/nfkd'.
39084         * lib/uninorm/nfkd.c: New file.
39085         * modules/uninorm/nfkd: New file.
39086
39087         Tests for module 'uninorm/nfc'.
39088         * tests/uninorm/test-nfc.c: New file.
39089         * tests/uninorm/test-u8-nfc.c: New file.
39090         * tests/uninorm/test-u16-nfc.c: New file.
39091         * tests/uninorm/test-u32-nfc.c: New file.
39092         * tests/uninorm/test-u32-nfc-big.sh: New file.
39093         * tests/uninorm/test-u32-nfc-big.c: New file.
39094         * modules/uninorm/nfc-tests: New file.
39095
39096         New module 'uninorm/nfc'.
39097         * lib/uninorm/nfc.c: New file.
39098         * modules/uninorm/nfc: New file.
39099
39100         Tests for module 'uninorm/nfd'.
39101         * tests/uninorm/test-nfd.c: New file.
39102         * tests/uninorm/test-u8-nfd.c: New file.
39103         * tests/uninorm/test-u16-nfd.c: New file.
39104         * tests/uninorm/test-u32-nfd.c: New file.
39105         * tests/uninorm/test-u32-nfd-big.sh: New file.
39106         * tests/uninorm/test-u32-nfd-big.c: New file.
39107         * tests/uninorm/test-u32-normalize-big.h: New file.
39108         * tests/uninorm/test-u32-normalize-big.c: New file.
39109         * tests/uninorm/NormalizationTest.txt: New file, created from
39110         Unicode 5.1.0 NormalizationTest.txt.
39111         * modules/uninorm/nfd-tests: New file.
39112
39113         New module 'uninorm/nfd'.
39114         * lib/uninorm/nfd.c: New file.
39115         * modules/uninorm/nfd: New file.
39116
39117         New module 'uninorm/u32-normalize'.
39118         * lib/uninorm/u32-normalize.c: New file.
39119         * modules/uninorm/u32-normalize: New file.
39120
39121         New module 'uninorm/u16-normalize'.
39122         * lib/uninorm/u16-normalize.c: New file.
39123         * modules/uninorm/u16-normalize: New file.
39124
39125         New module 'uninorm/u8-normalize'.
39126         * lib/uninorm/u8-normalize.c: New file.
39127         * lib/uninorm/normalize-internal.h: New file.
39128         * lib/uninorm/u-normalize-internal.h: New file.
39129         * modules/uninorm/u8-normalize: New file.
39130
39131         New module 'uninorm/decompose-internal'.
39132         * lib/uninorm/decompose-internal.c: New file.
39133         * modules/uninorm/decompose-internal: New file.
39134
39135         Tests for module 'uninorm/composition'.
39136         * tests/uninorm/test-composition.c: New file.
39137         * modules/uninorm/composition-tests: New file.
39138
39139         New module 'uninorm/composition'.
39140         * lib/uninorm/composition.c: New file.
39141         * lib/uninorm/composition-table.gperf: New file, generated by
39142         gen-uni-tables.
39143         * modules/uninorm/composition: New file.
39144
39145         Tests for module 'uninorm/compat-decomposition'.
39146         * tests/uninorm/test-compat-decomposition.c: New file.
39147         * modules/uninorm/compat-decomposition-tests: New file.
39148
39149         New module 'uninorm/compat-decomposition'.
39150         * lib/uninorm/decompose-internal.h: New file.
39151         * lib/uninorm/compat-decomposition.c: New file.
39152         * modules/uninorm/compat-decomposition: New file.
39153
39154         Tests for module 'uninorm/canonical-decomposition'.
39155         * tests/uninorm/test-canonical-decomposition.c: New file.
39156         * modules/uninorm/canonical-decomposition-tests: New file.
39157
39158         New module 'uninorm/canonical-decomposition'.
39159         * lib/uninorm/canonical-decomposition.c: New file.
39160         * modules/uninorm/canonical-decomposition: New file.
39161
39162         Tests for module 'uninorm/decomposition'.
39163         * tests/uninorm/test-decomposition.c: New file.
39164         * modules/uninorm/decomposition-tests: New file.
39165
39166         New module 'uninorm/decomposition'.
39167         * lib/uninorm/decomposition.c: New file.
39168         * modules/uninorm/decomposition: New file.
39169
39170         New module 'uninorm/decomposition-table'.
39171         * lib/uninorm/decomposition-table.h: New file.
39172         * lib/uninorm/decomposition-table.c: New file.
39173         * lib/uninorm/decomposition-table1.h: New file, generated by
39174         gen-uni-tables.
39175         * lib/uninorm/decomposition-table2.h: New file, generated by
39176         gen-uni-tables.
39177         * modules/uninorm/decomposition-table: New file.
39178
39179         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
39180         (UC_DECOMP_*): New enumeration items.
39181         (get_decomposition): New function.
39182         (struct decomp_table): New type.
39183         (output_decomposition, output_decomposition_tables): New functions.
39184         (unicode_composition_exclusions): New variable.
39185         (fill_composition_exclusions, debug_output_composition_tables): New
39186         functions.
39187         (main): Accept one more argument. Invoke fill_composition_exclusions.
39188         Output decomposition and composition tables.
39189
39190         New module 'uninorm/base'.
39191         * lib/uninorm.h: New file.
39192         * lib/unictype.h: Update comment.
39193         * modules/uninorm/base: New file.
39194
39195 2009-02-21  David Lutterkort  <lutter@redhat.com>
39196
39197         Tests for module 'safe-alloc'.
39198         * tests/test-safe-alloc.c: New file.
39199         * modules/safe-alloc-tests: New file.
39200
39201         New module 'safe-alloc'.
39202         * lib/safe-alloc.h: New file.
39203         * lib/safe-alloc.c: New file.
39204         * m4/safe-alloc.m4: New file.
39205         * modules/safe-alloc: New file.
39206         * doc/safe-alloc.texi: New file.
39207         * doc/gnulib.texi: Include it.
39208         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
39209         safe-alloc.
39210
39211 2009-02-18  Bruno Haible  <bruno@clisp.org>
39212
39213         Fix link error on non-glibc systems.
39214         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
39215         variable.
39216         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39217
39218 2009-02-18  Jim Meyering  <meyering@redhat.com>
39219
39220         fts: avoid used-uninitialized error due to recent change
39221         * lib/fts.c (fts_read): Guard uses of the new member,
39222         parent->fts_n_dirs_remaining, since it's not relevant for
39223         the parent of a directory specified on the command-line.
39224
39225 2009-02-17  James Youngman  <jay@gnu.org>
39226             Bruno Haible  <bruno@clisp.org>
39227
39228         * m4/include_next.m4: Reformulate comment.
39229
39230 2009-02-16  Jim Meyering  <meyering@redhat.com>
39231
39232         fts: add #if guards so that the fts_lgpl module still builds
39233         * lib/fts.c: Guard just-added hash-table-using parts with
39234         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
39235         Reported by Simon Josefsson.
39236
39237 2009-02-15  Bruno Haible  <bruno@clisp.org>
39238
39239         * modules/array-mergesort-tests: New file.
39240         * tests/test-array-mergesort.c: New file.
39241
39242         New module 'array-mergesort'.
39243         * modules/array-mergesort: New file.
39244         * lib/array-mergesort.h: New file.
39245
39246 2009-02-15  Bruno Haible  <bruno@clisp.org>
39247
39248         Fix 2009-02-07 commit.
39249         * lib/gen-uni-tables.c (output_predicate, output_category,
39250         output_combclass, output_bidi_category, output_decimal_digit,
39251         output_digit, output_numeric, output_mirror, output_scripts,
39252         output_ident_category, output_simple_mapping): Fix format directives.
39253         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
39254
39255 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
39256
39257         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
39258         fixes are available from IBM.
39259
39260 2009-02-13  Jim Meyering  <meyering@redhat.com>
39261
39262         fts: arrange not to stat non-directories in more cases
39263         This makes GNU find (when it doesn't need to stat each file)
39264         *much* more efficient at traversing reiserfs file systems.
39265         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
39266         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
39267         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
39268         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
39269         (leaf_optimization_applies): New function.
39270         (LCO_hash, LCO_compare): New helper functions.
39271         (link_count_optimize_ok): New function.
39272         (fts_stat): Initialize new member (if dir).
39273         (fts_read): Decrement parent's fts_n_dirs_remaining count if
39274         we've just stat'ed a directory.  Skip the stat call when possible.
39275         ---
39276         Note this AFS-related exchange:
39277         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
39278         and note find's pioctl call in find/fstype.c.
39279         But that is necessary only if you want to enable the
39280         optimization for AFS, and for now, I don't.
39281
39282         fts: move a function definition "up" (no semantic change)
39283         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
39284         "up" to precede upcoming use of a related function.
39285
39286 2009-02-11  Jim Meyering  <meyering@redhat.com>
39287
39288         fts: correct internal computation of nlinks (optimization-related)
39289         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
39290         whether the current entry is a directory, so don't test it.
39291
39292 2009-02-10  Bruno Haible  <bruno@clisp.org>
39293
39294         Tests for module 'uniwbrk/ulc-wordbreaks'.
39295         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
39296         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
39297         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
39298
39299         Tests for module 'uniwbrk/u32-wordbreaks'.
39300         * modules/uniwbrk/u32-wordbreaks-tests: New file.
39301         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
39302
39303         Tests for module 'uniwbrk/u16-wordbreaks'.
39304         * modules/uniwbrk/u16-wordbreaks-tests: New file.
39305         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
39306
39307         Tests for module 'uniwbrk/u8-wordbreaks'.
39308         * modules/uniwbrk/u8-wordbreaks-tests: New file.
39309         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
39310
39311 2009-02-10  Bruno Haible  <bruno@clisp.org>
39312
39313         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
39314         property.
39315         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
39316         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
39317         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
39318
39319 2009-02-10  Simon Josefsson  <simon@josefsson.org>
39320
39321         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
39322         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
39323
39324 2009-02-10  Bruno Haible  <bruno@clisp.org>
39325
39326         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
39327         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
39328         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
39329         * lib/unilbrk/u8-possible-linebreaks.c: Update.
39330         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
39331         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
39332
39333 2009-02-09  Simon Josefsson  <simon@josefsson.org>
39334
39335         * lib/sockets.h (gl_fd_to_handle): New function.
39336
39337         * tests/test-sockets.c: Call gl_fd_to_handle.
39338
39339 2009-02-09  Bruno Haible  <bruno@clisp.org>
39340
39341         * doc/havelib.texi: Document the conventions on bi-arch systems.
39342
39343 2009-02-08  Bruno Haible  <bruno@clisp.org>
39344
39345         Document the AC_LIB_LINKFLAGS macro.
39346         * doc/havelib.texi: New file, mostly written on 2005-05-24.
39347         * doc/gnulib.texi: Include it.
39348
39349 2009-02-08  Bruno Haible  <bruno@clisp.org>
39350
39351         Fix wrong order of sections, compared to TOC.
39352         * doc/gnulib.texi: Include relocatable-maint.texi after the
39353         "Regular expressions" node, not before.
39354
39355 2009-02-08  Bruno Haible  <bruno@clisp.org>
39356
39357         Tests for module 'unicase/totitle'.
39358         * modules/unicase/totitle-tests: New file.
39359
39360         Tests for module 'unicase/tolower'.
39361         * modules/unicase/tolower-tests: New file.
39362
39363         Tests for module 'unicase/toupper'.
39364         * modules/unicase/toupper-tests: New file.
39365         * tests/unicase/test-mapping-part1.h: New file.
39366         * tests/unicase/test-mapping-part2.h: New file.
39367
39368         New module 'unicase/totitle'.
39369         * modules/unicase/totitle: New file.
39370         * lib/unicase/totitle.c: New file.
39371
39372         New module 'unicase/tolower'.
39373         * modules/unicase/tolower: New file.
39374         * lib/unicase/tolower.c: New file.
39375
39376         New module 'unicase/toupper'.
39377         * modules/unicase/toupper: New file.
39378         * lib/unicase/toupper.c: New file.
39379         * lib/unicase/simple-mapping.h: New file.
39380
39381         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
39382         (mapping_table): New structure.
39383         (output_simple_mapping): New function.
39384         (main): Invoke output_simple_mapping_test and output_simple_mapping.
39385         * modules/gen-uni-tables (Description): Update.
39386         * lib/unicase/toupper.h: New file, automatically generated by
39387         gen-uni-tables.
39388         * lib/unicase/tolower.h: New file, automatically generated by
39389         gen-uni-tables.
39390         * lib/unicase/totitle.h: New file, automatically generated by
39391         gen-uni-tables.
39392         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
39393         gen-uni-tables.
39394         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
39395         gen-uni-tables.
39396         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
39397         gen-uni-tables.
39398
39399         New module 'unicase/base'.
39400         * modules/unicase/base: New file.
39401         * lib/unicase.h: New file.
39402
39403 2009-02-08  Bruno Haible  <bruno@clisp.org>
39404
39405         New module 'uniwbrk/ulc-wordbreaks'.
39406         * modules/uniwbrk/ulc-wordbreaks: New file.
39407         * lib/uniwbrk/ulc-wordbreaks.c: New file.
39408
39409         New module 'uniwbrk/u32-wordbreaks'.
39410         * modules/uniwbrk/u32-wordbreaks: New file.
39411         * lib/uniwbrk/u32-wordbreaks.c: New file.
39412
39413         New module 'uniwbrk/u16-wordbreaks'.
39414         * modules/uniwbrk/u16-wordbreaks: New file.
39415         * lib/uniwbrk/u16-wordbreaks.c: New file.
39416
39417         New module 'uniwbrk/u8-wordbreaks'.
39418         * modules/uniwbrk/u8-wordbreaks: New file.
39419         * lib/uniwbrk/u8-wordbreaks.c: New file.
39420         * lib/uniwbrk/u-wordbreaks.h: New file.
39421
39422         New module 'uniwbrk/table'.
39423         * modules/uniwbrk/table: New file.
39424         * lib/uniwbrk/wbrktable.h: New file.
39425         * lib/uniwbrk/wbrktable.c: New file.
39426
39427         New module 'uniwbrk/wordbreak-property'.
39428         * modules/uniwbrk/wordbreak-property: New file.
39429         * lib/uniwbrk/wordbreak-property.c: New file.
39430
39431         * lib/gen-uni-tables.c (WBP_*): New enum items.
39432         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
39433         (unicode_org_wbp): New variable.
39434         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
39435         New functions.
39436         (wbp_table): New structure.
39437         (output_wbp, output_wbrk_tables): New functions.
39438         (main): Accept additional argument. Invoke fill_org_wbp,
39439         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
39440         output_wbrk_tables.
39441         * modules/gen-uni-tables (Description): Update.
39442         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
39443         gen-uni-tables.
39444
39445         New module 'uniwbrk/base'.
39446         * modules/uniwbrk/base: New file.
39447         * lib/uniwbrk.h: New file.
39448
39449 2009-02-08  Bruno Haible  <bruno@clisp.org>
39450
39451         Update to Unicode 5.1.0.
39452         * lib/gen-uni-tables.c (is_property_alphabetic): Include
39453         U+2185..U+2188.
39454         (is_property_default_ignorable_code_point): Don't include characters
39455         of category Cc or Cs and not-a-characters.
39456         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
39457         U+0D79, U+109E, U+109F, U+A60C.
39458         * lib/unictype/bidi_of.h: Regenerated.
39459         * lib/unictype/blocks.h: Regenerated.
39460         * lib/unictype/categ_C.h: Regenerated.
39461         * lib/unictype/categ_Cf.h: Regenerated.
39462         * lib/unictype/categ_Cn.h: Regenerated.
39463         * lib/unictype/categ_L.h: Regenerated.
39464         * lib/unictype/categ_Ll.h: Regenerated.
39465         * lib/unictype/categ_Lm.h: Regenerated.
39466         * lib/unictype/categ_Lo.h: Regenerated.
39467         * lib/unictype/categ_Lu.h: Regenerated.
39468         * lib/unictype/categ_M.h: Regenerated.
39469         * lib/unictype/categ_Mc.h: Regenerated.
39470         * lib/unictype/categ_Me.h: Regenerated.
39471         * lib/unictype/categ_Mn.h: Regenerated.
39472         * lib/unictype/categ_N.h: Regenerated.
39473         * lib/unictype/categ_Nd.h: Regenerated.
39474         * lib/unictype/categ_Nl.h: Regenerated.
39475         * lib/unictype/categ_No.h: Regenerated.
39476         * lib/unictype/categ_P.h: Regenerated.
39477         * lib/unictype/categ_Pd.h: Regenerated.
39478         * lib/unictype/categ_Pe.h: Regenerated.
39479         * lib/unictype/categ_Pf.h: Regenerated.
39480         * lib/unictype/categ_Pi.h: Regenerated.
39481         * lib/unictype/categ_Po.h: Regenerated.
39482         * lib/unictype/categ_Ps.h: Regenerated.
39483         * lib/unictype/categ_S.h: Regenerated.
39484         * lib/unictype/categ_Sk.h: Regenerated.
39485         * lib/unictype/categ_Sm.h: Regenerated.
39486         * lib/unictype/categ_So.h: Regenerated.
39487         * lib/unictype/categ_of.h: Regenerated.
39488         * lib/unictype/combining.h: Regenerated.
39489         * lib/unictype/ctype_alnum.h: Regenerated.
39490         * lib/unictype/ctype_alpha.h: Regenerated.
39491         * lib/unictype/ctype_graph.h: Regenerated.
39492         * lib/unictype/ctype_lower.h: Regenerated.
39493         * lib/unictype/ctype_print.h: Regenerated.
39494         * lib/unictype/ctype_punct.h: Regenerated.
39495         * lib/unictype/ctype_upper.h: Regenerated.
39496         * lib/unictype/decdigit.h: Regenerated.
39497         * lib/unictype/digit.h: Regenerated.
39498         * lib/unictype/mirror.h: Regenerated.
39499         * lib/unictype/numeric.h: Regenerated.
39500         * lib/unictype/pr_alphabetic.h: Regenerated.
39501         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
39502         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
39503         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
39504         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
39505         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
39506         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
39507         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
39508         * lib/unictype/pr_combining.h: Regenerated.
39509         * lib/unictype/pr_dash.h: Regenerated.
39510         * lib/unictype/pr_decimal_digit.h: Regenerated.
39511         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
39512         * lib/unictype/pr_deprecated.h: Regenerated.
39513         * lib/unictype/pr_diacritic.h: Regenerated.
39514         * lib/unictype/pr_extender.h: Regenerated.
39515         * lib/unictype/pr_format_control.h: Regenerated.
39516         * lib/unictype/pr_grapheme_base.h: Regenerated.
39517         * lib/unictype/pr_grapheme_extend.h: Regenerated.
39518         * lib/unictype/pr_grapheme_link.h: Regenerated.
39519         * lib/unictype/pr_id_continue.h: Regenerated.
39520         * lib/unictype/pr_id_start.h: Regenerated.
39521         * lib/unictype/pr_ideographic.h: Regenerated.
39522         * lib/unictype/pr_ignorable_control.h: Regenerated.
39523         * lib/unictype/pr_lowercase.h: Regenerated.
39524         * lib/unictype/pr_math.h: Regenerated.
39525         * lib/unictype/pr_numeric.h: Regenerated.
39526         * lib/unictype/pr_other_alphabetic.h: Regenerated.
39527         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
39528         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
39529         * lib/unictype/pr_other_id_continue.h: Regenerated.
39530         * lib/unictype/pr_other_lowercase.h: Regenerated.
39531         * lib/unictype/pr_other_math.h: Regenerated.
39532         * lib/unictype/pr_punctuation.h: Regenerated.
39533         * lib/unictype/pr_sentence_terminal.h: Regenerated.
39534         * lib/unictype/pr_soft_dotted.h: Regenerated.
39535         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
39536         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
39537         * lib/unictype/pr_unified_ideograph.h: Regenerated.
39538         * lib/unictype/pr_uppercase.h: Regenerated.
39539         * lib/unictype/pr_xid_continue.h: Regenerated.
39540         * lib/unictype/pr_xid_start.h: Regenerated.
39541         * lib/unictype/pr_zero_width.h: Regenerated.
39542         * lib/unictype/scripts.h: Regenerated.
39543         * lib/unictype/scripts_byname.gperf: Regenerated.
39544         * lib/unictype/sy_java_ident.h: Regenerated.
39545         * lib/unilbrk/lbrkprop1.h: Regenerated.
39546         * lib/unilbrk/lbrkprop2.h: Regenerated.
39547         * tests/unictype/test-categ_C.c: Regenerated.
39548         * tests/unictype/test-categ_Cf.c: Regenerated.
39549         * tests/unictype/test-categ_Cn.c: Regenerated.
39550         * tests/unictype/test-categ_L.c: Regenerated.
39551         * tests/unictype/test-categ_Ll.c: Regenerated.
39552         * tests/unictype/test-categ_Lm.c: Regenerated.
39553         * tests/unictype/test-categ_Lo.c: Regenerated.
39554         * tests/unictype/test-categ_Lu.c: Regenerated.
39555         * tests/unictype/test-categ_M.c: Regenerated.
39556         * tests/unictype/test-categ_Mc.c: Regenerated.
39557         * tests/unictype/test-categ_Me.c: Regenerated.
39558         * tests/unictype/test-categ_Mn.c: Regenerated.
39559         * tests/unictype/test-categ_N.c: Regenerated.
39560         * tests/unictype/test-categ_Nd.c: Regenerated.
39561         * tests/unictype/test-categ_Nl.c: Regenerated.
39562         * tests/unictype/test-categ_No.c: Regenerated.
39563         * tests/unictype/test-categ_P.c: Regenerated.
39564         * tests/unictype/test-categ_Pd.c: Regenerated.
39565         * tests/unictype/test-categ_Pe.c: Regenerated.
39566         * tests/unictype/test-categ_Pf.c: Regenerated.
39567         * tests/unictype/test-categ_Pi.c: Regenerated.
39568         * tests/unictype/test-categ_Po.c: Regenerated.
39569         * tests/unictype/test-categ_Ps.c: Regenerated.
39570         * tests/unictype/test-categ_S.c: Regenerated.
39571         * tests/unictype/test-categ_Sk.c: Regenerated.
39572         * tests/unictype/test-categ_Sm.c: Regenerated.
39573         * tests/unictype/test-categ_So.c: Regenerated.
39574         * tests/unictype/test-ctype_alnum.c: Regenerated.
39575         * tests/unictype/test-ctype_alpha.c: Regenerated.
39576         * tests/unictype/test-ctype_graph.c: Regenerated.
39577         * tests/unictype/test-ctype_lower.c: Regenerated.
39578         * tests/unictype/test-ctype_print.c: Regenerated.
39579         * tests/unictype/test-ctype_punct.c: Regenerated.
39580         * tests/unictype/test-ctype_upper.c: Regenerated.
39581         * tests/unictype/test-decdigit.h: Regenerated.
39582         * tests/unictype/test-digit.h: Regenerated.
39583         * tests/unictype/test-numeric.h: Regenerated.
39584         * tests/unictype/test-pr_alphabetic.c: Regenerated.
39585         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
39586         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
39587         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
39588         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
39589         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
39590         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
39591         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
39592         * tests/unictype/test-pr_combining.c: Regenerated.
39593         * tests/unictype/test-pr_dash.c: Regenerated.
39594         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
39595         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
39596         * tests/unictype/test-pr_deprecated.c: Regenerated.
39597         * tests/unictype/test-pr_diacritic.c: Regenerated.
39598         * tests/unictype/test-pr_extender.c: Regenerated.
39599         * tests/unictype/test-pr_format_control.c: Regenerated.
39600         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
39601         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
39602         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
39603         * tests/unictype/test-pr_id_continue.c: Regenerated.
39604         * tests/unictype/test-pr_id_start.c: Regenerated.
39605         * tests/unictype/test-pr_ideographic.c: Regenerated.
39606         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
39607         * tests/unictype/test-pr_lowercase.c: Regenerated.
39608         * tests/unictype/test-pr_math.c: Regenerated.
39609         * tests/unictype/test-pr_numeric.c: Regenerated.
39610         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
39611         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
39612         Regenerated.
39613         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
39614         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
39615         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
39616         * tests/unictype/test-pr_other_math.c: Regenerated.
39617         * tests/unictype/test-pr_punctuation.c: Regenerated.
39618         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
39619         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
39620         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
39621         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
39622         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
39623         * tests/unictype/test-pr_uppercase.c: Regenerated.
39624         * tests/unictype/test-pr_xid_continue.c: Regenerated.
39625         * tests/unictype/test-pr_xid_start.c: Regenerated.
39626         * tests/unictype/test-pr_zero_width.c: Regenerated.
39627
39628         Update to Unicode 5.1.0.
39629         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
39630         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
39631         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
39632         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
39633         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
39634         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
39635         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
39636         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
39637         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
39638         (nonspacing_table_ind): Update.
39639         * tests/uniwidth/test-uc_width2.sh: Update expected result.
39640
39641         Update to Unicode 5.1.0.
39642         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
39643         code transform.
39644         * lib/uniname/uniname.c (unicode_character_name,
39645         unicode_name_character): Add the range 0x1Fxxx to the code transform.
39646         * lib/uniname/uninames.h: Regenerated.
39647         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
39648
39649 2009-02-07  Bruno Haible  <bruno@clisp.org>
39650
39651         Merge gen-ctype and gen-lbrk into a single program.
39652         * lib/gen-uni-tables.c: New file, incorporating
39653         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
39654         Add directory prefixes to the names of the generated files.
39655         * lib/unictype/gen-ctype.c: Remove file.
39656         * lib/unilbrk/gen-lbrk.c: Remove file.
39657         * modules/gen-uni-tables: New file.
39658         * modules/unictype/gen-ctype: Remove file.
39659         * modules/unilbrk/gen-lbrk: Remove file.
39660
39661 2009-02-07  Bruno Haible  <bruno@clisp.org>
39662
39663         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
39664
39665         New module 'unistr/u32-strcoll'.
39666         * modules/unistr/u32-strcoll: New file.
39667         * lib/unistr/u32-strcoll.c: New file.
39668
39669         New module 'unistr/u16-strcoll'.
39670         * modules/unistr/u16-strcoll: New file.
39671         * lib/unistr/u16-strcoll.c: New file.
39672
39673         New module 'unistr/u8-strcoll'.
39674         * modules/unistr/u8-strcoll: New file.
39675         * lib/unistr/u8-strcoll.c: New file.
39676         * lib/unistr/u-strcoll.h: New file.
39677
39678 2009-02-07  Bruno Haible  <bruno@clisp.org>
39679
39680         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
39681         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
39682         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
39683         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
39684         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
39685         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
39686
39687 2009-02-07  Bruno Haible  <bruno@clisp.org>
39688
39689         Make 64-bit clean.
39690         * lib/unictype/gen-ctype.c (output_predicate, output_category,
39691         output_combclass, output_bidi_category, output_decimal_digit,
39692         output_digit, output_numeric, output_mirror, output_scripts,
39693         output_ident_category): Use proper width specifier in format strings.
39694
39695 2009-02-07  Bruno Haible  <bruno@clisp.org>
39696
39697         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
39698         failure behaviour.
39699
39700 2009-02-07  Jim Meyering  <meyering@redhat.com>
39701
39702         regex: avoid compilation failure with upcoming gcc-4.4
39703         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
39704         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
39705         "... error: integer overflow in preprocessor expression".
39706
39707 2009-02-05  Ben Pfaff  <blp@gnu.org>
39708
39709         Fix link errors on Windows when close module is used.
39710         * modules/close: Add $(LIB_CLOSE) to Link section.
39711         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
39712         $(LIB_CLOSE) on Windows.
39713
39714 2009-02-05  Jim Meyering  <meyering@redhat.com>
39715
39716         still avoid unused-parameter warnings, but do it cleanly
39717         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
39718         (get_fs_usage): Cast to void instead.
39719         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
39720         (dev_from_mount_options, read_file_system_list): Cast to void.
39721         Prompted by Bruno Haible.
39722
39723 2009-02-04  Jim Meyering  <meyering@redhat.com>
39724
39725         fsusage.c: correct copyright year
39726         * lib/fsusage.c: Reflect year in which the change is pushed into
39727
39728         avoid misc. warnings
39729         * lib/fsusage.c (UNUSED_PARAM): Define.
39730         (get_fs_usage): Mark parameter "disk" as unused.
39731         * lib/getugroups.c (getgrent): Use "void" in prototype.
39732         * lib/mountlist.c: Mark unused parameters.
39733         (read_file_system_list): Declare a local with "const".
39734         * lib/nanosleep.c (getnow): Declare static.
39735         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
39736
39737         dirfd: set errno upon failure
39738         * lib/dirfd.c: Include <errno.h>.
39739         Set errno to ENOTSUP when returning -1.
39740         * modules/dirfd (Depends-on): Add errno.
39741         Suggested by John Kodis <kodis@comcast.net>.
39742
39743 2009-02-01  Bruno Haible  <bruno@clisp.org>
39744
39745         Don't assume sizeof (long) >= sizeof (void *).
39746         * lib/memcmp.c: Include stdint.h.
39747         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
39748         srcp2 to 'const byte *'.
39749         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
39750         types to uintptr_t.
39751         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
39752         * modules/memcmp (Depends-on): Add stdint.
39753         Reported by Ozkan Sezer <sezeroz@gmail.com>.
39754
39755 2009-01-30  Eric Blake  <ebb9@byu.net>
39756
39757         fix more require-before-expand issues
39758         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
39759         expand, AC_PROG_AWK.
39760         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
39761
39762 2009-01-28  Eric Blake  <ebb9@byu.net>
39763
39764         version-etc: use consistent URL formatting
39765         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
39766         Improve formatting.  Use fputs for string without %.
39767
39768 2009-01-28  Jim Meyering  <meyering@redhat.com>
39769
39770         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
39771         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
39772         "underquoted definition of NAME" from autoconf-2.59.
39773
39774 2009-01-28  Bruno Haible  <bruno@clisp.org>
39775
39776         * doc/gnulib.texi: Add "Obsolete modules" to index.
39777
39778 2009-01-28  Jim Meyering  <meyering@redhat.com>
39779
39780         useless-if-before-free: recognize more variants
39781         * build-aux/useless-if-before-free: Also recognize e.g.,
39782         if (NULL != p) free (p);
39783
39784 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
39785
39786         test-getaddrinfo: skip (don't fail) this test when there's no network
39787         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
39788         on the presumption that it means you lack network access.
39789
39790 2009-01-26  Jim Meyering  <meyering@redhat.com>
39791
39792         fflush: avoid warnings on modern systems
39793         * lib/fflush.c (rpl_fflush): Move declarations of locals,
39794         pos and result, into scopes where they're used.
39795
39796 2009-01-26  Eric Blake  <ebb9@byu.net>
39797
39798         Silence warning reintroduced by recent extensions patch.
39799         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
39800         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
39801         autoconf.
39802
39803         Backport improved autoconf semantics of AC_DEFUN_ONCE.
39804         * m4/00gnulib.m4: New file.
39805         * gnulib-tool (func_get_filelist): Always use it.
39806         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
39807         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
39808
39809 2009-01-25  Bruno Haible  <bruno@clisp.org>
39810
39811         Make test-quotearg work on MacOS X and AIX.
39812         * tests/test-quotearg.sh: New file.
39813         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
39814         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
39815         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
39816         include <libintl.h>.
39817         (fake_locale): Remove variable.
39818         (gettext, dgettext, dcgettext): Remove functions.
39819         (main): Instead of setting a fake locale, set a real locale. Call
39820         textdomain and bindtextdomain.
39821         * modules/quotearg-tests (Files): Add the new files.
39822         (Depends-on): Add gettext, setenv, unsetenv.
39823         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
39824         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
39825         Augment TESTS_ENVIRONMENT.
39826
39827 2009-01-25  Bruno Haible  <bruno@clisp.org>
39828
39829         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
39830         fr_FR.ISO8859-1 locale on MacOS X.
39831         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
39832         ja_JP.eucJP locale on MacOS X.
39833         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
39834         zh_CN.GB18030 locale on MacOS X.
39835
39836 2009-01-25  Bruno Haible  <bruno@clisp.org>
39837
39838         Avoid link errors on MacOS X 10.3.
39839         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
39840         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
39841
39842 2009-01-25  Bruno Haible  <bruno@clisp.org>
39843
39844         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
39845         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
39846         * modules/pipe (Files): Remove m4/posix_spawn.m4.
39847         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
39848         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
39849         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
39850         posix_spawnattr_init, posix_spawnattr_setsigmask,
39851         posix_spawnattr_setflags, posix_spawnattr_destroy.
39852
39853         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
39854         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
39855         * modules/execute (Files): Remove m4/posix_spawn.m4.
39856         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
39857         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
39858         posix_spawnattr_init, posix_spawnattr_setsigmask,
39859         posix_spawnattr_setflags, posix_spawnattr_destroy.
39860
39861 2009-01-25  Bruno Haible  <bruno@clisp.org>
39862
39863         * lib/glthread/threadlib.c: Include <stdlib.h>.
39864
39865 2009-01-25  Bruno Haible  <bruno@clisp.org>
39866
39867         * lib/glthread/threadlib.c (dummy): New declaration.
39868
39869 2009-01-25  Bruno Haible  <bruno@clisp.org>
39870
39871         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
39872         multibyte characters also for the GB18030 encoding. Don't crash when
39873         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
39874
39875 2009-01-25  Bruno Haible  <bruno@clisp.org>
39876
39877         Avoid redefining 'struct random_data' on OSF/1 5.1.
39878         * lib/stdlib.in.h: Include <random.h> if it exists.
39879         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
39880         HAVE_RANDOM_H. Include <random.h> when testing whether
39881         'struct random_data' exists.
39882         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
39883
39884 2009-01-25  Bruno Haible  <bruno@clisp.org>
39885
39886         Don't install charset.alias on MacOS X >= 10.3.
39887         * lib/localcharset.c (DARWIN7): New macro.
39888         (get_charset_aliases): Hardcode the result for Darwin7.
39889         * modules/localcharset (install-exec-local): Don't install
39890         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
39891
39892 2009-01-25  Bruno Haible  <bruno@clisp.org>
39893
39894         Don't install charset.alias on mingw and Cygwin.
39895         * modules/localcharset (install-exec-local): Don't install
39896         charset.alias on mingw and Cygwin, if the file does not yet exist.
39897         The result for these platforms is hardcoded in localcharset.c.
39898
39899 2009-01-25  Bruno Haible  <bruno@clisp.org>
39900
39901         Make it possible again to use AC_GNU_SOURCE together with gnulib.
39902         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
39903         before requiring AC_USE_SYSTEM_EXTENSIONS.
39904
39905 2009-01-25  Jim Meyering  <meyering@redhat.com>
39906
39907         c-strtod: avoid warnings
39908         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
39909         "assignment discards qualifiers from pointer target type" warnings.
39910
39911 2009-01-24  Bruno Haible  <bruno@clisp.org>
39912
39913         Add support for non-UTF-8 locales on MacOS X.
39914         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
39915         canonical encodings. For Darwin 7 and newer, don't map traditional
39916         encodings to UTF-8.
39917         Reported by Vincent Lefevre <vincent@vinc17.org>
39918         at <http://savannah.gnu.org/bugs/?25235>.
39919
39920 2009-01-24  Bruno Haible  <bruno@clisp.org>
39921
39922         * doc/gnulib.texi (Obsolete modules): New section.
39923         Reported by Mike Frysinger <vapier@gentoo.org>.
39924
39925 2009-01-24  Bruno Haible  <bruno@clisp.org>
39926
39927         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
39928         (%.dvi): New rule.
39929
39930 2009-01-24  Bruno Haible  <bruno@clisp.org>
39931
39932         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
39933         Reported by Eric Blake.
39934
39935 2009-01-24  Bruno Haible  <bruno@clisp.org>
39936
39937         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
39938         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
39939         Reported by Gary V. Vaughan <gary@gnu.org>.
39940
39941 2009-01-24  Bruno Haible  <bruno@clisp.org>
39942
39943         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
39944
39945 2009-01-23  Bruno Haible  <bruno@clisp.org>
39946
39947         Make c-strtod, c-strtold usable in libraries.
39948         * lib/c-strtod.c: Include string.h instead of xalloc.h.
39949         (C_STRTOD): Call strdup instead of xstrdup.
39950         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
39951         * modules/c-strtold (Depends-on): Likewise.
39952         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
39953         * NEWS: Mention the change.
39954         Reported by Michael Gold <mgold@ncf.ca>.
39955
39956 2009-01-23  Jim Meyering  <meyering@redhat.com>
39957
39958         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
39959         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
39960         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
39961
39962 2009-01-23  Simon Josefsson  <simon@josefsson.org>
39963
39964         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
39965         GNU CoreUtils.
39966         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
39967         * modules/version-etc (Description): Update.
39968
39969 2009-01-22  Bruno Haible  <bruno@clisp.org>
39970
39971         Cache the C locale object.
39972         * lib/c-strtod.c (c_locale_cache): New variable.
39973         (c_locale): New function.
39974         (C_STRTOD): Use it, and don't call freelocale.
39975         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
39976         Suggested by Paolo Bonzini.
39977
39978 2009-01-21  Bruno Haible  <bruno@clisp.org>
39979
39980         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
39981         conditions other than overflow.
39982
39983 2009-01-21  Bruno Haible  <bruno@clisp.org>
39984
39985         * lib/c-strtod.c: Include errno.h.
39986         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
39987         value from STRTOD_L and STRTOD.
39988
39989 2009-01-21  Bruno Haible  <bruno@clisp.org>
39990         and Jim Meyering  <meyering@redhat.com>
39991
39992         nanosleep: skip configure test (fail it) for apple universal builds
39993         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
39994         universal builds, assume that nanosleep does not work.
39995         * modules/nanosleep (Depends-on): Add multiarch.
39996
39997         mktime: skip configure test (fail it) for apple universal builds
39998         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
39999         universal builds, assume that mktime does not work.
40000         * modules/mktime (Depends-on): Add multiarch.
40001
40002 2009-01-21  Eric Blake  <ebb9@byu.net>
40003
40004         multiarch: avoid expand-before-require warning
40005         * modules/multiarch (configure.ac): Require, rather than expand,
40006         gl_MULTIARCH.
40007         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
40008         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
40009         enforce that all clients require it.  Partial reversion of
40010         2008-12-29 patch.
40011
40012         error: avoid expand-before-require warning
40013         * modules/errno (configure.ac): Require, rather than expand,
40014         gl_HEADER_ERRNO_H.
40015         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
40016         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
40017         enforce that all clients require it.
40018
40019         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
40020         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
40021         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
40022         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
40023
40024 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
40025
40026         Revert:
40027         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
40028
40029         regex: do not depend on obsolete modules.
40030         * modules/regex: Remove memcmp and memmove.
40031
40032 2009-01-20  Bruno Haible  <bruno@clisp.org>
40033
40034         Make the 'link' module link on Windows NT 4.
40035         * lib/link.c (_WIN32_WINNT): Don't define.
40036         (CreateHardLinkFuncType): New type.
40037         (CreateHardLinkFunc, initialized): New variables.
40038         (initialize): New function.
40039         (link): Invoke CreateHardLink indirectly through the function pointer.
40040
40041 2009-01-20  Bruno Haible  <bruno@clisp.org>
40042
40043         Fix compilation failure on mingw.
40044         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
40045
40046 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
40047
40048         * doc/c-strtod.texi: Mention a couple of restrictions.
40049
40050 2009-01-20  Jim Meyering  <meyering@redhat.com>
40051
40052         gettimeofday: move more declarations out of functions
40053         * lib/gettimeofday.c: Move extern declarations of tzset and
40054         gmtime out of containing functions.  Prompted by Bruno Haible.
40055
40056 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
40057
40058         regex: do not depend on obsolete modules.
40059         * modules/regex: Remove memcmp and memmove.
40060
40061 2009-01-19  Bruno Haible  <bruno@clisp.org>
40062
40063         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
40064         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
40065         gl_BIGENDIAN, not AC_C_BIGENDIAN.
40066         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
40067         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
40068
40069 2009-01-19  Bruno Haible  <bruno@clisp.org>
40070
40071         * tests/test-link.c: Include <errno.h>.
40072         (main): Exit with code 77 when a hard link cannot be created due to
40073         the file system.
40074         * tests/test-link.sh: Skip test when a hard link cannot be created due
40075         to the file system.
40076         Suggested by Eric Blake.
40077
40078 2009-01-19  Martin Lambers  <marlam@marlam.de>
40079
40080         * modules/link-tests: New file.
40081         * tests/test-link.sh: New file.
40082         * tests/test-link.c: New file.
40083
40084 2009-01-19  Eric Blake  <ebb9@byu.net>
40085
40086         doc: mention another function added in cygwin 1.7.0
40087         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
40088         Another new function in cygwin 1.7.
40089
40090 2009-01-19  Bruno Haible  <bruno@clisp.org>
40091
40092         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
40093         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
40094         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
40095         gl_BIGENDIAN, not AC_C_BIGENDIAN.
40096         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40097         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
40098         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
40099         * m4/md4.m4 (gl_MD4): Likewise.
40100         * m4/md5.m4 (gl_MD5): Likewise.
40101         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
40102         * m4/sha1.m4 (gl_SHA1): Likewise.
40103         * m4/sha256.m4 (gl_SHA256): Likewise.
40104         * m4/sha512.m4 (gl_SHA512): Likewise.
40105
40106 2009-01-19  Bruno Haible  <bruno@clisp.org>
40107
40108         * modules/uniname/uniname-tests (Depends-on): Add progname.
40109         * tests/uniname/test-uninames.c: Include progname.h.
40110         (main): Call set_program_name.
40111
40112         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
40113         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
40114         (main): Call set_program_name.
40115
40116         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
40117         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
40118         (main): Call set_program_name.
40119
40120         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
40121         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
40122         (main): Call set_program_name.
40123
40124         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
40125         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
40126         (main): Call set_program_name.
40127
40128         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
40129         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
40130         (main): Call set_program_name.
40131
40132         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
40133         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
40134         (main): Call set_program_name.
40135
40136         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
40137         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
40138         (main): Call set_program_name.
40139
40140         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
40141         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
40142         (main): Call set_program_name.
40143
40144 2009-01-19  Eric Blake  <ebb9@byu.net>
40145
40146         test-unistd: test previous patch
40147         * tests/test-unistd.c: Test *_FILENO macros.
40148
40149         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
40150         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40151         Guarantee a definition.
40152         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
40153         * modules/unistd-safer (Depends-on): Add dependency on unistd.
40154         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
40155         * lib/dup-safer.c (STDERR_FILENO): Likewise.
40156         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40157         Likewise.
40158         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
40159         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
40160         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40161         Likewise.
40162         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
40163         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
40164         (STDERR_FILENO): Likewise.
40165         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
40166         (STDERR_FILENO): Likewise.
40167         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
40168         (STDERR_FILENO): Likewise.
40169         Reported by Elbert Pol.
40170
40171 2009-01-19  Eric Blake  <ebb9@byu.net>
40172
40173         doc: mention more functions added in cygwin 1.7.0
40174         * doc/posix-functions/abort.texi (abort): Update wording related
40175         to cygwin.
40176         * doc/posix-functions/daylight.texi (daylight): Likewise.
40177         * doc/posix-functions/optarg.texi (optarg): Likewise.
40178         * doc/posix-functions/optarg.texi (opterr): Likewise.
40179         * doc/posix-functions/optarg.texi (optind): Likewise.
40180         * doc/posix-functions/optarg.texi (optopt): Likewise.
40181         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
40182         worked in 1.5.x, and was withdrawn in 1.7.
40183         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
40184         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
40185         cygwin versions.
40186         * doc/posix-functions/perror.texi (perror): Likewise.
40187         * doc/posix-functions/printf.texi (printf): Likewise.
40188         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
40189         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
40190         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
40191         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
40192         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
40193         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
40194         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
40195         Likewise.
40196         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
40197         Likewise.
40198         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
40199         this function.
40200         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
40201         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
40202         Likewise.
40203         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
40204         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
40205         * doc/posix-functions/confstr.texi (confstr): Likewise.
40206         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
40207         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
40208         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
40209         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
40210         * doc/posix-functions/fputws.texi (fputws): Likewise.
40211         * doc/posix-functions/fwide.texi (fwide): Likewise.
40212         * doc/posix-functions/getwc.texi (getwc): Likewise.
40213         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
40214         * doc/posix-functions/putwc.texi (putwc): Likewise.
40215         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
40216         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
40217         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
40218         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
40219         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
40220         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
40221         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
40222         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
40223         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
40224         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
40225         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
40226
40227 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
40228
40229         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
40230         * lib/ioctl.c: Include <sys/ioctl.h>.
40231
40232 2009-01-19  Simon Josefsson  <simon@josefsson.org>
40233
40234         * modules/getdate-tests (Depends-on): Add progname.
40235         * tests/test-getdate.c: Use progname module, to avoid link errors
40236         on non-glibc systems.
40237
40238 2009-01-18  Simon Josefsson  <simon@josefsson.org>
40239
40240         * modules/filenamecat-tests (Depends-on): Add progname.
40241         * modules/fstrcmp-tests (Depends-on): Likewise.
40242
40243         * tests/test-filenamecat.c: Use progname module, to avoid link
40244         errors on non-glibc systems.
40245         * tests/test-fstrcmp.c: Likewise.
40246
40247 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
40248
40249         gettimeofday: avoid warning: nested extern declaration of 'localtime'
40250         * lib/gettimeofday.c: Move extern declaration out of function.
40251
40252 2009-01-18  Bruno Haible  <bruno@clisp.org>
40253
40254         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
40255         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
40256         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
40257
40258 2009-01-18  Bruno Haible  <bruno@clisp.org>
40259
40260         * lib/strftime.c (MEMPCPY): Remove unused macro.
40261         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
40262
40263 2009-01-18  Martin Lambers  <marlam@marlam.de>
40264
40265         New module 'link'.
40266         * lib/unistd.in.h (link): New declaration.
40267         * lib/link.c: New file.
40268         * m4/link.m4: New file.
40269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
40270         HAVE_LINK.
40271         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
40272         * modules/link: New file.
40273         * doc/posix-functions/link.texi: Mention the new module.
40274
40275 2009-01-18  Bruno Haible  <bruno@clisp.org>
40276
40277         * tests/test-avltree_list.c (main): Call set_program_name.
40278         * tests/test-avltree_oset.c (main): Likewise.
40279         * tests/test-obstack-printf.c: Include progname.h.
40280         (main): Call set_program_name.
40281         * tests/test-quotearg.c: Include progname.h.
40282         (main): Call set_program_name.
40283         * tests/test-xmemdup0.c: Include progname.h.
40284         (main): Call set_program_name.
40285
40286 2009-01-18  Bruno Haible  <bruno@clisp.org>
40287
40288         New module 'alphasort'.
40289         * lib/dirent.in.h (alphasort): New declaration.
40290         * lib/alphasort.c: New file, from glibc with modifications.
40291         * m4/alphasort.m4: New file.
40292         * modules/alphasort: New file.
40293         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
40294         HAVE_ALPHASORT.
40295         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
40296         HAVE_ALPHASORT.
40297         * doc/posix-functions/alphasort.texi: Mention the new module and the
40298         portability problems.
40299
40300 2009-01-18  Bruno Haible  <bruno@clisp.org>
40301
40302         New module 'scandir'.
40303         * lib/dirent.in.h (scandir): New declaration.
40304         * lib/scandir.c: New file, from glibc with modifications.
40305         * m4/scandir.m4: New file.
40306         * modules/scandir: New file.
40307         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
40308         HAVE_SCANDIR.
40309         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
40310         HAVE_SCANDIR.
40311         * doc/posix-functions/scandir.texi: Mention the new module and the
40312         portability problems.
40313
40314 2009-01-17  Bruno Haible  <bruno@clisp.org>
40315
40316         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
40317         Update documentation.
40318         (func_remove_suffix): Escape all dots in the suffix. Update
40319         documentation.
40320         (func_filter_filelist): Update documentation.
40321         Reported by Ralf Wildenhues.
40322
40323 2009-01-17  Bruno Haible  <bruno@clisp.org>
40324
40325         * modules/dprintf-posix-tests: New file.
40326         * tests/test-dprintf-posix.sh: New file.
40327         * tests/test-dprintf-posix.c: New file.
40328
40329         New modules 'dprintf', 'dprintf-posix'.
40330         * lib/stdio.in.h (dprintf): New declaration.
40331         * lib/dprintf.c: New file.
40332         * m4/dprintf.m4: New file.
40333         * m4/dprintf-posix.m4: New file.
40334         * modules/dprintf: New file.
40335         * modules/dprintf-posix: New file.
40336         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
40337         HAVE_DPRINTF, REPLACE_DPRINTF.
40338         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
40339         HAVE_DPRINTF, REPLACE_DPRINTF.
40340         * doc/posix-functions/dprintf.texi: Mention the new modules.
40341
40342 2009-01-17  Bruno Haible  <bruno@clisp.org>
40343
40344         * modules/vdprintf-posix-tests: New file.
40345         * tests/test-vdprintf-posix.sh: New file.
40346         * tests/test-vdprintf-posix.c: New file.
40347
40348         New modules 'vdprintf', 'vdprintf-posix'.
40349         * lib/stdio.in.h (vdprintf): New declaration.
40350         * lib/vdprintf.c: New file.
40351         * m4/vdprintf.m4: New file.
40352         * m4/vdprintf-posix.m4: New file.
40353         * modules/vdprintf: New file.
40354         * modules/vdprintf-posix: New file.
40355         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
40356         HAVE_VDPRINTF, REPLACE_VDPRINTF.
40357         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
40358         HAVE_VDPRINTF, REPLACE_VDPRINTF.
40359         * doc/posix-functions/vdprintf.texi: Mention the new modules.
40360
40361 2009-01-17  Bruno Haible  <bruno@clisp.org>
40362
40363         Fix replacement of fopen on mingw.
40364         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
40365         mingw.
40366
40367 2009-01-17  Bruno Haible  <bruno@clisp.org>
40368
40369         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
40370         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
40371
40372 2009-01-17  Bruno Haible  <bruno@clisp.org>
40373
40374         Avoid test-fflush2.sh failure on mingw.
40375         * tests/test-fflush2.c: Include binary-io.h.
40376         (main): Put standard input into binary mode.
40377         * modules/fflush-tests (Depends-on): Add binary-io.
40378
40379 2009-01-17  Bruno Haible  <bruno@clisp.org>
40380
40381         * lib/wchar.in.h: In another particular situation, include only the
40382         system's <wchar.h> file.
40383         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
40384         Reported by Albert Chin-A-Young <china@thewrittenword.com>
40385         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
40386
40387 2009-01-17  Bruno Haible  <bruno@clisp.org>
40388
40389         Support for stripping executables in --enable-relocatable.
40390         * build-aux/install-reloc: Expect one more argument, or an environment
40391         variable RELOC_STRIP_PROG. If set, strip the destination program and
40392         its wrapper.
40393         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
40394         RELOC_STRIP_PROG.
40395         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
40396         to set RELOCATABLE_STRIP.
40397         * NEWS: Mention the new Makefile requirement.
40398
40399 2009-01-17  Bruno Haible  <bruno@clisp.org>
40400
40401         * build-aux/install-reloc: Remove debugging information left over by
40402         C compiler on MacOS X.
40403
40404 2009-01-17  Bruno Haible  <bruno@clisp.org>
40405
40406         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
40407         * lib/progreloc.c (find_executable): Fix type of pointer passed to
40408         _NSGetExecutablePath.
40409
40410 2009-01-16  Jim Meyering  <meyering@redhat.com>
40411
40412         strerror: avoid warnings about discarding "const"
40413         * lib/strerror.c (rpl_strerror): Instead of returning a const
40414         string from each and every "case", use a variable, and add a single
40415         cast after the switch.
40416
40417 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
40418
40419         * lib/arpa_inet.in.h: Add extern "C" block for C++.
40420
40421 2009-01-16  Bruno Haible  <bruno@clisp.org>
40422
40423         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
40424         array initializer syntax that also works in C++ mode.
40425         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40426
40427 2009-01-16  Jim Meyering  <meyering@redhat.com>
40428
40429         poll: suppress a warning
40430         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
40431         to ignore "...unsigned expression < 0 is always false" warnings.
40432
40433 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
40434
40435         poll: remove declarations of unused variables
40436         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
40437         sockbuf and optlen.
40438
40439 2009-01-15  Bruno Haible  <bruno@clisp.org>
40440
40441         Make fflush-after-ungetc POSIX compliant on BSD systems.
40442         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
40443         (clear_ungetc_buffer): Implement also for other systems.
40444         (rpl_fflush): On glibc systems, invoke
40445         clear_ungetc_buffer_preserving_position. Otherwise, invoke
40446         clear_ungetc_buffer after fetching the stream's position, not before.
40447
40448 2009-01-15  Bruno Haible  <bruno@clisp.org>
40449
40450         Make fflush-after-ungetc POSIX compliant on glibc systems.
40451         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
40452         after ungetc.
40453         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
40454         (rpl_fflush): On glibc systems, simply call the system's fflush
40455         function after clearing the ungetc buffer.
40456         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
40457         Instead, lseek only to the end of file, then use the system's fseeko
40458         for the rest. On glibc systems, reset the EOF indicator bit.
40459
40460 2009-01-15  Jim Meyering  <meyering@redhat.com>
40461
40462         openmp.m4: revert quote-adding change, for portability to older autoconf
40463         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
40464         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
40465         Simon Josefsson noticed the problem when using autoconf-2.61.
40466
40467 2009-01-15  Bruno Haible  <bruno@clisp.org>
40468
40469         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
40470         * tests/test-fflush2.c (ASSERT): Always fail.
40471         (main): Add two tests for fflush() after ungetc(), taking into account
40472         the Austin Group's clarification.
40473         Suggested by Eric Blake.
40474
40475 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
40476
40477         mktime.m4: remove K&R-style function prototypes
40478         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
40479         for the Sun C++ compiler.
40480
40481 2009-01-14  Bruno Haible  <bruno@clisp.org>
40482
40483         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
40484         while including <wchar.h>.
40485         * lib/wchar.in.h: In two particular situations on HP-UX, include only
40486         the system's <wchar.h> file.
40487         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40488
40489 2009-01-14  Bruno Haible  <bruno@clisp.org>
40490
40491         * m4/csharp.m4: Don't mention gettext on the serial number line.
40492         * m4/csharpexec.m4: Likewise.
40493         * m4/eaccess.m4: Likewise.
40494         * m4/javaexec.m4: Likewise.
40495         * m4/sig_atomic_t.m4: Likewise.
40496         * m4/tmpdir.m4: Likewise.
40497         * m4/intldir.m4: Bump gettext version.
40498         * m4/lib-ld.m4: Likewise.
40499
40500 2009-01-14  Bruno Haible  <bruno@clisp.org>
40501
40502         * lib/progname.c (set_program_name): Add more comments.
40503         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40504
40505 2009-01-14  Simon Josefsson  <simon@josefsson.org>
40506
40507         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
40508         were sys/stat.h does not define it.
40509
40510 2009-01-14  Jim Meyering  <meyering@redhat.com>
40511
40512         many *.m4 files: improve m4 quoting
40513         99% of this change was performed by running the following commands:
40514         git ls-files | grep '\.m4$' | xargs perl -pi \
40515           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
40516           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
40517           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
40518           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
40519         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
40520         The remainder were to add Copyright dates, increment serial numbers,
40521         undo some changes in comments, exclude m4/intl.m4, and add quotes
40522         around the "1" in ",1" where the unusual spacing prohibited the
40523         above regexps from doing the job.  For more details, see
40524         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
40525         * m4/acl.m4: Modified.
40526         * m4/afs.m4: Likewise.
40527         * m4/alloca.m4: Likewise.
40528         * m4/argp.m4: Likewise.
40529         * m4/argz.m4: Likewise.
40530         * m4/atexit.m4: Likewise.
40531         * m4/bison-i18n.m4: Likewise.
40532         * m4/bison.m4: Likewise.
40533         * m4/byteswap.m4: Likewise.
40534         * m4/c-stack.m4: Likewise.
40535         * m4/c-strtod.m4: Likewise.
40536         * m4/calloc.m4: Likewise.
40537         * m4/canonicalize-lgpl.m4: Likewise.
40538         * m4/chown.m4: Likewise.
40539         * m4/clock_time.m4: Likewise.
40540         * m4/codeset.m4: Likewise.
40541         * m4/copy-file.m4: Likewise.
40542         * m4/csharp.m4: Likewise.
40543         * m4/csharpcomp.m4: Likewise.
40544         * m4/csharpexec.m4: Likewise.
40545         * m4/d-ino.m4: Likewise.
40546         * m4/d-type.m4: Likewise.
40547         * m4/dirfd.m4: Likewise.
40548         * m4/double-slash-root.m4: Likewise.
40549         * m4/eaccess.m4: Likewise.
40550         * m4/eealloc.m4: Likewise.
40551         * m4/environ.m4: Likewise.
40552         * m4/errno_h.m4: Likewise.
40553         * m4/euidaccess.m4: Likewise.
40554         * m4/execute.m4: Likewise.
40555         * m4/fatal-signal.m4: Likewise.
40556         * m4/fchdir.m4: Likewise.
40557         * m4/fcntl_h.m4: Likewise.
40558         * m4/fileblocks.m4: Likewise.
40559         * m4/filenamecat.m4: Likewise.
40560         * m4/findprog.m4: Likewise.
40561         * m4/flexmember.m4: Likewise.
40562         * m4/fnmatch.m4: Likewise.
40563         * m4/fopen.m4: Likewise.
40564         * m4/fpending.m4: Likewise.
40565         * m4/fprintf-posix.m4: Likewise.
40566         * m4/free.m4: Likewise.
40567         * m4/frexp.m4: Likewise.
40568         * m4/frexpl.m4: Likewise.
40569         * m4/fsusage.m4: Likewise.
40570         * m4/ftruncate.m4: Likewise.
40571         * m4/gc-camellia.m4: Likewise.
40572         * m4/gc-random.m4: Likewise.
40573         * m4/gc.m4: Likewise.
40574         * m4/getaddrinfo.m4: Likewise.
40575         * m4/getcwd-abort-bug.m4: Likewise.
40576         * m4/getcwd-path-max.m4: Likewise.
40577         * m4/getdate.m4: Likewise.
40578         * m4/getdomainname.m4: Likewise.
40579         * m4/getgroups.m4: Likewise.
40580         * m4/gethostname.m4: Likewise.
40581         * m4/gethrxtime.m4: Likewise.
40582         * m4/getline.m4: Likewise.
40583         * m4/getloadavg.m4: Likewise.
40584         * m4/getndelim2.m4: Likewise.
40585         * m4/getpass.m4: Likewise.
40586         * m4/gettext.m4: Likewise.
40587         * m4/gettime.m4: Likewise.
40588         * m4/gettimeofday.m4: Likewise.
40589         * m4/gnulib-common.m4: Likewise.
40590         * m4/group-member.m4: Likewise.
40591         * m4/host-os.m4: Likewise.
40592         * m4/iconv.m4: Likewise.
40593         * m4/iconv_open.m4: Likewise.
40594         * m4/inet_ntop.m4: Likewise.
40595         * m4/inet_pton.m4: Likewise.
40596         * m4/inline.m4: Likewise.
40597         * m4/intldir.m4: Likewise.
40598         * m4/intlmacosx.m4: Likewise.
40599         * m4/intmax.m4: Likewise.
40600         * m4/intmax_t.m4: Likewise.
40601         * m4/inttypes.m4: Likewise.
40602         * m4/inttypes_h.m4: Likewise.
40603         * m4/inttypes-pri.m4: Likewise.
40604         * m4/isapipe.m4: Likewise.
40605         * m4/isnand.m4: Likewise.
40606         * m4/isnanf.m4: Likewise.
40607         * m4/isnanl.m4: Likewise.
40608         * m4/javacomp.m4: Likewise.
40609         * m4/javaexec.m4: Likewise.
40610         * m4/jm-winsz1.m4: Likewise.
40611         * m4/jm-winsz2.m4: Likewise.
40612         * m4/lchown.m4: Likewise.
40613         * m4/lcmessage.m4: Likewise.
40614         * m4/ldexpl.m4: Likewise.
40615         * m4/lib-ld.m4: Likewise.
40616         * m4/lib-link.m4: Likewise.
40617         * m4/libsigsegv.m4: Likewise.
40618         * m4/link-follow.m4: Likewise.
40619         * m4/localcharset.m4: Likewise.
40620         * m4/locale-fr.m4: Likewise.
40621         * m4/locale-ja.m4: Likewise.
40622         * m4/locale-tr.m4: Likewise.
40623         * m4/locale-zh.m4: Likewise.
40624         * m4/lock.m4: Likewise.
40625         * m4/longlong.m4: Likewise.
40626         * m4/ls-mntd-fs.m4: Likewise.
40627         * m4/lstat.m4: Likewise.
40628         * m4/malloc.m4: Likewise.
40629         * m4/mathl.m4: Likewise.
40630         * m4/mbrtowc.m4: Likewise.
40631         * m4/mbstate_t.m4: Likewise.
40632         * m4/mbswidth.m4: Likewise.
40633         * m4/memchr.m4: Likewise.
40634         * m4/memcmp.m4: Likewise.
40635         * m4/memcpy.m4: Likewise.
40636         * m4/memmem.m4: Likewise.
40637         * m4/memmove.m4: Likewise.
40638         * m4/mempcpy.m4: Likewise.
40639         * m4/memrchr.m4: Likewise.
40640         * m4/memset.m4: Likewise.
40641         * m4/minmax.m4: Likewise.
40642         * m4/mkdir-slash.m4: Likewise.
40643         * m4/mkdtemp.m4: Likewise.
40644         * m4/mktime.m4: Likewise.
40645         * m4/mmap-anon.m4: Likewise.
40646         * m4/mountlist.m4: Likewise.
40647         * m4/nanosleep.m4: Likewise.
40648         * m4/nls.m4: Likewise.
40649         * m4/nocrash.m4: Likewise.
40650         * m4/open.m4: Likewise.
40651         * m4/openat.m4: Likewise.
40652         * m4/openmp.m4: Likewise.
40653         * m4/pathmax.m4: Likewise.
40654         * m4/perl.m4: Likewise.
40655         * m4/physmem.m4: Likewise.
40656         * m4/pipe.m4: Likewise.
40657         * m4/po.m4: Likewise.
40658         * m4/poll.m4: Likewise.
40659         * m4/posixtm.m4: Likewise.
40660         * m4/posixver.m4: Likewise.
40661         * m4/printf-frexp.m4: Likewise.
40662         * m4/printf-frexpl.m4: Likewise.
40663         * m4/printf-posix.m4: Likewise.
40664         * m4/printf-posix-rpl.m4: Likewise.
40665         * m4/printf.m4: Likewise.
40666         * m4/progtest.m4: Likewise.
40667         * m4/putenv.m4: Likewise.
40668         * m4/readline.m4: Likewise.
40669         * m4/readlink.m4: Likewise.
40670         * m4/readutmp.m4: Likewise.
40671         * m4/realloc.m4: Likewise.
40672         * m4/regex.m4: Likewise.
40673         * m4/relocatable.m4: Likewise.
40674         * m4/relocatable-lib.m4: Likewise.
40675         * m4/rename-dest-slash.m4: Likewise.
40676         * m4/rename.m4: Likewise.
40677         * m4/rmdir-errno.m4: Likewise.
40678         * m4/rmdir.m4: Likewise.
40679         * m4/roundf.m4: Likewise.
40680         * m4/roundl.m4: Likewise.
40681         * m4/rpmatch.m4: Likewise.
40682         * m4/save-cwd.m4: Likewise.
40683         * m4/selinux-selinux-h.m4: Likewise.
40684         * m4/setenv.m4: Likewise.
40685         * m4/settime.m4: Likewise.
40686         * m4/sig2str.m4: Likewise.
40687         * m4/sig_atomic_t.m4: Likewise.
40688         * m4/signalblocking.m4: Likewise.
40689         * m4/signbit.m4: Likewise.
40690         * m4/sigpipe.m4: Likewise.
40691         * m4/sockets.m4: Likewise.
40692         * m4/sockpfaf.m4: Likewise.
40693         * m4/st_dm_mode.m4: Likewise.
40694         * m4/stat-time.m4: Likewise.
40695         * m4/stdbool.m4: Likewise.
40696         * m4/stdint.m4: Likewise.
40697         * m4/stdint_h.m4: Likewise.
40698         * m4/stpcpy.m4: Likewise.
40699         * m4/stpncpy.m4: Likewise.
40700         * m4/strcase.m4: Likewise.
40701         * m4/strchrnul.m4: Likewise.
40702         * m4/strcspn.m4: Likewise.
40703         * m4/strdup.m4: Likewise.
40704         * m4/strftime.m4: Likewise.
40705         * m4/strndup.m4: Likewise.
40706         * m4/strnlen.m4: Likewise.
40707         * m4/strpbrk.m4: Likewise.
40708         * m4/strptime.m4: Likewise.
40709         * m4/strsep.m4: Likewise.
40710         * m4/strtod.m4: Likewise.
40711         * m4/strtoimax.m4: Likewise.
40712         * m4/strtok_r.m4: Likewise.
40713         * m4/strtol.m4: Likewise.
40714         * m4/strtoll.m4: Likewise.
40715         * m4/strtoul.m4: Likewise.
40716         * m4/strtoull.m4: Likewise.
40717         * m4/strtoumax.m4: Likewise.
40718         * m4/strverscmp.m4: Likewise.
40719         * m4/threadlib.m4: Likewise.
40720         * m4/timegm.m4: Likewise.
40721         * m4/tm_gmtoff.m4: Likewise.
40722         * m4/tmpdir.m4: Likewise.
40723         * m4/tmpfile.m4: Likewise.
40724         * m4/tzset.m4: Likewise.
40725         * m4/uintmax_t.m4: Likewise.
40726         * m4/unlinkdir.m4: Likewise.
40727         * m4/unlocked-io.m4: Likewise.
40728         * m4/uptime.m4: Likewise.
40729         * m4/userspec.m4: Likewise.
40730         * m4/utimbuf.m4: Likewise.
40731         * m4/utime.m4: Likewise.
40732         * m4/utimes-null.m4: Likewise.
40733         * m4/utimes.m4: Likewise.
40734         * m4/vararrays.m4: Likewise.
40735         * m4/vasnprintf.m4: Likewise.
40736         * m4/vfprintf-posix.m4: Likewise.
40737         * m4/vprintf-posix.m4: Likewise.
40738         * m4/wait-process.m4: Likewise.
40739         * m4/wchar_t.m4: Likewise.
40740         * m4/wint_t.m4: Likewise.
40741         * m4/write-any-file.m4: Likewise.
40742         * m4/yield.m4: Likewise.
40743
40744 2009-01-13  Bruno Haible  <bruno@clisp.org>
40745
40746         Avoid test-copy-file.sh failures when ACL support insufficient.
40747         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
40748         TESTS_ENVIRONMENT.
40749         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
40750         Reported by Jim Meyering.
40751
40752 2009-01-13  Bruno Haible  <bruno@clisp.org>
40753
40754         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
40755         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
40756         * modules/unistdio/u8-printf-parse (Files): Likewise.
40757         * modules/unistdio/u32-printf-parse (Files): Likewise.
40758         * modules/unistdio/ulc-printf-parse (Files): Likewise.
40759
40760 2009-01-13  Simon Josefsson  <simon@josefsson.org>
40761
40762         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
40763         and m4/inttypes_h.m4 too.
40764
40765 2009-01-12  Eric Blake  <ebb9@byu.net>
40766
40767         tests: IRIX 6.2 cc can't compile -0.0 into .data
40768         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
40769         rather than at compile-time.
40770         * tests/test-floorl.c (minus_zero): Likewise.
40771         * tests/test-frexpl.c (minus_zero): Likewise.
40772         * tests/test-isnan.c (minus_zerol): Likewise.
40773         * tests/test-isnanl.h (minus_zero): Likewise.
40774         * tests/test-ldexpl.c (minus_zero): Likewise.
40775         * tests/test-roundl.c (minus_zero): Likewise.
40776         * tests/test-signbit.c (minus_zerol): Likewise.
40777         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
40778         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
40779         * tests/test-truncl.c (minus_zero): Likewise.
40780         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
40781         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
40782         Reported by Tom G. Christensen and Nelson H. F. Beebe.
40783
40784 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
40785
40786         regex: fix glibc bug 9697
40787         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
40788         handling.
40789
40790 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
40791
40792         regex: fix glibc bug 697
40793         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
40794         being NULL also if there are no backreferences.
40795
40796 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
40797
40798         regex: merge glibc changes
40799         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
40800         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
40801         re_string_skip_chars, re_string_reconstruct): Likewise.
40802         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
40803
40804 2009-01-07  Jim Meyering  <meyering@redhat.com>
40805
40806         poll: filter through cppi
40807         * lib/poll.c: Indent cpp directives to reflect nesting.
40808
40809 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
40810
40811         poll: don't return uninitialized
40812         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
40813
40814 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
40815
40816         avoid compile failure on AIX 6.1
40817         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
40818         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
40819
40820 2009-01-04  Jim Meyering  <meyering@redhat.com>
40821
40822         remove duplicate inclusion of <stdio.h>
40823         * tests/test-fprintf-posix.c: Likewise.
40824         * tests/test-printf-posix.c: Likewise.
40825         * tests/test-snprintf-posix.c: Likewise.
40826         * tests/test-sprintf-posix.c: Likewise.
40827         * tests/test-vasprintf-posix.c: Likewise.
40828         * tests/test-vfprintf-posix.c: Likewise.
40829         * tests/test-vprintf-posix.c: Likewise.
40830         * tests/test-vsnprintf-posix.c: Likewise.
40831         * tests/test-vsprintf-posix.c: Likewise.
40832
40833 2009-01-03  Jim Meyering  <meyering@redhat.com>
40834
40835         gnulib-tool: fix sed-based filtering
40836         * gnulib-tool (func_filter_filelist): Remove extra backslash
40837         in sed_fff_filter definition.
40838
40839 2009-01-02  Jim Meyering  <meyering@redhat.com>
40840
40841         strftime: avoid compilation failure on Solaris 2.6
40842         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
40843         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
40844         Don't #define mbrlen or mbsinit, since now they're guaranteed to
40845         be available.  Reported by Tom G. Christensen.  Details in
40846         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
40847
40848 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40849             Bruno Haible  <bruno@clisp.org>
40850
40851         Speed up gnulib-tool by doing more string processing through shell
40852         built-ins.
40853         * gnulib-tool (fast_func_append): New variable.
40854         (func_remove_prefix, func_remove_suffix): New functions.
40855         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
40856         (func_filter_filelist): New function.
40857         (func_get_dependencies): Use func_remove_suffix instead of sed.
40858         (func_get_automake_snippet): Use func_filter_filelist instead of a
40859         subshell and sed invocation.
40860
40861 2009-01-01  Bruno Haible  <bruno@clisp.org>
40862
40863         Fix a security bug.
40864         * gnulib-tool (func_import, import, update): Don't allow the characters
40865         '"', '$', '`', '\' in macro arguments that become part of commands that
40866         are evaluated.
40867
40868 2009-01-01  Bruno Haible  <bruno@clisp.org>
40869
40870         * gnulib-tool (func_reset_sigpipe): Add more comments.
40871
40872 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40873
40874         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
40875         func_emit_tests_Makefile_am, func_import): Abort loops early if we
40876         already know the answer.
40877
40878 2009-01-01  Jim Meyering  <meyering@redhat.com>
40879
40880         * lib/version-etc.c (version_etc_va): Update copyright year.
40881
40882 2008-12-30  Bruno Haible  <bruno@clisp.org>
40883
40884         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
40885         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
40886         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
40887
40888 2008-12-29  Eric Blake  <ebb9@byu.net>
40889
40890         multiarch: avoid autoconf AC_REQUIRE bug
40891         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
40892         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
40893         2.63 and older.
40894         Reported by Bruno Haible, and analyzed in
40895         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
40896
40897 2008-12-29  Bruno Haible  <bruno@clisp.org>
40898
40899         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
40900         files in subdirectories correctly.
40901         Reported by Ralf Wildenhues.
40902
40903 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40904
40905         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
40906         rather than 'join FILE -', for Solaris join.
40907
40908 2008-12-29  Bruno Haible  <bruno@clisp.org>
40909
40910         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
40911         quoting.
40912         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
40913         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
40914         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
40915         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
40916         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
40917         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
40918         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
40919         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
40920         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
40921         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
40922         * m4/nls.m4 (AM_NLS): Likewise.
40923         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
40924         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
40925         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
40926         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
40927         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
40928         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
40929         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
40930         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
40931         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
40932         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
40933         * m4/xsize.m4 (gl_XSIZE): Likewise.
40934         Suggested by Jim Meyering.
40935
40936 2008-11-17  Bruce Korb  <bkorb@gnu.org>
40937
40938         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
40939         * lib/parse-duration.c: use a switch instead of cascading if's.
40940
40941 2008-12-29  Eric Blake  <ebb9@byu.net>
40942
40943         wchar.h: supply WEOF on Irix 5.3
40944         * lib/wchar.in.h (wint_t): Also supply WEOF.
40945         * lib/wctype.in.h (wint_t): Likewise.
40946         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
40947         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
40948         Reported by Tom G. Christensen.
40949
40950 2008-12-26  Bruno Haible  <bruno@clisp.org>
40951
40952         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
40953         i486, i586, i686.
40954
40955 2008-12-26  Bruno Haible  <bruno@clisp.org>
40956
40957         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
40958
40959 2008-12-26  Bruno Haible  <bruno@clisp.org>
40960
40961         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
40962         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
40963         not __STDC_CONSTANT_MACROS.
40964         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
40965
40966 2008-12-25  Bruno Haible  <bruno@clisp.org>
40967
40968         Add support for universal builds to vasnprintf.
40969         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
40970         universal builds, guess no.
40971         * modules/vasnprintf-posix (Depends-on): Add multiarch.
40972         * modules/vasprintf-posix (Depends-on): Likewise.
40973         * modules/fprintf-posix (Depends-on): Likewise.
40974         * modules/vfprintf-posix (Depends-on): Likewise.
40975         * modules/snprintf-posix (Depends-on): Likewise.
40976         * modules/vsnprintf-posix (Depends-on): Likewise.
40977         * modules/sprintf-posix (Depends-on): Likewise.
40978         * modules/vsprintf-posix (Depends-on): Likewise.
40979         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
40980         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40981         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40982         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40983         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40984         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40985         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40986
40987         Add support for universal builds to <inttypes.h>.
40988         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
40989         _SCNu64_PREFIX): In Apple
40990         universal builds, define directly, using _LP64.
40991         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
40992         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
40993         * modules/inttypes (Depends-on): Add multiarch.
40994         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
40995
40996         Add support for universal builds to <stdint.h>.
40997         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
40998         universal builds, define directly, using _LP64.
40999         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
41000         Apple universal builds, don't test for the size and suffix of ptrdiff_t
41001         and size_t.
41002         * modules/stdint (Depends-on): Add multiarch.
41003         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
41004
41005         New module 'multiarch'.
41006         * modules/multiarch: New file.
41007         * m4/multiarch.m4: New file.
41008
41009 2008-12-25  Bruno Haible  <bruno@clisp.org>
41010
41011         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
41012
41013 2008-12-25  Bruno Haible  <bruno@clisp.org>
41014
41015         * modules/btowc (License): Relicense under LGPLv2+.
41016         * modules/mbsinit (License): Likewise.
41017         * modules/mbrtowc (License): Likewise.
41018         * modules/wcrtomb (License): Likewise.
41019         * modules/streq (License): Likewise.
41020         Reported by David Lutterkort <lutter@redhat.com>.
41021
41022 2008-12-23  Bruno Haible  <bruno@clisp.org>
41023
41024         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
41025
41026 2008-12-23  Bruno Haible  <bruno@clisp.org>
41027
41028         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
41029         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
41030         GETADDRINFO_LIB, not in LIBS.
41031         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
41032         * modules/canon-host (Link): Likewise.
41033         * NEWS: Mention the change.
41034         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
41035         GETADDRINFO_LIB.
41036
41037 2008-12-22  Bruno Haible  <bruno@clisp.org>
41038
41039         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
41040         * doc/posix-functions/iswalpha_l.texi: Likewise.
41041         * doc/posix-functions/iswblank_l.texi: Likewise.
41042         * doc/posix-functions/iswcntrl_l.texi: Likewise.
41043         * doc/posix-functions/iswctype_l.texi: Likewise.
41044         * doc/posix-functions/iswdigit_l.texi: Likewise.
41045         * doc/posix-functions/iswgraph_l.texi: Likewise.
41046         * doc/posix-functions/iswlower_l.texi: Likewise.
41047         * doc/posix-functions/iswprint_l.texi: Likewise.
41048         * doc/posix-functions/iswpunct_l.texi: Likewise.
41049         * doc/posix-functions/iswspace_l.texi: Likewise.
41050         * doc/posix-functions/iswupper_l.texi: Likewise.
41051         * doc/posix-functions/iswxdigit_l.texi: Likewise.
41052         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
41053         * doc/posix-functions/open_wmemstream.texi: Likewise.
41054         * doc/posix-functions/swscanf.texi: Likewise.
41055         * doc/posix-functions/towctrans_l.texi: Likewise.
41056         * doc/posix-functions/towlower.texi: Likewise.
41057         * doc/posix-functions/towlower_l.texi: Likewise.
41058         * doc/posix-functions/towupper.texi: Likewise.
41059         * doc/posix-functions/towupper_l.texi: Likewise.
41060         * doc/posix-functions/vfwprintf.texi: Likewise.
41061         * doc/posix-functions/vfwscanf.texi: Likewise.
41062         * doc/posix-functions/vswscanf.texi: Likewise.
41063         * doc/posix-functions/vwprintf.texi: Likewise.
41064         * doc/posix-functions/vwscanf.texi: Likewise.
41065         * doc/posix-functions/wcpcpy.texi: Likewise.
41066         * doc/posix-functions/wcpncpy.texi: Likewise.
41067         * doc/posix-functions/wcscasecmp.texi: Likewise.
41068         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
41069         * doc/posix-functions/wcscoll_l.texi: Likewise.
41070         * doc/posix-functions/wcsdup.texi: Likewise.
41071         * doc/posix-functions/wcsncasecmp.texi: Likewise.
41072         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
41073         * doc/posix-functions/wcsnlen.texi: Likewise.
41074         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41075         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
41076         * doc/posix-functions/wctrans_l.texi: Likewise.
41077         * doc/posix-functions/wctype_l.texi: Likewise.
41078         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
41079         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
41080         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
41081         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
41082         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
41083         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
41084         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
41085         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
41086         * doc/glibc-functions/wcschrnul.texi: Likewise.
41087         * doc/glibc-functions/wcsftime_l.texi: Likewise.
41088         * doc/glibc-functions/wcstod_l.texi: Likewise.
41089         * doc/glibc-functions/wcstof_l.texi: Likewise.
41090         * doc/glibc-functions/wcstol_l.texi: Likewise.
41091         * doc/glibc-functions/wcstold_l.texi: Likewise.
41092         * doc/glibc-functions/wcstoll_l.texi: Likewise.
41093         * doc/glibc-functions/wcstoq.texi: Likewise.
41094         * doc/glibc-functions/wcstoul_l.texi: Likewise.
41095         * doc/glibc-functions/wcstoull_l.texi: Likewise.
41096         * doc/glibc-functions/wcstouq.texi: Likewise.
41097         * doc/glibc-functions/wmempcpy.texi: Likewise.
41098
41099 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
41100             Eric Blake  <ebb9@byu.net>
41101             Paolo Bonzini  <bonzini@gnu.org>
41102             Bruno Haible  <bruno@clisp.org>
41103
41104         Make c-stack work on Haiku.
41105         * lib/c-stack.c (SA_ONSTACK): Define fallback.
41106         (c_stack_action): Use SA_ONSTACK flag.
41107
41108 2008-12-22  Bruno Haible  <bruno@clisp.org>
41109
41110         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
41111
41112 2008-12-22  Bruno Haible  <bruno@clisp.org>
41113
41114         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
41115         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
41116         being overridden.
41117         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
41118         New macros.
41119         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
41120         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
41121         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
41122         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
41123
41124 2008-12-22  Bruno Haible  <bruno@clisp.org>
41125
41126         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
41127         from test code.
41128
41129 2008-12-22  Eric Blake  <ebb9@byu.net>
41130
41131         Avoid gcc warnings on cygwin.
41132         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
41133         Avoid unused variable.
41134         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
41135         Likewise.
41136
41137 2008-12-22  Bruno Haible  <bruno@clisp.org>
41138
41139         Remove HAVE_MBRTOWC conditionals.
41140         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
41141         (mbscasecmp): Assume mbrtowc function.
41142         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
41143         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
41144         * lib/mbschr.c: Include mbuiter.h unconditionally.
41145         (mbschr): Assume mbrtowc function.
41146         * lib/mbscspn.c: Include mbuiter.h unconditionally.
41147         (mbscspn): Assume mbrtowc function.
41148         * lib/mbslen.c: Include mbuiter.h unconditionally.
41149         (mbslen): Assume mbrtowc function.
41150         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
41151         (mbsncasecmp): Assume mbrtowc function.
41152         * lib/mbsnlen.c: Include mbiter.h unconditionally.
41153         (mbsnlen): Assume mbrtowc function.
41154         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
41155         (mbspbrk): Assume mbrtowc function.
41156         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
41157         (mbspcasecmp): Assume mbrtowc function.
41158         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
41159         (mbsrchr): Assume mbrtowc function.
41160         * lib/mbssep.c: Include mbuiter.h unconditionally.
41161         (mbssep): Assume mbrtowc function.
41162         * lib/mbsspn.c: Include mbuiter.h unconditionally.
41163         (mbsspn): Assume mbrtowc function.
41164         * lib/mbsstr.c: Include mbuiter.h unconditionally.
41165         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
41166         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
41167         (mbstok_r): Assume mbrtowc function.
41168         * lib/propername.c: Include mbuiter.h unconditionally.
41169         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
41170         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
41171         (trim2): Assume mbrtowc function.
41172         * lib/mbswidth.c (mbsinit): Remove fallback definition.
41173         (mbsnwidth): Assume mbrtowc function.
41174         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
41175         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
41176         fallback definitions.
41177         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
41178
41179 2008-12-22  Bruno Haible  <bruno@clisp.org>
41180
41181         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
41182
41183 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
41184
41185         * modules/regex: Request emulations for the mb*/wc* functions we need.
41186         * m4/regex.m4: Don't look for those functions here.
41187         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
41188
41189 2008-12-22  Bruno Haible  <bruno@clisp.org>
41190
41191         * modules/fnmatch (Depends-on): Remove duplicated dependency.
41192
41193 2008-12-21  Bruno Haible  <bruno@clisp.org>
41194
41195         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
41196         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
41197         (Include): Remove conditionalization.
41198         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
41199         (Include): Remove conditionalization.
41200         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
41201         (Include): Remove conditionalization.
41202         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
41203         * m4/mbfile.m4 (gl_MBFILE): Likewise.
41204         * NEWS: Mention the change.
41205         Reported by Alan Hourihane <alanh@fairlite.co.uk>
41206         via Sergey Poznyakoff <gray@gnu.org.ua>.
41207
41208 2008-12-21  Bruno Haible  <bruno@clisp.org>
41209
41210         * MODULES.html.sh (Extended multibyte and wide character utilities
41211         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
41212         wcrtomb, wcsrtombs.
41213         (Support for systems lacking POSIX:2008): Add accept, bind, close,
41214         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
41215         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
41216         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
41217
41218 2008-12-21  Bruno Haible  <bruno@clisp.org>
41219
41220         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
41221
41222 2008-12-21  Bruno Haible  <bruno@clisp.org>
41223
41224         * modules/wcsnrtombs-tests: New file.
41225         * tests/test-wcsnrtombs1.sh: New file.
41226         * tests/test-wcsnrtombs2.sh: New file.
41227         * tests/test-wcsnrtombs3.sh: New file.
41228         * tests/test-wcsnrtombs4.sh: New file.
41229         * tests/test-wcsnrtombs.c: New file.
41230
41231         New module 'wcsnrtombs'.
41232         * lib/wchar.in.h (wcsnrtombs): New declaration.
41233         * lib/wcsnrtombs.c: New file.
41234         * lib/wcsrtombs-state.c: New file.
41235         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
41236         (internal_state): Remove variable.
41237         * m4/wcsnrtombs.m4: New file.
41238         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
41239         compilation units.
41240         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
41241         HAVE_WCSNRTOMBS.
41242         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
41243         HAVE_WCSNRTOMBS.
41244         * modules/wcsnrtombs: New file.
41245         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
41246         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
41247
41248 2008-12-21  Bruno Haible  <bruno@clisp.org>
41249
41250         * modules/wcsrtombs-tests: New file.
41251         * tests/test-wcsrtombs1.sh: New file.
41252         * tests/test-wcsrtombs2.sh: New file.
41253         * tests/test-wcsrtombs3.sh: New file.
41254         * tests/test-wcsrtombs4.sh: New file.
41255         * tests/test-wcsrtombs.c: New file.
41256
41257         New module 'wcsrtombs'.
41258         * lib/wchar.in.h (wcsrtombs): New declaration.
41259         * lib/wcsrtombs.c: New file.
41260         * m4/wcsrtombs.m4: New file.
41261         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
41262         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
41263         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
41264         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
41265         * modules/wcsrtombs: New file.
41266         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
41267         bugs.
41268
41269 2008-12-21  Bruno Haible  <bruno@clisp.org>
41270
41271         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
41272         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
41273         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
41274         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
41275         if not correct.
41276         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
41277         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
41278         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
41279         m4/locale-zh.m4, m4/codeset.m4.
41280         * doc/posix-functions/wcrtomb.texi: Document the bug.
41281
41282 2008-12-21  Bruno Haible  <bruno@clisp.org>
41283
41284         Work around a btowc() bug on IRIX 6.5.
41285         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
41286         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
41287         REPLACE_WTOBC if not.
41288         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
41289         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
41290         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
41291
41292 2008-12-21  Bruno Haible  <bruno@clisp.org>
41293
41294         * modules/wcrtomb-tests: New file.
41295         * tests/test-wcrtomb.sh: New file.
41296         * tests/test-wcrtomb.c: New file.
41297
41298         New module 'wcrtomb'.
41299         * lib/wchar.in.h (wcrtomb): New declaration.
41300         * lib/wcrtomb.c: New file.
41301         * m4/wcrtomb.m4: New file.
41302         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
41303         HAVE_WCRTOMB.
41304         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
41305         HAVE_WCRTOMB.
41306         * modules/wcrtomb: New file.
41307         * doc/posix-functions/wcrtomb.texi: Mention the new module.
41308
41309 2008-12-21  Bruno Haible  <bruno@clisp.org>
41310
41311         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
41312         * modules/mbsrtowcs (Files): Likewise.
41313         * modules/wctob (Files): Likewise.
41314         * modules/c-strcase-tests (Files): Likewise.
41315         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
41316         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
41317         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
41318         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
41319         * modules/vasnprintf-posix-tests (Files): Likewise.
41320
41321 2008-12-21  William Pursell  <bill.pursell@gmail.com>
41322
41323         gitlog-to-changelog: pass all command-line arguments to git-log
41324         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
41325         it is sometimes convenient to filter the commits in various ways.
41326         gitlog-to-changelog only allows --since to specify a start date,
41327         but git-log itself supports many other filtering mechanisms.
41328         At the moment, I want to filter by branch name.  Rather than
41329         adding a --branch option to gitlog-to-changelog, it seems more
41330         flexible to simply pass all options directly to git-log and let
41331         git do the work.  Notice that this effectively makes --since a
41332         redundant option for gitlog-to-changelog, but removing it would
41333         require current usage to change since calls would then require
41334         an additional '--'.
41335
41336 2008-12-21  Bruno Haible  <bruno@clisp.org>
41337
41338         * modules/mbsnrtowcs-tests: New file.
41339         * tests/test-mbsnrtowcs1.sh: New file.
41340         * tests/test-mbsnrtowcs2.sh: New file.
41341         * tests/test-mbsnrtowcs3.sh: New file.
41342         * tests/test-mbsnrtowcs4.sh: New file.
41343         * tests/test-mbsnrtowcs.c: New file.
41344
41345         New module 'mbsnrtowcs'.
41346         * lib/wchar.in.h (mbsnrtowcs): New declaration.
41347         * lib/mbsnrtowcs.c: New file.
41348         * lib/mbsrtowcs-state.c: New file.
41349         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
41350         (internal_state): Remove variable.
41351         * m4/mbsnrtowcs.m4: New file.
41352         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
41353         compilation units.
41354         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
41355         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
41356         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
41357         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
41358         * modules/mbsnrtowcs: New file.
41359         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
41360         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
41361         portability problem.
41362
41363 2008-12-21  Bruno Haible  <bruno@clisp.org>
41364
41365         Work around mbsrtowcs bug.
41366         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
41367         (gl_FUNC_MBSRTOWCS): Invoke it.
41368         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
41369         m4/locale-zh.m4.
41370         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
41371
41372 2008-12-21  Bruno Haible  <bruno@clisp.org>
41373
41374         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
41375
41376 2008-12-21  Bruno Haible  <bruno@clisp.org>
41377
41378         Update doc for AIX.
41379         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
41380         16-bit wchar_t type.
41381         * doc/posix-functions/btowc.texi: Likewise.
41382         * doc/posix-functions/fgetwc.texi: Likewise.
41383         * doc/posix-functions/fgetws.texi: Likewise.
41384         * doc/posix-functions/fputwc.texi: Likewise.
41385         * doc/posix-functions/fputws.texi: Likewise.
41386         * doc/posix-functions/fwide.texi: Likewise.
41387         * doc/posix-functions/fwprintf.texi: Likewise.
41388         * doc/posix-functions/fwscanf.texi: Likewise.
41389         * doc/posix-functions/getwchar.texi: Likewise.
41390         * doc/posix-functions/getwc.texi: Likewise.
41391         * doc/posix-functions/iswalnum.texi: Likewise.
41392         * doc/posix-functions/iswalpha.texi: Likewise.
41393         * doc/posix-functions/iswblank.texi: Likewise.
41394         * doc/posix-functions/iswcntrl.texi: Likewise.
41395         * doc/posix-functions/iswctype.texi: Likewise.
41396         * doc/posix-functions/iswdigit.texi: Likewise.
41397         * doc/posix-functions/iswgraph.texi: Likewise.
41398         * doc/posix-functions/iswlower.texi: Likewise.
41399         * doc/posix-functions/iswprint.texi: Likewise.
41400         * doc/posix-functions/iswpunct.texi: Likewise.
41401         * doc/posix-functions/iswspace.texi: Likewise.
41402         * doc/posix-functions/iswupper.texi: Likewise.
41403         * doc/posix-functions/iswxdigit.texi: Likewise.
41404         * doc/posix-functions/mbrtowc.texi: Likewise.
41405         * doc/posix-functions/mbsrtowcs.texi: Likewise.
41406         * doc/posix-functions/mbstowcs.texi: Likewise.
41407         * doc/posix-functions/mbtowc.texi: Likewise.
41408         * doc/posix-functions/putwchar.texi: Likewise.
41409         * doc/posix-functions/putwc.texi: Likewise.
41410         * doc/posix-functions/swprintf.texi: Likewise.
41411         * doc/posix-functions/tolower.texi: Likewise.
41412         * doc/posix-functions/toupper.texi: Likewise.
41413         * doc/posix-functions/towctrans.texi: Likewise.
41414         * doc/posix-functions/ungetwc.texi: Likewise.
41415         * doc/posix-functions/vswprintf.texi: Likewise.
41416         * doc/posix-functions/wcrtomb.texi: Likewise.
41417         * doc/posix-functions/wcscat.texi: Likewise.
41418         * doc/posix-functions/wcschr.texi: Likewise.
41419         * doc/posix-functions/wcscmp.texi: Likewise.
41420         * doc/posix-functions/wcscoll.texi: Likewise.
41421         * doc/posix-functions/wcscpy.texi: Likewise.
41422         * doc/posix-functions/wcscspn.texi: Likewise.
41423         * doc/posix-functions/wcsftime.texi: Likewise.
41424         * doc/posix-functions/wcslen.texi: Likewise.
41425         * doc/posix-functions/wcsncat.texi: Likewise.
41426         * doc/posix-functions/wcsncmp.texi: Likewise.
41427         * doc/posix-functions/wcsncpy.texi: Likewise.
41428         * doc/posix-functions/wcspbrk.texi: Likewise.
41429         * doc/posix-functions/wcsrchr.texi: Likewise.
41430         * doc/posix-functions/wcsrtombs.texi: Likewise.
41431         * doc/posix-functions/wcsspn.texi: Likewise.
41432         * doc/posix-functions/wcsstr.texi: Likewise.
41433         * doc/posix-functions/wcstod.texi: Likewise.
41434         * doc/posix-functions/wcstof.texi: Likewise.
41435         * doc/posix-functions/wcstoimax.texi: Likewise.
41436         * doc/posix-functions/wcstok.texi: Likewise.
41437         * doc/posix-functions/wcstold.texi: Likewise.
41438         * doc/posix-functions/wcstoll.texi: Likewise.
41439         * doc/posix-functions/wcstol.texi: Likewise.
41440         * doc/posix-functions/wcstombs.texi: Likewise.
41441         * doc/posix-functions/wcstoull.texi: Likewise.
41442         * doc/posix-functions/wcstoul.texi: Likewise.
41443         * doc/posix-functions/wcstoumax.texi: Likewise.
41444         * doc/posix-functions/wcswidth.texi: Likewise.
41445         * doc/posix-functions/wcsxfrm.texi: Likewise.
41446         * doc/posix-functions/wctob.texi: Likewise.
41447         * doc/posix-functions/wctomb.texi: Likewise.
41448         * doc/posix-functions/wctrans.texi: Likewise.
41449         * doc/posix-functions/wctype.texi: Likewise.
41450         * doc/posix-functions/wcwidth.texi: Likewise.
41451         * doc/posix-functions/wmemchr.texi: Likewise.
41452         * doc/posix-functions/wmemcmp.texi: Likewise.
41453         * doc/posix-functions/wmemcpy.texi: Likewise.
41454         * doc/posix-functions/wmemmove.texi: Likewise.
41455         * doc/posix-functions/wmemset.texi: Likewise.
41456         * doc/posix-functions/wprintf.texi: Likewise.
41457         * doc/posix-functions/wscanf.texi: Likewise.
41458
41459 2008-12-21  Bruno Haible  <bruno@clisp.org>
41460
41461         Update doc for HP-UX 11.11.
41462         * doc/posix-functions/btowc.texi: Clarify that the function is missing
41463         in HP-UX version 11.00, not in all versions of HP-UX 11.
41464         * doc/posix-functions/fwide.texi: Likewise.
41465         * doc/posix-functions/fwprintf.texi: Likewise.
41466         * doc/posix-functions/fwscanf.texi: Likewise.
41467         * doc/posix-functions/inet_ntop.texi: Likewise.
41468         * doc/posix-functions/inet_pton.texi: Likewise.
41469         * doc/posix-functions/mbrlen.texi: Likewise.
41470         * doc/posix-functions/mbrtowc.texi: Likewise.
41471         * doc/posix-functions/mbsinit.texi: Likewise.
41472         * doc/posix-functions/mbsrtowcs.texi: Likewise.
41473         * doc/posix-functions/swprintf.texi: Likewise.
41474         * doc/posix-functions/swscanf.texi: Likewise.
41475         * doc/posix-functions/towctrans.texi: Likewise.
41476         * doc/posix-functions/vfwprintf.texi: Likewise.
41477         * doc/posix-functions/vswprintf.texi: Likewise.
41478         * doc/posix-functions/vwprintf.texi: Likewise.
41479         * doc/posix-functions/wcrtomb.texi: Likewise.
41480         * doc/posix-functions/wcsrtombs.texi: Likewise.
41481         * doc/posix-functions/wcsstr.texi: Likewise.
41482         * doc/posix-functions/wctob.texi: Likewise.
41483         * doc/posix-functions/wctrans.texi: Likewise.
41484         * doc/posix-functions/wmemchr.texi: Likewise.
41485         * doc/posix-functions/wmemcmp.texi: Likewise.
41486         * doc/posix-functions/wmemcpy.texi: Likewise.
41487         * doc/posix-functions/wmemmove.texi: Likewise.
41488         * doc/posix-functions/wmemset.texi: Likewise.
41489         * doc/posix-functions/wprintf.texi: Likewise.
41490         * doc/posix-functions/wscanf.texi: Likewise.
41491
41492 2008-12-21  Bruno Haible  <bruno@clisp.org>
41493
41494         Work around a portability problem.
41495         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
41496         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
41497
41498 2008-12-20  Bruno Haible  <bruno@clisp.org>
41499
41500         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
41501         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
41502         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
41503         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
41504         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
41505
41506         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
41507         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
41508         set.
41509         (GNULIB_defined_mbstate_t): New macro.
41510         (mbsinit): Redefine if REPLACE_MBSINIT is set.
41511         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
41512         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
41513         reuses the system's mbrtowc function but works around the bugs.
41514         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
41515         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
41516         macros.
41517         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
41518         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
41519         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
41520         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
41521         REPLACE_MBSINIT if mbsinit needs to be overridden.
41522         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
41523         REPLACE_MBSINIT, REPLACE_MBRTOWC.
41524         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
41525         REPLACE_MBSINIT, REPLACE_MBRTOWC.
41526         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
41527         m4/locale-zh.m4.
41528         (Depends): Add mbsinit.
41529         * modules/mbsinit (Depends): Add mbrtowc.
41530         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
41531
41532 2008-12-20  Bruno Haible  <bruno@clisp.org>
41533
41534         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
41535         so that there are no conversion errors on AIX.
41536         * tests/test-mbsrtowcs.c (main): LIkewise.
41537
41538 2008-12-20  Bruno Haible  <bruno@clisp.org>
41539
41540         Work around wctob bug on Solaris <= 9.
41541         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
41542         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
41543         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
41544         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
41545         * modules/wctob (Files): Add m4/locale-fr.m4.
41546         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
41547
41548 2008-12-20  Bruno Haible  <bruno@clisp.org>
41549
41550         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
41551         /dev/null.
41552         * tests/test-select-in.sh: Likewise.
41553         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41554
41555 2008-12-20  Bruno Haible  <bruno@clisp.org>
41556
41557         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
41558         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
41559         Cygwin 1.5.x.
41560
41561 2008-12-20  Bruno Haible  <bruno@clisp.org>
41562
41563         Ensure mbstate_t is defined on HP-UX 11.11.
41564         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
41565         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
41566         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
41567         AC_USE_SYSTEM_EXTENSIONS.
41568         * modules/fnmatch (Depends-on): Add extensions.
41569         * modules/mbrlen (Depends-on): Likewise.
41570         * modules/mbrtowc (Depends-on): Likewise.
41571         * modules/mbsinit (Depends-on): Likewise.
41572         * modules/mbsrtowcs (Depends-on): Likewise.
41573         * modules/mbswidth (Depends-on): Likewise.
41574         * modules/quotearg (Depends-on): Likewise.
41575         * modules/strftime (Depends-on): Likewise.
41576
41577 2008-12-20  Bruno Haible  <bruno@clisp.org>
41578
41579         Ensure wctob is declared on IRIX 6.5.
41580         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
41581         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
41582         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
41583         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
41584         of HAVE_WCTOB.
41585         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
41586         HAVE_WCTOB.
41587         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
41588
41589 2008-12-19  Bruno Haible  <bruno@clisp.org>
41590
41591         * modules/mbsrtowcs-tests: New file.
41592         * tests/test-mbsrtowcs1.sh: New file.
41593         * tests/test-mbsrtowcs2.sh: New file.
41594         * tests/test-mbsrtowcs3.sh: New file.
41595         * tests/test-mbsrtowcs4.sh: New file.
41596         * tests/test-mbsrtowcs.c: New file.
41597
41598         New module 'mbsrtowcs'.
41599         * lib/wchar.in.h (mbsrtowcs): New declaration.
41600         * lib/mbsrtowcs.c: New file.
41601         * m4/mbsrtowcs.m4: New file.
41602         * modules/mbsrtowcs: New file.
41603         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
41604         HAVE_MBSRTOWCS.
41605         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
41606         HAVE_MBSRTOWCS.
41607         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
41608
41609 2008-12-19  Bruno Haible  <bruno@clisp.org>
41610
41611         New module 'mbrlen'.
41612         * lib/wchar.in.h (mbrlen): New declaration.
41613         * lib/mbrlen.c: New file.
41614         * m4/mbrlen.m4: New file.
41615         * modules/mbrlen: New file.
41616         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
41617         HAVE_MBRLEN.
41618         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
41619         HAVE_MBRLEN.
41620         * doc/posix-functions/mbrlen.texi: Document the new module.
41621
41622 2008-12-19  Bruno Haible  <bruno@clisp.org>
41623
41624         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
41625         * modules/mbrtowc (Depends-on): Add verify.
41626         Suggested by Paul Eggert.
41627
41628 2008-12-18  Bruno Haible  <bruno@clisp.org>
41629
41630         * modules/mbsinit-tests: New file.
41631         * tests/test-mbsinit.sh: New file.
41632         * tests/test-mbsinit.c: New file.
41633
41634 2008-12-18  Bruno Haible  <bruno@clisp.org>
41635
41636         * modules/mbrtowc-tests: New file.
41637         * tests/test-mbrtowc1.sh: New file.
41638         * tests/test-mbrtowc2.sh: New file.
41639         * tests/test-mbrtowc3.sh: New file.
41640         * tests/test-mbrtowc4.sh: New file.
41641         * tests/test-mbrtowc.c: New file.
41642
41643         New module 'mbrtowc'.
41644         * lib/wchar.in.h (mbstate_t): Override when the system does not have
41645         mbsinit and mbrtowc.
41646         (mbrtowc): New declaration.
41647         * lib/mbrtowc.c: New file.
41648         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
41649         * modules/mbrtowc: New file.
41650         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
41651         HAVE_MBRTOWC.
41652         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
41653         HAVE_MBRTOWC.
41654         * doc/posix-functions/mbrtowc.texi: Document the new module.
41655
41656 2008-12-18  Bruno Haible  <bruno@clisp.org>
41657
41658         New module 'wctob'.
41659         * lib/wchar.in.h (wctob): New declaration.
41660         * lib/wctob.c: New file.
41661         * m4/wctob.m4: New file.
41662         * modules/wctob: New file.
41663         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
41664         HAVE_WCTOB.
41665         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
41666         * doc/posix-functions/wctob.texi: Document the new module.
41667
41668 2008-12-18  Bruno Haible  <bruno@clisp.org>
41669
41670         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
41671         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
41672
41673 2008-12-18  Simon Josefsson  <simon@josefsson.org>
41674
41675         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
41676         G. Christensen" <tgc@jupiterrise.com>.
41677
41678         * lib/flock.c: Need to include errno.h.  Reported by "Tom
41679         G. Christensen" <tgc@jupiterrise.com>.
41680
41681         * lib/flock.c: Need to include string.h.  Reported by "Tom
41682         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
41683         <ebb9@byu.net>.
41684
41685 2008-12-18  Bruno Haible  <bruno@clisp.org>
41686
41687         * m4/locale-ja.m4: New file, from GNU gettext.
41688
41689 2008-12-17  Bruno Haible  <bruno@clisp.org>
41690
41691         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
41692         Suggested by Eric Blake.
41693
41694 2008-12-17  Bruno Haible  <bruno@clisp.org>
41695
41696         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
41697
41698 2008-12-17  Bruno Haible  <bruno@clisp.org>
41699
41700         * lib/mbsinit.c: Include verify.h. Verify an assumption.
41701         * modules/mbsinit (Depends-on): Add verify.
41702         Suggested by Paul Eggert.
41703
41704 2008-12-17  Bruno Haible  <bruno@clisp.org>
41705
41706         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
41707         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
41708         gl_FUNC_MBRTOWC.
41709         * m4/mbiter.m4 (gl_MBITER): LIkewise.
41710         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
41711         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
41712         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
41713         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
41714         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
41715         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
41716         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
41717         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
41718         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
41719         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
41720         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
41721         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
41722         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
41723         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
41724         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41725         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
41726         * modules/trim (configure.ac): Likewise.
41727
41728 2008-12-17  Bruno Haible  <bruno@clisp.org>
41729
41730         * modules/btowc-tests: New file.
41731         * tests/test-btowc1.sh: New file.
41732         * tests/test-btowc2.sh: New file.
41733         * tests/test-btowc.c: New file.
41734
41735         New module 'btowc'.
41736         * lib/wchar.in.h (btowc): New declaration.
41737         * lib/btowc.c: New file.
41738         * m4/btowc.m4: New file.
41739         * modules/btowc: New file.
41740         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
41741         HAVE_BTOWC.
41742         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
41743         * doc/posix-functions/btowc.texi: Document the new module.
41744
41745 2008-12-17  Bruno Haible  <bruno@clisp.org>
41746
41747         New module 'mbsinit'.
41748         * lib/wchar.in.h (mbsinit): New declaration.
41749         * lib/mbsinit.c: New file.
41750         * m4/mbsinit.m4: New file.
41751         * modules/mbsinit: New file.
41752         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
41753         HAVE_MBSINIT.
41754         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
41755         HAVE_MBSINIT.
41756         * doc/posix-functions/mbsinit.texi: Document the new module.
41757
41758 2008-12-16  Bruno Haible  <bruno@clisp.org>
41759
41760         * lib/unistd.in.h: Add comment.
41761         * tests/test-environ.c: Don't include <stdlib.h>.
41762
41763 2008-12-16  Bruno Haible  <bruno@clisp.org>
41764
41765         * lib/parse-duration.h (parse_duration): Document return value
41766         convention.
41767         * lib/parse-duration.c: Include specification header first. Add
41768         comments.
41769         (_): Remove macro.
41770         (parse_year_month_day, parse_hour_minute_second): Move side effects
41771         outside of strchr call.
41772         (parse_non_iso8601): Move side effects outside of isspace call.
41773         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
41774         call.
41775
41776 2008-12-16  Bruno Haible  <bruno@clisp.org>
41777
41778         * tests/test-parse-duration.sh: Produce no output when the test
41779         succeeds.
41780
41781 2008-12-16  Bruno Haible  <bruno@clisp.org>
41782
41783         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
41784         expressions.
41785
41786 2008-12-15  Bruno Haible  <bruno@clisp.org>
41787
41788         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
41789         * doc/glibc-functions/flistxattr.texi: Likewise.
41790         * doc/glibc-functions/fopencookie.texi: Likewise.
41791         * doc/glibc-functions/fremovexattr.texi: Likewise.
41792         * doc/glibc-functions/fsetxattr.texi: Likewise.
41793         * doc/glibc-functions/getxattr.texi: Likewise.
41794         * doc/glibc-functions/lgetxattr.texi: Likewise.
41795         * doc/glibc-functions/listxattr.texi: Likewise.
41796         * doc/glibc-functions/llistxattr.texi: Likewise.
41797         * doc/glibc-functions/lremovexattr.texi: Likewise.
41798         * doc/glibc-functions/lsetxattr.texi: Likewise.
41799         * doc/glibc-functions/removexattr.texi: Likewise.
41800         * doc/glibc-functions/setxattr.texi: Likewise.
41801         * doc/posix-functions/open_memstream.texi: Likewise.
41802
41803 2008-12-15  Eric Blake  <ebb9@byu.net>
41804
41805         Update doc for cygwin 1.7.
41806         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
41807         functions.
41808         * doc/posix-functions/fchmodat.texi: Likewise.
41809         * doc/posix-functions/fchownat.texi: Likewise.
41810         * doc/posix-functions/fdopendir.texi: Likewise.
41811         * doc/posix-functions/fmemopen.texi: Likewise.
41812         * doc/posix-functions/freeaddrinfo.texi: Likewise.
41813         * doc/posix-functions/fstatat.texi: Likewise.
41814         * doc/posix-functions/futimens.texi: Likewise.
41815         * doc/posix-functions/gai_strerror.texi: Likewise.
41816         * doc/posix-functions/getaddrinfo.texi: Likewise.
41817         * doc/posix-functions/getnameinfo.texi: Likewise.
41818         * doc/posix-functions/if_freenameindex.texi: Likewise.
41819         * doc/posix-functions/if_indextoname.texi: Likewise.
41820         * doc/posix-functions/if_nameindex.texi: Likewise.
41821         * doc/posix-functions/if_nametoindex.texi: Likewise.
41822         * doc/posix-functions/insque.texi: Likewise.
41823         * doc/posix-functions/linkat.texi: Likewise.
41824         * doc/posix-functions/llrint.texi: Likewise.
41825         * doc/posix-functions/llrintf.texi: Likewise.
41826         * doc/posix-functions/llrintl.texi: Likewise.
41827         * doc/posix-functions/lockf.texi: Likewise.
41828         * doc/posix-functions/lrintl.texi: Likewise.
41829         * doc/posix-functions/mkdirat.texi: Likewise.
41830         * doc/posix-functions/mkfifoat.texi: Likewise.
41831         * doc/posix-functions/mknodat.texi: Likewise.
41832         * doc/posix-functions/mq_close.texi: Likewise.
41833         * doc/posix-functions/mq_getattr.texi: Likewise.
41834         * doc/posix-functions/mq_notify.texi: Likewise.
41835         * doc/posix-functions/mq_open.texi: Likewise.
41836         * doc/posix-functions/mq_receive.texi: Likewise.
41837         * doc/posix-functions/mq_send.texi: Likewise.
41838         * doc/posix-functions/mq_setattr.texi: Likewise.
41839         * doc/posix-functions/mq_timedreceive.texi: Likewise.
41840         * doc/posix-functions/mq_timedsend.texi: Likewise.
41841         * doc/posix-functions/mq_unlink.texi: Likewise.
41842         * doc/posix-functions/open_memstream.texi: Likewise.
41843         * doc/posix-functions/openat.texi: Likewise.
41844         * doc/posix-functions/posix_fadvise.texi: Likewise.
41845         * doc/posix-functions/posix_fallocate.texi: Likewise.
41846         * doc/posix-functions/posix_madvise.texi: Likewise.
41847         * doc/posix-functions/posix_memalign.texi: Likewise.
41848         * doc/posix-functions/posix_openpt.texi: Likewise.
41849         * doc/posix-functions/readlinkat.texi: Likewise.
41850         * doc/posix-functions/remque.texi: Likewise.
41851         * doc/posix-functions/renameat.texi: Likewise.
41852         * doc/posix-functions/rintl.texi: Likewise.
41853         * doc/posix-functions/sem_unlink.texi: Likewise.
41854         * doc/posix-functions/shm_open.texi: Likewise.
41855         * doc/posix-functions/shm_unlink.texi: Likewise.
41856         * doc/posix-functions/signgam.texi: Likewise.
41857         * doc/posix-functions/sigset.texi: Likewise.
41858         * doc/posix-functions/stpcpy.texi: Likewise.
41859         * doc/posix-functions/stpncpy.texi: Likewise.
41860         * doc/posix-functions/strerror.texi: Likewise.
41861         * doc/posix-functions/strtod.texi: Likewise.
41862         * doc/posix-functions/symlinkat.texi: Likewise.
41863         * doc/posix-functions/unlinkat.texi: Likewise.
41864         * doc/posix-functions/utimensat.texi: Likewise.
41865         * doc/glibc-functions/bindresvport.texi: Likewise.
41866         * doc/glibc-functions/dn_expand.texi: Likewise.
41867         * doc/glibc-functions/exp10.texi: Likewise.
41868         * doc/glibc-functions/exp10f.texi: Likewise.
41869         * doc/glibc-functions/fgetxattr.texi: Likewise.
41870         * doc/glibc-functions/flistxattr.texi: Likewise.
41871         * doc/glibc-functions/fopencookie.texi: Likewise.
41872         * doc/glibc-functions/freeifaddrs.texi: Likewise.
41873         * doc/glibc-functions/fremovexattr.texi: Likewise.
41874         * doc/glibc-functions/fsetxattr.texi: Likewise.
41875         * doc/glibc-functions/getifaddrs.texi: Likewise.
41876         * doc/glibc-functions/getxattr.texi: Likewise.
41877         * doc/glibc-functions/lgetxattr.texi: Likewise.
41878         * doc/glibc-functions/listxattr.texi: Likewise.
41879         * doc/glibc-functions/llistxattr.texi: Likewise.
41880         * doc/glibc-functions/lremovexattr.texi: Likewise.
41881         * doc/glibc-functions/lsetxattr.texi: Likewise.
41882         * doc/glibc-functions/pow10.texi: Likewise.
41883         * doc/glibc-functions/pow10f.texi: Likewise.
41884         * doc/glibc-functions/rcmd_af.texi: Likewise.
41885         * doc/glibc-functions/removexattr.texi: Likewise.
41886         * doc/glibc-functions/res_init.texi: Likewise.
41887         * doc/glibc-functions/res_mkquery.texi: Likewise.
41888         * doc/glibc-functions/res_query.texi: Likewise.
41889         * doc/glibc-functions/res_querydomain.texi: Likewise.
41890         * doc/glibc-functions/res_send.texi: Likewise.
41891         * doc/glibc-functions/rresvport_af.texi: Likewise.
41892         * doc/glibc-functions/setxattr.texi: Likewise.
41893         * doc/glibc-functions/strcasestr.texi: Likewise.
41894
41895 2008-12-15  Bruno Haible  <bruno@clisp.org>
41896
41897         Fix compilation error on OSF/1 4.0.
41898         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
41899         <sys/time.h>, simply delegate to the system header.
41900         Reported by Daniel Richard G. <oss@teragram.com>.
41901
41902 2008-12-15  Bruno Haible  <bruno@clisp.org>
41903
41904         * doc/posix-functions/openat.texi: Mention the 'openat' module.
41905         * doc/posix-functions/fchmodat.texi: Likewise.
41906         * doc/posix-functions/fchownat.texi: Likewise.
41907         * doc/posix-functions/fdopendir.texi: Likewise.
41908         * doc/posix-functions/fstatat.texi: Likewise.
41909         * doc/posix-functions/mkdirat.texi: Likewise.
41910         * doc/posix-functions/unlinkat.texi: Likewise.
41911
41912 2008-12-14  Bruno Haible  <bruno@clisp.org>
41913
41914         Update doc for POSIX:2008.
41915         * doc/posix-functions/faccessat.texi: New file.
41916         * doc/posix-functions/fchmodat.texi: New file.
41917         * doc/posix-functions/fchownat.texi: New file.
41918         * doc/posix-functions/fdopendir.texi: New file.
41919         * doc/posix-functions/fstatat.texi: New file.
41920         * doc/posix-functions/futimens.texi: New file.
41921         * doc/posix-functions/linkat.texi: New file.
41922         * doc/posix-functions/mkdirat.texi: New file.
41923         * doc/posix-functions/mkfifoat.texi: New file.
41924         * doc/posix-functions/mknodat.texi: New file.
41925         * doc/posix-functions/open_wmemstream.texi: New file.
41926         * doc/posix-functions/openat.texi: New file.
41927         * doc/posix-functions/psiginfo.texi: New file.
41928         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
41929         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
41930         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
41931         * doc/posix-functions/readlinkat.texi: New file.
41932         * doc/posix-functions/renameat.texi: New file.
41933         * doc/posix-functions/strerror_l.texi: New file.
41934         * doc/posix-functions/symlinkat.texi: New file.
41935         * doc/posix-functions/unlinkat.texi: New file.
41936         * doc/posix-functions/utimensat.texi: New file.
41937         * doc/gnulib.texi (Function Substitutes): Add these subsections.
41938
41939 2008-12-14  Bruno Haible  <bruno@clisp.org>
41940
41941         Update doc for POSIX:2008.
41942         * doc/posix-functions/alphasort.texi: Renamed from
41943         doc/glibc-functions/alphasort.texi.
41944         * doc/posix-functions/dirfd.texi: Renamed from
41945         doc/glibc-functions/dirfd.texi.
41946         * doc/posix-functions/dprintf.texi: Renamed from
41947         doc/glibc-functions/dprintf.texi.
41948         * doc/posix-functions/duplocale.texi: Renamed from
41949         doc/glibc-functions/duplocale.texi.
41950         * doc/posix-functions/fexecve.texi: Renamed from
41951         doc/glibc-functions/fexecve.texi.
41952         * doc/posix-functions/fmemopen.texi: Renamed from
41953         doc/glibc-functions/fmemopen.texi.
41954         * doc/posix-functions/freelocale.texi: Renamed from
41955         doc/glibc-functions/freelocale.texi.
41956         * doc/posix-functions/getdate_err.texi: Renamed from
41957         doc/glibc-functions/getdate_err.texi.
41958         * doc/posix-functions/isalnum_l.texi: Renamed from
41959         doc/glibc-functions/isalnum_l.texi.
41960         * doc/posix-functions/isalpha_l.texi: Renamed from
41961         doc/glibc-functions/isalpha_l.texi.
41962         * doc/posix-functions/isblank_l.texi: Renamed from
41963         doc/glibc-functions/isblank_l.texi.
41964         * doc/posix-functions/iscntrl_l.texi: Renamed from
41965         doc/glibc-functions/iscntrl_l.texi.
41966         * doc/posix-functions/isdigit_l.texi: Renamed from
41967         doc/glibc-functions/isdigit_l.texi.
41968         * doc/posix-functions/isgraph_l.texi: Renamed from
41969         doc/glibc-functions/isgraph_l.texi.
41970         * doc/posix-functions/islower_l.texi: Renamed from
41971         doc/glibc-functions/islower_l.texi.
41972         * doc/posix-functions/isprint_l.texi: Renamed from
41973         doc/glibc-functions/isprint_l.texi.
41974         * doc/posix-functions/ispunct_l.texi: Renamed from
41975         doc/glibc-functions/ispunct_l.texi.
41976         * doc/posix-functions/isspace_l.texi: Renamed from
41977         doc/glibc-functions/isspace_l.texi.
41978         * doc/posix-functions/isupper_l.texi: Renamed from
41979         doc/glibc-functions/isupper_l.texi.
41980         * doc/posix-functions/iswalnum_l.texi: Renamed from
41981         doc/glibc-functions/iswalnum_l.texi.
41982         * doc/posix-functions/iswalpha_l.texi: Renamed from
41983         doc/glibc-functions/iswalpha_l.texi.
41984         * doc/posix-functions/iswblank_l.texi: Renamed from
41985         doc/glibc-functions/iswblank_l.texi.
41986         * doc/posix-functions/iswcntrl_l.texi: Renamed from
41987         doc/glibc-functions/iswcntrl_l.texi.
41988         * doc/posix-functions/iswctype_l.texi: Renamed from
41989         doc/glibc-functions/iswctype_l.texi.
41990         * doc/posix-functions/iswdigit_l.texi: Renamed from
41991         doc/glibc-functions/iswdigit_l.texi.
41992         * doc/posix-functions/iswgraph_l.texi: Renamed from
41993         doc/glibc-functions/iswgraph_l.texi.
41994         * doc/posix-functions/iswlower_l.texi: Renamed from
41995         doc/glibc-functions/iswlower_l.texi.
41996         * doc/posix-functions/iswprint_l.texi: Renamed from
41997         doc/glibc-functions/iswprint_l.texi.
41998         * doc/posix-functions/iswpunct_l.texi: Renamed from
41999         doc/glibc-functions/iswpunct_l.texi.
42000         * doc/posix-functions/iswspace_l.texi: Renamed from
42001         doc/glibc-functions/iswspace_l.texi.
42002         * doc/posix-functions/iswupper_l.texi: Renamed from
42003         doc/glibc-functions/iswupper_l.texi.
42004         * doc/posix-functions/iswxdigit_l.texi: Renamed from
42005         doc/glibc-functions/iswxdigit_l.texi.
42006         * doc/posix-functions/isxdigit_l.texi: Renamed from
42007         doc/glibc-functions/isxdigit_l.texi.
42008         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
42009         doc/glibc-functions/mbsnrtowcs.texi.
42010         * doc/posix-functions/mkdtemp.texi: Renamed from
42011         doc/glibc-functions/mkdtemp.texi.
42012         * doc/posix-functions/newlocale.texi: Renamed from
42013         doc/glibc-functions/newlocale.texi.
42014         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
42015         doc/glibc-functions/nl_langinfo_l.texi.
42016         * doc/posix-functions/open_memstream.texi: Renamed from
42017         doc/glibc-functions/open_memstream.texi.
42018         * doc/posix-functions/opterr.texi: Renamed from
42019         doc/glibc-functions/opterr.texi.
42020         * doc/posix-functions/optind.texi: Renamed from
42021         doc/glibc-functions/optind.texi.
42022         * doc/posix-functions/optopt.texi: Renamed from
42023         doc/glibc-functions/optopt.texi.
42024         * doc/posix-functions/psignal.texi: Renamed from
42025         doc/glibc-functions/psignal.texi.
42026         * doc/posix-functions/scandir.texi: Renamed from
42027         doc/glibc-functions/scandir.texi.
42028         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
42029         doc/glibc-functions/sched_get_priority_min.texi.
42030         * doc/posix-functions/signgam.texi: Renamed from
42031         doc/glibc-functions/signgam.texi.
42032         * doc/posix-functions/stpcpy.texi: Renamed from
42033         doc/glibc-functions/stpcpy.texi.
42034         * doc/posix-functions/stpncpy.texi: Renamed from
42035         doc/glibc-functions/stpncpy.texi.
42036         * doc/posix-functions/strcasecmp_l.texi: Renamed from
42037         doc/glibc-functions/strcasecmp_l.texi.
42038         * doc/posix-functions/strcoll_l.texi: Renamed from
42039         doc/glibc-functions/strcoll_l.texi.
42040         * doc/posix-functions/strfmon_l.texi: Renamed from
42041         doc/glibc-functions/strfmon_l.texi.
42042         * doc/posix-functions/strftime_l.texi: Renamed from
42043         doc/glibc-functions/strftime_l.texi.
42044         * doc/posix-functions/strncasecmp_l.texi: Renamed from
42045         doc/glibc-functions/strncasecmp_l.texi.
42046         * doc/posix-functions/strndup.texi: Renamed from
42047         doc/glibc-functions/strndup.texi.
42048         * doc/posix-functions/strnlen.texi: Renamed from
42049         doc/glibc-functions/strnlen.texi.
42050         * doc/posix-functions/strsignal.texi: Renamed from
42051         doc/glibc-functions/strsignal.texi.
42052         * doc/posix-functions/strxfrm_l.texi: Renamed from
42053         doc/glibc-functions/strxfrm_l.texi.
42054         * doc/posix-functions/timer_gettime.texi: Renamed from
42055         doc/glibc-functions/timer_gettime.texi.
42056         * doc/posix-functions/tolower_l.texi: Renamed from
42057         doc/glibc-functions/tolower_l.texi.
42058         * doc/posix-functions/toupper_l.texi: Renamed from
42059         doc/glibc-functions/toupper_l.texi.
42060         * doc/posix-functions/towctrans_l.texi: Renamed from
42061         doc/glibc-functions/towctrans_l.texi.
42062         * doc/posix-functions/towlower_l.texi: Renamed from
42063         doc/glibc-functions/towlower_l.texi.
42064         * doc/posix-functions/towupper_l.texi: Renamed from
42065         doc/glibc-functions/towupper_l.texi.
42066         * doc/posix-functions/uselocale.texi: Renamed from
42067         doc/glibc-functions/uselocale.texi.
42068         * doc/posix-functions/vdprintf.texi: Renamed from
42069         doc/glibc-functions/vdprintf.texi.
42070         * doc/posix-functions/wcpcpy.texi:
42071         Renamed from doc/glibc-functions/wcpcpy.texi.
42072         * doc/posix-functions/wcpncpy.texi: Renamed from
42073         doc/glibc-functions/wcpncpy.texi.
42074         * doc/posix-functions/wcscasecmp.texi: Renamed from
42075         doc/glibc-functions/wcscasecmp.texi.
42076         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
42077         doc/glibc-functions/wcscasecmp_l.texi.
42078         * doc/posix-functions/wcscoll_l.texi: Renamed from
42079         doc/glibc-functions/wcscoll_l.texi.
42080         * doc/posix-functions/wcsdup.texi: Renamed from
42081         doc/glibc-functions/wcsdup.texi.
42082         * doc/posix-functions/wcsncasecmp.texi: Renamed from
42083         doc/glibc-functions/wcsncasecmp.texi.
42084         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
42085         doc/glibc-functions/wcsncasecmp_l.texi.
42086         * doc/posix-functions/wcsnlen.texi: Renamed from
42087         doc/glibc-functions/wcsnlen.texi.
42088         * doc/posix-functions/wcsnrtombs.texi: Renamed from
42089         doc/glibc-functions/wcsnrtombs.texi.
42090         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
42091         doc/glibc-functions/wcsxfrm_l.texi.
42092         * doc/posix-functions/wctrans_l.texi: Renamed from
42093         doc/glibc-functions/wctrans_l.texi.
42094         * doc/posix-functions/wctype_l.texi: Renamed from
42095         doc/glibc-functions/wctype_l.texi.
42096         * doc/gnulib.texi (Function Substitutes): Add these subsections.
42097         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
42098         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
42099         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
42100         these subsections.
42101         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
42102         Remove sections.
42103
42104 2008-12-14  Bruno Haible  <bruno@clisp.org>
42105
42106         Update doc for POSIX:2008.
42107         * doc/posix-functions/*.texi: Update URL of POSIX specification.
42108
42109 2008-12-14  Bruno Haible  <bruno@clisp.org>
42110
42111         Update doc for POSIX:2008.
42112         * doc/pastposix-functions/bcmp.texi: Renamed from
42113         doc/posix-functions/bcmp.texi.
42114         * doc/pastposix-functions/bcopy.texi: Renamed from
42115         doc/posix-functions/bcopy.texi.
42116         * doc/pastposix-functions/bsd_signal.texi: Renamed from
42117         doc/posix-functions/bsd_signal.texi.
42118         * doc/pastposix-functions/bzero.texi: Renamed from
42119         doc/posix-functions/bzero.texi.
42120         * doc/pastposix-functions/ecvt.texi: Renamed from
42121         doc/posix-functions/ecvt.texi.
42122         * doc/pastposix-functions/fcvt.texi: Renamed from
42123         doc/posix-functions/fcvt.texi.
42124         * doc/pastposix-functions/ftime.texi: Renamed from
42125         doc/posix-functions/ftime.texi.
42126         * doc/pastposix-functions/gcvt.texi: Renamed from
42127         doc/posix-functions/gcvt.texi.
42128         * doc/pastposix-functions/getcontext.texi: Renamed from
42129         doc/posix-functions/getcontext.texi.
42130         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
42131         doc/posix-functions/gethostbyaddr.texi.
42132         * doc/pastposix-functions/gethostbyname.texi: Renamed from
42133         doc/posix-functions/gethostbyname.texi.
42134         * doc/pastposix-functions/getwd.texi: Renamed from
42135         doc/posix-functions/getwd.texi.
42136         * doc/pastposix-functions/h_errno.texi: Renamed from
42137         doc/posix-functions/h_errno.texi.
42138         * doc/pastposix-functions/index.texi: Renamed from
42139         doc/posix-functions/index.texi.
42140         * doc/pastposix-functions/makecontext.texi: Renamed from
42141         doc/posix-functions/makecontext.texi.
42142         * doc/pastposix-functions/mktemp.texi: Renamed from
42143         doc/posix-functions/mktemp.texi.
42144         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
42145         doc/posix-functions/pthread_attr_getstackaddr.texi.
42146         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
42147         doc/posix-functions/pthread_attr_setstackaddr.texi.
42148         * doc/pastposix-functions/rindex.texi: Renamed from
42149         doc/posix-functions/rindex.texi.
42150         * doc/pastposix-functions/scalb.texi: Renamed from
42151         doc/posix-functions/scalb.texi.
42152         * doc/pastposix-functions/setcontext.texi: Renamed from
42153         doc/posix-functions/setcontext.texi.
42154         * doc/pastposix-functions/swapcontext.texi: Renamed from
42155         doc/posix-functions/swapcontext.texi.
42156         * doc/pastposix-functions/ualarm.texi: Renamed from
42157         doc/posix-functions/ualarm.texi.
42158         * doc/pastposix-functions/usleep.texi: Renamed from
42159         doc/posix-functions/usleep.texi.
42160         * doc/pastposix-functions/vfork.texi: Renamed from
42161         doc/posix-functions/vfork.texi.
42162         * doc/pastposix-functions/wcswcs.texi: Renamed from
42163         doc/posix-functions/wcswcs.texi.
42164         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
42165         (Function Substitutes): Update.
42166
42167 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42168
42169         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
42170         m4/strerror.m4.
42171
42172 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42173             Bruno Haible  <bruno@clisp.org>
42174
42175         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
42176
42177 2008-12-13  Bruno Haible  <bruno@clisp.org>
42178
42179         * modules/strtoull (Depends-on): Remove unistd.
42180
42181 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42182
42183         * modules/strtoull (Depends-on): Add stdlib.
42184
42185 2008-12-11  Simon Josefsson  <simon@josefsson.org>
42186
42187         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
42188
42189 2008-12-10  Jim Meyering  <meyering@redhat.com>
42190
42191         gl_ASSERT: don't say assertions are disabled when they're not
42192         * m4/assert.m4 (gl_ASSERT): Do not make configure report
42193         "checking whether to enable assertions... no", when they are in
42194         fact enabled.  This is solely a bug in the output of configure.
42195         In spite of saying "no", NDEBUG was not defined in that case.
42196         Also, as noted by Eric Blake, leave assertions enabled upon
42197         --enable-assert=INVALID.
42198
42199 2008-12-10  Bruno Haible  <bruno@clisp.org>
42200
42201         Change MODULES.html to refer to POSIX:2008 where possible.
42202         * MODULES.html.sh (POSIX2008_URL): New variable.
42203         (posix_headers): Remove sys/timeb, ucontext.
42204         (posix2001_headers): New variable.
42205         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
42206         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
42207         index, makecontext, mktemp, pthread_attr_getstackaddr,
42208         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
42209         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
42210         (posix2001_functions): New variable.
42211         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
42212         otherwise.
42213
42214 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42215
42216         add missing include to parse-duration.c
42217         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
42218         * modules/parse-duration (Depends-on): Add xalloc.
42219
42220         fix sed script reading maint.mk
42221         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
42222         (syntax-check-rules): Use it.
42223
42224 2008-12-09  Bruno Haible  <bruno@clisp.org>
42225
42226         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
42227         MacOS X 10.4/PowerPC.
42228         Reported by Simon Josefsson.
42229
42230 2008-12-08  Jim Meyering  <meyering@redhat.com>
42231
42232         work around mingw's lack of some S_IF definitions
42233         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
42234         Reported by Simon Josefsson.
42235
42236 2008-12-08  Bruno Haible  <bruno@clisp.org>
42237
42238         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
42239         applied to variables. Needed on MacOS X 10.4/PowerPC.
42240         Reported by Simon Josefsson.
42241
42242 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
42243         and Eric Blake  <ebb9@byu.net>
42244
42245         assert: honor --enable-assert
42246         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
42247         order to honor --enable-assert, rather than treating it as a
42248         synonym for --disable-assert.
42249
42250 2008-12-08  Jim Meyering  <meyering@redhat.com>
42251
42252         * lib/posixtm.c: Remove now-useless declaration of mktime.
42253
42254         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
42255
42256 2008-12-07  Bruno Haible  <bruno@clisp.org>
42257
42258         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
42259         test_once): Mark functions as static.
42260         * tests/test-tls.c (test_tls): Likewise.
42261
42262 2008-12-07  Bruno Haible  <bruno@clisp.org>
42263
42264         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
42265         iconv_register_autodetect.
42266
42267 2008-12-07  Jim Meyering  <meyering@redhat.com>
42268
42269         posixtm.c: avoid a warning
42270         * lib/posixtm.c (posixtime): Don't initialize tm0.
42271         It's no longer needed to placate gcc4's -Wuninitialized,
42272         and the attempt to placate would elicit a new warning.
42273
42274         unicodeio.c: mark unused parameters
42275         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
42276         (fallback_failure_callback): Likewise.
42277
42278 2008-12-07  Bruno Haible  <bruno@clisp.org>
42279
42280         * gnulib-tool (func_create_testdir): When building the tests
42281         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
42282         Reported by Simon Josefsson.
42283
42284 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42285
42286         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
42287
42288 2008-12-06  Bruno Haible  <bruno@clisp.org>
42289
42290         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
42291         Suggested by Eric Blake.
42292
42293 2008-12-06  Bruno Haible  <bruno@clisp.org>
42294
42295         Fix a c-stack test failure on MacOS X.
42296         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
42297         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
42298         handler for SIGBUS as well.
42299         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
42300         install a signal handler for SIGBUS as well.
42301         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
42302
42303 2008-12-06  Bruno Haible  <bruno@clisp.org>
42304
42305         Advocacy documentation.
42306         * doc/gnulib-intro.texi (Benefits): New section.
42307         * doc/gnulib.texi: Update.
42308
42309 2008-12-06  Bruno Haible  <bruno@clisp.org>
42310
42311         Document the 'manywarnings' module.
42312         * doc/manywarnings.texi: New file.
42313         * doc/gnulib.texi: Include it.
42314
42315 2008-12-05  Eric Blake  <ebb9@byu.net>
42316
42317         tests: silence some gcc warnings
42318         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
42319         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
42320         type mismatches.
42321
42322 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42323             Bruno Haible  <bruno@clisp.org>
42324
42325         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
42326
42327 2008-11-29  Jim Meyering  <meyering@redhat.com>
42328
42329         unicodeio.c: mark unused parameters
42330         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
42331         (fallback_failure_callback): Likewise.
42332
42333         fts: fix a thinko
42334         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
42335         (set_stat_type): Return S_IF*-valued "type" directly.
42336         Prompted by James Youngman's spotting a related bug.
42337         Confirmed by further testing through find.
42338
42339         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
42340         * lib/fts.c (D_TYPE): Define.
42341         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
42342         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
42343         (s_ifmt_shift_bits): New function.
42344         (set_stat_type): New function.
42345         (fts_build): When not calling fts_stat, call set_stat_type
42346         to propagate dirent.d_type info to fts_read caller.
42347         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
42348         fts_statp->st_mode type information may be valid.
42349
42350 2008-11-28  Simon Josefsson  <simon@josefsson.org>
42351
42352         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
42353         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
42354         <sds@gnu.org>.
42355
42356 2008-11-20  Bruno Haible  <bruno@clisp.org>
42357
42358         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
42359         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
42360         INCLUDE_NEXT.
42361         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
42362         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
42363         * modules/math (Makefile.am): Substitute
42364         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
42365         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42366
42367 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
42368             Bruno Haible  <bruno@clisp.org>
42369
42370         * lib/stdint.in.h: Define all type macros so that their expansion is
42371         a single typedef'ed token. Fixes a compilation failure in Boost which
42372         does "using ::int8_t;".
42373
42374 2008-11-18  Simon Josefsson  <simon@josefsson.org>
42375
42376         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
42377         gl_MANYWARN_ALL_GCC.
42378         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
42379         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
42380         * modules/manywarnings: New file.
42381         * MODULES.html.sh: Mention manywarnings module.
42382
42383 2008-11-18  Bruno Haible  <bruno@clisp.org>
42384
42385         * doc/gnulib-tool.texi (Unit tests): New section.
42386
42387 2008-11-18  Simon Josefsson  <simon@josefsson.org>
42388
42389         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
42390         paths like 'lib/po/foo.po'.
42391
42392 2008-11-17  Simon Josefsson  <simon@josefsson.org>
42393
42394         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
42395         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
42396
42397 2008-11-17  Simon Josefsson  <simon@josefsson.org>
42398
42399         * m4/warnings.m4: Use CPPFLAGS to really check whether the
42400         parameter works.
42401
42402 2008-11-17  Simon Josefsson  <simon@josefsson.org>
42403
42404         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
42405
42406 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42407
42408         * modules/parse-duration-tests: New file.
42409         * tests/test-parse-duration.sh: New file.
42410         * tests/test-parse-duration.c: New file.
42411
42412         New module 'parse-duration'.
42413         * lib/parse-duration.h: New file.
42414         * lib/parse-duration.c: New file.
42415         * modules/parse-duration: New file.
42416
42417 2008-11-17  Bruno Haible  <bruno@clisp.org>
42418
42419         * tests/test-select-out.sh: Comment out the first pipe test.
42420         Reported by Simon Josefsson.
42421
42422 2008-11-17  Bruno Haible  <bruno@clisp.org>
42423
42424         * modules/getaddrinfo (Depends-on): Add servent, hostent.
42425         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
42426         gl_HOSTENT.
42427
42428 2008-11-17  Bruno Haible  <bruno@clisp.org>
42429
42430         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
42431         -lnetwork and -lnet. Needed for Haiku and BeOS.
42432
42433 2008-11-16  Bruno Haible  <bruno@clisp.org>
42434
42435         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
42436
42437 2008-11-16  Bruno Haible  <bruno@clisp.org>
42438
42439         Avoid test failure on Haiku.
42440         * tests/test-fsync.c: Include <errno.h>.
42441         (main): Don't require that fsync (0) fails.
42442
42443 2008-11-15  Bruno Haible  <bruno@clisp.org>
42444
42445         New module 'hostent'.
42446         * modules/hostent: New file.
42447         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
42448
42449 2008-11-15  Bruno Haible  <bruno@clisp.org>
42450
42451         New module 'servent'.
42452         * modules/servent: New file.
42453         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
42454
42455 2008-11-15  Bruno Haible  <bruno@clisp.org>
42456
42457         Avoid generating same test program with two different rules.
42458         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
42459         test-frexp to test-frexp-nolibm.
42460         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
42461         test-frexpl to test-frexpl-nolibm.
42462
42463 2008-11-15  Bruno Haible  <bruno@clisp.org>
42464
42465         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
42466         $(FREXPL_LIBM).
42467
42468 2008-11-15  Bruno Haible  <bruno@clisp.org>
42469
42470         * lib/netdb.in.h: Activate the definitions also when the system's
42471         <netdb.h> has 'struct addrinfo'.
42472         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
42473         EAI_OVERFLOW or AI_NUMERICSERV.
42474         * doc/posix-headers/netdb.texi: Document the problem.
42475
42476 2008-11-15  Bruno Haible  <bruno@clisp.org>
42477
42478         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
42479
42480         Make the 'sched' module work on platforms where <sched.h> exists but
42481         is incomplete (such as Haiku).
42482         * lib/sched.in.h; Include the system's <sched.h> if it exists.
42483         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
42484         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
42485         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
42486         HAVE_STRUCT_SCHED_PARAM.
42487         * modules/sched (Depends-on): Add include_next.
42488         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
42489         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
42490         * doc/posix-headers/sched.texi: Document the issue.
42491
42492 2008-11-13  Jim Meyering  <meyering@redhat.com>
42493
42494         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
42495         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
42496         test would fail due to the difference in the Report bugs to ...
42497         line.  The expected address is empty, "<>", while the actual
42498         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
42499
42500 2008-11-12  Bruno Haible  <bruno@clisp.org>
42501
42502         lstat: don't compile lstat.c on systems lacking lstat
42503         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
42504         which don't have lstat; this is handled by lib/sys_stat.in.h already.
42505         Reported by Daniel P. Berrange via Jim Meyering.
42506
42507 2008-11-12  Jim Meyering  <meyering@redhat.com>
42508
42509         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
42510
42511 2008-11-12  Simon Josefsson  <simon@josefsson.org>
42512
42513         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
42514         instead.
42515
42516 2008-11-12  Bruno Haible  <bruno@clisp.org>
42517
42518         * lib/unicodeio.c: Include unistr.h.
42519         (utf8_wctomb): Remove function.
42520         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
42521
42522 2008-11-12  Simon Josefsson  <simon@josefsson.org>
42523
42524         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
42525         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
42526         <bruno@clisp.org>.
42527         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
42528
42529 2008-11-12  Simon Josefsson  <simon@josefsson.org>
42530
42531         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
42532         * doc/gnulib.texi: Add section for warnings.
42533
42534 2008-11-11  Bruno Haible  <bruno@clisp.org>
42535
42536         * lib/sockets.h: Add a comment.
42537
42538 2008-11-11  Karl Berry  <karl@gnu.org>
42539
42540         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
42541
42542 2008-11-11  Eric Blake  <ebb9@byu.net>
42543
42544         fdl.texi: avoid git symlinks
42545         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
42546
42547 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
42548
42549         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
42550
42551 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
42552
42553         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
42554         (gl_WARN_ADD): Substitute $2 if literal.
42555
42556 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
42557
42558         * m4/warning.m4: Remove.
42559
42560 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
42561
42562         * m4/warnings.m4: Almost complete rewrite. :-)
42563
42564 2008-11-10  Simon Josefsson  <simon@josefsson.org>
42565
42566         * modules/warnings: New module.
42567         * m4/warnings.m4: New file.
42568         * MODULES.html.sh: Mention warnings module.
42569         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
42570         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42571
42572 2008-11-10  Eric Blake  <ebb9@byu.net>
42573
42574         fdl.texi: make a symlink to the latest version
42575         * doc/standards.texi: Revert today's earlier change.
42576         * doc/fdl-1.2.texi: Rename from old fdl.texi...
42577         * doc/fdl.texi: ...and replace this with a symlink to the newer
42578         fdl-1.3.texi.
42579
42580 2008-11-10  Bruno Haible  <bruno@clisp.org>
42581
42582         * tests/test-select-fd.c (main): Accept the result file name as fourth
42583         argument.
42584         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
42585         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
42586
42587 2008-11-10  Bruno Haible  <bruno@clisp.org>
42588
42589         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
42590         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
42591         as autoconf-substituted macros.
42592         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
42593         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
42594         gl_NETDB_H_DEFAULTS. Set these variables.
42595         * modules/netdb (Makefile.am): Substitute these variables.
42596
42597 2008-11-10  Eric Blake  <ebb9@byu.net>
42598
42599         standards.texi: include correct file for FDL 1.3
42600         * doc/standards.texi (GNU Free Documentation License): Change
42601         include file to pull in FDL 1.3, not 1.2.
42602
42603         fdl.texi: revert accidental change to license
42604         * doc/fdl.texi: This is FDL 1.2, not 1.3.
42605
42606 2008-11-10  Bruno Haible  <bruno@clisp.org>
42607
42608         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
42609         cross-compiling guesses also when the native compile gives no result.
42610
42611 2008-11-10  Bruno Haible  <bruno@clisp.org>
42612
42613         * lib/spawni.c (__spawni): Force variable into the stack.
42614
42615 2008-11-10  Bruno Haible  <bruno@clisp.org>
42616
42617         Add support for Haiku.
42618         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
42619         glibc and BeOS, but also on Haiku.
42620         * lib/fpurge.c (fpurge): Likewise.
42621         * lib/freadable.c (freadable): Likewise.
42622         * lib/freadahead.c (freadahead): Likewise.
42623         * lib/freading.c (freading): Likewise.
42624         * lib/freadptr.c (freadptr): Likewise.
42625         * lib/freadseek.c (freadptrinc): Likewise.
42626         * lib/fseeko.c (rpl_fseeko): Likewise.
42627         * lib/fseterr.c (fseterr): Likewise.
42628         * lib/fwritable.c (fwritable): Likewise.
42629         * lib/fwriting.c (fwriting): Likewise.
42630         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
42631
42632 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
42633
42634         * lib/config.charset: Treat Haiku like BeOS.
42635
42636 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
42637
42638         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
42639         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
42640
42641 2008-11-08  Bruno Haible  <bruno@clisp.org>
42642
42643         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
42644         AC_CACHE_CHECK.
42645
42646 2008-11-08  Bruno Haible  <bruno@clisp.org>
42647
42648         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
42649
42650 2008-11-08  Bruno Haible  <bruno@clisp.org>
42651
42652         * tests/test-select-fd.c: New file.
42653         * tests/test-select-in.sh: New file.
42654         * tests/test-select-out.sh: New file.
42655         * tests/test-select-stdin.c: New file.
42656         * modules/select-tests (Files): Add the new files.
42657         (Depends-on): Add gettimeofday.
42658         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
42659         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
42660         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
42661
42662 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
42663             Bruno Haible  <bruno@clisp.org>
42664
42665         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
42666
42667 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
42668
42669         * build-aux/pmccabe2html: Added support for C++ source files.
42670
42671 2008-11-05  Ben Pfaff  <blp@gnu.org>
42672
42673         Fix lib/close.c build on Windows.
42674         * modules/close (Files): Add lib/w32sock.h.
42675
42676 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
42677
42678         Accept Bison's NEWS format.
42679         * build-aux/announce-gen (print_news_deltas): Tweak
42680         $re_prefix.
42681
42682 2008-11-04  Bruno Haible  <bruno@clisp.org>
42683
42684         * modules/random_r (Maintainer): Add glibc.
42685
42686 2008-11-04  Simon Josefsson  <simon@josefsson.org>
42687
42688         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
42689         by karl@freefriends.org (Karl Berry).
42690         * doc/alloca.texi: Likewise.
42691         * doc/c-ctype.texi: Likewise.
42692         * doc/c-strcase.texi: Likewise.
42693         * doc/c-strcaseeq.texi: Likewise.
42694         * doc/c-strcasestr.texi: Likewise.
42695         * doc/c-strstr.texi: Likewise.
42696         * doc/c-strtod.texi: Likewise.
42697         * doc/c-strtold.texi: Likewise.
42698         * doc/ctime.texi: Likewise.
42699         * doc/error.texi: Likewise.
42700         * doc/fdl.texi: Likewise.
42701         * doc/gcd.texi: Likewise.
42702         * doc/getdate.texi: Likewise.
42703         * doc/gnulib-intro.texi: Likewise.
42704         * doc/gnulib-tool.texi: Likewise.
42705         * doc/gnulib.texi: Likewise.
42706         * doc/inet_ntoa.texi: Likewise.
42707         * doc/maintain.texi: Likewise.
42708         * doc/make-stds.texi: Likewise.
42709         * doc/quote.texi: Likewise.
42710         * doc/regexprops-generic.texi: Likewise.
42711         * doc/standards.texi: Likewise.
42712         * doc/verify.texi: Likewise.
42713         * doc/visibility.texi: Likewise.
42714         * doc/gnulib.texi (GNU Free Documentation License): Include
42715         fdl-1.3.texi instead of fdl.texi.
42716
42717 2008-11-04  Simon Josefsson  <simon@josefsson.org>
42718
42719         * doc/fdl-1.3.texi: New file, from
42720         <http://www.gnu.org/licenses/fdl-1.3.texi>.
42721         * modules/fdl-1.3: Add.
42722         * MODULES.html.sh: Add fdl-1.3.
42723
42724 2008-11-03  Bruno Haible  <bruno@clisp.org>
42725
42726         Make determination of absolute name of header file work with AIX xlc.
42727         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
42728         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
42729         preprocessing.
42730         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42731         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
42732
42733 2008-11-03  Simon Josefsson  <simon@josefsson.org>
42734
42735         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
42736         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
42737         <ludo@gnu.org>.
42738
42739 2008-11-02  Bruno Haible  <bruno@clisp.org>
42740
42741         Mark 'strpbrk' obsolete.
42742         * modules/strpbrk (Status, Notice): New sections.
42743         * modules/strtok_r (Depends-on): Add strpbrk.
42744
42745 2008-11-02  Bruno Haible  <bruno@clisp.org>
42746
42747         Mark 'strdup' obsolete.
42748         * modules/strdup (Status, Notice): New sections.
42749         * modules/findprog (Depends-on): Add strdup.
42750         * modules/getaddrinfo (Depends-on): Likewise.
42751         * modules/localename (Depends-on): Likewise.
42752         * modules/relocatable-lib (Depends-on): Likewise.
42753         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
42754         * modules/relocatable-prog (Depends-on): Likewise.
42755         * modules/trim (Depends-on): Likewise.
42756         * modules/unictype/gen-ctype (Depends-on): Likewise.
42757         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
42758
42759 2008-11-02  Bruno Haible  <bruno@clisp.org>
42760
42761         Mark 'strcspn' obsolete.
42762         * modules/strcspn (Status, Notice): New sections.
42763
42764 2008-11-02  Bruno Haible  <bruno@clisp.org>
42765
42766         Mark 'rmdir' obsolete.
42767         * modules/rmdir (Status, Notice): New sections.
42768         * modules/clean-temp (Depends-on): Add rmdir.
42769         * modules/openat (Depends-on): Likewise.
42770
42771 2008-11-02  Bruno Haible  <bruno@clisp.org>
42772
42773         Mark 'raise' obsolete.
42774         * modules/raise (Status, Notice): New sections.
42775         (Include): Specify <signal.h>.
42776         * modules/stdio (Depends-on): Add raise.
42777         * modules/write (Depends-on): Likewise.
42778
42779 2008-11-02  Bruno Haible  <bruno@clisp.org>
42780
42781         Mark 'memset' obsolete.
42782         * modules/memset (Status, Notice): New sections.
42783
42784 2008-11-02  Bruno Haible  <bruno@clisp.org>
42785
42786         Mark 'memmove' obsolete.
42787         * modules/memmove (Status, Notice): New sections.
42788         * modules/argp (Depends-on): Add memmove.
42789         * modules/argz (Depends-on): Likewise.
42790         * modules/canonicalize (Depends-on): Likewise.
42791         * modules/canonicalize-lgpl (Depends-on): Likewise.
42792         * modules/fts (Depends-on): Likewise.
42793         * modules/getcwd (Depends-on): Likewise.
42794         * modules/human (Depends-on): Likewise.
42795         * modules/regex (Depends-on): Likewise.
42796         * modules/striconveh (Depends-on): Likewise.
42797         * modules/trim (Depends-on): Likewise.
42798         * modules/unistr/u8-move (Depends-on): Likewise.
42799         * modules/unistr/u16-move (Depends-on): Likewise.
42800         * modules/unistr/u32-move (Depends-on): Likewise.
42801
42802 2008-11-02  Bruno Haible  <bruno@clisp.org>
42803
42804         Mark 'memcpy' obsolete.
42805         * modules/memcpy (Status, Notice): New sections.
42806
42807 2008-11-02  Bruno Haible  <bruno@clisp.org>
42808
42809         Mark 'memcmp' obsolete.
42810         * modules/memcmp (Status, Notice): New sections.
42811         * modules/argmatch (Depends-on): Add memchr.
42812         * modules/backupfile (Depends-on): Likewise.
42813         * modules/c-strcasestr (Depends-on): Likewise.
42814         * modules/crypto/des (Depends-on): Likewise.
42815         * modules/csharpcomp (Depends-on): Likewise.
42816         * modules/fnmatch (Depends-on): Likewise.
42817         * modules/git-merge-changelog (Depends-on): Likewise.
42818         * modules/isnand (Depends-on): Likewise.
42819         * modules/isnand-nolibm (Depends-on): Likewise.
42820         * modules/isnanf (Depends-on): Likewise.
42821         * modules/isnanf-nolibm (Depends-on): Likewise.
42822         * modules/isnanl (Depends-on): Likewise.
42823         * modules/isnanl-nolibm (Depends-on): Likewise.
42824         * modules/mbchar (Depends-on): Likewise.
42825         * modules/memcoll (Depends-on): Likewise.
42826         * modules/quotearg (Depends-on): Likewise.
42827         * modules/regex (Depends-on): Likewise.
42828         * modules/relocatable-prog (Depends-on): Likewise.
42829         * modules/same (Depends-on): Likewise.
42830         * modules/signbit (Depends-on): Likewise.
42831         * modules/strcasestr-simple (Depends-on): Likewise.
42832         * modules/unictype/gen-ctype (Depends-on): Likewise.
42833         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
42834         * modules/uniname/uniname (Depends-on): Likewise.
42835         * modules/unistr/u8-cmp (Depends-on): Likewise.
42836
42837 2008-11-02  Bruno Haible  <bruno@clisp.org>
42838
42839         Mark 'memchr' obsolete.
42840         * modules/memchr (Status, Notice): New sections.
42841         * modules/argp (Depends-on): Add memchr.
42842         * modules/base64 (Depends-on): Likewise.
42843         * modules/c-strcasestr (Depends-on): Likewise.
42844         * modules/chdir-long (Depends-on): Likewise.
42845         * modules/fnmatch (Depends-on): Likewise.
42846         * modules/getsubopt (Depends-on): Likewise.
42847         * modules/git-merge-changelog (Depends-on): Likewise.
42848         * modules/glob (Depends-on): Likewise.
42849         * modules/strcasestr-simple (Depends-on): Likewise.
42850         * modules/strnlen (Depends-on): Likewise.
42851
42852 2008-11-02  Bruno Haible  <bruno@clisp.org>
42853
42854         Mark 'atexit' obsolete.
42855         * modules/atexit (Status, Notice): New sections.
42856         * modules/chdir-long (Depends-on): Add atexit.
42857         * modules/wait-process (Depends-on): Likewise.
42858
42859 2008-11-02  Bruno Haible  <bruno@clisp.org>
42860
42861         * gnulib-tool: New option --with-obsolete.
42862         (func_usage): Document it.
42863         (func_modules_transitive_closure): Drop obsolete dependencies if
42864         incobsolete is not true.
42865         (func_import): Read and save the incobsolete variable to the cache.
42866
42867 2008-11-02  Bruno Haible  <bruno@clisp.org>
42868
42869         * modules/TEMPLATE-EXTENDED: New field 'Status'.
42870         * gnulib-tool: New option --extract-status.
42871         (func_usage): Document it.
42872         (sed_extract_prog): Recognize it.
42873         (func_get_status): New function.
42874
42875 2008-10-30  Simon Josefsson  <simon@josefsson.org>
42876
42877         * modules/sockets (License): Change from LGPL to LGPLv2+.
42878
42879 2008-10-28  Simon Josefsson  <simon@josefsson.org>
42880
42881         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
42882
42883 2008-10-28  Simon Josefsson  <simon@josefsson.org>
42884
42885         * MODULES.html.sh (Support for systems lacking POSIX:2001):
42886         Mention times and sys_times.
42887         * modules/sys_times, modules/sys_times-tests: New modules.
42888         * modules/times, modules/times-tests: Likewise
42889         * m4/sys_times_h.m4: New file.
42890         * lib/sys_times.in.h: Likewise
42891         * lib/times.c: Likewise.
42892         * tests/test-sys_times.c: Likewise.
42893         * tests/test-times.c: Likewise.
42894         * doc/posix-headers/sys_times.texi: Update.
42895         * doc/posix-functions/times.texi: Update.
42896
42897 2008-10-28  Jim Meyering  <meyering@redhat.com>
42898
42899         * modules/tempname (Depends-on): Add lstat.
42900
42901         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
42902
42903 2008-10-28  Simon Josefsson  <simon@josefsson.org>
42904
42905         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
42906         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
42907         using idiom used elsewhere in gnulib.
42908
42909 2008-10-27  Jim Meyering  <meyering@redhat.com>
42910
42911         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
42912
42913 2008-10-27  Simon Josefsson  <simon@josefsson.org>
42914
42915         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
42916         TESTS_ENVIRONMENT, for shell scripts that needs to call built
42917         programs.
42918         * tests/test-argp-2.sh: Use $EXEEXT when needed.
42919
42920 2008-10-27  Simon Josefsson  <simon@josefsson.org>
42921
42922         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
42923
42924 2008-10-27  Bruno Haible  <bruno@clisp.org>
42925
42926         * tests/test-lstat.c: Include <stdio.h>.
42927
42928 2008-10-27  Simon Josefsson  <simon@josefsson.org>
42929
42930         * modules/lstat-tests: New module.
42931         * tests/test-lstat.c: New file.
42932
42933 2008-10-26  Jim Meyering  <meyering@redhat.com>
42934
42935         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
42936
42937 2008-10-26  Simon Josefsson  <simon@josefsson.org>
42938             Bruno Haible  <bruno@clisp.org>
42939
42940         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
42941         * modules/configmake (Include): Add a note that the include must come
42942         after all system headers.
42943         * lib/javaversion.c: Include configmake.h after all other includes.
42944
42945 2008-10-26  Bruno Haible  <bruno@clisp.org>
42946
42947         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
42948         HAVE_STRUCT_RANDOM_DATA to 1.
42949         (gl_STDLIB_H): Simplify.
42950
42951 2008-10-26  Simon Josefsson  <simon@josefsson.org>
42952
42953         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
42954         substitute HAVE_STRUCT_RANDOM_DATA.
42955         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
42956         random_data.
42957         * modules/stdlib (Makefile.am): Substitute
42958         HAVE_STRUCT_RANDOM_DATA.
42959
42960 2008-10-26  Simon Josefsson  <simon@josefsson.org>
42961
42962         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
42963         * doc/gnulib-intro.texi (Copyright): Likewise.
42964
42965 2008-10-26  Simon Josefsson  <simon@josefsson.org>
42966
42967         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
42968         findings.
42969
42970 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
42971             Bruno Haible  <bruno@clisp.org>
42972
42973         * lib/unistd.in.h: Include <winsock2.h>.
42974         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
42975         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
42976         Provide dummy declarations.
42977         (gethostname): Override.
42978         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
42979         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
42980         gl_PREREQ_SYS_H_WINSOCK2.
42981         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
42982         * doc/posix-functions/gethostname.texi: More details.
42983
42984 2008-10-25  Bruno Haible  <bruno@clisp.org>
42985
42986         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
42987         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
42988         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
42989
42990         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
42991         here ...
42992         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
42993         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
42994         gl_UNISTD_H_DEFAULTS.
42995
42996 2008-10-25  Eric Blake  <ebb9@byu.net>
42997
42998         signbit: avoid spurious compiler failure
42999         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
43000         declarations inside function.
43001
43002 2008-10-24  Simon Josefsson  <simon@josefsson.org>
43003             Bruno Haible  <bruno@clisp.org>
43004
43005         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
43006         * modules/random_r (Depends-on): Add stdint.
43007
43008 2008-10-24  Bruno Haible  <bruno@clisp.org>
43009
43010         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
43011         Eggert.
43012         * modules/strerror (License): Likewise.
43013
43014 2008-10-24  Jim Meyering  <meyering@redhat.com>
43015
43016         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
43017         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
43018
43019 2008-10-24  Eric Blake  <ebb9@byu.net>
43020
43021         getgroups: fix compilation when getgroups is available
43022         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
43023         but with <config.h> override of getgroups disabled.
43024
43025 2008-10-24  Simon Josefsson  <simon@josefsson.org>
43026
43027         * doc/gnulib.texi (Header files): Add note about C++ problems.
43028         Explained by Bruno Haible <bruno@clisp.org>.
43029
43030 2008-10-23  Bruno Haible  <bruno@clisp.org>
43031
43032         Define a dummy SA_NODEFER macro on Interix.
43033         * lib/signal.in.h (SA_NODEFER): Define fallback.
43034         Reported by Aleksey Cheusov <cheusov@tut.by> via
43035         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
43036
43037 2008-10-23  Bruno Haible  <bruno@clisp.org>
43038
43039         * modules/freadahead (License): Change to LGPLv2+.
43040         Suggested by Simon Josefsson.
43041
43042 2008-10-23  Jim Meyering  <meyering@redhat.com>
43043
43044         random_r: new module
43045         * modules/random_r: New file.
43046         * m4/random_r.m4: New file.
43047         * lib/random_r.c: New file, from glibc.
43048         * modules/random_r-tests: New file.
43049         * tests/test-random_r.c: New file.
43050         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
43051          Declare.
43052         (RAND_MAX): Define.
43053         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
43054         * modules/stdlib: Substitute them, too.
43055         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
43056         * doc/glibc-functions/initstate_r.texi: Mention the new module.
43057         * doc/glibc-functions/random_r.texi: Likewise.
43058         * doc/glibc-functions/setstate_r.texi: Likewise.
43059         * doc/glibc-functions/srandom_r.texi: Likewise.
43060         * config/srclist.txt: Mention it.
43061
43062 2008-10-23  David Lutterkort  <lutter@redhat.com>
43063
43064         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
43065         link requirement
43066
43067 2008-10-23  Jim Meyering  <meyering@redhat.com>
43068
43069         selinux-h: mark parameters of stub functions as intentionally unused
43070         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
43071         * lib/se-context.in.h: Likewise.
43072
43073 2008-10-22  Simon Josefsson  <simon@josefsson.org>
43074
43075         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
43076
43077 2008-10-22  Simon Josefsson  <simon@josefsson.org>
43078
43079         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
43080
43081 2008-10-22  Eric Blake  <ebb9@byu.net>
43082
43083         glthread/thread: avoid compiler warning
43084         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
43085         Add unreachable abort to silence compiler.
43086
43087 2008-10-22  Eric Blake  <ebb9@byu.net>
43088
43089         netdb: also supply struct addrinfo for cygwin 1.5.x
43090         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
43091         older cygwin.
43092         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
43093         cygwin.
43094         * doc/posix-headers/netdb.texi (netdb.h): Document this.
43095
43096 2008-10-22  Bruno Haible  <bruno@clisp.org>
43097
43098         * users.txt: Update entry about pspp.
43099
43100 2008-10-21  Bruno Haible  <bruno@clisp.org>
43101
43102         Simplification.
43103         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
43104         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
43105
43106         Simplification.
43107         * lib/ioctl.c (ioctl): Don't undefine.
43108         * lib/socket.c (socket): Don't undefine.
43109
43110         Remove unused module indicator macros.
43111         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
43112         GNULIB_$1 as a C macro.
43113
43114         * doc/posix-functions/close.texi: Undo last change.
43115         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
43116         Windows platforms.
43117
43118 2008-10-21  Bruno Haible  <bruno@clisp.org>
43119
43120         Add gethostname() declaration to <unistd.h>.
43121         * lib/unistd.in.h (gethostname): New declaration.
43122         * lib/gethostname.c: Include <unistd.h>.
43123         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
43124         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
43125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
43126         and HAVE_GETHOSTNAME.
43127         * modules/gethostname (Depends-on): Add unistd.
43128         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43129         (Include): Specify <unistd.h>.
43130         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
43131         HAVE_GETHOSTNAME.
43132         * tests/test-gethostname.c: Include <unistd.h> first.
43133
43134 2008-10-21  Bruno Haible  <bruno@clisp.org>
43135
43136         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
43137         * modules/select-tests (Depends-on): Likewise.
43138         Reported by Simon Josefsson.
43139
43140 2008-10-21  Simon Josefsson  <simon@josefsson.org>
43141
43142         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
43143         * lib/accept.c: New file, based on winsock.c.
43144         * lib/bind.c: New file, based on winsock.c.
43145         * lib/connect.c: New file, based on winsock.c.
43146         * lib/getpeername.c: New file, based on winsock.c.
43147         * lib/getsockname.c: New file, based on winsock.c.
43148         * lib/getsockopt.c: New file, based on winsock.c.
43149         * lib/ioctl.c: New file, based on winsock.c.
43150         * lib/listen.c: New file, based on winsock.c.
43151         * lib/recv.c: New file, based on winsock.c.
43152         * lib/recvfrom.c: New file, based on winsock.c.
43153         * lib/send.c: New file, based on winsock.c.
43154         * lib/sendto.c: New file, based on winsock.c.
43155         * lib/setsockopt.c: New file, based on winsock.c.
43156         * lib/shutdown.c: New file, based on winsock.c.
43157         * lib/socket.c: New file, based on winsock.c.
43158         * lib/w32sock.h: New file, based on winsock.c.
43159         * lib/winsock.c: Remove file.
43160         * modules/accept: Likewise.
43161         * modules/bind: Likewise.
43162         * modules/connect: Likewise.
43163         * modules/getpeername: Likewise.
43164         * modules/getsockname: Likewise.
43165         * modules/getsockopt: Likewise.
43166         * modules/ioctl: Likewise.
43167         * modules/listen: Likewise.
43168         * modules/recv: Likewise.
43169         * modules/recvfrom: Likewise.
43170         * modules/send: Likewise.
43171         * modules/sendto: Likewise.
43172         * modules/setsockopt: Likewise.
43173         * modules/shutdown: Likewise.
43174         * modules/socket: Use socket.c instead of winsock.c.
43175         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
43176         * doc/posix-functions/accept.texi: Doc fix.
43177         * doc/posix-functions/bind.texi: Doc fix.
43178         * doc/posix-functions/close.texi: Doc fix.
43179         * doc/posix-functions/connect.texi: Doc fix.
43180         * doc/posix-functions/getpeername.texi: Doc fix.
43181         * doc/posix-functions/getsockname.texi: Doc fix.
43182         * doc/posix-functions/getsockopt.texi: Doc fix.
43183         * doc/posix-functions/ioctl.texi: Doc fix.
43184         * doc/posix-functions/listen.texi: Doc fix.
43185         * doc/posix-functions/recv.texi: Doc fix.
43186         * doc/posix-functions/recvfrom.texi: Doc fix.
43187         * doc/posix-functions/send.texi: Doc fix.
43188         * doc/posix-functions/sendto.texi: Doc fix.
43189         * doc/posix-functions/setsockopt.texi: Doc fix.
43190         * doc/posix-functions/shutdown.texi: Doc fix.
43191         * doc/posix-functions/socket.texi: Doc fix.
43192
43193 2008-10-20  Bruno Haible  <bruno@clisp.org>
43194
43195         Take into account the role of SIGABRT_COMPAT on Windows 2008.
43196         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
43197         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
43198         as an alias for SIGABRT.
43199         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
43200         (sigaction): Map it to SIGABRT.
43201         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
43202
43203 2008-10-20  Bruno Haible  <bruno@clisp.org>
43204
43205         * lib/fts.c: Don't include lstat.h.
43206         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
43207
43208         Move the lstat() declaration to <sys/stat.h>.
43209         * lib/lstat.h: Remove file.
43210         * lib/sys_stat.in.h: Add special invocation convention.
43211         (lstat): New declaration.
43212         * lib/lstat.c (orig_lstat): New function.
43213         (rpl_lstat): Use orig_lstat instead of lstat.
43214         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
43215         AC_C_INLINE. Set REPLACE_LSTAT.
43216         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
43217         and REPLACE_LSTAT.
43218         * modules/lstat (Files): Remove lib/lstat.h.
43219         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
43220         (Include): Specify <sys/stat.h> instead of lstat.h.
43221         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
43222         REPLACE_LSTAT.
43223         * NEWS: Mention the change.
43224
43225 2008-10-20  Bruno Haible  <bruno@clisp.org>
43226
43227         * modules/posix_spawn-tests: New file.
43228         * tests/test-posix_spawn3.c: New file.
43229
43230 2008-10-20  Bruno Haible  <bruno@clisp.org>
43231
43232         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
43233         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
43234         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
43235         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
43236         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
43237
43238 2008-10-20  Bruno Haible  <bruno@clisp.org>
43239
43240         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
43241         of posix_spawn on AIX 5.3.
43242
43243 2008-10-20  Bruno Haible  <bruno@clisp.org>
43244
43245         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
43246
43247 2008-10-20  Bruno Haible  <bruno@clisp.org>
43248
43249         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
43250         of AC_LANG_PROGRAM.
43251
43252 2008-10-20  Simon Josefsson  <simon@josefsson.org>
43253
43254         * lib/netdb.in.h: Don't define GNU specific constants until they
43255         are supported or needed.  Reported by Bruno Haible
43256         <bruno@clisp.org>.
43257
43258 2008-10-20  Simon Josefsson  <simon@josefsson.org>
43259
43260         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
43261
43262 2008-10-20  Simon Josefsson  <simon@josefsson.org>
43263
43264         * lib/getaddrinfo.h: Remove file.
43265         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
43266         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
43267         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
43268         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
43269         * modules/netdb: Substitute GNULIB_GETADDRINFO.
43270         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
43271         * tests/test-getaddrinfo.c: Likewise.
43272         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
43273         * NEWS: Mention change.
43274
43275 2008-10-19  Bruno Haible  <bruno@clisp.org>
43276
43277         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
43278
43279 2008-10-19  Bruno Haible  <bruno@clisp.org>
43280
43281         * lib/wait-process.c: Include simply <sys/wait.h>.
43282         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
43283         WIFSTOPPED): Remove fallback definitions.
43284         * modules/wait-process (Depends-on): Add sys_wait.
43285
43286         New module 'sys_wait'.
43287         * modules/sys_wait: New file.
43288         * lib/sys_wait.in.h: New file, partially copied from
43289         lib/wait-process.c.
43290         * m4/sys_wait_h.m4: New file.
43291         * doc/posix-headers/sys_wait.texi: Mention the new module.
43292
43293 2008-10-19  Bruno Haible  <bruno@clisp.org>
43294
43295         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
43296
43297 2008-10-19  Bruno Haible  <bruno@clisp.org>
43298
43299         Assume that waitpid() fills an 'int' status, not a 'union wait'.
43300         * lib/wait-process.c (WAIT_T): Remove type.
43301         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
43302         (wait_subprocess): Update.
43303
43304 2008-10-19  Bruno Haible  <bruno@clisp.org>
43305
43306         New module 'atoll'.
43307         * modules/atoll: New file.
43308         * lib/stdlib.in.h (atoll): New declaration.
43309         * lib/atoll.c: New file, from glibc with modifications.
43310         * m4/atoll.m4: New file.
43311         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
43312         HAVE_ATOLL.
43313         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
43314         * doc/posix-functions/atoll.texi: Mention the new module.
43315
43316 2008-10-19  Bruno Haible  <bruno@clisp.org>
43317
43318         Add strtoull() declaration to <stdlib.h>.
43319         * lib/stdlib.in.h (strtoull): New declaration.
43320         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
43321         Set HAVE_STRTOULL.
43322         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
43323         HAVE_STRTOULL.
43324         * modules/strtoull (Depends-on): Add stdlib.
43325         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43326         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
43327         HAVE_STRTOULL.
43328
43329 2008-10-19  Bruno Haible  <bruno@clisp.org>
43330
43331         Add strtoll() declaration to <stdlib.h>.
43332         * lib/stdlib.in.h (strtoll): New declaration.
43333         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
43334         Set HAVE_STRTOLL.
43335         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
43336         HAVE_STRTOLL.
43337         * modules/strtoll (Depends-on): Add stdlib.
43338         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43339         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
43340
43341 2008-10-19  Bruno Haible  <bruno@clisp.org>
43342
43343         * modules/bcopy (Depends-on): Add strings.
43344         (Include): Specify <strings.h>.
43345
43346 2008-10-19  Bruno Haible  <bruno@clisp.org>
43347
43348         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
43349
43350 2008-10-19  Bruno Haible  <bruno@clisp.org>
43351
43352         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
43353         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
43354         mingw.
43355
43356 2008-10-19  Bruno Haible  <bruno@clisp.org>
43357
43358         * lib/atanl.c: Don't include isnanl.h.
43359         * lib/cosl.c: Likewise.
43360         * lib/ldexpl.c: Likewise.
43361         * lib/logl.c: Likewise.
43362         * lib/sinl.c: Likewise.
43363         * lib/sqrtl.c: Likewise.
43364         * lib/tanl.c: Likewise.
43365
43366         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
43367         * lib/isnanf.h: Remove file.
43368         * lib/isnand.h: Remove file.
43369         * lib/isnanl.h: Remove file.
43370         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
43371         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
43372         macros.
43373         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
43374         HAVE_ISNANF, don't define it as a C macro.
43375         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
43376         HAVE_ISNAND, don't define it as a C macro.
43377         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
43378         HAVE_ISNANL, don't define it as a C macro.
43379         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
43380         HAVE_ISNAN[FDL].
43381         * modules/isnanf (Files): Remove lib/isnanf.h.
43382         (Depends-on): Add math.
43383         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43384         (Include): Specify <math.h> instead of isnanf.h.
43385         * modules/isnand (Files): Remove lib/isnand.h.
43386         (Depends-on): Add math.
43387         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43388         (Include): Specify <math.h> instead of isnand.h.
43389         * modules/isnanl (Files): Remove lib/isnanl.h.
43390         (Depends-on): Add math.
43391         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43392         (Include): Specify <math.h> instead of isnanl.h.
43393         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
43394         HAVE_ISNAN[FDL].
43395         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
43396         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
43397         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
43398         * NEWS: Mention the change.
43399
43400 2008-10-18  Bruno Haible  <bruno@clisp.org>
43401
43402         Add getusershell(), setusershell(), endusershell() declarations to
43403         <unistd.h>.
43404         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
43405         declarations.
43406         * lib/getusershell.c: Include unistd.h.
43407         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
43408         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
43409         HAVE_GETUSERSHELL.
43410         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
43411         and HAVE_GETUSERSHELL.
43412         * modules/getusershell (Depends-on): Add unistd, extensions.
43413         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43414         (Include): Specify <unistd.h>.
43415         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
43416         HAVE_GETUSERSHELL.
43417
43418 2008-10-18  Bruno Haible  <bruno@clisp.org>
43419
43420         Add a getloadavg() declaration to <stdlib.h>.
43421         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
43422         getloadavg declaration.
43423         (getloadavg): New declaration.
43424         * lib/getloadavg.c: Include <stdlib.h> first.
43425         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
43426         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
43427         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
43428         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
43429         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
43430         * modules/getloadavg (Depends-on): Add stdlib, extensions.
43431         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43432         (Include): Specify <stdlib.h>.
43433         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
43434         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
43435
43436 2008-10-18  Bruno Haible  <bruno@clisp.org>
43437
43438         * lib/dirchownmod.c: Don't include lchmod.h.
43439
43440         Move the lchmod() declaration to <sys/stat.h>.
43441         * lib/lchmod.h: Remove file.
43442         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
43443         (lchmod): New declaration, moved here from lib/lchown.h.
43444         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
43445         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
43446         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
43447         and HAVE_LCHMOD.
43448         * modules/lchmod (Files): Remove lib/lchmod.h.
43449         (Depends-on): Add sys_stat, extensions.
43450         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
43451         (Include): Specify <sys/stat.h> instead of lchmod.h.
43452         * modules/sys_stat (Depends-on): Add link-warning.
43453         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
43454         definition of GL_LINK_WARNING.
43455         * NEWS: Mention the change.
43456
43457 2008-10-18  Bruno Haible  <bruno@clisp.org>
43458
43459         * lib/fchdir.c: Don't include dirfd.h.
43460         * lib/fts.c: Likewise.
43461         * lib/getcwd.c: Likewise.
43462         * lib/glob.c: Likewise.
43463
43464         Move the dirfd() declaration to <dirent.h>.
43465         * lib/dirfd.h: Remove file.
43466         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
43467         (dirfd): New declaration.
43468         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
43469         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
43470         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
43471         HAVE_DECL_DIRFD.
43472         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
43473         HAVE_DECL_DIRFD.
43474         * modules/dirfd (Files): Remove lib/dirfd.h.
43475         (Depends-on): Add dirent, extensions.
43476         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
43477         (Include): Specify <dirent.h> instead of dirfd.h.
43478         * modules/dirent (Depends-on): Add link-warning.
43479         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
43480         definition of GL_LINK_WARNING.
43481         * NEWS: Mention the change.
43482
43483 2008-10-18  Bruno Haible  <bruno@clisp.org>
43484
43485         Move the euidaccess() declaration to <unistd.h>.
43486         * lib/euidaccess.h: Remove file.
43487         * lib/unistd.in.h (euidaccess): New declaration.
43488         * lib/euidaccess.c: Don't include euidaccess.h.
43489         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
43490         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
43491         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
43492         and HAVE_EUIDACCESS.
43493         * modules/euidaccess (Files): Remove lib/euidaccess.h.
43494         (Depends-on): Add unistd.
43495         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43496         (Include): Specify <unistd.h> instead of euidaccess.h.
43497         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
43498         HAVE_EUIDACCESS.
43499         * NEWS: Mention the change.
43500
43501 2008-10-18  Bruno Haible  <bruno@clisp.org>
43502
43503         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
43504
43505         Move the getdomainname() declaration to <unistd.h>.
43506         * lib/getdomainname.h: Remove file.
43507         * lib/unistd.in.h (getdomainname): New declaration.
43508         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
43509         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
43510         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
43511         HAVE_GETDOMAINNAME.
43512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43513         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
43514         * modules/getdomainname (Files): Remove lib/getdomainname.h.
43515         (Depends-on): Add unistd, extensions.
43516         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43517         (Includes): Specify <unistd.h> instead of getdomainname.h.
43518         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
43519         HAVE_GETDOMAINNAME.
43520         * NEWS: Mention the change.
43521
43522 2008-10-18  Bruno Haible  <bruno@clisp.org>
43523
43524         * modules/dirent: New file.
43525         * m4/dirent_h.m4: New file.
43526         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
43527         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
43528         * modules/fchdir (Files): Remove lib/dirent.in.h.
43529         (Depends-on): Add dirent.
43530         (Makefile.am): Move rules to modules/dirent.
43531         * doc/posix-headers/dirent.texi: Mention the new module.
43532
43533 2008-10-18  Bruno Haible  <bruno@clisp.org>
43534
43535         Avoid -Wunused-parameter warnings in public gnulib header files.
43536         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
43537         macro.
43538         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
43539
43540 2008-10-18  Bruno Haible  <bruno@clisp.org>
43541
43542         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
43543         * doc/glibc-functions/error.texi: Mention the module 'error'.
43544         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
43545         * doc/glibc-functions/getdomainname.texi: Mention the module
43546         'getdomainname'.
43547         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
43548         * doc/glibc-functions/getpagesize.texi: Mention the module
43549         'getpagesize'.
43550         * doc/glibc-functions/getusershell.texi: Mention the module
43551         'getusershell'.
43552         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
43553         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
43554         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
43555         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
43556         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
43557         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
43558         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
43559         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
43560         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
43561         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
43562         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
43563         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
43564         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
43565         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
43566
43567 2008-10-17  Bruno Haible  <bruno@clisp.org>
43568
43569         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
43570         HP-UX and IRIX, use -0.0L.
43571         * tests/test-ceill.c (minus_zero): Likewise.
43572         * tests/test-floorl.c (minus_zero): Likewise.
43573         * tests/test-frexpl.c (minus_zero): Likewise.
43574         * tests/test-isnan.c (minus_zerol): Likewise.
43575         * tests/test-isnanl.h (minus_zero): Likewise.
43576         * tests/test-ldexpl.c (minus_zero): Likewise.
43577         * tests/test-roundl.c (minus_zero): Likewise.
43578         * tests/test-signbit.c (minus_zerol): Likewise.
43579         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
43580         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
43581         * tests/test-truncl.c (minus_zero): Likewise.
43582         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
43583         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
43584         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
43585         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
43586
43587 2008-10-17  Bruno Haible  <bruno@clisp.org>
43588
43589         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
43590         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
43591         that it gets activated only for gcc >= 3.0.
43592         * lib/dirent.in.h: Likewise.
43593         * lib/errno.in.h: Likewise.
43594         * lib/fcntl.in.h: Likewise.
43595         * lib/float.in.h: Likewise.
43596         * lib/iconv.in.h: Likewise.
43597         * lib/inttypes.in.h: Likewise.
43598         * lib/locale.in.h: Likewise.
43599         * lib/math.in.h: Likewise.
43600         * lib/netdb.in.h: Likewise.
43601         * lib/netinet_in.in.h: Likewise.
43602         * lib/search.in.h: Likewise.
43603         * lib/signal.in.h: Likewise.
43604         * lib/spawn.in.h: Likewise.
43605         * lib/stdarg.in.h: Likewise.
43606         * lib/stdint.in.h: Likewise.
43607         * lib/stdio.in.h: Likewise.
43608         * lib/stdlib.in.h: Likewise.
43609         * lib/string.in.h: Likewise.
43610         * lib/strings.in.h: Likewise.
43611         * lib/sys_file.in.h: Likewise.
43612         * lib/sys_ioctl.in.h: Likewise.
43613         * lib/sys_select.in.h: Likewise.
43614         * lib/sys_socket.in.h: Likewise.
43615         * lib/sys_stat.in.h: Likewise.
43616         * lib/sys_time.in.h: Likewise.
43617         * lib/sysexits.in.h: Likewise.
43618         * lib/time.in.h: Likewise.
43619         * lib/unistd.in.h: Likewise.
43620         * lib/wchar.in.h: Likewise.
43621         * lib/wctype.in.h: Likewise.
43622         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43623
43624 2008-10-17  Jim Meyering  <meyering@redhat.com>
43625
43626         ignore-value: don't depend on inline module
43627         * modules/ignore-value (Depends-on): Remove 'inline'.
43628         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
43629         Suggestion from Bruno Haible.
43630
43631 2008-10-17  Bruno Haible  <bruno@clisp.org>
43632
43633         New implementation of condition variables for Win32.
43634         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
43635         (gl_linked_waitqueue_t): New type.
43636         (gl_cond_t): Use it.
43637         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
43638         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
43639         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
43640         (glthread_cond_init_func, glthread_cond_wait_func,
43641         glthread_cond_timedwait_func, glthread_cond_signal_func,
43642         glthread_cond_broadcast_func, glthread_cond_destroy_func):
43643         Reimplemented on the basis of gl_linked_waitqueue_t.
43644         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
43645         gl_waitqueue_t.
43646         (gl_rwlock_t): Update.
43647         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
43648
43649 2008-10-17  Simon Josefsson  <simon@josefsson.org>
43650
43651         * modules/recvfrom (Depends-on): Add dependency on getpeername.
43652         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
43653
43654 2008-10-17  Jim Meyering  <meyering@redhat.com>
43655
43656         ignore-value: new module
43657         * modules/ignore-value: New file.
43658         * lib/ignore-value.h: New file.
43659         * MODULES.html.sh (Compiler warning management): New section,
43660         just for this module.  More to come.
43661
43662 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
43663
43664         open-safer.c: avoid 'signed and unsigned in conditional...' warning
43665         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
43666         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
43667
43668 2008-10-16  Jim Meyering  <meyering@redhat.com>
43669
43670         openat-die.c: avoid 'no previous prototype' warning
43671         * lib/openat-die.c: Include "openat.h".
43672         Reported by Reuben Thomas <rrt@sc3d.org>.
43673
43674 2008-10-16  Simon Josefsson  <simon@josefsson.org>
43675
43676         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
43677         * lib/netdb.in.h: Fix typo.
43678         Reported by Bruno Haible  <bruno@clisp.org>
43679
43680         * lib/netdb.in.h: Include sys/socket.h for platforms without
43681         netdb.h, to get structures like hostent on MinGW.
43682         * modules/netdb (Depends-on): Add sys_socket.
43683
43684 2008-10-15  Simon Josefsson  <simon@josefsson.org>
43685
43686         * modules/netdb, modules/netdb-tests: New file.
43687         * m4/netdb_h.m4: New file.
43688         * lib/netdb.in.h: Add, currently just an empty file pending
43689         definitions.
43690         * tests/test-netdb.c: New file.
43691         * doc/posix-headers/netdb.texi: Mention that we replace it if
43692         needed.
43693         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43694         netdb.
43695
43696 2008-10-15  Simon Josefsson  <simon@josefsson.org>
43697
43698         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
43699         with code.
43700
43701 2008-10-13  Bruno Haible  <bruno@clisp.org>
43702
43703         * lib/glthread/cond.c (glthread_cond_wait_func,
43704         glthread_cond_timedwait_func): Add a comment.
43705
43706 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43707
43708         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
43709         * tests/test-select.c: Likewise,
43710
43711 2008-10-13  Bruno Haible  <bruno@clisp.org>
43712
43713         * lib/glthread/cond.c (glthread_cond_wait_func,
43714         glthread_cond_timedwait_func): Fix variable name.
43715         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
43716
43717 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
43718
43719         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
43720         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
43721         struct sockaddr.sa_len.
43722         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
43723
43724 2008-10-13  Simon Josefsson  <simon@josefsson.org>
43725
43726         * build-aux/pmccabe2html: Add css and css_url parameters.
43727
43728 2008-10-12  Bruno Haible  <bruno@clisp.org>
43729
43730         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
43731         calling aclx_get.
43732         Reported by Rainer Tammer <tammer@tammer.net>.
43733
43734 2008-10-12  Bruno Haible  <bruno@clisp.org>
43735
43736         Use msvcrt aware primitives for creation/termination of Win32 threads.
43737         * lib/glthread/thread.c: Include <process.h>.
43738         (glthread_create_func): Use _beginthreadex instead of CreateThread.
43739         (wrapper_func): Update signature.
43740         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
43741
43742 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43743             Bruno Haible  <bruno@clisp.org>
43744
43745         Provide a Win32 implementation of the 'cond' module.
43746         * lib/glthread/cond.h [USE_WIN32]: New implementation.
43747         * lib/glthread/cond.c (glthread_cond_init_func,
43748         glthread_cond_wait_func, glthread_cond_timedwait_func,
43749         glthread_cond_signal_func, glthread_cond_broadcast_func,
43750         glthread_cond_destroy_func) [USE_WIN32]: New functions.
43751         * modules/cond (Dependencies): Add gettimeofday.
43752
43753 2008-10-11  Bruno Haible  <bruno@clisp.org>
43754
43755         Make sleep work on older versions of mingw.
43756         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
43757         only whether it exists.
43758         * doc/posix-functions/sleep.texi: Mention the problem with older
43759         versions of mingw.
43760
43761 2008-10-11  Bruno Haible  <bruno@clisp.org>
43762
43763         New module 'shutdown'.
43764         * modules/shutdown: New file.
43765         * lib/sys_socket.in.h (shutdown): New declaration.
43766         * lib/winsock.c (shutdown): New function.
43767         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
43768         GNULIB_SHUTDOWN.
43769         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
43770         * doc/posix-functions/shutdown.texi: Document the new module.
43771
43772 2008-10-11  Jim Meyering  <meyering@redhat.com>
43773
43774         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
43775
43776 2008-10-11  Bruno Haible  <bruno@clisp.org>
43777
43778         New module 'fclose'.
43779         * modules/fclose: New file.
43780         * lib/stdio.in.h (fclose): New declaration.
43781         * lib/fclose.c: New file.
43782         * m4/fclose.m4: New file.
43783         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
43784         REPLACE_FCLOSE.
43785         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
43786         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
43787         REPLACE_FCLOSE.
43788         * modules/close (Depends-on): fclose.
43789         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
43790
43791 2008-10-11  Bruno Haible  <bruno@clisp.org>
43792
43793         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
43794         set errno and don't call _close.
43795
43796 2008-10-10  Bruno Haible  <bruno@clisp.org>
43797
43798         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
43799         ACL, not afterwards. Fixes test failure on Cygwin.
43800
43801 2008-10-09  Ben Pfaff  <blp@gnu.org>
43802
43803         * build-aux/announce-gen: Fix gnulib version related part of usage
43804         message.  Die with a useful error message if no tarballs are
43805         found.
43806
43807 2008-10-10  Jim Meyering  <meyering@redhat.com>
43808
43809         bootstrap: use git's --depth=N option only if it's supported
43810         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
43811         recognize the --depth option.  Reported by Pádraig Brady.
43812
43813 2008-10-09  Bruno Haible  <bruno@clisp.org>
43814
43815         New module 'ioctl'.
43816         * modules/ioctl: New file.
43817         * lib/sys_socket.in.h (ioctl): Remove declaration.
43818         * lib/winsock.c: Include <sys/ioctl.h>.
43819         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
43820         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
43821         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
43822         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
43823         * doc/posix-functions/ioctl.texi: Mention the new module.
43824
43825 2008-10-09  Bruno Haible  <bruno@clisp.org>
43826
43827         New module 'sys_ioctl'.
43828         * lib/sys_ioctl.in.h: New file.
43829         * m4/sys_ioctl_h.m4: New file.
43830         * modules/sys_ioctl: New file.
43831         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
43832
43833 2008-10-09  Bruno Haible  <bruno@clisp.org>
43834
43835         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
43836         * lib/winsock.c: Include <stdarg.h>.
43837         (rpl_ioctl): Change to second argument 'int' and then varargs.
43838
43839 2008-10-09  Bruno Haible  <bruno@clisp.org>
43840
43841         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
43842         when the sys_socket module is present and the system has <winsock2.h>.
43843
43844 2008-10-09  Bruno Haible  <bruno@clisp.org>
43845
43846         * doc/posix-functions/close.texi: Mention module 'close' instead of
43847         module 'sys_socket'.
43848
43849 2008-10-09  Bruno Haible  <bruno@clisp.org>
43850
43851         * doc/glibc-headers/sys_ioctl.texi: New file.
43852         * doc/gnulib.texi: Include it.
43853
43854 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43855             Bruno Haible  <bruno@clisp.org>
43856
43857         Combine the two replacements of 'close'.
43858         * lib/sys_socket.in.h (close): Define to a reminder to include
43859         <unistd.h>.
43860         (_gl_close_fd_maybe_socket): New declaration.
43861         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
43862         * lib/winsock.c (close): Remove undefinition.
43863         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
43864         needed for the gnulib module 'close'.
43865         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
43866         define to an error symbol or to a warning, if suitable.
43867         * lib/close.c: Include <sys/socket.h>.
43868         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
43869         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
43870         UNISTD_H_HAVE_WINSOCK2_H.
43871         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
43872         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43873         UNISTD_H_HAVE_WINSOCK2_H.
43874         * modules/sys_socket (Files): Add m4/unistd_h.m4.
43875         (configure.ac): Set a module indicator.
43876         (Makefile.am): Substitute GNULIB_CLOSE.
43877         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
43878         * modules/poll-tests (Depends-on): Add close.
43879         * modules/select-tests (Depends-on): Likewise.
43880
43881 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43882             Bruno Haible  <bruno@clisp.org>
43883
43884         New module 'close'.
43885         * modules/close: New file.
43886         * lib/unistd.in.h (close): Move declaration out of the
43887         FCHDIR_REPLACEMENT scope.
43888         (_gl_unregister_fd): New declaration.
43889         * lib/close.c: New file.
43890         * lib/fchdir.c (rpl_close): Remove function.
43891         * m4/close.m4: New file.
43892         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
43893         close.
43894         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
43895         REPLACE_CLOSE.
43896         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
43897         REPLACE_CLOSE.
43898         * modules/fchdir (Depends-on): Add close.
43899
43900 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43901             Bruno Haible  <bruno@clisp.org>
43902
43903         * lib/fcntl.in.h (open): Simplify conditionals.
43904         (_gl_register_fd): New declaration.
43905         * lib/fchdir.c (rpl_open): Remove function.
43906         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
43907         also.
43908         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
43909         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
43910         open.
43911
43912 2008-10-09  Jim Meyering  <meyering@redhat.com>
43913
43914         GNUmakefile: use the more name-space-friendly "_version"
43915         * top/GNUmakefile (_dummy): Update.
43916         (_version): Rename from "version".
43917
43918 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43919             Bruno Haible  <bruno@clisp.org>
43920
43921         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
43922         rpl_close.
43923         (_gl_register_fd): New function, extracted from rpl_open.
43924         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
43925         (rpl_open, rpl_opendir): Use _gl_register_fd.
43926
43927 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
43928
43929         Fix organization of 'open' replacement.
43930         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
43931         (gl_FUNC_OPEN): Use it.
43932         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
43933
43934 2008-10-08  Bruno Haible  <bruno@clisp.org>
43935
43936         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
43937
43938 2008-10-08  Simon Josefsson  <simon@josefsson.org>
43939
43940         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
43941         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
43942         listen).
43943
43944 2008-10-08  Eric Blake  <ebb9@byu.net>
43945
43946         GNUmakefile: add 'make version' target
43947         * top/GNUmakefile (_curr-ver): Split version update rules...
43948         (version): ...into a target.
43949
43950 2008-10-07  Bruno Haible  <bruno@clisp.org>
43951
43952         Use a more portable replacement expression for -0.0L.
43953         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
43954         instead of -0.0L. Fix m4 quotation.
43955
43956         * tests/test-signbit.c: Include <float.h>.
43957         (minus_zero): New variable.
43958         (test_signbitl): Use minus_zero instead of -zero.
43959         * modules/signbit-tests (Depends-on): Add float.
43960
43961         * tests/test-ceill.c: Include <float.h>.
43962         (zero): Remove variable.
43963         (minus_zero): New variable.
43964         (main): Use minus_zero instead of -zero.
43965         * modules/ceill-tests (Depends-on): Add float.
43966
43967         * tests/test-floorl.c: Include <float.h>.
43968         (zero): Remove variable.
43969         (minus_zero): New variable.
43970         (main): Use minus_zero instead of -zero.
43971         * modules/floorl-tests (Depends-on): Add float.
43972
43973         * tests/test-roundl.c: Include <float.h>.
43974         (zero): Remove variable.
43975         (minus_zero): New variable.
43976         (main): Use minus_zero instead of -zero.
43977         * modules/roundl-tests (Depends-on): Add float.
43978
43979         * tests/test-truncl.c: Include <float.h>.
43980         (zero): Remove variable.
43981         (minus_zero): New variable.
43982         (main): Use minus_zero instead of -zero.
43983         * modules/truncl-tests (Depends-on): Add float.
43984
43985         * tests/test-frexpl.c (zero): Remove variable.
43986         (minus_zero): New variable.
43987         (main): Use minus_zero instead of -zero.
43988         * modules/frexpl-tests (Depends-on): Add float.
43989
43990         * tests/test-isnan.c (zerol): Remove variable.
43991         (minus_zerol): New variable.
43992         (test_long_double): Use minus_zerol instead of -zerol.
43993         * modules/isnan-tests (Depends-on): Add float.
43994
43995         * tests/test-isnanl.h (zero): Remove variable.
43996         (minus_zero): New variable.
43997         (main): Use minus_zero instead of -zero.
43998         * modules/isnanl-nolibm-tests (Depends-on): Add float.
43999         * modules/isnanl-tests (Depends-on): Add float.
44000
44001         * tests/test-ldexpl.c (zero): Remove variable.
44002         (minus_zero): New variable.
44003         (main): Use minus_zero instead of -zero.
44004         * modules/ldexpl-tests (Depends-on): Add float.
44005
44006         * tests/test-snprintf-posix.h (zerol): Remove variable.
44007         (minus_zerol): New variable.
44008         (test_function): Use minus_zerol instead of -zerol.
44009         * modules/snprintf-posix-tests (Depends-on): Add float.
44010         * modules/vsnprintf-posix-tests (Depends-on): Add float.
44011
44012         * tests/test-sprintf-posix.h (zerol): Remove variable.
44013         (minus_zerol): New variable.
44014         (test_function): Use minus_zerol instead of -zerol.
44015         * modules/sprintf-posix-tests (Depends-on): Add float.
44016         * modules/vsprintf-posix-tests (Depends-on): Add float.
44017
44018         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
44019         (minus_zerol): New variable.
44020         (test_function): Use minus_zerol instead of -zerol.
44021         * modules/vasnprintf-posix-tests (Depends-on): Add float.
44022
44023         * tests/test-vasprintf-posix.c (zerol): Remove variable.
44024         (minus_zerol): New variable.
44025         (test_function): Use minus_zerol instead of -zerol.
44026         * modules/vasprintf-posix-tests (Depends-on): Add float.
44027
44028 2008-10-07  Simon Josefsson  <simon@josefsson.org>
44029
44030         * MODULES.html.sh (Support for building documentation): Mention
44031         pmccabe2html.  Sort entries.
44032
44033         Add pmccabe2html module, from gnupdf.
44034         * build-aux/pmccabe.css: New file.
44035         * build-aux/pmccabe2html: New file.
44036         * m4/pmccabe2html.m4: New file.
44037         * modules/pmccabe2html: New file.
44038
44039 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
44040
44041         flock: new module
44042         * MODULES.html.sh: Add to list of modules.
44043         * lib/flock.c: flock implementation for Windows and Unix systems
44044         which have fcntl.
44045         * doc/glibc-functions/flock.texi: Update documentation.
44046         * lib/sys_file.in.h: <sys/file.h> header file.
44047         * m4/flock.m4: M4 macros.
44048         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
44049         * modules/flock: flock module.
44050         * modules/flock-tests: flock tests module.
44051         * modules/sys_file: sys/file.h module.
44052         * tests/test-flock.c: test suite for flock.
44053
44054 2008-10-06  Jim Meyering  <meyering@redhat.com>
44055
44056         bootstrap: check for LT_INIT more portably still ;-)
44057         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
44058         Spotted by Bruno Haible.
44059
44060 2008-10-06  Eric Blake  <ebb9@byu.net>
44061
44062         test-signbit: avoid tripping Irix cc bug on -0.0L
44063         * tests/test-signbit.c (minus_zerol): Delete, and replace with
44064         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
44065         entire testsuite consistent and avoids an Irix 6.2 bug.
44066
44067 2008-10-05  Bruno Haible  <bruno@clisp.org>
44068             Jim Meyering  <jim@meyering.net>
44069
44070         Add an option for ignoring EPIPE during close_stdout.
44071         * lib/closeout.h: Include <stdbool.h>.
44072         (close_stdout_set_ignore_EPIPE): New declaration.
44073         * lib/closeout.c: Include <stdbool.h>.
44074         (ignore_EPIPE): New variable.
44075         (close_stdout_set_ignore_EPIPE): New function.
44076         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
44077         * lib/close-stream.c (close_stream): Mention the possible EPIPE
44078         failure.
44079         * modules/closeout (Depends-on): Add stdbool.
44080
44081 2008-10-05  Bruno Haible  <bruno@clisp.org>
44082
44083         * modules/accept: New file.
44084         * modules/bind: New file.
44085         * modules/connect: New file.
44086         * modules/getpeername: New file.
44087         * modules/getsockname: New file.
44088         * modules/getsockopt: New file.
44089         * modules/listen: New file.
44090         * modules/recv: New file.
44091         * modules/recvfrom: New file.
44092         * modules/send: New file.
44093         * modules/sendto: New file.
44094         * modules/setsockopt: New file.
44095         * modules/socket: New file.
44096         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
44097         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
44098         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
44099         the particular module is requested. Add a link warning when the
44100         particular module is not requested.
44101         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
44102         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
44103         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
44104         the particular module is requested.
44105         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
44106         gl_SYS_SOCKET_H_DEFAULTS): New macros.
44107         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
44108         * modules/sys_socket (Depends-on): Add link-warning.
44109         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
44110         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
44111         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
44112         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
44113         GL_LINK_WARNING.
44114         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
44115         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
44116         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
44117         * doc/posix-functions/getpeername.texi: Mention the new module
44118         'getpeername'.
44119         * doc/posix-functions/getsockname.texi: Mention the new module
44120         'getsockname'.
44121         * doc/posix-functions/getsockopt.texi: Mention the new module
44122         'getsockopt'.
44123         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
44124         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
44125         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
44126         * doc/posix-functions/send.texi: Mention the new module 'send'.
44127         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
44128         * doc/posix-functions/setsockopt.texi: Mention the new module
44129         'setsockopt'.
44130         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
44131         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
44132         listen, connect, accept.
44133         * modules/select-tests (Depends-on): Likewise.
44134
44135 2008-10-05  Bruno Haible  <bruno@clisp.org>
44136
44137         * lib/winsock.c (strerror): Remove unused #undef.
44138         (rpl_close): Remove unused local variable.
44139
44140         * modules/sys_socket (Depends-on); Add errno.
44141
44142 2008-10-05  Bruno Haible  <bruno@clisp.org>
44143
44144         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
44145         (select): Add a link warning when the 'select' module is not used.
44146         * modules/sys_select (Depends-on): Add link-warning.
44147         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
44148         Suggested by Paolo Bonzini.
44149
44150 2008-10-05  Jim Meyering  <meyering@redhat.com>
44151
44152         bootstrap: check for LT_INIT more portably
44153         * build-aux/bootstrap: Avoid using grep -E, since it's not
44154         portable enough.  Suggestion from Bruno Haible.
44155
44156 2008-10-05  Bruno Haible  <bruno@clisp.org>
44157
44158         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
44159         as being fixed by gnulib.
44160
44161 2008-10-05  Bruno Haible  <bruno@clisp.org>
44162
44163         * modules/select-tests: New file, mostly copied from
44164         modules/sys_select-tests.
44165         * tests/test-select.c: New file, mostly copied from
44166         tests/test-sys_select.c.
44167         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
44168         * modules/sys_select-tests (Depends-on): Remove all dependencies.
44169         (Makefile.am): Remove test_sys_select_LDADD.
44170
44171         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
44172         to an undefined symbol, for an error message.
44173         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
44174         (gl_SYS_SELECT_H_DEFAULTS): New macro.
44175         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
44176         winsock-select.c here.
44177         * modules/sys_select (Files): Remove lib/winsock-select.c.
44178         (Depends-on): Remove alloca.
44179         (Makefile.am): Substitute GNULIB_SELECT.
44180         * modules/select: New file.
44181         * doc/posix-functions/select.texi: Update.
44182
44183 2008-10-05  Bruno Haible  <bruno@clisp.org>
44184
44185         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
44186         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
44187         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
44188         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
44189         getdtablesize.
44190         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
44191         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
44192
44193 2008-10-05  Bruno Haible  <bruno@clisp.org>
44194
44195         * modules/getdtablesize-tests: New file.
44196         * tests/test-getdtablesize.c: New file.
44197
44198         New module 'getdtablesize'.
44199         * lib/unistd.in.h (getdtablesize): New declaration.
44200         * lib/getdtablesize.c: New file.
44201         * m4/getdtablesize.m4: New file.
44202         * modules/getdtablesize: New file.
44203         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44204         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
44205         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
44206         HAVE_GETDTABLESIZE.
44207         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
44208
44209 2008-10-05  Bruno Haible  <bruno@clisp.org>
44210
44211         * modules/sched (Makefile.am): Fix typo.
44212         Reported by Simon Josefsson.
44213
44214 2008-10-05  Jim Meyering  <meyering@redhat.com>
44215
44216         bootstrap: check for LT_INIT, too
44217         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
44218         are deprecated.  Suggestion from Ralf Wildenhues.
44219
44220 2008-10-05  Bruno Haible  <bruno@clisp.org>
44221
44222         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
44223         overriding them by ours.
44224         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
44225
44226 2008-10-05  Jim Meyering  <meyering@redhat.com>
44227
44228         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
44229         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
44230         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
44231
44232 2008-10-04  Bruno Haible  <bruno@clisp.org>
44233
44234         * modules/dup2 (License): Change to LGPLv2+.
44235         * modules/sleep (License): Likewise.
44236         * modules/perror (License): Likewise.
44237         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
44238         Blake.
44239         * modules/signal (License): Likewise.
44240         * modules/sigprocmask (License): Likewise.
44241         * modules/raise (License): Change to LGPLv2+, with approval by Jim
44242         Meyering.
44243
44244 2008-10-04  Bruno Haible  <bruno@clisp.org>
44245
44246         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
44247         Reported by Rainer Tammer <tammer@tammer.net>.
44248
44249 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
44250             Bruno Haible  <bruno@clisp.org>
44251
44252         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
44253         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
44254         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
44255
44256 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
44257
44258         filevercmp: new module
44259         * lib/filevercmp.h: New function filevercmp comparing version strings.
44260         * lib/filevercmp.c: Implementation of filevercmp function.
44261         * modules/filevercmp: Module metadata.
44262         * tests/test-filevercmp.c: Unit test for new module.
44263         * modules/filevercmp-tests: Unit test metadata.
44264         * MODULES.html.sh: Add filevercmp module.
44265
44266 2008-10-03  Bruno Haible  <bruno@clisp.org>
44267
44268         * lib/c-ctype.h: Add comment.
44269         Reported by Jim Meyering.
44270
44271 2008-10-02  Bruno Haible  <bruno@clisp.org>
44272
44273         * modules/posix_spawn-internal (Depends-on): Add 'open'.
44274
44275 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
44276
44277         * build-aux/bootstrap: Allow renaming bootstrap, and change the
44278         name of bootstrap.conf accordingly.
44279
44280 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
44281
44282         * build-aux/bootstrap: Install git-merge-changelog configuration
44283         items into .gitconfig if needed.
44284
44285 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
44286
44287         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
44288         git repository, and initialize/update it accordingly.
44289
44290 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
44291
44292         * modules/fsync-tests: New file.
44293         * tests/test-fsync.c: New file.
44294
44295         New module 'fsync'.
44296         * lib/fsync.c: New file.
44297         * m4/fsync.m4: New file.
44298         * modules/fsync: New file.
44299         * lib/unistd.in.h (fsync): New declaration.
44300         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
44301         GNULIB_FSYNC and HAVE_FSYNC.
44302         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
44303         * MODULES.html.sh (posix_functions): Add fsync.
44304         * doc/posix-functions/fsync.texi: Mention the new module.
44305
44306 2008-10-02  Jim Meyering  <meyering@redhat.com>
44307
44308         fts.c: sync with similar code from coreutils' remove.c
44309         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
44310         Guard also with "#if defined __linux__", since for now at least,
44311         this code is Linux-kernel-specific.
44312
44313 2008-10-02  Jim Meyering  <meyering@redhat.com>
44314
44315         fts: bug fixes
44316         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
44317         Include <sys/vfs.h>, not <sys/statfs.h>.
44318
44319         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
44320         Include <sys/vfs.h>, not <sys/statfs.h>.
44321
44322 2008-10-01  Bruno Haible  <bruno@clisp.org>
44323
44324         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
44325         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
44326         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
44327         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
44328         * doc/posix-functions/posix_spawnp.texi: Likewise.
44329         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
44330         whether posix_spawn actually works.
44331         * m4/pipe.m4 (gl_PIPE): Likewise.
44332         * modules/execute (Files): Add m4/posix_spawn.m4.
44333         * modules/pipe (Files): Add m4/posix_spawn.m4.
44334         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
44335
44336 2008-10-01  Jim Meyering  <meyering@redhat.com>
44337
44338         remove trailing spaces
44339         * NEWS: Likewise.
44340         * lib/poll.c (poll): Likewise.
44341         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
44342         * lib/winsock.c (rpl_close): Likewise.
44343         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
44344         * modules/yield: Likewise.
44345         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
44346         * tests/test-sys_select.c (connect_to_socket): Likewise.
44347
44348         fts.c: adjust a new interface to be more generally useful
44349         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
44350         (fts_build): Adjust caller.
44351
44352 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44353
44354         * modules/cond-tests: New file.
44355         * tests/test-cond.c: New file.
44356
44357 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44358             Bruno Haible  <bruno@clisp.org>
44359
44360         * modules/cond (Dependencies): Add errno, time.
44361         * lib/glthread/cond.h: Include <time.h>.
44362         (gl_cond_define, gl_cond_define_initialized): Use the same definition
44363         across platforms.
44364
44365 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44366             Bruno Haible  <bruno@clisp.org>
44367
44368         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
44369
44370 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44371             Bruno Haible  <bruno@clisp.org>
44372
44373         * modules/tls-tests (Depends-on): Add thread, yield.
44374         (configure.ac): Remove all checks.
44375         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
44376         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
44377         gl_thread_self): Remove definitions. Include glthread/thread.h and
44378         glthread/yield.h instead.
44379         (test_tls): Pass an additional NULL argument to gl_thread_join.
44380
44381 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44382             Bruno Haible  <bruno@clisp.org>
44383
44384         * modules/lock-tests (Depends-on): Add thread, yield.
44385         (configure.ac): Remove all checks.
44386         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
44387         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
44388         gl_thread_self): Remove definitions. Include glthread/thread.h and
44389         glthread/yield.h instead.
44390         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
44391         additional NULL argument to gl_thread_join.
44392
44393 2008-09-30  Bruno Haible  <bruno@clisp.org>
44394
44395         Fix the Win32 implementation of the 'thread' module.
44396         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
44397         pointer type.
44398         (gl_thread_self): Invoke gl_thread_self_func.
44399         (gl_thread_self_func): New declaration.
44400         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
44401         (do_init_self_key, init_self_key): New functions.
44402         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
44403         Remove some fields.
44404         (running_threads, running_lock): Remove variables.
44405         (get_current_thread_handle): New function.
44406         (gl_thread_self_func, wrapper_func, glthread_create_func,
44407         glthread_join_func, gl_thread_exit_func): Largely rewritten and
44408         simplified.
44409
44410 2008-09-30  Bruno Haible  <bruno@clisp.org>
44411
44412         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
44413         files.
44414
44415 2008-09-30  Jim Meyering  <meyering@redhat.com>
44416
44417         fts.m4: correct the test for statfs.f_type
44418         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
44419         when checking for statfs.f_type.
44420
44421 2008-09-15  Simon Josefsson  <simon@josefsson.org>
44422
44423         tests: avoid some compiler warnings
44424         * tests/test-memchr.c (main): Pass NULL indirectly.
44425         * tests/test-getdate.c (main): Remove unused variable 'ret'.
44426
44427 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
44428
44429         getdate.y: disallow countable dayshifts like "4 yesterday ago"
44430         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
44431         exactly specified dayshifts.
44432         (dayshift): New rule.
44433         (rel): Add dayshift.
44434         (relative_time_table) [tomorrow, yesterday, today, now]:
44435         Use tDAY_SHIFT in place of tDAY_UNIT.
44436         * tests/test-getdate.c: Add tests for now-disallowed countable
44437         dayshifts, e.g., "4 yesterday ago".
44438
44439 2008-09-29  Bruno Haible  <bruno@clisp.org>
44440
44441         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
44442         * tests/test-posix_spawn1.in.sh: Renamed from
44443         tests/test-posix_spawn.in.sh.
44444         * tests/test-posix_spawn2.c: New file.
44445         * tests/test-posix_spawn2.in.sh: New file.
44446         * modules/posix_spawnp-tests (Files): Update.
44447         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
44448
44449 2008-09-29  Bruno Haible  <bruno@clisp.org>
44450
44451         Propagate effects of putenv/setenv/unsetenv to child processes.
44452         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
44453         * lib/pipe.c (create_pipe): Likewise.
44454
44455 2008-09-29  Bruno Haible  <bruno@clisp.org>
44456
44457         Enable use of shell scripts as executables in mingw.
44458         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
44459         run the program as a shell script.
44460         * lib/pipe.c (create_pipe): Likewise.
44461         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
44462         resulting array.
44463
44464 2008-09-29  Eric Blake  <ebb9@byu.net>
44465
44466         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
44467
44468 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
44469
44470         * doc/posix-functions/accept.texi: Update mingw problems.
44471         * doc/posix-functions/bind.texi: Update mingw problems.
44472         * doc/posix-functions/close.texi: Update mingw problems.
44473         * doc/posix-functions/connect.texi: Update mingw problems.
44474         * doc/posix-functions/getpeername.texi: Update mingw problems.
44475         * doc/posix-functions/getsockname.texi: Update mingw problems.
44476         * doc/posix-functions/getsockopt.texi: Update mingw problems.
44477         * doc/posix-functions/ioctl.texi: Update mingw problems.
44478         * doc/posix-functions/listen.texi: Update mingw problems.
44479         * doc/posix-functions/recv.texi: Update mingw problems.
44480         * doc/posix-functions/recvfrom.texi: Update mingw problems.
44481         * doc/posix-functions/select.texi: Update mingw problems.
44482         * doc/posix-functions/send.texi: Update mingw problems.
44483         * doc/posix-functions/sendto.texi: Update mingw problems.
44484         * doc/posix-functions/setsockopt.texi: Update mingw problems.
44485         * doc/posix-functions/socket.texi: Update mingw problems.
44486
44487 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
44488             Bruno Haible  <bruno@clisp.org>
44489
44490         * lib/sys_select.in.h: Include sys/time.h.
44491         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
44492         * modules/sys_select: Depend on sys_time.
44493         * tests/test-sys_select.c: Test that sys/select.h defines struct
44494         timeval fully.
44495
44496 2008-09-29  Bruno Haible  <bruno@clisp.org>
44497
44498         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
44499         * lib/sys_select.in.h: Likewise.
44500
44501 2008-09-29  Bruno Haible  <bruno@clisp.org>
44502
44503         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
44504
44505 2008-09-29  Bruno Haible  <bruno@clisp.org>
44506
44507         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
44508         Set LIBSOCKET instead of augmenting LIBS.
44509         * modules/sockets (Link): New section.
44510         * modules/sockets-tests (test_sockets_LDADD): New variable.
44511         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
44512         * modules/poll-tests (test_poll_LDADD): New variable.
44513         * NEWS: Document the change.
44514
44515 2008-09-29  Bruno Haible  <bruno@clisp.org>
44516
44517         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
44518         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
44519         ARPA_INET_H directly.
44520         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44521
44522 2008-09-28  Bruno Haible  <bruno@clisp.org>
44523
44524         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
44525         from gl_HEADER_SYS_SOCKET.
44526         (gl_HEADER_SYS_SOCKET): Invoke it.
44527         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44528
44529 2008-09-28  Bruno Haible  <bruno@clisp.org>
44530
44531         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
44532         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
44533         Needed on OSF/1 4.0.
44534
44535 2008-09-28  Bruno Haible  <bruno@clisp.org>
44536
44537         Override open more carefully.
44538         * lib/open.c (orig_open): New function.
44539         (rpl_open): Use orig_open instead of open.
44540         * lib/fcntl.in.h: Add special invocation convention.
44541         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
44542         (gl_FUNC_OPEN): Invoke it.
44543
44544         Override freopen more carefully.
44545         * lib/freopen.c (orig_freopen): New function.
44546         (rpl_freopen): Use orig_freopen instead of freopen.
44547         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
44548         (gl_FUNC_FREOPEN): Invoke it.
44549
44550         Override fopen more carefully.
44551         * lib/fopen.c (orig_fopen): New function.
44552         (rpl_fopen): Use orig_fopen instead of fopen.
44553         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
44554         (gl_FUNC_FOPEN): Invoke it.
44555         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
44556
44557 2008-09-28  Bruno Haible  <bruno@clisp.org>
44558
44559         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
44560         SIGPIPE.
44561
44562 2008-09-28  Bruno Haible  <bruno@clisp.org>
44563
44564         * tests/test-sigaction.c (handler, main): Disable the check whether
44565         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
44566         glibc systems with LinuxThreads.
44567
44568 2008-09-28  Bruno Haible  <bruno@clisp.org>
44569
44570         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
44571
44572         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
44573         with AIX xlc.
44574         * lib/fcntl.in.h (open): Likewise.
44575         Reported by Rainer Tammer <tammer@tammer.net>.
44576
44577 2008-09-28  Bruno Haible  <bruno@clisp.org>
44578
44579         * modules/posix_spawnp-tests: New file.
44580         * tests/test-posix_spawn.c: New file.
44581         * tests/test-posix_spawn.in.sh: New file.
44582
44583         New module 'posix_spawnp'.
44584         * modules/posix_spawnp: New file.
44585         * lib/spawnp.c: New file, from GNU libc with modifications.
44586         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
44587
44588         New module 'posix_spawn'.
44589         * modules/posix_spawn: New file.
44590         * lib/spawn.c: New file, from GNU libc with modifications.
44591         * doc/posix-functions/posix_spawn.texi: Mention the new module.
44592
44593         New module 'posix_spawnattr_destroy'.
44594         * modules/posix_spawnattr_destroy: New file.
44595         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
44596         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
44597         module.
44598
44599         New module 'posix_spawnattr_setsigmask'.
44600         * modules/posix_spawnattr_setsigmask: New file.
44601         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
44602         modifications.
44603         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
44604         new module.
44605
44606         New module 'posix_spawnattr_getsigmask'.
44607         * modules/posix_spawnattr_getsigmask: New file.
44608         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
44609         modifications.
44610         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
44611         new module.
44612
44613         New module 'posix_spawnattr_setsigdefault'.
44614         * modules/posix_spawnattr_setsigdefault: New file.
44615         * lib/spawnattr_setdefault.c: New file, from GNU libc with
44616         modifications.
44617         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
44618         new module.
44619
44620         New module 'posix_spawnattr_getsigdefault'.
44621         * modules/posix_spawnattr_getsigdefault: New file.
44622         * lib/spawnattr_getdefault.c: New file, from GNU libc with
44623         modifications.
44624         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
44625         new module.
44626
44627         New module 'posix_spawnattr_setschedpolicy'.
44628         * modules/posix_spawnattr_setschedpolicy: New file.
44629         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
44630         modifications.
44631         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
44632         new module.
44633
44634         New module 'posix_spawnattr_getschedpolicy'.
44635         * modules/posix_spawnattr_getschedpolicy: New file.
44636         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
44637         modifications.
44638         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
44639         new module.
44640
44641         New module 'posix_spawnattr_setschedparam'.
44642         * modules/posix_spawnattr_setschedparam: New file.
44643         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
44644         modifications.
44645         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
44646         new module.
44647
44648         New module 'posix_spawnattr_getschedparam'.
44649         * modules/posix_spawnattr_getschedparam: New file.
44650         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
44651         modifications.
44652         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
44653         new module.
44654
44655         New module 'posix_spawnattr_setpgroup'.
44656         * modules/posix_spawnattr_setpgroup: New file.
44657         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
44658         modifications.
44659         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
44660         module.
44661
44662         New module 'posix_spawnattr_getpgroup'.
44663         * modules/posix_spawnattr_getpgroup: New file.
44664         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
44665         modifications.
44666         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
44667         module.
44668
44669         New module 'posix_spawnattr_setflags'.
44670         * modules/posix_spawnattr_setflags: New file.
44671         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
44672         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
44673         module.
44674
44675         New module 'posix_spawnattr_getflags'.
44676         * modules/posix_spawnattr_getflags: New file.
44677         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
44678         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
44679         module.
44680
44681         New module 'posix_spawnattr_init'.
44682         * modules/posix_spawnattr_init: New file.
44683         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
44684         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
44685         module.
44686
44687         New module 'posix_spawn_file_actions_destroy'.
44688         * modules/posix_spawn_file_actions_destroy: New file.
44689         * lib/spawn_faction_destroy.c: New file, from GNU libc with
44690         modifications.
44691         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
44692         the new module.
44693
44694         New module 'posix_spawn_file_actions_addopen'.
44695         * modules/posix_spawn_file_actions_addopen: New file.
44696         * lib/spawn_faction_addopen.c: New file, from GNU libc with
44697         modifications.
44698         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
44699         the new module.
44700
44701         New module 'posix_spawn_file_actions_adddup2'.
44702         * modules/posix_spawn_file_actions_adddup2: New file.
44703         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
44704         modifications.
44705         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
44706         the new module.
44707
44708         New module 'posix_spawn_file_actions_addclose'.
44709         * modules/posix_spawn_file_actions_addclose: New file.
44710         * lib/spawn_faction_addclose.c: New file, from GNU libc with
44711         modifications.
44712         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
44713         the new module.
44714
44715         New module 'posix_spawn_file_actions_init'.
44716         * modules/posix_spawn_file_actions_init: New file.
44717         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
44718         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
44719         new module.
44720
44721         New module 'posix_spawn-internal'.
44722         * modules/posix_spawn-internal: New file.
44723         * lib/spawn_int.h: New file, from GNU libc with modifications.
44724         * lib/spawni.c: New file, from GNU libc with modifications.
44725         * m4/posix_spawn.m4: New file.
44726
44727         New module 'spawn'.
44728         * modules/spawn: New file.
44729         * lib/spawn.in.h: New file, from GNU libc with modifications.
44730         * m4/spawn_h.m4: New file.
44731         * doc/posix-headers/spawn.texi: Mention the new module.
44732
44733 2008-09-28  Bruno Haible  <bruno@clisp.org>
44734
44735         * modules/sched-tests: New file.
44736         * tests/test-sched.c: New file.
44737
44738         New module 'sched'.
44739         * modules/sched: New file.
44740         * lib/sched.in.h: New file.
44741         * m4/sched_h.m4: New file.
44742         * doc/posix-headers/sched.texi: Mention the new module.
44743
44744 2008-09-27  Eric Blake  <ebb9@byu.net>
44745
44746         Fix previous patch, and tweak references to $0.
44747         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
44748         (func_version, func_gnulib_dir): Don't call this program
44749         gnulib-tool.
44750         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
44751         with using $0 in function.
44752         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
44753         (func_fatal_error): Reuse the name the user invoked us with.
44754
44755 2008-09-27  Bruno Haible  <bruno@clisp.org>
44756
44757         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
44758         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
44759         (gl_ICONV_H): Not here.
44760         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
44761         instead of assigning ICONV_H directly.
44762
44763         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
44764         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
44765         WCHAR_H directly.
44766
44767 2008-09-27  Bruno Haible  <bruno@clisp.org>
44768
44769         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
44770         * modules/arpa_inet (Depends-on): Add link-warning.
44771         (Makefile.am): Insert the definition of GL_LINK-WARNING.
44772         * modules/unistd (Makefile.am): Likewise.
44773
44774 2008-09-26  Bruno Haible  <bruno@clisp.org>
44775
44776         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
44777         variables.
44778         (func_version): Essentially copied from gnulib-tool.
44779         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
44780         func_readlink): Copied from gnulib-tool.
44781
44782 2008-09-26  Bruno Haible  <bruno@clisp.org>
44783
44784         * gnulib-tool (func_version): Change directory to $gnulib_dir before
44785         invoking git-version-gen.
44786
44787 2008-09-26  Bruno Haible  <bruno@clisp.org>
44788
44789         * posix-modules: Update to directory names changed on 2008-01-19.
44790         Remove commas in output before splitting into words. No more need to
44791         avoid 'ftruncate' since 2007-02-19.
44792
44793 2008-09-26  Bruno Haible  <bruno@clisp.org>
44794
44795         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
44796
44797 2008-09-26  Bruno Haible  <bruno@clisp.org>
44798
44799         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
44800         * modules/fwriteerror (Depends-on): Add errno.
44801
44802 2008-09-26  Bruno Haible  <bruno@clisp.org>
44803
44804         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
44805         * tests/test-vc-list-files-cvs.sh: Likewise.
44806
44807 2008-09-26  Bruno Haible  <bruno@clisp.org>
44808
44809         * doc/posix-headers/sys_resource.texi: Reorder items.
44810
44811 2008-09-26  Jim Meyering  <meyering@redhat.com>
44812
44813         fts: tweak inode comparison function
44814         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
44815         inode numbers, as documented.
44816
44817         fts: sort dirent entries on inode number before traversing
44818         This avoids a quadratic, seek-related performance penalty when
44819         operating on a directory containing many entries (measurable at 10k;
44820         3.5 hours at 2 million entries with a cold cache) on certain types
44821         of file systems, including ext3 and ext4, but not tmpfs.
44822         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
44823         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
44824         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
44825         (fs_handles_readdir_ordered_dirents_efficiently): New function.
44826         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
44827         (fts_build): Set the stat.st_ino member from D_INO.
44828         If it is likely to be useful, sort dirent entries on inode number.
44829
44830         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
44831         and the struct statfs.f_type member.
44832         * modules/fts (Depends-on): Add d-ino.
44833
44834 2008-09-26  Bruno Haible  <bruno@clisp.org>
44835
44836         * modules/sigpipe-die (Depends-on): Add sigpipe.
44837
44838         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
44839         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
44840         and GNULIB_STDIO_H_SIGPIPE are set.
44841         * lib/stdio-write.c: New file.
44842         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
44843         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
44844         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
44845         REPLACE_STDIO_WRITE_FUNCS.
44846         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
44847         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
44848         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
44849         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
44850         * modules/stdio (Files): Add lib/stdio-write.c.
44851         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
44852         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
44853         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
44854         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
44855         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
44856         REPLACE_FPRINTF_POSIX.
44857         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
44858         REPLACE_PRINTF_POSIX.
44859         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
44860         REPLACE_VFPRINTF_POSIX.
44861         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
44862         REPLACE_VPRINTF_POSIX.
44863         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
44864         SIGPIPE issue.
44865         * doc/posix-functions/fputc.texi: Likewise.
44866         * doc/posix-functions/fputs.texi: Likewise.
44867         * doc/posix-functions/fwrite.texi: Likewise.
44868         * doc/posix-functions/printf.texi: Likewise.
44869         * doc/posix-functions/putc.texi: Likewise.
44870         * doc/posix-functions/putchar.texi: Likewise.
44871         * doc/posix-functions/puts.texi: Likewise.
44872         * doc/posix-functions/vfprintf.texi: Likewise.
44873         * doc/posix-functions/vprintf.texi: Likewise.
44874
44875         * modules/safe-write (Depends-on): Add write.
44876
44877         * modules/sigpipe-tests: New file.
44878         * tests/test-sigpipe.c: New file.
44879         * tests/test-sigpipe.sh: New file.
44880
44881         * modules/write: New file.
44882         * lib/unistd.in.h: Include <sys/types.h>.
44883         (write): New declaration.
44884         * lib/write.c: New file.
44885         * m4/write.m4: New file.
44886         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44887         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
44888         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
44889         GNULIB_WRITE, REPLACE_WRITE.
44890         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
44891         and the SIGPIPE issue.
44892
44893         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
44894         (raise): New declaration.
44895         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
44896         (ext_signal): New function.
44897         (rpl_raise): New function.
44898         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
44899         GNULIB_SIGNAL_H_SIGPIPE.
44900         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
44901         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
44902
44903         * modules/sigpipe: New file.
44904         * m4/sigpipe.m4: New file.
44905
44906 2008-09-25  Derek Price  <derek@ximbiot.com>
44907             Bruno Haible  <bruno@clisp.org>
44908
44909         * gnulib-tool (func_import): Report all license incompatibilities, not
44910         just the first one.
44911
44912 2008-09-25  Bruno Haible  <bruno@clisp.org>
44913
44914         * gnulib-tool (func_import): When computing the edits, consider not
44915         only the Makefile.ams that exist but also those that will be generated.
44916
44917 2008-09-25  Simon Josefsson  <simon@josefsson.org>
44918
44919         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
44920         fixes gnulib-tool --test warning about duplicate dependency.
44921
44922 2008-09-25  Bruno Haible  <bruno@clisp.org>
44923
44924         * gnulib-tool: Don't ask the user to perform edits in the generated
44925         Makefile.ams.
44926         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
44927         apply to the Makefile.am being generated.
44928         (func_emit_tests_Makefile_am): Execute edits that apply to the
44929         Makefile.am being generated.
44930         (func_import): Setup list of Makefile.am edits before emitting the
44931         Makefile.ams, not at the end.
44932         (func_create_testdir): Update.
44933         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44934
44935 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44936
44937         * gnulib-tool (func_import): Store the --tests-base option in the
44938         comment in gnulib-cache.m4.
44939
44940 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
44941
44942         * NEWS: Document increased portability that sys_select now provides.
44943
44944         * lib/sys_select.in.h: Install select wrapper.
44945         * lib/sys_socket.in.h: Use more descriptive name when there is no
44946         select wrapper.
44947         * lib/winsock-select.c: New.
44948         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
44949         Require gl_HEADER_SYS_SOCKET.
44950         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
44951         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
44952         * tests/test-sys_select.c: Add functional tests.
44953
44954 2008-09-24  Eric Blake  <ebb9@byu.net>
44955
44956         open, fopen: close fd leak in last patch
44957         * lib/open.c (rpl_open): Close fd before returning error.
44958         * lib/fopen.c (rpl_fopen): Close fd before returning error.
44959         * doc/posix-functions/open.texi (open): Document that Irix also
44960         has the bug.
44961         * doc/posix-functions/fopen.texi (fopen): Likewise.
44962         Reported by Paolo Bonzini.
44963
44964 2008-09-24  Bruno Haible  <bruno@clisp.org>
44965
44966         Ensure that a filename ending in a slash cannot be used to access a
44967         non-directory.
44968         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
44969         to check whether it's really a directory.
44970         * lib/fopen.c: Include fcntl.h, unistd.h.
44971         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
44972         and fdopen().
44973         * modules/fopen (Depends-on): Add unistd.
44974         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
44975         * tests/test-fopen.c (main): Likewise.
44976         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
44977         * doc/posix-functions/fopen.texi: Likewise.
44978         Reported by Eric Blake.
44979
44980 2008-09-23  Eric Blake  <ebb9@byu.net>
44981
44982         c-stack: avoid compiler optimizations when provoking overflow
44983         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
44984         recursion harder to optimize, to ensure a stack overflow occurs.
44985         * tests/test-c-stack.c (recurse): Likewise.
44986         Borrowed from libsigsegv.
44987
44988         c-stack: work around Irix sigaltstack bug
44989         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
44990         whether sigaltstack uses wrong end of stack_t (copied in part from
44991         libsigsegv).
44992         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
44993         Irix bug, without requiring an over-allocation.
44994         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
44995         bug.
44996
44997         fopen: document mingw bug on directories
44998         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
44999         not allowing a stream visiting a directory, even though reading
45000         from such a stream is not portable.
45001
45002 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45003
45004         * lib/poll.c: Rewrite.
45005         * modules/poll: Depend on alloca.
45006
45007 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45008
45009         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
45010         instead define prototypes for a full set of wrappers.  Ensure
45011         that Cygwin does not use the compatibility code, which is only
45012         for MinGW.
45013         * lib/winsock.c: New.
45014         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
45015         * modules/sys_socket: Add lib/winsock.c.
45016
45017         * modules/poll-tests: Add errno and perror.
45018         * tests/test-poll.c: Use ioctl, not ioctlsocket.
45019
45020 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45021
45022         * tests/test-poll.c: Downgrade minimum needed Winsock version.
45023
45024 2008-09-23  Bruno Haible  <bruno@clisp.org>
45025
45026         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
45027         * doc/glibc-functions/*: Likewise.
45028
45029 2008-09-23  Simon Josefsson  <simon@josefsson.org>
45030
45031         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
45032         success.
45033
45034 2008-09-22  Eric Blake  <ebb9@byu.net>
45035             Bruno Haible  <bruno@clisp.org>
45036
45037         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
45038         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
45039         supply %A but mishandle pseudo-NaN.
45040         Reported by Simon Josefsson.
45041
45042 2008-09-21  Bruno Haible  <bruno@clisp.org>
45043
45044         * tests/test-lock.c (main): Tweak skip message.
45045         * tests/test-tls.c (main): Likewise.
45046
45047 2008-09-21  Bruno Haible  <bruno@clisp.org>
45048
45049         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
45050         whether 'struct sigaction' has sa_sigaction here...
45051         (gl_PREREQ_SIG_HANDLER_H): ... not here.
45052         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
45053
45054 2008-09-21  Bruno Haible  <bruno@clisp.org>
45055
45056         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
45057         section.
45058         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
45059         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
45060         the new section.
45061         (Support for obsolete systems lacking POSIX:2001): New section.
45062         (String handling <string.h>): Move strdup to the new section.
45063         Suggested by Simon Josefsson and Paolo Bonzini.
45064
45065 2008-09-21  Bruno Haible  <bruno@clisp.org>
45066
45067         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
45068         exponents in %e and %g results on 'long double'. Needed for mingw's
45069         improved *printf functions.
45070         * tests/test-vasprintf-posix.c (test_function): Likewise.
45071         * tests/test-snprintf-posix.h (test_function): Likewise.
45072         * tests/test-sprintf-posix.h (test_function): Likewise.
45073         Reported by Eric Blake.
45074
45075 2008-09-21  Bruno Haible  <bruno@clisp.org>
45076
45077         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
45078         * tests/test-sprintf-posix.h (test_function): Likewise.
45079
45080 2008-09-21  Bruno Haible  <bruno@clisp.org>
45081
45082         * modules/getpass (Depends-on): Add strdup-posix.
45083
45084         New module 'strdup-posix'.
45085         * modules/strdup-posix: New file.
45086         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
45087         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
45088         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45089         REPLACE_STRDUP.
45090         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
45091         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
45092         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45093         strdup-posix.
45094
45095         * modules/strdup (Depends-on): Remove malloc-posix.
45096
45097 2008-09-20  Bruno Haible  <bruno@clisp.org>
45098
45099         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
45100         Wildenhues.
45101
45102 2008-09-20  Bruno Haible  <bruno@clisp.org>
45103
45104         Ensure that wint_t gets defined on IRIX 5.3.
45105         * lib/wchar.in.h (wint_t): Define if not defined by the system.
45106         * lib/wctype.in.h (wint_t): Likewise.
45107         (__wctype_wint_t): Remove type.
45108         (isw*): Use wint_t instead of __wctype_wint_t.
45109         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
45110         * modules/wchar (Files): Add m4/wint_t.m4.
45111         (Makefile.am): Substitute HAVE_WINT_T.
45112         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
45113         * tests/test-wctype.c: Check that wint_t is defined.
45114         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
45115         * doc/posix-headers/wctype.texi: Likewise.
45116         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45117
45118 2008-09-18  Bruno Haible  <bruno@clisp.org>
45119
45120         * gnulib-tool (func_exit): Update comment.
45121
45122 2008-09-18  Simon Josefsson  <simon@josefsson.org>
45123
45124         * modules/getaddrinfo (Depends-on): Remove strdup, this module
45125         assumes strdup exists and does not depend on strdup to return
45126         ENOMEM on out of memory conditions.
45127
45128 2008-09-18  Bruno Haible  <bruno@clisp.org>
45129
45130         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
45131         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
45132         digits for the exponent.
45133
45134 2008-09-18  Jim Meyering  <meyering@redhat.com>
45135             Bruno Haible  <bruno@clisp.org>
45136
45137         * lib/vasnprintf.c (decimal_point_char): Define also if
45138         NEED_PRINTF_INFINITE_LONG_DOUBLE.
45139
45140 2008-09-16  Bruno Haible  <bruno@clisp.org>
45141         and Eric Blake  <ebb9@byu.net>
45142
45143         vasnprintf: support Irix 5.3
45144         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
45145         that mishandle long double infinity.
45146         Reported by Tom G. Christensen.
45147
45148 2008-09-16  Bruno Haible  <bruno@clisp.org>
45149
45150         * doc/glibc-functions/scandir.texi: Mention the function is missing on
45151         Solaris 9.
45152         * doc/glibc-functions/alphasort.texi: Likewise.
45153         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
45154
45155 2008-09-16  Jim Meyering  <meyering@redhat.com>
45156
45157         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
45158         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
45159         a umask modification leak out of a subshell.  Otherwise, the
45160         opensolaris /bin/sh would be accepted and thus cause unwarranted
45161         failures in the coreutils test suite.
45162
45163 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
45164
45165         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
45166         to succeed.
45167
45168 2008-09-16  Jim Meyering  <meyering@redhat.com>
45169
45170         avoid spurious test failure when library is built without ACL support
45171         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
45172         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
45173         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
45174         * tests/test-copy-acl.sh: Likewise.
45175
45176 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45177
45178         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
45179         based on character occurrence counts.
45180
45181 2008-09-15  Eric Blake  <ebb9@byu.net>
45182
45183         tests: avoid some compiler warnings
45184         * tests/test-memchr.c (main): Pass NULL indirectly.
45185         * tests/test-closein.c (main): Avoid unused variable.
45186
45187 2008-09-15  Bruno Haible  <bruno@clisp.org>
45188
45189         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
45190         are missing on OpenBSD 4.0 individually.
45191         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45192
45193 2008-09-15  Bruno Haible  <bruno@clisp.org>
45194
45195         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
45196         * doc/posix-functions/strerror.texi: Mention also Cygwin.
45197         * doc/posix-functions/perror.texi: Likewise.
45198         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
45199         is missing.
45200         Reported by Eric Blake.
45201
45202         * lib/errno.in.h: Use replacement values >= 2000.
45203         Reported by Eric Blake.
45204
45205 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45206
45207         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
45208         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
45209         limit.
45210         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
45211         compareseq was aborted.
45212
45213 2008-09-14  Bruno Haible  <bruno@clisp.org>
45214
45215         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
45216         yvec_edit_count.
45217         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
45218         (fstrcmp_bounded): Simplify result computation accordingly.
45219
45220 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45221
45222         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
45223         (fstrcmp): Define in terms of fstrcmp_bounded.
45224         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
45225         lower_bound argument.
45226         Return quickly if the result is certainly < lower_bound.
45227         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
45228
45229 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45230
45231         * lib/diffseq.h (EARLY_ABORT): New macro.
45232         (compareseq): Change return type to bool. Return true when EARLY_ABORT
45233         evaluates to true.
45234
45235 2008-09-14  Bruno Haible  <bruno@clisp.org>
45236
45237         * modules/perror-tests: New file.
45238         * tests/test-perror.sh: New file.
45239         * tests/test-perror.c: New file.
45240
45241         New module 'perror'.
45242         * lib/stdio.in.h (perror): New declaration.
45243         * lib/perror.c: New file.
45244         * m4/perror.m4: New file.
45245         * modules/perror: New file.
45246         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
45247         * doc/posix-functions/perror.texi: Mention the perror module.
45248         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
45249         REPLACE_PERROR.
45250         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
45251         REPLACE_PERROR.
45252
45253 2008-09-14  Bruno Haible  <bruno@clisp.org>
45254
45255         * modules/stdio (Makefile.am): Reorder to match the order in
45256         lib/stdio.in.h.
45257         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45258
45259 2008-09-13  Bruno Haible  <bruno@clisp.org>
45260
45261         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
45262
45263 2008-09-13  Bruno Haible  <bruno@clisp.org>
45264
45265         Extend strerror to cover the added errno values.
45266         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
45267         (rpl_strerror): Provide error messages for the added errno values and
45268         for the WSA* values.
45269         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
45270         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
45271         strerror.
45272         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
45273         * modules/strerror (Depends-on): Add errno.
45274         * doc/posix-functions/strerror.texi: Document the change.
45275         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
45276         and EOVERFLOW.
45277
45278 2008-09-13  Bruno Haible  <bruno@clisp.org>
45279
45280         * modules/EOVERFLOW: Remove file.
45281         * m4/eoverflow.m4: Remove file.
45282         * modules/EOVERFLOW-tests: Remove file.
45283         * tests/test-EOVERFLOW.c: Remove file.
45284         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
45285         * modules/ftell (Depends-on): Likewise.
45286         * modules/getdelim (Depends-on): Likewise.
45287         * modules/getugroups (Depends-on): Likewise.
45288         * modules/poll (Depends-on): Likewise.
45289         * modules/snprintf (Depends-on): Likewise.
45290         * modules/sprintf-posix (Depends-on): Likewise.
45291         * modules/vasnprintf (Depends-on): Likewise.
45292         * modules/vasprintf (Depends-on): Likewise.
45293         * modules/vfprintf-posix (Depends-on): Likewise.
45294         * modules/vsnprintf (Depends-on): Likewise.
45295         * modules/vsprintf-posix (Depends-on): Likewise.
45296         * modules/xvasprintf (Depends-on): Likewise.
45297         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45298         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
45299         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
45300         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
45301         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45302         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
45303         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
45304         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
45305         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45306         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
45307         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
45308         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
45309         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45310         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
45311         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
45312         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
45313         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45314         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
45315         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
45316         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
45317         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45318         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
45319         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
45320         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
45321         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
45322         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45323         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
45324         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
45325         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
45326         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
45327         * MODULES.html.sh: Remove EOVERFLOW.
45328         * NEWS: Mention the change.
45329
45330 2008-09-13  Bruno Haible  <bruno@clisp.org>
45331
45332         * modules/errno-tests: New file.
45333         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
45334
45335         * lib/errno.in.h: New file.
45336         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
45337         * modules/errno: New file.
45338         * doc/posix-headers/errno.texi: Update documentation.
45339         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
45340
45341 2008-09-13  Bruno Haible  <bruno@clisp.org>
45342
45343         * tests/test-poll.c: Use #if for native Windows, rather than testing
45344         __MSVCRT__.
45345
45346 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45347             Bruno Haible  <bruno@clisp.org>
45348
45349         * lib/glob.c: Don't include <pwd.h> on native Windows.
45350         (WINDOWS32): New macro.
45351         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
45352
45353 2008-09-13  Bruno Haible  <bruno@clisp.org>
45354
45355         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
45356         (ETIMEDOUT): Remove macro.
45357         (glthread_cond_timedwait_multithreaded): New declaration.
45358         (glthread_cond_timedwait): Use it.
45359         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
45360         (glthread_cond_timedwait_multithreaded): New function.
45361
45362 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
45363
45364         * modules/poll-tests: Do not check for io.h.
45365         * tests/test-poll.c: Check for __MSVCRT__ instead.
45366
45367 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
45368
45369         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
45370         * modules/poll-tests: Add inet_pton, stdbool, sockets.
45371         * tests/test-poll.c: Use them.  Use _pipe on Windows.
45372
45373 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
45374
45375         * modules/poll-tests: New.
45376         * tests/test-poll.c: New.
45377
45378 2008-09-12  Eric Blake  <ebb9@byu.net>
45379
45380         frexp: test for NetBSD failure on -0.0
45381         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
45382         not all, bugs from NetBSD 3.0 have been fixed.
45383         * doc/posix-functions/frexp.texi (frexp): Document bug.
45384         Reported by Thomas Klausner.
45385
45386         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
45387         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
45388         literal -0.0.
45389         Reported by Jonathan C. Patschke <jp@centtech.com>.
45390
45391 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45392
45393         * lib/glthread/cond.h: Use dummy implementation also if
45394         USE_WIN32_THREADS.
45395
45396 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45397
45398         * modules/fnmatch-posix (License): Change to LGPLv2+.
45399         * modules/fnmatch-gnu (License): Likewise.
45400
45401 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45402
45403         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
45404
45405 2008-09-11  Jim Meyering  <meyering@redhat.com>
45406
45407         * users.txt: Add gtk-vnc.
45408
45409 2008-09-08  Simon Josefsson  <simon@josefsson.org>
45410
45411         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
45412         rotate amounts.
45413
45414         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
45415         required for 16-bit and 8-bit rotates.
45416         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
45417         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
45418         UINT8_MAX instead of hard-coded constants.
45419         Suggested by Paul Eggert.
45420
45421 2008-09-07  Bruno Haible  <bruno@clisp.org>
45422
45423         * tests/test-striconveh.c (main): Check behaviour when converting from
45424         UTF-7.
45425
45426         Make striconveh work better with stateful encodings.
45427         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
45428         that iconv does not increment the inptr when returning -1/EINVAL.
45429
45430 2008-09-07  Bruno Haible  <bruno@clisp.org>
45431
45432         * build-aux/config.rpath: Update according to libtool-2.2.6.
45433         * build-aux/config.libpath: Likewise.
45434
45435 2008-09-06  Bruno Haible  <bruno@clisp.org>
45436
45437         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
45438         * lib/freadptr.c (freadptr): Likewise.
45439         * lib/freadseek.c (freadptrinc): Likewise.
45440         Reported by Simon Josefsson.
45441
45442 2008-09-06  Bruno Haible  <bruno@clisp.org>
45443
45444         * modules/freadptr (License): Change to LGPLv2+.
45445         * modules/freadseek (License): Likewise.
45446         Suggested by Eric Blake.
45447
45448         * modules/memchr2 (License): Change to LGPLv2+.
45449         Approved by Eric Blake.
45450
45451 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45452             Bruno Haible  <bruno@clisp.org>
45453
45454         Make gnulib-tool work with native 'sed' on AIX.
45455         * gnulib-tool (sed_noop): New variable.
45456         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
45457         func_add_or_update, func_create_testdir): Use it to initialize sed
45458         script variables.
45459         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45460
45461 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
45462             Bruno Haible  <bruno@clisp.org>
45463
45464         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
45465         also works after #include directives.
45466
45467 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
45468
45469         getdate.y: reject an out-of-range timezone value
45470         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
45471         the range [-24...+24].  When specified with only one or two digits,
45472         * tests/test-getdate.c: Tests for the fix.
45473         * doc/getdate.texi: Document this change.
45474
45475 2008-09-03  Bruno Haible  <bruno@clisp.org>
45476
45477         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
45478
45479 2008-09-02  Simon Josefsson  <simon@josefsson.org>
45480
45481         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
45482         <bruce.korb@gmail.com> with ideas from Ben Pfaff
45483         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
45484         Blake <ebb9@byu.net>.
45485
45486         * tests/test-bitrotate.c: Add more test vectors.
45487
45488 2008-09-02  Eric Blake  <ebb9@byu.net>
45489
45490         vasnprintf-posix: handle large precision via %.*d
45491         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
45492         when handling it ourselves.
45493         * tests/test-vasnprintf-posix.c (test_function): Add test.
45494         * tests/test-snprintf-posix.h (test_function): Likewise.
45495         * tests/test-sprintf-posix.h (test_function): Likewise.
45496         * tests/test-vasprintf-posix.c (test_function): Likewise.
45497         Reported by Alain Guibert.
45498
45499 2008-09-01  Eric Blake  <ebb9@byu.net>
45500
45501         c-stack: make configure-time check more robust
45502         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
45503         successful sigaction call.
45504         Reported by Tom G. Christensen.
45505
45506 2008-09-01  Bruno Haible  <bruno@clisp.org>
45507
45508         New module 'findprog-lgpl'.
45509         * modules/findprog-lgpl: New file.
45510         * lib/findprog-lgpl.c: New file.
45511         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
45512         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
45513         to decide whether to use strdup or xstrdup, concatenated_filename or
45514         xconcatenated_filename.
45515
45516 2008-09-01  Bruno Haible  <bruno@clisp.org>
45517
45518         Split module 'concat-filename' into 'concat-filename' (LGPL) and
45519         'xconcat-filename' (GPL).
45520         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
45521         (License): Change to LGPLv2+.
45522         * modules/xconcat-filename: New file.
45523         * lib/concat-filename.h (concatenated_filename): Change specification.
45524         (xconcatenated_filename): New declaration.
45525         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
45526         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
45527         memory situations.
45528         * lib/xconcat-filename.c: New file.
45529         * NEWS: Mention the change.
45530         * lib/findprog.c: Include concat-filename.h, not filename.h.
45531         (find_in_path): Use xconcatenated_filename instead of
45532         concatenated_filename.
45533         * lib/javacomp.c: Include concat-filename.h, not filename.h.
45534         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
45535         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
45536         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
45537         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
45538         instead of concatenated_filename.
45539         * lib/javaexec.c: Include concat-filename.h, not filename.h.
45540         (execute_java_class): Use xconcatenated_filename instead of
45541         concatenated_filename.
45542         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
45543         * modules/javacomp (Depends-on): Likewise.
45544         * modules/javaexec (Depends-on): Likewise.
45545
45546 2008-09-01  Bruno Haible  <bruno@clisp.org>
45547
45548         Split module 'filename' into 'filename' and 'concat-filename'.
45549         * modules/filename: Keep only lib/filename.h.
45550         (License): Change to LGPLv2+.
45551         * modules/concat-filename: New file, extracted from modules/filename.
45552         * lib/filename.h (concatenated_filename): Remove declaration.
45553         * lib/concat-filename.h: New file, extracted from lib/filename.h.
45554         * lib/concat-filename.c: Include concat-filename.h.
45555         * NEWS: Mention the change.
45556
45557 2008-09-01  Simon Josefsson  <simon@josefsson.org>
45558
45559         * lib/bitrotate.h (rotl8, rotr8): Add.
45560
45561         * modules/bitrotate (configure.ac): Need
45562         AC_REQUIRE([AC_C_INLINE]).
45563         (Description): Mention stdint.h.  Reported by Bruno Haible
45564         <bruno@clisp.org>.
45565
45566         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
45567         Paolo Bonzini <bonzini@gnu.org>.
45568
45569 2008-08-31  Bruno Haible  <bruno@clisp.org>
45570
45571         Assume Solaris specific bi-arch conventions on Solaris systems.
45572         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
45573         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
45574         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
45575         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
45576         like acl_libdirstem.
45577         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
45578         acl_libdirstem.
45579         * NEWS: Mention the change.
45580         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
45581
45582 2008-08-31  Jim Meyering  <meyering@redhat.com>
45583
45584         * lib/strftime.h: Add comments describing the two added arguments.
45585
45586         remove duplicate #include directives
45587         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
45588         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
45589
45590 2008-08-31  Bruno Haible  <bruno@clisp.org>
45591
45592         New module 'sigpipe-die'.
45593         * modules/sigpipe-die: New file.
45594         * lib/sigpipe-die.h: New file.
45595         * lib/sigpipe-die.c: New file.
45596         * MODULES.html.sh (Signal handling): Add sigpipe-die.
45597
45598 2008-08-31  Bruno Haible  <bruno@clisp.org>
45599
45600         Don't override previously installed signal handlers.
45601         * lib/fatal-signal.c (saved_sigactions): New variable.
45602         (uninstall_handlers): Reset the signal to the saved handler, not
45603         to SIG_DFL (except when ignored).
45604         (install_handlers): Save the previous handlers.
45605
45606 2008-08-30  Bruno Haible  <bruno@clisp.org>
45607
45608         * gnulib-tool (func_reset_sigpipe): New function.
45609         (func_get_automake_snippet, func_modules_transitive_closure,
45610         func_import): Invoke it before a join command that reads from stdin,
45611         to avoid "echo: write error: Broken pipe" error messages on stderr.
45612         Reported by Sam Steingold <sds@gnu.org>.
45613
45614 2008-08-30  Bruno Haible  <bruno@clisp.org>
45615
45616         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
45617         Code copied from m4/open.m4.
45618         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
45619         access and the filename ends in a slash. Code copied from lib/open.c.
45620         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
45621         * tests/test-fopen.c (main): Check against bug with trailing slash.
45622
45623 2008-08-29  Bruno Haible  <bruno@clisp.org>
45624
45625         Avoid some "gcc -pedantic" warnings.
45626         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
45627         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
45628         * lib/dirent.in.h: Likewise.
45629         * lib/fcntl.in.h: Likewise.
45630         * lib/float.in.h: Likewise.
45631         * lib/iconv.in.h: Likewise.
45632         * lib/inttypes.in.h: Likewise.
45633         * lib/locale.in.h: Likewise.
45634         * lib/math.in.h: Likewise.
45635         * lib/netinet_in.in.h: Likewise.
45636         * lib/search.in.h: Likewise.
45637         * lib/signal.in.h: Likewise.
45638         * lib/stdarg.in.h: Likewise.
45639         * lib/stdint.in.h: Likewise.
45640         * lib/stdio.in.h: Likewise.
45641         * lib/stdlib.in.h: Likewise.
45642         * lib/string.in.h: Likewise.
45643         * lib/strings.in.h: Likewise.
45644         * lib/sys_select.in.h: Likewise.
45645         * lib/sys_socket.in.h: Likewise.
45646         * lib/sys_stat.in.h: Likewise.
45647         * lib/sys_time.in.h: Likewise.
45648         * lib/sysexits.in.h: Likewise.
45649         * lib/time.in.h: Likewise.
45650         * lib/unistd.in.h: Likewise.
45651         * lib/wchar.in.h: Likewise.
45652         * lib/wctype.in.h: Likewise.
45653         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
45654         * modules/fchdir (Makefile.am): Likewise.
45655         * modules/fcntl (Makefile.am): Likewise.
45656         * modules/float (Makefile.am): Likewise.
45657         * modules/iconv_open (Makefile.am): Likewise.
45658         * modules/inttypes (Makefile.am): Likewise.
45659         * modules/locale (Makefile.am): Likewise.
45660         * modules/math (Makefile.am): Likewise.
45661         * modules/netinet_in (Makefile.am): Likewise.
45662         * modules/search (Makefile.am): Likewise.
45663         * modules/signal (Makefile.am): Likewise.
45664         * modules/stdarg (Makefile.am): Likewise.
45665         * modules/stdint (Makefile.am): Likewise.
45666         * modules/stdio (Makefile.am): Likewise.
45667         * modules/stdlib (Makefile.am): Likewise.
45668         * modules/string (Makefile.am): Likewise.
45669         * modules/strings (Makefile.am): Likewise.
45670         * modules/sys_select (Makefile.am): Likewise.
45671         * modules/sys_socket (Makefile.am): Likewise.
45672         * modules/sys_stat (Makefile.am): Likewise.
45673         * modules/sys_time (Makefile.am): Likewise.
45674         * modules/sysexits (Makefile.am): Likewise.
45675         * modules/time (Makefile.am): Likewise.
45676         * modules/unistd (Makefile.am): Likewise.
45677         * modules/wchar (Makefile.am): Likewise.
45678         * modules/wctype (Makefile.am): Likewise.
45679         Reported by Reuben Thomas <rrt@sc3d.org>.
45680
45681 2008-08-29  Bruno Haible  <bruno@clisp.org>
45682
45683         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
45684         any more.
45685
45686 2008-08-29  Simon Josefsson  <simon@josefsson.org>
45687
45688         * MODULES.html.sh (Misc): Add bitrotate.
45689
45690         * modules/bitrotate: New file.
45691
45692         * lib/bitrotate.h: New file.
45693
45694         * modules/bitrotate-tests: New file.
45695
45696         * tests/test-bitrotate.c: New file.
45697
45698         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
45699         on the bitrotate module.
45700
45701         * lib/arctwo.c: Use new bitrotate module.
45702
45703 2008-08-29  Jim Meyering  <meyering@redhat.com>
45704
45705         bootstrap: merge changes from coreutils
45706         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
45707         of copied files.  Remove a kludge, now that this is fixed.
45708         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
45709         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
45710         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
45711
45712 2008-08-29  Bruno Haible  <bruno@clisp.org>
45713
45714         * MODULES.html.sh: Remove --cvs-urls option.
45715
45716 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
45717
45718         maint.mk: adjust to file name change
45719         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
45720
45721 2008-08-28  Jim Meyering  <meyering@redhat.com>
45722
45723         * modules/getndelim2 (License): Relicense to LGPLv2+.
45724         Approved by Richard Stallman for the version of 1995, and by
45725         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
45726
45727 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
45728
45729         * lib/getdelim.c (flockfile, funlockfile): Make all of them
45730         dummy if one is not available.  Do not touch them if
45731         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
45732         (getc_maybe_unlocked): New.
45733         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
45734
45735 2008-08-26  Eric Blake  <ebb9@byu.net>
45736
45737         doc/INSTALL: resync from autoconf
45738         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
45739         (INSTALL_PRELUDE): Delete; this is done more efficiently by
45740         moving...
45741         * install.texi [!autoconf]: ...here.  Resync from autoconf.
45742         * INSTALL: Regenerate.
45743         * INSTALL.ISO: New file.
45744         * INSTALL.UTF-8: Likewise.
45745
45746 2008-08-26  Jim Meyering  <meyering@redhat.com>
45747
45748         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
45749         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
45750         these definitions conditional, so that they may be overridden, too.
45751
45752 2008-08-26  Bruno Haible  <bruno@clisp.org>
45753
45754         Generate INSTALL file variants with prettier quotes.
45755         * doc/Makefile (INSTALL_PRELUDE): New macro.
45756         (INSTALL): Use it.
45757         (INSTALL.ISO, INSTALL.UTF-8): New rules.
45758
45759 2008-08-26  Bruno Haible  <bruno@clisp.org>
45760
45761         Run makeinfo in an English locale.
45762         * doc/Makefile (MAKEINFO): New variable.
45763
45764 2008-08-26  Bruno Haible  <bruno@clisp.org>
45765
45766         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
45767         Suggested by Eric Blake.
45768
45769 2008-08-25  Bruno Haible  <bruno@clisp.org>
45770
45771         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
45772
45773 2008-08-25  Eric Blake  <ebb9@byu.net>
45774
45775         c-stack: test that stack overflow can be caught
45776         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
45777         that platform allows handling stack overflow; at least OS/2 EMX
45778         has sigaltstack, but crashes before transferring control to
45779         handler on stack overflow.
45780         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
45781         check for HAVE_STACK_OVERFLOW_HANDLING.
45782         Reported by Elbert Pol.
45783
45784 2008-08-25  Bruno Haible  <bruno@clisp.org>
45785
45786         * doc/posix-functions/strftime.texi: Fix description of strftime
45787         module.
45788
45789 2008-08-24  Bruno Haible  <bruno@clisp.org>
45790
45791         * tests/uniwidth/test-uc_width2.c: New file.
45792         * tests/uniwidth/test-uc_width2.sh: New file.
45793         * modules/uniwidth/width-tests (Files): Add the new files.
45794         (TESTS): Add uniwidth/test-uc_width2.sh.
45795         (TESTS_ENVIRONMENT): New variable.
45796         (check_PROGRAMS): Add test-uc_width2.
45797         (test_uc_width2_SOURCES): New variable.
45798
45799         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
45800         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
45801         not 0x00AB.
45802         Reported by Alexander V. Lukyanov <lav@netis.ru>.
45803
45804 2008-08-22  Eric Blake  <ebb9@byu.net>
45805
45806         test-lock, test-tls: mention why a test is skipped
45807         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
45808         skipped.
45809         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
45810
45811         count-one-bits: relax license
45812         * modules/count-one-bits (License): Relicense to LGPLv2+.
45813         Suggested by Ludovic Courtès, approved by Ben Pfaff.
45814
45815 2008-08-22  Andreas Schwab  <schwab@suse.de>
45816
45817         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
45818         Remove spurious space in assignment.
45819
45820 2008-08-21  Simon Josefsson  <simon@josefsson.org>
45821
45822         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
45823         Paul Eggert <eggert@CS.UCLA.EDU>.
45824
45825 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
45826
45827         * modules/gettext: Add m4/threadlib.m4.
45828
45829 2008-08-19  Eric Blake  <ebb9@byu.net>
45830
45831         test-c-stack: fix compilation failure on FreeBSD 5.0
45832         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
45833         headers before <sys/resource.h>.
45834         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
45835         the bug.
45836         Reported by Nelson H. F. Beebe.
45837
45838         strverscmp: migrate from "strverscmp.h" to <string.h>
45839         * modules/string (Makefile.am): Add new hooks.
45840         * modules/strverscmp (Files): Remove strverscmp.h.
45841         (Depends-on): Add string.
45842         (configure.ac): Add indicator.
45843         (Include): Mention new header.
45844         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
45845         defaults.
45846         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
45847         results.
45848         * lib/strverscmp.h: Delete.
45849         * lib/string.in.h (strverscmp): Provide declaration, when needed.
45850         * tests/test-strverscmp.c (includes): Adjust client.
45851         * lib/check-version.c (includes): Likewise.
45852         * NEWS: Document the change.
45853
45854         strverscmp: add unit test
45855         * modules/strverscmp-tests: New file.
45856         * tests/test-strverscmp.c: Likewise.
45857
45858 2008-08-19  Simon Josefsson  <simon@josefsson.org>
45859
45860         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
45861         regarding Windows crypto stuff, from Mono.
45862
45863 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
45864
45865         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
45866         if present, for intel RND.  Return error on failures.
45867
45868 2008-08-18  Ben Pfaff  <blp@gnu.org>
45869
45870         gitlog-to-changelog: give better diagnostic for failed pipe-open
45871         * build-aux/gitlog-to-changelog: Improve error message: suggest
45872         that the version of Git may be too old.
45873
45874 2008-08-18  Simon Josefsson  <simon@josefsson.org>
45875
45876         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
45877         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
45878
45879 2008-08-18  Bruno Haible  <bruno@clisp.org>
45880
45881         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
45882         pthread_in_use().
45883
45884 2008-08-18  Bruno Haible  <bruno@clisp.org>
45885
45886         * lib/glthread/threadlib.c: Include <pthread.h>.
45887
45888 2008-08-18  Bruno Haible  <bruno@clisp.org>
45889
45890         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
45891         glthread_recursive_lock_* macros.
45892         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
45893         Fix syntax error.
45894
45895 2008-08-18  Bruno Haible  <bruno@clisp.org>
45896
45897         * lib/glthread/thread.c: Avoid forcing a context switch right after
45898         thread creation.
45899
45900 2008-08-17  Bruno Haible  <bruno@clisp.org>
45901
45902         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
45903         * lib/glthread/thread.h: Provide Win32 specific implementation.
45904         * modules/thread (Files): Add lib/glthread/thread.c.
45905         (Depends-on): Add lock.
45906         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
45907
45908 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45909
45910         New module 'yield'.
45911         * modules/yield: New file.
45912         * lib/glthread/yield.h: New file.
45913         * m4/yield.m4: New file.
45914         * MODULES.html.sh (Multithreading): Add yield.
45915
45916 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45917
45918         New module 'thread'.
45919         * modules/thread: New file.
45920         * lib/glthread/thread.h: New file.
45921         * m4/thread.m4: New file.
45922         * MODULES.html.sh (Multithreading): Add thread.
45923
45924 2008-08-17  Bruno Haible  <bruno@clisp.org>
45925
45926         * lib/glthread/lock.h: Include <stdlib.h> always.
45927         * lib/glthread/tls.h: Likewise.
45928         * lib/glthread/cond.h: Likewise.
45929
45930 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45931
45932         New module 'cond'.
45933         * modules/cond: New file.
45934         * lib/glthread/cond.h: New file.
45935         * lib/glthread/cond.c: New file.
45936         * m4/cond.m4: New file.
45937         * MODULES.html.sh (Multithreading): Add cond.
45938
45939 2008-08-16  Eric Blake  <ebb9@byu.net>
45940
45941         c-stack: fix regression on Irix 5.3 from 2008-06-21
45942         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
45943         sa_sigaction...
45944         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
45945         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
45946         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
45947         * modules/signal (Makefile.am): Use the value.
45948         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
45949         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
45950         * doc/posix-headers/signal.texi (signal.h): Document this
45951         portability issue.
45952         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
45953         Reported by Tom G. Christensen.
45954
45955 2008-08-17  Bruno Haible  <bruno@clisp.org>
45956
45957         New module 'threadlib'.
45958         * modules/threadlib: New file.
45959         * lib/glthread/threadlib.c: New file, extracted from
45960         lib/glthread/lock.c.
45961         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
45962         functions.
45963         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
45964         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
45965         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
45966         macros.
45967         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
45968         (gl_DISABLE_THREADS): Remove macro.
45969         * modules/lock (Files): Remove build-aux/config.rpath.
45970         (Depends-on): Remove havelib. Add threadlib.
45971         (configure.ac-early): Remove section.
45972         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
45973         * modules/tls (Depends-on): Remove lock. Add threadlib.
45974         (Link): New section, copied from threadlib.
45975         * MODULES.html.sh (Multithreading): Add threadlib.
45976
45977 2008-08-14  Bruno Haible  <bruno@clisp.org>
45978
45979         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
45980         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
45981         glthread_rwlock_unlock, glthread_rwlock_destroy,
45982         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
45983         glthread_recursive_lock_destroy): Define as macros always.
45984         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
45985         glthread_lock_lock.
45986         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
45987         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
45988         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
45989         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
45990         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
45991         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
45992         (glthread_recursive_lock_lock_func): Renamed from
45993         glthread_recursive_lock_lock.
45994         (glthread_recursive_lock_unlock_func): Renamed from
45995         glthread_recursive_lock_unlock.
45996         (glthread_recursive_lock_destroy_func): Renamed from
45997         glthread_recursive_lock_destroy.
45998
45999 2008-08-14  Bruno Haible  <bruno@clisp.org>
46000
46001         * lib/glthread/lock.h: Renamed from lib/lock.h.
46002         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
46003         * lib/glthread/tls.h: Renamed from lib/tls.h.
46004         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
46005         * lib/fstrcmp.c: Update includes.
46006         * lib/strsignal.c: Update includes.
46007         * modules/lock (Files, Makefile.am): Update.
46008         (Include): Change to "glthread/lock.h".
46009         * modules/tls (Files, Makefile.am): Update.
46010         (Include): Change to "glthread/tls.h".
46011         * tests/test-lock.c: Update includes.
46012         * tests/test-tls.c: Update includes.
46013         * NEWS: Mention the renamed header files.
46014
46015 2008-08-11  Jim Meyering  <meyering@redhat.com>
46016
46017         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
46018
46019 2008-08-11  Eric Blake  <ebb9@byu.net>
46020
46021         test-c-stack: avoid C99-ism
46022         * tests/test-c-stack.c (main): Fix whitespace, move declaration
46023         before statement.
46024         Reported by Alain Guibert.
46025
46026 2008-08-10  Jim Meyering  <meyering@redhat.com>
46027
46028         ensure that return value of uinttostr et al are not ignored
46029         * lib/inttostr.h (__GNUC_PREREQ): Define.
46030         (__attribute_warn_unused_result__): Define.
46031         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
46032
46033 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
46034
46035         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
46036         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
46037
46038 2008-08-07  Jim Meyering  <meyering@redhat.com>
46039
46040         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
46041
46042         * modules/mkstemp (License): Relicense under LGPLv2+.
46043         * modules/tempname (License): Likewise.
46044
46045 2008-08-06  Bruno Haible  <bruno@clisp.org>
46046
46047         * lib/poll.c (poll): Further micro-optimization.
46048
46049 2008-08-06  Jim Meyering  <meyering@redhat.com>
46050
46051         inet_pton.c: use locale-independent tolower
46052         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
46053         (inet_pton6): Use c_tolower rather than tolower.
46054         * modules/inet_pton (Depends-on): Add c-ctype.
46055
46056 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
46057
46058         * lib/poll.c (poll): Avoid division when timeout is 0, cache
46059         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
46060
46061 2008-08-06  Jim Meyering  <meyering@redhat.com>
46062
46063         * modules/inet_pton (License): Relicense under LGPLv2+.
46064
46065 2008-08-03  Bruno Haible  <bruno@clisp.org>
46066
46067         Additional non-aborting API for lock and tls.
46068         * lib/lock.h: Include <errno.h>.
46069         (glthread_lock_init): New macro/function.
46070         (gl_lock_init): Define as wrapper around glthread_lock_init.
46071         (glthread_lock_lock): New macro/function.
46072         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
46073         (glthread_lock_unlock): New macro/function.
46074         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
46075         (glthread_lock_destroy): New macro/function.
46076         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
46077         (glthread_rwlock_init): New macro/function.
46078         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
46079         (glthread_rwlock_rdlock): New macro/function.
46080         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
46081         (glthread_rwlock_wrlock): New macro/function.
46082         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
46083         (glthread_rwlock_unlock): New macro/function.
46084         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
46085         (glthread_rwlock_destroy): New macro/function.
46086         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
46087         (glthread_recursive_lock_init): New macro/function.
46088         (gl_recursive_lock_init): Define as wrapper around
46089         glthread_recursive_lock_init.
46090         (glthread_recursive_lock_lock): New macro/function.
46091         (gl_recursive_lock_lock): Define as wrapper around
46092         glthread_recursive_lock_lock.
46093         (glthread_recursive_lock_unlock): New macro/function.
46094         (gl_recursive_lock_unlock): Define as wrapper around
46095         glthread_recursive_lock_unlock.
46096         (glthread_recursive_lock_destroy): New macro/function.
46097         (gl_recursive_lock_destroy): Define as wrapper around
46098         glthread_recursive_lock_destroy.
46099         (glthread_once): New macro/function.
46100         (gl_once): Define as wrapper around glthread_once.
46101         Update function declarations.
46102         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
46103         glthread_rwlock_init. Return error code.
46104         (glthread_rwlock_rdlock_multithreaded): Renamed from
46105         glthread_rwlock_rdlock. Return error code.
46106         (glthread_rwlock_wrlock_multithreaded): Renamed from
46107         glthread_rwlock_wrlock. Return error code.
46108         (glthread_rwlock_unlock_multithreaded): Renamed from
46109         glthread_rwlock_unlock. Return error code.
46110         (glthread_rwlock_destroy_multithreaded): Renamed from
46111         glthread_rwlock_destroy. Return error code.
46112         (glthread_recursive_lock_init_multithreaded): Renamed from
46113         glthread_recursive_lock_init. Return error code.
46114         (glthread_recursive_lock_lock_multithreaded): Renamed from
46115         glthread_recursive_lock_lock. Return error code.
46116         (glthread_recursive_lock_unlock_multithreaded): Renamed from
46117         glthread_recursive_lock_unlock. Return error code.
46118         (glthread_recursive_lock_destroy_multithreaded): Renamed from
46119         glthread_recursive_lock_destroy. Return error code.
46120         (glthread_once_call): Make static.
46121         (glthread_once_multithreaded): Renamed from glthread_once.
46122         * lib/tls.h: Include <errno.h>.
46123         (glthread_tls_key_init): New macro/function.
46124         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
46125         (glthread_tls_set): New macro/function.
46126         (gl_tls_set): Define as wrapper around glthread_tls_set.
46127         (glthread_tls_key_destroy): New macro/function.
46128         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
46129         Update function declarations.
46130         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
46131         glthread_tls_get.
46132         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46133
46134 2008-08-04  Eric Blake  <ebb9@byu.net>
46135
46136         gnumakefile: use space, not TAB, outside of targets
46137         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
46138
46139 2008-08-02  Jim Meyering  <meyering@redhat.com>
46140
46141         getdate.y: avoid locale-dependent date parsing failure
46142         In Turkish locales, getdate would fail to recognize keywords
46143         containing a lowercase "i".  The solution is not to rely on
46144         locale-sensitive case-conversion.
46145         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
46146         (lookup_word): Use c_toupper in place of toupper.
46147         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
46148         Reported by Vefa Bicakci <bicave@superonline.com> in
46149         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
46150         * modules/getdate (Depends-on): Add c-ctype.
46151
46152 2008-08-02  Bruno Haible  <bruno@clisp.org>
46153
46154         * gnulib-tool (func_import): When updating or creating a .gitignore
46155         file, prepend each added line with a slash, and ignore leading slashes
46156         from the existing lines.
46157         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
46158
46159 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46160
46161         Portability fix for GNU make 3.79.1.
46162         * top/GNUmakefile: Avoid 'else COND', which older GNU make
46163         versions do not understand.
46164
46165 2008-08-01  Bruno Haible  <bruno@clisp.org>
46166
46167         Work around bug of HP-UX 10.20 cc with -0.0 literal.
46168         * tests/test-isnanf.h (zero): New variable.
46169         (main): Avoid literal -0.0f.
46170         * tests/test-isnand.h (zero): New variable.
46171         (main): Avoid literal -0.0.
46172         * tests/test-isnanl.h (zero): New variable.
46173         (main): Avoid literal -0.0L.
46174         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
46175         (test_float, test_double, test_long_double): Avoid literals -0.0f,
46176         -0.0, -0.0L.
46177         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
46178         (test_signbitd): Avoid literal -0.0.
46179         (test_signbitl): Avoid literal -0.0L.
46180         * tests/test-ceilf1.c (zero): New variable.
46181         (main): Avoid literal -0.0f.
46182         * tests/test-ceill.c (zero): New variable.
46183         (main): Avoid literal -0.0L.
46184         * tests/test-floorf1.c (zero): New variable.
46185         (main): Avoid literal -0.0f.
46186         * tests/test-floorl.c (zero): New variable.
46187         (main): Avoid literal -0.0L.
46188         * tests/test-roundf1.c (zero): New variable.
46189         (main): Avoid literal -0.0f.
46190         * tests/test-round1.c (zero): New variable.
46191         (main): Avoid literal -0.0.
46192         * tests/test-roundl.c (zero): New variable.
46193         (main): Avoid literal -0.0L.
46194         * tests/test-truncf1.c (zero): New variable.
46195         (main): Avoid literal -0.0f.
46196         * tests/test-trunc1.c (zero): New variable.
46197         (main): Avoid literal -0.0.
46198         * tests/test-truncl.c (zero): New variable.
46199         (main): Avoid literal -0.0L.
46200         * tests/test-frexp.c (zero): New variable.
46201         (main): Avoid literal -0.0.
46202         * tests/test-frexpl.c (zero): New variable.
46203         (main): Avoid literal -0.0L.
46204         * tests/test-ldexpl.c (zero): New variable.
46205         (main): Avoid literal -0.0L.
46206         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
46207         (zerod, zerol): New variables.
46208         (test_function): Avoid literals -0.0, -0.0L.
46209         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
46210         (zerod, zerol): New variables.
46211         (test_function): Avoid literals -0.0, -0.0L.
46212         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
46213         (zerod, zerol): New variables.
46214         (test_function): Avoid literals -0.0, -0.0L.
46215         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
46216         (zerod, zerol): New variables.
46217         (test_function): Avoid literals -0.0, -0.0L.
46218         * tests/test-strtod.c (zero): New variable.
46219         (main): Avoid literal -0.0.
46220         Reported by Jonathan C. Patschke <jp@centtech.com>.
46221
46222 2008-07-31  Jim Meyering  <meyering@redhat.com>
46223
46224         sha256.h: correct definition of SHA224_DIGEST_SIZE
46225         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
46226         Reported by Paulie Pena IV <paulie4@gmail.com>.
46227         Define as 224 / 8, rather than as a literal.
46228         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
46229         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
46230         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
46231
46232 2008-07-31  Bruno Haible  <bruno@clisp.org>
46233
46234         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
46235         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
46236         Reported by Jonathan Patschke <jp@centtech.com>.
46237
46238 2008-07-31  Bruno Haible  <bruno@clisp.org>
46239
46240         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
46241         Reported by Paolo Bonzini <bonzini@gnu.org>.
46242
46243 2008-07-30  Eric Blake  <ebb9@byu.net>
46244
46245         test-strtod: allow compilation without -lm
46246         * tests/test-strtod.c (main): Avoid link dependence on fabs.
46247         Reported by Dennis Clarke <blastwave@gmail.com>.
46248
46249 2008-07-28  Jim Meyering  <meyering@redhat.com>
46250
46251         bootstrap: work also when there are no .po files in po/
46252         * build-aux/bootstrap (update_po_files): Complete the change
46253         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
46254
46255 2008-07-27  Jim Meyering  <meyering@redhat.com>
46256
46257         * users.txt: Add zile.
46258
46259 2008-07-26  Ben Pfaff  <blp@gnu.org>
46260
46261         Add missing dependencies on new m4/exponent[fdl].m4 files.
46262         * modules/isnanf-nolibm: Add m4/exponentf.m4.
46263         * modules/isnand-nolibm: Add m4/exponentd.m4.
46264         * modules/isnanl-nolibm: Add m4/exponentl.m4.
46265         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
46266         m4/isnan[fdl].m4, because the macros actually used moved.
46267         Reported by Jim Meyering.
46268
46269 2008-07-14  Ben Pfaff  <blp@gnu.org>
46270
46271         Add isinf module.
46272         * lib/isinf.c: New file.
46273         * lib/math.in.h: Define isinf macro if we have decided to replace
46274         it.
46275         * m4/isinf.m4: New file.
46276         * m4/math_h.m4: Initialize and substitute variables for isinf
46277         module.
46278         * modules/isinf: New file.
46279         * modules/isinf-tests: New file.
46280         * modules/math: Add substitutions for new module.
46281         * tests/test-isinf.c: New file.
46282         * doc/posix-functions/isinf.texi: Mention new module.
46283         * MODULES.html.sh: Mention new module.
46284
46285 2008-07-14  Ben Pfaff  <blp@gnu.org>
46286
46287         Factor out some macros for use by additional modules.
46288         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
46289         exponentf.m4.
46290         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
46291         exponentd.m4.
46292         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
46293         file exponentl.m4.
46294         * m4/exponentf.m4: New file.
46295         * m4/exponentd.m4: New file.
46296         * m4/exponentl.m4: New file.
46297         * modules/isnanf: Use new file m4/exponentf.m4.
46298         * modules/isnand: Use new file m4/exponentd.m4.
46299         * modules/isnanl: Use new file m4/exponentl.m4.
46300
46301 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
46302
46303         mktime.c: normalize tp->tm_isdst value to -1/0/1.
46304         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
46305         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
46306         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
46307
46308         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
46309         readlink on platforms without PATH_MAX.
46310
46311 2008-07-21  Eric Blake  <ebb9@byu.net>
46312
46313         Warn, not fail, on stale version.
46314         * top/GNUmakefile (_curr-ver): Tone down previous patch.
46315
46316         Don't allow installation with stale devel version number.
46317         * top/GNUmakefile (_is-install-target): New macro.
46318         (_curr-ver): Forbid installation with stale version number.
46319
46320 2008-07-20  Bruno Haible  <bruno@clisp.org>
46321
46322         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
46323         TESTS_ENVIRONMENT.
46324         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
46325
46326 2008-07-20  Bruno Haible  <bruno@clisp.org>
46327
46328         * lib/c-stack.h (c_stack_action): Add documentation.
46329         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
46330
46331 2008-07-20  Bruno Haible  <bruno@clisp.org>
46332
46333         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
46334         * modules/readlink (License): Likewise.
46335
46336 2008-07-17  Eric Blake  <ebb9@byu.net>
46337
46338         * modules/c-stack (Link): Fix typo.
46339
46340         Make c-stack use libsigsegv, when available.
46341         * modules/c-stack (Depends-on): Add libsigsegv.
46342         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
46343         needed.
46344         * lib/c-stack.c (SIGSTKSZ): Define fallback.
46345         (segv_handler, overflow_handler, c_stack_action)
46346         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
46347         implementation when libsigsegv is available, but only when using
46348         the library is necessary.
46349         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
46350         comment, explaining why XSI check fails on Linux.
46351         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
46352         * tests/test-c-stack2.sh: Tweak skip message.
46353         * NEWS: Document new link-time requirements.
46354
46355 2008-07-16  Eric Blake  <ebb9@byu.net>
46356
46357         c-stack: Expose false positives when not using libsigsegv.
46358         * modules/c-stack-tests (Files): Expand test.
46359         * tests/test-c-stack.c (main): Add means to conditionally trigger
46360         non-overflow SIGSEGV.
46361         * tests/test-c-stack2.sh: New file.
46362
46363 2008-07-14  Bruno Haible  <bruno@clisp.org>
46364
46365         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
46366         Reported by Eric Blake.
46367
46368 2008-07-14  Sam Steingold  <sds@gnu.org>
46369             Bruno Haible  <bruno@clisp.org>
46370
46371         New module libsigsegv.
46372         * modules/libsigsegv: New file.
46373         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
46374         modifications.
46375         * MODULES.html.sh (Signal handling): New section.
46376
46377 2008-07-14  Bruno Haible  <bruno@clisp.org>
46378
46379         * modules/unictype/ctype-* (Description): Add the word "function".
46380         Improves the resulting doc in MODULES.html.
46381
46382 2008-07-12  Ben Pfaff  <blp@gnu.org>
46383
46384         Add longlong module.
46385         * modules/longlong: New file.
46386
46387 2008-07-12  Bruno Haible  <bruno@clisp.org>
46388
46389         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
46390         to empty.
46391
46392 2008-07-10  Ben Pfaff  <blp@gnu.org>
46393
46394         Add isnan module.
46395         * doc/posix-functions/isnan.texi: Mention new module.
46396         * lib/math.in.h: Define isnan macro if we have decided to replace
46397         it.
46398         * m4/isnan.m4: New file.
46399         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
46400         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
46401         also.
46402         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
46403         redundancy.
46404         * m4/math_h.m4: Initialize and substitute variables for isnan
46405         module.
46406         * modules/isnan: New file.
46407         * modules/isnan-tests: New file.
46408         * modules/math: Add substitutions for new module.
46409         * tests/test-isnan.c: New file.
46410         * MODULES.html.sh: Mention new module.
46411
46412 2008-07-10  Ben Pfaff  <blp@gnu.org>
46413
46414         Add isnanf module.
46415         * lib/isnanf.m4: New file.
46416         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
46417         (gl_HAVE_ISNANF_IN_LIBM): New macro.
46418         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
46419         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
46420         * modules/isnanf: New file.
46421         * modules/isnanf-tests: New file.
46422         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
46423         files.
46424         * tests/test-isnanf-nolibm.c: factored most of its contents into
46425         new file tests/test-isnanf.h.
46426         * tests/test-isnanf.h: New file.
46427         * tests/test-isnanf.c: New file.
46428         * MODULES.html.sh: Mention new module.
46429         * doc/glibc-functions/isnanf.texi: Mention new module.
46430
46431 2008-07-10  Ben Pfaff  <blp@gnu.org>
46432
46433         Add isnand module.
46434         * lib/isnand.h: New file.
46435         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
46436         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
46437         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
46438         functionality also.
46439         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
46440         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
46441         (gl_HAVE_ISNAND_IN_LIBM): New macro.
46442         * modules/isnand: New file.
46443         * modules/isnand-tests: New file.
46444         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
46445         files.
46446         * tests/test-isnand-nolibm.c: factored most of its contents into
46447         new file tests/test-isnand.h.
46448         * tests/test-isnand.h: New file.
46449         * tests/test-isnand.c: New file.
46450         * MODULES.html.sh: Mention new module.
46451
46452 2008-07-10  Ben Pfaff  <blp@gnu.org>
46453
46454         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
46455         * lib/isnand.h: Rename lib/isnand-nolibm.h.
46456         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
46457         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
46458         * modules/isnanf-nolibm: Update references to renamed files.
46459         * modules/isnand-nolibm: Likewise.
46460         * modules/isnanf-nolibm-tests: Likewise.
46461         * modules/isnand-nolibm-tests: Likewise.
46462         * lib/frexp.c: Likewise.
46463         * lib/isfinite.c: Likewise.
46464         * lib/signbitd.c: Likewise.
46465         * lib/signbitf.c: Likewise.
46466         * lib/vasnprintf.c: Likewise.
46467         * tests/test-ceilf1.c: Likewise.
46468         * tests/test-ceilf2.c: Likewise.
46469         * tests/test-floorf1.c: Likewise.
46470         * tests/test-floorf2.c: Likewise.
46471         * tests/test-frexp.c: Likewise.
46472         * tests/test-round1.c: Likewise.
46473         * tests/test-round2.c: Likewise.
46474         * tests/test-roundf1.c: Likewise.
46475         * tests/test-strtod.c: Likewise.
46476         * tests/test-trunc1.c: Likewise.
46477         * tests/test-trunc2.c: Likewise.
46478         * tests/test-truncf1.c: Likewise.
46479         * tests/test-truncf2.c: Likewise.
46480         * NEWS: Mention the renamed header files.
46481
46482 2008-07-11  Jim Meyering  <meyering@redhat.com>
46483
46484         vc-list-files: make the last-resort awk code more portable
46485         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
46486         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
46487         does not support it.
46488
46489 2008-07-10  Eric Blake  <ebb9@byu.net>
46490
46491         Work with tar's bootstrap.
46492         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
46493         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
46494         an m4 comment.
46495
46496 2008-07-09  Jim Meyering  <meyering@redhat.com>
46497
46498         posix-shell.m4: fix typo that made this test malfunction
46499         * m4/posix-shell.m4: Remove capitalization in variable name.
46500
46501 2008-07-08  Bruno Haible  <bruno@clisp.org>
46502
46503         * m4/onceonly.m4: Update comments.
46504         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46505
46506 2008-07-04  Jim Meyering  <meyering@redhat.com>
46507
46508         * users.txt: Add vc-dwim.
46509         (bison, coreutils): Use the gitweb URL.
46510
46511 2008-07-03  Jim Meyering  <meyering@redhat.com>
46512
46513         * users.txt: Add libffcall.  From Sam Steingold.
46514
46515 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
46516
46517         getdate.y: do not ignore TZ with relative day, month or year offset
46518         * lib/getdate.y (get_date): Move the tz-handling block to follow the
46519         relative-date-handling, since otherwise, the latter would clobber the
46520         sole output (an updated Start value) of the tz-handling block.
46521         * tests/test-getdate.c: Tests for the fix
46522
46523 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46524
46525         Recognize 'foo_LIBRARIES += libgnu.a'.
46526         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
46527         makefile snippet has already specified an installation location,
46528         also using '+='.
46529
46530 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
46531
46532         getdate.y: factor out common actions
46533         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
46534         Use them in place of open-coded actions.
46535
46536 2008-07-01  Simon Josefsson  <simon@josefsson.org>
46537
46538         Add self-test for getdate module.
46539         * modules/getdate-tests: New file.
46540         * tests/test-getdate.c: New file.
46541
46542 2008-06-29  Bruno Haible  <bruno@clisp.org>
46543
46544         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
46545         .gitignore.
46546         Reported by Sylvain Beucler <beuc@beuc.net>.
46547
46548 2008-06-29  Bruno Haible  <bruno@clisp.org>
46549
46550         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
46551         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
46552
46553 2008-06-29  Bruno Haible  <bruno@clisp.org>
46554
46555         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
46556         EXTRA_DIST.
46557         Reported by Sylvain Beucler <beuc@beuc.net>.
46558
46559 2008-06-26  Jim Meyering  <meyering@redhat.com>
46560
46561         make several modules depend on the "open" module
46562         This provides slightly increased consistency when opening-for-write
46563         the name of a non-directory spelled with a trailing slash.
46564         * modules/chdir-safer: Likewise.
46565         * modules/chown: Likewise.
46566         * modules/clean-temp: Likewise.
46567         * modules/copy-file: Likewise.
46568         * modules/fchdir: Likewise.
46569         * modules/fcntl-safer: Likewise.
46570         * modules/pipe: Likewise.
46571         * modules/utime: Likewise.
46572         Prompted by Eric Blake and Bruno Haible.
46573
46574 2008-06-24  Andreas Schwab  <schwab@suse.de>
46575
46576         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
46577         literals can be used as initializers for global variables.
46578
46579 2008-06-23  Eric Blake  <ebb9@byu.net>
46580
46581         Make gnulib-cache.m4 easier to diff.
46582         * gnulib-tool (func_import): Allow newlines when reading cached
46583         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
46584
46585 2008-06-23  Bruno Haible  <bruno@clisp.org>
46586
46587         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
46588         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
46589         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
46590         m4/signalblocking.m4.
46591         (gl_PREREQ_SIGACTION): Don't invoke it.
46592         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
46593         gl_PREREQ_SIG_HANDLER_H.
46594         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
46595         Don't check for sigaction here.
46596
46597 2008-06-23  Bruno Haible  <bruno@clisp.org>
46598
46599         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
46600         (install_handlers): Don't set the SA_RESETHAND flag.
46601
46602 2008-06-23  Bruno Haible  <bruno@clisp.org>
46603
46604         * m4/sigaction.m4: Comment fixes.
46605         * lib/signal.in.h: Likewise.
46606
46607 2008-06-23  Eric Blake  <ebb9@byu.net>
46608
46609         Fix typo.
46610         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
46611
46612         Avoid SA_ namespace.
46613         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
46614         Reported by Ralf Wildenhues.
46615
46616         Avoid test failure due to SA_RESTORER.
46617         * tests/test-sigaction.c (SA_MASK): New macro.
46618         (main): Avoid failing due to extension flags being set.
46619         Reported by Jim Meyering.
46620
46621         Revert use of sig-handler.h in sigprocmask.c.
46622         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
46623         it requires the existence of struct sigaction.
46624         * lib/sigprocmask.c (handler_t): Restore typedef.
46625         (rpl_signal, old_handlers): Use local type.
46626
46627 2008-06-22  Bruno Haible  <bruno@clisp.org>
46628
46629         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
46630         conditionally.
46631         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46632
46633 2008-06-22  Bruno Haible  <bruno@clisp.org>
46634
46635         * doc/posix-functions/siginterrupt.texi: Move note.
46636
46637         * lib/signal.in.h (SA_RESTART): New macro.
46638         * lib/sigaction.c: Update comment.
46639
46640         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
46641
46642         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
46643         (gl_PREREQ_SIGPROCMASK): Invoke it.
46644         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
46645
46646         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
46647
46648         * lib/sigprocmask.c: Update a comment.
46649
46650 2008-06-21  Eric Blake  <ebb9@byu.net>
46651
46652         Use sigaction module rather than signal().
46653         * modules/c-stack (Depends-on): Add sigaction.
46654         * modules/fatal-signal (Depends-on): Likewise.
46655         * modules/nanosleep (Depends-on): Likewise.
46656         * modules/sigprocmask (Files): Add sig-handler.h.
46657         * modules/sigaction (Files): Likewise.
46658         * lib/sig-handler.h (get_handler): New file, suggested by Paul
46659         Eggert.
46660         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
46661         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
46662         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
46663         (init_fatal_signals): Likewise.
46664         * lib/nanosleep.c (rpl_nanosleep): Likewise.
46665         (siginterrupt): Delete fallback.
46666         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
46667         instead.
46668         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
46669         siginterrupt.
46670
46671         New module sigaction, for mingw.
46672         * modules/sigaction: New module...
46673         * modules/sigaction-tests: ...and its test.
46674         * m4/sigaction.m4: New file.
46675         * lib/sigaction.c: Likewise.
46676         * tests/test-sigaction.c: Likewise.
46677         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
46678         * modules/signal (Makefile.am): Likewise.
46679         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
46680         needed.
46681         * doc/posix-headers/signal.texi (signal.h): Mention provided
46682         types.
46683         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
46684         that sigaction is preferable.
46685         * doc/posix-functions/sigaction.texi (sigaction): Mention new
46686         module.
46687         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46688         sigaction.
46689
46690         Improve robustness of sigprocmask by overriding signal.
46691         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
46692         is in use.
46693         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
46694         (SIGKILL, SIGSTOP): Provide fallbacks.
46695         (rpl_signal): Implement.
46696         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
46697         signal can be called inside handlers.
46698
46699         Fix nanosleep module on mingw.
46700         * modules/nanosleep (Depends-on): Add sys_select.
46701         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
46702
46703         Fix licensing of sigprocmask.
46704         * modules/raise (License): Relicense as LGPL.
46705
46706 2008-06-21  Bruno Haible  <bruno@clisp.org>
46707
46708         * lib/propername.c (proper_name_utf8): Don't use the transliterated
46709         result if it contains question marks.
46710         Reported by Michael Geng <linux@michaelgeng.de>.
46711
46712 2008-06-19  Bruno Haible  <bruno@clisp.org>
46713
46714         Fix CVS-ism.
46715         * doc/gnulib.texi: Include updated-stamp.texi.
46716         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
46717         (updated-stamp.texi): New rule.
46718         (gnulib.info): Depend on it.
46719         * doc/.gitignore: Add updated-stamp.texi.
46720         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
46721
46722 2008-06-19  Bruno Haible  <bruno@clisp.org>
46723
46724         * doc/Makefile (gnulib.info): Update and simplify dependencies.
46725         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46726
46727 2008-06-19  Eric Blake  <ebb9@byu.net>
46728
46729         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
46730         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
46731         Reported by Stepan Kasal.
46732
46733 2008-06-18  Bruno Haible  <bruno@clisp.org>
46734
46735         * lib/fatal-signal.c (init_fatal_signals): Add comment.
46736         Reported by Eric Blake.
46737
46738 2008-06-18  Eric Blake  <ebb9@byu.net>
46739
46740         Work around cygwin 1.5.25 strsignal bug.
46741         * tests/test-strsignal.c: Allow for const char *.
46742         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
46743
46744 2008-06-18  Simon Josefsson  <simon@josefsson.org>
46745
46746         * users.txt: Update URL to article and add author/date
46747         information.
46748
46749 2008-06-17  Bruno Haible  <bruno@clisp.org>
46750
46751         New macro gl_DISABLE_THREADS.
46752         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
46753         if the user did not pass --enable-threads or --disable-threads option.
46754         (gl_DISABLE_THREADS): New macro.
46755         Reported by Eric Blake <ebb9@byu.net>.
46756
46757 2008-06-17  Bruno Haible  <bruno@clisp.org>
46758
46759         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
46760         when the macro ignores it.
46761         Based on a patch by Eric Blake <ebb9@byu.net>.
46762
46763 2008-06-17  Bruno Haible  <bruno@clisp.org>
46764
46765         * modules/tls (License): Change to LGPLv2+.
46766         Reported by Eric Blake.
46767
46768 2008-06-17  Eric Blake  <ebb9@byu.net>
46769
46770         Simplify c-stack prerequisites.
46771         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
46772         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
46773         no longer requires <ucontext.h> to exist.  Optimize setrlimit
46774         check.
46775         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
46776         <sys/resource.h>.
46777
46778         Move c-stack test into testsuite.
46779         * modules/c-stack-tests: New file.
46780         * lib/c-stack.c [DEBUG]: Move test program...
46781         * tests/test-c-stack.c: ...into this new file.  Skip rather than
46782         fail test if sigaltstack is lacking.
46783         * tests/test-c-stack.sh: New driver file.
46784
46785 2008-06-16  Eric Blake  <ebb9@byu.net>
46786
46787         Use raise module consistently.
46788         * modules/fatal-signal (Depends-on): Add raise.
46789         * modules/sigprocmask (Depends-on): Likewise.
46790         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
46791         * lib/sigprocmask.c (sigprocmask): Likewise.
46792         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
46793         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
46794
46795         Fix compliance bug in sigpending.
46796         * lib/sigprocmask.c (sigpending): Return pending array via
46797         parameter, not return value.
46798
46799 2008-06-14  Eric Blake  <ebb9@byu.net>
46800
46801         Improve obstack-printf test code.
46802         * tests/test-obstack-printf.c (test_function): Fix comment, and
46803         simplify usage of obstack_* in macros.  Add a test for coverage.
46804         Reported by Bruno Haible.
46805
46806 2008-06-14  Bruno Haible  <bruno@clisp.org>
46807
46808         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
46809         array size as a constant, not as a const variable.
46810         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
46811         AC_USE_SYSTEM_EXTENSIONS.
46812         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46813         Test whether the obstack_printf function actually exists.
46814         * modules/obstack-printf (Depends-on): Add extensions.
46815         (Include): Remove obstack.h.
46816         * modules/obstack-printf-posix (Depends-on): Add extensions.
46817         (Include): Remove obstack.h.
46818
46819 2008-06-13  Eric Blake  <ebb9@byu.net>
46820
46821         Add obstack-printf and obstack-printf-posix modules.
46822         * modules/obstack-printf: New file.
46823         * modules/obstack-printf-posix: Likewise.
46824         * MODULES.html.sh (Misc): Mention them.
46825         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
46826         Likewise.
46827         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
46828         Likewise.
46829         * modules/stdio (Makefile.am): Accomodate new modules.
46830         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46831         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
46832         Declare.
46833         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
46834         functions.
46835         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
46836         (gl_REPLACE_OBSTACK_PRINTF): New macros
46837         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
46838         * tests/test-obstack-printf.c: New file.
46839         * modules/obstack-printf-tests: Likewise.
46840         * modules/obstack-printf-posix-tests: Likewise.
46841
46842 2008-06-11  Bruno Haible  <bruno@clisp.org>
46843
46844         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
46845         * lib/open.c: Include errno.h.
46846         (open): Fail when attempting to write to a file that has a trailing
46847         slash.
46848         * tests/test-open.c (main): Test against trailing slash bug.
46849         * doc/posix-functions/open.texi: Mention the trailing slash bug.
46850
46851 2008-06-10  Bruno Haible  <bruno@clisp.org>
46852
46853         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
46854         for $? to work inside the trap command, with various /bin/sh-s.
46855         * tests/test-vc-list-files-cvs.sh: Likewise.
46856
46857 2008-06-10  Bruno Haible  <bruno@clisp.org>
46858
46859         * lib/acl-internal.h: Don't include gettext.h here.
46860         * lib/set-mode-acl.c: Include gettext.h here.
46861         * lib/copy-acl.c: Likewise.
46862
46863 2008-06-10  Bruno Haible  <bruno@clisp.org>
46864
46865         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
46866         * lib/wait-process.c (wait_subprocess): Likewise.
46867         * lib/execute.h (execute): Add termsigp argument.
46868         * lib/execute.c (execute): Likewise.
46869         * lib/csharpcomp.c (compile_csharp_using_pnet,
46870         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
46871         * lib/csharpexec.c (execute_csharp_using_pnet,
46872         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
46873         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
46874         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
46875         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
46876         is_jikes_present): Update.
46877         * lib/javaexec.c (execute_java_class): Update.
46878         * lib/javaversion.c (execute_and_read_line): Update.
46879         * NEWS: Document the changes.
46880         Reported by Eric Blake.
46881
46882 2008-06-10  Eric Blake  <ebb9@byu.net>
46883
46884         Add missing include.
46885         * tests/test-strstr.c (includes): Add <signal.h>.
46886         * tests/test-strcasestr.c (includes): Likewise.
46887         * tests/test-memmem.c (includes): Likewise.
46888
46889 2008-06-10  Bruno Haible  <bruno@clisp.org>
46890
46891         * lib/wait-process.c (wait_subprocess): Add an assertion.
46892
46893 2008-06-10  Bruno Haible  <bruno@clisp.org>
46894
46895         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
46896
46897 2008-06-10  Bruno Haible  <bruno@clisp.org>
46898
46899         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
46900         using alarm().
46901         * tests/test-strcasestr.c (main): Likewise.
46902         * tests/test-strstr.c (main): Likewise.
46903
46904 2008-06-09  Bruno Haible  <bruno@clisp.org>
46905
46906         Work around the Solaris 10 ACE ACLs ABI change.
46907         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
46908         declare if ACL_NO_TRIVIAL is present.
46909         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
46910         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
46911         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
46912         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
46913         define if ACL_NO_TRIVIAL is present.
46914         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
46915         and use the current ABI.
46916         (file_has_acl): Use same #if condition as elsewhere.
46917         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
46918         in use, and use the current ABI.
46919         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
46920         Reported by Jim Meyering.
46921
46922 2008-06-09  Eric Blake  <ebb9@byu.net>
46923
46924         Work around environments that (stupidly) ignore SIGALRM.
46925         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
46926         before using alarm().
46927         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46928         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46929         Reported by Ian Beckwith <ianb@erislabs.net>.
46930
46931         Produce autobuild blurb earlier in log.
46932         * modules/autobuild (configure.ac-early): Move AB_INIT here.
46933
46934 2008-06-09  Jim Meyering  <meyering@redhat.com>
46935         and OndÅ™ej Vašík  <ovasik@redhat.com>
46936
46937         utimens.c: correct kernel bug work-around
46938         OndÅ™ej Vašík found that the invalid return value of 280 indicates
46939         failure, not success, and the kernel bug we're trying to work
46940         around affects not just the utimensat call, but also the fallback
46941         futimens call.
46942         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
46943         not success.
46944         [HAVE_FUTIMENS]: Use the same work-around, here.
46945
46946 2008-06-09  Jim Meyering  <meyering@redhat.com>
46947
46948         add more guards around definition of ACE_-related code
46949         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
46950         ALLOW and ACE_OWNER are also defined.
46951
46952 2008-06-08  Bruno Haible  <bruno@clisp.org>
46953
46954         * lib/acl-internal.h: Add me as co-author.
46955         * lib/file-has-acl.c: Likewise.
46956         * lib/set-mode-acl.c: Likewise.
46957         * lib/copy-acl.c: Likewise.
46958
46959 2008-06-08  Bruno Haible  <bruno@clisp.org>
46960
46961         Add support for AIX ACLs.
46962         * lib/acl-internal.h (acl_nontrivial): New declaration.
46963         * lib/file-has-acl.c (acl_nontrivial): New function.
46964         (file_has_acl): Add implementation using AIX 4 ACL API.
46965         * lib/set-mode-acl.c (qset_acl): Likewise.
46966         * lib/copy-acl.c (qcopy_acl): Likewise.
46967
46968 2008-06-08  Bruno Haible  <bruno@clisp.org>
46969
46970         Add support for HP-UX ACLs.
46971         * lib/acl-internal.h (acl_nontrivial): New declaration.
46972         * lib/file-has-acl.c (acl_nontrivial): New function.
46973         (file_has_acl): Add implementation using HP-UX 11 ACL API.
46974         * lib/set-mode-acl.c (qset_acl): Likewise.
46975         * lib/copy-acl.c (qcopy_acl): Likewise.
46976
46977 2008-06-08  Bruno Haible  <bruno@clisp.org>
46978
46979         Add support for Cygwin ACLs.
46980         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
46981         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
46982         the chmod_or_fchmod call.
46983         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
46984
46985 2008-06-08  Bruno Haible  <bruno@clisp.org>
46986
46987         Fix bug with setuid modes in Solaris 10+ code.
46988         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
46989         succeeded, when the mode contains some special bits.
46990
46991 2008-06-08  Bruno Haible  <bruno@clisp.org>
46992
46993         Add support for Solaris 7..10 ACLs.
46994         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
46995         declarations.
46996         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
46997         functions.
46998         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
46999         * lib/set-mode-acl.c (qset_acl): Likewise.
47000         * lib/copy-acl.c (qcopy_acl): Likewise.
47001
47002 2008-06-08  Bruno Haible  <bruno@clisp.org>
47003
47004         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
47005         declaration.
47006         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
47007         (acl_access_nontrivial): Remove MacOS X case.
47008         (file_has_acl): Use acl_extended_nontrivial.
47009         * lib/copy-acl.c (qcopy_acl): Likewise.
47010
47011 2008-06-08  Bruno Haible  <bruno@clisp.org>
47012
47013         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
47014
47015 2008-06-08  Jim Meyering  <meyering@redhat.com>
47016
47017         * modules/acl (Maintainer): Add Bruno Haible.
47018
47019 2008-06-07  Bruno Haible  <bruno@clisp.org>
47020
47021         Improve support for Tru64 ACLs.
47022         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
47023         ACL on OSF/1.
47024
47025 2008-06-07  Bruno Haible  <bruno@clisp.org>
47026
47027         Add support for MacOS X ACLs.
47028         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
47029         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
47030         * lib/set-mode-acl.c (qset_acl): Likewise.
47031         * lib/copy-acl.c (qcopy_acl): Likewise.
47032
47033 2008-06-07  Bruno Haible  <bruno@clisp.org>
47034
47035         Fix memory leak introduced on 2008-05-22.
47036         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
47037         use.
47038
47039 2008-06-07  Bruno Haible  <bruno@clisp.org>
47040
47041         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
47042         to construct an empty ACL.
47043
47044 2008-06-07  Bruno Haible  <bruno@clisp.org>
47045
47046         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
47047         precisely.
47048         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
47049
47050 2008-06-07  Bruno Haible  <bruno@clisp.org>
47051
47052         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
47053         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
47054
47055 2008-06-07  Bruno Haible  <bruno@clisp.org>
47056
47057         * doc/posix-functions/_setjmp.texi: Explain the use of this function
47058         regardless of POSIX.
47059         * doc/posix-functions/_longjmp.texi: Likewise.
47060         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
47061         SystemV platform in this case.
47062
47063 2008-06-06  Eric Blake  <ebb9@byu.net>
47064
47065         Document abort() bugs.
47066         * doc/posix-functions/abort.texi (abort): Mention anomalies.
47067
47068         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
47069         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
47070         sigsetjmp.
47071         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
47072         siglongjmp, but only as a macro.
47073         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
47074         is obsolete.
47075         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
47076
47077         Tweak documentation to cover cygwin argz bugs.
47078         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
47079         argz bug fix; no code change needed since no cygwin releases
47080         occurred between the last fix and the bug being tested.
47081         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
47082         module and recently fixed cygwin bugs.
47083         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
47084         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
47085         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
47086         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
47087         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
47088         Likewise.
47089         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
47090         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
47091         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
47092         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
47093         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
47094         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
47095         Likewise.
47096
47097         Avoid gcc warning on cygwin.
47098         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
47099         !ACL_NO_TRIVIAL]: Avoid unused variable.
47100
47101 2008-06-05  Eric Blake  <ebb9@byu.net>
47102
47103         Be tolerant of UNKNOWN version in gnulib-tool test dir.
47104         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
47105         git-version-gen fails to come up with a version.
47106         Reported by Simon Josefsson.
47107
47108 2008-06-05  Jim Meyering  <meyering@redhat.com>
47109             Paul Eggert  <eggert@cs.ucla.edu>
47110
47111         utimens.c: work around a probable Linux kernel bug
47112         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
47113         appears to be a kernel bug that causes utimensat to return 280
47114         instead of 0, indicating success.
47115
47116 2008-06-04  Bruno Haible  <bruno@clisp.org>
47117
47118         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
47119         2008-06-01 commit.
47120
47121 2008-06-04  Bruno Haible  <bruno@clisp.org>
47122
47123         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
47124         * lib/file-has-acl.c (acl_access_nontrivial): New function.
47125         (file_has_acl): Use it. Save errno afterwards.
47126         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
47127
47128 2008-06-03  Bruno Haible  <bruno@clisp.org>
47129
47130         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
47131         draft code. Simplify #ifs.
47132         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
47133         Put Solaris code after POSIX-draft code. Fix comments regarding
47134         Solaris 10, HP-UX. Mention Cygwin.
47135         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
47136
47137 2008-06-03  Eric Blake  <ebb9@byu.net>
47138
47139         Provide fallback for older kernels.
47140         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
47141         Provide runtime fallback if kernel lacks support.
47142         Reported by Mike Frysinger.
47143
47144 2008-06-02  Bruno Haible  <bruno@clisp.org>
47145
47146         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
47147         it exists.
47148
47149 2008-06-02  Bruno Haible  <bruno@clisp.org>
47150
47151         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
47152         * lib/copy-acl.c (qcopy_acl): Update comment.
47153
47154 2008-06-02  Bruno Haible  <bruno@clisp.org>
47155
47156         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
47157         like ACL APIs.
47158
47159 2008-06-02  Bruno Haible  <bruno@clisp.org>
47160
47161         * tests/test-file-has-acl.sh: Use different code for Cygwin.
47162         * tests/test-set-mode-acl.sh: Likewise.
47163         * tests/test-copy-acl.sh: Likewise.
47164         * tests/test-copy-file.sh: Likewise.
47165
47166 2008-06-02  Bruno Haible  <bruno@clisp.org>
47167
47168         * tests/test-file-has-acl.sh: Remove unused code.
47169
47170 2008-06-01  Bruno Haible  <bruno@clisp.org>
47171
47172         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
47173         (copy_acl): Just a wrapper around qcopy_acl that emits the error
47174         messages.
47175         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
47176
47177 2008-06-01  Bruno Haible  <bruno@clisp.org>
47178
47179         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
47180         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
47181         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
47182         APIs.
47183         * modules/acl-tests (configure.ac): Remove tests now contained in
47184         m4/acl.m4.
47185
47186 2008-06-02  Jim Meyering  <meyering@redhat.com>
47187
47188         announce-gen: use a better key-server host name
47189         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
47190         it may be more consistently reliable.  Suggested by Werner Koch
47191         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
47192
47193 2008-06-01  Bruno Haible  <bruno@clisp.org>
47194
47195         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
47196         Reported by Voroskoi Andras <voroskoi@gmail.com>.
47197
47198 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
47199
47200         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
47201
47202 2008-06-01  Bruno Haible  <bruno@clisp.org>
47203
47204         New ACL tests.
47205         * tests/test-file-has-acl.sh: New file.
47206         * tests/test-file-has-acl.c: New file.
47207         * tests/test-set-mode-acl.sh: New file.
47208         * tests/test-set-mode-acl.c: New file.
47209         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
47210         * tests/test-copy-acl.c: New file.
47211         * modules/acl-tests: New file, based on modules/copy-file-tests.
47212         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
47213         (Depends-on): Add acl-tests.
47214         (configure.ac): Remove checks.
47215         (Makefile.am): Don't create test-sameacls program here any more.
47216
47217 2008-06-01  Bruno Haible  <bruno@clisp.org>
47218
47219         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
47220         * tests/test-sameacls.c: Include progname.h.
47221         (main): Invoke set_program_name. Portability fixes for MacOS X,
47222         Solaris, HP-UX.
47223
47224 2008-06-01  Bruno Haible  <bruno@clisp.org>
47225
47226         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
47227         function.
47228         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
47229
47230 2008-06-01  Bruno Haible  <bruno@clisp.org>
47231
47232         * modules/rpmatch (Depends-on): Add strdup.
47233
47234 2008-06-01  Bruno Haible  <bruno@clisp.org>
47235
47236         * lib/pipe.c: Include unistd-safer.h.
47237         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
47238         * modules/pipe (Depends-on): Add unistd-safer.
47239
47240 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47241
47242         * modules/autobuild (configure.ac): Call AB_INIT.
47243
47244 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47245
47246         * tests/test-getaddrinfo.c: Don't print debug messages by default.
47247         Suggested by Bruno Haible <bruno@clisp.org>.
47248
47249 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47250
47251         * tests/test-base64.c: Cast size_t to unsigned long when invoking
47252         printf.  Use %lu instead of %d.  Reported by Bruno Haible
47253         <bruno@clisp.org>.
47254
47255 2008-05-29  Eric Blake  <ebb9@byu.net>
47256
47257         Prefer new POSIX 200x interfaces over futimesat.
47258         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
47259         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
47260         when available.
47261         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
47262
47263 2008-05-28  Bruno Haible  <bruno@clisp.org>
47264
47265         * modules/stpcpy (License): Change to LGPLv2+.
47266         Requested by David Lutterkort <dlutter@redhat.com>.
47267
47268 2008-05-27  Bruno Haible  <bruno@clisp.org>
47269
47270         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
47271         current mingw.
47272         Reported by Jose E. Marchesi <jemarch@gnu.org>.
47273
47274 2008-05-27  Bruno Haible  <bruno@clisp.org>
47275
47276         * modules/iconv_open (Link): New section, from module 'iconv'.
47277         * modules/striconv (Link): Likewise.
47278         * modules/striconveh (Link): Likewise.
47279         * modules/xstriconv (Link): Likewise.
47280         * modules/unicodeio (Link): Likewise.
47281         * modules/propername (Link): Likewise.
47282         Reported by Jim Meyering.
47283
47284 2008-05-26  Jim Meyering  <meyering@redhat.com>
47285
47286         sha256: do not artificially restrict buffer length to be < 2^32
47287         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
47288         uint32_t to size_t.
47289         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
47290         to match.
47291
47292         avoid unaligned access errors, e.g., on sparc
47293         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
47294         direct access through a possibly-unaligned uint64* pointer.
47295         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
47296         direct access through a possibly-unaligned uint32* pointer.
47297         Prompted by this patch from Tom "spot" Callaway:
47298         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
47299
47300         sha512.c: fix typo in comment
47301         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
47302
47303 2008-05-25  Bruno Haible  <bruno@clisp.org>
47304
47305         * lib/set-mode-acl.c: Renamed from lib/acl.c.
47306         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
47307         (Makefile.am): Update lib_SOURCES.
47308
47309 2008-05-25  Bruno Haible  <bruno@clisp.org>
47310
47311         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
47312
47313 2008-05-25  Jim Meyering  <meyering@redhat.com>
47314
47315         useless-if-before-free: freed expr may have white-space differences
47316         * build-aux/useless-if-before-free: Recognize cases in which the
47317         freed expression differs from the tested one in embedded white
47318         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
47319         $1 was used, so we can't make any regexp shy.  Improved tests now
47320         detect this.
47321
47322         useless-if-before-free: accept white space in the expression.
47323         * build-aux/useless-if-before-free: For now, any white space
47324         in the expression must be identical in the free argument.
47325
47326         useless-if-before-free: efficiency tweak
47327         * build-aux/useless-if-before-free: Make the expression-matching
47328         regexp "shy".
47329         Make the *outer* regexp shy, not the expr-matching one.
47330
47331         update code-in-comment to accept cast of free arg
47332         * build-aux/useless-if-before-free: Update regexp.
47333
47334 2008-05-25  Bruno Haible  <bruno@clisp.org>
47335
47336         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
47337         * modules/copy-file-tests (Files, Makefile.am): Update.
47338         * tests/test-copy-file.c (func_test_copy): Update.
47339
47340 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
47341
47342         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
47343
47344 2008-05-23  Bruno Haible  <bruno@clisp.org>
47345
47346         Improve support for ACLs on OSF/1.
47347         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
47348         Remove fallback for unknown flavors of ACLs.
47349
47350 2008-05-22  Bruno Haible  <bruno@clisp.org>
47351
47352         Add support for ACLs on OSF/1.
47353         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
47354         replacements.
47355         (acl_free_text): New macro fallback.
47356         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
47357         acl_free.
47358         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
47359         acl_free_text function. Require AC_C_INLINE.
47360
47361 2008-05-22  Bruno Haible  <bruno@clisp.org>
47362
47363         Make copy_acl work on MacOS X 10.5.
47364         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
47365         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
47366         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
47367         If MODE_INSIDE_ACL, don't assume that every system has the same text
47368         representation for ACLs as FreeBSD.
47369         * lib/copy-acl.c (copy_acl): Add support for platforms with
47370         !MODE_INSIDE_ACL.
47371         * lib/file-has-acl.c (file_has_acl): Likewise.
47372         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
47373         FreeBSD, MacOS X, or IRIX, respectively.
47374
47375 2008-05-22  Bruno Haible  <bruno@clisp.org>
47376
47377         * lib/acl.h: Don't include <sys/acl.h>.
47378         (GETACLCNT): Move fallback to lib/acl-internal.h.
47379         * lib/acl-internal.h: Include <sys/acl.h> here.
47380         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
47381
47382 2008-05-22  Bruno Haible  <bruno@clisp.org>
47383
47384         Split off copy_acl function to separate file.
47385         * lib/copy-acl.c: New file, extracted from lib/acl.c.
47386         * lib/acl.c (copy_acl): Moved function to separate file.
47387         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
47388         * modules/acl (Files): Add lib/copy-acl.c.
47389         (Makefiles.am): Augment lib_SOURCES.
47390
47391 2008-05-22  Bruno Haible  <bruno@clisp.org>
47392
47393         * modules/copy-file-tests: New file.
47394         * tests/test-copy-file.sh: New file.
47395         * tests/test-copy-file.c: New file.
47396         * tests/test-copy-file-sameacls.c: New file.
47397
47398 2008-05-22  Eric Blake  <ebb9@byu.net>
47399
47400         Avoid gcc warning.
47401         * tests/test-memcmp.c (main): Pass NULL indirectly.
47402
47403 2008-05-21  Bruno Haible  <bruno@clisp.org>
47404
47405         Add reference doc about ACLs.
47406         * doc/acl-resources.txt: New file.
47407         * doc/acl-cygwin.txt: New file.
47408
47409 2008-05-21  Bruno Haible  <bruno@clisp.org>
47410
47411         Avoid one more warning from gcc.
47412         * lib/vasnprintf.c (IF_LINT): Update comments.
47413         (VASNPRINTF): Use it also for the 'prefix' array initializer.
47414
47415 2008-05-21  Jim Meyering  <meyering@redhat.com>
47416
47417         avoid a warning from gcc
47418         * lib/vasnprintf.c (IF_LINT): Define.
47419         (scale10_round_decimal_long_double):
47420         Use it to avoid a "may be used uninitialized" warning.
47421         (scale10_round_decimal_double): Likewise.
47422
47423 2008-05-21  Simon Josefsson  <simon@josefsson.org>
47424
47425         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
47426         declared.
47427
47428 2008-05-20  Bruno Haible  <bruno@clisp.org>
47429
47430         * tests/test-memcmp.c (main): Test also the sign of the result. Test
47431         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
47432
47433 2008-05-20  Simon Josefsson  <simon@josefsson.org>
47434
47435         * modules/memcmp-tests: New file.
47436         * tests/test-memcmp.c: New file.
47437
47438 2008-05-19  Bruno Haible  <bruno@clisp.org>
47439
47440         * modules/propername (Notice, configure.ac): Put quoted "..." into
47441         --keyword option.
47442         * lib/propername.h: Update comments accordingly.
47443         Reported by Eric Blake.
47444
47445 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
47446
47447         * modules/getpass-gnu (Depends-on): Add fseeko.
47448
47449 2008-05-19  Simon Josefsson  <simon@josefsson.org>
47450
47451         * modules/base64-tests: New file.
47452
47453 2008-05-19  Bo Borgerson <gigabo@gmail.com>
47454
47455         * lib/base64.c (base64_decode_ctx): If a decode context structure
47456         was passed in use it to ignore newlines.  If a context structure
47457         was _not_ passed in, continue to treat newlines as garbage (this
47458         is the historical behavior).  Formerly base64_decode.
47459         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
47460         takes a decode context structure.
47461         * lib/base64.h (base64_decode): Macro for four-argument calls.
47462         (base64_decode_alloc): Likewise.
47463         * lib/base64.c (base64_decode_ctx): If a decode context structure
47464         was passed in use it to ignore newlines.  If a context structure
47465         was _not_ passed in, continue to treat newlines as garbage (this
47466         is the historical behavior).  Formerly base64_decode.
47467         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
47468         takes a decode context structure.
47469         * lib/base64.h (base64_decode): Macro for four-argument calls.
47470         (base64_decode_alloc): Likewise.
47471
47472 2008-05-19  Jim Meyering  <meyering@redhat.com>
47473
47474         avoid a warning from gcc
47475         * lib/trim.c (IF_LINT): Define.
47476         (trim2): Use it to avoid a "may be used uninitialized" warning.
47477
47478         Fix doc typo.
47479         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
47480
47481 2008-05-19  Bruno Haible  <bruno@clisp.org>
47482
47483         * doc/glibc-functions/getpass.texi: Document limits of other
47484         implementations.
47485
47486 2008-05-19  Simon Josefsson  <simon@josefsson.org>
47487             Bruno Haible <bruno@clisp.org>
47488
47489         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
47490
47491 2008-05-18  Bruno Haible  <bruno@clisp.org>
47492
47493         * modules/propername: New file, from GNU gettext.
47494         * lib/propername.h: New file, from GNU gettext.
47495         * lib/propername.c: New file, from GNU gettext.
47496         * MODULES.html.sh (Internationalization functions): Add propername.
47497
47498 2008-05-16  Jim Meyering  <meyering@redhat.com>
47499             Bruno Haible  <bruno@clisp.org>
47500
47501         Avoid some warnings from "gcc -Wshadow".
47502         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
47503
47504 2008-05-15  Eric Blake  <ebb9@byu.net>
47505
47506         Extend previous patch to cygwin 1.7.0.
47507         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
47508         fast implementation in cygwin >= 1.7.0.
47509         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47510         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47511
47512 2008-05-15  Bruno Haible  <bruno@clisp.org>
47513
47514         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
47515         implementation in glibc >= 2.9.
47516         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47517         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47518
47519 2008-05-15  Bruno Haible  <bruno@clisp.org>
47520
47521         * MODULES.html.sh (Internationalization functions): Remove linebreak.
47522         (Unicode string functions): Add unilbrk/*.
47523         Reported by Karl Berry.
47524
47525 2008-05-15  Eric Blake  <ebb9@byu.net>
47526
47527         Fix violation of <stdbool.h> replacement in regex.
47528         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
47529         * lib/regexec.c (re_search_internal): Likewise.
47530         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
47531
47532 2008-05-15  Jim Meyering  <meyering@redhat.com>
47533
47534         avoid distracting test output when git or cvs is not found
47535         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
47536         * tests/test-vc-list-files-git.sh: Likewise.
47537
47538 2008-05-15  Eric Blake  <ebb9@byu.net>
47539
47540         Glibc finally accepted the memmem speedup code, bugzilla #5514.
47541         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
47542         glibc version.
47543         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
47544         * doc/posix-functions/strstr.texi (strstr): Likewise.
47545         * lib/str-two-way.h (MAX): Sychronize with glibc.
47546
47547 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
47548
47549         * lib/regcomp.c (optimize_utf8): Add a note on why we test
47550         opr.ctx_type.
47551         (calc_first): Initialize constraint field.
47552         (duplicate_node_closure): Use it instead of special casing ANCHORS.
47553         Fix grammar.
47554         (duplicate_node): Merge constraint field for all node types.
47555         (calc_eclosure_iter): Look at constraint field for all node types.
47556         * lib/regex_internal.c (create_cd_newstate): Don't look at
47557         opr.ctx_type.
47558
47559 2008-05-14  Bruno Haible  <bruno@clisp.org>
47560
47561         Help GCC to do better code generation.
47562         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
47563         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
47564         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
47565         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
47566         Declare with attribute 'malloc' if supported.
47567
47568 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
47569
47570         use "echo STR|wc -c" rather than unportable "expr length STR"
47571         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
47572         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
47573
47574 2008-05-14  Jim Meyering  <meyering@redhat.com>
47575
47576         use dd ibs=$n count=1 ... rather than less-portable head -c$n
47577         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
47578         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
47579         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
47580         via Collin Lasse.
47581
47582 2008-05-14  Eric Blake  <ebb9@byu.net>
47583
47584         Avoid quadratic growth in gl_LIBSOURCES.
47585         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
47586         Suggested by Bruno Haible.
47587
47588         Test xmemdup0.
47589         * modules/xmemdup0-tests: New file.
47590         * tests/test-xmemdup0.c: Likewise.
47591
47592 2008-05-13  Eric Blake  <ebb9@byu.net>
47593
47594         Split xmemdup0 into its own module.
47595         * modules/xmemdup0: New file.
47596         * lib/xmemdup0.h: Likewise.
47597         * lib/xmemdup0.c: Likewise.
47598         * MODULES.html.sh (Memory management functions): Add xmemdup0.
47599         * lib/xalloc.h (xmemdup0): Remove.
47600         * lib/xmalloc.c (xmemdup0): Likewise.
47601
47602 2008-05-13  Eric Blake  <ebb9@byu.net>
47603             Bruno Haible  <bruno@clisp.org>
47604
47605         Reduce number of forks required during autoconf.
47606         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
47607         and gl_LIBSOURCES_DIR.
47608         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
47609         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
47610         m4_syscmd per file.
47611         <m4_foreach_w>: Move...
47612         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
47613
47614 2008-05-13  Eric Blake  <ebb9@byu.net>
47615
47616         * gnulib-tool: Fix various comment typos.
47617
47618 2008-05-12  Bruno Haible  <bruno@clisp.org>
47619
47620         Tailor the linebreaking algorithm.
47621         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
47622
47623 2008-05-12  Bruno Haible  <bruno@clisp.org>
47624
47625         Update to Unicode 5.0.0.
47626         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
47627         LBP_JV, LBP_JT. Redistribute values.
47628         (unilbrk_table): Change size.
47629         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
47630         Unicode TR#14 rev. 22.
47631         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
47632         LBP_JV, LBP_JT. Redistribute values.
47633         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
47634         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
47635         Update.
47636         * lib/unilbrk/lbrkprop1.h: Regenerated.
47637         * lib/unilbrk/lbrkprop2.h: Regenerated.
47638         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
47639         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
47640         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
47641         Likewise.
47642         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
47643         Likewise.
47644         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
47645         result.
47646         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
47647         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
47648         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
47649         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
47650         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
47651         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
47652
47653 2008-05-11  Bruno Haible  <bruno@clisp.org>
47654
47655         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
47656
47657 2008-05-11  Bruno Haible  <bruno@clisp.org>
47658
47659         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
47660         * modules/unilbrk/gen-lbrk: New file.
47661
47662 2008-05-11  Bruno Haible  <bruno@clisp.org>
47663
47664         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
47665         * m4/sha512.m4 (gl_SHA512): Likewise.
47666
47667 2008-05-11  Jim Meyering  <meyering@redhat.com>
47668
47669         New modules: crypto/sha256, crypto/sha512 (from coreutils)
47670         * modules/crypto/sha256: New file.
47671         * modules/crypto/sha512: Likewise.
47672         * lib/sha256.c: Likewise.
47673         * lib/sha256.h: Likewise.
47674         * lib/sha512.c: Likewise.
47675         * lib/sha512.h: Likewise.
47676         * lib/u64.h: Likewise.
47677         * m4/sha256.m4: Likewise.
47678         * m4/sha512.m4: Likewise.
47679         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
47680
47681 2008-05-10  Bruno Haible  <bruno@clisp.org>
47682
47683         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
47684         (Input/Output <stdio.h>): Add xprintf.
47685         (Signal handling <signal.h>): Add strsignal.
47686         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
47687         (Core language properties): Add func.
47688         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
47689         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
47690         strings.
47691         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
47692         (Input/output): New section.
47693         (File system functions): Add openat-die, stat-macros.
47694         (Networking functions): Add sockets.
47695         (Unicode string functions): Add unictype/*.
47696         (Support for building libraries and executables): Add gperf.
47697         (Support for building documentation): Add agpl-3.0.
47698         (Misc): Add nocrash.
47699
47700 2008-05-10  Bruno Haible  <bruno@clisp.org>
47701
47702         * modules/unictype/gen-ctype: New file.
47703
47704 2008-05-10  Jim Meyering  <meyering@redhat.com>
47705
47706         Make chdir-safer.c more efficient on a system with no symlinks.
47707         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
47708         also if ELOOP is zero.  Suggested by Bruno Haible.
47709
47710         Make chdir-safer.c slightly safer.
47711         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
47712         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
47713
47714         Avoid compile failure on systems without ELOOP (like mingw).
47715         * lib/chdir-safer.c (ELOOP): Define if not already defined.
47716         Reported by Bruno Haible.
47717
47718 2008-05-10  Bruno Haible  <bruno@clisp.org>
47719
47720         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
47721         (is_utf8_encoding): Use a case-insensitive comparison.
47722         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
47723         streq.
47724
47725 2008-05-10  Bruno Haible  <bruno@clisp.org>
47726
47727         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
47728         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
47729         * lib/unilbrk/ulc-common.h (iconv_string_length,
47730         iconv_string_keeping_offsets): Remove declarations.
47731         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
47732         Don't include <iconv.h>, streq.h, xsize.h.
47733         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
47734         conversion.
47735         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
47736         <iconv.h>, streq.h, xsize.h.
47737         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
47738         conversion.
47739         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
47740         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
47741         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
47742         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
47743
47744 2008-05-10  Bruno Haible  <bruno@clisp.org>
47745
47746         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
47747         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
47748
47749         * modules/unilbrk/u32-width-linebreaks-tests: New file.
47750         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
47751
47752         * modules/unilbrk/u16-width-linebreaks-tests: New file.
47753         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
47754
47755         * modules/unilbrk/u8-width-linebreaks-tests: New file.
47756         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
47757
47758         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
47759         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
47760
47761         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
47762         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
47763
47764         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
47765         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
47766
47767         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
47768         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
47769
47770 2008-05-10  Bruno Haible  <bruno@clisp.org>
47771
47772         Split up 'linebreak' module.
47773         * lib/unilbrk.h: New file, based on lib/linebreak.h.
47774         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
47775         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
47776         modifications.
47777         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
47778         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
47779         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
47780         lib/linebreak.c.
47781         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
47782         lib/linebreak.c.
47783         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
47784         lib/linebreak.c.
47785         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
47786         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
47787         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
47788         lib/linebreak.c.
47789         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
47790         lib/linebreak.c.
47791         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
47792         lib/linebreak.c.
47793         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
47794         lib/linebreak.c.
47795         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
47796         lib/linebreak.c.
47797         * modules/unilbrk/base: New file.
47798         * modules/unilbrk/tables: New file.
47799         * modules/unilbrk/u8-possible-linebreaks: New file.
47800         * modules/unilbrk/u16-possible-linebreaks: New file.
47801         * modules/unilbrk/u32-possible-linebreaks: New file.
47802         * modules/unilbrk/ulc-common: New file.
47803         * modules/unilbrk/ulc-possible-linebreaks: New file.
47804         * modules/unilbrk/u8-width-linebreaks: New file.
47805         * modules/unilbrk/u16-width-linebreaks: New file.
47806         * modules/unilbrk/u32-width-linebreaks: New file.
47807         * modules/unilbrk/ulc-width-linebreaks: New file.
47808         * lib/linebreak.h: Remove file.
47809         * lib/linebreak.c: Remove file.
47810         * m4/linebreak.m4: Remove file.
47811         * modules/linebreak: Remove file.
47812         * NEWS: Mention the changes.
47813
47814 2008-05-09  Eric Blake  <ebb9@byu.net>
47815
47816         Add xmemdup0.
47817         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
47818         implementation.
47819         * lib/xmalloc.c (xmemdup0): New C implementation.
47820
47821 2008-05-08  Bruno Haible  <bruno@clisp.org>
47822
47823         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
47824
47825 2008-05-07  Eric Blake  <ebb9@byu.net>
47826
47827         Support cross-compilation of <wctype.h>.
47828         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
47829         AC_CACHE_CHECK.
47830
47831 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
47832
47833         * build-aux/vc-list-files: Add support for bzr.
47834
47835 2008-05-03  Jim Meyering  <meyering@redhat.com>
47836
47837         avoid failed assertion with tight malloc
47838         * tests/test-getndelim2.c: Correct an off-by-one assertion.
47839
47840 2008-05-03  Simon Josefsson  <simon@josefsson.org>
47841
47842         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
47843         are needed from arpa/inet.h.
47844         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
47845         Reported by Bruno Haible.
47846
47847 2008-05-02  Jim Meyering  <meyering@redhat.com>
47848
47849         avoid compilation error on FreeBSD 6
47850         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
47851
47852 2008-05-01  Jim Meyering  <meyering@redhat.com>
47853
47854         useless-if-before-free: correct --help's exit status description
47855         * build-aux/useless-if-before-free (usage): Like grep, exit 0
47856         for one or more matches, etc.  Reported by Bruno Haible.
47857
47858         vc-list-files: make the stand-alone gnulib test work
47859         * modules/vc-list-files-tests (configure.ac):
47860         Define and AC_SUBST abs_aux_dir.
47861         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
47862         $(abs_top_srcdir) to each script and having each of them
47863         duplicate the work of setting PATH, set PATH here, using
47864         the new variable, abs_aux_dir instead.
47865         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
47866         * tests/test-vc-list-files-git.sh: Likewise.
47867         Reported by Bruno Haible.
47868
47869 2008-05-01  Bruno Haible  <bruno@clisp.org>
47870
47871         * lib/getndelim2.c (getndelim2): Fix newsize computation during
47872         reallocation. Rename 'done' to 'found_delimiter'.
47873
47874 2008-05-01  Jim Meyering  <meyering@redhat.com>
47875
47876         vc-list-files: accommodate /bin/sh like the one from Solaris 10
47877         * build-aux/vc-list-files: Use `...`, not $(...).
47878
47879 2008-04-30  Jim Meyering  <meyering@redhat.com>
47880
47881         add tests for vc-list-files
47882         * modules/vc-list-files-tests: New module.
47883         * tests/test-vc-list-files-cvs.sh: New file.
47884         * tests/test-vc-list-files-git.sh: New file.
47885
47886         avoid a warning from gcc
47887         * lib/getndelim2.c (IF_LINT): Define.
47888         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
47889
47890         vc-list-files: work properly with build-aux/cvsu, too
47891         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
47892         to all cvs-based clauses.
47893
47894         vc-list-files: work properly in the CVS+awk case, too
47895         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
47896
47897         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
47898         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
47899         take more than one file argument, so .  Add quotes, just in case $dir
47900         ever contains a shell meta-character.  Prompted by Soren Hansen in
47901         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
47902
47903 2008-04-29  Eric Blake  <ebb9@byu.net>
47904
47905         Optimize getndelim2 to use block operations when possible.
47906         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
47907         freadseek, and memchr2.
47908         * lib/getndelim2.c (getndelim2): Use them for block reads.
47909
47910 2008-04-29  Bruno Haible  <bruno@clisp.org>
47911
47912         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
47913         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47914         * modules/inet_ntop (Depends-on): Add extensions.
47915         * modules/inet_pton (Depends-on): Likewise.
47916         Reported by Simon Josefsson.
47917
47918 2008-04-29  Jim Meyering  <meyering@redhat.com>
47919
47920         When the is more than one match in a block, match all of them.
47921         * build-aux/useless-if-before-free: Iterate through each block
47922         until there are no more matches.
47923
47924         Fix broken useless-if-before-free script.
47925         * build-aux/useless-if-before-free: Fix typo: missing "?" after
47926         the expression to match cast of argument to free-like function.
47927
47928 2008-04-29  Eric Blake  <ebb9@byu.net>
47929
47930         Use new header.
47931         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
47932
47933 2008-04-29  Jim Meyering  <meyering@redhat.com>
47934
47935         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
47936         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
47937         by gnulib to exist and to declare e.g., inet_ntop.
47938         Don't include "inet_ntop.h", now removed.
47939
47940         * m4/arpa_inet_h.m4: Remove trailing blanks.
47941
47942 2008-04-29  Eric Blake  <ebb9@byu.net>
47943
47944         Silence valgrind on safe reads beyond potential array bounds.
47945         * lib/rawmemchr.valgrind: New file.
47946         * lib/strchrnul.valgrind: Likewise.
47947         * modules/rawmemchr (Files): Distribute new file.
47948         * modules/strchrnul (Files): Likewise.
47949         Suggested by Bruno Haible.
47950
47951 2008-04-29  Bruno Haible  <bruno@clisp.org>
47952
47953         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
47954         (inet_ntop, inet_pton): Change portability warning's wording.
47955         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
47956         Invoke gl_CHECK_NEXT_HEADERS.
47957         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
47958         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
47959         set ARPA_INET_H.
47960         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47961         * modules/arpa_inet (Description): No longer only for systems that
47962         lack it.
47963         (Depends-on): Add include_next.
47964         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
47965         HAVE_ARPA_INET_H.
47966
47967 2008-04-29  Jim Meyering  <meyering@redhat.com>
47968
47969         * modules/mkdir (License): Re-license as LGPLv2+.
47970
47971 2008-04-29  Bruno Haible  <bruno@clisp.org>
47972
47973         * modules/rawmemchr (Maintainer): Set to Eric.
47974         * modules/strchrnul (Maintainer): Likewise.
47975
47976 2008-04-29  Simon Josefsson  <simon@josefsson.org>
47977
47978         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
47979         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
47980
47981         * modules/arpa_inet (arpa/inet.h): Use them.
47982
47983 2008-04-28  Eric Blake  <ebb9@byu.net>
47984
47985         Test getndelim2.
47986         * modules/getndelim2-tests: New file.
47987         * tests/test-getndelim2.c: Likewise.
47988         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
47989         stream.
47990         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
47991
47992         * MODULES.html.sh: Document new module.
47993
47994 2008-04-20  Bruno Haible  <bruno@clisp.org>
47995
47996         * lib/c-stack.c (die): Use raise.
47997         * modules/c-stack (Depends-on): Add raise.
47998
47999 2008-04-28  Bruno Haible  <bruno@clisp.org>
48000
48001         Expect rpmatch to be declared.
48002         * lib/yesno.c (rpmatch): Remove declaration.
48003
48004         Declare rpmatch.
48005         * lib/stdlib.in.h (rpmatch): New declaration.
48006         * lib/rpmatch.c: Include <stdlib.h> first.
48007         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
48008         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
48009         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
48010         HAVE_RPMATCH.
48011         * modules/rpmatch (Depends-on): Add stdlib, extensions.
48012         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48013         (Include): Set to <stdlib.h>.
48014         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
48015         HAVE_RPMATCH.
48016         * NEWS: Document the change.
48017
48018 2008-04-28  Bruno Haible  <bruno@clisp.org>
48019
48020         Change rpmatch to use nl_langinfo when appropriate.
48021         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
48022         (N_): New macro.
48023         (localized_pattern): New function/macro.
48024         (try): Remove match, nomatch arguments. Copy the pattern into safe
48025         memory before caching it.
48026         (rpmatch): Use localized_pattern. Add translator comments.
48027         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
48028         Suggested by Eric Blake.
48029         * modules/rpmatch (Depends-on): Add stdbool.
48030
48031 2008-04-28  Eric Blake  <ebb9@byu.net>
48032
48033         Add rawmemchr module, matching glibc.
48034         * modules/string (Makefile.am): New indicator.
48035         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
48036         * lib/string.in.h (rawmemchr): Declare when appropriate.
48037         * modules/rawmemchr: New file.
48038         * m4/rawmemchr.m4: Likewise.
48039         * lib/rawmemchr.c: Likewise.
48040         * modules/rawmemchr-tests: Likewise.
48041         * tests/test-rawmemchr.c: Likewise.
48042         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
48043         module.
48044         * modules/strchrnul (Depends-on): Add rawmemchr.
48045         * lib/strchrnul.c (strchrnul): Optimize a corner case.
48046
48047         Whitespace cleanup.
48048         * tests/test-strchrnul.c: Reindent.
48049         * lib/strchrnul.c: Likewise.
48050
48051         Optimize and test strchrnul.
48052         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
48053         * modules/strchrnul-tests: New file.
48054         * tests/test-strchrnul.c: Likewise.
48055
48056         Remove intprops dependency.
48057         * modules/memchr (Depends-on): Remove intprops.
48058         * modules/memrchr (Depends-on): Likewise.
48059         * modules/memchr2 (Depends-on): Likewise.
48060         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
48061         * lib/memrchr.c (__memrchr): Likewise.
48062         * lib/memrchr2.c (memchr2): Likewise.
48063         Reported by Simon Josefsson.
48064
48065 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48066
48067         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
48068         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48069
48070 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48071
48072         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
48073
48074         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
48075
48076         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
48077
48078         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
48079         declarations.
48080         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
48081
48082         * m4/inet_pton.m4: Don't check for header files.
48083
48084         * m4/inet_ntop.m4: Don't check for header files.
48085
48086 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48087
48088         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
48089         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
48090         trigger for cygwin).
48091         Reported by Bruno Haible  <bruno@clisp.org>.
48092
48093 2008-04-28  Bruno Haible  <bruno@clisp.org>
48094
48095         * doc/posix-functions/strdup.texi: Mention mingw problem.
48096
48097 2008-04-27  Bruno Haible  <bruno@clisp.org>
48098
48099         * modules/stat-time-tests (Depends-on): Add sleep.
48100         * tests/test-stat-time.c (force_unlink): New function.
48101         (cleanup): Use it.
48102         (test_mtime): Remove the ctime related tests.
48103         (test_ctime): New function, containing the ctime related tests.
48104         (main): Call test_ctime, except on native Windows platforms.
48105
48106 2008-04-27  Bruno Haible  <bruno@clisp.org>
48107
48108         * lib/rpmatch.c (rpmatch): Add some comments.
48109         Reported by James Youngman <jay@gnu.org>.
48110
48111 2008-04-27  Bruno Haible  <bruno@clisp.org>
48112
48113         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
48114         quiet NaNs.
48115
48116 2008-04-27  Bruno Haible  <bruno@clisp.org>
48117
48118         Make test-yesno.sh work on mingw.
48119         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
48120         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
48121         (main): Set stdin to binary mode.
48122         * modules/yesno-tests (Depends-on): Add binary-io.
48123
48124 2008-04-27  Bruno Haible  <bruno@clisp.org>
48125
48126         Fix 'isfinite' on x86, x86_64, ia64 platforms.
48127         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
48128         argument that lie outside the IEEE 854 domain.
48129         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
48130         (gl_ISFINITE): Use it.
48131         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
48132
48133 2008-04-27  Bruno Haible  <bruno@clisp.org>
48134
48135         Allow local renaming in config.h.
48136         * lib/memrchr.c (memrchr): Don't undefine outside libc.
48137
48138 2008-04-27  Bruno Haible  <bruno@clisp.org>
48139
48140         * lib/memchr.c (__memchr): Change type of 'i'.
48141         * lib/memchr2.c (memchr2): Likewise.
48142
48143 2008-04-26  Eric Blake  <ebb9@byu.net>
48144         and Bruno Haible  <bruno@clisp.org>
48145
48146         Optimize and test memrchr.
48147         * modules/memrchr (Depends-on): Add intprops.
48148         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
48149         * modules/memrchr-tests: New file.
48150         * tests/test-memrchr.c: New file.
48151
48152 2008-04-26  Bruno Haible  <bruno@clisp.org>
48153
48154         Add tentative support for DragonFly BSD.
48155         * lib/stdio-impl.h: Add macros for DragonFly BSD.
48156         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
48157         fp.
48158         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
48159         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
48160         * lib/fpurge.c (fpurge): Likewise.
48161         * lib/freadable.c (freaadable): Likewise.
48162         * lib/freadahead.c (freadahead): Likewise.
48163         * lib/freading.c (freading): Likewise.
48164         * lib/freadptr.c (freadptr): Likewise.
48165         * lib/freadseek.c (freadptrinc): Likewise.
48166         * lib/fseeko.c (fseeko): Likewise.
48167         * lib/fseterr.c (fseterr): Likewise.
48168         * lib/fwritable.c (fwritable): Likewise.
48169         * lib/fwriting.c (fwriting): Likewise.
48170
48171 2008-04-26  Bruno Haible  <bruno@clisp.org>
48172
48173         * lib/stdio-impl.h: New file.
48174         * lib/fbufmode.c: Include stdio-impl.h.
48175         (fbufmode): Use fp_, remove redundant #defines.
48176         * lib/fflush.c: Include stdio-impl.h.
48177         (clear_ungetc_buffer): Remove redundant #defines.
48178         * lib/fpurge.c: Include stdio-impl.h.
48179         (fpurge): Remove redundant #defines.
48180         * lib/freadable.c: Include stdio-impl.h.
48181         (freadable): Remove redundant #defines.
48182         * lib/freadahead.c: Include stdio-impl.h.
48183         (freadahead): Remove redundant #defines.
48184         * lib/freading.c: Include stdio-impl.h.
48185         (freading): Remove redundant #defines.
48186         * lib/freadptr.c: Include stdio-impl.h.
48187         (freadptr): Remove redundant #defines.
48188         * lib/freadseek.c: Include stdio-impl.h.
48189         (freadptrinc): Remove redundant #defines.
48190         * lib/fseeko.c: Include stdio-impl.h.
48191         (rpl_fseeko): Remove redundant #defines.
48192         * lib/fseterr.c: Include stdio-impl.h.
48193         (fseterr): Remove redundant #defines.
48194         * lib/fwritable.c: Include stdio-impl.h.
48195         (fwritable: Remove redundant #defines.
48196         * lib/fwriting.c: Include stdio-impl.h.
48197         (fwriting): Remove redundant #defines.
48198         * modules/fbufmode (Files): Add lib/stdio-impl.h.
48199         * modules/fflush (Files): Likewise.
48200         * modules/fpurge (Files): Likewise.
48201         * modules/freadable (Files): Likewise.
48202         * modules/freadahead (Files): Likewise.
48203         * modules/freading (Files): Likewise.
48204         * modules/freadptr (Files): Likewise.
48205         * modules/freadseek (Files): Likewise.
48206         * modules/fseeko (Files): Likewise.
48207         * modules/fseterr (Files): Likewise.
48208         * modules/fwritable (Files): Likewise.
48209         * modules/fwriting (Files): Likewise.
48210
48211 2008-04-26  Bruno Haible  <bruno@clisp.org>
48212
48213         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
48214         restore_seek_optimization, update_fpos_cache): New functions, extracted
48215         from rpl_fflush.
48216         (rpl_fflush): Use them.
48217         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
48218         (gl_REPLACE_FFLUSH): Use it.
48219
48220 2008-04-26  Bruno Haible  <bruno@clisp.org>
48221
48222         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
48223         on Solaris.
48224         * tests/test-xstrtoimax.sh: Likewise.
48225         * tests/test-xstrtoumax.sh: Likewise.
48226         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48227
48228 2008-04-26  Bruno Haible  <bruno@clisp.org>
48229
48230         * modules/memchr-tests: New file.
48231         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
48232
48233 2008-04-26  Eric Blake  <ebb9@byu.net>
48234             Bruno Haible  <bruno@clisp.org>
48235
48236         * lib/memchr.c: Include intprops.h.
48237         (__memchr): Optimize parallel detection of matching bytes. Rename local
48238         variables. Add explanatory comments.
48239
48240 2008-04-26  Bruno Haible  <bruno@clisp.org>
48241
48242         Fix module 'memchr', broken since 2000-10-28.
48243         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
48244
48245 2008-04-26  Bruno Haible  <bruno@clisp.org>
48246
48247         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
48248         comments.
48249
48250 2008-04-25  Eric Blake  <ebb9@byu.net>
48251
48252         Use native fstatat on cygwin 1.7.0.
48253         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
48254         first.
48255
48256 2008-04-23  Eric Blake  <ebb9@byu.net>
48257
48258         Improve memchr2 performance.
48259         * lib/memchr2.c (memchr2): Further optimize parallel detection of
48260         NUL bytes.
48261         * modules/memchr2 (Depends-on): Use intprops.h.
48262
48263 2008-04-23  Simon Josefsson  <simon@josefsson.org>
48264
48265         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
48266         an inline function instead of a CPP macro.  Patch by Ben Pfaff
48267         <blp@cs.stanford.edu>.
48268
48269 2008-04-23  Simon Josefsson  <simon@josefsson.org>
48270
48271         * lib/arpa_inet.in.h: New file.
48272
48273         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
48274         (Makefile.am): Sed in substitute header file.
48275
48276         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
48277         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
48278
48279         * modules/inet_ntop (configure.ac): Use
48280         gl_ARPA_INET_MODULE_INDICATOR.
48281
48282         * modules/inet_pton (configure.ac): Use
48283         gl_ARPA_INET_MODULE_INDICATOR.
48284
48285 2008-04-22  Jim Meyering  <meyering@redhat.com>
48286
48287         * modules/verify (License): Re-license as LGPLv2+.
48288
48289 2008-04-22  Simon Josefsson  <simon@josefsson.org>
48290
48291         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
48292         parameter to void* as per POSIX standard (MinGW uses char*).
48293
48294 2008-04-21  Bruno Haible  <bruno@clisp.org>
48295
48296         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
48297         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
48298         Define to replacements if REPLACE_ISWCNTRL is 1.
48299         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
48300         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
48301         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
48302         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
48303         what it fixes.
48304         * doc/posix-functions/iswalpha.texi: Likewise.
48305         * doc/posix-functions/iswblank.texi: Likewise.
48306         * doc/posix-functions/iswcntrl.texi: Likewise.
48307         * doc/posix-functions/iswdigit.texi: Likewise.
48308         * doc/posix-functions/iswgraph.texi: Likewise.
48309         * doc/posix-functions/iswlower.texi: Likewise.
48310         * doc/posix-functions/iswprint.texi: Likewise.
48311         * doc/posix-functions/iswpunct.texi: Likewise.
48312         * doc/posix-functions/iswspace.texi: Likewise.
48313         * doc/posix-functions/iswupper.texi: Likewise.
48314         * doc/posix-functions/iswxdigit.texi: Likewise.
48315         Reported by Alain Guibert.
48316
48317 2008-04-21  Bruno Haible  <bruno@clisp.org>
48318
48319         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
48320         Patch by Alain Guibert.
48321
48322 2008-04-21  Bruno Haible  <bruno@clisp.org>
48323
48324         Fix test failures on mingw.
48325         * tests/test-xstrtol.c (print_no_progname): New function.
48326         (main): Install it in error_print_progname hook.
48327         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
48328         * tests/test-xstrtoimax.sh: Likewise.
48329         * tests/test-xstrtoumax.sh: Likewise.
48330
48331 2008-04-21  Bruno Haible  <bruno@clisp.org>
48332
48333         Fix test failure on mingw.
48334         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
48335
48336 2008-04-21  Bruno Haible  <bruno@clisp.org>
48337
48338         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
48339         Actually assign a value.
48340
48341 2008-04-20  Bruno Haible  <bruno@clisp.org>
48342
48343         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
48344         take 2.
48345         * lib/canonicalize.c (canonicalize_file_name): Elide if the
48346         'canonicalize-lgpl' module is also used.
48347         * lib/canonicalize-lgpl.c: Undo last change.
48348         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
48349
48350 2008-04-20  Bruno Haible  <bruno@clisp.org>
48351
48352         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
48353         config.h. Provide _mkdir based fallback for mingw.
48354         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
48355         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
48356         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
48357         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
48358         rather than defining mkdir in config.h.
48359         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
48360         (gl_SYS_STAT_H_DEFAULTS): New macro.
48361         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
48362         HAVE_IO_H any more.
48363         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
48364         HAVE_DECL_MKDIR and HAVE_IO_H.
48365
48366 2008-04-20  Bruno Haible  <bruno@clisp.org>
48367
48368         * lib/isapipe.c: Port to native Windows platforms.
48369
48370 2008-04-20  Bruno Haible  <bruno@clisp.org>
48371
48372         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
48373
48374 2008-04-21  Eric Blake  <ebb9@byu.net>
48375
48376         Work around preprocessors that don't handle UINTMAX_MAX.
48377         * lib/memchr2.c (memchr2): Avoid embedded #if.
48378         Reported by Alain Guibert, fix suggested by Bruno Haible.
48379
48380 2008-04-21  Simon Josefsson  <simon@josefsson.org>
48381
48382         * doc/posix-functions/strftime.texi (strftime): Explain better
48383         Windows incompatibility.  Suggested by Micah Cowan
48384         <micah@cowan.name>.
48385
48386 2008-04-20  Bruno Haible  <bruno@clisp.org>
48387
48388         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
48389         unistr/u8-mblen.
48390
48391 2008-04-20  Bruno Haible  <bruno@clisp.org>
48392
48393         Fix test failure on platforms with non-GNU iconv.
48394         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
48395         (U_TO_U8): Use it, rather than u16_to_u8.
48396         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
48397         units at the end of the input string.
48398         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
48399
48400 2008-04-20  Bruno Haible  <bruno@clisp.org>
48401
48402         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
48403         when the resulting length is 0.
48404         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
48405
48406 2008-04-20  Bruno Haible  <bruno@clisp.org>
48407
48408         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
48409         works.
48410         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
48411
48412 2008-04-20  Bruno Haible  <bruno@clisp.org>
48413
48414         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
48415         * modules/tsearch-tests (configure.ac): Test for initstate function.
48416
48417 2008-04-20  Bruno Haible  <bruno@clisp.org>
48418
48419         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
48420         for nlink_t if missing.
48421         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
48422
48423 2008-04-19  Bruno Haible  <bruno@clisp.org>
48424
48425         Work around snprintf bug on Linux libc5.
48426         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
48427         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48428         gl_SNPRINTF_SIZE1.
48429         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48430         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
48431         that test failed.
48432         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
48433         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
48434         * modules/snprintf (Files): Add m4/printf.m4.
48435         * modules/vsnprintf (Files): Likewise.
48436         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
48437         * doc/posix-functions/vsnprintf.texi: Likewise.
48438
48439 2008-04-19  Bruno Haible  <bruno@clisp.org>
48440
48441         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
48442         from 0.0058 to less than 10^-7.
48443
48444 2008-04-19  Bruno Haible  <bruno@clisp.org>
48445
48446         Fix rounding when a precision is given.
48447         * lib/vasnprintf.c (is_borderline): New function.
48448         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
48449         9...9x.
48450         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
48451         %e, %g.
48452         * tests/test-vasprintf-posix.c (test_function): Likewise.
48453         * tests/test-snprintf-posix.h (test_function): Likewise.
48454         * tests/test-sprintf-posix.h (test_function): Likewise.
48455         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
48456         * tests/test-printf-posix.h (test_function): Likewise.
48457         * tests/test-printf-posix.output: Update.
48458         Reported by John Darrington <john@darrington.wattle.id.au> via
48459         Ben Pfaff <blp@cs.stanford.edu>.
48460
48461 2008-04-18  Simon Josefsson  <simon@josefsson.org>
48462
48463         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
48464         Suggested by Bruno Haible <bruno@clisp.org>.
48465
48466 2008-04-17  Bruno Haible  <bruno@clisp.org>
48467
48468         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
48469         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
48470         implementation.
48471         Patch by Bruce Merry <bmerry@gmail.com>.
48472
48473 2008-04-17  Simon Josefsson  <simon@josefsson.org>
48474
48475         * doc/posix-functions/strftime.texi (strftime): Mention that %e
48476         doesn't work under Windows.
48477
48478 2008-04-16  Bruno Haible  <bruno@clisp.org>
48479
48480         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
48481         New macros.
48482         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
48483         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
48484         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
48485         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
48486         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
48487         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
48488         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
48489         macros.
48490         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
48491         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
48492         Northern Sotho, Uighur.
48493
48494 2008-04-16  Bruno Haible  <bruno@clisp.org>
48495
48496         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
48497         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
48498         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
48499         Reported by Daniel Bergström <daniel@octocode.com>.
48500
48501 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
48502             Bruno Haible  <bruno@clisp.org>
48503
48504         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
48505         function.
48506         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
48507         New functions, mostly extracted from gl_locale_name_default.
48508         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
48509
48510 2008-04-16  Eric Blake  <ebb9@byu.net>
48511
48512         Adjust strtod detection to catch glibc 2.7 bug.
48513         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
48514         Reported by John Gatewood Ham.
48515
48516 2008-04-16  Bruno Haible  <bruno@clisp.org>
48517
48518         Add tentative support for Linux libc5.
48519         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
48520         * lib/fpurge.c (fpurge): Likewise.
48521         * lib/freadable.c (freadable): Likewise.
48522         * lib/freadahead.c (freadahead): Likewise.
48523         * lib/freading.c (freading): Likewise.
48524         * lib/freadptr.c (freadptr): Likewise.
48525         * lib/freadseek.c (freadptrinc): Likewise.
48526         * lib/fseeko.c (rpl_fseeko): Likewise.
48527         * lib/fseterr.c (fseterr): Likewise.
48528         * lib/fwritable.c (fwritable): Likewise.
48529         * lib/fwriting.c (fwriting): Likewise.
48530         Reported by Alain Guibert <alguibert+bts@free.fr>.
48531
48532 2008-04-15  Bruno Haible  <bruno@clisp.org>
48533
48534         * modules/mathl (configure.ac): Define module indicator.
48535
48536 2008-04-15  Bruno Haible  <bruno@clisp.org>
48537
48538         * lib/logl.c (logl): Remove unused variables.
48539
48540 2008-04-15  Bruno Haible  <bruno@clisp.org>
48541
48542         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
48543         fails.
48544
48545 2008-04-15  Bruno Haible  <bruno@clisp.org>
48546
48547         * lib/trim.c (trim2): Fix argument of isspace() macro.
48548
48549 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
48550
48551         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
48552         to 0.
48553         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
48554
48555 2008-04-14  Bruno Haible  <bruno@clisp.org>
48556
48557         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
48558         AC_LANG_PROGRAM argument.
48559         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
48560         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
48561         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
48562         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
48563         * m4/math_h.m4 (gl_MATH_H): Likewise.
48564         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
48565         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48566         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
48567         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
48568         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
48569         * m4/regex.m4 (gl_REGEX): Likewise.
48570         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
48571         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
48572         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48573         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
48574         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
48575         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48576         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48577         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
48578
48579 2008-04-14  Jim Meyering  <meyering@redhat.com>
48580
48581         test-strtod: fix typos: s/abs/fabs/
48582         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
48583
48584 2008-04-13  Bruno Haible  <bruno@clisp.org>
48585
48586         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
48587         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
48588         module is also used and while not building the reloc-wrapper.
48589
48590 2008-04-13  Bruno Haible  <bruno@clisp.org>
48591
48592         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
48593
48594 2008-04-13  Bruno Haible  <bruno@clisp.org>
48595
48596         Fix AIX compilation failure introduced on 2008-04-02.
48597         * tests/test-frexp.c (exp): Undefine before redefining.
48598         * tests/test-frexpl.c (exp): Likewise.
48599
48600 2008-04-13  Bruno Haible  <bruno@clisp.org>
48601
48602         Work around a HP-UX stdio bug.
48603         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
48604         * tests/test-ftello.c (main): Likewise.
48605         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
48606         * doc/posix-functions/ftello.texi: Likewise.
48607
48608 2008-04-13  Bruno Haible  <bruno@clisp.org>
48609
48610         Make test-signbit pass on HP-UX/hppa.
48611         * tests/test-signbit.c (minus_zerol): New variable.
48612         (test_signbitl): Use it.
48613
48614 2008-04-13  Bruno Haible  <bruno@clisp.org>
48615
48616         Make truncl work on OSF/1 4.0.
48617         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
48618         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
48619         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
48620         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
48621         HAVE_DECL_TRUNCL.
48622         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
48623         HAVE_DECL_TRUNCL.
48624         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
48625
48626 2008-04-13  Bruno Haible  <bruno@clisp.org>
48627
48628         * lib/unictype.h: Remove trailing comma from enumeration definitions.
48629
48630 2008-04-13  Bruno Haible  <bruno@clisp.org>
48631
48632         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
48633         expression, so as to avoid HP-UX 11 cc compiler bug.
48634
48635 2008-04-13  Bruno Haible  <bruno@clisp.org>
48636
48637         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
48638
48639 2008-04-13  Bruno Haible  <bruno@clisp.org>
48640
48641         * lib/git-merge-changelog.c: Remove empty declaration outside of
48642         functions.
48643
48644 2008-04-13  Bruno Haible  <bruno@clisp.org>
48645
48646         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
48647
48648 2008-04-13  Bruno Haible  <bruno@clisp.org>
48649
48650         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
48651         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
48652         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
48653         also if it exists but lacks definitions of the SHUT_* macros.
48654         * modules/sys_socket (Description): Update.
48655         Reported by Elbert Pol <e.pol@chello.nl>.
48656
48657 2008-04-13  Bruno Haible  <bruno@clisp.org>
48658
48659         * lib/localcharset.c (OS2): Don't redefine if already defined.
48660         Reported by Elbert Pol <e.pol@chello.nl>.
48661
48662 2008-04-13  Bruno Haible  <bruno@clisp.org>
48663
48664         * lib/binary-io.h [__EMX__]: Include <io.h>.
48665         Reported by Elbert Pol <e.pol@chello.nl>.
48666
48667 2008-04-12  Bruno Haible  <bruno@clisp.org>
48668
48669         * lib/fpucw.h: Enable the definitions also for x86_64.
48670         Needed for NetBSD/x86_64.
48671         Reported by Thomas Klausner <tk@giga.or.at>.
48672
48673 2008-04-12  Bruno Haible  <bruno@clisp.org>
48674
48675         * tests/test-strtod.c: Include isnand.h.
48676         (main): Use isnand instead of isnan.
48677         Reported by Jim Meyering.
48678
48679 2008-04-12  Bruno Haible  <bruno@clisp.org>
48680
48681         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
48682         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
48683
48684 2008-04-12  Jim Meyering  <meyering@redhat.com>
48685
48686         * m4/math_h.m4 (gl_MATH_H): Fix typos.
48687
48688 2008-04-12  Bruno Haible  <bruno@clisp.org>
48689
48690         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
48691         Reported by Elbert Pol <e.pol@chello.nl>.
48692
48693 2008-04-12  Eric Blake  <ebb9@byu.net>
48694
48695         Work around Solaris 10 math.h bug.
48696         * m4/math_h.m4 (gl_MATH_H): Check for bug.
48697         (gl_MATH_H_DEFAULTS): Set up default.
48698         * modules/math (Makefile.am): Replace new indicators.
48699         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
48700         * tests/test-math.c (main): Test this.
48701         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
48702         * doc/posix-headers/math.texi (math.h): Mention bug.
48703         Reported by Nelson H. F. Beebe and Jim Meyering.
48704
48705 2008-04-11  Bruno Haible  <bruno@clisp.org>
48706
48707         Adapt to future versions of Apple GCC.
48708         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
48709         Reported by Peter O'Gorman <peter@pogma.com>.
48710
48711 2008-04-11  Bruno Haible  <bruno@clisp.org>
48712
48713         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
48714
48715 2008-04-11  Bruno Haible  <bruno@clisp.org>
48716
48717         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
48718
48719         * modules/getaddrinfo-tests (Makefile.am): Define
48720         test_getaddrinfo_LDADD.
48721
48722 2008-04-11  Bruno Haible  <bruno@clisp.org>
48723
48724         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
48725         (init): Fix syntax error.
48726         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
48727         is declared.
48728
48729 2008-04-11  Bruno Haible  <bruno@clisp.org>
48730
48731         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
48732         * modules/glob (Depends-on): Add stdbool.
48733
48734 2008-04-11  Bruno Haible  <bruno@clisp.org>
48735
48736         * lib/trim.c: Include <string.h>.
48737
48738 2008-04-11  Eric Blake  <ebb9@byu.net>
48739
48740         Avoid compile failure on OS/2.
48741         * lib/regex_internal.h (internal_function): Disable optimization
48742         on OS/2 (__EMX__), where it caused compiler error.
48743         Reported by Elbert Pol.
48744
48745 2008-04-11  Bruno Haible  <bruno@clisp.org>
48746
48747         Flush the standard error stream before aborting. Needed on mingw.
48748         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
48749         * tests/test-array_list.c (ASSERT): Likewise.
48750         * tests/test-array_oset.c (ASSERT): Likewise.
48751         * tests/test-avltree_list.c (ASSERT): Likewise.
48752         * tests/test-avltree_oset.c (ASSERT): Likewise.
48753         * tests/test-avltreehash_list.c (ASSERT): Likewise.
48754         * tests/test-binary-io.c (ASSERT): Likewise.
48755         * tests/test-byteswap.c (ASSERT): Likewise.
48756         * tests/test-c-ctype.c (ASSERT): Likewise.
48757         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
48758         * tests/test-c-strcasestr.c (ASSERT): Likewise.
48759         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
48760         * tests/test-c-strstr.c (ASSERT): Likewise.
48761         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
48762         * tests/test-canonicalize.c (ASSERT): Likewise.
48763         * tests/test-carray_list.c (ASSERT): Likewise.
48764         * tests/test-ceilf1.c (ASSERT): Likewise.
48765         * tests/test-ceilf2.c (ASSERT): Likewise.
48766         * tests/test-ceill.c (ASSERT): Likewise.
48767         * tests/test-count-one-bits.c (ASSERT): Likewise.
48768         * tests/test-fbufmode.c (ASSERT): Likewise.
48769         * tests/test-fflush2.c (ASSERT): Likewise.
48770         * tests/test-floorf1.c (ASSERT): Likewise.
48771         * tests/test-floorf2.c (ASSERT): Likewise.
48772         * tests/test-floorl.c (ASSERT): Likewise.
48773         * tests/test-fopen.c (ASSERT): Likewise.
48774         * tests/test-fpending.c (ASSERT): Likewise.
48775         * tests/test-fprintf-posix.c (ASSERT): Likewise.
48776         * tests/test-fpurge.c (ASSERT): Likewise.
48777         * tests/test-freadable.c (ASSERT): Likewise.
48778         * tests/test-freadahead.c (ASSERT): Likewise.
48779         * tests/test-freading.c (ASSERT): Likewise.
48780         * tests/test-freadptr.c (ASSERT): Likewise.
48781         * tests/test-freadptr2.c (ASSERT): Likewise.
48782         * tests/test-freadseek.c (ASSERT): Likewise.
48783         * tests/test-freopen.c (ASSERT): Likewise.
48784         * tests/test-frexp.c (ASSERT): Likewise.
48785         * tests/test-frexpl.c (ASSERT): Likewise.
48786         * tests/test-fseek.c (ASSERT): Likewise.
48787         * tests/test-fseeko.c (ASSERT): Likewise.
48788         * tests/test-fstrcmp.c (ASSERT): Likewise.
48789         * tests/test-ftell.c (ASSERT): Likewise.
48790         * tests/test-ftello.c (ASSERT): Likewise.
48791         * tests/test-func.c (ASSERT): Likewise.
48792         * tests/test-fwritable.c (ASSERT): Likewise.
48793         * tests/test-fwriting.c (ASSERT): Likewise.
48794         * tests/test-getdelim.c (ASSERT): Likewise.
48795         * tests/test-getline.c (ASSERT): Likewise.
48796         * tests/test-i-ring.c (ASSERT): Likewise.
48797         * tests/test-iconv-utf.c (ASSERT): Likewise.
48798         * tests/test-iconv.c (ASSERT): Likewise.
48799         * tests/test-isfinite.c (ASSERT): Likewise.
48800         * tests/test-isnand.c (ASSERT): Likewise.
48801         * tests/test-isnanf.c (ASSERT): Likewise.
48802         * tests/test-isnanl.h (ASSERT): Likewise.
48803         * tests/test-ldexpl.c (ASSERT): Likewise.
48804         * tests/test-linked_list.c (ASSERT): Likewise.
48805         * tests/test-linkedhash_list.c (ASSERT): Likewise.
48806         * tests/test-localename.c (ASSERT): Likewise.
48807         * tests/test-lseek.c (ASSERT): Likewise.
48808         * tests/test-mbscasecmp.c (ASSERT): Likewise.
48809         * tests/test-mbscasestr1.c (ASSERT): Likewise.
48810         * tests/test-mbscasestr2.c (ASSERT): Likewise.
48811         * tests/test-mbscasestr3.c (ASSERT): Likewise.
48812         * tests/test-mbscasestr4.c (ASSERT): Likewise.
48813         * tests/test-mbschr.c (ASSERT): Likewise.
48814         * tests/test-mbscspn.c (ASSERT): Likewise.
48815         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
48816         * tests/test-mbspbrk.c (ASSERT): Likewise.
48817         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
48818         * tests/test-mbsrchr.c (ASSERT): Likewise.
48819         * tests/test-mbsspn.c (ASSERT): Likewise.
48820         * tests/test-mbsstr1.c (ASSERT): Likewise.
48821         * tests/test-mbsstr2.c (ASSERT): Likewise.
48822         * tests/test-mbsstr3.c (ASSERT): Likewise.
48823         * tests/test-memchr2.c (ASSERT): Likewise.
48824         * tests/test-memmem.c (ASSERT): Likewise.
48825         * tests/test-open.c (ASSERT): Likewise.
48826         * tests/test-printf-frexp.c (ASSERT): Likewise.
48827         * tests/test-printf-frexpl.c (ASSERT): Likewise.
48828         * tests/test-printf-posix.c (ASSERT): Likewise.
48829         * tests/test-quotearg.c (ASSERT): Likewise.
48830         * tests/test-rbtree_list.c (ASSERT): Likewise.
48831         * tests/test-rbtree_oset.c (ASSERT): Likewise.
48832         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
48833         * tests/test-round1.c (ASSERT): Likewise.
48834         * tests/test-roundf1.c (ASSERT): Likewise.
48835         * tests/test-roundl.c (ASSERT): Likewise.
48836         * tests/test-signbit.c (ASSERT): Likewise.
48837         * tests/test-sleep.c (ASSERT): Likewise.
48838         * tests/test-snprintf-posix.c (ASSERT): Likewise.
48839         * tests/test-snprintf.c (ASSERT): Likewise.
48840         * tests/test-sprintf-posix.c (ASSERT): Likewise.
48841         * tests/test-stat-time.c (ASSERT): Likewise.
48842         * tests/test-strcasestr.c (ASSERT): Likewise.
48843         * tests/test-strerror.c (ASSERT): Likewise.
48844         * tests/test-striconv.c (ASSERT): Likewise.
48845         * tests/test-striconveh.c (ASSERT): Likewise.
48846         * tests/test-striconveha.c (ASSERT): Likewise.
48847         * tests/test-strsignal.c (ASSERT): Likewise.
48848         * tests/test-strstr.c (ASSERT): Likewise.
48849         * tests/test-strtod.c (ASSERT): Likewise.
48850         * tests/test-trunc1.c (ASSERT): Likewise.
48851         * tests/test-trunc2.c (ASSERT): Likewise.
48852         * tests/test-truncf1.c (ASSERT): Likewise.
48853         * tests/test-truncf2.c (ASSERT): Likewise.
48854         * tests/test-truncl.c (ASSERT): Likewise.
48855         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
48856         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
48857         * tests/test-vasnprintf.c (ASSERT): Likewise.
48858         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
48859         * tests/test-vasprintf.c (ASSERT): Likewise.
48860         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
48861         * tests/test-vprintf-posix.c (ASSERT): Likewise.
48862         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
48863         * tests/test-vsnprintf.c (ASSERT): Likewise.
48864         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
48865         * tests/test-wcwidth.c (ASSERT): Likewise.
48866         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
48867         * tests/test-xprintf-posix.c (ASSERT): Likewise.
48868         * tests/test-xvasprintf.c (ASSERT): Likewise.
48869         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
48870         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
48871         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
48872         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
48873         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
48874         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
48875         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
48876         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
48877         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
48878         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
48879         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
48880         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
48881         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
48882         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
48883         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
48884         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
48885         * tests/unictype/test-block_list.c (ASSERT): Likewise.
48886         * tests/unictype/test-block_of.c (ASSERT): Likewise.
48887         * tests/unictype/test-block_test.c (ASSERT): Likewise.
48888         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
48889         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
48890         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
48891         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
48892         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
48893         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
48894         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
48895         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
48896         * tests/unictype/test-combining.c (ASSERT): Likewise.
48897         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
48898         * tests/unictype/test-digit.c (ASSERT): Likewise.
48899         * tests/unictype/test-mirror.c (ASSERT): Likewise.
48900         * tests/unictype/test-numeric.c (ASSERT): Likewise.
48901         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
48902         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
48903         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
48904         * tests/unictype/test-scripts.c (ASSERT): Likewise.
48905         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
48906         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
48907         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
48908         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
48909         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
48910         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
48911         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
48912         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
48913         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
48914         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
48915         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
48916         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
48917         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
48918         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
48919         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
48920         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
48921         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
48922         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
48923         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
48924         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
48925         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
48926         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
48927         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
48928         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
48929         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
48930         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
48931         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
48932         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
48933         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
48934         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
48935         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
48936         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
48937         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
48938         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
48939         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
48940         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
48941         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
48942         Reported by Eric Blake.
48943
48944 2008-04-11  Bruno Haible  <bruno@clisp.org>
48945
48946         * lib/wchar.in.h: Tweak comment.
48947
48948 2008-04-11  Bruno Haible  <bruno@clisp.org>
48949
48950         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
48951         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
48952         gl_COMMON.
48953         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
48954
48955 2008-04-11  Bruno Haible  <bruno@clisp.org>
48956
48957         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
48958
48959 2008-04-11  Simon Josefsson  <simon@josefsson.org>
48960
48961         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
48962         of attempting to use non-existing /dev/*random.  Based on patch
48963         from Adam Strzelecki <ono@java.pl> in
48964         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
48965
48966 2008-04-08  Bruno Haible  <bruno@clisp.org>
48967
48968         Add tentative support for emx+gcc.
48969         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
48970         * lib/fpurge.c (fpurge): Likewise.
48971         * lib/freadable.c (freadable): Likewise.
48972         * lib/freadahead.c (freadahead): Likewise.
48973         * lib/freading.c (freading): Likewise.
48974         * lib/freadptr.c (freadptr): Likewise.
48975         * lib/freadseek.c (freadptrinc): Likewise.
48976         * lib/fseeko.c (rpl_fseeko): Likewise.
48977         * lib/fseterr.c (fseterr): Likewise.
48978         * lib/fwritable.c (fwritable): Likewise.
48979         * lib/fwriting.c (fwriting): Likewise.
48980         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
48981
48982 2008-04-09  Eric Blake  <ebb9@byu.net>
48983
48984         Avoid some autoconf warnings.
48985         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
48986         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
48987         * m4/afs.m4 (gl_AFS): Likewise.
48988         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
48989         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
48990         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48991         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
48992         (gl_INTEGER_TYPE_SUFFIX): Likewise.
48993         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
48994         (AC_CHECK_DECLS_ONCE): Likewise.
48995         Rename file...
48996         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
48997         gnulib-tool requires autoconf 2.59 or better.
48998         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
48999
49000 2008-04-08  Eric Blake  <ebb9@byu.net>
49001
49002         Use 'git describe --match' if present (added in git 1.5.5).
49003         * build-aux/git-version-gen: Limit result to tags that match 'v*'
49004         if possible.
49005
49006 2008-04-08  Bruno Haible  <bruno@clisp.org>
49007
49008         Add tentative support for OpenServer.
49009         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
49010         _ptr, _cnt.
49011         * lib/fpurge.c (fpurge): Likewise.
49012         * lib/freadable.c (freadable): Likewise.
49013         * lib/freadahead.c (freadahead): Likewise.
49014         * lib/freading.c (freading): Likewise.
49015         * lib/freadptr.c (freadptr): Likewise.
49016         * lib/freadseek.c (freadptrinc): Likewise.
49017         * lib/fseeko.c (rpl_fseeko): Likewise.
49018         * lib/fseterr.c (fseterr): Likewise.
49019         * lib/fwritable.c (fwritable): Likewise.
49020         * lib/fwriting.c (fwriting): Likewise.
49021         Reported by Roger Cornelius <rac@tenzing.org> and
49022         Brian K. White <brian@aljex.com>.
49023
49024 2008-04-06  Jim Meyering  <meyering@redhat.com>
49025
49026         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
49027
49028 2008-04-06  Bruno Haible  <bruno@clisp.org>
49029
49030         Avoid possible error with non-ASCII bytes in UTF-8 locales.
49031         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
49032         * tests/test-printf-posix.sh: Likewise.
49033         * tests/test-vfprintf-posix.sh: Likewise.
49034         * tests/test-vprintf-posix.sh: Likewise.
49035         * tests/test-xprintf-posix.sh: Likewise.
49036
49037 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49038
49039         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
49040         hide error from 'ls', needed on OS/2.
49041         Report by Elbert Pol <elbert.pol@gmail.com>.
49042
49043 2008-04-04  Eric Blake  <ebb9@byu.net>
49044
49045         Make test-fseeko.c failures meaningful.
49046         * tests/test-fseeko.c: Print line number on failure.
49047         * tests/test-fseek.c: Likewise.
49048         Reported by Nelson H. F. Beebe.
49049
49050         Improve strtod bug detection check.
49051         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
49052         required for Solaris 10.
49053         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
49054
49055 2008-04-04  Bruno Haible  <bruno@clisp.org>
49056
49057         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
49058         by m4/setenv.m4.
49059
49060 2008-04-03  Eric Blake  <ebb9@byu.net>
49061
49062         Ensure sane .version contents.
49063         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
49064         version string.
49065         * build-aux/git-version-gen: Improve documentation.
49066
49067         Make GNU make output nicer.
49068         * top/GNUmakefile [!_have-Makefile]: Add dependency on
49069         MAKECMDGOALS to enforce message for all command line targets.  Set
49070         srcdir for use in maint.mk.
49071
49072         Another maintainer tweak.
49073         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
49074         a target that regenerates version.
49075
49076 2008-04-03  Jim Meyering  <meyering@redhat.com>
49077
49078         vc-list-files: don't cause coreutils "make po-check" failure
49079         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
49080
49081 2008-04-03  Eric Blake  <ebb9@byu.net>
49082
49083         Allow VPATH usage of vc-list-files.
49084         * build-aux/vc-list-files (scriptversion): Add timestamp.
49085         (options): Add --help, --version, -C.
49086         (CVS): Support installed cvsu.
49087
49088 2008-04-02  Bruno Haible  <bruno@clisp.org>
49089
49090         Avoid some "statement with no effect" warnings from gcc.
49091         * tests/test-wctype.c (main): Explicitly ignore unused values.
49092         Reported by Jim Meyering.
49093
49094 2008-04-02  Jim Meyering  <meyering@redhat.com>
49095
49096         Avoid some warnings from "gcc -Wshadow".
49097         * tests/test-frexp.c (exp): Define to a different identifier.
49098         * tests/test-frexpl.c (exp): Likewise.
49099
49100 2008-04-03  Jim Meyering  <meyering@redhat.com>
49101
49102         bootstrap: remove dangling *.[ch] symlinks from lib
49103         * build-aux/bootstrap [dangling symlink removal]: Move find's
49104         -depth option to precede all others, to avoid a warning.
49105         Remove *.[ch] files too, and from "$source_base" (usually lib/).
49106
49107 2008-04-02  Bruno Haible  <bruno@clisp.org>
49108
49109         Avoid some warnings from "gcc -Wshadow".
49110         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
49111         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
49112         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
49113         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
49114         Reported by Jim Meyering.
49115
49116 2008-04-01  Bruno Haible  <bruno@clisp.org>
49117
49118         Fix test to work on IRIX 6.5 with cc.
49119         * tests/test-math.c (numeric_equal): New function.
49120         (main): Use it.
49121
49122 2008-04-01  Bruno Haible  <bruno@clisp.org>
49123
49124         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
49125
49126 2008-04-01  Bruno Haible  <bruno@clisp.org>
49127
49128         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
49129         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49130         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
49131         (Depends-on): Remove math.
49132
49133         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
49134         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49135         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
49136         (Depends-on): Remove math.
49137
49138         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
49139         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49140         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
49141         (Depends-on): Remove math.
49142         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
49143         (Depends-on): Remove math.
49144
49145         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
49146         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49147         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
49148         (Depends-on): Remove math.
49149         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
49150         (Depends-on): Remove math.
49151
49152         * tests/test-round1.c: Include nan.h.
49153         (main): Use NaNd instead of NAN.
49154         * modules/round-tests (Files): Add tests/nan.h.
49155
49156         * tests/test-trunc1.c: Include nan.h.
49157         (main): Use NaNd instead of NAN.
49158         * modules/trunc-tests (Files): Add tests/nan.h.
49159
49160         * tests/test-roundf1.c: Include nan.h.
49161         (main): Use NaNf instead of NAN.
49162         * modules/roundf-tests (Files): Add tests/nan.h.
49163
49164         * tests/test-truncf1.c: Include nan.h.
49165         (main): Use NaNf instead of NAN.
49166         * modules/truncf-tests (Files): Add tests/nan.h.
49167
49168         * tests/test-ceilf1.c: Include nan.h.
49169         (main): Use NaNf instead of NAN.
49170         * modules/ceilf-tests (Files): Add tests/nan.h.
49171
49172         * tests/test-floorf1.c: Include nan.h.
49173         (main): Use NaNf instead of NAN.
49174         * modules/floorf-tests (Files): Add tests/nan.h.
49175
49176         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
49177         (main): Use NaNf instead of NAN.
49178         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
49179
49180         * tests/test-isnand.c: Include nan.h instead of <math.h>.
49181         (main): Use NaNd instead of NAN.
49182         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
49183
49184         * tests/test-frexp.c: Include nan.h.
49185         (main): Use NaNd instead of NAN.
49186         * modules/frexp-tests (Files): Add tests/nan.h.
49187
49188         * lib/isnan.c: Don't include <math.h>.
49189         (FUNC): Don't use NAN macro.
49190         * modules/isnand-nolibm (Depends-on): Remove math.
49191         * modules/isnanf-nolibm (Depends-on): Remove math.
49192         * modules/isnanl (Depends-on): Remove math.
49193         * modules/isnanl-nolibm (Depends-on): Remove math.
49194
49195         * tests/nan.h: New file.
49196
49197 2008-04-01  Eric Blake  <ebb9@byu.net>
49198
49199         Fix typos.
49200         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
49201         values to be the right type.
49202
49203         For now, cater to gnulib strtod inaccuracies.
49204         * tests/test-strtod.c (main): Allow 1-ulp error on expected
49205         fractional results.  While not as nice from a QoI perspective, it
49206         is a quicker patch than correctly implementing decimal to binary
49207         rounding.
49208
49209 2008-03-31  Eric Blake  <ebb9@byu.net>
49210
49211         Guarantee a definition of NAN.
49212         * lib/math.in.h (NAN): Define if missing.
49213         * tests/test-math.c (main): Test it.
49214         * doc/posix-headers/math.texi (math.h): Document this.
49215         * lib/isnan.c (rpl_isnand): Use it.
49216         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
49217         * tests/test-floorf1.c (NaN): Likewise.
49218         * tests/test-frexp.c (NaN): Likewise.
49219         * tests/test-isnand.c (NaN): Likewise.
49220         * tests/test-isnanf.c (NaN): Likewise.
49221         * tests/test-round1.c (NaN): Likewise.
49222         * tests/test-roundf1.c (NaN): Likewise.
49223         * tests/test-snprintf-posix.h (NaN): Likewise.
49224         * tests/test-sprintf-posix.h (NaN): Likewise.
49225         * tests/test-trunc1.c (NaN): Likewise.
49226         * tests/test-truncf1.c (NaN): Likewise.
49227         * tests/test-vasnprintf-posix.c (NaN): Likewise.
49228         * tests/test-vasprintf-posix.c (NaN): Likewise.
49229         * modules/isnand-nolibm (Depends-on): Add math.
49230         * modules/isnanf-nolibm (Depends-on): Likewise.
49231         * modules/isnanl (Depends-on): Likewise.
49232         * modules/isnanl-nolibm (Depends-on): Likewise.
49233         * modules/snprintf-posix-tests (Depends-on): Likewise.
49234         * modules/sprintf-posix-tests (Depends-on): Likewise.
49235         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
49236         * modules/vsprintf-posix-tests (Depends-on): Likewise.
49237         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
49238         * modules/vasprintf-posix-tests (Depends-on): Likewise.
49239
49240 2008-03-31  Bruno Haible  <bruno@clisp.org>
49241
49242         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
49243         * doc/posix-functions/strtod.texi: Likewise.
49244
49245 2008-03-31  Bruno Haible  <bruno@clisp.org>
49246
49247         * tests/test-strtod.c (main): Don't use C99 syntax.
49248
49249 2008-03-31  Bruno Haible  <bruno@clisp.org>
49250
49251         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
49252         Reported by Eric Blake.
49253
49254 2008-03-31  Jim Meyering  <meyering@redhat.com>
49255
49256         Don't compare actual signbit return values.
49257         * tests/test-strtod.c (main): Rather, compare only their
49258         zero/non-zero nature.
49259
49260 2008-03-31  Eric Blake  <ebb9@byu.net>
49261
49262         More strtod documentation.
49263         * doc/posix-functions/strtod.texi (strtod): Interpret more test
49264         failures as distinct bugs.
49265
49266 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
49267
49268         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
49269         Problem reported by Erik Benada in
49270         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
49271
49272 2008-03-30  Bruno Haible  <bruno@clisp.org>
49273
49274         * tests/test-strtod.c: Add comments about which assertion fails on which
49275         platform.
49276         * doc/posix-functions/strtod.texi: Add info about many more platforms.
49277
49278 2008-03-30  Eric Blake  <ebb9@byu.net>
49279
49280         Test signbit behavior on zeros.
49281         * tests/test-signbit.c (test_signbitf): Add tests for zero.
49282         (test_signbitd, test_signbitl): Likewise.
49283
49284         More strtod touchups.
49285         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
49286         sign of negative underflow, for now.  Use .5, not .1.
49287         * doc/posix-functions/strtod.texi (strtod): Mention these
49288         limitations.
49289         Reported by Jim Meyering.
49290
49291 2008-03-30  Bruno Haible  <bruno@clisp.org>
49292
49293         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
49294         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
49295
49296 2008-03-30  Bruno Haible  <bruno@clisp.org>
49297
49298         Avoid failure when attempting to return empty iconv results on some
49299         platforms.
49300         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
49301         allocation, don't report ENOMEM when the resulting string is empty.
49302
49303 2008-03-30  Bruno Haible  <bruno@clisp.org>
49304
49305         Fix buffer overrun.
49306         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
49307         Don't consider the width for tmp_length. Check count against tmp_length
49308         before doing the padding. Ensure enough allocation during padding.
49309
49310 2008-03-30  Eric Blake  <ebb9@byu.net>
49311
49312         strtod touchups.
49313         * lib/strtod.c (strtod): Avoid compiler warnings.
49314         Reported by Jim Meyering.
49315
49316 2008-03-30  Bruno Haible  <bruno@clisp.org>
49317
49318         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
49319         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
49320         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
49321         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
49322         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
49323         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
49324         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
49325         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
49326
49327         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
49328         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
49329         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
49330         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
49331         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
49332         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
49333         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
49334         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
49335
49336         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
49337         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
49338         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
49339         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
49340         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
49341         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
49342         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
49343         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
49344
49345         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
49346         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
49347
49348         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
49349         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
49350
49351         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
49352         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
49353
49354         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
49355         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
49356         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
49357
49358         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
49359         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
49360         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
49361
49362         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
49363         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
49364         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
49365
49366         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
49367         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
49368         * modules/vasprintf (Depends-on): Add EOVERFLOW.
49369
49370         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
49371         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
49372         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
49373         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
49374         (Depends-on): Add EOVERFLOW.
49375         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
49376         (Depends-on): Add EOVERFLOW.
49377         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
49378         (Depends-on): Add EOVERFLOW.
49379         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
49380         (Depends-on): Add EOVERFLOW.
49381         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
49382         (Depends-on): Add EOVERFLOW.
49383         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
49384         (Depends-on): Add EOVERFLOW.
49385         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
49386         (Depends-on): Add EOVERFLOW.
49387         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
49388         (Depends-on): Add EOVERFLOW.
49389
49390         * lib/sprintf.c (EOVERFLOW): Remove fallback.
49391         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
49392         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
49393
49394         * lib/snprintf.c (EOVERFLOW): Remove fallback.
49395         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
49396         * modules/snprintf (Depends-on): Add EOVERFLOW.
49397
49398         * lib/poll.c (EOVERFLOW): Remove fallback.
49399         * modules/poll (Depends-on): Add EOVERFLOW.
49400
49401         * lib/getugroups.c (EOVERFLOW): Remove fallback.
49402         * modules/getugroups (Depends-on): Add EOVERFLOW.
49403
49404         * lib/getdelim.c (EOVERFLOW): Remove fallback.
49405         * modules/getdelim (Depends-on): Add EOVERFLOW.
49406
49407         * lib/ftell.c (EOVERFLOW): Remove fallback.
49408         * modules/ftell (Depends-on): Add EOVERFLOW.
49409
49410         * lib/fprintf.c (EOVERFLOW): Remove fallback.
49411         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
49412         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
49413
49414         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
49415
49416         * modules/EOVERFLOW-tests: New file.
49417         * tests/test-EOVERFLOW.c: New file.
49418
49419         * modules/EOVERFLOW: New file.
49420         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
49421
49422 2008-03-30  Bruno Haible  <bruno@clisp.org>
49423
49424         Fix bug introduced on 2007-06-10.
49425         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
49426         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
49427
49428 2008-03-30  Bruno Haible  <bruno@clisp.org>
49429
49430         Improve freadseek's efficiency after ungetc.
49431         * lib/freadseek.c: Include freadahead.h.
49432         (freadptrinc): New function, extracted from freadseek.
49433         (freadseek): Use it in a loop. Use freadahead to determine the number
49434         of loop iterations.
49435         * modules/freadseek (Depends-on): Add freadahead.
49436         (configure.ac): Require AC_C_INLINE.
49437
49438 2008-03-30  Bruno Haible  <bruno@clisp.org>
49439
49440         * lib/freadseek.c (freadseek): Don't ignore the return value of
49441         freadptr.
49442
49443 2008-03-29  Eric Blake  <ebb9@byu.net>
49444
49445         Add hex float support.
49446         * modules/strtod (Depends-on): Add c-ctype.
49447         (Link): Mention POW_LIB.
49448         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
49449         whitespace between 'e' and exponent.
49450         * tests/test-strtod.c (main): Enable hex float tests.
49451         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
49452         now provides.
49453
49454         Document various strtod bugs, with some fixes.
49455         * doc/posix-functions/strtod.texi (strtod): Document bugs with
49456         "-0x", "inf", "nan", and hex constants.
49457         * doc/posix-functions/atof.texi (atof): Likewise.
49458         * modules/stdlib (Makefile.am): Support strtod.
49459         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
49460         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
49461         detect additional strtod bugs.
49462         * lib/stdlib.in.h (rpl_strtod): Add declarations.
49463         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
49464         bool where appropriate.  Parse 'inf' and 'nan'.
49465         * tests/test-strtod.c: New file.
49466         * modules/strtod (Depends-on): Add stdbool, stdlib.
49467         (configure.ac): Turn on module indicator.
49468         * modules/strtod-tests: New module.
49469
49470 2008-03-29  Eric Blake  <ebb9@byu.net>
49471
49472         Fix ftell on mingw.
49473         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
49474         * modules/ftell-tests (Depends-on): Add binary-io.
49475         * modules/ftello-tests (Depends-on): Likewise.
49476         * tests/test-ftell.c (main): Enhance test to cover behavior after
49477         ungetc.  Enforce binary mode.
49478         * tests/test-ftello.c (main): Likewise.
49479
49480         Pass test-freadseek on cygwin.
49481         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
49482         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
49483         ungetc buffer.
49484
49485         * tests/test-fflush2.c (main): Fix typo.
49486
49487 2008-03-29  Bruno Haible  <bruno@clisp.org>
49488
49489         * tests/test-fflush2.c (main): Temporarily disable the contents of
49490         this test.
49491         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
49492         Reported by Eric Blake.
49493
49494 2008-03-28  Simon Josefsson  <simon@josefsson.org>
49495
49496         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
49497         (GC_SHA224_DIGEST_SIZE): Add.
49498
49499         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
49500         (gc_hash_digest_length): Likewise.
49501         (gc_hash_buffer): Likewise.
49502
49503 2008-03-25  Bruno Haible  <bruno@clisp.org>
49504
49505         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
49506         detail which gettext release to use.
49507         Reported by Simon Josefsson.
49508
49509 2008-03-26  Jim Meyering  <meyering@redhat.com>
49510
49511         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
49512         * modules/gnumakefile (clean-GNUmakefile): Also, use
49513         test ... && ... || : syntax rather than if-then ... fi.
49514
49515         gnumakefile: Don't double-quote-expand $(VPATH) value.
49516         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
49517
49518 2008-03-24  Eric Blake  <ebb9@byu.net>
49519
49520         Alter GNUmakefile to install into top directory.
49521         * modules/maintainer-makefile: Split, and add dependency...
49522         * modules/gnumakefile: to this new module.
49523         * build-aux/GNUmakefile: Move...
49524         * top/GNUmakefile: ...here.
49525         * build-aux/maint.mk: Move...
49526         * top/maint.mk: ...here.
49527         * MODULES.html.sh (Support for maintaining...): Document new
49528         module.
49529
49530 2008-03-23  Bruno Haible  <bruno@clisp.org>
49531
49532         * gnulib-tool: New options --vc-files, --no-vc-files.
49533         (func_usage): Document them.
49534         (vc_files): New variable.
49535         (func_import): Consider vc_files.
49536         (func_create_testdir): Set vc_files to empty.
49537         Suggested by Jim Meyering and Karl Berry.
49538
49539 2008-03-23  Bruno Haible  <bruno@clisp.org>
49540
49541         Fix regex compilation error on HP-UX 11.
49542         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
49543         * modules/regex (Files): Add m4/mbstate_t.m4.
49544         Reported by Ton Voon <ton.voon@altinity.com>.
49545
49546 2008-03-23  Bruno Haible  <bruno@clisp.org>
49547
49548         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
49549
49550 2008-03-23  Eric Blake  <ebb9@byu.net>
49551             Bruno Haible  <bruno@clisp.org>
49552
49553         Install files from top/ in the destination directory.
49554         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
49555         augmentation also for the files from top/.
49556         (func_import, func_create_testdir): Rewrite file names:
49557         top/filename -> filename.
49558
49559 2008-03-23  Bruno Haible  <bruno@clisp.org>
49560
49561         Tweak "gnulib --version" output.
49562         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
49563
49564 2008-03-23  Bruno Haible  <bruno@clisp.org>
49565
49566         Tweak "gnulib --version" output.
49567         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
49568         rather than contents of ChangeLog, when possible.
49569
49570 2008-03-21  Eric Blake  <ebb9@byu.net>
49571
49572         More --version tweaks.
49573         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
49574         date of last ChangeLog entry.
49575
49576 2008-03-21  Jim Meyering  <meyering@redhat.com>
49577
49578         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
49579
49580 2008-03-20  Eric Blake  <ebb9@byu.net>
49581
49582         VPATH fix.
49583         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
49584
49585 2008-03-20  Simon Josefsson  <simon@josefsson.org>
49586
49587         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
49588         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
49589
49590 2008-03-20  Eric Blake  <ebb9@byu.net>
49591
49592         Sync GNUmakefile with coreutils.
49593         * build-aux/GNUmakefile (have-Makefile): Rename...
49594         (_have-Makefile): ...to this, for namespace consideration.
49595         (GNUmakefile.cfg): Include, if present.
49596         (_autoreconf): Define a default.
49597         (_is-dist-target): New rule for rebuilds to pick up intra-release
49598         version.
49599         (maint-cfg.mk): Rename...
49600         (cfg.mk): ...to this.
49601
49602 2008-03-18  Jim Meyering  <meyering@redhat.com>
49603
49604         New script and module: mktempd
49605         * MODULES.html.sh (maint+release support): Add mktempd.
49606         * build-aux/mktempd: New file.
49607         * modules/mktempd: New file.
49608
49609 2008-03-15  Jim Meyering  <meyering@redhat.com>
49610
49611         Undo last change.
49612         * lib/sha1.c, lib/md5.c: 63 != ~63.
49613         Reported by Andreas Schwab.
49614
49615         sha1.c, md5.c: Hoist a redundant expression.
49616         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
49617         "ctx->buflen" only once, before calling *_process_block.
49618         * lib/md5.c (md5_process_bytes): Likewise.
49619
49620 2008-03-14  Eric Blake  <ebb9@byu.net>
49621
49622         Bump copyright year in files generated by gnulib-tool.
49623         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
49624         gnulib-tool, rather than hard-coding it.
49625
49626         Fix 'gnulib-tool --version' output to work with git.
49627         * gnulib-tool (func_gnulib_dir): New function, extracted from...
49628         (startup): ...here.
49629         (func_version): Use it to invoke git-version-gen, rather than
49630         relying on CVS keyword expansion.  Modernize wording.
49631         (cvsdatestamp, last_checkin_date, version): Kill unused
49632         variables.
49633
49634 2008-03-12  Jim Meyering  <meyering@redhat.com>
49635
49636         Recognize optional cast of the argument to free.
49637         * build-aux/useless-if-before-free: Update regexps.
49638
49639         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
49640
49641 2008-03-11  Bruno Haible  <bruno@clisp.org>
49642
49643         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
49644         by a single package.
49645         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
49646         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
49647         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
49648         Reported by Sam Steingold <sds@gnu.org>.
49649
49650 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
49651
49652         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
49653         repositories.
49654
49655 2008-03-11  Bruno Haible  <bruno@clisp.org>
49656
49657         Avoid conflicts between local macro definitions.
49658         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
49659         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
49660
49661 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
49662             Bruno Haible  <bruno@clisp.org>
49663
49664         Make va_copy work with some version of xlc on AIX 5.1.
49665         * lib/stdarg.in.h: New file.
49666         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
49667         On AIX, use a <stdarg.h> file substitute.
49668         * modules/stdarg (Files): Add lib/stdarg.in.h.
49669         (Depends-on): Add include_next.
49670         (Makefile.am): Build a stdarg.h substitute if requested.
49671         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
49672
49673 2008-03-10  Bruno Haible  <bruno@clisp.org>
49674
49675         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
49676         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49677         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
49678
49679 2008-03-10  Bruno Haible  <bruno@clisp.org>
49680
49681         * modules/stdlib (Depends-on): Add include_next, remove
49682         absolute-header.
49683
49684 2008-03-09  Bruno Haible  <bruno@clisp.org>
49685
49686         * lib/freadahead.h (freadahead): Document more precisely.
49687         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
49688         the sum of both buffer sizes.
49689         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
49690         * NEWS: Document the change.
49691
49692 2008-03-09  Bruno Haible  <bruno@clisp.org>
49693
49694         Extend freadptr to return also the buffer size.
49695         * lib/freadptr.h (freadptr): Add sizep argument.
49696         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
49697         (freadptr): Add sizep argument. Determine buffer size like freadahead
49698         does.
49699         * tests/test-freadptr.c: Don't include freadahead.h.
49700         (main): Adapt for new calling convention of freadptr.
49701         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
49702         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
49703         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
49704         tests/test-freadptr2.sh.
49705         (Depends): Remove freadahead.
49706         (TESTS): Add test-freadptr2.sh.
49707         (check_PROGRAMS): Add test-freadptr2.
49708
49709 2008-03-09  Bruno Haible  <bruno@clisp.org>
49710
49711         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
49712         Report and solution by Simon Josefsson.
49713
49714 2008-03-06  Bruno Haible  <bruno@clisp.org>
49715
49716         Make fflush after ungetc work on BSD platforms.
49717         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
49718         * tests/test-fflush2.c: New file.
49719         * tests/test-fflush2.sh: New file.
49720         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
49721         tests/test-fflush2.c.
49722         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
49723         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
49724
49725 2008-03-06  Eric Blake  <ebb9@byu.net>
49726
49727         Likewise for ftello.
49728         * modules/ftello (Dependencies): Add extensions.
49729         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
49730
49731 2008-03-06  Bruno Haible  <bruno@clisp.org>
49732
49733         * modules/fseeko (Dependencies): Add extensions.
49734         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
49735         Needed on glibc systems.
49736
49737 2008-03-06  Bruno Haible  <bruno@clisp.org>
49738
49739         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
49740         email address.
49741         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
49742
49743 2008-03-06  Bruno Haible  <bruno@clisp.org>
49744
49745         * users.txt: Add libgnupdf.
49746
49747 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
49748
49749         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
49750         (Header File Substitutes, Function Substitutes,
49751         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
49752         (Build robot for gnulib): Fix typo.
49753
49754 2008-03-06  Bruno Haible  <bruno@clisp.org>
49755
49756         * doc/gnulib-tool.texi (VCS Issues): Small updates.
49757         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
49758
49759 2008-03-06  Bruno Haible  <bruno@clisp.org>
49760
49761         * doc/func.texi: New file, extracted from doc/gnulib.texi.
49762         * doc/gnulib.texi: Include it.
49763
49764 2008-03-06  Simon Josefsson  <simon@josefsson.org>
49765
49766         * modules/func (License): Change license to unlimited; there was
49767         no LGPL parts in the module anyway.
49768
49769 2008-03-06  Simon Josefsson  <simon@josefsson.org>
49770
49771         * modules/__func__: Renamed to modules/func.
49772         * modules/__func__-tests: Renamed to modules/func-tests.
49773         * tests/test-__func__.c: Renamed to tests/test-func.c.
49774         * m4/__func__.m4: Renamed to m4/func.m4.
49775         * doc/gnulib.texi (__func__): Section renamed to func.
49776         Suggested by Eric Blake <ebb9@byu.net>.
49777
49778 2008-03-06  Simon Josefsson  <simon@josefsson.org>
49779
49780         * doc/gnulib.texi (__func__): Use C99 terminology when talking
49781         about __func__.  Make example self-contained.  Suggested by Eric
49782         Blake <ebb9@byu.net>.
49783
49784         * tests/test-__func__.c (main): Avoid extraneous () around __func.
49785         Suggested by Eric Blake <ebb9@byu.net>.
49786
49787 2008-03-06  Simon Josefsson  <simon@josefsson.org>
49788
49789         * modules/__func__: New file.
49790         * modules/__func__-tests: New file.
49791         * tests/test-__func__.c: New file.
49792         * m4/__func__.m4: New file.
49793         * doc/gnulib.texi (__func__): Document __func__ module.
49794
49795 2008-03-05  Simon Josefsson  <simon@josefsson.org>
49796
49797         * modules/byteswap (License): Re-license as LGPLv2+.
49798
49799 2008-03-05  Simon Josefsson  <simon@josefsson.org>
49800
49801         * doc/Makefile: Add pdf target.
49802
49803 2008-03-05  Simon Josefsson  <simon@josefsson.org>
49804
49805         * modules/inline (License): Use 'unlimited', since there are only
49806         *.m4 files in this module.
49807
49808 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
49809             Bruno Haible  <bruno@clisp.org>
49810
49811         Add support for HP C 7.1 on OpenVMS 8.3.
49812         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
49813
49814 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
49815
49816         Update VMS specifics.
49817         * lib/getopt.c [VMS]: Remove include of unixlib.h.
49818
49819 2008-03-02  Jim Meyering  <meyering@redhat.com>
49820
49821         Remove the last dependency on the "free" module.
49822         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
49823         Reported by Bob Proulx.
49824
49825         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
49826
49827         Remove useless "if" tests before free.  Deprecate "free" module.
49828         * doc/posix-functions/free.texi: Mention that this
49829         module is no longer useful.
49830         * modules/free (Notice): Say this module is obsolete.
49831         * modules/readutmp (Depends-on): Remove free.
49832         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
49833         * lib/putenv.c (putenv): Likewise.
49834         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
49835         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
49836         * tests/test-c-strcasestr.c (main): Likewise.
49837         * tests/test-c-strstr.c (main): Likewise.
49838         * tests/test-mbscasestr1.c (main): Likewise.
49839         * tests/test-mbscasestr2.c (main): Likewise.
49840         * tests/test-mbsstr1.c (main): Likewise.
49841         * tests/test-mbsstr2.c (main): Likewise.
49842         * tests/test-memmem.c (main): Likewise.
49843         * tests/test-strcasestr.c (main): Likewise.
49844         * tests/test-striconv.c (main): Likewise.
49845         * tests/test-striconveh.c (main): Likewise.
49846         * tests/test-striconveha.c (main): Likewise.
49847         * tests/test-strstr.c (main): Likewise.
49848
49849         * build-aux/git-version-gen: Adjust a comment and the Usage string.
49850
49851         bootstrap: sync from coreutils again
49852         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
49853
49854 2008-03-01  Jim Meyering  <meyering@redhat.com>
49855
49856         bootstrap: sync from coreutils
49857         * build-aux/bootstrap (update_po_files): Copy a .po file into place
49858         also when the target doesn't exist.
49859
49860 2008-03-01  Eric Blake  <ebb9@byu.net>
49861
49862         Fix bugs in last patch.
49863         * lib/memchr2.c (memchr2): Fix typo.
49864         * tests/test-memchr2.c: Test previous bug, and don't use GNU
49865         extension.
49866         Reported by Bruce Korb.
49867
49868         New module 'memchr2'.
49869         * modules/memchr2: New file.
49870         * modules/memchr2-tests: Likewise.
49871         * lib/memchr2.h: Likewise.
49872         * lib/memchr2.c: Likewise, based on memchr.c.
49873         * tests/test-memchr2.c: New test.
49874         * MODULES.html.sh (String handling): Add memchr2.
49875
49876 2008-02-29  Bruno Haible  <bruno@clisp.org>
49877
49878         * modules/freadseek-tests: New file.
49879         * tests/test-freadseek.sh: New file.
49880         * tests/test-freadseek.c: New file.
49881
49882         New module 'freadseek'.
49883         * modules/freadseek: New file.
49884         * lib/freadseek.h: New file.
49885         * lib/freadseek.c: New file.
49886         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
49887
49888 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
49889
49890         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
49891         wydawca.
49892
49893         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
49894         program_invocation_name and program_invocation_short_name are
49895         present.
49896
49897 2008-02-28  Bruno Haible  <bruno@clisp.org>
49898
49899         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
49900         * tests/test-freadptr.sh: Also test non-seekable stdin.
49901
49902 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
49903
49904         * build-aux/bootstrap (source_base, m4_base)
49905         (doc_base, tests_base): New variables.
49906         (gnulib_tool_options): Do not hardcode base directories, use
49907         the above variables instead.
49908
49909 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
49910
49911         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
49912
49913 2008-02-28  Bruno Haible  <bruno@clisp.org>
49914
49915         * modules/freadptr-tests: New file.
49916         * tests/test-freadptr.sh: New file.
49917         * tests/test-freadptr.c: New file.
49918
49919         New module 'freadptr'.
49920         * modules/freadptr: New file.
49921         * lib/freadptr.h: New file.
49922         * lib/freadptr.c: New file.
49923         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
49924
49925 2008-02-26  Karl Berry  <karl@freefriends.org>
49926
49927         Sync from Libtool:
49928         * libltdl/argz.c (argz_add, argz_count): New functions.
49929         * libltdl/argz.in.h: Declare them.
49930         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
49931
49932 2008-02-22  Bruno Haible  <bruno@clisp.org>
49933
49934         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
49935         is a pointer type.  Needed for HP-UX 10.
49936         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
49937         * doc/posix-functions/gmtime_r.texi: Likewise.
49938         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
49939
49940 2008-02-24  Bruno Haible  <bruno@clisp.org>
49941
49942         * modules/environ-tests: New file.
49943         * tests/test-environ.c: New file.
49944
49945         New module 'environ'.
49946         * modules/environ: New file.
49947         * lib/unistd.in.h (environ): New declaration.
49948         * m4/environ.m4: New file.
49949         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
49950         after use.
49951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
49952         HAVE_DECL_ENVIRON.
49953         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
49954         HAVE_DECL_ENVIRON.
49955         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
49956         wrong claim that 'environ' is missing on some systems.
49957         * modules/execute (Depends-on): Add environ.
49958         * lib/execute.c (environ): Remove fallback declaration.
49959         * modules/pipe (Depends-on): Add environ.
49960         * lib/pipe.c (environ): Remove fallback declaration.
49961         * modules/setenv (Depends-on): Add environ.
49962         * lib/setenv.c (environ): Remove fallback declaration.
49963         * modules/unsetenv (Depends-on): Add environ.
49964         * lib/unsetenv.c (environ): Remove fallback declaration.
49965         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
49966         m4/environ.m4.
49967         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
49968         (gl_PREREQ_UNSETENV): Likewise.
49969
49970 2008-02-24  Bruno Haible  <bruno@clisp.org>
49971
49972         * doc/posix-functions/environ.texi: Document the MacOS X problem.
49973
49974 2008-02-20  Bob Proulx  <bob@proulx.com>
49975
49976         Enable use of older two part flavor 'git describe'.
49977         * build-aux/git-version-gen: If using the older two part flavor of
49978         git version then recreate the third part now present in the
49979         newer three part flavor of git describe.
49980
49981 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
49982
49983         * lib/fts.c (fts_build): Typo correction to comment.
49984
49985 2008-02-17  Bruno Haible  <bruno@clisp.org>
49986
49987         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
49988         generating no-op conflicts.
49989
49990 2008-02-17  Bruno Haible  <bruno@clisp.org>
49991
49992         Speed up by 10%.
49993         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
49994         result_entries, rather than an index-based loop.
49995
49996 2008-02-17  Bruno Haible  <bruno@clisp.org>
49997
49998         Speed up by 25%.
49999         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
50000         'hashcode_cached'.
50001         (entry_create): New function.
50002         (entry_hashcode): Use the cached hashcode if possible.
50003         (read_changelog_file, try_split_merged_entry): Use entry_create.
50004
50005 2008-02-17  Bruno Haible  <bruno@clisp.org>
50006
50007         Speed up from O(n^2) to O(n) for long ChangeLog files.
50008         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
50009         (read_changelog_file): Change implementation of entries_reversed list
50010         to rbtreehash.
50011         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
50012
50013 2008-02-17  Bruno Haible  <bruno@clisp.org>
50014
50015         New option --split-merged-entry.
50016         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
50017         (find_paragraph_end, try_split_merged_entry): New functions.
50018         (long_options): Add option --split-merged-entry.
50019         (usage): Document option --split-merged-entry.
50020         (main): Implement option --split-merged-entry.
50021         Reported by Eric Blake.
50022
50023 2008-02-17  Bruno Haible  <bruno@clisp.org>
50024
50025         * lib/git-merge-changelog.c: Include c-strstr.h.
50026         (main): Support the "git pull --rebase" situation.
50027         * modules/git-merge-changelog (Depends-on): Add c-strstr.
50028         Reported by Eric Blake.
50029
50030 2008-02-16  Eric Blake  <ebb9@byu.net>
50031
50032         Avoid doubling \ in common case of "c-maybe" quoting style.
50033         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
50034         eliding outer quotes.
50035         * lib/quotearg.h: Document this.
50036         * tests/test-quotearg.c (result_strings, inputs, results_g)
50037         (flag_results, locale_results): Test it by adding a new string to
50038         each test group.
50039         (compare_strings): Test new string.
50040
50041 2008-02-13  Eric Blake  <ebb9@byu.net>
50042
50043         Avoid trigraph quoting in default output.
50044         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
50045         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
50046         unless explicitly requested.
50047         * tests/test-quotearg.c (flag_results, main): Add additional tests.
50048
50049 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
50050
50051         Don't rely on signed integer overflowing to negative value.
50052         * lib/getugroups.c (getugroups): Include <limits.h>.
50053         Instead, compare against INT_MAX, and increment only if the test passes.
50054
50055 2008-02-13  Jim Meyering  <meyering@redhat.com>
50056         and Eric Blake  <ebb9@byu.net>
50057
50058         Avoid shadowing warning and compile errors on Linux.
50059         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
50060         forwarding macros on Linux.
50061         (dcgettext): Define a stub, for Linux.
50062         (results_g, main): Avoid warnings.
50063
50064 2008-02-12  Eric Blake  <ebb9@byu.net>
50065
50066         Silence warning in last patch.
50067         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
50068
50069         Quotearg part 4: add tests, fix c-maybe colon quoting.
50070         * lib/quotearg.h: Improve documentation.
50071         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
50072         escapes when adding outer quotes.  When quoting trigraphs, use
50073         valid C notation.  When quoting NUL, omit extra characters if next
50074         character is not digit.  Alter prototype.
50075         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
50076         callers.
50077         * modules/quotearg-tests: New module.
50078         * tests/test-quotearg.c: New test.
50079
50080 2008-02-07  Eric Blake  <ebb9@byu.net>
50081
50082         Quotearg part 3: add flag to control outer quote elision.
50083         * lib/quotearg.h (c_maybe_quoting_style): New style.
50084         (enum quoting_flags): Better documentation of flags.
50085         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
50086         c-maybe style.
50087         (quotearg_buffer_restyled): Handle new flag to elide outer
50088         quotes.
50089
50090         Quotearg part 2: add flag that can control NUL elision.
50091         * lib/quotearg.h (set_quoting_flags): New prototype.
50092         * lib/quotearg.c (struct quoting_options): Add flag field.
50093         (set_quoting_flags): New function.
50094         (quotearg_buffer_restyled): Add flags parameter.
50095         (quotearg_alloc_mem): Set the flag if length cannot be returned.
50096         (quotearg_n_options): Set the flag, since length cannot be
50097         returned.
50098         (quoting_options_from_style): Default flags correctly.
50099
50100         Quotearg part 1: more wrappers, restore quotearg_char state.
50101         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
50102         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
50103         (quotearg_colon_mem): New wrappers.
50104         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
50105         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
50106         functions.
50107         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
50108         (quotearg_colon_mem): New functions.
50109
50110 2008-02-11  Bruno Haible  <bruno@clisp.org>
50111
50112         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
50113         library in the current directory: it does not work with parallel make.
50114         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50115
50116 2008-02-11  Bruno Haible  <bruno@clisp.org>
50117
50118         * .gitattributes: New file.
50119
50120 2008-02-11  Jim Meyering  <meyering@redhat.com>
50121
50122         useless-if-before-free: Fix reversed exit values.
50123         * build-aux/useless-if-before-free: Use correct values
50124         for EXIT_MATCH and EXIT_NO_MATCH.
50125
50126         * build-aux/useless-if-before-free: Close stdout carefully.
50127
50128 2008-02-10  Bruno Haible  <bruno@clisp.org>
50129
50130         New module 'git-merge-changelog'.
50131         * modules/git-merge-changelog: New file.
50132         * lib/git-merge-changelog.c: New file.
50133
50134 2008-02-10  Jim Meyering  <meyering@redhat.com>
50135
50136         useless-if-before-free: New option: --list (-l).
50137
50138         useless-if-before-free: Don't exit immediately upon open failure.
50139         * build-aux/useless-if-before-free: Exit 2 for errors.
50140         Upon failure to open a file, don't exit immediately.
50141         Rather, just warn and continue with any remaining files.
50142
50143 2008-02-10  Bruno Haible  <bruno@clisp.org>
50144
50145         New abstract list operation 'node_set_value'.
50146         * lib/gl_list.h (gl_list_node_set_value): New function.
50147         (struct gl_list_implementation): New field node_set_value.
50148         * lib/gl_list.c (gl_list_node_set_value): New function.
50149         * lib/gl_array_list.c (gl_array_node_set_value): New function.
50150         (gl_array_list_implementation): Update.
50151         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
50152         (gl_carray_list_implementation): Update.
50153         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
50154         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
50155         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
50156         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
50157         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
50158         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
50159         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
50160         Update.
50161         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
50162         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
50163         (gl_sublist_list_implementation): Update.
50164
50165 2008-02-10  Bruno Haible  <bruno@clisp.org>
50166
50167         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
50168         Needed when ELEMENT is #defined to 'some_type *'.
50169
50170 2008-02-10  Jim Meyering  <meyering@redhat.com>
50171
50172         New script and module: useless-if-before-free
50173         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
50174         * build-aux/useless-if-before-free: New file.
50175         * modules/useless-if-before-free: New file.
50176
50177         * build-aux/gitlog-to-changelog: Use committer date, not author date.
50178
50179         xstrtol_error: Fix typo.
50180         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
50181         s/exit_failure/exit_status/.
50182
50183 2008-02-09  Jim Meyering  <meyering@redhat.com>
50184
50185         New script and module: gitlog-to-changelog
50186         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
50187         * modules/gitlog-to-changelog: New file.
50188         * build-aux/gitlog-to-changelog: New file.
50189
50190 2008-02-08  Jim Meyering  <meyering@redhat.com>
50191
50192         Avoid two "parameter unused" warnings.
50193         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
50194         Mark "st" as used.
50195
50196         Use "git COMMAND", not "git-COMMAND".
50197         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
50198         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
50199         * build-aux/git-version-gen: Use "git status", not "git-status".
50200
50201 2008-02-07  Bruno Haible  <bruno@clisp.org>
50202
50203         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
50204         Avoids a crash on Windows Vista.
50205         Reported by Adam Strzelecki <ono@java.pl> via
50206         Simon Josefsson <simon@josefsson.org>.
50207
50208 2008-02-06  Bruno Haible  <bruno@clisp.org>
50209
50210         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
50211         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
50212         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
50213         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
50214         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50215         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50216         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
50217         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
50218         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50219         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50220         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50221         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50222         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50223         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50224         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50225         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
50226         left-adjust flag.
50227         * tests/test-snprintf-posix.h (test_function): Likewise.
50228         * tests/test-sprintf-posix.h (test_function): Likewise.
50229         * tests/test-vasprintf-posix.c (test_function): Likewise.
50230         * doc/posix-functions/fprintf.texi: Update.
50231         * doc/posix-functions/printf.texi: Update.
50232         * doc/posix-functions/snprintf.texi: Update.
50233         * doc/posix-functions/sprintf.texi: Update.
50234         * doc/posix-functions/vfprintf.texi: Update.
50235         * doc/posix-functions/vprintf.texi: Update.
50236         * doc/posix-functions/vsnprintf.texi: Update.
50237         * doc/posix-functions/vsprintf.texi: Update.
50238         Reported by Peter Fales <psfales@alcatel-lucent.com>.
50239
50240 2008-02-06  Bruno Haible  <bruno@clisp.org>
50241
50242         Fix bug introduced on 2008-01-26.
50243         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
50244
50245 2008-02-06  Bruno Haible  <bruno@clisp.org>
50246
50247         Fix bug introduced on 2007-06-10.
50248         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
50249         !NEED_PRINTF_FLAG_ZERO.
50250
50251 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
50252
50253         getloadavg: use libperfstat on AIX5
50254         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
50255
50256 2008-02-03  Bruno Haible  <bruno@clisp.org>
50257
50258         * lib/diffseq.h: Add comments about required #includes.
50259         Reported by Michael Biggs <gnulib@doubleplum.net>.
50260
50261 2008-02-01  Bruno Haible  <bruno@clisp.org>
50262
50263         * users.txt: Add gnuit.
50264
50265 2008-01-31  Bruno Haible  <bruno@clisp.org>
50266
50267         * lib/md4.c (set_uint32): Mark as inline.
50268         * lib/md5.c (set_uint32): Likewise.
50269         * lib/sha1.c (set_uint32): Likewise.
50270         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
50271         * m4/md5.m4 (gl_MD5): Likewise.
50272         * m4/sha1.m4 (gl_SHA1): Likewise.
50273
50274 2008-01-31  Jim Meyering  <meyering@redhat.com>
50275
50276         Use "sizeof VAR", rather than a literal "4".
50277         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
50278         * lib/md4.c (md4_read_ctx): Likewise.
50279         * lib/sha1.c (sha1_read_ctx): Likewise.
50280
50281 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50282
50283         * tests/test-sha1.c: New file, based on test-md5.c.
50284
50285         * modules/crypto/sha1-tests: New file.
50286
50287 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50288
50289         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
50290
50291 2008-01-31  Jim Meyering  <meyering@redhat.com>
50292
50293         Prefer "sizeof v" over the equivalent "4".
50294         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
50295         * lib/md5.c (set_uint32): Likewise.
50296         * lib/sha1.c (set_uint32): Likewise.
50297
50298 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50299
50300         * lib/sha1.c (set_uint32): Mark function as static.
50301
50302 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50303
50304         md2: clarify comments to say that alignment is not required.
50305         * lib/md2.h: Remove warning about alignment in comment.
50306         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
50307         never been required.
50308
50309 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50310
50311         md4: adapt alignment constraint fix from sha1.
50312         * lib/md4.c (set_uint32): New function, from sha1.c
50313         (md4_read_ctx): Use it.
50314         (md4_finish_ctx): Doc fix.
50315         * lib/md4.h: Doc fix.
50316
50317 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50318
50319         md5: adapt alignment constraint fix from sha1.
50320         * lib/md5.c (set_uint32): New function, from sha1.c
50321         (md5_read_ctx): Use it.
50322         (md5_finish_ctx): Doc fix.
50323         * lib/md5.h: Doc fix.
50324
50325 2008-01-30  Peter Palfrader  <weasel@debian.org>
50326
50327         sha1: remove the result buffer alignment constraint
50328         * lib/sha1.c (set_uint32): New function.
50329         (sha1_read_ctx): Rewrite to remove the result buffer alignment
50330         constraint.
50331         (sha1_finish_ctx): Remove comment warning about alignment constraint.
50332         * lib/sha1.h: Likewise.
50333
50334 2008-01-30  Andreas Schwab  <schwab@suse.de>
50335             Bruno Haible  <bruno@clisp.org>
50336
50337         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
50338         correct definition of LDBL_MIN_EXP.
50339
50340 2008-01-30  Karl Berry  <karl@gnu.org>
50341
50342         * config/srclist-update: try to preserve x bit on updates.
50343         * config/srclistvars.sh: update for karl.
50344
50345 2008-01-29  Jim Meyering  <meyering@redhat.com>
50346
50347         vasnprintf.c: Avoid warning about unused label
50348         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
50349         "overflow" label definition and associated code with the
50350         same cpp condition that guards the sole use of that label.
50351
50352 2008-01-26  Bruno Haible  <bruno@clisp.org>
50353
50354         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
50355         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
50356         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
50357         * lib/isnanl-nolibm.h (isnanl): Likewise.
50358         Reported by Paul Eggert <eggert@cs.ucla.edu>.
50359
50360 2008-01-26  Bruno Haible  <bruno@clisp.org>
50361
50362         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
50363         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
50364
50365 2008-01-26  Bruno Haible  <bruno@clisp.org>
50366
50367         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
50368         GCC >= 4.0 built-in.
50369         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
50370
50371 2008-01-26  Bruno Haible  <bruno@clisp.org>
50372
50373         Rename isnan, applicable to 'double' only, to isnand.
50374         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
50375         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
50376         (configure.ac): Update.
50377         (Include): Replace "isnan.h" with "isnand.h".
50378         * m4/isnand.m4: Renamed from m4/isnan.m4.
50379         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
50380         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
50381         instead of isnan.c.
50382         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
50383         instead of HAVE_ISNAN_IN_LIBC.
50384         (isnand): Renamed from isnan.
50385         * lib/isnand.c: New file.
50386         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
50387         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
50388         (Makefile.am): Update.
50389         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
50390         Include isnand.h instead of isnan.h.
50391         (main): Test isnand instead of isnan.
50392         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
50393         isnan-nolibm.
50394         * modules/frexp (Depends-on): Likewise.
50395         * modules/frexp-tests (Depends-on): Likewise.
50396         * modules/frexp-nolibm (Depends-on): Likewise.
50397         * modules/frexp-nolibm-tests (Depends-on): Likewise.
50398         * modules/isfinite (Depends-on): Likewise.
50399         * modules/round-tests (Depends-on): Likewise.
50400         * modules/signbit (Depends-on): Likewise.
50401         * modules/signbit-tests (Depends-on): Likewise.
50402         * modules/snprintf-posix (Depends-on): Likewise.
50403         * modules/sprintf-posix (Depends-on): Likewise.
50404         * modules/trunc-tests (Depends-on): Likewise.
50405         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50406         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50407         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50408         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50409         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50410         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50411         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50412         * modules/vasnprintf-posix (Depends-on): Likewise.
50413         * modules/vasprintf-posix (Depends-on): Likewise.
50414         * modules/vfprintf-posix (Depends-on): Likewise.
50415         * modules/vsnprintf-posix (Depends-on): Likewise.
50416         * modules/vsprintf-posix (Depends-on): Likewise.
50417         * lib/frexp.c: Include isnand.h instead of isnan.h.
50418         (ISNAN): Set to isnand instead of isnan.
50419         * lib/isfinite.c: Include isnand.h instead of isnan.h.
50420         (gl_isfinited): Use isnand instead of isnan.
50421         * lib/signbitd.c: Include isnand.h instead of isnan.h.
50422         (gl_signbitd): Use isnand instead of isnan.
50423         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
50424         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
50425         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
50426         (main): Use isnand instead of isnan.
50427         * tests/test-round1.c: Include isnand.h.
50428         (main): Use isnand instead of isnan.
50429         * tests/test-round2.c: Include isnand.h instead of isnan.h.
50430         (ISNAN): Set to isnand instead of isnan.
50431         * tests/test-trunc1.c: Include isnand.h.
50432         (main): Use isnand instead of isnan.
50433         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
50434         (equal): Use isnand instead of isnan.
50435         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
50436         isnand-nolibm.
50437         * NEWS: Mention the change.
50438
50439 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
50440             Bruno Haible  <bruno@clisp.org>
50441
50442         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
50443         the GCC builtins for signbits are present and set
50444         REPLACE_SIGNBIT_USING_GCC if so.
50445         * lib/math.in.h (signbit): Define using GCC builtins if
50446         REPLACE_SIGNBIT_USING_GCC is set.
50447         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
50448         REPLACE_SIGNBIT_USING_GCC.
50449         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
50450
50451 2008-01-25  Jim Meyering  <meyering@redhat.com>
50452
50453         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
50454         * lib/poll.c: Include <config.h>, not "config.h".
50455         * tests/test-getaddrinfo.c: Likewise.
50456
50457 2008-01-25  Simon Josefsson  <simon@josefsson.org>
50458
50459         * modules/sockets-tests: New file.
50460
50461 2008-01-24  Simon Josefsson  <simon@josefsson.org>
50462
50463         * modules/sockets: New module, can be used to call WSA_Startup and
50464         WSA_Cleanup when needed.
50465
50466         * lib/sockets.h, lib/sockets.c: New files.
50467
50468         * m4/sockets.m4: New file.
50469
50470         * tests/test-sockets.c: New file.
50471
50472 2008-01-19  Bruno Haible  <bruno@clisp.org>
50473
50474         * doc/posix-headers: Renamed from doc/headers.
50475         * doc/posix-functions: Renamed from doc/functions.
50476         * doc/gnulib.texi: Update.
50477
50478 2008-01-19  Bruno Haible  <bruno@clisp.org>
50479
50480         * doc/glibc-functions/strcasestr.texi: Include contents of
50481         doc/functions/strcasestr.texi, fixing the list of platforms.
50482         * doc/functions/strcasestr.texi: Remove file.
50483
50484 2008-01-19  Bruno Haible  <bruno@clisp.org>
50485
50486         * doc/glibc-functions/memmem.texi: Include contents of
50487         doc/functions/memmem.texi.
50488         * doc/functions/memmem.texi: Remove file.
50489
50490 2008-01-18  Bruno Haible  <bruno@clisp.org>
50491
50492         * doc/glibc-functions/*.texi: New files.
50493         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
50494         to use the new files.
50495
50496 2008-01-17  Bruno Haible  <bruno@clisp.org>
50497
50498         * tests/test-gethostname.c (main): Fix printf statement.
50499
50500 2008-01-17  Simon Josefsson  <simon@josefsson.org>
50501
50502         * modules/gethostname-tests: New file.
50503
50504         * tests/test-gethostname.c: New file.
50505
50506 2008-01-17  Simon Josefsson  <simon@josefsson.org>
50507
50508         * lib/gethostname.c: Include string.h unconditionally, strncpy is
50509         used by the UNAME case.  Reported by Bruno Haible
50510         <bruno@clisp.org>.
50511
50512 2008-01-17  Eric Blake  <ebb9@byu.net>
50513
50514         Convert c-strcasestr to be more efficient.
50515         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
50516         (Depends-on): Add c-strcase, remove malloca, strnlen.
50517         * tests/test-c-strcasestr.c (main): Enhance test.
50518         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
50519
50520 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
50521
50522         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
50523         Use it in creating po/Makevars.
50524
50525 2008-01-15  Simon Josefsson  <simon@josefsson.org>
50526
50527         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
50528         Applications that requires it should initialize libgcrypt
50529         manually.
50530
50531 2008-01-16  Simon Josefsson  <simon@josefsson.org>
50532
50533         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
50534
50535 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
50536
50537         Fix problem with getdate on mingw32 reported by Simon Josefsson
50538         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
50539         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
50540         tzname", when deciding whether to declare tzname.
50541         * lib/strftime.c (tzname): Likewise.
50542
50543 2008-01-15  Bruno Haible  <bruno@clisp.org>
50544
50545         Work around a MacOS X 10.5 bug in frexpl().
50546         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
50547         * doc/functions/frexpl.texi: Document the bug.
50548         Reported by Elias Pipping <pipping@gentoo.org>.
50549
50550 2008-01-14  Eric Blake  <ebb9@byu.net>
50551
50552         Touch up previous patch.
50553         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
50554         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
50555
50556         Convert strcasestr module to use Two-Way algorithm.
50557         * modules/strcasestr-simple: New module, based on the old
50558         strcasestr, but with Two-Way rather than KMP.
50559         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
50560         * lib/string.in.h (rpl_strcasestr): Declare.
50561         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
50562         performance.
50563         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
50564         * modules/string (Makefile.am): Support strcasestr.
50565         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
50566         * modules/strcasestr-tests (Depends-on): Check for alarm.
50567         * tests/test-strcasestr.c: Augment test.
50568         * lib/str-two-way.h: Clean up stray macro.
50569         * NEWS: Document new module.
50570         * MODULES.html.sh (string handling): Likewise.
50571         * doc/functions/strcasestr.texi: New file.
50572         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
50573         here, since it is not a POSIX function.
50574
50575 2008-01-14  Colin Watson  <cjwatson@debian.org>
50576             Bruno Haible  <bruno@clisp.org>
50577
50578         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
50579         works fine; if not, set REPLACE_STRSIGNAL.
50580         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
50581         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50582         REPLACE_STRSIGNAL.
50583         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
50584         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
50585         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
50586
50587 2008-01-14  Bruno Haible  <bruno@clisp.org>
50588
50589         * modules/strsignal (Include): Change to <string.h>.
50590
50591 2008-01-14  Colin Watson  <cjwatson@debian.org>
50592
50593         * modules/argp (Notice): Add a notice recommending to change
50594         XGETTEXT_OPTIONS.
50595         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
50596
50597 2008-01-13  Colin Watson  <cjwatson@debian.org>
50598
50599         * modules/strsignal-tests: New file.
50600         * tests/test-strsignal.c: New file.
50601
50602         * lib/strsignal.c: New file, from glibc with modifications.
50603         * lib/siglist.h: New file, from glibc with modifications.
50604         * lib/string.in.h (strsignal): New declaration.
50605         * m4/strsignal.m4: New file.
50606         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50607         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
50608         * modules/strsignal: New file.
50609         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
50610         HAVE_DECL_STRSIGNAL.
50611
50612 2008-01-13  Bruno Haible  <bruno@clisp.org>
50613
50614         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
50615         locale encoding is not ASCII. Needed for OpenBSD 4.0.
50616         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
50617         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
50618
50619 2008-01-13  Bruno Haible  <bruno@clisp.org>
50620
50621         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
50622         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
50623         * lib/argp.h (__attribute__): Likewise.
50624         * lib/c-stack.c (__attribute__): Likewise.
50625         * lib/error.h (__attribute__): Likewise.
50626         * lib/fts.c (__attribute__): Likewise.
50627         * lib/openat.h (__attribute__): Likewise.
50628         * lib/stdio.in.h (__attribute__): Likewise.
50629         * lib/string.in.h (__attribute__): Likewise.
50630         * lib/utimens.c (__attribute__): Likewise.
50631         * lib/vasnprintf.h (__attribute__): Likewise.
50632         * lib/xalloc.h (__attribute__): Likewise.
50633         * lib/xprintf.h (__attribute__): Likewise.
50634         * lib/xstrtol.h (__attribute__): Likewise.
50635         * lib/xvasprintf.h (__attribute__): Likewise.
50636
50637 2008-01-12  Bruno Haible  <bruno@clisp.org>
50638
50639         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
50640         * doc/glibc-headers/a.out.texi: New file.
50641         * doc/glibc-headers/aliases.texi: New file.
50642         * doc/glibc-headers/alloca.texi: New file.
50643         * doc/glibc-headers/ar.texi: New file.
50644         * doc/glibc-headers/argp.texi: New file.
50645         * doc/glibc-headers/argz.texi: New file.
50646         * doc/glibc-headers/byteswap.texi: New file.
50647         * doc/glibc-headers/crypt.texi: New file.
50648         * doc/glibc-headers/endian.texi: New file.
50649         * doc/glibc-headers/envz.texi: New file.
50650         * doc/glibc-headers/err.texi: New file.
50651         * doc/glibc-headers/error.texi: New file.
50652         * doc/glibc-headers/execinfo.texi: New file.
50653         * doc/glibc-headers/fpu_control.texi: New file.
50654         * doc/glibc-headers/fstab.texi: New file.
50655         * doc/glibc-headers/fts.texi: New file.
50656         * doc/glibc-headers/getopt.texi: New file.
50657         * doc/glibc-headers/ieee754.texi: New file.
50658         * doc/glibc-headers/ifaddrs.texi: New file.
50659         * doc/glibc-headers/libintl.texi: New file.
50660         * doc/glibc-headers/mcheck.texi: New file.
50661         * doc/glibc-headers/mntent.texi: New file.
50662         * doc/glibc-headers/obstack.texi: New file.
50663         * doc/glibc-headers/paths.texi: New file.
50664         * doc/glibc-headers/printf.texi: New file.
50665         * doc/glibc-headers/pty.texi: New file.
50666         * doc/glibc-headers/resolv.texi: New file.
50667         * doc/glibc-headers/shadow.texi: New file.
50668         * doc/glibc-headers/sysexits.texi: New file.
50669         * doc/glibc-headers/ttyent.texi: New file.
50670
50671 2008-01-12  Jim Meyering  <meyering@redhat.com>
50672
50673         announce-gen: emit Gnulib's git-based version string.
50674         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
50675         New option --gnulib-version=V, where V is expected to be
50676         the output of running git describe in the gnulib directory.
50677         (get_tool_versions): Request feedback on xdelta.  I suspect it's
50678         not useful, and plan to stop publishing an xdelta file with each
50679         coreutils release.
50680
50681         * build-aux/announce-gen: Also check for lzma-compressed files.
50682
50683 2008-01-11  Bruno Haible  <bruno@clisp.org>
50684
50685         * tests/test-memmem.c (main): Increase maximum allowed time.
50686         * tests/test-strstr.c (main): Likewise.
50687
50688 2008-01-11  Bruno Haible  <bruno@clisp.org>
50689
50690         * doc/functions/memmem.texi: Add more precisions about platforms.
50691         * doc/functions/strstr.texi: Likewise.
50692
50693 2008-01-10  Eric Blake  <ebb9@byu.net>
50694
50695         * m4/strstr.m4: Delete cruft from copy-n-paste.
50696         Reported by Bruno Haible.
50697
50698 2008-01-10  Bruno Haible  <bruno@clisp.org>
50699
50700         Make c-strstr rely on strstr.
50701         * lib/c-strstr.c: Don't include str-kmp.h.
50702         (c_strstr): Define in terms of strstr.
50703         * modules/c-strstr (Files): Remove lib/str-kmp.h.
50704         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
50705
50706 2008-01-10  Bruno Haible  <bruno@clisp.org>
50707
50708         * doc/gnulib.texi (String Functions in C Locale): New section.
50709         * doc/c-ctype.texi: New file.
50710         * doc/c-strcase.texi: New file.
50711         * doc/c-strcaseeq.texi: New file.
50712         * doc/c-strcasestr.texi: New file.
50713         * doc/c-strstr.texi: New file.
50714         * doc/c-strtod.texi: New file.
50715         * doc/c-strtold.texi: New file.
50716
50717 2008-01-10  Eric Blake  <ebb9@byu.net>
50718
50719         * lib/relocatable.h: Fix a comment.
50720
50721 2008-01-10  Eric Blake  <ebb9@byu.net>
50722
50723         Share two-way algorithm.
50724         * lib/str-two-way.h: New file, merged from...
50725         * lib/memmem.c: ...here...
50726         * lib/strstr.c: ...and here.
50727         * modules/memmem (Files): Use it.
50728         * modules/strstr (Files): Likewise.
50729
50730         Avoid quadratic strstr implementations.
50731         * lib/strstr.c: New file.
50732         * m4/strstr.m4: Likewise.
50733         * modules/strstr: Likewise.
50734         * modules/strstr-tests: Likewise.
50735         * tests/test-strstr.c: Likewise.
50736         * lib/string.in.h (rpl_strstr): Declare.
50737         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
50738         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
50739         * modules/string (Makefile.am): Likewise.
50740         * MODULES.html.sh (string handling): Mention new module.
50741         * doc/functions/strstr.texi (strstr): Document the bug.
50742
50743 2008-01-10  Bruno Haible  <bruno@clisp.org>
50744
50745         * lib/relocatable.h (relocate): State whether result is freshly
50746         allocated or not.
50747         * lib/relocatable.c (relocate): Return a freshly allocated string
50748         instead of a pointer to a privately held string.
50749         Reported by Sylvain Beucler <beuc@gnu.org>.
50750
50751 2008-01-10  Colin Watson  <cjwatson@debian.org>
50752
50753         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
50754         s/S_ISNLK/S_ISLNK/.
50755
50756 2008-01-09  Bruno Haible  <bruno@clisp.org>
50757
50758         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
50759         and other files.
50760         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
50761         if it's only a guess.
50762         * modules/memmem: Simplify by depending on memmem-simple.
50763
50764 2008-01-09  Bruno Haible  <bruno@clisp.org>
50765
50766         Work around OpenBSD 4.0 tdelete() bug.
50767         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
50768         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
50769         macros and don't redefine the enum values.
50770         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
50771         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
50772         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
50773
50774 2008-01-09  Bruno Haible  <bruno@clisp.org>
50775
50776         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
50777         (main): Don't perform the tests if setlocale did not install a UTF-8
50778         locale. Needed on OpenBSD 4.0.
50779         * modules/wcwidth-tests (Depends-on): Add localcharset.
50780
50781 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
50782
50783         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
50784         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
50785         * NEWS: announce this.
50786         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
50787
50788 2008-01-09  Simon Josefsson  <simon@josefsson.org>
50789         and Eric Blake  <ebb9@byu.net>
50790
50791         Add memmem-simple module.
50792         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
50793         (gl_FUNC_MEMMEM): Separate performance from presence checks.
50794         * modules/memmem-simple: New file.
50795         * modules/memmem (Description): Tweak.
50796         * MODULES.html.sh (string handling): Mention new module.
50797         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
50798         addressed by memmem-simple.
50799         * NEWS: Document the difference.
50800
50801 2008-01-09  Eric Blake  <ebb9@byu.net>
50802
50803         Give gcc some memmem optimization hints.
50804         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
50805         (strcasestr): Declare as pure.
50806         * modules/memmem (Maintainer): Claim my implementation.
50807
50808 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50809
50810         Support AIX 6.1 and higher.
50811         * build-aux/config.libpath: Likewise.
50812         * build-aux/config.rpath: Likewise.
50813
50814 2008-01-08  Jim Meyering  <meyering@redhat.com>
50815             Bruno Haible  <bruno@clisp.org>
50816
50817         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
50818         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
50819         Reported by Peter Fales in
50820         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
50821
50822 2008-01-08  Bruno Haible  <bruno@clisp.org>
50823
50824         * modules/unictype/category-of (Depends-on): Add
50825         unictype/category-none.
50826         * modules/unictype/category-and-tests (Depends-on): Add
50827         unictype/category-{L,N,Lu,Nd}.
50828         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
50829         * modules/unictype/category-or-tests (Depends-on): Add
50830         unictype/category-{L,N}.
50831         * modules/unictype/category-name-tests (Depends-on): Add
50832         unictype/category-{Z,Nl}.
50833         Reported by Simon Josefsson.
50834
50835 2008-01-08  Bruno Haible  <bruno@clisp.org>
50836
50837         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
50838         convention better.
50839         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
50840         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
50841         Reported by Peter Miller <millerp@canb.auug.org.au>.
50842
50843 2008-01-08  Eric Blake  <ebb9@byu.net>
50844
50845         Rewrite memmem to guarantee linear complexity without malloc.
50846         * lib/memmem.c (memmem): Use Two-Way rather than
50847         Knuth-Morris-Pratt, to allow O(1) space usage.
50848         (critical_factorization, two_way_short_needle)
50849         (two_way_long_needle): New functions.
50850         (knuth_morris_pratt): Delete.
50851         * modules/memmem (Depends-on): No longer need malloca or stdbool.
50852         Add stdint.
50853         * tests/test-memmem.c (main): Add tests for periodic needle and
50854         sublinear performance.
50855         * doc/functions/memmem.texi (memmem): Document other deficiencies
50856         in cygwin and older glibc.
50857
50858 2008-01-08  Bruno Haible  <bruno@clisp.org>
50859
50860         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
50861         augmentation.
50862
50863 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
50864
50865         Add a configure time option: --disable-acl.
50866         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
50867         AC_ARG_ENABLE(acl).
50868
50869 2008-01-06  Simon Josefsson  <simon@josefsson.org>
50870
50871         * tests/test-localename.c: Don't include obsolete "setenv.h".
50872
50873         * modules/localename-tests (Depends-on): Need unsetenv.
50874
50875 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50876
50877         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
50878
50879 2008-01-06  Colin Watson  <cjwatson@debian.org>
50880
50881         * users.txt: Add man-db.
50882
50883 2008-01-07  Bruno Haible  <bruno@clisp.org>
50884
50885         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
50886         previous section name.
50887
50888 2008-01-07  Bruno Haible  <bruno@clisp.org>
50889
50890         * lib/progname.c (set_program_name): Don't strip off a leading
50891         "lt-" prefix outside a .libs directory.
50892         Suggested by Paul Eggert.
50893
50894 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
50895             Bruno Haible  <bruno@clisp.org>
50896
50897         Improve memory cleanup in 'relocatable' module.
50898         * lib/relocatable.h (compute_curr_prefix): Change return type to
50899         'char *'.
50900         * lib/relocatable.c (compute_curr_prefix): Change return type to
50901         'char *'. Free curr_installdir after use.
50902         (relocate): Free curr_prefix_better after use.
50903         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
50904
50905 2008-01-01  Bruno Haible  <bruno@clisp.org>
50906
50907         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
50908         failure on older glibc systems.
50909         Reported by Peter Fales <psfales@alcatel-lucent.com>.
50910
50911 2008-01-05  Eric Blake  <ebb9@byu.net>
50912
50913         Avoid quadratic system memmem.
50914         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
50915         Reported by Ralf Wildenhues.
50916
50917         Fix memmem test for mingw.
50918         * modules/memmem-tests (configure.ac): Check for alarm.
50919         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
50920         it.
50921         * doc/functions/memmem.texi: New file.
50922         * doc/gnulib.texi (Function Substitutes): Add memmem.
50923         Reported by Bruno Haible.
50924
50925 2008-01-04  Bruno Haible  <bruno@clisp.org>
50926
50927         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
50928         Require gl_HEADER_STRINGS_H_DEFAULTS, not
50929         gl_HEADER_STRING_H_DEFAULTS.
50930
50931 2008-01-04  Eric Blake  <ebb9@byu.net>
50932
50933         Shorten duration of memmem test.
50934         * tests/test-memmem.c (main): Use alarm to declare failure if test
50935         is taking too long.
50936         Reported by Ralf Wildenhues.
50937
50938 2007-12-21  Simon Josefsson  <simon@josefsson.org>
50939
50940         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
50941         string, needed by strerror.
50942
50943 2008-01-03  Colin Watson  <cjwatson@debian.org>
50944             Bruno Haible  <bruno@clisp.org>
50945
50946         * doc/gnulib-tool.texi (Localization): New section.
50947
50948 2008-01-02  Bruno Haible  <bruno@clisp.org>
50949
50950         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
50951         variables to 'unsigned char *' type.
50952         Reported by Paul Eggert.
50953
50954 2008-01-02  Jim Meyering  <jim@meyering.net>
50955
50956         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
50957
50958 2007-12-31  Jim Meyering  <jim@meyering.net>
50959
50960         Avoid use of private FTS type name.
50961         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
50962
50963 2007-12-30  Karl Berry  <karl@gnu.org>
50964
50965         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
50966         work around defect in Texinfo and/or the standalone Info browser.
50967
50968 2007-12-30  Bruno Haible  <bruno@clisp.org>
50969
50970         Unify 5 copies of the KMP code.
50971         * lib/str-kmp.h: New file.
50972         * lib/c-strcasestr.c: Include str-kmp.h.
50973         (knuth_morris_pratt): Remove function.
50974         (c_strcasestr): Update.
50975         * lib/c-strstr.c: Include str-kmp.h.
50976         (knuth_morris_pratt): Remove function.
50977         (c_strcasestr): Update.
50978         * lib/mbscasestr.c: Include str-kmp.h.
50979         (knuth_morris_pratt_unibyte): Remove function.
50980         * lib/mbsstr.c: Include str-kmp.h.
50981         (knuth_morris_pratt_unibyte): Remove function.
50982         * lib/strcasestr.c: Include str-kmp.h.
50983         (knuth_morris_pratt): Remove function.
50984         (strcasestr): Update.
50985         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
50986         * modules/c-strstr (Files): Likewise.
50987         * modules/mbscasestr (Files): Likewise.
50988         * modules/mbsstr (Files): Likewise.
50989         * modules/strcasestr (Files): Likewise.
50990         Suggested by Paul Eggert.
50991
50992 2007-12-30  Bruno Haible  <bruno@clisp.org>
50993
50994         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
50995         defined.
50996
50997 2007-12-30  Bruno Haible  <bruno@clisp.org>
50998
50999         * lib/xmalloca.h: Include xalloc.h.
51000         (xnmalloca): New macro.
51001
51002 2007-12-30  Bruno Haible  <bruno@clisp.org>
51003
51004         * lib/malloca.h (nmalloca): New macro.
51005         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
51006         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
51007         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
51008         knuth_morris_pratt_multibyte): Likewise.
51009         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
51010         knuth_morris_pratt_multibyte): Likewise.
51011         * lib/memmem.c (knuth_morris_pratt): Likewise.
51012         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
51013
51014 2007-12-25  Bruno Haible  <bruno@clisp.org>
51015
51016         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
51017         * lib/glob.c: Don't include openat.h.
51018         (link_exists2_p): Add back the code that deals with the
51019         !GLOB_ALTDIRFUNC case.
51020         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
51021         let it do the filename concatenation.
51022         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
51023         * modules/glob (Depends-on): Remove openat.
51024
51025 2007-12-31  Bruno Haible  <bruno@clisp.org>
51026
51027         * modules/dirfd (License): Change to LGPLv2+.
51028         Approved by Jim Meyering.
51029
51030 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
51031
51032         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
51033         when multiplying M by sizeof (size_t).
51034
51035 2007-12-10  Martin Lambers  <marlam@marlam.de>
51036
51037         Override getpagesize on mingw.
51038         * lib/getpagesize.c: New file.
51039         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
51040         * modules/getpagesize (Files): Add lib/getpagesize.c.
51041         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
51042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51043         REPLACE_GETPAGESIZE.
51044         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
51045
51046 2007-12-25  Bruno Haible  <bruno@clisp.org>
51047
51048         * modules/localcharset (Notice): New field.
51049         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
51050         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
51051
51052 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
51053             Bruno Haible  <bruno@clisp.org>
51054
51055         Avoid using the syntax symbol() in formatted documentation.
51056         * MODULES.html.sh (func_module): When replacing symbol() with a
51057         hyperlink, remove the parentheses. Show an error if some remain.
51058         Recognize and render the '...' syntax.
51059         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
51060         Rework. Add paragraph about GCC's inlining.
51061         * doc/alloca.texi: Likewise.
51062         * doc/error.texi: Remove parentheses from symbol reference.
51063         * doc/gnulib-intro.texi: Likewise.
51064         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
51065         * modules/fnmatch (Description): Reword to say "the ... function".
51066         * modules/full-read (Description): Likewise.
51067         * modules/full-write (Description): Likewise.
51068         * modules/safe-read (Description): Likewise.
51069         * modules/safe-write (Description): Likewise.
51070         * modules/strchrnul (Description): Likewise.
51071         * modules/trim (Description): Likewise.
51072         * modules/error (Description): Remove parentheses from symbol
51073         references.
51074         * modules/verror (Description): Likewise.
51075         Reported by Karl Berry.
51076
51077 2007-12-25  Bruno Haible  <bruno@clisp.org>
51078
51079         Fixup after 2007-10-16 commit.
51080         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
51081
51082 2007-12-24  Bruno Haible  <bruno@clisp.org>
51083
51084         Make --enable-relocatable work with DESTDIR.
51085         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
51086         to compute installdir from destprog.
51087         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
51088         also set the RELOC_DESTDIR variable.
51089         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51090
51091 2007-12-24  Bruno Haible  <bruno@clisp.org>
51092
51093         Fix link error due to xalloc_die().
51094         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
51095         of xreadlink.
51096         * lib/relocwrapper.c: Update comments.
51097         * build-aux/install-reloc: Remove xreadlink.c from file list.
51098         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
51099         xreadlink.c.
51100         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51101
51102 2007-12-24  Bruno Haible  <bruno@clisp.org>
51103
51104         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
51105         * lib/setenv.h: Remove file.
51106         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
51107         lib/setenv.h.
51108         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
51109         (Depends-on): Add stdlib.
51110         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
51111         gl_FUNC_UNSETENV.
51112         (Include): Replace setenv.h with <stdlib.h>.
51113         * modules/unsetenv: New file.
51114         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
51115         * lib/unsetenv.c: Include <stdlib.h> first.
51116         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
51117         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
51118         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
51119         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
51120         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
51121         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
51122         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
51123         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
51124         * doc/functions/unsetenv.texi: Update.
51125         * modules/xsetenv (Depends-on): Add unsetenv.
51126         * modules/getdate (Depends-on): Likewise.
51127         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
51128         * lib/xsetenv.c: Don't include setenv.h.
51129         * lib/getdate.y: Likewise.
51130         * lib/relocwrapper.c: Likewise.
51131         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
51132         (Depends-on): Add stdlib.
51133         * NEWS: Mention the changes.
51134         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51135
51136 2007-12-23  Bruno Haible  <bruno@clisp.org>
51137
51138         * lib/memmem.c (memmem): Use lowercase variable names. Tab
51139         indentation.
51140
51141 2007-12-23  Bruno Haible  <bruno@clisp.org>
51142
51143         * lib/c-strcasestr.c: Add more comments.
51144         * lib/c-strstr.c: Likewise.
51145         * lib/mbscasestr.c: Likewise.
51146         * lib/mbsstr.c: Likewise.
51147         * lib/strcasestr.c: Likewise.
51148         * lib/memmem.c: Likewise.
51149
51150 2007-12-23  Bruno Haible  <bruno@clisp.org>
51151
51152         * tests/test-memmem.c: Include <string.h> first.
51153
51154 2007-12-22  Bruno Haible  <bruno@clisp.org>
51155
51156         * gnulib-tool (func_create_testdir): Change $auxdir while generating
51157         the contents of $testsbase.
51158         Reported by Ralf Wildenhues.
51159
51160 2007-12-22  Bruno Haible  <bruno@clisp.org>
51161
51162         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
51163         two variables local_ldadd_before, local_ldadd_last.
51164
51165 2007-12-20  Eric Blake  <ebb9@byu.net>
51166
51167         Work around circular library issue when cross-compiling.
51168         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
51169         that progname.o does not need to pull in rpl_memcmp.
51170
51171 2007-12-19  Eric Blake  <ebb9@byu.net>
51172
51173         Fix memmem to avoid O(n^2) worst-case complexity.
51174         * lib/memmem.c (knuth_morris_pratt): New function.
51175         (memmem): Use it if first few naive iterations fail.
51176         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
51177         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
51178         * modules/memchr (License): Likewise.
51179         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
51180         malloca.
51181         * tests/test-memmem.c: Rewrite, borrowing ideas from
51182         test-mbsstr1.c; the old version wouldn't even compile!
51183         * modules/memmem-tests: New file.
51184         * lib/string.in.h (rpl_memmem): Add declaration.
51185         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
51186         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
51187         REPLACE_MEMMEM.
51188
51189 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
51190
51191         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
51192         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
51193         before any system include files, and undef after them all.  This
51194         should fix a problem on VMS reported by John E. Malmberg in
51195         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
51196
51197 2007-12-17  Eric Blake  <ebb9@byu.net>
51198
51199         Revert addition of verify, for BSD/OS.
51200         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
51201         can't handle large files, for the sake of obsolete platforms.
51202         * modules/fseeko (Depends-on): Remove verify.
51203         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
51204         * doc/functions/ftello.texi (ftello): Likewise.
51205         * doc/functions/fgetpos.texi (fgetpos): Likewise.
51206         Reported by Larry Jones.
51207
51208 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
51209
51210         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
51211         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
51212
51213 2007-12-17  Jim Meyering  <meyering@redhat.com>
51214
51215         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
51216         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
51217         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
51218         * modules/getcwd (Depends-on): Add openat.
51219         Reported by Petr Salinger.
51220
51221 2007-12-17  Bruno Haible  <bruno@clisp.org>
51222
51223         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
51224         avoid a segmentation fault of the configure test on x86_64 systems.
51225
51226 2007-12-15  Jim Meyering  <meyering@redhat.com>
51227
51228         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
51229
51230 2007-12-13  Eric Blake  <ebb9@byu.net>
51231
51232         Another fseek test.
51233         * tests/test-fseek.c (main): Also test ungetc handling.
51234         * tests/test-fseeko.c (main): Likewise.
51235         * modules/fseeko (Depends-on): Add verify.
51236         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
51237         large.
51238         Reported by Larry Jones.
51239
51240         Fix fseeko on mingw.
51241         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
51242         seek.
51243
51244         Beef up fseek tests.
51245         * tests/test-fseek.c (main): Also test eof handling.
51246         * tests/test-fseeko.c (main): Likewise.
51247         Reported by Larry Jones.
51248
51249 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
51250
51251         Fix fseeko on BSD-based platforms.
51252         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
51253         successful seek.
51254
51255 2007-12-12  Eric Blake  <ebb9@byu.net>
51256
51257         Allow circular dependency of separate libtests.a
51258         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
51259         when use_libtests.
51260
51261 2007-12-11  Eric Blake  <ebb9@byu.net>
51262
51263         Fix bug with -0.0L in previous patch.
51264         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
51265         * tests/test-isnan.c (main): Also test on zeroes.
51266         * tests/test-isnanf.c (main): Likewise.
51267         * tests/test-isnanl.h (main): Likewise.
51268
51269         Detect pseudo-denormals on x86 even when cross-compiling.
51270         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
51271         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
51272         invalid bit patterns that happen to satisfy ==.
51273
51274         Avoid link failures with separate libtests.a.
51275         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
51276         last, to satisfy circular dependencies.
51277
51278 2007-12-11  Eric Blake  <ebb9@byu.net>
51279         and Bruno Haible  <bruno@clisp.org>
51280
51281         Fix OpenBSD 4.0 <float.h> handling of long double.
51282         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
51283         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
51284         * doc/headers/float.texi (float.h): Document OpenBSD bug.
51285
51286 2007-12-11  Jim Meyering  <meyering@redhat.com>
51287
51288         * users.txt: Add libvirt.
51289
51290         Support versions of autoconf prior to 2.59c.
51291         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
51292         if it is not already defined.
51293
51294 2007-12-09  Bruno Haible  <bruno@clisp.org>
51295
51296         Let 'gnulib-tool --import' collect sources needed for the tests in
51297         tests/ rather than in lib/.
51298         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
51299         argument. If true, add rules to generate libtests.a, and put libtests.a
51300         into $(LDADD). Consider source files in subdirectories and set
51301         uses_subdirs.
51302         (func_emit_initmacro_start, func_emit_initmacro_end,
51303         func_emit_initmacro_done): Pass all arguments explicitly.
51304         (func_import): Determine two module lists main_modules,
51305         testsrelated_modules. Determine use_libtests. Determine two variables
51306         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
51307         instead of just sed_transform_lib_file. Determine two variables
51308         main_files and testsrelated_files. Compute 'files' as the union of
51309         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
51310         func_add_or_update. In the generated gnulib-comp.m4, collect the
51311         object files for tests/ in different variables than those for lib/.
51312         Substitute LIBTESTS_LIBDEPS.
51313         (func_create_testdir): Combine the uses_subdirs results from
51314         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
51315
51316 2007-12-09  Bruno Haible  <bruno@clisp.org>
51317
51318         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
51319         the build-aux directory.
51320
51321 2007-12-09  Bruno Haible  <bruno@clisp.org>
51322
51323         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
51324         introduced on 2006-09-09.
51325
51326 2007-12-07  Jim Meyering  <meyering@redhat.com>
51327
51328         Let these macros work also with autoconf-2.59.
51329         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
51330         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
51331         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
51332
51333 2007-12-06  Jim Meyering  <meyering@redhat.com>
51334
51335         Avoid a configure-time syntax error in gl_FUNC_ACL.
51336         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
51337         function in each branch, before testing the cache variable.
51338
51339 2007-12-04  Eric Blake  <ebb9@byu.net>
51340
51341         Make scripts executable.
51342         * build-aux/config.guess: Add execute permissions.
51343         * build-aux/config.sub: Likewise.
51344         * build-aux/gendocs.sh: Likewise.
51345
51346         Fix frexp on mingw.
51347         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
51348         cross-compiling.
51349         * doc/functions/frexp.texi (frexp): Document the bug.
51350
51351         Make cygwin fseeko check more reliable.
51352         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
51353         version numbers, rather than unrelated feature check.
51354         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
51355         * doc/functions/ftello.texi (ftello): Likewise.
51356         Reported by Bruno Haible.
51357
51358         * m4/strerror.m4: Bump version number.
51359
51360 2007-12-03  Bruno Haible  <bruno@clisp.org>
51361
51362         * doc/functions/mprotect.texi: Mention the mingw problem.
51363
51364 2007-12-03  Eric Blake  <ebb9@byu.net>
51365
51366         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
51367         REPLACE_STRERROR is initialized before this macro.
51368
51369 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
51370
51371         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
51372         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
51373         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
51374         put -lsec in even for programs other than 'ls'.  This fixes a problem
51375         for gettext reported by Bruno Haible in
51376         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
51377         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
51378         Add support for Solaris 10.  This isn't efficient, but should get the
51379         job done for now.
51380
51381 2007-12-03  James Youngman  <jay@gnu.org>
51382
51383         * doc/regexprops-generic.texi: change "an close-group" to "a
51384         close-group" and "illegal" to "not allowed".
51385
51386 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51387
51388         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
51389         pr_byname.h. Needed for the rare case when the maintainer has done
51390         "make maintainer-clean" in the source directory and then attempts a
51391         build outside the source directory.
51392         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
51393         scripts_byname.h.
51394
51395 2007-12-02  Martin Lambers <marlam@marlam.de>
51396             Bruno Haible  <bruno@clisp.org>
51397
51398         * lib/getpagesize.h: Remove file.
51399         * lib/unistd.in.h: Include declaration of getpagesize here.
51400         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
51401         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
51402         HAVE_SYS_PARAM_H.
51403         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
51404         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
51405         * modules/getpagesize (Files): Remove lib/getpagesize.h.
51406         (Depends-on): Add unistd.
51407         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51408         (Include): Use <unistd.h> instead of getpagesize.h.
51409         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
51410         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
51411         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
51412         gl_GETPAGESIZE invocation, already handled by module dependency.
51413         * lib/pagealign_alloc.c: Don't include getpagesize.h.
51414
51415 2007-12-02  Bruno Haible  <bruno@clisp.org>
51416
51417         * modules/strings-tests: New file.
51418         * tests/test-strings.c: New file.
51419
51420         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
51421         * lib/strings.in.h: New file.
51422         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
51423         * m4/strings_h.m4: New file.
51424         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
51425         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
51426         * modules/strings: New file.
51427         * modules/string (Makefile.am): Update.
51428         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
51429         Reported by Karl Berry.
51430
51431 2007-12-01  Eric Blake  <ebb9@byu.net>
51432
51433         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
51434         accomodate fix in cygwin 1.5.25.
51435
51436 2007-12-01  Jim Meyering  <meyering@redhat.com>
51437
51438         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
51439         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
51440         that would inhibit utf8-optimization of a regexp containing line-
51441         or buffer-anchors, e.g., `^', `$'.
51442
51443 2007-11-30  Bruno Haible  <bruno@clisp.org>
51444
51445         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
51446         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
51447         glthread_recursive_lock_init.
51448         * lib/lock.c (glthread_recursive_lock_init)
51449         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
51450         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51451
51452 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
51453
51454         New function qset_acl, like set_acl but with syscall semantics.
51455         * lib/acl.h (qset_acl): New decl.
51456         * lib/acl.c (qset_acl): New function.
51457         (set_acl): Use new function.  Use more-consistent diagnostics.
51458
51459 2007-11-28  Jim Meyering  <meyering@redhat.com>
51460
51461         * modules/physmem (License): Change from GPL to LGPLv2+.
51462
51463 2007-11-26  Bruno Haible  <bruno@clisp.org>
51464
51465         * lib/vasnprintf.c (decode_long_double): Don't abort if the
51466         'long double' type has excess precision.
51467         Reported by Jim Meyering in
51468         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
51469
51470 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51471
51472         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
51473         Sync from <http://gnu.org/licenses>.
51474         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
51475         with license text from same location.
51476         * doc/maintain.texi, doc/standards.texi:  Sync from
51477         <http://savannah.gnu.org/projects/gnustandards>.
51478
51479 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
51480         and Jim Meyering  <meyering@redhat.com>
51481
51482         Adjust getdate' grammar to accept a slightly more regular language.
51483         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
51484         Before, the former was rejected.
51485         * lib/getdate.y (digits_to_date_time): New function, factored
51486         out of ...
51487         (number): ...here.  Just call digits_to_date_time.
51488         (hybrid): New non-terminal to handle an <unsigned number,
51489         signed relative offset> sequence consistently.
51490
51491 2007-11-18  Jim Meyering  <meyering@redhat.com>
51492
51493         Pull my changes from coreutils:
51494         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
51495         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
51496         use of $gnulib_tool_option_extras, so that it's separated from the
51497         preceding argument.
51498
51499         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
51500         * build-aux/bootstrap (cp_mark_as_generated): Create any required
51501         parent destination directories before copying a file into place.
51502
51503 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
51504
51505         bootstrap: work also with 4-argument variant of AC_INIT
51506         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
51507
51508 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
51509
51510         Port test-getaddrinfo to Solaris.
51511         Problem reported by Bruno Haible in
51512         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
51513         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
51514         explanation of setting 'hints'.
51515         Don't reject an implementation merely because it returns EAI_SERVICE.
51516         (EAI_SERVICE): Define to 0 if not defined.
51517
51518 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
51519
51520         The license of gnu-make and posix-shell is now "GPLed build tool".
51521         * modules/gnu-make (License): Likewise.
51522         * modules/posix-shell (License): Likewise.
51523
51524         New module posix-shell, for determining a POSIX shell
51525         or perhaps something that is close enough to a POSIX shell.
51526         * m4/posix-shell.m4: New file.
51527         * modules/posix-shell: New file.
51528
51529         * MODULES.html.sh: Mention new module.
51530
51531         New module gnu-make, for determining whether we're using GNU Make.
51532         * m4/gnu-make.m4: New file.
51533         * modules/gnu-make: New file.
51534         * MODULES.html.sh: Mention new module.
51535
51536 2007-11-14  Jim Meyering  <meyering@redhat.com>
51537
51538         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
51539         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
51540         use this macro to create a function _definition_.
51541         Remove useless "#undef ARGMATCH_DIE".
51542
51543 2007-11-14  Bruno Haible  <bruno@clisp.org>
51544
51545         * lib/config.charset: Update for OpenBSD 4.1.
51546         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
51547
51548 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
51549
51550         Document 64-bit #if problems in stdint.texi.
51551         * doc/headers/stdint.texi (stdint.h): Mention problems with
51552         64-bit-#if, and how to work around them.
51553
51554         Don't insist on 'long long int' support in the preprocessor.  It
51555         breaks too many things.  For example, PRIdMAX still uses a 'long
51556         long int' format with the latest Sun compiler, even though
51557         HAVE_LONG_LONG_INT isn't defined due to that compiler's
51558         preprocessor problem.  This causes the latest coreutils to dump
51559         core on Solaris 10 sparc with the Sun C compiler.
51560         Instead, fix the 2007-10-16 problem in a different way, by evaluating
51561         the troublesome expressions at configure-time, not at #if-time.
51562         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
51563         preprocessor.
51564         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
51565         compile-time C checks, done at 'configure'-time.
51566         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
51567         * modules/inttypes (Makefile): Substitute the new symbols that
51568         gl_INTTYPES_H now generates.
51569         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
51570
51571 2007-11-12  Bruno Haible  <bruno@clisp.org>
51572
51573         Tests for Unicode character classification functions.
51574
51575         * modules/unictype/bidicategory-byname-tests: New file.
51576         * modules/unictype/bidicategory-name-tests: New file.
51577         * modules/unictype/bidicategory-of-tests: New file.
51578         * modules/unictype/bidicategory-test-tests: New file.
51579         * modules/unictype/block-list-tests: New file.
51580         * modules/unictype/block-of-tests: New file.
51581         * modules/unictype/block-test-tests: New file.
51582         * modules/unictype/category-C-tests: New file.
51583         * modules/unictype/category-Cc-tests: New file.
51584         * modules/unictype/category-Cf-tests: New file.
51585         * modules/unictype/category-Cn-tests: New file.
51586         * modules/unictype/category-Co-tests: New file.
51587         * modules/unictype/category-Cs-tests: New file.
51588         * modules/unictype/category-L-tests: New file.
51589         * modules/unictype/category-Ll-tests: New file.
51590         * modules/unictype/category-Lm-tests: New file.
51591         * modules/unictype/category-Lo-tests: New file.
51592         * modules/unictype/category-Lt-tests: New file.
51593         * modules/unictype/category-Lu-tests: New file.
51594         * modules/unictype/category-M-tests: New file.
51595         * modules/unictype/category-Mc-tests: New file.
51596         * modules/unictype/category-Me-tests: New file.
51597         * modules/unictype/category-Mn-tests: New file.
51598         * modules/unictype/category-N-tests: New file.
51599         * modules/unictype/category-Nd-tests: New file.
51600         * modules/unictype/category-Nl-tests: New file.
51601         * modules/unictype/category-No-tests: New file.
51602         * modules/unictype/category-P-tests: New file.
51603         * modules/unictype/category-Pc-tests: New file.
51604         * modules/unictype/category-Pd-tests: New file.
51605         * modules/unictype/category-Pe-tests: New file.
51606         * modules/unictype/category-Pf-tests: New file.
51607         * modules/unictype/category-Pi-tests: New file.
51608         * modules/unictype/category-Po-tests: New file.
51609         * modules/unictype/category-Ps-tests: New file.
51610         * modules/unictype/category-S-tests: New file.
51611         * modules/unictype/category-Sc-tests: New file.
51612         * modules/unictype/category-Sk-tests: New file.
51613         * modules/unictype/category-Sm-tests: New file.
51614         * modules/unictype/category-So-tests: New file.
51615         * modules/unictype/category-Z-tests: New file.
51616         * modules/unictype/category-Zl-tests: New file.
51617         * modules/unictype/category-Zp-tests: New file.
51618         * modules/unictype/category-Zs-tests: New file.
51619         * modules/unictype/category-and-not-tests: New file.
51620         * modules/unictype/category-and-tests: New file.
51621         * modules/unictype/category-byname-tests: New file.
51622         * modules/unictype/category-name-tests: New file.
51623         * modules/unictype/category-none-tests: New file.
51624         * modules/unictype/category-of-tests: New file.
51625         * modules/unictype/category-or-tests: New file.
51626         * modules/unictype/category-test-withtable-tests: New file.
51627         * modules/unictype/combining-class-tests: New file.
51628         * modules/unictype/ctype-alnum-tests: New file.
51629         * modules/unictype/ctype-alpha-tests: New file.
51630         * modules/unictype/ctype-blank-tests: New file.
51631         * modules/unictype/ctype-cntrl-tests: New file.
51632         * modules/unictype/ctype-digit-tests: New file.
51633         * modules/unictype/ctype-graph-tests: New file.
51634         * modules/unictype/ctype-lower-tests: New file.
51635         * modules/unictype/ctype-print-tests: New file.
51636         * modules/unictype/ctype-punct-tests: New file.
51637         * modules/unictype/ctype-space-tests: New file.
51638         * modules/unictype/ctype-upper-tests: New file.
51639         * modules/unictype/ctype-xdigit-tests: New file.
51640         * modules/unictype/decimal-digit-tests: New file.
51641         * modules/unictype/digit-tests: New file.
51642         * modules/unictype/mirror-tests: New file.
51643         * modules/unictype/numeric-tests: New file.
51644         * modules/unictype/property-alphabetic-tests: New file.
51645         * modules/unictype/property-ascii-hex-digit-tests: New file.
51646         * modules/unictype/property-bidi-arabic-digit-tests: New file.
51647         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
51648         * modules/unictype/property-bidi-block-separator-tests: New file.
51649         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
51650         * modules/unictype/property-bidi-common-separator-tests: New file.
51651         * modules/unictype/property-bidi-control-tests: New file.
51652         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
51653         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
51654         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
51655         * modules/unictype/property-bidi-european-digit-tests: New file.
51656         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
51657         * modules/unictype/property-bidi-left-to-right-tests: New file.
51658         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
51659         * modules/unictype/property-bidi-other-neutral-tests: New file.
51660         * modules/unictype/property-bidi-pdf-tests: New file.
51661         * modules/unictype/property-bidi-segment-separator-tests: New file.
51662         * modules/unictype/property-bidi-whitespace-tests: New file.
51663         * modules/unictype/property-byname-tests: New file.
51664         * modules/unictype/property-combining-tests: New file.
51665         * modules/unictype/property-composite-tests: New file.
51666         * modules/unictype/property-currency-symbol-tests: New file.
51667         * modules/unictype/property-dash-tests: New file.
51668         * modules/unictype/property-decimal-digit-tests: New file.
51669         * modules/unictype/property-default-ignorable-code-point-tests: New file.
51670         * modules/unictype/property-deprecated-tests: New file.
51671         * modules/unictype/property-diacritic-tests: New file.
51672         * modules/unictype/property-extender-tests: New file.
51673         * modules/unictype/property-format-control-tests: New file.
51674         * modules/unictype/property-grapheme-base-tests: New file.
51675         * modules/unictype/property-grapheme-extend-tests: New file.
51676         * modules/unictype/property-grapheme-link-tests: New file.
51677         * modules/unictype/property-hex-digit-tests: New file.
51678         * modules/unictype/property-hyphen-tests: New file.
51679         * modules/unictype/property-id-continue-tests: New file.
51680         * modules/unictype/property-id-start-tests: New file.
51681         * modules/unictype/property-ideographic-tests: New file.
51682         * modules/unictype/property-ids-binary-operator-tests: New file.
51683         * modules/unictype/property-ids-trinary-operator-tests: New file.
51684         * modules/unictype/property-ignorable-control-tests: New file.
51685         * modules/unictype/property-iso-control-tests: New file.
51686         * modules/unictype/property-join-control-tests: New file.
51687         * modules/unictype/property-left-of-pair-tests: New file.
51688         * modules/unictype/property-line-separator-tests: New file.
51689         * modules/unictype/property-logical-order-exception-tests: New file.
51690         * modules/unictype/property-lowercase-tests: New file.
51691         * modules/unictype/property-math-tests: New file.
51692         * modules/unictype/property-non-break-tests: New file.
51693         * modules/unictype/property-not-a-character-tests: New file.
51694         * modules/unictype/property-numeric-tests: New file.
51695         * modules/unictype/property-other-alphabetic-tests: New file.
51696         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
51697         * modules/unictype/property-other-grapheme-extend-tests: New file.
51698         * modules/unictype/property-other-id-continue-tests: New file.
51699         * modules/unictype/property-other-id-start-tests: New file.
51700         * modules/unictype/property-other-lowercase-tests: New file.
51701         * modules/unictype/property-other-math-tests: New file.
51702         * modules/unictype/property-other-uppercase-tests: New file.
51703         * modules/unictype/property-paired-punctuation-tests: New file.
51704         * modules/unictype/property-paragraph-separator-tests: New file.
51705         * modules/unictype/property-pattern-syntax-tests: New file.
51706         * modules/unictype/property-pattern-white-space-tests: New file.
51707         * modules/unictype/property-private-use-tests: New file.
51708         * modules/unictype/property-punctuation-tests: New file.
51709         * modules/unictype/property-quotation-mark-tests: New file.
51710         * modules/unictype/property-radical-tests: New file.
51711         * modules/unictype/property-sentence-terminal-tests: New file.
51712         * modules/unictype/property-soft-dotted-tests: New file.
51713         * modules/unictype/property-space-tests: New file.
51714         * modules/unictype/property-terminal-punctuation-tests: New file.
51715         * modules/unictype/property-test-tests: New file.
51716         * modules/unictype/property-titlecase-tests: New file.
51717         * modules/unictype/property-unassigned-code-value-tests: New file.
51718         * modules/unictype/property-unified-ideograph-tests: New file.
51719         * modules/unictype/property-uppercase-tests: New file.
51720         * modules/unictype/property-variation-selector-tests: New file.
51721         * modules/unictype/property-white-space-tests: New file.
51722         * modules/unictype/property-xid-continue-tests: New file.
51723         * modules/unictype/property-xid-start-tests: New file.
51724         * modules/unictype/property-zero-width-tests: New file.
51725         * modules/unictype/scripts-tests: New file.
51726         * modules/unictype/syntax-c-ident-tests: New file.
51727         * modules/unictype/syntax-c-whitespace-tests: New file.
51728         * modules/unictype/syntax-java-ident-tests: New file.
51729         * modules/unictype/syntax-java-whitespace-tests: New file.
51730         * tests/unictype/test-bidi_byname.c: New file.
51731         * tests/unictype/test-bidi_name.c: New file.
51732         * tests/unictype/test-bidi_of.c: New file.
51733         * tests/unictype/test-bidi_test.c: New file.
51734         * tests/unictype/test-block_list.c: New file.
51735         * tests/unictype/test-block_of.c: New file.
51736         * tests/unictype/test-block_test.c: New file.
51737         * tests/unictype/test-categ_and.c: New file.
51738         * tests/unictype/test-categ_and_not.c: New file.
51739         * tests/unictype/test-categ_byname.c: New file.
51740         * tests/unictype/test-categ_name.c: New file.
51741         * tests/unictype/test-categ_none.c: New file.
51742         * tests/unictype/test-categ_of.c: New file.
51743         * tests/unictype/test-categ_or.c: New file.
51744         * tests/unictype/test-categ_test_withtable.c: New file.
51745         * tests/unictype/test-combining.c: New file.
51746         * tests/unictype/test-decdigit.c: New file.
51747         * tests/unictype/test-digit.c: New file.
51748         * tests/unictype/test-mirror.c: New file.
51749         * tests/unictype/test-numeric.c: New file.
51750         * tests/unictype/test-pr_byname.c: New file.
51751         * tests/unictype/test-pr_test.c: New file.
51752         * tests/unictype/test-predicate-part1.h: New file.
51753         * tests/unictype/test-predicate-part2.h: New file.
51754         * tests/unictype/test-scripts.c: New file.
51755         * tests/unictype/test-sy_c_ident.c: New file.
51756         * tests/unictype/test-sy_java_ident.c: New file.
51757
51758         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
51759         for Unicode 5.0.0.
51760         * tests/unictype/test-categ_Cc.c: Likewise.
51761         * tests/unictype/test-categ_Cf.c: Likewise.
51762         * tests/unictype/test-categ_Cn.c: Likewise.
51763         * tests/unictype/test-categ_Co.c: Likewise.
51764         * tests/unictype/test-categ_Cs.c: Likewise.
51765         * tests/unictype/test-categ_L.c: Likewise.
51766         * tests/unictype/test-categ_Ll.c: Likewise.
51767         * tests/unictype/test-categ_Lm.c: Likewise.
51768         * tests/unictype/test-categ_Lo.c: Likewise.
51769         * tests/unictype/test-categ_Lt.c: Likewise.
51770         * tests/unictype/test-categ_Lu.c: Likewise.
51771         * tests/unictype/test-categ_M.c: Likewise.
51772         * tests/unictype/test-categ_Mc.c: Likewise.
51773         * tests/unictype/test-categ_Me.c: Likewise.
51774         * tests/unictype/test-categ_Mn.c: Likewise.
51775         * tests/unictype/test-categ_N.c: Likewise.
51776         * tests/unictype/test-categ_Nd.c: Likewise.
51777         * tests/unictype/test-categ_Nl.c: Likewise.
51778         * tests/unictype/test-categ_No.c: Likewise.
51779         * tests/unictype/test-categ_P.c: Likewise.
51780         * tests/unictype/test-categ_Pc.c: Likewise.
51781         * tests/unictype/test-categ_Pd.c: Likewise.
51782         * tests/unictype/test-categ_Pe.c: Likewise.
51783         * tests/unictype/test-categ_Pf.c: Likewise.
51784         * tests/unictype/test-categ_Pi.c: Likewise.
51785         * tests/unictype/test-categ_Po.c: Likewise.
51786         * tests/unictype/test-categ_Ps.c: Likewise.
51787         * tests/unictype/test-categ_S.c: Likewise.
51788         * tests/unictype/test-categ_Sc.c: Likewise.
51789         * tests/unictype/test-categ_Sk.c: Likewise.
51790         * tests/unictype/test-categ_Sm.c: Likewise.
51791         * tests/unictype/test-categ_So.c: Likewise.
51792         * tests/unictype/test-categ_Z.c: Likewise.
51793         * tests/unictype/test-categ_Zl.c: Likewise.
51794         * tests/unictype/test-categ_Zp.c: Likewise.
51795         * tests/unictype/test-categ_Zs.c: Likewise.
51796         * tests/unictype/test-ctype_alnum.c: Likewise.
51797         * tests/unictype/test-ctype_alpha.c: Likewise.
51798         * tests/unictype/test-ctype_blank.c: Likewise.
51799         * tests/unictype/test-ctype_cntrl.c: Likewise.
51800         * tests/unictype/test-ctype_digit.c: Likewise.
51801         * tests/unictype/test-ctype_graph.c: Likewise.
51802         * tests/unictype/test-ctype_lower.c: Likewise.
51803         * tests/unictype/test-ctype_print.c: Likewise.
51804         * tests/unictype/test-ctype_punct.c: Likewise.
51805         * tests/unictype/test-ctype_space.c: Likewise.
51806         * tests/unictype/test-ctype_upper.c: Likewise.
51807         * tests/unictype/test-ctype_xdigit.c: Likewise.
51808         * tests/unictype/test-decdigit.h: Likewise.
51809         * tests/unictype/test-digit.h: Likewise.
51810         * tests/unictype/test-numeric.h: Likewise.
51811         * tests/unictype/test-pr_alphabetic.c: Likewise.
51812         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
51813         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
51814         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
51815         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
51816         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
51817         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
51818         * tests/unictype/test-pr_bidi_control.c: Likewise.
51819         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
51820         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
51821         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
51822         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
51823         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
51824         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
51825         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
51826         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
51827         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
51828         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
51829         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
51830         * tests/unictype/test-pr_combining.c: Likewise.
51831         * tests/unictype/test-pr_composite.c: Likewise.
51832         * tests/unictype/test-pr_currency_symbol.c: Likewise.
51833         * tests/unictype/test-pr_dash.c: Likewise.
51834         * tests/unictype/test-pr_decimal_digit.c: Likewise.
51835         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
51836         * tests/unictype/test-pr_deprecated.c: Likewise.
51837         * tests/unictype/test-pr_diacritic.c: Likewise.
51838         * tests/unictype/test-pr_extender.c: Likewise.
51839         * tests/unictype/test-pr_format_control.c: Likewise.
51840         * tests/unictype/test-pr_grapheme_base.c: Likewise.
51841         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
51842         * tests/unictype/test-pr_grapheme_link.c: Likewise.
51843         * tests/unictype/test-pr_hex_digit.c: Likewise.
51844         * tests/unictype/test-pr_hyphen.c: Likewise.
51845         * tests/unictype/test-pr_id_continue.c: Likewise.
51846         * tests/unictype/test-pr_id_start.c: Likewise.
51847         * tests/unictype/test-pr_ideographic.c: Likewise.
51848         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
51849         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
51850         * tests/unictype/test-pr_ignorable_control.c: Likewise.
51851         * tests/unictype/test-pr_iso_control.c: Likewise.
51852         * tests/unictype/test-pr_join_control.c: Likewise.
51853         * tests/unictype/test-pr_left_of_pair.c: Likewise.
51854         * tests/unictype/test-pr_line_separator.c: Likewise.
51855         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
51856         * tests/unictype/test-pr_lowercase.c: Likewise.
51857         * tests/unictype/test-pr_math.c: Likewise.
51858         * tests/unictype/test-pr_non_break.c: Likewise.
51859         * tests/unictype/test-pr_not_a_character.c: Likewise.
51860         * tests/unictype/test-pr_numeric.c: Likewise.
51861         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
51862         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
51863         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
51864         * tests/unictype/test-pr_other_id_continue.c: Likewise.
51865         * tests/unictype/test-pr_other_id_start.c: Likewise.
51866         * tests/unictype/test-pr_other_lowercase.c: Likewise.
51867         * tests/unictype/test-pr_other_math.c: Likewise.
51868         * tests/unictype/test-pr_other_uppercase.c: Likewise.
51869         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
51870         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
51871         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
51872         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
51873         * tests/unictype/test-pr_private_use.c: Likewise.
51874         * tests/unictype/test-pr_punctuation.c: Likewise.
51875         * tests/unictype/test-pr_quotation_mark.c: Likewise.
51876         * tests/unictype/test-pr_radical.c: Likewise.
51877         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
51878         * tests/unictype/test-pr_soft_dotted.c: Likewise.
51879         * tests/unictype/test-pr_space.c: Likewise.
51880         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
51881         * tests/unictype/test-pr_titlecase.c: Likewise.
51882         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
51883         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
51884         * tests/unictype/test-pr_uppercase.c: Likewise.
51885         * tests/unictype/test-pr_variation_selector.c: Likewise.
51886         * tests/unictype/test-pr_white_space.c: Likewise.
51887         * tests/unictype/test-pr_xid_continue.c: Likewise.
51888         * tests/unictype/test-pr_xid_start.c: Likewise.
51889         * tests/unictype/test-pr_zero_width.c: Likewise.
51890         * tests/unictype/test-sy_c_whitespace.c: Likewise.
51891         * tests/unictype/test-sy_java_whitespace.c: Likewise.
51892
51893 2007-11-12  Bruno Haible  <bruno@clisp.org>
51894
51895         Unicode character classification functions.
51896         * lib/unictype.h: New file.
51897         * modules/unictype/base: New file.
51898         * modules/unictype/category-L: New file.
51899         * modules/unictype/category-Lu: New file.
51900         * modules/unictype/category-Ll: New file.
51901         * modules/unictype/category-Lt: New file.
51902         * modules/unictype/category-Lm: New file.
51903         * modules/unictype/category-Lo: New file.
51904         * modules/unictype/category-M: New file.
51905         * modules/unictype/category-Mn: New file.
51906         * modules/unictype/category-Mc: New file.
51907         * modules/unictype/category-Me: New file.
51908         * modules/unictype/category-N: New file.
51909         * modules/unictype/category-Nd: New file.
51910         * modules/unictype/category-Nl: New file.
51911         * modules/unictype/category-No: New file.
51912         * modules/unictype/category-P: New file.
51913         * modules/unictype/category-Pc: New file.
51914         * modules/unictype/category-Pd: New file.
51915         * modules/unictype/category-Ps: New file.
51916         * modules/unictype/category-Pe: New file.
51917         * modules/unictype/category-Pi: New file.
51918         * modules/unictype/category-Pf: New file.
51919         * modules/unictype/category-Po: New file.
51920         * modules/unictype/category-S: New file.
51921         * modules/unictype/category-Sm: New file.
51922         * modules/unictype/category-Sc: New file.
51923         * modules/unictype/category-Sk: New file.
51924         * modules/unictype/category-So: New file.
51925         * modules/unictype/category-Z: New file.
51926         * modules/unictype/category-Zs: New file.
51927         * modules/unictype/category-Zl: New file.
51928         * modules/unictype/category-Zp: New file.
51929         * modules/unictype/category-C: New file.
51930         * modules/unictype/category-Cc: New file.
51931         * modules/unictype/category-Cf: New file.
51932         * modules/unictype/category-Cs: New file.
51933         * modules/unictype/category-Co: New file.
51934         * modules/unictype/category-Cn: New file.
51935         * modules/unictype/category-or: New file.
51936         * modules/unictype/category-of: New file.
51937         * modules/unictype/category-test: New file.
51938         * modules/unictype/category-test-withtable: New file.
51939         * modules/unictype/category-byname: New file.
51940         * modules/unictype/category-none: New file.
51941         * modules/unictype/category-and: New file.
51942         * modules/unictype/category-and-not: New file.
51943         * modules/unictype/category-name: New file.
51944         * modules/unictype/combining-class: New file.
51945         * modules/unictype/category-all: New file.
51946         * modules/unictype/bidicategory-all: New file.
51947         * modules/unictype/bidicategory-byname: New file.
51948         * modules/unictype/bidicategory-name: New file.
51949         * modules/unictype/bidicategory-of: New file.
51950         * modules/unictype/bidicategory-test: New file.
51951         * modules/unictype/decimal-digit: New file.
51952         * modules/unictype/digit: New file.
51953         * modules/unictype/numeric: New file.
51954         * modules/unictype/mirror: New file.
51955         * modules/unictype/property-white-space: New file.
51956         * modules/unictype/property-alphabetic: New file.
51957         * modules/unictype/property-other-alphabetic: New file.
51958         * modules/unictype/property-not-a-character: New file.
51959         * modules/unictype/property-default-ignorable-code-point: New file.
51960         * modules/unictype/property-other-default-ignorable-code-point: New
51961         file.
51962         * modules/unictype/property-deprecated: New file.
51963         * modules/unictype/property-logical-order-exception: New file.
51964         * modules/unictype/property-variation-selector: New file.
51965         * modules/unictype/property-private-use: New file.
51966         * modules/unictype/property-unassigned-code-value: New file.
51967         * modules/unictype/property-uppercase: New file.
51968         * modules/unictype/property-other-uppercase: New file.
51969         * modules/unictype/property-lowercase: New file.
51970         * modules/unictype/property-other-lowercase: New file.
51971         * modules/unictype/property-titlecase: New file.
51972         * modules/unictype/property-soft-dotted: New file.
51973         * modules/unictype/property-id-start: New file.
51974         * modules/unictype/property-other-id-start: New file.
51975         * modules/unictype/property-id-continue: New file.
51976         * modules/unictype/property-other-id-continue: New file.
51977         * modules/unictype/property-xid-start: New file.
51978         * modules/unictype/property-xid-continue: New file.
51979         * modules/unictype/property-pattern-white-space: New file.
51980         * modules/unictype/property-pattern-syntax: New file.
51981         * modules/unictype/property-join-control: New file.
51982         * modules/unictype/property-grapheme-base: New file.
51983         * modules/unictype/property-grapheme-extend: New file.
51984         * modules/unictype/property-other-grapheme-extend: New file.
51985         * modules/unictype/property-grapheme-link: New file.
51986         * modules/unictype/property-bidi-control: New file.
51987         * modules/unictype/property-bidi-left-to-right: New file.
51988         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
51989         * modules/unictype/property-bidi-arabic-right-to-left: New file.
51990         * modules/unictype/property-bidi-european-digit: New file.
51991         * modules/unictype/property-bidi-eur-num-separator: New file.
51992         * modules/unictype/property-bidi-eur-num-terminator: New file.
51993         * modules/unictype/property-bidi-arabic-digit: New file.
51994         * modules/unictype/property-bidi-common-separator: New file.
51995         * modules/unictype/property-bidi-block-separator: New file.
51996         * modules/unictype/property-bidi-segment-separator: New file.
51997         * modules/unictype/property-bidi-whitespace: New file.
51998         * modules/unictype/property-bidi-non-spacing-mark: New file.
51999         * modules/unictype/property-bidi-boundary-neutral: New file.
52000         * modules/unictype/property-bidi-pdf: New file.
52001         * modules/unictype/property-bidi-embedding-or-override: New file.
52002         * modules/unictype/property-bidi-other-neutral: New file.
52003         * modules/unictype/property-hex-digit: New file.
52004         * modules/unictype/property-ascii-hex-digit: New file.
52005         * modules/unictype/property-ideographic: New file.
52006         * modules/unictype/property-unified-ideograph: New file.
52007         * modules/unictype/property-radical: New file.
52008         * modules/unictype/property-ids-binary-operator: New file.
52009         * modules/unictype/property-ids-trinary-operator: New file.
52010         * modules/unictype/property-zero-width: New file.
52011         * modules/unictype/property-space: New file.
52012         * modules/unictype/property-non-break: New file.
52013         * modules/unictype/property-iso-control: New file.
52014         * modules/unictype/property-format-control: New file.
52015         * modules/unictype/property-dash: New file.
52016         * modules/unictype/property-hyphen: New file.
52017         * modules/unictype/property-punctuation: New file.
52018         * modules/unictype/property-line-separator: New file.
52019         * modules/unictype/property-paragraph-separator: New file.
52020         * modules/unictype/property-quotation-mark: New file.
52021         * modules/unictype/property-sentence-terminal: New file.
52022         * modules/unictype/property-terminal-punctuation: New file.
52023         * modules/unictype/property-currency-symbol: New file.
52024         * modules/unictype/property-math: New file.
52025         * modules/unictype/property-other-math: New file.
52026         * modules/unictype/property-paired-punctuation: New file.
52027         * modules/unictype/property-left-of-pair: New file.
52028         * modules/unictype/property-combining: New file.
52029         * modules/unictype/property-composite: New file.
52030         * modules/unictype/property-decimal-digit: New file.
52031         * modules/unictype/property-numeric: New file.
52032         * modules/unictype/property-diacritic: New file.
52033         * modules/unictype/property-extender: New file.
52034         * modules/unictype/property-ignorable-control: New file.
52035         * modules/unictype/property-test: New file.
52036         * modules/unictype/property-byname: New file.
52037         * modules/unictype/property-all: New file.
52038         * modules/unictype/scripts: New file.
52039         * modules/unictype/scripts-all: New file.
52040         * modules/unictype/block-of: New file.
52041         * modules/unictype/block-test: New file.
52042         * modules/unictype/block-list: New file.
52043         * modules/unictype/block-all: New file.
52044         * modules/unictype/syntax-c-whitespace: New file.
52045         * modules/unictype/syntax-java-whitespace: New file.
52046         * modules/unictype/syntax-c-ident: New file.
52047         * modules/unictype/syntax-java-ident: New file.
52048         * modules/unictype/ctype-alnum: New file.
52049         * modules/unictype/ctype-alpha: New file.
52050         * modules/unictype/ctype-cntrl: New file.
52051         * modules/unictype/ctype-digit: New file.
52052         * modules/unictype/ctype-graph: New file.
52053         * modules/unictype/ctype-lower: New file.
52054         * modules/unictype/ctype-print: New file.
52055         * modules/unictype/ctype-punct: New file.
52056         * modules/unictype/ctype-space: New file.
52057         * modules/unictype/ctype-upper: New file.
52058         * modules/unictype/ctype-xdigit: New file.
52059         * modules/unictype/ctype-blank: New file.
52060         * lib/unictype/bidi_byname.c: New file.
52061         * lib/unictype/bidi_name.c: New file.
52062         * lib/unictype/bidi_of.c: New file.
52063         * lib/unictype/bidi_test.c: New file.
52064         * lib/unictype/bitmap.h: New file.
52065         * lib/unictype/block_test.c: New file.
52066         * lib/unictype/blocks.c: New file.
52067         * lib/unictype/categ_C.c: New file.
52068         * lib/unictype/categ_Cc.c: New file.
52069         * lib/unictype/categ_Cf.c: New file.
52070         * lib/unictype/categ_Cn.c: New file.
52071         * lib/unictype/categ_Co.c: New file.
52072         * lib/unictype/categ_Cs.c: New file.
52073         * lib/unictype/categ_L.c: New file.
52074         * lib/unictype/categ_Ll.c: New file.
52075         * lib/unictype/categ_Lm.c: New file.
52076         * lib/unictype/categ_Lo.c: New file.
52077         * lib/unictype/categ_Lt.c: New file.
52078         * lib/unictype/categ_Lu.c: New file.
52079         * lib/unictype/categ_M.c: New file.
52080         * lib/unictype/categ_Mc.c: New file.
52081         * lib/unictype/categ_Me.c: New file.
52082         * lib/unictype/categ_Mn.c: New file.
52083         * lib/unictype/categ_N.c: New file.
52084         * lib/unictype/categ_Nd.c: New file.
52085         * lib/unictype/categ_Nl.c: New file.
52086         * lib/unictype/categ_No.c: New file.
52087         * lib/unictype/categ_P.c: New file.
52088         * lib/unictype/categ_Pc.c: New file.
52089         * lib/unictype/categ_Pd.c: New file.
52090         * lib/unictype/categ_Pe.c: New file.
52091         * lib/unictype/categ_Pf.c: New file.
52092         * lib/unictype/categ_Pi.c: New file.
52093         * lib/unictype/categ_Po.c: New file.
52094         * lib/unictype/categ_Ps.c: New file.
52095         * lib/unictype/categ_S.c: New file.
52096         * lib/unictype/categ_Sc.c: New file.
52097         * lib/unictype/categ_Sk.c: New file.
52098         * lib/unictype/categ_Sm.c: New file.
52099         * lib/unictype/categ_So.c: New file.
52100         * lib/unictype/categ_Z.c: New file.
52101         * lib/unictype/categ_Zl.c: New file.
52102         * lib/unictype/categ_Zp.c: New file.
52103         * lib/unictype/categ_Zs.c: New file.
52104         * lib/unictype/categ_and.c: New file.
52105         * lib/unictype/categ_and_not.c: New file.
52106         * lib/unictype/categ_byname.c: New file.
52107         * lib/unictype/categ_name.c: New file.
52108         * lib/unictype/categ_none.c: New file.
52109         * lib/unictype/categ_of.c: New file.
52110         * lib/unictype/categ_or.c: New file.
52111         * lib/unictype/categ_test.c: New file.
52112         * lib/unictype/combining.c: New file.
52113         * lib/unictype/ctype_alnum.c: New file.
52114         * lib/unictype/ctype_alpha.c: New file.
52115         * lib/unictype/ctype_blank.c: New file.
52116         * lib/unictype/ctype_cntrl.c: New file.
52117         * lib/unictype/ctype_digit.c: New file.
52118         * lib/unictype/ctype_graph.c: New file.
52119         * lib/unictype/ctype_lower.c: New file.
52120         * lib/unictype/ctype_print.c: New file.
52121         * lib/unictype/ctype_punct.c: New file.
52122         * lib/unictype/ctype_space.c: New file.
52123         * lib/unictype/ctype_upper.c: New file.
52124         * lib/unictype/ctype_xdigit.c: New file.
52125         * lib/unictype/decdigit.c: New file.
52126         * lib/unictype/digit.c: New file.
52127         * lib/unictype/identsyntaxmap.h: New file.
52128         * lib/unictype/mirror.c: New file.
52129         * lib/unictype/numeric.c: New file.
52130         * lib/unictype/pr_alphabetic.c: New file.
52131         * lib/unictype/pr_ascii_hex_digit.c: New file.
52132         * lib/unictype/pr_bidi_arabic_digit.c: New file.
52133         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
52134         * lib/unictype/pr_bidi_block_separator.c: New file.
52135         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
52136         * lib/unictype/pr_bidi_common_separator.c: New file.
52137         * lib/unictype/pr_bidi_control.c: New file.
52138         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
52139         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
52140         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
52141         * lib/unictype/pr_bidi_european_digit.c: New file.
52142         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
52143         * lib/unictype/pr_bidi_left_to_right.c: New file.
52144         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
52145         * lib/unictype/pr_bidi_other_neutral.c: New file.
52146         * lib/unictype/pr_bidi_pdf.c: New file.
52147         * lib/unictype/pr_bidi_segment_separator.c: New file.
52148         * lib/unictype/pr_bidi_whitespace.c: New file.
52149         * lib/unictype/pr_byname.c: New file.
52150         * lib/unictype/pr_byname.gperf: New file.
52151         * lib/unictype/pr_combining.c: New file.
52152         * lib/unictype/pr_composite.c: New file.
52153         * lib/unictype/pr_currency_symbol.c: New file.
52154         * lib/unictype/pr_dash.c: New file.
52155         * lib/unictype/pr_decimal_digit.c: New file.
52156         * lib/unictype/pr_default_ignorable_code_point.c: New file.
52157         * lib/unictype/pr_deprecated.c: New file.
52158         * lib/unictype/pr_diacritic.c: New file.
52159         * lib/unictype/pr_extender.c: New file.
52160         * lib/unictype/pr_format_control.c: New file.
52161         * lib/unictype/pr_grapheme_base.c: New file.
52162         * lib/unictype/pr_grapheme_extend.c: New file.
52163         * lib/unictype/pr_grapheme_link.c: New file.
52164         * lib/unictype/pr_hex_digit.c: New file.
52165         * lib/unictype/pr_hyphen.c: New file.
52166         * lib/unictype/pr_id_continue.c: New file.
52167         * lib/unictype/pr_id_start.c: New file.
52168         * lib/unictype/pr_ideographic.c: New file.
52169         * lib/unictype/pr_ids_binary_operator.c: New file.
52170         * lib/unictype/pr_ids_trinary_operator.c: New file.
52171         * lib/unictype/pr_ignorable_control.c: New file.
52172         * lib/unictype/pr_iso_control.c: New file.
52173         * lib/unictype/pr_join_control.c: New file.
52174         * lib/unictype/pr_left_of_pair.c: New file.
52175         * lib/unictype/pr_line_separator.c: New file.
52176         * lib/unictype/pr_logical_order_exception.c: New file.
52177         * lib/unictype/pr_lowercase.c: New file.
52178         * lib/unictype/pr_math.c: New file.
52179         * lib/unictype/pr_non_break.c: New file.
52180         * lib/unictype/pr_not_a_character.c: New file.
52181         * lib/unictype/pr_numeric.c: New file.
52182         * lib/unictype/pr_other_alphabetic.c: New file.
52183         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
52184         * lib/unictype/pr_other_grapheme_extend.c: New file.
52185         * lib/unictype/pr_other_id_continue.c: New file.
52186         * lib/unictype/pr_other_id_start.c: New file.
52187         * lib/unictype/pr_other_lowercase.c: New file.
52188         * lib/unictype/pr_other_math.c: New file.
52189         * lib/unictype/pr_other_uppercase.c: New file.
52190         * lib/unictype/pr_paired_punctuation.c: New file.
52191         * lib/unictype/pr_paragraph_separator.c: New file.
52192         * lib/unictype/pr_pattern_syntax.c: New file.
52193         * lib/unictype/pr_pattern_white_space.c: New file.
52194         * lib/unictype/pr_private_use.c: New file.
52195         * lib/unictype/pr_punctuation.c: New file.
52196         * lib/unictype/pr_quotation_mark.c: New file.
52197         * lib/unictype/pr_radical.c: New file.
52198         * lib/unictype/pr_sentence_terminal.c: New file.
52199         * lib/unictype/pr_soft_dotted.c: New file.
52200         * lib/unictype/pr_space.c: New file.
52201         * lib/unictype/pr_terminal_punctuation.c: New file.
52202         * lib/unictype/pr_test.c: New file.
52203         * lib/unictype/pr_titlecase.c: New file.
52204         * lib/unictype/pr_unassigned_code_value.c: New file.
52205         * lib/unictype/pr_unified_ideograph.c: New file.
52206         * lib/unictype/pr_uppercase.c: New file.
52207         * lib/unictype/pr_variation_selector.c: New file.
52208         * lib/unictype/pr_white_space.c: New file.
52209         * lib/unictype/pr_xid_continue.c: New file.
52210         * lib/unictype/pr_xid_start.c: New file.
52211         * lib/unictype/pr_zero_width.c: New file.
52212         * lib/unictype/scripts.c: New file.
52213         * lib/unictype/sy_c_ident.c: New file.
52214         * lib/unictype/sy_c_whitespace.c: New file.
52215         * lib/unictype/sy_java_ident.c: New file.
52216         * lib/unictype/sy_java_whitespace.c: New file.
52217
52218         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
52219         Unicode 5.0.0.
52220         * lib/unictype/blocks.h: Likewise.
52221         * lib/unictype/categ_C.h: Likewise.
52222         * lib/unictype/categ_Cc.h: Likewise.
52223         * lib/unictype/categ_Cf.h: Likewise.
52224         * lib/unictype/categ_Cn.h: Likewise.
52225         * lib/unictype/categ_Co.h: Likewise.
52226         * lib/unictype/categ_Cs.h: Likewise.
52227         * lib/unictype/categ_L.h: Likewise.
52228         * lib/unictype/categ_Ll.h: Likewise.
52229         * lib/unictype/categ_Lm.h: Likewise.
52230         * lib/unictype/categ_Lo.h: Likewise.
52231         * lib/unictype/categ_Lt.h: Likewise.
52232         * lib/unictype/categ_Lu.h: Likewise.
52233         * lib/unictype/categ_M.h: Likewise.
52234         * lib/unictype/categ_Mc.h: Likewise.
52235         * lib/unictype/categ_Me.h: Likewise.
52236         * lib/unictype/categ_Mn.h: Likewise.
52237         * lib/unictype/categ_N.h: Likewise.
52238         * lib/unictype/categ_Nd.h: Likewise.
52239         * lib/unictype/categ_Nl.h: Likewise.
52240         * lib/unictype/categ_No.h: Likewise.
52241         * lib/unictype/categ_P.h: Likewise.
52242         * lib/unictype/categ_Pc.h: Likewise.
52243         * lib/unictype/categ_Pd.h: Likewise.
52244         * lib/unictype/categ_Pe.h: Likewise.
52245         * lib/unictype/categ_Pf.h: Likewise.
52246         * lib/unictype/categ_Pi.h: Likewise.
52247         * lib/unictype/categ_Po.h: Likewise.
52248         * lib/unictype/categ_Ps.h: Likewise.
52249         * lib/unictype/categ_S.h: Likewise.
52250         * lib/unictype/categ_Sc.h: Likewise.
52251         * lib/unictype/categ_Sk.h: Likewise.
52252         * lib/unictype/categ_Sm.h: Likewise.
52253         * lib/unictype/categ_So.h: Likewise.
52254         * lib/unictype/categ_Z.h: Likewise.
52255         * lib/unictype/categ_Zl.h: Likewise.
52256         * lib/unictype/categ_Zp.h: Likewise.
52257         * lib/unictype/categ_Zs.h: Likewise.
52258         * lib/unictype/categ_of.h: Likewise.
52259         * lib/unictype/combining.h: Likewise.
52260         * lib/unictype/ctype_alnum.h: Likewise.
52261         * lib/unictype/ctype_alpha.h: Likewise.
52262         * lib/unictype/ctype_blank.h: Likewise.
52263         * lib/unictype/ctype_cntrl.h: Likewise.
52264         * lib/unictype/ctype_digit.h: Likewise.
52265         * lib/unictype/ctype_graph.h: Likewise.
52266         * lib/unictype/ctype_lower.h: Likewise.
52267         * lib/unictype/ctype_print.h: Likewise.
52268         * lib/unictype/ctype_punct.h: Likewise.
52269         * lib/unictype/ctype_space.h: Likewise.
52270         * lib/unictype/ctype_upper.h: Likewise.
52271         * lib/unictype/ctype_xdigit.h: Likewise.
52272         * lib/unictype/decdigit.h: Likewise.
52273         * lib/unictype/digit.h: Likewise.
52274         * lib/unictype/mirror.h: Likewise.
52275         * lib/unictype/numeric.h: Likewise.
52276         * lib/unictype/pr_alphabetic.h: Likewise.
52277         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
52278         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
52279         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
52280         * lib/unictype/pr_bidi_block_separator.h: Likewise.
52281         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
52282         * lib/unictype/pr_bidi_common_separator.h: Likewise.
52283         * lib/unictype/pr_bidi_control.h: Likewise.
52284         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
52285         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
52286         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
52287         * lib/unictype/pr_bidi_european_digit.h: Likewise.
52288         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
52289         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
52290         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
52291         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
52292         * lib/unictype/pr_bidi_pdf.h: Likewise.
52293         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
52294         * lib/unictype/pr_bidi_whitespace.h: Likewise.
52295         * lib/unictype/pr_combining.h: Likewise.
52296         * lib/unictype/pr_composite.h: Likewise.
52297         * lib/unictype/pr_currency_symbol.h: Likewise.
52298         * lib/unictype/pr_dash.h: Likewise.
52299         * lib/unictype/pr_decimal_digit.h: Likewise.
52300         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
52301         * lib/unictype/pr_deprecated.h: Likewise.
52302         * lib/unictype/pr_diacritic.h: Likewise.
52303         * lib/unictype/pr_extender.h: Likewise.
52304         * lib/unictype/pr_format_control.h: Likewise.
52305         * lib/unictype/pr_grapheme_base.h: Likewise.
52306         * lib/unictype/pr_grapheme_extend.h: Likewise.
52307         * lib/unictype/pr_grapheme_link.h: Likewise.
52308         * lib/unictype/pr_hex_digit.h: Likewise.
52309         * lib/unictype/pr_hyphen.h: Likewise.
52310         * lib/unictype/pr_id_continue.h: Likewise.
52311         * lib/unictype/pr_id_start.h: Likewise.
52312         * lib/unictype/pr_ideographic.h: Likewise.
52313         * lib/unictype/pr_ids_binary_operator.h: Likewise.
52314         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
52315         * lib/unictype/pr_ignorable_control.h: Likewise.
52316         * lib/unictype/pr_iso_control.h: Likewise.
52317         * lib/unictype/pr_join_control.h: Likewise.
52318         * lib/unictype/pr_left_of_pair.h: Likewise.
52319         * lib/unictype/pr_line_separator.h: Likewise.
52320         * lib/unictype/pr_logical_order_exception.h: Likewise.
52321         * lib/unictype/pr_lowercase.h: Likewise.
52322         * lib/unictype/pr_math.h: Likewise.
52323         * lib/unictype/pr_non_break.h: Likewise.
52324         * lib/unictype/pr_not_a_character.h: Likewise.
52325         * lib/unictype/pr_numeric.h: Likewise.
52326         * lib/unictype/pr_other_alphabetic.h: Likewise.
52327         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
52328         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
52329         * lib/unictype/pr_other_id_continue.h: Likewise.
52330         * lib/unictype/pr_other_id_start.h: Likewise.
52331         * lib/unictype/pr_other_lowercase.h: Likewise.
52332         * lib/unictype/pr_other_math.h: Likewise.
52333         * lib/unictype/pr_other_uppercase.h: Likewise.
52334         * lib/unictype/pr_paired_punctuation.h: Likewise.
52335         * lib/unictype/pr_paragraph_separator.h: Likewise.
52336         * lib/unictype/pr_pattern_syntax.h: Likewise.
52337         * lib/unictype/pr_pattern_white_space.h: Likewise.
52338         * lib/unictype/pr_private_use.h: Likewise.
52339         * lib/unictype/pr_punctuation.h: Likewise.
52340         * lib/unictype/pr_quotation_mark.h: Likewise.
52341         * lib/unictype/pr_radical.h: Likewise.
52342         * lib/unictype/pr_sentence_terminal.h: Likewise.
52343         * lib/unictype/pr_soft_dotted.h: Likewise.
52344         * lib/unictype/pr_space.h: Likewise.
52345         * lib/unictype/pr_terminal_punctuation.h: Likewise.
52346         * lib/unictype/pr_titlecase.h: Likewise.
52347         * lib/unictype/pr_unassigned_code_value.h: Likewise.
52348         * lib/unictype/pr_unified_ideograph.h: Likewise.
52349         * lib/unictype/pr_uppercase.h: Likewise.
52350         * lib/unictype/pr_variation_selector.h: Likewise.
52351         * lib/unictype/pr_white_space.h: Likewise.
52352         * lib/unictype/pr_xid_continue.h: Likewise.
52353         * lib/unictype/pr_xid_start.h: Likewise.
52354         * lib/unictype/pr_zero_width.h: Likewise.
52355         * lib/unictype/scripts.h: Likewise.
52356         * lib/unictype/scripts_byname.gperf: Likewise.
52357         * lib/unictype/sy_c_ident.h: Likewise.
52358         * lib/unictype/sy_c_whitespace.h: Likewise.
52359         * lib/unictype/sy_java_ident.h: Likewise.
52360         * lib/unictype/sy_java_whitespace.h: Likewise.
52361
52362         * lib/unictype/Makefile: New file.
52363         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
52364         glibc.
52365         * lib/unictype/3level.h: New file, copied from glibc.
52366         * lib/unictype/3levelbit.h: New file.
52367
52368 2007-11-11  Bruno Haible  <bruno@clisp.org>
52369
52370         * modules/gperf: New file.
52371         * modules/iconv_open (Depends-on): Add it.
52372         (Makefile.am): Remove the GPERF definition.
52373
52374 2007-11-11  Bruno Haible  <bruno@clisp.org>
52375
52376         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
52377         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
52378
52379 2007-11-11  Bruno Haible  <bruno@clisp.org>
52380
52381         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
52382         (usage): Remove function.
52383
52384 2007-11-11  Bruno Haible  <bruno@clisp.org>
52385
52386         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
52387         gl_FUNC_CEILF_LIBS.
52388         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
52389         gl_FUNC_CEIL_LIBS.
52390         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
52391         gl_FUNC_CEILL_LIBS.
52392         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
52393         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
52394         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
52395
52396 2007-11-11  Bruno Haible  <bruno@clisp.org>
52397
52398         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
52399         roundf were declared but do not exist on functions.
52400         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
52401         roundl were declared but do not exist on functions.
52402         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
52403         HAVE_FLOORL_AND_CEILL, respectively.
52404         Needed for Sun C on Solaris 10.
52405
52406 2007-11-11  Bruno Haible  <bruno@clisp.org>
52407
52408         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
52409         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
52410         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
52411         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
52412         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
52413         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
52414         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
52415         HAVE_DECL_ROUNDF.
52416         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
52417         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
52418         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
52419         of HAVE_DECL_ROUND*.
52420         * modules/math (Makefile.am): Update.
52421
52422 2007-11-10  Bruno Haible  <bruno@clisp.org>
52423
52424         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
52425         ptrdiff_t as m4/intl.m4.
52426
52427 2007-11-10  Jim Meyering  <meyering@redhat.com>
52428
52429         Avoid link failure for the argmatch test.
52430         * tests/test-argmatch.c (usage): Define function to avoid a link
52431         failure: argmatch_die requires a usage function.
52432
52433 2007-11-09  Bruno Haible  <bruno@clisp.org>
52434
52435         * doc/functions/snprintf.texi: Mention BeOS deficiency.
52436         * doc/functions/vsnprintf.texi: Likewise.
52437         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
52438         with a size argument < 2.
52439
52440 2007-11-09  Bruno Haible  <bruno@clisp.org>
52441
52442         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
52443         buffer. Fixes an inefficiency introduced on 2007-11-03.
52444
52445 2007-11-09  Bruno Haible  <bruno@clisp.org>
52446
52447         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
52448         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
52449
52450 2007-11-08  Jim Meyering  <meyering@redhat.com>
52451
52452         Change cache variable name prefix "jm_" to "gl_" everywhere.
52453         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
52454         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
52455         * m4/uptime.m4: s/gl_/jm_/
52456
52457 2007-11-07  Bruno Haible  <bruno@clisp.org>
52458
52459         Update to GNU gettext 0.17.
52460         * m4/intl.m4: Update to GNU gettext 0.17.
52461         * m4/po.m4: Likewise.
52462         * modules/gettext (Files): Remove m4/ulonglong.m4.
52463         (configure.ac): Require gettext infrastructure from version 0.17.
52464
52465 2007-11-06  Bruno Haible  <bruno@clisp.org>
52466
52467         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
52468         symbolic values are not defined in a public header.
52469         * lib/freadable.c (freadable) [QNX]: Likewise.
52470         * lib/freadahead.c (freadahead) [QNX]: Likewise.
52471         * lib/freading.c (freading) [QNX]: Likewise.
52472         * lib/fseterr.c (fseterr) [QNX]: Likewise.
52473         * lib/fwritable.c (fwritable) [QNX]: Likewise.
52474         * lib/fwriting.c (fwriting) [QNX]: Likewise.
52475         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
52476         Reported by Alain Magloire.
52477
52478         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
52479
52480 2007-11-05  Bruno Haible  <bruno@clisp.org>
52481
52482         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
52483         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
52484         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
52485         Reported by Eric Blake.
52486
52487 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52488             Bruno Haible  <bruno@clisp.org>
52489
52490         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
52491         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
52492         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
52493         (malloc): Undefine also before including <stdlib.h>.
52494         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
52495         Needed on OSF/1 4.0.
52496
52497 2007-11-05  Jim Meyering  <meyering@redhat.com>
52498
52499         git-version-gen: sync from coreutils.
52500         * build-aux/git-version-gen: Add comments.
52501         Change the first '-' to '.' in the snapshot version string,
52502         e.g., 6.9-377-08144 -> 6.9.377-08144
52503         Remove first parameter.
52504         Don't declare a version "-dirty" merely because a time
52505         stamp has changed.
52506
52507 2007-11-04  Bruno Haible  <bruno@clisp.org>
52508
52509         * lib/lock.h: Protect all macro definitions containing an 'if'
52510         statement through a "do { ... } while (0)".
52511         * lib/tls.h: Likewise.
52512
52513 2007-11-04  Bruno Haible  <bruno@clisp.org>
52514
52515         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
52516
52517 2007-11-04  Bruno Haible  <bruno@clisp.org>
52518
52519         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
52520         * modules/fprintf-posix (Depends-on): Add nocrash.
52521         * modules/snprintf-posix (Depends-on): Likewise.
52522         * modules/sprintf-posix (Depends-on): Likewise.
52523         * modules/vasnprintf-posix (Depends-on): Likewise.
52524         * modules/vasprintf-posix (Depends-on): Likewise.
52525         * modules/vfprintf-posix (Depends-on): Likewise.
52526         * modules/vsnprintf-posix (Depends-on): Likewise.
52527         * modules/vsprintf-posix (Depends-on): Likewise.
52528         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52529         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52530         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52531         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52532         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52533         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52534         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52535
52536 2007-11-04  Bruno Haible  <bruno@clisp.org>
52537
52538         * modules/nocrash: New file.
52539         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
52540         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
52541
52542 2007-11-04  Bruno Haible  <bruno@clisp.org>
52543
52544         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
52545         precision handling.
52546         * tests/test-vasprintf-posix.c (test_function): Likewise.
52547         * tests/test-snprintf-posix.h (test_function): Likewise.
52548         * tests/test-sprintf-posix.h (test_function): Likewise.
52549
52550         Fix *printf behaviour for large precisions on mingw and BeOS.
52551         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
52552         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
52553         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
52554         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52555         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52556         gl_PRINTF_PRECISION and test its result. Invoke
52557         gl_PREREQ_VASNPRINTF_PRECISION.
52558         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52559         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52560         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52561         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52562         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52563         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52564         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52565         * doc/functions/fprintf.texi: Update.
52566         * doc/functions/printf.texi: Update.
52567         * doc/functions/snprintf.texi: Update.
52568         * doc/functions/sprintf.texi: Update.
52569         * doc/functions/vfprintf.texi: Update.
52570         * doc/functions/vprintf.texi: Update.
52571         * doc/functions/vsnprintf.texi: Update.
52572         * doc/functions/vsprintf.texi: Update.
52573
52574 2007-11-04  Bruno Haible  <bruno@clisp.org>
52575
52576         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
52577
52578 2007-11-04  Bruno Haible  <bruno@clisp.org>
52579
52580         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
52581         Reported by Sylvain Beucler <beuc@gnu.org>.
52582
52583 2007-11-03  Bruno Haible  <bruno@clisp.org>
52584
52585         * tests/test-fprintf-posix2.sh: New file.
52586         * tests/test-fprintf-posix2.c: New file.
52587         * modules/fprintf-posix-tests (Files): Add them.
52588         (TESTS): Add test-fprintf-posix2.sh.
52589         (configure.ac): Check for getrlimit and setrlimit.
52590         (check_PROGRAMS): Add test-fprintf-posix2.
52591
52592         * tests/test-printf-posix2.sh: New file.
52593         * tests/test-printf-posix2.c: New file.
52594         * modules/printf-posix-tests (Files): Add them.
52595         (TESTS): Add test-printf-posix2.sh.
52596         (configure.ac): Check for getrlimit and setrlimit.
52597         (check_PROGRAMS): Add test-printf-posix2.
52598
52599         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
52600         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
52601         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
52602         (decode_double): New function, copied from decode_long_double.
52603         (scale10_round_decimal_decoded): New function, extracted from
52604         scale10_round_decimal_long_double.
52605         (scale10_round_decimal_long_double): Use it.
52606         (scale10_round_decimal_double): New function.
52607         (floorlog10): New function.
52608         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
52609         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
52610         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52611         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52612         gl_PRINTF_ENOMEM and test its result. Invoke
52613         gl_PREREQ_VASNPRINTF_ENOMEM.
52614         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52615         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52616         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52617         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52618         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52619         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52620         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52621         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
52622         * modules/snprintf-posix (Depends-on): Likewise.
52623         * modules/sprintf-posix (Depends-on): Likewise.
52624         * modules/vasnprintf-posix (Depends-on): Likewise.
52625         * modules/vasprintf-posix (Depends-on): Likewise.
52626         * modules/vfprintf-posix (Depends-on): Likewise.
52627         * modules/vsnprintf-posix (Depends-on): Likewise.
52628         * modules/vsprintf-posix (Depends-on): Likewise.
52629         * doc/functions/fprintf.texi: Update.
52630         * doc/functions/printf.texi: Update.
52631         * doc/functions/snprintf.texi: Update.
52632         * doc/functions/sprintf.texi: Update.
52633         * doc/functions/vfprintf.texi: Update.
52634         * doc/functions/vprintf.texi: Update.
52635         * doc/functions/vsnprintf.texi: Update.
52636         * doc/functions/vsprintf.texi: Update.
52637
52638 2007-11-03  Bruno Haible  <bruno@clisp.org>
52639
52640         * modules/frexp-nolibm-tests: New file.
52641
52642         * modules/frexp-nolibm: New file.
52643         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
52644
52645 2007-11-03  Bruno Haible  <bruno@clisp.org>
52646
52647         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
52648         value is C99 compliant.
52649         Needed for OSF/1 5.1.
52650
52651 2007-11-03  Bruno Haible  <bruno@clisp.org>
52652
52653         Fix out-of-memory handling of vasnprintf.
52654         * lib/printf-parse.c: Include <errno.h>.
52655         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
52656         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
52657         is already set.
52658
52659 2007-11-02  Eric Blake  <ebb9@byu.net>
52660
52661         Fix tests on cygwin.
52662         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
52663
52664 2007-11-01  Bruno Haible  <bruno@clisp.org>
52665
52666         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
52667         warning.
52668         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
52669         needed for POSIX compatibility.
52670
52671 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
52672
52673         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
52674         for compatibility with GNU.
52675
52676 2007-11-01  Bruno Haible  <bruno@clisp.org>
52677
52678         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
52679         (putenv): Renamed from rpl_putenv. Change argument type from
52680         'const char *' to 'char *'.
52681         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
52682         of defining putenv in config.h, just set REPLACE_PUTENV.
52683         * modules/putenv (Depends-on): Add stdlib.
52684         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52685         (Include): Use <stdlib.h>.
52686         * lib/stdlib.in.h (putenv): New declaration.
52687         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
52688         REPLACE_PUTENV.
52689         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
52690         REPLACE_PUTENV.
52691         Needed for MacOS X 10.5.0.
52692         Reported by Peter O'Gorman <peter@pogma.com>.
52693
52694 2007-11-01  Jim Meyering  <meyering@redhat.com>
52695
52696         Treat an empty date string exactly like "0".
52697         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
52698         if the remaining date string (to be parsed) is empty, use "0".
52699         Reported by Mischa Molhoek and discussed in this thread:
52700         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
52701
52702 2007-10-31  Bruno Haible  <bruno@clisp.org>
52703
52704         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
52705         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
52706         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
52707         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
52708         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
52709         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
52710
52711 2007-10-31  Bruno Haible  <bruno@clisp.org>
52712
52713         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
52714         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
52715         (AC_TYPE_LONG_LONG_INT): Use it.
52716         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
52717         it as well.
52718         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
52719         to m4/longlong.m4.
52720         * modules/stdint (Files): Remove m4/ulonglong.m4.
52721         * modules/strtoull (Files): Use m4/longlong.m4 instead of
52722         m4/ulonglong.m4.
52723         * modules/strtoumax (Files): Likewise.
52724
52725 2007-10-30  Bruno Haible  <bruno@clisp.org>
52726
52727         * modules/xvasprintf-posix: New file.
52728         Suggested by Eric Blake.
52729
52730 2007-10-30  Bruno Haible  <bruno@clisp.org>
52731
52732         * modules/xprintf-posix-tests: New file.
52733         * tests/test-xprintf-posix.sh: New file.
52734         * tests/test-xprintf-posix.c: New file.
52735         * tests/test-xfprintf-posix.c: New file.
52736
52737         * modules/xprintf-posix: New file.
52738
52739 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52740
52741         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
52742         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
52743         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
52744
52745 2007-10-29  Bruno Haible  <bruno@clisp.org>
52746
52747         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
52748         contain the special marker '_cv_'.
52749         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
52750         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
52751         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
52752         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
52753         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
52754         Reported by Ralf Wildenhues.
52755
52756 2007-10-29  Bruno Haible  <bruno@clisp.org>
52757
52758         * gnulib-tool (func_import): When --lgpl is not specified, set
52759         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
52760         GPLv3.
52761         Reported by Simon Josefsson.
52762
52763 2007-10-28  Bruno Haible  <bruno@clisp.org>
52764
52765         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
52766         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
52767         HAVE_DECL_ISFINITE.
52768         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
52769         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
52770         HAVE_DECL_ISFINITE.
52771
52772 2007-10-28  Bruno Haible  <bruno@clisp.org>
52773
52774         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
52775         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
52776
52777 2007-10-28  Bruno Haible  <bruno@clisp.org>
52778
52779         Fix link errors with Sun C 5.0 on Solaris 10.
52780         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
52781         function is declared but not present in the compiler's libm.
52782         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
52783         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
52784         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
52785         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
52786         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
52787         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
52788         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
52789         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
52790         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
52791         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
52792         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
52793         HAVE_DECL_FLOORL.
52794
52795 2007-10-28  Bruno Haible  <bruno@clisp.org>
52796
52797         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
52798         gl_FUNC_FLOORL. Cache the result.
52799         (gl_FUNC_FLOORL): Use it.
52800         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
52801         gl_FUNC_CEILL. Cache the result.
52802         (gl_FUNC_CEILL): Use it.
52803
52804         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
52805         gl_FUNC_FLOOR. Cache the result.
52806         (gl_FUNC_FLOOR): Use it.
52807         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
52808         gl_FUNC_CEIL. Cache the result.
52809         (gl_FUNC_CEIL): Use it.
52810
52811         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
52812         gl_FUNC_FLOORF. Cache the result.
52813         (gl_FUNC_FLOORF): Use it.
52814         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
52815         gl_FUNC_CEILF. Cache the result.
52816         (gl_FUNC_CEILF): Use it.
52817
52818 2007-10-28  Bruno Haible  <bruno@clisp.org>
52819
52820         * gnulib-tool: Allow specifying the LGPL version number through
52821         --lgpl=2 or --lgpl=3.
52822         (func_usage): Document --lgpl with argument.
52823         Handle --lgpl=... arguments.
52824         (func_import): Recognize also gl_LGPL calls with an argument. When
52825         --lgpl=2 is used and the module's license is just LGPL, report an
52826         error. Set sed_transform_lib_file according to the lgpl variable. In
52827         the generated files, use --lgpl or gl_LGPL invocations with argument,
52828         if necessary.
52829         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
52830         an LGPv2+ license.
52831         * doc/gnulib-tool.texi (Modified imports): Update explanation of
52832         gl_LGPL macro.
52833
52834 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52835             Bruno Haible  <bruno@clisp.org>
52836
52837         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
52838         (u16_uctomb_aux): Likewise.
52839         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
52840         !HAVE_INLINE.
52841         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
52842
52843 2007-10-28  Bruno Haible  <bruno@clisp.org>
52844
52845         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
52846         Invoke AM_GETTEXT_OPTION if it exists.
52847         * modules/vasprintf: Likewise.
52848         * modules/verror: Likewise.
52849         * modules/xprintf: Likewise.
52850         * modules/xvasprintf: Likewise.
52851
52852 2007-10-27  Ben Pfaff  <blp@gnu.org>
52853
52854         * lib/math.in.h: Define isfinite macro and prototypes for
52855         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
52856         implementations.
52857         * m4/math_h.m4: New substitutions for isfinite module.
52858         * lib/isfinite.c: New file.
52859         * m4/isfinite.m4: New file.
52860         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
52861         * modules/isfinite: New file.
52862         * modules/isfinite-tests: New file.
52863         * tests/tests-isfinite.c: New file.
52864         * doc/functions/isfinite.texi: Mention isfinite module.
52865         * MODULES.html.sh: Mention new module.
52866
52867 2007-10-27  Ben Pfaff  <blp@gnu.org>
52868
52869         Ralf Wildenhues reported that Tru64 4.0D declares the round
52870         functions but does not have definitions.
52871         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
52872         cannot be found in any library, set the output variable to
52873         "missing" instead of "".
52874         * m4/round.m4: Also use our substitute if we cannot find round in
52875         any library, even if it is declared.
52876         * m4/roundf.m4: Likewise for roundf.
52877         * m4/roundl.m4: Likewise for roundl.
52878         * lib/math.in.h: Undefine roundf, round, roundl before defining
52879         their replacements, to allow for hypothetical systems where these
52880         may be defined as macros but not available in libraries.
52881
52882 2007-10-27  Bruno Haible  <bruno@clisp.org>
52883
52884         * doc/gnulib.texi: Invoke @firstparagraphindent.
52885         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
52886         changes in gnulib.
52887         (Source changes): New section.
52888
52889 2007-10-26  Bruno Haible  <bruno@clisp.org>
52890
52891         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
52892         borrowed from autoconf.
52893
52894 2007-10-26  Bruno Haible  <bruno@clisp.org>
52895
52896         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
52897         strerror returned the empty string. Needed on HP-UX 11.00.
52898
52899 2007-10-24  Micah Cowan  <micah@cowan.name>
52900
52901         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
52902         * build-aux/bootstrap: Remove support for now-unnecessary option,
52903         --cvs-user, and envvars CVS_USER, CVS_RSH.
52904
52905 2007-10-24  Jim Meyering  <meyering@redhat.com>
52906
52907         Avoid diagnostics from sha1sum when there is no cached checksum.
52908         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
52909         if the po.s1 file hasn't been created yet.
52910
52911         * build-aux/bootstrap: Sync from coreutils:
52912         2007-10-24  Jim Meyering  <meyering@redhat.com>
52913         Get gnulib from the git repository, not from an obsolete cvs one.
52914         * build-aux/bootstrap: Suggestion from Micah Cowan.
52915         2007-10-04  Jim Meyering  <jim@meyering.net>
52916         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
52917         (update_po_files): Work also when there are no .po files in po/.
52918
52919 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52920
52921         * README: Append ".git" to git and cg examples.
52922         Problem reported by Benoit Sigoure.
52923
52924 2007-10-23  Micah Cowan  <micah@cowan.name>
52925
52926         * users.txt: Add wget.
52927
52928 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52929
52930         Fix linking of some unistdio tests on FreeBSD.
52931         * modules/unistdio/u16-vsnprintf-tests
52932         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
52933         * modules/unistdio/u16-vsprintf-tests
52934         (test_u16_vsnprintf1_LDADD): Likewise.
52935         * modules/unistdio/u32-vsnprintf-tests
52936         (test_u32_vsnprintf1_LDADD): Likewise.
52937         * modules/unistdio/u32-vsprintf-tests
52938         (test_u32_vsprintf1_LDADD): Likewise.
52939         * modules/unistdio/u8-vsnprintf-tests
52940         (test_u8_vsnprintf1_LDADD): Likewise.
52941         * modules/unistdio/u8-vsprintf-tests
52942         (test_u8_vsprintf1_LDADD): Likewise.
52943         * modules/unistdio/ulc-vsnprintf-tests
52944         (test_ulc_vsnprintf1_LDADD): Likewise.
52945         * modules/unistdio/ulc-vsprintf-tests
52946         (test_ulc_vsprintf1_LDADD): Likewise.
52947
52948         Fix linking of some uniconv tests on FreeBSD.
52949         * modules/uniconv/u16-conv-from-enc-tests
52950         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
52951         * modules/uniconv/u16-conv-to-enc-tests
52952         (test_u16_conv_to_enc_LDADD): Likewise.
52953         * modules/uniconv/u16-strconv-from-enc-tests
52954         (test_u16_strconv_from_enc_LDADD): Likewise.
52955         * modules/uniconv/u16-strconv-to-enc-tests
52956         (test_u16_strconv_to_enc_LDADD): Likewise.
52957         * modules/uniconv/u32-conv-from-enc-tests
52958         (test_u32_conv_from_enc_LDADD): Likewise.
52959         * modules/uniconv/u32-conv-to-enc-tests
52960         (test_u32_conv_to_enc_LDADD): Likewise.
52961         * modules/uniconv/u32-strconv-from-enc-tests
52962         (test_u32_strconv_from_enc_LDADD): Likewise.
52963         * modules/uniconv/u32-strconv-to-enc-tests
52964         (test_u32_strconv_to_enc_LDADD): Likewise.
52965         * modules/uniconv/u8-conv-from-enc-tests
52966         (test_u8_conv_from_enc_LDADD): Likewise.
52967         * modules/uniconv/u8-conv-to-enc-tests
52968         (test_u8_conv_to_enc_LDADD): Likewise.
52969         * modules/uniconv/u8-strconv-from-enc-tests
52970         (test_u8_strconv_from_enc_LDADD): Likewise.
52971         * modules/uniconv/u8-strconv-to-enc-tests
52972         (test_u8_strconv_to_enc_LDADD): Likewise.
52973
52974 2007-10-22  Bruno Haible  <bruno@clisp.org>
52975
52976         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
52977         size.
52978
52979 2007-10-22  Eric Blake  <ebb9@byu.net>
52980
52981         Tweak x*printf documentation.
52982         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
52983         variable name and comments.
52984         Suggested by Bruno Haible.
52985
52986 2007-10-22  Bruno Haible  <bruno@clisp.org>
52987
52988         * lib/acl.c (copy_acl): Fix file name in comment.
52989
52990 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
52991
52992         Fix Tru64 problem with stdbool.h.
52993         * lib/stdbool.in.h (false, true):
52994         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
52995         Don't declare as an enum in this situation; it runs afoul of Tru64.
52996         Problem reported by Steven M. Schweda in
52997         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
52998
52999 2007-10-22  Eric Blake  <ebb9@byu.net>
53000
53001         Also wrap vf?printf.
53002         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
53003         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
53004         (xvprintf, xvfprintf): New functions.
53005
53006 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53007
53008         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
53009         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
53010
53011         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
53012         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
53013
53014 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53015
53016         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
53017         by Bruno Haible.
53018
53019 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53020
53021         * lib/getloadavg.c
53022         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
53023         Undef `sys' after including sys/table.h, for Tru64 4.0D.
53024
53025         * tests/test-i-ring.c: Work for C89.
53026
53027 2007-10-22  Bruno Haible  <bruno@clisp.org>
53028
53029         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
53030         -1u, in preprocessor expression, so that we don't test for the bug
53031         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
53032         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
53033
53034 2007-10-22  Eric Blake  <ebb9@byu.net>
53035
53036         * tests/test-yesno.sh: Silence stderr during test.
53037
53038 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53039
53040         * modules/crypto/gc-camellia: New file.
53041
53042         * m4/gc-camellia.m4: New file.
53043
53044         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
53045
53046         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
53047
53048 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53049
53050         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
53051         --help to stdout.  Reported by sms@antinode.org (Steven
53052         M. Schweda).
53053
53054 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53055
53056         * users.txt: Fix link to libksba.
53057
53058 2007-10-21  Ben Pfaff  <blp@gnu.org>
53059
53060         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
53061         round.c roundf implementation that depends on floorf and ceilf to
53062         be tested unconditionally.
53063
53064 2007-10-21  Ben Pfaff  <blp@gnu.org>
53065
53066         * m4/check-libm-func.m4: Removed.
53067         * m4/check-math-lib.m4: New file.
53068         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
53069         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
53070         definition and lack of AC_LIBOBJ([roundf]).
53071         * m4/roundl.m4: Ditto, and similarly for roundl.
53072         * modules/round: Reference new m4 file.
53073         * modules/roundf: Ditto.
53074         * modules/roundl: Ditto.
53075         * tests/test-round2.c (main): Use ROUND instead of round.
53076         Bug report from Bruno Haible.
53077
53078 2007-10-21  Bruno Haible  <bruno@clisp.org>
53079
53080         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
53081         context.
53082
53083 2007-10-21  Bruno Haible  <bruno@clisp.org>
53084
53085         * tests/test-wcwidth.c (main): Allow negative result for some control
53086         characters.
53087
53088         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
53089         Needed on OSF/1 5.1.
53090
53091 2007-10-21  Bruno Haible  <bruno@clisp.org>
53092
53093         * tests/test-floorf1.c: Include isnanf.h.
53094         (main): Use isnanf() instead of isnan().
53095         * tests/test-ceilf1.c: Include isnanf.h.
53096         (main): Use isnanf() instead of isnan().
53097         * tests/test-truncf1.c: Include isnanf.h.
53098         (main): Use isnanf() instead of isnan().
53099         * tests/test-roundf1.c: Include isnanf.h.
53100         (main): Use isnanf() instead of isnan().
53101
53102 2007-10-21  Eric Blake  <ebb9@byu.net>
53103
53104         * users.txt: Update URL for m4.
53105
53106 2007-10-21  Bruno Haible  <bruno@clisp.org>
53107
53108         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
53109
53110 2007-10-21  Bruno Haible  <bruno@clisp.org>
53111
53112         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
53113         Git's management files if the CVS files are not present.
53114
53115 2007-10-20  Bruno Haible  <bruno@clisp.org>
53116
53117         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
53118         gcc-3.4.x.
53119
53120 2007-10-20  Ben Pfaff  <blp@gnu.org>
53121
53122         * lib/math.in.h: Declare round, roundf, roundl if we are providing
53123         implementations.
53124         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
53125         * lib/round.c: New file.
53126         * lib/roundf.c: New file.
53127         * lib/roundl.c: New file.
53128         * m4/round.m4: New file.
53129         * m4/roundf.m4: New file.
53130         * m4/roundl.m4: New file.
53131         * m4/check-libm-func-m4: New file.
53132         * modules/math: Replace round, roundf, roundl related @VARS@ in
53133         math.in.h.
53134         * modules/round: New file.
53135         * modules/round-tests: New file.
53136         * modules/roundf: New file.
53137         * modules/roundf-tests: New file.
53138         * modules/roundl: New file.
53139         * modules/roundl-tests: New file.
53140         * tests/test-round1.c: New file.
53141         * tests/test-round2.c: New file.
53142         * tests/test-roundf1.c: New file.
53143         * tests/test-roundf2.c: New file.
53144         * tests/test-roundl.c: New file.
53145         * doc/functions/round.texi: Mention round module.
53146         * doc/functions/roundf.texi: Mention roundf module.
53147         * doc/functions/roundl.texi: Mention roundl module.
53148         * MODULES.html.sh: Mention new modules.
53149         Thanks to Bruno Haible for suggestions.
53150
53151 2007-10-20  Jim Meyering  <meyering@redhat.com>
53152
53153         * lib/xprintf.c: Include <config.h> unconditionally.
53154
53155         Change xprintf's license to GPL.
53156         * modules/xprintf (License): s/LGPL/GPL/, since this module
53157         depends on modules (exit and exitfail) which are GPL.
53158         Suggestion from Bruno Haible.
53159
53160         xprintf fixes.
53161         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
53162         Use a clearer diagnostic.
53163         Patch from Bruno Haible.
53164
53165 2007-10-20  Bruno Haible  <bruno@clisp.org>
53166
53167         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
53168         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
53169         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53170
53171 2007-10-20  Bruno Haible  <bruno@clisp.org>
53172
53173         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
53174         precision in the comparison result > x - 1 or similar.
53175         * tests/test-ceilf2.c (correct_result_p): Likewise.
53176         * tests/test-truncf2.c (correct_result_p): Likewise.
53177         * tests/test-trunc2.c (correct_result_p): Likewise.
53178         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53179
53180 2007-10-20  Bruno Haible  <bruno@clisp.org>
53181
53182         * modules/ceil: New file.
53183         * m4/ceil.m4: New file.
53184         * doc/functions/ceil.texi: Mention the 'ceil' module.
53185
53186 2007-10-20  Bruno Haible  <bruno@clisp.org>
53187
53188         * modules/floor: New file.
53189         * m4/floor.m4: New file.
53190         * doc/functions/floor.texi: Mention the 'floor' module.
53191
53192 2007-10-20  Bruno Haible  <bruno@clisp.org>
53193
53194         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
53195         of %a.
53196         * modules/floorf-tests (Depends-on): Likewise.
53197         * modules/truncf-tests (Depends-on): Likewise.
53198         * modules/trunc-tests (Depends-on): Likewise.
53199         Reported by Ben Pfaff.
53200
53201 2007-10-19  Jim Meyering  <meyering@redhat.com>
53202
53203         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
53204         Don't bother testing specific errno values.  Just test ferror.
53205
53206         New module: xprintf
53207         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
53208
53209 2007-10-19  Bruno Haible  <bruno@clisp.org>
53210
53211         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
53212         syntax.
53213         * modules/javaexec (Makefile.am): Likewise.
53214         * modules/relocatable-prog (Makefile.am): Likewise.
53215         Suggested by Jim Meyering.
53216
53217 2007-10-18  Bruno Haible  <bruno@clisp.org>
53218
53219         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
53220         Reported by Jim Meyering.
53221
53222 2007-10-18  Eric Blake  <ebb9@byu.net>
53223
53224         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
53225
53226 2007-10-18  Bruno Haible  <bruno@clisp.org>
53227
53228         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
53229         the format string into writable memory. Needed in Fortify conditions.
53230
53231 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
53232             Bruno Haible  <bruno@clisp.org>
53233
53234         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
53235         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
53236         * modules/trim (Depends-on): Add mbchar.
53237         (configure.ac): Add gl_FUNC_MBRTOWC.
53238         (Makefile.am): Augment lib_SOURCES.
53239
53240 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
53241
53242         Modify glob.c to use fstatat and dirfd, to simplify it.
53243         Suggested by Eric Blake.
53244         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
53245         Don't include <stdbool.h>; not used.
53246         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
53247         (link_exists_p): Simplify implementation, since we can now assume
53248         dirfd and fstatat.
53249         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
53250
53251 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53252
53253         * gnulib-tool (func_get_dependencies): Fix sed script to
53254         match only tests.
53255
53256 2007-10-17  Bruno Haible  <bruno@clisp.org>
53257
53258         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
53259         allow locale names without encoding suffix.
53260         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
53261         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53262
53263 2007-10-16  Bruno Haible  <bruno@clisp.org>
53264
53265         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
53266         * lib/getgroups.c (getgroups): Likewise.
53267         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
53268
53269 2007-10-16  Bruno Haible  <bruno@clisp.org>
53270
53271         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
53272         * modules/malloc-posix (License): Likewise.
53273         * modules/realloc-posix (License): Likewise.
53274         * modules/calloc-posix (License): Likewise.
53275         * modules/intprops (License): Change from GPL to LGPL, with
53276         Paul Eggert's approval.
53277
53278 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53279
53280         Merge glibc changes into lib/glob.c.
53281
53282         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
53283         2007-10-15 04:59:03 UTC.  Here are the changes:
53284
53285         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
53286
53287         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
53288
53289         * lib/glob.c: Add some branch prediction throughout.
53290
53291         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
53292
53293         [BZ #5103]
53294         * lib/glob.c (glob): Recognize patterns starting \/.
53295
53296         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
53297
53298         [BZ #3996]
53299         * lib/glob.c (attribute_hidden): Define if not defined.
53300         (glob): Unescape dirname, filename or username when needed and not
53301         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
53302         is NULL.  Handle unescaped [ in pattern without closing ].
53303         Don't pass GLOB_CHECK down to recursive glob for directories.
53304         (__glob_pattern_type): New function.
53305         (__glob_pattern_p): Implement using __glob_pattern_type.
53306         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
53307         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
53308         Remove unreachable code.
53309
53310         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
53311
53312         * lib/glob.c (glob_in_dir): Add some comments and asserts to
53313         explain why there are no leaks.
53314
53315         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
53316
53317         [BZ #3253]
53318         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
53319         time, rather allocate increasingly bigger arrays of pointers, if
53320         possible with alloca, if too large with malloc.
53321
53322 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53323
53324         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
53325         Problem reported by H.Merijn Brand in
53326         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
53327         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
53328         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
53329
53330 2007-10-15  Bruno Haible  <bruno@clisp.org>
53331
53332         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
53333         with explicit rpl_ prefix.
53334         * lib/fopen.c (fopen): Likewise.
53335         * lib/freopen.c (freopen): Likewise.
53336         * lib/iconv.c (iconv): Likewise.
53337         * lib/iconv_close.c (iconv_close): Likewise.
53338
53339 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53340
53341         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
53342
53343 2007-10-15  Bruno Haible  <bruno@clisp.org>
53344
53345         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
53346         <stddef.h> instead of <stdlib.h> since we only need NULL.
53347         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53348
53349 2007-10-15  Bruno Haible  <bruno@clisp.org>
53350
53351         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
53352         Replace paragraph talking about LIBOBJS.
53353         Reported by Colin Watson <cjwatson@debian.org>.
53354
53355 2007-10-15  Bruno Haible  <bruno@clisp.org>
53356
53357         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
53358         <stdlib.h> before using NULL.
53359
53360 2007-10-15  Simon Josefsson  <simon@josefsson.org>
53361
53362         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
53363         Reported by Albert Chin <china@thewrittenword.com>.
53364
53365 2007-10-14  Bruno Haible  <bruno@clisp.org>
53366
53367         * modules/iconv_open-utf-tests: New file.
53368         * tests/test-iconv-utf.c: New file.
53369
53370         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
53371         * modules/iconv_open-utf: New file.
53372         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
53373         (iconv, iconv_close): New declarations.
53374         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
53375         be defined.
53376         (iconv_open): Add special handling of conversion between UTF-8 and
53377         UTF-{16,32}{BE,LE}.
53378         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
53379         * lib/iconv_close.c: New file.
53380         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
53381         gl_FUNC_ICONV_OPEN.
53382         (gl_FUNC_ICONV_OPEN): Use it.
53383         (gl_FUNC_ICONV_OPEN_UTF): New macro.
53384         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
53385         and REPLACE_ICONV_UTF.
53386         * modules/iconv_open (Depends-on): Add c-strcase.
53387         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
53388         ICONV_CONST.
53389         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
53390
53391 2007-10-13  Albert Chin  <china@thewrittenword.com>
53392             Bruno Haible  <bruno@clisp.org>
53393
53394         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
53395         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
53396
53397 2007-10-13  Bruno Haible  <bruno@clisp.org>
53398
53399         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
53400         defined, use the ISO C99 inline semantics.
53401         * lib/argp.h (ARGP_EI): Likewise.
53402
53403 2007-10-13  Bruno Haible  <bruno@clisp.org>
53404
53405         Handle 'inline' change in gcc 4.3.0.
53406         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
53407         argp_fmtstream_write, argp_fmtstream_set_lmargin,
53408         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
53409         argp_fmtstream_point): Disable 'extern' declaration if the function
53410         definition is going to be provided inline.
53411         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
53412         semantics, not the ISO C99 inline semantics.
53413         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
53414         'extern' declaration if the function definition is going to be provided
53415         inline.
53416         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
53417         the GNU C inline semantics, not the ISO C99 inline semantics. With
53418         GCC 4.2, avoid a warning.
53419
53420 2007-10-13  Bruno Haible  <bruno@clisp.org>
53421
53422         * lib/freading.h (freading): Enable the use of __freading for
53423         glibc >= 2.7.
53424         * lib/freading.c (freading): Likewise.
53425
53426 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
53427
53428         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
53429         "warning: C99 inline functions are not supported; using GNU89".
53430
53431 2007-10-12  Bruno Haible  <bruno@clisp.org>
53432
53433         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
53434         of 2.
53435         * tests/test-ceilf2.c: New file.
53436         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
53437
53438         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
53439         * modules/ceilf-tests: Update.
53440
53441 2007-10-12  Bruno Haible  <bruno@clisp.org>
53442
53443         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
53444         of 2.
53445         * tests/test-floorf2.c: New file.
53446         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
53447
53448         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
53449         * modules/floorf-tests: Update.
53450
53451 2007-10-12  Bruno Haible  <bruno@clisp.org>
53452
53453         * tests/test-trunc2.c: New file.
53454         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
53455
53456         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
53457         * modules/trunc-tests: Update.
53458
53459 2007-10-12  Bruno Haible  <bruno@clisp.org>
53460
53461         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
53462         of 2.
53463         * tests/test-truncf2.c: New file.
53464         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
53465
53466         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
53467         * modules/truncf-tests: Update.
53468
53469 2007-10-11  Eric Blake  <ebb9@byu.net>
53470
53471         Don't claim strerror is broken on Interix.
53472         * doc/functions/strerror.texi (strerror): Known broken systems are
53473         now Solaris 8, and not Interix.
53474         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
53475         Interix on cross-compile.
53476         Reported by Martin Koeppe in
53477         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
53478
53479 2007-10-11  Bruno Haible  <bruno@clisp.org>
53480
53481         * modules/i-ring-tests: New file.
53482         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
53483         instead of assert.
53484
53485 2007-10-11  Bruno Haible  <bruno@clisp.org>
53486
53487         * modules/filenamecat-tests: New file.
53488         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
53489         * lib/filenamecat.c: Remove test code.
53490
53491 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
53492
53493         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
53494
53495         * lib/strerror.c: Include <string.h> always, to test interface,
53496         and to remove the need for the dummy.
53497         Include intprops.h to compute width instead of doing it ourselves
53498         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
53499         (strerror): Define it to return NULL if there's no system strerror.
53500         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
53501         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
53502         ancient pre-strerror Unix systems well any more.  Saying "unknown
53503         system error" is enough.
53504         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
53505         simpler strerror.c implementation.
53506         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
53507         Simplify the tests to reflect the simpler strerror implementation.
53508         * modules/strerror (Depends-on): Add intprops.
53509
53510 2007-10-09  Eric Blake  <ebb9@byu.net>
53511
53512         Silence test-fpending.
53513         * modules/fpending-tests (Files): Add wrapper script.
53514         * tests/test-fpending.sh: New file.
53515
53516 2007-10-09  Bruno Haible  <bruno@clisp.org>
53517
53518         * MODULES.html.sh (func_module): Don't create a hyperlink for
53519         function names like 'printf_frexp'.
53520         (Misc): Add crc, memxor.
53521         (Characteristics of floating types): New section.
53522         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
53523         isnanf-nolibm, signbit, trunc, truncf, truncl.
53524         (Enhancements for ISO C 99 functions): New subsection Input/output.
53525         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
53526         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
53527         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
53528         (Compatibility checks for POSIX:2001 functions): Add clock-time.
53529         (Enhancements for POSIX:2001 functions): Add chdir-long.
53530         (File system functions): Add areadlink, chdir-safer, read-file.
53531         Remove cycle-check.
53532         (File system as inode set): New section.
53533         (Date and time): Add gethrxtime.
53534         (Multithreading): Add openmp.
53535         (Internationalization functions): Add localename.
53536         (Unicode string functions): Add unistr/u*-mbsnlen.
53537         (Support for maintaining and releasing projects): Add git-version-gen.
53538         (Lone files): Remove directories.
53539
53540 2007-10-08  Ben Pfaff  <blp@gnu.org>
53541
53542         * lib/xmalloca.h: Fix typo in comment.
53543
53544 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
53545
53546         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
53547         when avoiding problems with integer overflow.  Use a portable test
53548         instead.
53549
53550 2007-10-08  Simon Josefsson  <simon@josefsson.org>
53551
53552         * modules/dummy (License): Change to LGPLv2+.
53553         * modules/float (License): Likewise
53554         * modules/realloc (License): Likewise
53555         * modules/stdlib (License): Likewise
53556
53557 2007-10-07  Bruno Haible  <bruno@clisp.org>
53558
53559         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
53560         * floor.c (TWO_MANT_DIG): Likewise.
53561         * ceil.c (TWO_MANT_DIG): Likewise.
53562         Reported by Ben Pfaff.
53563
53564 2007-10-07  Bruno Haible  <bruno@clisp.org>
53565
53566         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
53567         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
53568         * lib/frexp.c (FUNC): Likewise.
53569         * lib/printf-frexp.h (printf_frexp): Likewise.
53570         * lib/printf-frexpl.h (printf_frexpl): Likewise.
53571         * lib/printf-frexp.c (FUNC): Likewise.
53572         Suggested by Jim Meyering.
53573
53574 2007-10-07  Jim Meyering  <meyering@redhat.com>
53575
53576         Make xnanosleep's integer overflow test more robust.
53577         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
53578         so that gcc-4.3.0 doesn't optimize away this test for overflow.
53579
53580 2007-10-07  Bruno Haible  <bruno@clisp.org>
53581
53582         * NEWS: Mention the license change.
53583
53584         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
53585         abbreviations in the modules files.
53586
53587         Change copyright notice from GPLv2+ to GPLv3+.
53588         * README: Change copyright notice.
53589         * MODULES.html.sh: Likewise.
53590         * build-aux/bootstrap.conf: Likewise.
53591         * build-aux/config.libpath: Likewise.
53592         * build-aux/csharpcomp.sh.in: Likewise.
53593         * build-aux/csharpexec.sh.in: Likewise.
53594         * build-aux/install-reloc: Likewise.
53595         * build-aux/javacomp.sh.in: Likewise.
53596         * build-aux/javaexec.sh.in: Likewise.
53597         * build-aux/ldd.sh.in: Likewise.
53598         * build-aux/reloc-ldflags: Likewise.
53599         * build-aux/relocatable.sh.in: Likewise.
53600         * build-aux/x-to-1.in: Likewise.
53601         * check-module: Likewise.
53602         * config/srclistvars.sh: Likewise.
53603         * gnulib-tool: Likewise.
53604         * lib/acl-internal.h: Likewise.
53605         * lib/acl.c: Likewise.
53606         * lib/acl.h: Likewise.
53607         * lib/acl_entries.c: Likewise.
53608         * lib/areadlink-with-size.c: Likewise.
53609         * lib/areadlink.c: Likewise.
53610         * lib/areadlink.h: Likewise.
53611         * lib/argmatch.c: Likewise.
53612         * lib/argmatch.h: Likewise.
53613         * lib/argp-ba.c: Likewise.
53614         * lib/argp-eexst.c: Likewise.
53615         * lib/argp-fmtstream.c: Likewise.
53616         * lib/argp-fmtstream.h: Likewise.
53617         * lib/argp-fs-xinl.c: Likewise.
53618         * lib/argp-help.c: Likewise.
53619         * lib/argp-namefrob.h: Likewise.
53620         * lib/argp-parse.c: Likewise.
53621         * lib/argp-pin.c: Likewise.
53622         * lib/argp-pv.c: Likewise.
53623         * lib/argp-pvh.c: Likewise.
53624         * lib/argp-xinl.c: Likewise.
53625         * lib/argp.h: Likewise.
53626         * lib/at-func.c: Likewise.
53627         * lib/atanl.c: Likewise.
53628         * lib/backupfile.c: Likewise.
53629         * lib/backupfile.h: Likewise.
53630         * lib/basename.c: Likewise.
53631         * lib/binary-io.h: Likewise.
53632         * lib/byteswap.in.h: Likewise.
53633         * lib/c-stack.c: Likewise.
53634         * lib/c-stack.h: Likewise.
53635         * lib/c-strcasestr.c: Likewise.
53636         * lib/c-strcasestr.h: Likewise.
53637         * lib/c-strstr.c: Likewise.
53638         * lib/c-strstr.h: Likewise.
53639         * lib/c-strtod.c: Likewise.
53640         * lib/calloc.c: Likewise.
53641         * lib/canon-host.c: Likewise.
53642         * lib/canon-host.h: Likewise.
53643         * lib/canonicalize-lgpl.c: Likewise.
53644         * lib/canonicalize.c: Likewise.
53645         * lib/canonicalize.h: Likewise.
53646         * lib/ceil.c: Likewise.
53647         * lib/ceilf.c: Likewise.
53648         * lib/ceill.c: Likewise.
53649         * lib/chdir-long.c: Likewise.
53650         * lib/chdir-long.h: Likewise.
53651         * lib/chdir-safer.c: Likewise.
53652         * lib/chdir-safer.h: Likewise.
53653         * lib/chown.c: Likewise.
53654         * lib/classpath.c: Likewise.
53655         * lib/classpath.h: Likewise.
53656         * lib/clean-temp.c: Likewise.
53657         * lib/clean-temp.h: Likewise.
53658         * lib/cloexec.c: Likewise.
53659         * lib/close-stream.c: Likewise.
53660         * lib/closein.c: Likewise.
53661         * lib/closein.h: Likewise.
53662         * lib/closeout.c: Likewise.
53663         * lib/closeout.h: Likewise.
53664         * lib/concat-filename.c: Likewise.
53665         * lib/copy-file.c: Likewise.
53666         * lib/copy-file.h: Likewise.
53667         * lib/count-one-bits.h: Likewise.
53668         * lib/crc.c: Likewise.
53669         * lib/crc.h: Likewise.
53670         * lib/creat-safer.c: Likewise.
53671         * lib/csharpcomp.c: Likewise.
53672         * lib/csharpcomp.h: Likewise.
53673         * lib/csharpexec.c: Likewise.
53674         * lib/csharpexec.h: Likewise.
53675         * lib/cycle-check.c: Likewise.
53676         * lib/cycle-check.h: Likewise.
53677         * lib/diacrit.c: Likewise.
53678         * lib/diacrit.h: Likewise.
53679         * lib/diffseq.h: Likewise.
53680         * lib/dirchownmod.c: Likewise.
53681         * lib/dirent.in.h: Likewise.
53682         * lib/dirfd.c: Likewise.
53683         * lib/dirfd.h: Likewise.
53684         * lib/dirname.c: Likewise.
53685         * lib/dirname.h: Likewise.
53686         * lib/dummy.c: Likewise.
53687         * lib/dup-safer.c: Likewise.
53688         * lib/dup2.c: Likewise.
53689         * lib/eealloc.h: Likewise.
53690         * lib/error.c: Likewise.
53691         * lib/error.h: Likewise.
53692         * lib/euidaccess.c: Likewise.
53693         * lib/exclude.c: Likewise.
53694         * lib/exclude.h: Likewise.
53695         * lib/execute.c: Likewise.
53696         * lib/execute.h: Likewise.
53697         * lib/exitfail.c: Likewise.
53698         * lib/exitfail.h: Likewise.
53699         * lib/expl.c: Likewise.
53700         * lib/fatal-signal.c: Likewise.
53701         * lib/fatal-signal.h: Likewise.
53702         * lib/fbufmode.c: Likewise.
53703         * lib/fbufmode.h: Likewise.
53704         * lib/fchdir.c: Likewise.
53705         * lib/fchmodat.c: Likewise.
53706         * lib/fchownat.c: Likewise.
53707         * lib/fcntl--.h: Likewise.
53708         * lib/fcntl-safer.h: Likewise.
53709         * lib/fcntl.in.h: Likewise.
53710         * lib/fd-safer.c: Likewise.
53711         * lib/fflush.c: Likewise.
53712         * lib/file-has-acl.c: Likewise.
53713         * lib/file-set.c: Likewise.
53714         * lib/file-type.c: Likewise.
53715         * lib/file-type.h: Likewise.
53716         * lib/fileblocks.c: Likewise.
53717         * lib/filemode.c: Likewise.
53718         * lib/filemode.h: Likewise.
53719         * lib/filename.h: Likewise.
53720         * lib/filenamecat.c: Likewise.
53721         * lib/filenamecat.h: Likewise.
53722         * lib/findprog.c: Likewise.
53723         * lib/findprog.h: Likewise.
53724         * lib/float.in.h: Likewise.
53725         * lib/floor.c: Likewise.
53726         * lib/floorf.c: Likewise.
53727         * lib/floorl.c: Likewise.
53728         * lib/fopen-safer.c: Likewise.
53729         * lib/fopen.c: Likewise.
53730         * lib/fpending.c: Likewise.
53731         * lib/fpending.h: Likewise.
53732         * lib/fprintf.c: Likewise.
53733         * lib/fprintftime.h: Likewise.
53734         * lib/fpucw.h: Likewise.
53735         * lib/fpurge.c: Likewise.
53736         * lib/fpurge.h: Likewise.
53737         * lib/freadable.c: Likewise.
53738         * lib/freadable.h: Likewise.
53739         * lib/freadahead.c: Likewise.
53740         * lib/freadahead.h: Likewise.
53741         * lib/freading.c: Likewise.
53742         * lib/freading.h: Likewise.
53743         * lib/free.c: Likewise.
53744         * lib/freopen.c: Likewise.
53745         * lib/frexp.c: Likewise.
53746         * lib/frexpl.c: Likewise.
53747         * lib/fseek.c: Likewise.
53748         * lib/fseterr.c: Likewise.
53749         * lib/fseterr.h: Likewise.
53750         * lib/fstatat.c: Likewise.
53751         * lib/fstrcmp.c: Likewise.
53752         * lib/fstrcmp.h: Likewise.
53753         * lib/fsusage.c: Likewise.
53754         * lib/fsusage.h: Likewise.
53755         * lib/ftell.c: Likewise.
53756         * lib/ftello.c: Likewise.
53757         * lib/fts-cycle.c: Likewise.
53758         * lib/fts.c: Likewise.
53759         * lib/fts_.h: Likewise.
53760         * lib/full-read.c: Likewise.
53761         * lib/full-read.h: Likewise.
53762         * lib/full-write.c: Likewise.
53763         * lib/full-write.h: Likewise.
53764         * lib/fwritable.c: Likewise.
53765         * lib/fwritable.h: Likewise.
53766         * lib/fwriteerror.c: Likewise.
53767         * lib/fwriteerror.h: Likewise.
53768         * lib/fwriting.c: Likewise.
53769         * lib/fwriting.h: Likewise.
53770         * lib/gcd.c: Likewise.
53771         * lib/gcd.h: Likewise.
53772         * lib/getcwd.c: Likewise.
53773         * lib/getdate.h: Likewise.
53774         * lib/getdate.y: Likewise.
53775         * lib/getdomainname.c: Likewise.
53776         * lib/getdomainname.h: Likewise.
53777         * lib/getgroups.c: Likewise.
53778         * lib/gethostname.c: Likewise.
53779         * lib/gethrxtime.c: Likewise.
53780         * lib/gethrxtime.h: Likewise.
53781         * lib/getloadavg.c: Likewise.
53782         * lib/getndelim2.c: Likewise.
53783         * lib/getndelim2.h: Likewise.
53784         * lib/getnline.c: Likewise.
53785         * lib/getnline.h: Likewise.
53786         * lib/getopt.c: Likewise.
53787         * lib/getopt.in.h: Likewise.
53788         * lib/getopt1.c: Likewise.
53789         * lib/getopt_int.h: Likewise.
53790         * lib/getpagesize.h: Likewise.
53791         * lib/getsubopt.c: Likewise.
53792         * lib/gettime.c: Likewise.
53793         * lib/getugroups.c: Likewise.
53794         * lib/getugroups.h: Likewise.
53795         * lib/getusershell.c: Likewise.
53796         * lib/gl_anyavltree_list1.h: Likewise.
53797         * lib/gl_anyavltree_list2.h: Likewise.
53798         * lib/gl_anyhash_list1.h: Likewise.
53799         * lib/gl_anyhash_list2.h: Likewise.
53800         * lib/gl_anylinked_list1.h: Likewise.
53801         * lib/gl_anylinked_list2.h: Likewise.
53802         * lib/gl_anyrbtree_list1.h: Likewise.
53803         * lib/gl_anyrbtree_list2.h: Likewise.
53804         * lib/gl_anytree_list1.h: Likewise.
53805         * lib/gl_anytree_list2.h: Likewise.
53806         * lib/gl_anytree_oset.h: Likewise.
53807         * lib/gl_anytreehash_list1.h: Likewise.
53808         * lib/gl_anytreehash_list2.h: Likewise.
53809         * lib/gl_array_list.c: Likewise.
53810         * lib/gl_array_list.h: Likewise.
53811         * lib/gl_array_oset.c: Likewise.
53812         * lib/gl_array_oset.h: Likewise.
53813         * lib/gl_avltree_list.c: Likewise.
53814         * lib/gl_avltree_list.h: Likewise.
53815         * lib/gl_avltree_oset.c: Likewise.
53816         * lib/gl_avltree_oset.h: Likewise.
53817         * lib/gl_avltreehash_list.c: Likewise.
53818         * lib/gl_avltreehash_list.h: Likewise.
53819         * lib/gl_carray_list.c: Likewise.
53820         * lib/gl_carray_list.h: Likewise.
53821         * lib/gl_linked_list.c: Likewise.
53822         * lib/gl_linked_list.h: Likewise.
53823         * lib/gl_linkedhash_list.c: Likewise.
53824         * lib/gl_linkedhash_list.h: Likewise.
53825         * lib/gl_list.c: Likewise.
53826         * lib/gl_list.h: Likewise.
53827         * lib/gl_oset.c: Likewise.
53828         * lib/gl_oset.h: Likewise.
53829         * lib/gl_rbtree_list.c: Likewise.
53830         * lib/gl_rbtree_list.h: Likewise.
53831         * lib/gl_rbtree_oset.c: Likewise.
53832         * lib/gl_rbtree_oset.h: Likewise.
53833         * lib/gl_rbtreehash_list.c: Likewise.
53834         * lib/gl_rbtreehash_list.h: Likewise.
53835         * lib/gl_sublist.c: Likewise.
53836         * lib/gl_sublist.h: Likewise.
53837         * lib/group-member.c: Likewise.
53838         * lib/group-member.h: Likewise.
53839         * lib/hard-locale.c: Likewise.
53840         * lib/hard-locale.h: Likewise.
53841         * lib/hash-pjw.c: Likewise.
53842         * lib/hash-pjw.h: Likewise.
53843         * lib/hash-triple.c: Likewise.
53844         * lib/hash.c: Likewise.
53845         * lib/hash.h: Likewise.
53846         * lib/human.c: Likewise.
53847         * lib/human.h: Likewise.
53848         * lib/i-ring.c: Likewise.
53849         * lib/i-ring.h: Likewise.
53850         * lib/idcache.c: Likewise.
53851         * lib/imaxabs.c: Likewise.
53852         * lib/imaxdiv.c: Likewise.
53853         * lib/inet_pton.c: Likewise.
53854         * lib/inet_pton.h: Likewise.
53855         * lib/intprops.h: Likewise.
53856         * lib/inttostr.c: Likewise.
53857         * lib/inttostr.h: Likewise.
53858         * lib/inttypes.in.h: Likewise.
53859         * lib/isapipe.c: Likewise.
53860         * lib/isdir.c: Likewise.
53861         * lib/isnan.c: Likewise.
53862         * lib/isnan.h: Likewise.
53863         * lib/isnanf.c: Likewise.
53864         * lib/isnanf.h: Likewise.
53865         * lib/isnanl-nolibm.h: Likewise.
53866         * lib/isnanl.c: Likewise.
53867         * lib/isnanl.h: Likewise.
53868         * lib/javacomp.c: Likewise.
53869         * lib/javacomp.h: Likewise.
53870         * lib/javaexec.c: Likewise.
53871         * lib/javaexec.h: Likewise.
53872         * lib/javaversion.c: Likewise.
53873         * lib/javaversion.h: Likewise.
53874         * lib/javaversion.java: Likewise.
53875         * lib/lbrkprop.h: Likewise.
53876         * lib/lchmod.h: Likewise.
53877         * lib/lchown.c: Likewise.
53878         * lib/ldexpl.c: Likewise.
53879         * lib/linebreak.c: Likewise.
53880         * lib/linebreak.h: Likewise.
53881         * lib/linebuffer.c: Likewise.
53882         * lib/linebuffer.h: Likewise.
53883         * lib/locale.in.h: Likewise.
53884         * lib/logl.c: Likewise.
53885         * lib/long-options.c: Likewise.
53886         * lib/long-options.h: Likewise.
53887         * lib/lstat.c: Likewise.
53888         * lib/lstat.h: Likewise.
53889         * lib/math.in.h: Likewise.
53890         * lib/mbchar.c: Likewise.
53891         * lib/mbchar.h: Likewise.
53892         * lib/mbfile.h: Likewise.
53893         * lib/mbiter.h: Likewise.
53894         * lib/mbscasecmp.c: Likewise.
53895         * lib/mbscasestr.c: Likewise.
53896         * lib/mbschr.c: Likewise.
53897         * lib/mbscspn.c: Likewise.
53898         * lib/mbslen.c: Likewise.
53899         * lib/mbsncasecmp.c: Likewise.
53900         * lib/mbsnlen.c: Likewise.
53901         * lib/mbspbrk.c: Likewise.
53902         * lib/mbspcasecmp.c: Likewise.
53903         * lib/mbsrchr.c: Likewise.
53904         * lib/mbssep.c: Likewise.
53905         * lib/mbsspn.c: Likewise.
53906         * lib/mbsstr.c: Likewise.
53907         * lib/mbstok_r.c: Likewise.
53908         * lib/mbswidth.c: Likewise.
53909         * lib/mbswidth.h: Likewise.
53910         * lib/mbuiter.h: Likewise.
53911         * lib/memcasecmp.c: Likewise.
53912         * lib/memcasecmp.h: Likewise.
53913         * lib/memchr.c: Likewise.
53914         * lib/memcmp.c: Likewise.
53915         * lib/memcoll.c: Likewise.
53916         * lib/memcoll.h: Likewise.
53917         * lib/memcpy.c: Likewise.
53918         * lib/memrchr.c: Likewise.
53919         * lib/mkancesdirs.c: Likewise.
53920         * lib/mkdir-p.c: Likewise.
53921         * lib/mkdir-p.h: Likewise.
53922         * lib/mkdir.c: Likewise.
53923         * lib/mkdirat.c: Likewise.
53924         * lib/mkdtemp.c: Likewise.
53925         * lib/mkstemp-safer.c: Likewise.
53926         * lib/mkstemp.c: Likewise.
53927         * lib/modechange.c: Likewise.
53928         * lib/modechange.h: Likewise.
53929         * lib/mountlist.c: Likewise.
53930         * lib/mountlist.h: Likewise.
53931         * lib/mpsort.c: Likewise.
53932         * lib/nanosleep.c: Likewise.
53933         * lib/obstack.c: Likewise.
53934         * lib/obstack.h: Likewise.
53935         * lib/open-safer.c: Likewise.
53936         * lib/open.c: Likewise.
53937         * lib/openat-die.c: Likewise.
53938         * lib/openat-priv.h: Likewise.
53939         * lib/openat-proc.c: Likewise.
53940         * lib/openat.c: Likewise.
53941         * lib/openat.h: Likewise.
53942         * lib/pagealign_alloc.c: Likewise.
53943         * lib/pagealign_alloc.h: Likewise.
53944         * lib/physmem.c: Likewise.
53945         * lib/physmem.h: Likewise.
53946         * lib/pipe-safer.c: Likewise.
53947         * lib/pipe.c: Likewise.
53948         * lib/pipe.h: Likewise.
53949         * lib/posixtm.c: Likewise.
53950         * lib/posixtm.h: Likewise.
53951         * lib/posixver.c: Likewise.
53952         * lib/printf-frexp.c: Likewise.
53953         * lib/printf-frexp.h: Likewise.
53954         * lib/printf-frexpl.c: Likewise.
53955         * lib/printf-frexpl.h: Likewise.
53956         * lib/printf.c: Likewise.
53957         * lib/progname.c: Likewise.
53958         * lib/progname.h: Likewise.
53959         * lib/progreloc.c: Likewise.
53960         * lib/putenv.c: Likewise.
53961         * lib/quote.c: Likewise.
53962         * lib/quote.h: Likewise.
53963         * lib/quotearg.c: Likewise.
53964         * lib/quotearg.h: Likewise.
53965         * lib/raise.c: Likewise.
53966         * lib/readline.c: Likewise.
53967         * lib/readline.h: Likewise.
53968         * lib/readlink.c: Likewise.
53969         * lib/readtokens.c: Likewise.
53970         * lib/readtokens.h: Likewise.
53971         * lib/readtokens0.c: Likewise.
53972         * lib/readtokens0.h: Likewise.
53973         * lib/readutmp.c: Likewise.
53974         * lib/readutmp.h: Likewise.
53975         * lib/realloc.c: Likewise.
53976         * lib/relocwrapper.c: Likewise.
53977         * lib/rename-dest-slash.c: Likewise.
53978         * lib/rename.c: Likewise.
53979         * lib/rmdir.c: Likewise.
53980         * lib/rpmatch.c: Likewise.
53981         * lib/safe-read.c: Likewise.
53982         * lib/safe-read.h: Likewise.
53983         * lib/safe-write.c: Likewise.
53984         * lib/safe-write.h: Likewise.
53985         * lib/same-inode.h: Likewise.
53986         * lib/same.c: Likewise.
53987         * lib/same.h: Likewise.
53988         * lib/save-cwd.c: Likewise.
53989         * lib/save-cwd.h: Likewise.
53990         * lib/savedir.c: Likewise.
53991         * lib/savedir.h: Likewise.
53992         * lib/savewd.c: Likewise.
53993         * lib/savewd.h: Likewise.
53994         * lib/search.in.h: Likewise.
53995         * lib/setenv.c: Likewise.
53996         * lib/setenv.h: Likewise.
53997         * lib/settime.c: Likewise.
53998         * lib/sh-quote.c: Likewise.
53999         * lib/sh-quote.h: Likewise.
54000         * lib/sig2str.c: Likewise.
54001         * lib/sig2str.h: Likewise.
54002         * lib/signal.in.h: Likewise.
54003         * lib/signbitd.c: Likewise.
54004         * lib/signbitf.c: Likewise.
54005         * lib/signbitl.c: Likewise.
54006         * lib/sigprocmask.c: Likewise.
54007         * lib/sincosl.c: Likewise.
54008         * lib/sleep.c: Likewise.
54009         * lib/sprintf.c: Likewise.
54010         * lib/sqrtl.c: Likewise.
54011         * lib/stat-time.h: Likewise.
54012         * lib/stdio--.h: Likewise.
54013         * lib/stdio-safer.h: Likewise.
54014         * lib/stdlib--.h: Likewise.
54015         * lib/stdlib-safer.h: Likewise.
54016         * lib/stdlib.in.h: Likewise.
54017         * lib/stpcpy.c: Likewise.
54018         * lib/stpncpy.c: Likewise.
54019         * lib/strchrnul.c: Likewise.
54020         * lib/strcspn.c: Likewise.
54021         * lib/strerror.c: Likewise.
54022         * lib/strftime.c: Likewise.
54023         * lib/strftime.h: Likewise.
54024         * lib/striconveh.c: Likewise.
54025         * lib/striconveh.h: Likewise.
54026         * lib/striconveha.c: Likewise.
54027         * lib/striconveha.h: Likewise.
54028         * lib/stripslash.c: Likewise.
54029         * lib/strnlen1.c: Likewise.
54030         * lib/strnlen1.h: Likewise.
54031         * lib/strtod.c: Likewise.
54032         * lib/strtoimax.c: Likewise.
54033         * lib/strtok_r.c: Likewise.
54034         * lib/strtol.c: Likewise.
54035         * lib/strtoll.c: Likewise.
54036         * lib/strtoul.c: Likewise.
54037         * lib/strtoull.c: Likewise.
54038         * lib/sysexits.in.h: Likewise.
54039         * lib/tempname.c: Likewise.
54040         * lib/tempname.h: Likewise.
54041         * lib/timespec.h: Likewise.
54042         * lib/tls.c: Likewise.
54043         * lib/tls.h: Likewise.
54044         * lib/tmpdir.c: Likewise.
54045         * lib/tmpdir.h: Likewise.
54046         * lib/tmpfile-safer.c: Likewise.
54047         * lib/tmpfile.c: Likewise.
54048         * lib/trigl.c: Likewise.
54049         * lib/trigl.h: Likewise.
54050         * lib/trim.c: Likewise.
54051         * lib/trim.h: Likewise.
54052         * lib/trunc.c: Likewise.
54053         * lib/truncf.c: Likewise.
54054         * lib/truncl.c: Likewise.
54055         * lib/tsearch.c: Likewise.
54056         * lib/unicodeio.c: Likewise.
54057         * lib/unicodeio.h: Likewise.
54058         * lib/unistd--.h: Likewise.
54059         * lib/unistd-safer.h: Likewise.
54060         * lib/unistdio/ulc-fprintf.c: Likewise.
54061         * lib/unistdio/ulc-vfprintf.c: Likewise.
54062         * lib/unlinkdir.c: Likewise.
54063         * lib/unlinkdir.h: Likewise.
54064         * lib/unlocked-io.h: Likewise.
54065         * lib/unsetenv.c: Likewise.
54066         * lib/userspec.c: Likewise.
54067         * lib/utime.c: Likewise.
54068         * lib/utimecmp.c: Likewise.
54069         * lib/utimecmp.h: Likewise.
54070         * lib/utimens.c: Likewise.
54071         * lib/verify.h: Likewise.
54072         * lib/verror.c: Likewise.
54073         * lib/verror.h: Likewise.
54074         * lib/version-etc-fsf.c: Likewise.
54075         * lib/version-etc.c: Likewise.
54076         * lib/version-etc.h: Likewise.
54077         * lib/vfprintf.c: Likewise.
54078         * lib/vprintf.c: Likewise.
54079         * lib/vsprintf.c: Likewise.
54080         * lib/w32spawn.h: Likewise.
54081         * lib/wait-process.c: Likewise.
54082         * lib/wait-process.h: Likewise.
54083         * lib/wcwidth.c: Likewise.
54084         * lib/write-any-file.c: Likewise.
54085         * lib/xalloc-die.c: Likewise.
54086         * lib/xalloc.h: Likewise.
54087         * lib/xasprintf.c: Likewise.
54088         * lib/xgetcwd.c: Likewise.
54089         * lib/xgetcwd.h: Likewise.
54090         * lib/xgetdomainname.c: Likewise.
54091         * lib/xgetdomainname.h: Likewise.
54092         * lib/xgethostname.c: Likewise.
54093         * lib/xmalloc.c: Likewise.
54094         * lib/xmalloca.c: Likewise.
54095         * lib/xmalloca.h: Likewise.
54096         * lib/xmemcoll.c: Likewise.
54097         * lib/xnanosleep.c: Likewise.
54098         * lib/xreadlink.c: Likewise.
54099         * lib/xreadlink.h: Likewise.
54100         * lib/xsetenv.c: Likewise.
54101         * lib/xsetenv.h: Likewise.
54102         * lib/xstriconv.c: Likewise.
54103         * lib/xstriconv.h: Likewise.
54104         * lib/xstrndup.c: Likewise.
54105         * lib/xstrndup.h: Likewise.
54106         * lib/xstrtod.c: Likewise.
54107         * lib/xstrtod.h: Likewise.
54108         * lib/xstrtol-error.c: Likewise.
54109         * lib/xstrtol.c: Likewise.
54110         * lib/xstrtol.h: Likewise.
54111         * lib/xtime.h: Likewise.
54112         * lib/xvasprintf.c: Likewise.
54113         * lib/xvasprintf.h: Likewise.
54114         * lib/yesno.c: Likewise.
54115         * lib/yesno.h: Likewise.
54116         * posix-modules: Likewise.
54117         * tests/test-alloca-opt.c: Likewise.
54118         * tests/test-arcfour.c: Likewise.
54119         * tests/test-arctwo.c: Likewise.
54120         * tests/test-argmatch.c: Likewise.
54121         * tests/test-argp-2.sh: Likewise.
54122         * tests/test-argp.c: Likewise.
54123         * tests/test-arpa_inet.c: Likewise.
54124         * tests/test-array_list.c: Likewise.
54125         * tests/test-array_oset.c: Likewise.
54126         * tests/test-atexit.c: Likewise.
54127         * tests/test-avltree_list.c: Likewise.
54128         * tests/test-avltree_oset.c: Likewise.
54129         * tests/test-avltreehash_list.c: Likewise.
54130         * tests/test-base64.c: Likewise.
54131         * tests/test-binary-io.c: Likewise.
54132         * tests/test-byteswap.c: Likewise.
54133         * tests/test-c-ctype.c: Likewise.
54134         * tests/test-c-strcasecmp.c: Likewise.
54135         * tests/test-c-strcasestr.c: Likewise.
54136         * tests/test-c-strncasecmp.c: Likewise.
54137         * tests/test-c-strstr.c: Likewise.
54138         * tests/test-canonicalize-lgpl.c: Likewise.
54139         * tests/test-canonicalize.c: Likewise.
54140         * tests/test-carray_list.c: Likewise.
54141         * tests/test-ceilf.c: Likewise.
54142         * tests/test-ceill.c: Likewise.
54143         * tests/test-count-one-bits.c: Likewise.
54144         * tests/test-crc.c: Likewise.
54145         * tests/test-dirname.c: Likewise.
54146         * tests/test-fbufmode.c: Likewise.
54147         * tests/test-fcntl.c: Likewise.
54148         * tests/test-fflush.c: Likewise.
54149         * tests/test-floorf.c: Likewise.
54150         * tests/test-floorl.c: Likewise.
54151         * tests/test-fopen.c: Likewise.
54152         * tests/test-fprintf-posix.c: Likewise.
54153         * tests/test-fprintf-posix.h: Likewise.
54154         * tests/test-fpurge.c: Likewise.
54155         * tests/test-freadable.c: Likewise.
54156         * tests/test-freadahead.c: Likewise.
54157         * tests/test-freading.c: Likewise.
54158         * tests/test-freopen.c: Likewise.
54159         * tests/test-frexp.c: Likewise.
54160         * tests/test-frexpl.c: Likewise.
54161         * tests/test-fseek.c: Likewise.
54162         * tests/test-fseeko.c: Likewise.
54163         * tests/test-fseterr.c: Likewise.
54164         * tests/test-fstrcmp.c: Likewise.
54165         * tests/test-ftell.c: Likewise.
54166         * tests/test-ftello.c: Likewise.
54167         * tests/test-fwritable.c: Likewise.
54168         * tests/test-fwriting.c: Likewise.
54169         * tests/test-getaddrinfo.c: Likewise.
54170         * tests/test-getpass.c: Likewise.
54171         * tests/test-gettimeofday.c: Likewise.
54172         * tests/test-hmac-md5.c: Likewise.
54173         * tests/test-hmac-sha1.c: Likewise.
54174         * tests/test-iconv.c: Likewise.
54175         * tests/test-iconvme.c: Likewise.
54176         * tests/test-inttypes.c: Likewise.
54177         * tests/test-isnan.c: Likewise.
54178         * tests/test-isnanf.c: Likewise.
54179         * tests/test-isnanl-nolibm.c: Likewise.
54180         * tests/test-isnanl.c: Likewise.
54181         * tests/test-isnanl.h: Likewise.
54182         * tests/test-ldexpl.c: Likewise.
54183         * tests/test-linked_list.c: Likewise.
54184         * tests/test-linkedhash_list.c: Likewise.
54185         * tests/test-locale.c: Likewise.
54186         * tests/test-localename.c: Likewise.
54187         * tests/test-lock.c: Likewise.
54188         * tests/test-lseek.c: Likewise.
54189         * tests/test-malloca.c: Likewise.
54190         * tests/test-math.c: Likewise.
54191         * tests/test-mbscasecmp.c: Likewise.
54192         * tests/test-mbscasestr1.c: Likewise.
54193         * tests/test-mbscasestr2.c: Likewise.
54194         * tests/test-mbscasestr3.c: Likewise.
54195         * tests/test-mbscasestr4.c: Likewise.
54196         * tests/test-mbschr.c: Likewise.
54197         * tests/test-mbscspn.c: Likewise.
54198         * tests/test-mbsncasecmp.c: Likewise.
54199         * tests/test-mbspbrk.c: Likewise.
54200         * tests/test-mbspcasecmp.c: Likewise.
54201         * tests/test-mbsrchr.c: Likewise.
54202         * tests/test-mbsspn.c: Likewise.
54203         * tests/test-mbsstr1.c: Likewise.
54204         * tests/test-mbsstr2.c: Likewise.
54205         * tests/test-mbsstr3.c: Likewise.
54206         * tests/test-md5.c: Likewise.
54207         * tests/test-memmem.c: Likewise.
54208         * tests/test-netinet_in.c: Likewise.
54209         * tests/test-open.c: Likewise.
54210         * tests/test-printf-frexp.c: Likewise.
54211         * tests/test-printf-frexpl.c: Likewise.
54212         * tests/test-printf-posix.c: Likewise.
54213         * tests/test-printf-posix.h: Likewise.
54214         * tests/test-rbtree_list.c: Likewise.
54215         * tests/test-rbtree_oset.c: Likewise.
54216         * tests/test-rbtreehash_list.c: Likewise.
54217         * tests/test-read-file.c: Likewise.
54218         * tests/test-rijndael.c: Likewise.
54219         * tests/test-search.c: Likewise.
54220         * tests/test-signbit.c: Likewise.
54221         * tests/test-sleep.c: Likewise.
54222         * tests/test-snprintf-posix.c: Likewise.
54223         * tests/test-snprintf-posix.h: Likewise.
54224         * tests/test-snprintf.c: Likewise.
54225         * tests/test-sprintf-posix.c: Likewise.
54226         * tests/test-sprintf-posix.h: Likewise.
54227         * tests/test-stat-time.c: Likewise.
54228         * tests/test-stdbool.c: Likewise.
54229         * tests/test-stdint.c: Likewise.
54230         * tests/test-stdio.c: Likewise.
54231         * tests/test-stdlib.c: Likewise.
54232         * tests/test-stpncpy.c: Likewise.
54233         * tests/test-strcasestr.c: Likewise.
54234         * tests/test-striconv.c: Likewise.
54235         * tests/test-striconveh.c: Likewise.
54236         * tests/test-striconveha.c: Likewise.
54237         * tests/test-string.c: Likewise.
54238         * tests/test-sys_select.c: Likewise.
54239         * tests/test-sys_socket.c: Likewise.
54240         * tests/test-sys_stat.c: Likewise.
54241         * tests/test-sys_time.c: Likewise.
54242         * tests/test-sysexits.c: Likewise.
54243         * tests/test-time.c: Likewise.
54244         * tests/test-tls.c: Likewise.
54245         * tests/test-trunc.c: Likewise.
54246         * tests/test-truncf.c: Likewise.
54247         * tests/test-truncl.c: Likewise.
54248         * tests/test-unistd.c: Likewise.
54249         * tests/test-vasnprintf-posix.c: Likewise.
54250         * tests/test-vasnprintf-posix2.c: Likewise.
54251         * tests/test-vasnprintf.c: Likewise.
54252         * tests/test-vasprintf-posix.c: Likewise.
54253         * tests/test-vasprintf.c: Likewise.
54254         * tests/test-verify.c: Likewise.
54255         * tests/test-vfprintf-posix.c: Likewise.
54256         * tests/test-vprintf-posix.c: Likewise.
54257         * tests/test-vsnprintf-posix.c: Likewise.
54258         * tests/test-vsnprintf.c: Likewise.
54259         * tests/test-vsprintf-posix.c: Likewise.
54260         * tests/test-wchar.c: Likewise.
54261         * tests/test-wctype.c: Likewise.
54262         * tests/test-wcwidth.c: Likewise.
54263         * tests/test-xstrtol.c: Likewise.
54264         * tests/test-xvasprintf.c: Likewise.
54265         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
54266         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
54267         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
54268         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
54269         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
54270         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
54271         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
54272         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
54273         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
54274         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
54275         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
54276         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
54277         * tests/uniname/test-uninames.c: Likewise.
54278         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
54279         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
54280         * tests/unistdio/test-u16-printf1.h: Likewise.
54281         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
54282         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
54283         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
54284         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
54285         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
54286         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
54287         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
54288         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
54289         * tests/unistdio/test-u32-printf1.h: Likewise.
54290         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
54291         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
54292         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
54293         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
54294         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
54295         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
54296         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
54297         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
54298         * tests/unistdio/test-u8-printf1.h: Likewise.
54299         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
54300         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
54301         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
54302         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
54303         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
54304         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
54305         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
54306         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
54307         * tests/unistdio/test-ulc-printf1.h: Likewise.
54308         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
54309         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
54310         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
54311         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
54312         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
54313         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
54314         * tests/uniwidth/test-u16-strwidth.c: Likewise.
54315         * tests/uniwidth/test-u16-width.c: Likewise.
54316         * tests/uniwidth/test-u32-strwidth.c: Likewise.
54317         * tests/uniwidth/test-u32-width.c: Likewise.
54318         * tests/uniwidth/test-u8-strwidth.c: Likewise.
54319         * tests/uniwidth/test-u8-width.c: Likewise.
54320         * tests/uniwidth/test-uc_width.c: Likewise.
54321         * config/srclist-update: Likewise.
54322         (fixlicense): Update to GPLv3+.
54323
54324         Change copyright notice from LGPLv2.1+ to LGPLv3+.
54325         * tests/test-tsearch.c: Change copyright notice.
54326
54327         Change copyright notice from LGPLv2.0+ to LGPLv3+.
54328         * lib/c-strcaseeq.h: Change copyright notice.
54329         * lib/streq.h: Likewise.
54330         * lib/uniconv.h: Likewise.
54331         * lib/uniconv/u-conv-from-enc.h: Likewise.
54332         * lib/uniconv/u-conv-to-enc.h: Likewise.
54333         * lib/uniconv/u-strconv-from-enc.h: Likewise.
54334         * lib/uniconv/u-strconv-to-enc.h: Likewise.
54335         * lib/uniconv/u16-conv-from-enc.c: Likewise.
54336         * lib/uniconv/u16-conv-to-enc.c: Likewise.
54337         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
54338         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
54339         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
54340         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
54341         * lib/uniconv/u32-conv-from-enc.c: Likewise.
54342         * lib/uniconv/u32-conv-to-enc.c: Likewise.
54343         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
54344         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
54345         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
54346         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
54347         * lib/uniconv/u8-conv-from-enc.c: Likewise.
54348         * lib/uniconv/u8-conv-to-enc.c: Likewise.
54349         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
54350         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
54351         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
54352         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
54353         * lib/uniname.h: Likewise.
54354         * lib/uniname/uniname.c: Likewise.
54355         * lib/unistdio.h: Likewise.
54356         * lib/unistdio/u-asnprintf.h: Likewise.
54357         * lib/unistdio/u-asprintf.h: Likewise.
54358         * lib/unistdio/u-printf-args.c: Likewise.
54359         * lib/unistdio/u-printf-args.h: Likewise.
54360         * lib/unistdio/u-printf-parse.h: Likewise.
54361         * lib/unistdio/u-snprintf.h: Likewise.
54362         * lib/unistdio/u-sprintf.h: Likewise.
54363         * lib/unistdio/u-vasprintf.h: Likewise.
54364         * lib/unistdio/u-vsnprintf.h: Likewise.
54365         * lib/unistdio/u-vsprintf.h: Likewise.
54366         * lib/unistdio/u16-asnprintf.c: Likewise.
54367         * lib/unistdio/u16-asprintf.c: Likewise.
54368         * lib/unistdio/u16-printf-parse.c: Likewise.
54369         * lib/unistdio/u16-snprintf.c: Likewise.
54370         * lib/unistdio/u16-sprintf.c: Likewise.
54371         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
54372         * lib/unistdio/u16-u16-asprintf.c: Likewise.
54373         * lib/unistdio/u16-u16-snprintf.c: Likewise.
54374         * lib/unistdio/u16-u16-sprintf.c: Likewise.
54375         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
54376         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
54377         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
54378         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
54379         * lib/unistdio/u16-vasnprintf.c: Likewise.
54380         * lib/unistdio/u16-vasprintf.c: Likewise.
54381         * lib/unistdio/u16-vsnprintf.c: Likewise.
54382         * lib/unistdio/u16-vsprintf.c: Likewise.
54383         * lib/unistdio/u32-asnprintf.c: Likewise.
54384         * lib/unistdio/u32-asprintf.c: Likewise.
54385         * lib/unistdio/u32-printf-parse.c: Likewise.
54386         * lib/unistdio/u32-snprintf.c: Likewise.
54387         * lib/unistdio/u32-sprintf.c: Likewise.
54388         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
54389         * lib/unistdio/u32-u32-asprintf.c: Likewise.
54390         * lib/unistdio/u32-u32-snprintf.c: Likewise.
54391         * lib/unistdio/u32-u32-sprintf.c: Likewise.
54392         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
54393         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
54394         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
54395         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
54396         * lib/unistdio/u32-vasnprintf.c: Likewise.
54397         * lib/unistdio/u32-vasprintf.c: Likewise.
54398         * lib/unistdio/u32-vsnprintf.c: Likewise.
54399         * lib/unistdio/u32-vsprintf.c: Likewise.
54400         * lib/unistdio/u8-asnprintf.c: Likewise.
54401         * lib/unistdio/u8-asprintf.c: Likewise.
54402         * lib/unistdio/u8-printf-parse.c: Likewise.
54403         * lib/unistdio/u8-snprintf.c: Likewise.
54404         * lib/unistdio/u8-sprintf.c: Likewise.
54405         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
54406         * lib/unistdio/u8-u8-asprintf.c: Likewise.
54407         * lib/unistdio/u8-u8-snprintf.c: Likewise.
54408         * lib/unistdio/u8-u8-sprintf.c: Likewise.
54409         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
54410         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
54411         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
54412         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
54413         * lib/unistdio/u8-vasnprintf.c: Likewise.
54414         * lib/unistdio/u8-vasprintf.c: Likewise.
54415         * lib/unistdio/u8-vsnprintf.c: Likewise.
54416         * lib/unistdio/u8-vsprintf.c: Likewise.
54417         * lib/unistdio/ulc-asnprintf.c: Likewise.
54418         * lib/unistdio/ulc-asprintf.c: Likewise.
54419         * lib/unistdio/ulc-printf-parse.c: Likewise.
54420         * lib/unistdio/ulc-snprintf.c: Likewise.
54421         * lib/unistdio/ulc-sprintf.c: Likewise.
54422         * lib/unistdio/ulc-vasnprintf.c: Likewise.
54423         * lib/unistdio/ulc-vasprintf.c: Likewise.
54424         * lib/unistdio/ulc-vsnprintf.c: Likewise.
54425         * lib/unistdio/ulc-vsprintf.c: Likewise.
54426         * lib/unistr.h: Likewise.
54427         * lib/unistr/u-cpy-alloc.h: Likewise.
54428         * lib/unistr/u-cpy.h: Likewise.
54429         * lib/unistr/u-endswith.h: Likewise.
54430         * lib/unistr/u-move.h: Likewise.
54431         * lib/unistr/u-set.h: Likewise.
54432         * lib/unistr/u-startswith.h: Likewise.
54433         * lib/unistr/u-stpcpy.h: Likewise.
54434         * lib/unistr/u-stpncpy.h: Likewise.
54435         * lib/unistr/u-strcat.h: Likewise.
54436         * lib/unistr/u-strcpy.h: Likewise.
54437         * lib/unistr/u-strcspn.h: Likewise.
54438         * lib/unistr/u-strdup.h: Likewise.
54439         * lib/unistr/u-strlen.h: Likewise.
54440         * lib/unistr/u-strncat.h: Likewise.
54441         * lib/unistr/u-strncpy.h: Likewise.
54442         * lib/unistr/u-strnlen.h: Likewise.
54443         * lib/unistr/u-strpbrk.h: Likewise.
54444         * lib/unistr/u-strspn.h: Likewise.
54445         * lib/unistr/u-strstr.h: Likewise.
54446         * lib/unistr/u-strtok.h: Likewise.
54447         * lib/unistr/u16-check.c: Likewise.
54448         * lib/unistr/u16-chr.c: Likewise.
54449         * lib/unistr/u16-cmp.c: Likewise.
54450         * lib/unistr/u16-cpy-alloc.c: Likewise.
54451         * lib/unistr/u16-cpy.c: Likewise.
54452         * lib/unistr/u16-endswith.c: Likewise.
54453         * lib/unistr/u16-mblen.c: Likewise.
54454         * lib/unistr/u16-mbsnlen.c: Likewise.
54455         * lib/unistr/u16-mbtouc-aux.c: Likewise.
54456         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
54457         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
54458         * lib/unistr/u16-mbtouc.c: Likewise.
54459         * lib/unistr/u16-mbtoucr.c: Likewise.
54460         * lib/unistr/u16-move.c: Likewise.
54461         * lib/unistr/u16-next.c: Likewise.
54462         * lib/unistr/u16-prev.c: Likewise.
54463         * lib/unistr/u16-set.c: Likewise.
54464         * lib/unistr/u16-startswith.c: Likewise.
54465         * lib/unistr/u16-stpcpy.c: Likewise.
54466         * lib/unistr/u16-stpncpy.c: Likewise.
54467         * lib/unistr/u16-strcat.c: Likewise.
54468         * lib/unistr/u16-strchr.c: Likewise.
54469         * lib/unistr/u16-strcmp.c: Likewise.
54470         * lib/unistr/u16-strcpy.c: Likewise.
54471         * lib/unistr/u16-strcspn.c: Likewise.
54472         * lib/unistr/u16-strdup.c: Likewise.
54473         * lib/unistr/u16-strlen.c: Likewise.
54474         * lib/unistr/u16-strmblen.c: Likewise.
54475         * lib/unistr/u16-strmbtouc.c: Likewise.
54476         * lib/unistr/u16-strncat.c: Likewise.
54477         * lib/unistr/u16-strncmp.c: Likewise.
54478         * lib/unistr/u16-strncpy.c: Likewise.
54479         * lib/unistr/u16-strnlen.c: Likewise.
54480         * lib/unistr/u16-strpbrk.c: Likewise.
54481         * lib/unistr/u16-strrchr.c: Likewise.
54482         * lib/unistr/u16-strspn.c: Likewise.
54483         * lib/unistr/u16-strstr.c: Likewise.
54484         * lib/unistr/u16-strtok.c: Likewise.
54485         * lib/unistr/u16-to-u32.c: Likewise.
54486         * lib/unistr/u16-to-u8.c: Likewise.
54487         * lib/unistr/u16-uctomb-aux.c: Likewise.
54488         * lib/unistr/u16-uctomb.c: Likewise.
54489         * lib/unistr/u32-check.c: Likewise.
54490         * lib/unistr/u32-chr.c: Likewise.
54491         * lib/unistr/u32-cmp.c: Likewise.
54492         * lib/unistr/u32-cpy-alloc.c: Likewise.
54493         * lib/unistr/u32-cpy.c: Likewise.
54494         * lib/unistr/u32-endswith.c: Likewise.
54495         * lib/unistr/u32-mblen.c: Likewise.
54496         * lib/unistr/u32-mbsnlen.c: Likewise.
54497         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
54498         * lib/unistr/u32-mbtouc.c: Likewise.
54499         * lib/unistr/u32-mbtoucr.c: Likewise.
54500         * lib/unistr/u32-move.c: Likewise.
54501         * lib/unistr/u32-next.c: Likewise.
54502         * lib/unistr/u32-prev.c: Likewise.
54503         * lib/unistr/u32-set.c: Likewise.
54504         * lib/unistr/u32-startswith.c: Likewise.
54505         * lib/unistr/u32-stpcpy.c: Likewise.
54506         * lib/unistr/u32-stpncpy.c: Likewise.
54507         * lib/unistr/u32-strcat.c: Likewise.
54508         * lib/unistr/u32-strchr.c: Likewise.
54509         * lib/unistr/u32-strcmp.c: Likewise.
54510         * lib/unistr/u32-strcpy.c: Likewise.
54511         * lib/unistr/u32-strcspn.c: Likewise.
54512         * lib/unistr/u32-strdup.c: Likewise.
54513         * lib/unistr/u32-strlen.c: Likewise.
54514         * lib/unistr/u32-strmblen.c: Likewise.
54515         * lib/unistr/u32-strmbtouc.c: Likewise.
54516         * lib/unistr/u32-strncat.c: Likewise.
54517         * lib/unistr/u32-strncmp.c: Likewise.
54518         * lib/unistr/u32-strncpy.c: Likewise.
54519         * lib/unistr/u32-strnlen.c: Likewise.
54520         * lib/unistr/u32-strpbrk.c: Likewise.
54521         * lib/unistr/u32-strrchr.c: Likewise.
54522         * lib/unistr/u32-strspn.c: Likewise.
54523         * lib/unistr/u32-strstr.c: Likewise.
54524         * lib/unistr/u32-strtok.c: Likewise.
54525         * lib/unistr/u32-to-u16.c: Likewise.
54526         * lib/unistr/u32-to-u8.c: Likewise.
54527         * lib/unistr/u32-uctomb.c: Likewise.
54528         * lib/unistr/u8-check.c: Likewise.
54529         * lib/unistr/u8-chr.c: Likewise.
54530         * lib/unistr/u8-cmp.c: Likewise.
54531         * lib/unistr/u8-cpy-alloc.c: Likewise.
54532         * lib/unistr/u8-cpy.c: Likewise.
54533         * lib/unistr/u8-endswith.c: Likewise.
54534         * lib/unistr/u8-mblen.c: Likewise.
54535         * lib/unistr/u8-mbsnlen.c: Likewise.
54536         * lib/unistr/u8-mbtouc-aux.c: Likewise.
54537         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
54538         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
54539         * lib/unistr/u8-mbtouc.c: Likewise.
54540         * lib/unistr/u8-mbtoucr.c: Likewise.
54541         * lib/unistr/u8-move.c: Likewise.
54542         * lib/unistr/u8-next.c: Likewise.
54543         * lib/unistr/u8-prev.c: Likewise.
54544         * lib/unistr/u8-set.c: Likewise.
54545         * lib/unistr/u8-startswith.c: Likewise.
54546         * lib/unistr/u8-stpcpy.c: Likewise.
54547         * lib/unistr/u8-stpncpy.c: Likewise.
54548         * lib/unistr/u8-strcat.c: Likewise.
54549         * lib/unistr/u8-strchr.c: Likewise.
54550         * lib/unistr/u8-strcmp.c: Likewise.
54551         * lib/unistr/u8-strcpy.c: Likewise.
54552         * lib/unistr/u8-strcspn.c: Likewise.
54553         * lib/unistr/u8-strdup.c: Likewise.
54554         * lib/unistr/u8-strlen.c: Likewise.
54555         * lib/unistr/u8-strmblen.c: Likewise.
54556         * lib/unistr/u8-strmbtouc.c: Likewise.
54557         * lib/unistr/u8-strncat.c: Likewise.
54558         * lib/unistr/u8-strncmp.c: Likewise.
54559         * lib/unistr/u8-strncpy.c: Likewise.
54560         * lib/unistr/u8-strnlen.c: Likewise.
54561         * lib/unistr/u8-strpbrk.c: Likewise.
54562         * lib/unistr/u8-strrchr.c: Likewise.
54563         * lib/unistr/u8-strspn.c: Likewise.
54564         * lib/unistr/u8-strstr.c: Likewise.
54565         * lib/unistr/u8-strtok.c: Likewise.
54566         * lib/unistr/u8-to-u16.c: Likewise.
54567         * lib/unistr/u8-to-u32.c: Likewise.
54568         * lib/unistr/u8-uctomb-aux.c: Likewise.
54569         * lib/unistr/u8-uctomb.c: Likewise.
54570         * lib/unitypes.h: Likewise.
54571         * lib/uniwidth.h: Likewise.
54572         * lib/uniwidth/cjk.h: Likewise.
54573         * lib/uniwidth/u16-strwidth.c: Likewise.
54574         * lib/uniwidth/u16-width.c: Likewise.
54575         * lib/uniwidth/u32-strwidth.c: Likewise.
54576         * lib/uniwidth/u32-width.c: Likewise.
54577         * lib/uniwidth/u8-strwidth.c: Likewise.
54578         * lib/uniwidth/u8-width.c: Likewise.
54579         * lib/uniwidth/width.c: Likewise.
54580
54581 2007-10-07  Bruno Haible  <bruno@clisp.org>
54582
54583         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
54584         The file is still under LGPL (see modules/inttypes).
54585
54586 2007-10-06  Bruno Haible  <bruno@clisp.org>
54587
54588         * modules/trunc (Dependencies): Add 'extensions'.
54589         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
54590         Reported by Ben Pfaff <blp@gnu.org>.
54591
54592 2007-10-06  Bruno Haible  <bruno@clisp.org>
54593
54594         * modules/freopen-tests: New file.
54595         * tests/test-freopen.c: New file.
54596
54597         * modules/fopen-tests: New file.
54598         * tests/test-fopen.c: New file.
54599
54600         * modules/fopen: New file.
54601         * lib/fopen.c: New file.
54602         * m4/fopen.m4: New file.
54603         * modules/freopen: New file.
54604         * lib/freopen.c: New file.
54605         * m4/freopen.m4: New file.
54606         * lib/stdio.in.h (fopen, freopen): New declarations.
54607         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
54608         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
54609         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
54610         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
54611         * doc/functions/fopen.texi: Mention the 'fopen' module.
54612         * doc/functions/freopen.texi: Mention the 'freopen' module.
54613
54614 2007-10-06  Bruno Haible  <bruno@clisp.org>
54615
54616         * modules/open-tests: New file.
54617         * tests/test-open.c: New file.
54618
54619         * modules/open: New file.
54620         * lib/open.c: New file.
54621         * m4/open.m4: New file.
54622         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
54623         lib/open.c does.
54624         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
54625         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
54626         macros.
54627         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
54628         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
54629         REPLACE_OPEN.
54630         * doc/functions/open.texi: Mention the 'open' module.
54631
54632 2007-10-04  Bruno Haible  <bruno@clisp.org>
54633
54634         * modules/ceill-tests: New file.
54635         * tests/test-ceill.c: New file.
54636
54637         * modules/ceill: New file.
54638         * lib/ceill.c: Replace entire file.
54639         * m4/ceill.m4: New file.
54640         * lib/math.in.h (ceill): Replace declaration.
54641         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
54642         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
54643         * doc/functions/ceill.texi: Mention the 'ceill' module.
54644         * modules/mathl (Files): Remove lib/ceill.c.
54645         (Depends-on): Add ceill.
54646
54647 2007-10-04  Bruno Haible  <bruno@clisp.org>
54648
54649         * modules/ceilf-tests: New file.
54650         * tests/test-ceilf.c: New file.
54651
54652         * modules/ceilf: New file.
54653         * lib/ceil.c: New file.
54654         * lib/ceilf.c: New file.
54655         * m4/ceilf.m4: New file.
54656         * lib/math.in.h (ceilf): New declaration.
54657         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
54658         HAVE_DECL_CEILF.
54659         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
54660         HAVE_DECL_CEILF.
54661         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
54662
54663 2007-10-04  Bruno Haible  <bruno@clisp.org>
54664
54665         * modules/floorl-tests: New file.
54666         * tests/test-floorl.c: New file.
54667
54668         * modules/floorl: New file.
54669         * lib/floorl.c: Replace entire file.
54670         * m4/floorl.m4: New file.
54671         * lib/math.in.h (floorl): Replace declaration.
54672         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
54673         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
54674         * doc/functions/floorl.texi: Mention the 'floorl' module.
54675         * modules/mathl (Files): Remove lib/floorl.c.
54676         (Depends-on): Add floorl.
54677
54678 2007-10-04  Bruno Haible  <bruno@clisp.org>
54679
54680         * modules/floorf-tests: New file.
54681         * tests/test-floorf.c: New file.
54682
54683         * modules/floorf: New file.
54684         * lib/floor.c: New file.
54685         * lib/floorf.c: New file.
54686         * m4/floorf.m4: New file.
54687         * lib/math.in.h (floorf): New declaration.
54688         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
54689         HAVE_DECL_FLOORF.
54690         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
54691         HAVE_DECL_FLOORF.
54692         * doc/functions/floorf.texi: Mention the 'floorf' module.
54693
54694 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
54695             Bruno Haible  <bruno@clisp.org>
54696
54697         Advertise for the Git server instead of the CVS server.
54698         * doc/gnulib-intro.texi (Steady Development): Mention the Git
54699         repository instead of the CVS one.
54700         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
54701         about all VCS systems generically.
54702         * doc/gnulib.texi (Introduction): Capitalize `Git'.
54703
54704 2007-10-04  Bruno Haible  <bruno@clisp.org>
54705
54706         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
54707         means.
54708         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
54709
54710 2007-10-04  Bruno Haible  <bruno@clisp.org>
54711
54712         * modules/truncl-tests: New file.
54713         * tests/test-truncl.c: New file.
54714
54715         * modules/truncl: New file.
54716         * lib/truncl.c: New file.
54717         * m4/truncl.m4: New file.
54718         * lib/math.in.h (truncl): New declaration.
54719         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
54720         HAVE_DECL_TRUNCL.
54721         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
54722         HAVE_DECL_TRUNCL.
54723         * doc/functions/truncl.texi: Mention the 'truncl' module.
54724
54725 2007-10-04  Bruno Haible  <bruno@clisp.org>
54726
54727         * modules/truncf-tests: New file.
54728         * tests/test-truncf.c: New file.
54729
54730         * modules/truncf: New file.
54731         * lib/trunc.c: Make paramerizable through USE_* macros.
54732         * lib/truncf.c: New file.
54733         * m4/truncf.m4: New file.
54734         * lib/math.in.h (truncf): New declaration.
54735         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
54736         HAVE_DECL_TRUNCF.
54737         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
54738         HAVE_DECL_TRUNCF.
54739         * doc/functions/truncf.texi: Mention the 'truncf' module.
54740
54741 2007-10-03  Bruno Haible  <bruno@clisp.org>
54742
54743         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
54744         augmentation also for tests modules.
54745         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
54746         * modules/atexit-tests (Makefile.am): Likewise.
54747         * modules/binary-io-tests (Makefile.am): Likewise.
54748         * modules/c-strcase-tests (Makefile.am): Likewise.
54749         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
54750         * modules/canonicalize-tests (Makefile.am): Likewise.
54751         * modules/closein-tests (Makefile.am): Likewise.
54752         * modules/fprintf-posix-tests (Makefile.am): Likewise.
54753         * modules/freadahead-tests (Makefile.am): Likewise.
54754         * modules/fseek-tests (Makefile.am): Likewise.
54755         * modules/fseeko-tests (Makefile.am): Likewise.
54756         * modules/ftell-tests (Makefile.am): Likewise.
54757         * modules/ftello-tests (Makefile.am): Likewise.
54758         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
54759         * modules/isnanl-tests (Makefile.am): Likewise.
54760         * modules/lseek-tests (Makefile.am): Likewise.
54761         * modules/mbscasecmp-tests (Makefile.am): Likewise.
54762         * modules/mbscasestr-tests (Makefile.am): Likewise.
54763         * modules/mbschr-tests (Makefile.am): Likewise.
54764         * modules/mbscspn-tests (Makefile.am): Likewise.
54765         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
54766         * modules/mbspbrk-tests (Makefile.am): Likewise.
54767         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
54768         * modules/mbsrchr-tests (Makefile.am): Likewise.
54769         * modules/mbsspn-tests (Makefile.am): Likewise.
54770         * modules/mbsstr-tests (Makefile.am): Likewise.
54771         * modules/printf-posix-tests (Makefile.am): Likewise.
54772         * modules/snprintf-posix-tests (Makefile.am): Likewise.
54773         * modules/sprintf-posix-tests (Makefile.am): Likewise.
54774         * modules/tsearch-tests (Makefile.am): Likewise.
54775         * modules/uniname/uniname-tests (Makefile.am): Likewise.
54776         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
54777         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
54778         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
54779         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
54780         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
54781         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
54782         * modules/vprintf-posix-tests (Makefile.am): Likewise.
54783         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
54784         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
54785         * modules/xstrtoimax-tests (Makefile.am): Likewise.
54786         * modules/xstrtol-tests (Makefile.am): Likewise.
54787         * modules/xstrtoumax-tests (Makefile.am): Likewise.
54788         * modules/yesno-tests (Makefile.am): Likewise.
54789
54790 2007-10-03  Bruno Haible  <bruno@clisp.org>
54791
54792         * modules/trunc-tests: New file.
54793         * tests/test-trunc.c: New file.
54794
54795         * modules/trunc: New file.
54796         * lib/trunc.c: New file.
54797         * m4/trunc.m4: New file.
54798         * lib/math.in.h (trunc): New declaration.
54799         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
54800         HAVE_DECL_TRUNC.
54801         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
54802         HAVE_DECL_TRUNC.
54803         * doc/functions/trunc.texi: Mention the 'trunc' module.
54804
54805 2007-10-03  Bruno Haible  <bruno@clisp.org>
54806
54807         * tests/test-fpending.c: New file, mostly copied
54808         from coreutils/lib/t-fpending.c.
54809         * modules/fpending-tests: New file.
54810
54811 2007-10-03  Bruno Haible  <bruno@clisp.org>
54812
54813         Port the stdio extensions to QNX (untested).
54814         * lib/fseterr.c (fseterr): Add support for QNX.
54815         * lib/fbufmode.c (fbufmode): Likewise.
54816         * lib/freadable.c (freadable): Likewise.
54817         * lib/fwritable.c (fwritable): Likewise.
54818         * lib/freading.c (freading): Likewise.
54819         * lib/fwriting.c (fwriting): Likewise.
54820         * lib/freadahead.c (freadahed): Likewise.
54821         * lib/fpurge.c (fpurge): Likewise.
54822         * lib/fseeko.c (rpl_fseeko): Likewise.
54823
54824 2007-10-03  Bruno Haible  <bruno@clisp.org>
54825             Jim Meyering  <jim@meyering.net>
54826             Eric Blake  <ebb9@byu.net>
54827
54828         * doc/relocatable.texi: Use @command instead of @program.
54829
54830 2007-10-02  Jim Meyering  <jim@meyering.net>
54831
54832         Perform one more "_.h" -> ".in.h" substitution.
54833         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
54834         instead of unistd_.h here, too.
54835
54836 2007-10-01  Bruno Haible  <bruno@clisp.org>
54837
54838         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
54839         Needed for the alloca-opt module.
54840
54841 2007-09-30  Bruno Haible  <bruno@clisp.org>
54842
54843         * lib/alloca.in.h: Renamed from lib/alloca_.h.
54844         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
54845         alloca_.h.
54846         * lib/argz.in.h: Renamed from lib/argz_.h.
54847         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
54848         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
54849         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
54850         byteswap_.h.
54851         * lib/dirent.in.h: Renamed from lib/dirent_.h.
54852         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
54853         dirent_.h.
54854         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
54855         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
54856         fcntl_.h.
54857         * lib/float.in.h: Renamed from lib/float_.h.
54858         * modules/float (Files, Makefile.am): Use float.in.h instead of
54859         float_.h.
54860         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
54861         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
54862         fnmatch_.h.
54863         * lib/getopt.in.h: Renamed from lib/getopt_.h.
54864         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
54865         getopt_.h.
54866         * lib/glob.in.h: Renamed from lib/glob_.h.
54867         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
54868         * lib/iconv.in.h: Renamed from lib/iconv_.h.
54869         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
54870         iconv_.h.
54871         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
54872         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
54873         inttypes_.h.
54874         * lib/locale.in.h: Renamed from lib/locale_.h.
54875         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
54876         locale_.h.
54877         * lib/math.in.h: Renamed from lib/math_.h.
54878         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
54879         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
54880         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
54881         of netinet_in_.h. Add dependency.
54882         * lib/poll.in.h: Renamed from lib/poll_.h.
54883         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
54884         * lib/search.in.h: Renamed from lib/search_.h.
54885         * modules/search (Files, Makefile.am): Use search.in.h instead of
54886         search_.h.
54887         * lib/signal.in.h: Renamed from lib/signal_.h.
54888         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
54889         _signal.h.
54890         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
54891         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
54892         stdbool_.h.
54893         * lib/stdint.in.h: Renamed from lib/stdint_.h.
54894         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
54895         stdint_.h.
54896         * lib/stdio.in.h: Renamed from lib/stdio_.h.
54897         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
54898         stdio_.h.
54899         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
54900         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
54901         stdlib_.h.
54902         * lib/string.in.h: Renamed from lib/string_.h.
54903         * modules/string (Files, Makefile.am): Use string.in.h instead of
54904         string_.h.
54905         * doc/gnulib-tool.texi (Initial import): Update.
54906         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
54907         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
54908         of sys_select_.h. Add dependency.
54909         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
54910         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
54911         of sys_socket_.h.
54912         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
54913         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
54914         sys_stat_.h.
54915         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
54916         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
54917         sys_time_.h.
54918         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
54919         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
54920         sysexits_.h.
54921         * lib/time.in.h: Renamed from lib/time_.h.
54922         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
54923         * lib/unistd.in.h: Renamed from lib/unistd_.h.
54924         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
54925         unistd_.h.
54926         * lib/wchar.in.h: Renamed from lib/wchar_.h.
54927         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
54928         wchar_.h.
54929         * lib/wctype.in.h: Renamed from lib/wctype_.h.
54930         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
54931         wctype_.h.
54932         * build-aux/bootstrap (slurp): Update.
54933         * lib/.cppi-disable: Update.
54934
54935 2007-09-30  Bruno Haible  <bruno@clisp.org>
54936
54937         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
54938         Needed on BeOS.
54939
54940 2007-09-30  Bruno Haible  <bruno@clisp.org>
54941
54942         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
54943
54944 2007-09-29  Bruno Haible  <bruno@clisp.org>
54945
54946         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
54947
54948 2007-09-29  Bruno Haible  <bruno@clisp.org>
54949
54950         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
54951         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
54952         * build-aux/install-reloc: Compile also areadlink.c.
54953         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
54954
54955 2007-09-29  Bruno Haible  <bruno@clisp.org>
54956
54957         * gnulib-tool (func_emit_initmacro_done): Indentation.
54958
54959 2007-09-29  Bruno Haible  <bruno@clisp.org>
54960
54961         * README: Add CVS checkout update instructions.
54962         Info from Bob Proulx <bob@proulx.com>.
54963
54964 2007-09-28  Eric Blake  <ebb9@byu.net>
54965
54966         Provide move-if-change.
54967         * build-aux/move-if-change: New file, based on best practice
54968         rather than any canonical upstream location.
54969
54970 2007-09-28  Jim Meyering  <jim@meyering.net>
54971
54972         Fix canonicalize loop-detection corner case.
54973         Do not attempt to stat the symlink values stored via seen_triple.
54974         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
54975         on linux-2.6.18, (but not 2.6.22).
54976         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
54977         triple_compare.  The former compares dev,ino,filename, while the latter
54978         would actually stat dirname(filename) when dev and ino were equal.
54979         * lib/hash-triple.c: Install <string.h>.
54980         (STREQ): Define.
54981         (triple_compare_ino_str): New function.
54982         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
54983
54984 2007-09-28  Eric Blake  <ebb9@byu.net>
54985
54986         Enforce that AC_REPLACE_FUNCS files exist.
54987         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
54988         override check for typos.
54989
54990         Fix test-closein on Solaris 10.
54991         * tests/test-closein.c (main): Don't assume stdin can be inherited
54992         closed on all systems.
54993         * tests/test-closein.sh: Likewise.
54994         Reported by Piotr Tarnowski.
54995
54996 2007-09-28  Jim Meyering  <jim@meyering.net>
54997
54998         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
54999
55000 2007-09-27  Jim Meyering  <jim@meyering.net>
55001
55002         canonicalize: Avoid a false-positive cycle failure.
55003         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
55004         Sort.  Remove cycle-check.
55005         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
55006         not cycle-check.h.
55007         (seen_triple): New function.
55008         (canonicalize_filename_mode): Use it instead of cycle-check.
55009         * tests/test-canonicalize.c: Add a test for this bug.
55010         * tests/test-canonicalize.sh: Set up and run the test.
55011
55012         New module, file-set, from coreutils.
55013         * modules/file-set: Define it.
55014         * lib/file-set.c, lib/file-set.h: Implement.
55015
55016         New module, hash-triple, from coreutils.
55017         * modules/hash-triple: Define it.
55018         * lib/hash-triple.c, lib/hash-triple.h: Implement.
55019
55020 2007-09-25  Eric Blake  <ebb9@byu.net>
55021
55022         Fix strerror on Interix.
55023         * lib/string_.h (strerror): Declare replacement.
55024         * doc/functions/strerror.texi (strerror): Document the Interix
55025         shortcoming.
55026         * modules/string (Makefile.am): Support new hooks.
55027         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
55028         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
55029         gl_FUNC_STRERROR_SEPARATE.
55030         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
55031         * lib/strerror.c (rpl_strerror): Provide replacement.
55032         * modules/strerror (Depends-on): Add string.
55033         (configure.ac): Detect use of module.
55034         * tests/test-strerror.c: New file.
55035         * modules/strerror-tests: New test module.
55036         * modules/argp (Depends-on): Add strerror.
55037         * modules/error (Depends-on): Likewise.
55038         Reported by Martin Koeppe.
55039
55040 2007-09-24  Bruno Haible  <bruno@clisp.org>
55041
55042         * README: Update git instructions.
55043
55044 2007-09-24  Eric Blake  <ebb9@byu.net>
55045
55046         Revert fpending breakage from 2007-09-08.
55047         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
55048         __fpending.c.
55049
55050 2007-09-24  Jim Meyering  <jim@meyering.net>
55051
55052         filenamecat.c: Add a test.
55053         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
55054         showing how the function works when DIR is the empty string.
55055
55056 2007-09-21  Simon Josefsson  <simon@josefsson.org>
55057
55058         * tests/test-canonicalize.sh: Turn on executable bit.
55059
55060 2007-09-19  Eric Blake  <ebb9@byu.net>
55061
55062         * README: Update CVS instructions.
55063
55064 2007-09-18  Bruno Haible  <bruno@clisp.org>
55065
55066         * modules/areadlink: New file.
55067         * lib/areadlink.h (areadlink): New declaration.
55068         * lib/areadlink.c: New file, based on lib/xreadlink.c.
55069
55070 2007-09-17  Jim Meyering  <jim@meyering.net>
55071
55072         * lib/savewd.c (ESTALE) [!defined]: Define.
55073         Reported to be required on Interix by Martin Koeppe.
55074
55075 2007-09-17  Bruno Haible  <bruno@clisp.org>
55076
55077         * gnulib-tool (func_version): Use $version.
55078
55079 2007-09-16  Bruno Haible  <bruno@clisp.org>
55080
55081         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
55082         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
55083         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
55084         Reported by Greg Schafer <gschafer@zip.com.au>.
55085
55086 2007-09-15  Bruno Haible  <bruno@clisp.org>
55087
55088         * gnulib-tool (sed): Try a little harder to make bash understand the
55089         alias.
55090         Reported by Bruce Korb <bruce.korb@gmail.com>.
55091
55092 2007-09-13  Eric Blake  <ebb9@byu.net>
55093
55094         * ChangeLog: Remove conflict markers.
55095
55096 2007-09-13  Simon Josefsson  <simon@josefsson.org>
55097
55098         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
55099         Reported by Bruno Haible <bruno@clisp.org>.
55100
55101 2007-09-12  Bruno Haible  <bruno@clisp.org>
55102
55103         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
55104         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
55105         is not defined.
55106
55107 2007-09-12  Eric Blake  <ebb9@byu.net>
55108
55109         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
55110         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
55111         Autoconf definition.
55112         * modules/euidaccess (Depends-on): Add extensions, for
55113         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
55114         * modules/fnmatch (Depends-on): Likewise.
55115         * modules/getaddrinfo (Depends-on): Likewise.
55116         * modules/getdelim (Depends-on): Likewise.
55117         * modules/getline (Depends-on): Likewise.
55118         * modules/getsubopt (Depends-on): Likewise.
55119         * modules/gettext (Depends-on): Likewise.
55120         * modules/group-member (Depends-on): Likewise.
55121         * modules/mbchar (Depends-on): Likewise.
55122         * modules/memmem (Depends-on): Likewise.
55123         * modules/mempcpy (Depends-on): Likewise.
55124         * modules/memrchr (Depends-on): Likewise.
55125         * modules/pagealign_alloc (Depends-on): Likewise.
55126         * modules/readutmp (Depends-on): Likewise.
55127         * modules/stpcpy (Depends-on): Likewise.
55128         * modules/stpncpy (Depends-on): Likewise.
55129         * modules/strchrnul (Depends-on): Likewise.
55130         * modules/strndup (Depends-on): Likewise.
55131         * modules/strsep (Depends-on): Likewise.
55132         * modules/strverscmp (Depends-on): Likewise.
55133         * modules/vasprintf (Depends-on): Likewise.
55134         * modules/wcwidth (Depends-on): Likewise.
55135         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
55136         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
55137         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
55138         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
55139         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
55140         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
55141         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
55142         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
55143         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
55144         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
55145         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55146         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
55147         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
55148         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
55149         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
55150         * m4/readutmp.m4 (gl_READUTMP): Likewise.
55151         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55152         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
55153         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55154         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
55155         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55156         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
55157         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
55158         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
55159         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
55160         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55161         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
55162         so that lock.m4 can be used in gettext without extensions module.
55163
55164 2007-09-11  Bruno Haible  <bruno@clisp.org>
55165
55166         * m4/isc-posix.m4: Remove file.
55167         Suggested by Eric Blake.
55168
55169 2007-09-11  Eric Blake  <ebb9@byu.net>
55170
55171         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
55172
55173 2007-09-10  Bruno Haible  <bruno@clisp.org>
55174
55175         * posix-modules: Fix typo in error message.
55176         Reported by Matt <mkraai@beckman.com>.
55177
55178 2007-09-09  Bruno Haible  <bruno@clisp.org>
55179
55180         * doc/functions/getdelim.texi: Update list of platforms lacking the
55181         function.
55182         * doc/functions/getline.texi: Likewise.
55183
55184 2007-09-09  Jim Meyering  <jim@meyering.net>
55185
55186         * lib/hash.c (hash_initialize): Detect calloc failure.
55187         Reported by Bruno Haible.
55188
55189 2007-09-09  Bruno Haible  <bruno@clisp.org>
55190
55191         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
55192         malloc or realloc fails.
55193
55194 2007-09-09  Bruno Haible  <bruno@clisp.org>
55195
55196         * modules/getcwd (Depends-on): Add malloc-posix.
55197         * modules/glob (Depends-on): Likewise.
55198         * modules/putenv (Depends-on): Likewise.
55199         * modules/strdup (Depends-on): Likewise.
55200         * modules/getdelim (Depends-on): Add realloc-posix.
55201         * modules/read-file (Depends-on): Likewise.
55202
55203 2007-09-09  Bruno Haible  <bruno@clisp.org>
55204
55205         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
55206         (gl_FUNC_MALLOC_POSIX): Require it.
55207         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
55208         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
55209         * modules/realloc (Files): Add m4/malloc.m4.
55210         * modules/calloc (Files): Likewise.
55211
55212 2007-09-09  Bruno Haible  <bruno@clisp.org>
55213
55214         * modules/malloc-posix: New file.
55215         * modules/malloc (Depends-on): Add malloc-posix.
55216         * lib/malloc.c: Include errno.h.
55217         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
55218         and a POSIX-compatible malloc into a single function. Set ENOMEM
55219         when returning NULL.
55220         * m4/malloc.m4: New file.
55221         * doc/functions/malloc.texi: Mention the malloc-posix module.
55222         * lib/stdlib_.h (malloc): New declaration.
55223         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55224         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
55225         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
55226         and HAVE_MALLOC_POSIX.
55227
55228 2007-09-09  Bruno Haible  <bruno@clisp.org>
55229
55230         * modules/realloc-posix: New file.
55231         * modules/realloc (Depends-on): Add realloc-posix.
55232         * lib/realloc.c: Include errno.h.
55233         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
55234         and a POSIX-compatible realloc into a single function. Set ENOMEM
55235         when returning NULL.
55236         * m4/realloc.m4: New file.
55237         * doc/functions/realloc.texi: Mention the realloc-posix module.
55238         * lib/stdlib_.h (realloc): New declaration.
55239         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55240         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
55241         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
55242         and HAVE_REALLOC_POSIX.
55243
55244 2007-09-09  Bruno Haible  <bruno@clisp.org>
55245
55246         * modules/calloc-posix: New file.
55247         * modules/calloc (Depends-on): Add calloc-posix.
55248         * lib/calloc.c: Include errno.h.
55249         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
55250         and a POSIX-compatible calloc into a single function. Set ENOMEM
55251         when returning NULL.
55252         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
55253         * doc/functions/calloc.texi: Mention the calloc-posix module.
55254         * lib/stdlib_.h (calloc): New declaration.
55255         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55256         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
55257         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
55258         and HAVE_CALLOC_POSIX.
55259
55260 2007-09-09  Bruno Haible  <bruno@clisp.org>
55261
55262         Allow for modules to show an arbitrary notice.
55263         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
55264         * gnulib-tool: New option --extract-notice.
55265         (func_usage): Document it.
55266         (sed_extract_prog): Update.
55267         (func_get_notice): New function.
55268         (func_modules_notice): New function.
55269         (func_import, func_create_testdir): Invoke it.
55270         Suggested by Jim Meyering.
55271
55272 2007-09-09  Bruno Haible  <bruno@clisp.org>
55273
55274         * gnulib-tool: New options --verbose, --quiet.
55275         (func_usage): Document them.
55276         (verbose): New variable.
55277         (func_execute_command): New function.
55278         (func_import): Don't show the module list and the file list if
55279         $verbose < 0.
55280         (func_create_testdir): Likewise. Use func_execute_command.
55281         (func_create_megatestdir): Use func_execute_command.
55282
55283 2007-09-08  Bruno Haible  <bruno@clisp.org>
55284
55285         * gnulib-tool (func_import): Prefer rsync over wget when available,
55286         for fetching the PO files.
55287
55288 2007-09-08  Bruno Haible  <bruno@clisp.org>
55289
55290         * posix-modules: New file. Portions copied from gnulib-tool.
55291         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
55292
55293 2007-09-08  Jim Meyering  <jim@meyering.net>
55294
55295         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
55296         * lib/fpending.h: Rename from __fpending.h.
55297         * lib/fpending.c: Rename from __fpending.c.
55298         Include "fpending.h", not "__fpending.h".
55299         * lib/__fpending.h, lib/__fpending.c: Remove files.
55300         * modules/fpending (Files): Reflect new file names.
55301         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
55302
55303 2007-09-08  Bruno Haible  <bruno@clisp.org>
55304
55305         * m4/inttypes-h.m4: Remove stub file.
55306
55307 2007-09-07  Simon Josefsson  <simon@josefsson.org>
55308
55309         * doc/headers/stdint.texi: Discuss #include_next issue.
55310
55311 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55312
55313         * build-aux/bootstrap: Remove obsolete comment about wget --help.
55314
55315 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55316
55317         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
55318         in variable name.
55319
55320 2007-09-03  Jim Meyering  <jim@meyering.net>
55321
55322         New module: git-version-gen.
55323         * modules/git-version-gen: New file.
55324
55325         Import changes from coreutils for bootstrap script.
55326
55327         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
55328
55329         bootstrap: uses rsync to download the .po files
55330         * build-aux/bootstrap (po_download_command_format): New global.
55331         (download_po_files): Use rsync.
55332         (update_po_files): Don't remove .po files after download,
55333         so future rsync runs can take advantage of the copies.
55334
55335         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
55336
55337         Solve the unnecessary-.po-file-regeneration problem once and for all.
55338         * build-aux/bootstrap (download_po_files): New function, renamed from
55339         get_translations.  Now, downloads, but doesn't update LINGUAS.
55340         (update_po_files): New function.
55341
55342         bootstrap: Ignore more.
55343         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
55344         uniwidth to e.g., lib/.gitignore.
55345         (slurp): Handle the sys_stat_.h -> sys mapping, too.
55346
55347         * build-aux/bootstrap: New setting: vc_ignore.
55348         (insert_sorted_if_absent): Create $file if absent.
55349         Adapt to new, possibly empty, list: $vc_ignore.
55350
55351         bootstrap: generate more ignorable names
55352         * build-aux/bootstrap (slurp): When generating ignorable names,
55353         also map .sin to .sed, .gperf to .c, and .y to .c.
55354
55355 2007-09-03  Jim Meyering  <jim@meyering.net>
55356
55357         * build-aux/git-version-gen: New file, from coreutils.  For details, see
55358         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
55359
55360 2007-09-02  Bruno Haible  <bruno@clisp.org>
55361
55362         Fix mis-recognition of 'mcs' on QNX 6.
55363         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
55364         output contains the string "Mono".
55365         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
55366         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
55367
55368 2007-09-01  Bruno Haible  <bruno@clisp.org>
55369
55370         Fix collision between uniwidth/* and linebreak modules.
55371         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
55372         u32_width): Remove declarations.
55373         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
55374         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
55375         streq3, streq2, streq1, streq0): Remove functions.
55376         (STREQ): Remove macro.
55377         (is_cjk_encoding): Remove function.
55378         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
55379         (uc_width, u8_width, u16_width, u32_width): Remove functions.
55380         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
55381         * NEWS: Document the change.
55382
55383 2007-09-01  Bruno Haible  <bruno@clisp.org>
55384
55385         * lib/streq.h: Add double-inclusion guard.
55386
55387 2007-09-01  Karl Berry  <karl@gnu.org>
55388
55389         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
55390
55391 2007-08-28  Jim Meyering  <jim@meyering.net>
55392
55393         Rename mreadlink_with_size to areadlink_with_size.
55394         * NEWS: Document the change.
55395         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
55396         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
55397         * lib/mreadlink.h: Rename this to...
55398         * lib/areadlink.h: ...this.
55399         * modules/mreadlink-with-size: Rename this to...
55400         * modules/areadlink-with-size: ...this.
55401         * lib/canonicalize.c: Reflect the renaming.
55402         * modules/canonicalize: Likewise.
55403
55404 2007-08-26  Bruno Haible  <bruno@clisp.org>
55405
55406         * gnulib-tool (func_import): When deciding which files to remove,
55407         consider also dangling symbolic links.
55408         Reported by Eric Blake.
55409
55410 2007-08-26  Bruno Haible  <bruno@clisp.org>
55411
55412         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
55413
55414 2007-08-23  Simon Josefsson  <simon@josefsson.org>
55415
55416         * lib/readline.c: Don't include getline.h, the prototype is now
55417         found in stdio.h.
55418
55419 2007-08-23  Jim Meyering  <jim@meyering.net>
55420
55421         Getdelim touchup.
55422         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
55423         around the funlockfile call, since funlockfile never sets errno.
55424         Don't set errno upon failed realloc.
55425
55426 2007-08-22  Eric Blake  <ebb9@byu.net>
55427
55428         Getline touchups.
55429         * lib/getdelim.c (getdelim): Revert regression that required *n to
55430         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
55431         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
55432         getdelim, rather than whether implementation is missing.
55433         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
55434         * lib/stdio_.h (getline): Also declare if replacement is
55435         required.
55436         * doc/functions/getdelim.texi: New file.
55437         * doc/functions/getline.texi: Likewise.
55438         * doc/gnulib.texi (Function Substitutes): Add new files.
55439         Reported by Bruno Haible.
55440
55441 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
55442
55443         * users.txt: Add Guile.
55444
55445 2007-08-22  Eric Blake  <ebb9@byu.net>
55446
55447         * tests/test-getdelim.c (main): Use remove, not unlink.
55448         * tests/test-getline.c (main): Likewise.
55449
55450         Move getline and getdelim into stdio.h, per POSIX 200x.
55451         * modules/getline (Files): Remove getline.h.
55452         (Depends-on): Add stdio.
55453         (configure.ac): Add module indicator.
55454         * modules/getdelim (Files): Remove getdelim.h.
55455         (Depends-on): Add stdio.
55456         (configure.ac): Add module indicator.
55457         * modules/stdio (Makefile.am): Work with new indicators.
55458         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
55459         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
55460         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
55461         * lib/getdelim.h: Delete.
55462         * lib/getline.h: Delete.
55463         * lib/stdio_.h (getdelim, getline): Declare.
55464         * modules/getdelim-tests: New module.
55465         * modules/getline-tests: Likewise.
55466         * tests/test-getdelim.c: New file.
55467         * tests/test-getline.c: Likewise.
55468         * NEWS: Document the change.
55469         * lib/getline.c: Update choice of header.
55470         * lib/csharpcomp.c: Likewise.
55471         * lib/getpass.c: Likewise.
55472         * lib/javacomp.c: Likewise.
55473         * lib/javaversion.c: Likewise.
55474         * lib/yesno.c: Likewise.
55475         * lib/getdelim.c: Likewise.
55476         (getdelim): Set errno on failure, and avoid memory leak.
55477
55478 2007-08-19  Bruno Haible  <bruno@clisp.org>
55479
55480         * modules/closein (Depends-on): Add freadahead.
55481         * lib/closein.c: Include freadahead.h.
55482         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
55483         is zero.
55484
55485 2007-08-19  Bruno Haible  <bruno@clisp.org>
55486
55487         * modules/freadahead-tests: New file.
55488         * tests/test-freadahead.sh: New file.
55489         * tests/test-freadahead.c: New file.
55490
55491         * modules/freadahead: New file.
55492         * lib/freadahead.h: New file.
55493         * lib/freadahead.c: New file.
55494         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
55495         fbufmode, fpurge, freadable, fwritable.
55496
55497 2007-08-19  Eric Blake  <ebb9@byu.net>
55498
55499         Test yesno in combination with closein.
55500         * lib/yesno.c (yesno): Document use of stdin.
55501         * modules/yesno-tests (Files): New module.
55502         * tests/test-yesno.c (main): New file.
55503         * tests/test-yesno.sh: Likewise.
55504
55505 2007-08-19  Bruno Haible  <bruno@clisp.org>
55506
55507         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
55508         * lib/fseeko.c (rpl_fseeko): Likewise.
55509         * lib/fseterr.c (fseterr): Likewise.
55510
55511 2007-08-19  Bruno Haible  <bruno@clisp.org>
55512
55513         * tests/test-lseek.c (main): Disable a test for BeOS.
55514         * doc/functions/lseek.texi: Document the BeOS bug.
55515
55516 2007-08-19  Bruno Haible  <bruno@clisp.org>
55517             Eric Blake  <ebb9@byu.net>
55518
55519         * lib/lseek.c: Include <sys/stat.h>.
55520         (rpl_lseek): Add workaround code also for Unix platforms.
55521         Needed for BeOS.
55522         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
55523         * doc/functions/lseek.texi: Document BeOS definiency.
55524
55525 2007-08-18  Bruno Haible  <bruno@clisp.org>
55526
55527         * modules/fstrcmp-tests: New file.
55528         * tests/test-fstrcmp.c: New file.
55529
55530 2007-08-18  Bruno Haible  <bruno@clisp.org>
55531
55532         * modules/fstrcmp: New file, from GNU gettext with modifications.
55533         * lib/fstrcmp.h: New file, from GNU gettext.
55534         * lib/fstrcmp.c: New file, from GNU gettext.
55535         * MODULES.html.sh (String handling): Add fstrcmp.
55536
55537 2007-08-18  Bruno Haible  <bruno@clisp.org>
55538
55539         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
55540         'bool'.
55541         (diag, compareseq): Remove const from the ctxt argument.
55542         (USE_HEURISTIC): Undefine at the end.
55543
55544 2007-08-18  Jim Meyering  <jim@meyering.net>
55545
55546         New file: lib/idcache.h
55547         * NEWS: Mention the addition.
55548         * modules/idcache (Files): Add lib/idcache.h
55549         * lib/idcache.c: Include "idcache.h".
55550         Don't include <sys/types.h>.
55551         Add a FIXME comment.
55552         Move file-scoped "static" declarations to the top.
55553         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
55554
55555 2007-08-17  Bruno Haible  <bruno@clisp.org>
55556         and Paul Eggert  <eggert@cs.ucla.edu>
55557
55558         * MODULES.html.sh: Add diffseq.
55559         * modules/diffseq: New file.
55560         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
55561         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
55562
55563 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55564
55565         Import changes from coreutils for bootstrap script.
55566
55567         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
55568
55569         * build-aux/bootstrap (slurp): Work even in environments where
55570         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
55571         current code does not slurp files whose names start with ".", and
55572         this looks like it might be a troublesome area.
55573
55574         2007-07-11  Jim Meyering  <jim@meyering.net>
55575
55576         If there's a GPL vN copyright comment, require that N == 3.
55577
55578         2007-07-08  Jim Meyering  <jim@meyering.net>
55579
55580         Run the coreutils-specific code only if tests/Makefile.am.in exists.
55581         * build-aux/bootstrap (mam_template): Move definition out of loop.
55582
55583         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
55584
55585         * build-aux/bootstrap (symlink_to_dir): Rename function from
55586         symlink_to_gnulib.  Add a directory parameter.  Update all
55587         callers.
55588         (cp_mark_as_generated): Also check for -- and link to -- files in
55589         gl/.
55590
55591         2007-07-08  Jim Meyering  <jim@meyering.net>
55592
55593         Adapt to deeper hierarchy in gnulib.
55594         * build-aux/bootstrap (symlink_to_dir): If the destination
55595         directory doesn't exist, create it. This is required at least for
55596         "lib/uniwidth/cjk.h".
55597
55598         2007-05-15  Jim Meyering  <jim@meyering.net>
55599
55600         * build-aux/bootstrap: Now that generated Makefile.am files
55601         are no longer under version control, they must be created at
55602         bootstrap time.
55603
55604 2007-08-14  Ben Pfaff  <blp@gnu.org>
55605
55606         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
55607
55608 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55609
55610         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
55611         given the changes below.
55612         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
55613         even on hosts that have padding bits beyond the supported 64.
55614
55615 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
55616
55617         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
55618         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
55619         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
55620         depends on it.
55621         (xstrtol_error): Remove.
55622         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
55623         but with a different signature.
55624         (ATTRIBUTE_NORETURN, __attribute__): New macros.
55625         * lib/xstrtol-error.c: Include exitfail.h.
55626         (xstrtol_fatal): New function, with a different signature from the
55627         old xstrtol_error, so that the caller need not worry about passing
55628         in an exit status, or about storage management of the option argument.
55629         (xstrtol_error): Now a static function.  Redo signature to
55630         implement xstrtol_fatal.  Output the correct number of hyphens in
55631         front of the option so that the caller need not worry about
55632         storage management.
55633         (N_): New macro.
55634         (_): Remove; not used now.
55635         * modules/xstrtol: Depend on getopt.
55636         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
55637         of old STRTOL_FATAL_ERROR macro.
55638         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
55639         of test program.
55640         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
55641         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
55642
55643 2007-08-08  Eric Blake  <ebb9@byu.net>
55644
55645         * lib/xstrtol-error.c: Add missing include.
55646
55647         Move xstrtol messages into gnulib domain, when --pobase is used.
55648         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
55649         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
55650         * modules/xstrtol (Files): Distribute new file.
55651         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
55652         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
55653         * tests/test-xstrtol.c: ...into new file.
55654         * tests/test-xstrtoul.c: Also test xstrtoul.
55655         * tests/test-xstrtoimax.c: Also test xstrtoimax.
55656         * tests/test-xstrtoumax.c: Also test xstrtoumax.
55657         * tests/test-xstrtol.sh: Drive the tests.
55658         * tests/test-xstrtoimax.sh: Likewise.
55659         * tests/test-xstrtoumax.sh: Likewise.
55660         * modules/xstrtol-tests: New module.
55661         * modules/xstrtoimax-tests: Likewise.
55662         * modules/xstrtoumax-tests: Likewise.
55663
55664 2007-08-08  Jim Meyering  <jim@meyering.net>
55665
55666         New function: mfile_name_concat.
55667         * lib/filenamecat.c (mfile_name_concat): New function, just like
55668         file_name_concat, but return NULL upon failure rather than exiting
55669         with a diagnostic.
55670         * lib/filenamecat.h: Declare it.
55671
55672 2007-08-07  Bruno Haible  <bruno@clisp.org>
55673
55674         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
55675         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
55676         warning from gcc.
55677         Reported by Eric Blake.
55678
55679 2007-08-07  Simon Josefsson  <simon@josefsson.org>
55680
55681         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
55682         * modules/crypto/arcfour (License): Likewise.
55683         * modules/crypto/des-tests (License): Likewise.
55684         * modules/crypto/gc-arctwo-tests (License): Likewise.
55685         * modules/crypto/gc-des-tests (License): Likewise.
55686         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
55687         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
55688         * modules/crypto/gc-md2-tests (License): Likewise.
55689         * modules/crypto/gc-md4-tests (License): Likewise.
55690         * modules/crypto/gc-md5-tests (License): Likewise.
55691         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
55692         * modules/crypto/gc-rijndael-tests (License): Likewise.
55693         * modules/crypto/gc-sha1-tests (License): Likewise.
55694         * modules/crypto/gc-tests (License): Likewise.
55695         * modules/crypto/hmac-md5 (License): Likewise.
55696         * modules/crypto/hmac-sha1 (License): Likewise.
55697         * modules/crypto/md2-tests (License): Likewise.
55698         * modules/crypto/md4-tests (License): Likewise.
55699         * modules/crypto/md5 (License): Likewise.
55700         * modules/crypto/rijndael (License): Likewise.
55701         * modules/crypto/sha1 (License): Likewise.
55702         * modules/memxor (License): Likewise.
55703
55704 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55705         and Bruno Haible  <bruno@clisp.org>
55706
55707         * NEWS: Describe interface changes to human, xstrtol.
55708         * lib/human.h: Include <xstrtol.h>.
55709         (human_options): Return enum strtol_error, not int.  Remove
55710         bool arg; take int * instead.
55711         * lib/human.c: Don't include "gettext.h".
55712         (_): Remove; no longer used.
55713         Don't include <xstrtol.h>, since human.h does it.
55714         (human_options): Adjust to abovementioned interface changes.
55715         Do not report error to stderr; that's now the caller's
55716         responsibility.
55717         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
55718         interface change.
55719         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
55720         Str, Argument_type_string.  All uses changed.  Put " argument"
55721         in diagnostics to make them clearer.  Change wording of suffix
55722         message for clarity.
55723         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
55724         Argument_type_string.
55725         (STRTOL_FATAL_WARN): Remove; no longer used.
55726         * modules/human (Depends-on): Remove gettext-h.
55727
55728 2007-08-06  Simon Josefsson  <simon@josefsson.org>
55729
55730         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
55731
55732 2007-07-31  Bruno Haible  <bruno@clisp.org>
55733
55734         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
55735         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
55736         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
55737
55738 2007-07-31  Bruno Haible  <bruno@clisp.org>
55739
55740         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
55741         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
55742
55743 2007-07-30  Bruno Haible  <bruno@clisp.org>
55744
55745         * modules/base64 (License): Use the synonymous term "LGPLv2+".
55746         * modules/c-ctype (License): Likewise.
55747         * modules/c-strcase (License): Likewise.
55748         * modules/check-version (License): Likewise.
55749         * modules/iconv (License): Likewise.
55750         * modules/iconv_open (License): Likewise.
55751         * modules/read-file (License): Likewise.
55752         * modules/striconv (License): Likewise.
55753         * modules/strverscmp (License): Likewise.
55754         * modules/vasprintf (License): Likewise.
55755         * modules/crypto/des (License): Likewise.
55756         * modules/crypto/gc (License): Likewise.
55757         * modules/crypto/gc-arcfour (License): Likewise.
55758         * modules/crypto/gc-arctwo (License): Likewise.
55759         * modules/crypto/gc-des (License): Likewise.
55760         * modules/crypto/gc-hmac-md5 (License): Likewise.
55761         * modules/crypto/gc-hmac-sha1 (License): Likewise.
55762         * modules/crypto/gc-md2 (License): Likewise.
55763         * modules/crypto/gc-md4 (License): Likewise.
55764         * modules/crypto/gc-md5 (License): Likewise.
55765         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
55766         * modules/crypto/gc-random (License): Likewise.
55767         * modules/crypto/gc-rijndael (License): Likewise.
55768         * modules/crypto/gc-sha1 (License): Likewise.
55769         * modules/crypto/md2 (License): Likewise.
55770         * modules/crypto/md4 (License): Likewise.
55771
55772 2007-07-30  Jim Meyering  <jim@meyering.net>
55773
55774         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
55775         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
55776         it has valid stat data.  This bug would cause du not to count the
55777         sizes of inaccessible directories.
55778         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
55779         in <http://bugzilla.redhat.com/250077>.
55780
55781 2007-07-25  Peter O'Gorman  <peter@pogma.com>
55782             Bruno Haible  <bruno@clisp.org>
55783
55784         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
55785         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
55786         #include_next, gives a diagnostic about it, but reports no error in
55787         the exit code.
55788         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
55789
55790 2007-07-24  Ben Pfaff  <blp@gnu.org>
55791
55792         Improve name: "count-one-bits" is better than "popcount".
55793         * MODULES.html.sh: Update name.
55794         * lib/popcount.h: Renamed lib/count-one-bits.h.
55795         (popcount): Renamed count_one_bits.
55796         (popcountl): Renamed count_one_bits_l.
55797         (popcountll): Renamed count_one_bits_ll.
55798         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
55799         * modules/popcount: Renamed module/count-one-bits.
55800         * modules/popcount-tests: Renamed module/count-one-bits-tests.
55801         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
55802
55803 2007-07-23  Ben Pfaff  <blp@gnu.org>
55804
55805         * lib/popcount.h (popcount32): Reduce size of constants, to allow
55806         better code generation, and add U to large constants to avoid
55807         warnings, in non-GCC case.
55808         Suggested by Bruno Haible.
55809
55810 2007-07-23  Ben Pfaff  <blp@gnu.org>
55811
55812         * lib/popcount.h: Use verify_true instead of if...abort.
55813         * modules/popcount: Depend on verify module.
55814         Suggested by Jim Meyering.
55815
55816 2007-07-23  Bruno Haible  <bruno@clisp.org>
55817
55818         * gnulib-tool (func_import): Create a .cvsignore file also when the
55819         directory is not yet in CVS but the toplevel directory is. When
55820         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
55821         Reported by Karl Berry.
55822
55823 2007-07-22  Ben Pfaff  <blp@gnu.org>
55824
55825         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
55826         case.
55827         Suggested by Eric Blake.
55828
55829 2007-07-22  Ben Pfaff  <blp@gnu.org>
55830
55831         New module: popcount.
55832         * MODULES.html.sh: Add popcount.
55833         * modules/popcount: New file.
55834         * modules/popcount-tests: New file.
55835         * tests/test-popcount.c: New file.
55836         * lib/popcount.h: New file.
55837         * m4/popcount.m4: New file.
55838
55839 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
55840
55841         * build-aux/announce-gen: Update to GPLv3.
55842
55843         * build-aux/config.guess: Update from config.
55844
55845 2007-07-21  Bruno Haible  <bruno@clisp.org>
55846
55847         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
55848         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
55849
55850 2007-07-20  Jim Meyering  <jim@meyering.net>
55851
55852         * check-module: Diagnose a self-dependency.
55853
55854 2007-07-19  Bruno Haible  <bruno@clisp.org>
55855
55856         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
55857         empty.
55858         Reported by Eric Blake.
55859
55860 2007-07-18  Bruno Haible  <bruno@clisp.org>
55861
55862         * gnulib-tool: New options --po-base, --po-domain.
55863         (func_usage): Document them.
55864         (pobase, po_domain): New variables.
55865         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
55866         DEFAULT_TEXT_DOMAIN.
55867         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
55868         (func_import): Consider pobase and po_domain. Create a po/ directory.
55869         (func_create_testdir): Set pobase and po_domain to empty.
55870         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
55871         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
55872
55873 2007-07-18  Bruno Haible  <bruno@clisp.org>
55874
55875         * gnulib-tool (func_get_automake_snippet): Synthesize also an
55876         EXTRA_DIST augmentation for files in build-aux/.
55877
55878 2007-07-16  Bruno Haible  <bruno@clisp.org>
55879
55880         * modules/lseek (License): Use the synonymous term "LGPLv2+".
55881         * modules/getdelim (License): Likewise.
55882
55883 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55884
55885         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
55886         * modules/d-type (License): Likewise.
55887         * modules/extensions (License): Likewise.
55888         * modules/fnmatch (License): Likewise.
55889         * modules/fseeko (License): Likewise.
55890         * modules/getaddrinfo (License): Likewise.
55891         * modules/getline (License): Likewise.
55892         * modules/getlogin_r (License): Likewise.
55893         * modules/getpass (License): Likewise.
55894         * modules/gettimeofday (License): Likewise.
55895         * modules/glob (License): Likewise.
55896         * modules/inet_ntop (License): Likewise.
55897         * modules/malloc (License): Likewise.
55898         * modules/malloca (License): Likewise.
55899         * modules/memmem (License): Likewise.
55900         * modules/mempcpy (License): Likewise.
55901         * modules/memset (License): Likewise.
55902         * modules/minmax (License): Likewise.
55903         * modules/mktime (License): Likewise.
55904         * modules/netinet_in (License): Likewise.
55905         * modules/pathmax (License): Likewise.
55906         * modules/poll (License): Likewise.
55907         * modules/regex (License): Likewise.
55908         * modules/snprintf (License): Likewise.
55909         * modules/stdbool (License): Likewise.
55910         * modules/stdint (License): Likewise.
55911         * modules/stdio (License): Likewise.
55912         * modules/strcase (License): Likewise.
55913         * modules/strcasestr (License): Likewise.
55914         * modules/strdup (License): Likewise.
55915         * modules/string (License): Likewise.
55916         * modules/strndup (License): Likewise.
55917         * modules/strnlen (License): Likewise.
55918         * modules/strpbrk (License): Likewise.
55919         * modules/strptime (License): Likewise.
55920         * modules/strsep (License): Likewise.
55921         * modules/sys_select (License): Likewise.
55922         * modules/sys_socket (License): Likewise.
55923         * modules/sys_stat (License): Likewise.
55924         * modules/sys_time (License): Likewise.
55925         * modules/time (License): Likewise.
55926         * modules/time_r (License): Likewise.
55927         * modules/timegm (License): Likewise.
55928         * modules/unistd (License): Likewise.
55929         * modules/vsnprintf (License): Likewise.
55930         * modules/wctype (License): Likewise.
55931
55932 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55933
55934         * modules/argz (License): LGPLv2+.
55935
55936 2007-07-15  Karl Berry  <karl@gnu.org>
55937
55938         * doc/gnulib.texi: revise node structure per new fdl.texi.
55939
55940 2007-07-14  Bruno Haible  <bruno@clisp.org>
55941
55942         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
55943         the output file.
55944         * lib/uniname/uninames.h: Regenerated.
55945
55946 2007-07-14  Karl Berry  <karl@gnu.org>
55947
55948         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
55949         omitting sectioning and index commands.
55950
55951 2007-07-13  Bruno Haible  <bruno@clisp.org>
55952
55953         New gnulib-tool option --more-symlinks.
55954         * gnulib-tool (func_usage): Document --more-symlinks.
55955         (do_copyrights): New variable.
55956         Recognize option --more-symlinks.
55957         (func_import): Don't add a copyright notice transform to
55958         sed_transform_lib_file if do_copyrights is empty.
55959
55960 2007-07-13  Bruno Haible  <bruno@clisp.org>
55961
55962         * lib/vasnprintf.c (decimal_point_char): Define also if
55963         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
55964         && !NEED_PRINTF_DIRECTIVE_A.
55965         Reported by Clemens Koller <clemens.koller@anagramm.de> via
55966         Gary V. Vaughan <gary@gnu.org>.
55967
55968 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
55969
55970         * lib/inttypes_.h: Undo previous change, since it was fixed
55971         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
55972
55973 2007-07-13  Bruno Haible  <bruno@clisp.org>
55974
55975         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
55976         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
55977
55978 2007-07-13  Jim Meyering  <jim@meyering.net>
55979
55980         df: Don't fail for Tru64's "file-on-file mount".
55981         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
55982         so we fall through and use statfs instead.  Details here:
55983         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
55984         Reported by Albert Chin.
55985
55986 2007-07-13  Bruno Haible  <bruno@clisp.org>
55987
55988         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
55989         * modules/configmake (License): Likewise.
55990         * modules/gettext (License): Likewise.
55991         * modules/gettext-h (License): Likewise.
55992         * modules/include_next (License): Likewise.
55993         * modules/link-warning (License): Likewise.
55994         * modules/localcharset (License): Likewise.
55995         * modules/localename (License): Likewise.
55996         * modules/lock (License): Likewise.
55997         * modules/relocatable-lib-lgpl (License): Likewise.
55998         * modules/size_max (License): Likewise.
55999         * modules/vasnprintf (License): Likewise.
56000         * modules/wchar (License): Likewise.
56001         * modules/xsize (License): Likewise.
56002
56003 2007-07-13  Bruno Haible  <bruno@clisp.org>
56004
56005         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
56006         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
56007
56008 2007-07-12  Bruno Haible  <bruno@clisp.org>
56009
56010         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
56011         in the modules files.
56012
56013 2007-07-11  Karl Berry  <karl@gnu.org>
56014
56015         * MODULES.html.sh (func_module): use
56016          sed -e '\|^'"${includefile}"'$|d'
56017          instead of /.../d, to avoid errors on $includefile's containing /.
56018
56019 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56020
56021         * gnulib-tool (func_import): Avoid duplication of --avoid
56022         statements
56023         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
56024         names to `_' in variable names.
56025
56026 2007-07-10  Eric Blake  <ebb9@byu.net>
56027
56028         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
56029         * NEWS: Document this change.
56030
56031 2007-07-08  Bruno Haible  <bruno@clisp.org>
56032
56033         Update to Unicode 5.0.
56034         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
56035         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
56036         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
56037         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
56038         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
56039         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
56040         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
56041         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
56042         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
56043         U+10A3F, U+1D242..U+1D244.
56044         (nonspacing_table_ind): Update.
56045         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
56046         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
56047
56048 2007-07-08  Bruno Haible  <bruno@clisp.org>
56049
56050         Update to Unicode 5.0.
56051         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
56052         code transform. Extend the name index field of unicode_name_to_code and
56053         unicode_code_to_name from 16 to 24 bits.
56054         * lib/uniname/uniname.c (unicode_character_name,
56055         unicode_name_character): Add the range 0x12xxx to the code transform.
56056         * lib/uniname/uninames.h: Regenerated.
56057         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
56058
56059 2007-07-07  Bruno Haible  <bruno@clisp.org>
56060
56061         * modules/wcwidth-tests: New file.
56062         * tests/test-wcwidth.c: New file.
56063
56064         Work around MacOS X wcwidth() bug.
56065         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
56066         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
56067         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
56068         original wcwidth in non-UTF-8 locales.
56069         * modules/wcwidth (Depends-on): Add localcharset, streq,
56070         uniwidth/width.
56071         * doc/functions/wcwidth.texi: Update.
56072
56073 2007-07-07  Bruno Haible  <bruno@clisp.org>
56074
56075         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
56076         (wcwidth): New declaration.
56077         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
56078         macros.
56079         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
56080         here. Prepare for creating <wchar.h> unconditionally.
56081         * modules/wchar (Depends-on): Add link-warning.
56082         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
56083         REPLACE_WCWIDTH, and GL_LINK_WARNING.
56084         * lib/wcwidth.h: Remove file.
56085         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
56086         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
56087         * modules/wcwidth (Files): Remove lib/wcwidth.h.
56088         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
56089         (Include): Replace wcwidth.h with <wchar.h>.
56090         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
56091         * lib/mbchar.h: Don't include wcwidth.h.
56092         * lib/mbswidth.c: Likewise.
56093         * NEWS: Mention the change.
56094
56095 2007-07-07  Bruno Haible  <bruno@clisp.org>
56096
56097         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
56098         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
56099         definition with an external declaration.
56100         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
56101         defined as a function. Remove AC_C_INLINE requirement.
56102         * modules/wcwidth (Files): Add lib/wcwidth.c.
56103         (Makefile.am): Remove redundant statement.
56104
56105 2007-07-07  Bruno Haible  <bruno@clisp.org>
56106
56107         * MODULES.html.sh (Unicode string functions): Add the new modules.
56108
56109         * tests/uniwidth/test-u32-strwidth.c: New file.
56110         * modules/uniwidth/u32-strwidth-tests: New file.
56111
56112         * lib/uniwidth/u32-strwidth.c: New file.
56113         * modules/uniwidth/u32-strwidth: New file.
56114
56115         * tests/uniwidth/test-u16-strwidth.c: New file.
56116         * modules/uniwidth/u16-strwidth-tests: New file.
56117
56118         * lib/uniwidth/u16-strwidth.c: New file.
56119         * modules/uniwidth/u16-strwidth: New file.
56120
56121         * tests/uniwidth/test-u8-strwidth.c: New file.
56122         * modules/uniwidth/u8-strwidth-tests: New file.
56123
56124         * lib/uniwidth/u8-strwidth.c: New file.
56125         * modules/uniwidth/u8-strwidth: New file.
56126
56127         * tests/uniwidth/test-u32-width.c: New file.
56128         * modules/uniwidth/u32-width-tests: New file.
56129
56130         * lib/uniwidth/u32-width.c: New file.
56131         * modules/uniwidth/u32-width: New file.
56132
56133         * tests/uniwidth/test-u16-width.c: New file.
56134         * modules/uniwidth/u16-width-tests: New file.
56135
56136         * lib/uniwidth/u16-width.c: New file.
56137         * modules/uniwidth/u16-width: New file.
56138
56139         * tests/uniwidth/test-u8-width.c: New file.
56140         * modules/uniwidth/u8-width-tests: New file.
56141
56142         * lib/uniwidth/u8-width.c: New file.
56143         * modules/uniwidth/u8-width: New file.
56144
56145         * tests/uniwidth/test-uc_width.c: New file.
56146         * modules/uniwidth/width-tests: New file.
56147
56148         * lib/uniwidth/width.c: New file, from GNU libiconv.
56149         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
56150         * modules/uniwidth/width: New file.
56151
56152         * lib/uniwidth.h: New file, from GNU libiconv.
56153         * modules/uniwidth/base: New file.
56154
56155 2007-07-07  Bruno Haible  <bruno@clisp.org>
56156
56157         * lib/uniname.h: New file, from GNU gettext.
56158         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
56159         * lib/uniname/uninames.h: New file, from GNU gettext.
56160         * lib/uniname/uniname.c: New file, from GNU gettext.
56161         * tests/uniname/test-uninames.sh: New file.
56162         * tests/uniname/test-uninames.c: New file, from GNU gettext.
56163         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
56164         * modules/uniname/base: New file.
56165         * modules/uniname/uniname: New file.
56166         * modules/uniname/uniname-tests: New file.
56167         * MODULES.html.sh (Unicode string functions): Add the new modules.
56168
56169 2007-07-06  Bruno Haible  <bruno@clisp.org>
56170
56171         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
56172
56173 2007-07-06  Bruno Haible  <bruno@clisp.org>
56174
56175         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
56176         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
56177         includes <cygwin/sys_time.h> which includes <sys/select.h> which
56178         include <sys/time.h>.
56179         Reported by Eric Blake.
56180
56181 2007-07-06  Eric Blake  <ebb9@byu.net>
56182
56183         Fix testing canonicalize on cygwin.
56184         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
56185         Revert patch from 2007-06-19.
56186         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
56187         canonicalize module is also in use.
56188         * tests/test-canonicalize.c: New file.
56189         * tests/test-canonicalize.sh: Likewise.
56190         * modules/canonicalize-tests: Likewise.
56191
56192 2007-07-06  Jim Meyering  <jim@meyering.net>
56193
56194         * lib/getugroups.c (getugroups): Detect getgrent failure.
56195         Adjust comment to reflect reality: this function may return -1.
56196
56197 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
56198
56199         * build-aux/bootstrap (TP_URL,get_translations): Update to use
56200         the new TP address.
56201         (usage): Fix typo
56202         (gnulib_mk): New variable.
56203
56204 2007-07-05  Jim Meyering  <jim@meyering.net>
56205
56206         Don't let endgrent clobber errno, no matter how improbable.
56207         * lib/getugroups.c (getugroups): Save and restore errno around
56208         endgrent call.
56209
56210         Close the group DB even when failing with 2^31 or more members.
56211         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
56212
56213 2007-07-04  Jim Meyering  <jim@meyering.net>
56214
56215         * lib/getugroups.h: New file.
56216         * lib/getugroups.c: Include "getugroups.h".
56217         Remove uses of "register" keyword.
56218         Move local variable, "cp", down into scope where used.
56219         Give "username" parameter the "const" attribute.
56220         * modules/getugroups (Files): Add lib/getugroups.h
56221
56222 2007-07-04  Karl Berry  <karl@gnu.org>
56223
56224         * MODULES.html.sh (func_all_modules): Complete rename of
56225         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
56226
56227 2007-07-02  Bruno Haible  <bruno@clisp.org>
56228
56229         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
56230         mode, when inttypes.h comes from gnulib.
56231         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56232
56233 2007-07-02  Simon Josefsson  <simon@josefsson.org>
56234
56235         * NEWS: Mention lgpl module name change.
56236
56237         * modules/lgpl-2.1: Renamed from lgpl.
56238
56239         * NEWS: Mention gpl module name change.
56240
56241         * modules/gpl-3.0: New file, based on gpl-2.0.
56242
56243         * modules/gpl-2.0: Renamed from gpl.
56244
56245         * modules/gpl: Fix filename, doc/gpl.texi is now found at
56246         doc/gpl-2.0.texi.
56247
56248 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
56249
56250         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
56251         #define __STDC_LIMIT_MACROS temporarily while including
56252         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
56253         Problem reported by Joel E. Denny in
56254         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
56255
56256 2007-07-01  Bruno Haible  <bruno@clisp.org>
56257
56258         * lib/unistdio.h: New file.
56259         * lib/unistdio/u-asnprintf.h: New file.
56260         * lib/unistdio/u-asprintf.h: New file.
56261         * lib/unistdio/u-printf-args.c: New file.
56262         * lib/unistdio/u-printf-args.h: New file.
56263         * lib/unistdio/u-printf-parse.h: New file.
56264         * lib/unistdio/u-snprintf.h: New file.
56265         * lib/unistdio/u-sprintf.h: New file.
56266         * lib/unistdio/u-vasprintf.h: New file.
56267         * lib/unistdio/u-vsnprintf.h: New file.
56268         * lib/unistdio/u-vsprintf.h: New file.
56269         * lib/unistdio/ulc-asnprintf.c: New file.
56270         * lib/unistdio/ulc-asprintf.c: New file.
56271         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
56272         * lib/unistdio/ulc-printf-parse.c: New file.
56273         * lib/unistdio/ulc-snprintf.c: New file.
56274         * lib/unistdio/ulc-sprintf.c: New file.
56275         * lib/unistdio/ulc-vasnprintf.c: New file.
56276         * lib/unistdio/ulc-vasprintf.c: New file.
56277         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
56278         * lib/unistdio/ulc-vsnprintf.c: New file.
56279         * lib/unistdio/ulc-vsprintf.c: New file.
56280         * lib/unistdio/u8-asnprintf.c: New file.
56281         * lib/unistdio/u8-asprintf.c: New file.
56282         * lib/unistdio/u8-printf-parse.c: New file.
56283         * lib/unistdio/u8-snprintf.c: New file.
56284         * lib/unistdio/u8-sprintf.c: New file.
56285         * lib/unistdio/u8-vasnprintf.c: New file.
56286         * lib/unistdio/u8-vasprintf.c: New file.
56287         * lib/unistdio/u8-vsnprintf.c: New file.
56288         * lib/unistdio/u8-vsprintf.c: New file.
56289         * lib/unistdio/u8-u8-asnprintf.c: New file.
56290         * lib/unistdio/u8-u8-asprintf.c: New file.
56291         * lib/unistdio/u8-u8-snprintf.c: New file.
56292         * lib/unistdio/u8-u8-sprintf.c: New file.
56293         * lib/unistdio/u8-u8-vasnprintf.c: New file.
56294         * lib/unistdio/u8-u8-vasprintf.c: New file.
56295         * lib/unistdio/u8-u8-vsnprintf.c: New file.
56296         * lib/unistdio/u8-u8-vsprintf.c: New file.
56297         * lib/unistdio/u16-asnprintf.c: New file.
56298         * lib/unistdio/u16-asprintf.c: New file.
56299         * lib/unistdio/u16-printf-parse.c: New file.
56300         * lib/unistdio/u16-snprintf.c: New file.
56301         * lib/unistdio/u16-sprintf.c: New file.
56302         * lib/unistdio/u16-vasnprintf.c: New file.
56303         * lib/unistdio/u16-vasprintf.c: New file.
56304         * lib/unistdio/u16-vsnprintf.c: New file.
56305         * lib/unistdio/u16-vsprintf.c: New file.
56306         * lib/unistdio/u16-u16-asnprintf.c: New file.
56307         * lib/unistdio/u16-u16-asprintf.c: New file.
56308         * lib/unistdio/u16-u16-snprintf.c: New file.
56309         * lib/unistdio/u16-u16-sprintf.c: New file.
56310         * lib/unistdio/u16-u16-vasnprintf.c: New file.
56311         * lib/unistdio/u16-u16-vasprintf.c: New file.
56312         * lib/unistdio/u16-u16-vsnprintf.c: New file.
56313         * lib/unistdio/u16-u16-vsprintf.c: New file.
56314         * lib/unistdio/u32-asnprintf.c: New file.
56315         * lib/unistdio/u32-asprintf.c: New file.
56316         * lib/unistdio/u32-printf-parse.c: New file.
56317         * lib/unistdio/u32-snprintf.c: New file.
56318         * lib/unistdio/u32-sprintf.c: New file.
56319         * lib/unistdio/u32-vasnprintf.c: New file.
56320         * lib/unistdio/u32-vasprintf.c: New file.
56321         * lib/unistdio/u32-vsnprintf.c: New file.
56322         * lib/unistdio/u32-vsprintf.c: New file.
56323         * lib/unistdio/u32-u32-asnprintf.c: New file.
56324         * lib/unistdio/u32-u32-asprintf.c: New file.
56325         * lib/unistdio/u32-u32-snprintf.c: New file.
56326         * lib/unistdio/u32-u32-sprintf.c: New file.
56327         * lib/unistdio/u32-u32-vasnprintf.c: New file.
56328         * lib/unistdio/u32-u32-vasprintf.c: New file.
56329         * lib/unistdio/u32-u32-vsnprintf.c: New file.
56330         * lib/unistdio/u32-u32-vsprintf.c: New file.
56331         * tests/unistdio/test-ulc-asnprintf1.c: New file.
56332         * tests/unistdio/test-ulc-asnprintf1.h: New file.
56333         * tests/unistdio/test-ulc-printf1.h: New file.
56334         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
56335         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
56336         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
56337         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
56338         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
56339         * tests/unistdio/test-ulc-vasprintf1.c: New file.
56340         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
56341         * tests/unistdio/test-ulc-vsprintf1.c: New file.
56342         * tests/unistdio/test-u8-asnprintf1.c: New file.
56343         * tests/unistdio/test-u8-asnprintf1.h: New file.
56344         * tests/unistdio/test-u8-printf1.h: New file.
56345         * tests/unistdio/test-u8-vasnprintf1.c: New file.
56346         * tests/unistdio/test-u8-vasnprintf2.c: New file.
56347         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
56348         * tests/unistdio/test-u8-vasnprintf3.c: New file.
56349         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
56350         * tests/unistdio/test-u8-vasprintf1.c: New file.
56351         * tests/unistdio/test-u8-vsnprintf1.c: New file.
56352         * tests/unistdio/test-u8-vsprintf1.c: New file.
56353         * tests/unistdio/test-u16-asnprintf1.c: New file.
56354         * tests/unistdio/test-u16-asnprintf1.h: New file.
56355         * tests/unistdio/test-u16-printf1.h: New file.
56356         * tests/unistdio/test-u16-vasnprintf1.c: New file.
56357         * tests/unistdio/test-u16-vasnprintf2.c: New file.
56358         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
56359         * tests/unistdio/test-u16-vasnprintf3.c: New file.
56360         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
56361         * tests/unistdio/test-u16-vasprintf1.c: New file.
56362         * tests/unistdio/test-u16-vsnprintf1.c: New file.
56363         * tests/unistdio/test-u16-vsprintf1.c: New file.
56364         * tests/unistdio/test-u32-asnprintf1.c: New file.
56365         * tests/unistdio/test-u32-asnprintf1.h: New file.
56366         * tests/unistdio/test-u32-printf1.h: New file.
56367         * tests/unistdio/test-u32-vasnprintf1.c: New file.
56368         * tests/unistdio/test-u32-vasnprintf2.c: New file.
56369         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
56370         * tests/unistdio/test-u32-vasnprintf3.c: New file.
56371         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
56372         * tests/unistdio/test-u32-vasprintf1.c: New file.
56373         * tests/unistdio/test-u32-vsnprintf1.c: New file.
56374         * tests/unistdio/test-u32-vsprintf1.c: New file.
56375         * modules/unistdio/base: New file.
56376         * modules/unistdio/u-printf-args: New file.
56377         * modules/unistdio/ulc-asnprintf: New file.
56378         * modules/unistdio/ulc-asprintf: New file.
56379         * modules/unistdio/ulc-fprintf: New file.
56380         * modules/unistdio/ulc-printf-parse: New file.
56381         * modules/unistdio/ulc-snprintf: New file.
56382         * modules/unistdio/ulc-sprintf: New file.
56383         * modules/unistdio/ulc-vasnprintf: New file.
56384         * modules/unistdio/ulc-vasprintf: New file.
56385         * modules/unistdio/ulc-vfprintf: New file.
56386         * modules/unistdio/ulc-vsnprintf: New file.
56387         * modules/unistdio/ulc-vsprintf: New file.
56388         * modules/unistdio/u8-asnprintf: New file.
56389         * modules/unistdio/u8-asprintf: New file.
56390         * modules/unistdio/u8-printf-parse: New file.
56391         * modules/unistdio/u8-snprintf: New file.
56392         * modules/unistdio/u8-sprintf: New file.
56393         * modules/unistdio/u8-vasnprintf: New file.
56394         * modules/unistdio/u8-vasprintf: New file.
56395         * modules/unistdio/u8-vsnprintf: New file.
56396         * modules/unistdio/u8-vsprintf: New file.
56397         * modules/unistdio/u8-u8-asnprintf: New file.
56398         * modules/unistdio/u8-u8-asprintf: New file.
56399         * modules/unistdio/u8-u8-snprintf: New file.
56400         * modules/unistdio/u8-u8-sprintf: New file.
56401         * modules/unistdio/u8-u8-vasnprintf: New file.
56402         * modules/unistdio/u8-u8-vasprintf: New file.
56403         * modules/unistdio/u8-u8-vsnprintf: New file.
56404         * modules/unistdio/u8-u8-vsprintf: New file.
56405         * modules/unistdio/u16-asnprintf: New file.
56406         * modules/unistdio/u16-asprintf: New file.
56407         * modules/unistdio/u16-printf-parse: New file.
56408         * modules/unistdio/u16-snprintf: New file.
56409         * modules/unistdio/u16-sprintf: New file.
56410         * modules/unistdio/u16-vasnprintf: New file.
56411         * modules/unistdio/u16-vasprintf: New file.
56412         * modules/unistdio/u16-vsnprintf: New file.
56413         * modules/unistdio/u16-vsprintf: New file.
56414         * modules/unistdio/u16-u16-asnprintf: New file.
56415         * modules/unistdio/u16-u16-asprintf: New file.
56416         * modules/unistdio/u16-u16-snprintf: New file.
56417         * modules/unistdio/u16-u16-sprintf: New file.
56418         * modules/unistdio/u16-u16-vasnprintf: New file.
56419         * modules/unistdio/u16-u16-vasprintf: New file.
56420         * modules/unistdio/u16-u16-vsnprintf: New file.
56421         * modules/unistdio/u16-u16-vsprintf: New file.
56422         * modules/unistdio/u32-asnprintf: New file.
56423         * modules/unistdio/u32-asprintf: New file.
56424         * modules/unistdio/u32-printf-parse: New file.
56425         * modules/unistdio/u32-snprintf: New file.
56426         * modules/unistdio/u32-sprintf: New file.
56427         * modules/unistdio/u32-vasnprintf: New file.
56428         * modules/unistdio/u32-vasprintf: New file.
56429         * modules/unistdio/u32-vsnprintf: New file.
56430         * modules/unistdio/u32-vsprintf: New file.
56431         * modules/unistdio/u32-u32-asnprintf: New file.
56432         * modules/unistdio/u32-u32-asprintf: New file.
56433         * modules/unistdio/u32-u32-snprintf: New file.
56434         * modules/unistdio/u32-u32-sprintf: New file.
56435         * modules/unistdio/u32-u32-vasnprintf: New file.
56436         * modules/unistdio/u32-u32-vasprintf: New file.
56437         * modules/unistdio/u32-u32-vsnprintf: New file.
56438         * modules/unistdio/u32-u32-vsprintf: New file.
56439         * modules/unistdio/ulc-asnprintf-tests: New file.
56440         * modules/unistdio/ulc-vasnprintf-tests: New file.
56441         * modules/unistdio/ulc-vasprintf-tests: New file.
56442         * modules/unistdio/ulc-vsnprintf-tests: New file.
56443         * modules/unistdio/ulc-vsprintf-tests: New file.
56444         * modules/unistdio/u8-asnprintf-tests: New file.
56445         * modules/unistdio/u8-vasnprintf-tests: New file.
56446         * modules/unistdio/u8-vasprintf-tests: New file.
56447         * modules/unistdio/u8-vsnprintf-tests: New file.
56448         * modules/unistdio/u8-vsprintf-tests: New file.
56449         * modules/unistdio/u16-asnprintf-tests: New file.
56450         * modules/unistdio/u16-vasnprintf-tests: New file.
56451         * modules/unistdio/u16-vasprintf-tests: New file.
56452         * modules/unistdio/u16-vsnprintf-tests: New file.
56453         * modules/unistdio/u16-vsprintf-tests: New file.
56454         * modules/unistdio/u32-asnprintf-tests: New file.
56455         * modules/unistdio/u32-vasnprintf-tests: New file.
56456         * modules/unistdio/u32-vasprintf-tests: New file.
56457         * modules/unistdio/u32-vsnprintf-tests: New file.
56458         * modules/unistdio/u32-vsprintf-tests: New file.
56459         * MODULES.html.sh (Unicode string functions): Add the new modules.
56460
56461 2007-07-01  Bruno Haible  <bruno@clisp.org>
56462
56463         * lib/sprintf.c (sprintf): Limit the available length estimation,
56464         to avoid address wraparound.
56465         * lib/vsprintf.c (vsprintf): Likewise.
56466         * modules/sprintf-posix (Dependencies): Add stdint.
56467         * modules/vsprintf-posix (Dependencies): Likewise.
56468
56469 2007-07-01  Bruno Haible  <bruno@clisp.org>
56470
56471         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
56472         Windows PATH as well. Conservative double-quoting. Comments.
56473
56474 2007-07-01  Bruno Haible  <bruno@clisp.org>
56475             Eric Blake  <ebb9@byu.net>
56476             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56477
56478         * gnulib-tool (self_abspathname): Fix algorithm to cope with
56479         empty components in $PATH, denoting '.'.
56480
56481 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56482
56483         * gnulib-tool: Fix indentation.
56484         (func_create_megatestdir): Likewise.
56485         Report by Bruno Haible.
56486
56487 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56488
56489         Sync from Automake.
56490         * build-aux/gnupload: Fix shell portability issues with for loops.
56491         Report by Karl Berry.
56492
56493 2007-06-29  Simon Josefsson  <simon@josefsson.org>
56494
56495         * build-aux/maint.mk (POURL): Use translationproject.org.
56496
56497 2007-06-27  Simon Josefsson  <simon@josefsson.org>
56498             Bruno Haible  <bruno@clisp.org>
56499
56500         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
56501         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
56502         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
56503         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
56504         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
56505
56506 2007-06-27  Bruno Haible  <bruno@clisp.org>
56507
56508         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
56509         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
56510
56511 2007-06-26  Karl Berry  <karl@gnu.org>
56512
56513         * MODULES.html.sh: remove xreadlink-with-size.
56514
56515 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
56516
56517         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
56518         method that I hope also handles the double-include problem noted
56519         by Bruno Haible in
56520         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
56521
56522 2007-06-23  Bruno Haible  <bruno@clisp.org>
56523
56524         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56525         Don't let the 'mostlyclean' target fail if the last subdirectory could
56526         not be removed.
56527         Reported by Karl Berry.
56528
56529 2007-06-23  Bruno Haible  <bruno@clisp.org>
56530
56531         * gnulib-tool (echo): Add a speedier workaround for ksh.
56532         * tests/test-echo.sh: Likewise.
56533
56534 2007-06-23  Bruno Haible  <bruno@clisp.org>
56535
56536         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
56537         * tests/test-echo.sh: Likewise.
56538
56539 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56540
56541         * gnulib-tool (IFS): Initialize early, so we don't set it to
56542         empty later.
56543         (self_abspathname): Rewrite algorithm to set it, reindent.
56544         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
56545         (func_create_megatestdir): Merge some sed scripts.
56546
56547 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
56548
56549         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
56550         exposed by Sun Studio 11 cc on Solaris 8.
56551
56552 2007-06-22  Bruno Haible  <bruno@clisp.org>
56553
56554         * gnulib-tool (echo): Ensure the echo primitive does not interpret
56555         backslashes.
56556         * tests/test-echo.sh: New file.
56557
56558 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56559
56560         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
56561         simplify `sed_replace_build_aux' scripts, they are portable but
56562         echoing them with `echo' is not.
56563         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
56564
56565 2007-06-21  Karl Berry  <karl@gnu.org>
56566
56567         * config/srclist.txt: guess we can't handle the licenses via
56568         srclist at the moment.
56569
56570 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
56571
56572         * MODULES.html.sh: Add include_next.
56573         * modules/include_next: New file.
56574
56575 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
56576
56577         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
56578         INCLUDE_NEXT.
56579         (gl_CHECK_NEXT_HEADERS): New macro.
56580         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
56581         the obsolescent gl_ABSOLUTE_HEADER.
56582         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
56583         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
56584         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
56585         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56586         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
56587         * m4/math_h.m4 (gl_MATH_H): Likewise.
56588         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
56589         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
56590         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
56591         * m4/stdint.m4 (gl_STDINT_H): Likewise.
56592         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
56593         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
56594         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
56595         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56596         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56597         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
56598         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
56599         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
56600         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
56601         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
56602         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
56603         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
56604         * m4/inttypes.m4 (gl_INTTYPES_H): Define
56605         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
56606         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
56607         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
56608         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
56609         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
56610         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
56611         * lib/float_.h: Likewise.
56612         * lib/inttypes_.h: Likewise.
56613         * lib/math_.h: Likewise.
56614         * lib/search_.h: Likewise.
56615         * lib/signal_.h: Likewise.
56616         * lib/stdint_.h: Likewise.
56617         * lib/stdio_.h: Likewise.
56618         * lib/stdlib_.h: Likewise.
56619         * lib/string_.h: Likewise.
56620         * lib/sys_stat_.h: Likewise.
56621         * lib/sys_time_.h: Likewise.
56622         * lib/time_.h: Likewise.
56623         * lib/unistd_.h: Likewise.
56624         * lib/wchar_.h: Likewise.
56625         * lib/wctype_.h: Likewise.
56626         * lib/dirent_.h: Likewise.
56627         * lib/iconv_.h: Likewise.
56628         * lib/locale_.h: Likewise.
56629         * lib/netinet_in_.h: Likewise.
56630         * lib/sys_select_.h: Likewise.
56631         * lib/sys_socket_.h: Likewise.
56632         * lib/sysexits_.h: Likewise.
56633         * modules/fcntl (Depends-on): Depend on include_next, not
56634         absolute_header.
56635         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
56636         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
56637         * modules/fchdir: Likewise.
56638         * modules/float: Likewise.
56639         * modules/iconv_open: Likewise.
56640         * modules/inttypes: Likewise.
56641         * modules/locale: Likewise.
56642         * modules/math: Likewise.
56643         * modules/netinet_in: Likewise.
56644         * modules/search: Likewise.
56645         * modules/signal: Likewise.
56646         * modules/stdint: Likewise.
56647         * modules/stdio: Likewise.
56648         * modules/stdlib: Likewise.
56649         * modules/string: Likewise.
56650         * modules/sys_select: Likewise.
56651         * modules/sys_socket: Likewise.
56652         * modules/sys_stat: Likewise.
56653         * modules/sys_time: Likewise.
56654         * modules/sysexits: Likewise.
56655         * modules/time: Likewise.
56656         * modules/unistd: Likewise.
56657         * modules/wchar: Likewise.
56658         * modules/wctype: Likewise.
56659         * modules/sys_stat: Change maintainer to "all".
56660         * modules/unistd: Likewise.
56661
56662 2007-06-20  Karl Berry  <karl@gnu.org>
56663
56664         * config/srclist.txt: track www changes in license files.
56665
56666 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
56667
56668         * build-aux/bootstrap: Remove stray dot.
56669         Make sure build_aux settings are honored when linking
56670         gnulib_extra_files.
56671
56672 2007-06-19  Eric Blake  <ebb9@byu.net>
56673
56674         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
56675         Allow compilation on cygwin.
56676
56677 2007-06-19  Jim Meyering  <jim@meyering.net>
56678
56679         xreadlink-with-size: Remove module.  No longer used.
56680         Ex-callers now use xreadlink or mreadlink-with-size.
56681         * modules/xreadlink-with-size: Remove module.
56682         * lib/xreadlink-with-size.c: Remove file.
56683         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
56684         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
56685         just before the function definition *is* accurate.
56686
56687         Eliminate one way canonicalize_filename_mode could exit.
56688         * lib/canonicalize.c (canonicalize_filename_mode):
56689         Use mreadlink_with_size, not xreadlink_with_size.
56690
56691 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
56692
56693         Detect porting problems to FreeBSD/arm, which has time_t wider than
56694         long int.  Original problem reported for GNU diff by Xin Li in
56695         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
56696         * modules/getdate (Depends-on): Add intprops, verify.
56697         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
56698         is an integer type no wider than long int.
56699
56700 2007-06-18  Jim Meyering  <jim@meyering.net>
56701
56702         New module: mreadlink-with-size.
56703         * MODULES.html.sh: Add mreadlink-with-size.
56704         * modules/mreadlink-with-size: New module
56705         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
56706         not xreadlink-with-size.
56707         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
56708
56709 2007-06-16  Bruno Haible  <bruno@clisp.org>
56710
56711         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
56712         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
56713         Reported by Gary V. Vaughan <gary@gnu.org>.
56714
56715 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
56716
56717         Revamp lchown so that it lives in unistd.h where it belongs.
56718         * lib/lchown.h: Remove.
56719         * lib/dirchownmod.c: Don't include lib/lchown.h.
56720         * lib/fchownat.c: Likewise.
56721         * lib/openat.c: Likewise.
56722         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
56723         does not follow symlinks.
56724         (EOPNOTSUPP): Define if not defined.
56725         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
56726         is defined to 0.
56727         (lchown): New decl.
56728         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
56729         Do not check for lchown decl.
56730         Set REPLACE_LCHOWN.
56731         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
56732         REPLACE_LCHOWN.
56733         * modules/chown: Make it clear it follows symlinks.
56734         * modules/lchown: Make it clear it doesn't follow symlinks.
56735         (Files): Remove lib/lchown.h
56736         (Depends-on): Add unistd.
56737         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
56738         (Include): Include <unistd.h>, not "lchown.h".
56739         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
56740         REPLACE_LCHOWN.
56741
56742 2007-06-15  Jim Meyering  <jim@meyering.net>
56743
56744         Change license (GPL to LGPL) of fsusage and dependents.
56745         * modules/fsusage (License): Change to LGPL.
56746         * modules/full-read (License): Likewise.
56747         * modules/full-write (License): Likewise.
56748         * modules/safe-read (License): Likewise.
56749         * modules/safe-write (License): Likewise.
56750
56751 2007-06-14  Ben Pfaff  <blp@gnu.org>
56752
56753         Missing part of allocsa -> malloca transition.
56754         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
56755         gl_MALLOCA.
56756
56757 2007-06-12  Bruno Haible  <bruno@clisp.org>
56758
56759         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
56760         to ia64, x86_64, i386.
56761         Reported by Eric Blake.
56762
56763 2007-06-12  Bruno Haible  <bruno@clisp.org>
56764
56765         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
56766         cross-compiling to x86_64.
56767
56768 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
56769
56770         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
56771         glitch reported by Ralf Wildenhues in
56772         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
56773
56774         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
56775         Vin Shelton.
56776
56777 2007-06-11  Bruno Haible  <bruno@clisp.org>
56778
56779         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
56780         replacement string.
56781         Reported by Eric Blake.
56782
56783 2007-06-10  Bruno Haible  <bruno@clisp.org>
56784
56785         Prepare vasnprintf code for use with Unicode strings.
56786         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
56787         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
56788         TYPE_U32_STRING.
56789         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
56790         a_u32_string variants.
56791         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
56792         * lib/printf-args.c: Don't include config.h and the specification
56793         header if PRINTF_FETCHARGS is already defined.
56794         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
56795         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
56796         TYPE_U16_STRING, TYPE_U32_STRING.
56797         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
56798         u16_directive, u16_directives, u32_directive, u32_directives): New
56799         types.
56800         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
56801         New declarations.
56802         * lib/printf-parse.c: Don't include config.h and the specification
56803         header if PRINTF_PARSE is already defined. Eliminate the set of
56804         parameters for WIDE_CHAR_VERSION; the user of this file must provide
56805         them now. Include c-ctype.h.
56806         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
56807         directive and CHAR_T_ONLY_ASCII.
56808         * lib/vasnprintf.c: Don't include config.h and the specification header
56809         if VASNPRINTF is already defined.
56810         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
56811         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
56812         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
56813         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
56814         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
56815         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
56816         code accordingly.
56817         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
56818         pad_ourselves also in this case, with the 'c' and 's' directives, and
56819         with a different notion of "width".
56820         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
56821
56822 2007-06-10  Bruno Haible  <bruno@clisp.org>
56823
56824         * modules/unistr/u32-mbsnlen: New file.
56825         * lib/unistr/u32-mbsnlen.c: New file.
56826
56827         * modules/unistr/u16-mbsnlen: New file.
56828         * lib/unistr/u16-mbsnlen.c: New file.
56829
56830         * modules/unistr/u8-mbsnlen: New file.
56831         * lib/unistr/u8-mbsnlen.c: New file.
56832
56833         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
56834         declarations.
56835
56836 2007-06-10  Bruno Haible  <bruno@clisp.org>
56837
56838         * lib/string_.h (mbsnlen): New declaration.
56839         * lib/mbsnlen.c: New file.
56840         * m4/mbsnlen.m4: New file.
56841         * modules/mbsnlen: New file.
56842         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
56843         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
56844         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
56845
56846 2007-06-10  Bruno Haible  <bruno@clisp.org>
56847
56848         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
56849
56850 2007-06-10  Bruno Haible  <bruno@clisp.org>
56851
56852         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
56853         * lib/mbuiter.h: Likewise.
56854
56855 2007-06-10  Bruno Haible  <bruno@clisp.org>
56856
56857         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
56858         declaration.
56859
56860 2007-06-10  Karl Berry  <karl@gnu.org>
56861
56862         * config/srclist.txt: remove gettext entries, Bruno prefers
56863         to update individually.
56864
56865 2007-06-10  Bruno Haible  <bruno@clisp.org>
56866
56867         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
56868         'maxlen'. Ensure only length + width bytes are allocated, not
56869         length + 1 + width.
56870
56871 2007-06-09  Bruno Haible  <bruno@clisp.org>
56872
56873         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
56874         (CHAR_T): Remove macro.
56875         (VASNPRINTF): Update.
56876
56877 2007-06-09  Bruno Haible  <bruno@clisp.org>
56878
56879         * MODULES.html.sh (Unicode string functions): Add the new modules.
56880
56881         * modules/uniconv/u32-conv-to-enc: New file.
56882         * lib/uniconv/u32-conv-to-enc.c: New file.
56883         * modules/uniconv/u32-conv-to-enc-tests: New file.
56884         * tests/uniconv/test-u32-conv-to-enc.c: New file.
56885
56886         * modules/uniconv/u16-conv-to-enc: New file.
56887         * lib/uniconv/u16-conv-to-enc.c: New file.
56888         * lib/uniconv/u-conv-to-enc.h: New file.
56889         * modules/uniconv/u16-conv-to-enc-tests: New file.
56890         * tests/uniconv/test-u16-conv-to-enc.c: New file.
56891
56892         * modules/uniconv/u8-conv-to-enc: New file.
56893         * lib/uniconv/u8-conv-to-enc.c: New file.
56894         * modules/uniconv/u8-conv-to-enc-tests: New file.
56895         * tests/uniconv/test-u8-conv-to-enc.c: New file.
56896
56897         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
56898         u32_conv_to_encoding): New declarations.
56899
56900 2007-06-09  Bruno Haible  <bruno@clisp.org>
56901
56902         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
56903
56904 2007-06-09  Bruno Haible  <bruno@clisp.org>
56905
56906         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
56907         * modules/malloca: Renamed from modules/allocsa, updated.
56908         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
56909         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
56910         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
56911         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
56912         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
56913         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
56914         * modules/xmalloca: Renamed from modules/xallocsa, updated.
56915         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
56916         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
56917         * modules/c-strcasestr (Depends-on): Update.
56918         * lib/c-strcasestr.c: Update.
56919         * modules/c-strstr (Depends-on): Update.
56920         * lib/c-strstr.c: Update.
56921         * modules/canonicalize-lgpl (Depends-on): Update.
56922         * lib/canonicalize-lgpl.c: Update.
56923         * modules/clean-temp (Depends-on): Update.
56924         * lib/clean-temp.c: Update.
56925         * modules/csharpcomp (Depends-on): Update.
56926         * lib/csharpcomp.c: Update.
56927         * modules/csharpexec (Depends-on): Update.
56928         * lib/csharpexec.c: Update.
56929         * modules/javacomp (Depends-on): Update.
56930         * lib/javacomp.c: Update.
56931         * modules/javaexec (Depends-on): Update.
56932         * lib/javaexec.c: Update.
56933         * modules/mbscasestr (Depends-on): Update.
56934         * lib/mbscasestr.c: Update.
56935         * modules/mbsstr (Depends-on): Update.
56936         * lib/mbsstr.c: Update.
56937         * modules/setenv (Depends-on): Update.
56938         * lib/setenv.c: Update.
56939         * modules/strcasestr (Depends-on): Update.
56940         * lib/strcasestr.c: Update.
56941         * modules/striconveha (Depends-on): Update.
56942         * lib/striconveha.c: Update.
56943         * modules/relocatable-prog-wrapper (Files): Update.
56944         * lib/relocwrapper.c: Update.
56945         * build-aux/install-reloc: Update.
56946         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
56947
56948 2007-06-08  Bruno Haible  <bruno@clisp.org>
56949
56950         Port to uClibc.
56951         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
56952         * lib/fpurge.c (fpurge): Likewise.
56953         * lib/freading.c (freading): Likewise.
56954         * lib/fseeko.c (rpl_fseeko): Likewise.
56955         * lib/fseterr.c (fseterr): Likewise.
56956         * lib/fwriting.c (fwriting): Likewise.
56957         * tests/test-fflush.c (main): Avoid a failure on uClibc.
56958
56959 2007-06-08  Bruno Haible  <bruno@clisp.org>
56960
56961         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
56962         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
56963         * modules/gettext (Files): Add m4/intlmacosx.m4.
56964
56965 2007-06-07  Bruno Haible  <bruno@clisp.org>
56966
56967         * modules/localename-tests: New file.
56968         * tests/test-localename.c: New file.
56969
56970         New module 'localename'.
56971         * lib/localename.h: New file.
56972         * lib/localename.c: New file, from GNU gettext.
56973         * m4/localename.m4: New file.
56974         * modules/localename: New file.
56975
56976 2007-06-07  Bruno Haible  <bruno@clisp.org>
56977
56978         Work around the lack of <wchar.h> on some builds of uClibc.
56979         * doc/headers/wchar.texi: Update.
56980         * lib/wchar_.h: Include <wchar.h> only if it exists.
56981         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
56982         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
56983         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
56984         doesn't exist.
56985         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
56986         * modules/mbfile (Depends-on): Add wchar.
56987         * modules/mbiter (Depends-on): Likewise.
56988         * modules/mbuiter (Depends-on): Likewise.
56989         Reported by Simon Josefsson.
56990
56991 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
56992
56993         Work around problem reported by Steven M. Schweda in
56994         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
56995         Tru64 5.1B with the Compaq compiler environment installed declares
56996         an 'isblank' function but does not define it in the C library.
56997         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
56998         * lib/regex_internal.h (isblank): Likewise.
56999         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
57000         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57001
57002 2007-06-05  Bruno Haible  <bruno@clisp.org>
57003
57004         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
57005         ia64.
57006         * modules/printf-safe: New file.
57007         * modules/fprintf-posix (Depends-on): Add printf-safe.
57008         * modules/printf-posix (Depends-on): Likewise.
57009         * modules/snprintf-posix (Depends-on): Likewise.
57010         * modules/sprintf-posix (Depends-on): Likewise.
57011         * modules/vasnprintf-posix (Depends-on): Likewise.
57012         * modules/vasprintf-posix (Depends-on): Likewise.
57013         * modules/vfprintf-posix (Depends-on): Likewise.
57014         * modules/vprintf-posix (Depends-on): Likewise.
57015         * modules/vsnprintf-posix (Depends-on): Likewise.
57016         * modules/vsprintf-posix (Depends-on): Likewise.
57017         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
57018         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
57019         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
57020         "no" on i386, x86_64, ia64.
57021         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
57022         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57023         on i386, x86_64, ia64.
57024         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
57025         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57026         on i386, x86_64, ia64.
57027         * tests/test-vasnprintf-posix.c: Include float.h.
57028         (LDBL80_WORDS): New macro.
57029         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57030         on i386, x86_64, ia64.
57031         * tests/test-vasprintf-posix.c: Include float.h.
57032         (LDBL80_WORDS): New macro.
57033         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57034         on i386, x86_64, ia64.
57035         * tests/test-snprintf-posix.c: Include float.h.
57036         * tests/test-sprintf-posix.c: Likewise.
57037         * tests/test-vsnprintf-posix.c: Likewise.
57038         * tests/test-vsprintf-posix.c: Likewise.
57039
57040 2007-06-05  Bruno Haible  <bruno@clisp.org>
57041
57042         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
57043         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
57044         non-IEEE numbers on i386, x86_64, ia64.
57045         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
57046         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
57047         * tests/test-isnanl.h: Include float.h.
57048         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
57049
57050 2007-06-05  Bruno Haible  <bruno@clisp.org>
57051
57052         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
57053         also the %a / %A. Handle the %a / %A code before this extra handling.
57054
57055 2007-06-05  Bruno Haible  <bruno@clisp.org>
57056
57057         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
57058         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
57059
57060 2007-06-05  Bruno Haible  <bruno@clisp.org>
57061
57062         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
57063         typo in variable name.
57064
57065 2007-06-05  Eric Blake  <ebb9@byu.net>
57066
57067         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
57068         Reported by Simon Josefsson.
57069
57070 2007-06-04  Bruno Haible  <bruno@clisp.org>
57071
57072         Avoid test failures on some PowerPC platforms.
57073         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
57074         Define differently for PowerPC.
57075         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
57076         Reported by Gary V. Vaughan <gary@gnu.org>.
57077
57078 2007-06-02  Bruno Haible  <bruno@clisp.org>
57079
57080         Fix test-stdint failure on FreeBSD/ia64.
57081         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
57082         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
57083         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
57084         * doc/headers/stdint.texi: Update.
57085
57086 2007-06-01  Bruno Haible  <bruno@clisp.org>
57087
57088         * tests/test-binary-io.c (main): Pass a third argument to open().
57089         Reported by Gary V. Vaughan <gary@gnu.org>.
57090
57091 2007-06-01  Bruno Haible  <bruno@clisp.org>
57092
57093         * doc/functions/frexpl.texi: Update for mingw.
57094
57095 2007-06-01  Bruno Haible  <bruno@clisp.org>
57096
57097         * tests/test-lseek.c (main): Disable test of errno for invalid third
57098         argument.
57099         * doc/functions/lseek.texi: Update.
57100         Reported by Gary V. Vaughan <gary@gnu.org>.
57101
57102 2007-05-28  Bruno Haible  <bruno@clisp.org>
57103
57104         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
57105
57106 2007-05-31  Eric Blake  <ebb9@byu.net>
57107
57108         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
57109         cross compiling.
57110
57111 2007-05-30  Eric Blake  <ebb9@byu.net>
57112         and Bruno Haible  <bruno@clisp.org>
57113
57114         Work around mingw test failures exposed by m4-1.4.9b.
57115         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
57116         * tests/test-unistd.c: Disable uid_t and git_t tests for the
57117         moment.
57118
57119 2007-05-30  Bruno Haible  <bruno@clisp.org>
57120
57121         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
57122         assuming that they are closed. Needed on HP-UX 11.
57123
57124 2007-05-29  Bruno Haible  <bruno@clisp.org>
57125
57126         Fix a problem with #include_next.
57127         * lib/dirent_.h: Split the double-inclusion guard.
57128         * lib/fcntl_.h: Likewise.
57129         * lib/float_.h: Likewise.
57130         * lib/iconv_.h: Likewise.
57131         * lib/inttypes_.h: Likewise.
57132         * lib/locale_.h: Likewise.
57133         * lib/math_.h: Likewise.
57134         * lib/netinet_in_.h: Likewise.
57135         * lib/search_.h: Likewise.
57136         * lib/signal_.h: Likewise.
57137         * lib/stdint_.h: Likewise.
57138         * lib/stdio_.h: Likewise.
57139         * lib/stdlib_.h: Likewise.
57140         * lib/string_.h: Likewise.
57141         * lib/sys_select_.h: Likewise.
57142         * lib/sys_socket_.h: Likewise.
57143         * lib/sys_stat_.h: Likewise.
57144         * lib/sys_time_.h: Likewise.
57145         * lib/sysexits_.h: Likewise.
57146         * lib/time_.h: Likewise.
57147         * lib/unistd_.h: Likewise.
57148         * lib/wchar_.h: Likewise.
57149         * lib/wctype_.h: Likewise.
57150
57151 2007-05-29  Bruno Haible  <bruno@clisp.org>
57152
57153         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
57154         for the moment.
57155
57156 2007-05-29  Bruno Haible  <bruno@clisp.org>
57157
57158         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
57159         invocation.
57160         Reported by Eric Blake.
57161
57162 2007-05-29  Bruno Haible  <bruno@clisp.org>
57163
57164         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
57165         compiling case.
57166
57167 2007-05-29  Eric Blake  <ebb9@byu.net>
57168             Bruno Haible  <bruno@clisp.org>
57169
57170         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
57171         cross compiles.
57172
57173 2007-05-28  Eric Blake  <ebb9@byu.net>
57174
57175         * modules/closein-tests (test_closein_LDADD): Support test on
57176         cygwin with libtool.
57177
57178 2007-05-28  Bruno Haible  <bruno@clisp.org>
57179
57180         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
57181         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57182         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57183         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57184         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57185         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57186         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57187         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57188         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57189
57190 2007-05-28  Eric Blake  <ebb9@byu.net>
57191
57192         Unconditionally include <config.h> in unit tests.
57193         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
57194         * tests/test-allocsa.c, tests/test-arcfour.c,
57195         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
57196         tests/test-array_list.c, tests/test-array_oset.c,
57197         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
57198         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
57199         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
57200         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
57201         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
57202         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
57203         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
57204         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
57205         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
57206         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
57207         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
57208         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
57209         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
57210         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
57211         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
57212         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
57213         test-md5.c, test-memmem.c, test-printf-posix.c,
57214         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
57215         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
57216         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
57217         test-strcasestr.c, test-striconv.c, test-striconveh.c,
57218         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
57219         test-vasnprintf-posix2.c, test-vasnprintf.c,
57220         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
57221         test-vfprintf-posix.c, test-vprintf-posix.c,
57222         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
57223         test-xvasprintf.c: Likewise.
57224
57225 2007-05-28  Bruno Haible  <bruno@clisp.org>
57226
57227         * gnulib-tool (func_import): Remember the --with-tests command-line
57228         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
57229         Reported by Eric Blake.
57230
57231 2007-05-28  Bruno Haible  <bruno@clisp.org>
57232
57233         * modules/ftell-tests: New file.
57234         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
57235         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
57236
57237         * lib/ftell.c: New file.
57238         * modules/ftell: New file.
57239         * m4/ftell.m4: New file.
57240         * doc/functions/ftell.texi: Update.
57241         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
57242         REPLACE_FTELL.
57243         * lib/stdio_.h (rpl_ftell): New declaration.
57244         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
57245         REPLACE_FTELL.
57246
57247 2007-05-28  Eric Blake  <ebb9@byu.net>
57248
57249         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
57250
57251 2007-05-28  Bruno Haible  <bruno@clisp.org>
57252
57253         * modules/fseek-tests: New file.
57254         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
57255         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
57256
57257         * lib/fseek.c: New file.
57258         * modules/fseek: New file.
57259         * m4/fseek.m4: New file.
57260         * doc/functions/fseek.texi: Update.
57261         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
57262         REPLACE_FSEEK.
57263         * lib/stdio_.h (rpl_fseek): New declaration.
57264         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
57265         REPLACE_FSEEK.
57266
57267 2007-05-28  Bruno Haible  <bruno@clisp.org>
57268
57269         * lib/stdio_.h (fflush): More comments.
57270
57271 2007-05-28  Bruno Haible  <bruno@clisp.org>
57272
57273         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
57274         runtime test.
57275
57276 2007-05-28  Eric Blake  <ebb9@byu.net>
57277
57278         Improve lseek module.
57279         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
57280         * lib/unistd_.h (lseek): Scale back link warning message.
57281         * tests/test-lseek.c: Beef up test.
57282         * tests/test-lseek.sh: Exercise more facets of lseek.
57283         Reported by Bruno Haible.
57284
57285 2007-05-28  Bruno Haible  <bruno@clisp.org>
57286
57287         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
57288         to define.
57289
57290 2007-05-27  Bruno Haible  <bruno@clisp.org>
57291
57292         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
57293
57294 2007-05-27  Bruno Haible  <bruno@clisp.org>
57295
57296         * modules/openmp: New file.
57297         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
57298         Noah Misch.
57299
57300 2007-05-26  Bruno Haible  <bruno@clisp.org>
57301
57302         * modules/chdir-long (Depends-on): Add fchdir.
57303         * modules/chdir-safer (Depends-on): Likewise.
57304         * modules/fts (Depends-on): Likewise.
57305         * modules/fts-lgpl (Depends-on): Likewise.
57306         * modules/openat (Depends-on): Likewise.
57307         * modules/savewd (Depends-on): Likewise.
57308
57309 2007-05-24  Eric Blake  <ebb9@byu.net>
57310
57311         Fix lseek on mingw.
57312         * modules/lseek: New module.
57313         * m4/lseek.m4: New file.
57314         * lib/lseek.c: New file.
57315         * modules/lseek-tests: New file.
57316         * tests/test-lseek.c: New file.
57317         * tests/test-lseek.sh: New file.
57318         * MODULES.html.sh: Document lseek module.
57319         * modules/fflush (Depends-on): Add lseek, fseeko.
57320         * modules/fseeko (Depends-on): Likewise.
57321         * modules/ftello (Depends-on): Likewise.
57322         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
57323         broken.
57324         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
57325         broken.
57326         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
57327         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
57328         * lib/ftello.c (rpl_ftello): Likewise.
57329         * tests/test-fseeko.c (main): Test this.
57330         * tests/test-fseeko.sh: Likewise.
57331         * tests/test-ftello.c (main): Likewise.
57332         * tests/test-ftello.sh: Likewise.
57333         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
57334         implies replacing fseek.
57335         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
57336         HAVE_FTELLO.
57337         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
57338         * modules/unistd (Makefile.am): Likewise.
57339         * lib/unistd_.h (lseek): Declare a replacement.
57340         * doc/functions/lseek.texi (lseek): Document this fix.
57341         * doc/functions/fseek.texi (fseek): Likewise.
57342         * doc/functions/ftell.texi (ftell): Likewise.
57343
57344 2007-05-24  Bruno Haible  <bruno@clisp.org>
57345
57346         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
57347         in the printed representation of a NaN.
57348         * tests/test-vasprintf-posix.c (test_function): Likewise.
57349         * tests/test-snprintf-posix.h (test_function): Likewise.
57350         * tests/test-sprintf-posix.h (test_function): Likewise.
57351         Reported by Eric Blake.
57352
57353 2007-05-23  Eric Blake  <ebb9@byu.net>
57354
57355         Fix fseeko/ftello on cygwin 1.5.24.
57356         * doc/functions/fseeko.texi (fseeko): Document the fix.
57357         * doc/functions/ftello.texi (ftello): Document the fix.
57358         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
57359         * doc/functions/stdout.text (stdout): New file.
57360         * doc/functions/stderr.text (stderr): New file.
57361         * doc/gnulib.texi (Function Substitutes): Use new files.
57362         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
57363         prior to 1.7.0.
57364         * tests/test-ftello.c (main): Likewise for ftello.
57365         * tests/test-fseeko.sh: New file.
57366         * tests/test-ftello.sh: New file.
57367         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
57368         with seekable stdin.
57369         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
57370         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
57371         (gl_REPLACE_FSEEKO): New macro.
57372         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
57373         * modules/fseeko (Files): Distribute fseeko.c.
57374         * modules/ftello (Files): Distribute ftello.c.
57375         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
57376         mode.
57377         * lib/ftello.c (rpl_ftello): New file.
57378         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
57379         fseeko, ftello.
57380         (gl_STDIN_LARGE_OFFSET): New macro.
57381         * modules/stdio (Makefile.am): Perform the replacement.
57382         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
57383
57384 2007-05-23  Bruno Haible  <bruno@clisp.org>
57385
57386         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
57387         GNULIB_POSIXCHECK is defined.
57388
57389 2007-05-21  Bruno Haible  <bruno@clisp.org>
57390
57391         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
57392         Check also the output for NaN arguments. When cross-compiling, guess
57393         no on IRIX.
57394         * lib/vasnprintf.c: Update comments.
57395         * tests/test-vasnprintf-posix.c (strisnan): New function.
57396         (test_function): Use it.
57397         * tests/test-vasprintf-posix.c (strisnan): New function.
57398         (test_function): Use it.
57399         * tests/test-snprintf-posix.h (strisnan): New function.
57400         (test_function): Use it.
57401         * tests/test-sprintf-posix.h (strisnan): New function.
57402         (test_function): Use it.
57403         Reported by Eric Blake.
57404
57405 2007-05-20  Bruno Haible  <bruno@clisp.org>
57406
57407         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
57408         numbers that fails on BeOS.
57409         * doc/functions/frexpl.texi: Update.
57410
57411 2007-05-20  Jim Meyering  <jim@meyering.net>
57412
57413         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
57414         forced upon us by glibc-2.6.
57415
57416 2007-05-20  Bruno Haible  <bruno@clisp.org>
57417
57418         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
57419         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
57420         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
57421         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
57422         NEED_PRINTF_INFINITE.
57423         (is_infinitel): New function.
57424         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
57425         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
57426         gl_PREREQ_VASNPRINTF_INFINITE.
57427         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
57428         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57429         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
57430         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
57431         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
57432         gl_PREREQ_VASNPRINTF_INFINITE.
57433         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57434         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57435         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57436         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57437         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57438         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57439         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57440         * doc/functions/fprintf.texi: Update.
57441         * doc/functions/printf.texi: Update.
57442         * doc/functions/snprintf.texi: Update.
57443         * doc/functions/sprintf.texi: Update.
57444         * doc/functions/vfprintf.texi: Update.
57445         * doc/functions/vprintf.texi: Update.
57446         * doc/functions/vsnprintf.texi: Update.
57447         * doc/functions/vsprintf.texi: Update.
57448
57449 2007-05-20  Bruno Haible  <bruno@clisp.org>
57450
57451         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
57452         was not found in libc.
57453         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
57454
57455 2007-05-20  Bruno Haible  <bruno@clisp.org>
57456
57457         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
57458         printed as "-nan" instead of "nan".
57459         * tests/test-vasprintf-posix.c (test_function): Likewise.
57460         * tests/test-snprintf-posix.h (test_function): Likewise.
57461         * tests/test-sprintf-posix.h (test_function): Likewise.
57462         Needed for HP-UX 11.
57463
57464 2007-05-20  Jim Meyering  <jim@meyering.net>
57465
57466         Fix buggy test for the fchownat-deref bug.
57467         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
57468         symlink required for the run-test.  Without it, this test would
57469         always declare that fchownat doesn't work, and client code would
57470         unnecessarily use the replacement function with fixed libc.
57471         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
57472         Reported by Greg Schafer.
57473
57474 2007-05-19  Bruno Haible  <bruno@clisp.org>
57475
57476         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
57477         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
57478         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
57479         Needed for IRIX 6.5 and Solaris 2.5.1.
57480
57481 2007-05-19  Bruno Haible  <bruno@clisp.org>
57482
57483         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
57484         (test_function): Skip tests involving -0.0 on platforms where
57485         -0.0 = 0.0.
57486         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
57487         (test_function): Skip tests involving -0.0 on platforms where
57488         -0.0 = 0.0.
57489         * tests/test-snprintf-posix.h (have_minus_zero): New function.
57490         (test_function): Skip tests involving -0.0 on platforms where
57491         -0.0 = 0.0.
57492         * tests/test-sprintf-posix.h (have_minus_zero): New function.
57493         (test_function): Skip tests involving -0.0 on platforms where
57494         -0.0 = 0.0.
57495         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
57496         tests.
57497         * tests/test-printf-posix.h (test_function): Likewise.
57498         * tests/test-printf-posix.output: Remove all -0.0 related results.
57499         Needed for IRIX 6.5.
57500
57501 2007-05-19  Bruno Haible  <bruno@clisp.org>
57502
57503         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
57504         printed as "nan0x7fffffff" instead of "nan".
57505         * tests/test-vasprintf-posix.c (test_function): Likewise.
57506         * tests/test-snprintf-posix.h (test_function): Likewise.
57507         * tests/test-sprintf-posix.h (test_function): Likewise.
57508         * tests/test-fprintf-posix.h (NaN): Remove macro.
57509         (test_function): Remove all NaN related tests.
57510         * tests/test-printf-posix.h (NaN): Remove macro.
57511         (test_function): Remove all NaN related tests.
57512         * tests/test-printf-posix.output: Remove all NaN related results.
57513         Needed for IRIX 6.5.
57514
57515 2007-05-19  Bruno Haible  <bruno@clisp.org>
57516
57517         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
57518         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
57519
57520 2007-05-19  Bruno Haible  <bruno@clisp.org>
57521
57522         * lib/float_.h: New file.
57523         * m4/float_h.m4: New file.
57524         * modules/float: New file.
57525         * modules/isnanl (Dependencies): Add float.
57526         * modules/isnanl-nolibm (Dependencies): Likewise.
57527         * modules/mathl (Dependencies): Likewise.
57528         * modules/printf-frexpl (Dependencies): Likewise.
57529         * modules/signbit (Dependencies): Likewise.
57530         * modules/vasnprintf (Dependencies): Likewise.
57531         * doc/headers/float.texi: Update.
57532
57533 2007-05-19  Jim Meyering  <jim@meyering.net>
57534
57535         * lib/utimens.c (gl_futimens): Rename from futimens,
57536         now that glibc-2.6 declares futimens.
57537         * lib/utimens.h: Likewise.
57538
57539 2007-05-19  Bruno Haible  <bruno@clisp.org>
57540
57541         Avoid test failures on mingw.
57542         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
57543         * tests/test-printf-posix.sh: Likewise.
57544         * tests/test-vfprintf-posix.sh: Likewise.
57545         * tests/test-vprintf-posix.sh: Likewise.
57546
57547 2007-05-19  Bruno Haible  <bruno@clisp.org>
57548
57549         Fix *printf result for NaN, Inf, -0.0 on mingw.
57550         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
57551         * lib/vasnprintf.c: Include math.h and isnan.h.
57552         (is_infinite_or_zero): New function.
57553         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
57554         values in the %f, %F, %e, %E, %g, %G directives.
57555         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
57556         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57557         gl_PRINTF_INFINITE and test its result. Invoke
57558         gl_PREREQ_VASNPRINTF_INFINITE.
57559         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57560         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57561         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57562         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57563         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57564         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57565         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57566         * doc/functions/fprintf.texi: Update.
57567         * doc/functions/printf.texi: Update.
57568         * doc/functions/snprintf.texi: Update.
57569         * doc/functions/sprintf.texi: Update.
57570         * doc/functions/vfprintf.texi: Update.
57571         * doc/functions/vprintf.texi: Update.
57572         * doc/functions/vsnprintf.texi: Update.
57573         * doc/functions/vsprintf.texi: Update.
57574
57575 2007-05-19  Bruno Haible  <bruno@clisp.org>
57576
57577         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
57578         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
57579         Instead of multiplying with 10^k, set extra_zeroes to k.
57580         (scale10_round_long_double): Remove function.
57581
57582 2007-05-18  Bruno Haible  <bruno@clisp.org>
57583
57584         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
57585         introduced on 2007-05-06.
57586
57587 2007-05-18  Bruno Haible  <bruno@clisp.org>
57588
57589         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
57590         %g directives.
57591         * tests/test-vasprintf-posix.c (test_function): Likewise.
57592         * tests/test-snprintf-posix.h (test_function): Likewise.
57593         * tests/test-sprintf-posix.h (test_function): Likewise.
57594
57595 2007-05-18  Bruno Haible  <bruno@clisp.org>
57596
57597         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
57598         (strmatch): New function.
57599         (test_function): Test the %f directive on numbers of various exponents.
57600         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
57601         (strmatch): New function.
57602         (test_function): Test the %f directive on numbers of various exponents.
57603         * tests/test-snprintf-posix.h (strmatch): New function.
57604         (test_function): Test the %f directive on numbers of various exponents.
57605         * tests/test-sprintf-posix.h (strmatch): New function.
57606         (test_function): Test the %f directive on numbers of various exponents.
57607         * tests/test-snprintf-posix.c (SIZEOF): New macro.
57608         * tests/test-sprintf-posix.c (SIZEOF): New macro.
57609         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
57610         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
57611
57612 2007-05-18  Bruno Haible  <bruno@clisp.org>
57613
57614         Add support for 'long double' number output.
57615         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
57616         * lib/vasnprintf.c: Include math.h and float+.h.
57617         (mp_limb_t): New type.
57618         (GMP_LIMB_BITS): New macro.
57619         (mp_twolimb_t): New type.
57620         (GMP_TWOLIMB_BITS): New macro.
57621         (mpn_t): New type.
57622         (multiply, divide, convert_to_decimal, decode_long_double,
57623         scale10_round_long_double, scale10_round_decimal_long_double,
57624         floorlog10l): New functions.
57625         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
57626         for the %f, %F, %e, %E, %g, %G directives.
57627         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
57628         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57629         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
57630         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
57631         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57632         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57633         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57634         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57635         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57636         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57637         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57638         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
57639         * modules/snprintf-posix (Depends-on): Likewise.
57640         * modules/sprintf-posix (Depends-on): Likewise.
57641         * modules/vasnprintf-posix (Depends-on): Likewise.
57642         * modules/vasprintf-posix (Depends-on): Likewise.
57643         * modules/vfprintf-posix (Depends-on): Likewise.
57644         * modules/vsnprintf-posix (Depends-on): Likewise.
57645         * modules/vsprintf-posix (Depends-on): Likewise.
57646         * modules/vasnprintf (Files): Add lib/float+.h.
57647         * doc/functions/fprintf.texi: Update.
57648         * doc/functions/printf.texi: Update.
57649         * doc/functions/snprintf.texi: Update.
57650         * doc/functions/sprintf.texi: Update.
57651         * doc/functions/vfprintf.texi: Update.
57652         * doc/functions/vprintf.texi: Update.
57653         * doc/functions/vsnprintf.texi: Update.
57654         * doc/functions/vsprintf.texi: Update.
57655
57656 2007-05-18  Bruno Haible  <bruno@clisp.org>
57657
57658         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
57659
57660 2007-05-18  Bruno Haible  <bruno@clisp.org>
57661
57662         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
57663         for printing 64-bit integers. Needed for mingw.
57664
57665 2007-05-18  Bruno Haible  <bruno@clisp.org>
57666
57667         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
57668         gl_FUNC_FREXPL_WORKS.
57669         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
57670
57671 2007-05-18  Bruno Haible  <bruno@clisp.org>
57672
57673         * modules/frexpl-nolibm-tests: New file.
57674
57675         * modules/frexpl-nolibm: New file.
57676         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
57677
57678 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
57679
57680         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
57681         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
57682         GCC 4.2, which otherwise issues a lot of warnings.
57683         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
57684         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
57685         Likewise.
57686         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
57687         * modules/iconv_open (iconv.h): Likewise.
57688         * modules/locale (locale.h): Likewise.
57689         * modules/netinet_in (netinet/in.h): Likewise.
57690         * modules/sys_select (sys_select.h): Likewise.
57691         * modules/sys_socket (sys/socket.h): Likewise.
57692         * modules/sys_stat (sys/stat.h): Likewise.
57693         * modules/sysexits (sysexits.h): Likewise.
57694         * modules/unistd (unistd.h): Likewise.
57695
57696 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57697
57698         * modules/closein-tests (Makefile.am): Distribute
57699         `test-closein.sh'.
57700
57701 2007-05-17  Bruno Haible  <bruno@clisp.org>
57702
57703         * tests/test-printf-posix.output: Renamed from
57704         tests/test-fprintf-posix.out.
57705         * modules/fprintf-posix-tests: Update.
57706         * modules/printf-posix-tests: Update.
57707         * modules/vfprintf-posix-tests: Update.
57708         * modules/vprintf-posix-tests: Update.
57709         * tests/test-fprintf-posix.sh: Update.
57710         * tests/test-printf-posix.sh: Update.
57711         * tests/test-vfprintf-posix.sh: Update.
57712         * tests/test-vprintf-posix.sh: Update.
57713         Reported by Ralf Wildenhues.
57714
57715 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
57716
57717         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
57718         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
57719         GCC 4.2, which otherwise issues a lot of warnings.
57720         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
57721         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
57722         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
57723         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
57724         it should no longer be needed.
57725         * lib/string_.h: Likewise.
57726         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
57727         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
57728         * modules/inttypes (inttypes.h): Likewise.
57729         * modules/math (math.h): Likewise.
57730         * modules/search (search.h): Likewise.
57731         * modules/signal (signal.h): Likewise.
57732         * modules/stdint (stdint.h): Likewise.
57733         * modules/stdio (stdio.h): Likewise.
57734         * modules/stdlib (stdlib.h): Likewise.
57735         * modules/string (string.h): Likewise.
57736         * modules/sys_time (sys/time.h): Likewise.
57737         * modules/time (time.h): Likewise.
57738         * modules/wchar (wchar.h): Likewise.
57739         * modules/wctype (wtype.h): Likewise.
57740
57741 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57742
57743         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
57744
57745 2007-05-13  Bruno Haible  <bruno@clisp.org>
57746
57747         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
57748         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57749         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
57750         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
57751         (gl_PREREQ_STRTOK_R): Don't require it here.
57752
57753 2007-05-13  Bruno Haible  <bruno@clisp.org>
57754
57755         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
57756         when used in C++ mode.
57757
57758 2007-05-12  Bruno Haible  <bruno@clisp.org>
57759
57760         * lib/linebuffer.h: Tweak doc.
57761         * lib/linebuffer.c: Likewise.
57762
57763 2007-05-12  James Youngman  <jay@gnu.org>
57764
57765         * lib/linebuffer.c (readlinebuffer_delim): New function,
57766         like readlinebuffer, but use a caller-specified delimiter.
57767         (readlinebuffer): Just call readlinebuffer_delim with '\n'
57768         as the delimiter.
57769         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
57770
57771 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57772
57773         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
57774         * modules/openat (Files): Remove openat-die.c.
57775         (Depends-on): Add openat-die.
57776         * modules/openat-die: New module.
57777
57778 2007-05-06  Bruno Haible  <bruno@clisp.org>
57779
57780         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
57781         Update with info about Cygwin.
57782         * doc/functions/fprintf.texi: Update.
57783         * doc/functions/printf.texi: Update.
57784         * doc/functions/snprintf.texi: Update.
57785         * doc/functions/sprintf.texi: Update.
57786         * doc/functions/vfprintf.texi: Update.
57787         * doc/functions/vprintf.texi: Update.
57788         * doc/functions/vsnprintf.texi: Update.
57789         * doc/functions/vsprintf.texi: Update.
57790         Reported by Eric Blake.
57791
57792 2007-05-06  Bruno Haible  <bruno@clisp.org>
57793
57794         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
57795         padding ourselves for the floating-point directives.
57796         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
57797         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
57798         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57799         gl_PRINTF_FLAG_ZERO and test its result. Invoke
57800         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
57801         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57802         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
57803         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57804         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57805         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57806         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57807         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57808         * tests/test-snprintf-posix.h (test_function): Also check the width
57809         and some flags in the %f directive.
57810         * tests/test-sprintf-posix.h (test_function): Likewise.
57811         * tests/test-vasnprintf-posix.c (test_function): Likewise.
57812         * tests/test-vasprintf-posix.c (test_function): Likewise.
57813         * doc/functions/fprintf.texi: Update.
57814         * doc/functions/printf.texi: Update.
57815         * doc/functions/snprintf.texi: Update.
57816         * doc/functions/sprintf.texi: Update.
57817         * doc/functions/vfprintf.texi: Update.
57818         * doc/functions/vprintf.texi: Update.
57819         * doc/functions/vsnprintf.texi: Update.
57820         * doc/functions/vsprintf.texi: Update.
57821
57822 2007-05-06  Bruno Haible  <bruno@clisp.org>
57823
57824         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
57825         pass the ' flag character to sprintf or snprintf.
57826         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
57827         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
57828         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57829         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
57830         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
57831         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57832         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
57833         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57834         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57835         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57836         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57837         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57838         * tests/test-snprintf-posix.h (test_function): Also check the grouping
57839         flag.
57840         * tests/test-sprintf-posix.h (test_function): Likewise.
57841         * tests/test-vasnprintf-posix.c (test_function): Likewise.
57842         * tests/test-vasprintf-posix.c (test_function): Likewise.
57843         * doc/functions/fprintf.texi: Update.
57844         * doc/functions/printf.texi: Update.
57845         * doc/functions/snprintf.texi: Update.
57846         * doc/functions/sprintf.texi: Update.
57847         * doc/functions/vfprintf.texi: Update.
57848         * doc/functions/vprintf.texi: Update.
57849         * doc/functions/vsnprintf.texi: Update.
57850         * doc/functions/vsprintf.texi: Update.
57851
57852 2007-05-01  Bruno Haible  <bruno@clisp.org>
57853
57854         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
57855
57856 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
57857
57858         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
57859         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
57860
57861 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
57862
57863         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
57864         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
57865         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
57866
57867 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
57868
57869         * lib/argp-help.c (struct hol_entry): New member `ord'.
57870         (HOL_ENTRY_PTRCMP): Use ord for comparison
57871         (hol_sort): Initialize ord.
57872
57873 2007-05-01  Bruno Haible  <bruno@clisp.org>
57874
57875         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
57876         Reported by Eric Blake.
57877         * doc/gnulib.texi (Function Substitutes): Update.
57878
57879 2007-05-01  Bruno Haible  <bruno@clisp.org>
57880
57881         * doc/functions.texi: Remove file, now redundant through
57882         doc/functions/*.texi.
57883
57884 2007-05-01  Bruno Haible  <bruno@clisp.org>
57885
57886         * modules/argp (Depends-on): Add sleep.
57887
57888 2007-05-01  Bruno Haible  <bruno@clisp.org>
57889
57890         * modules/sleep-tests: New file.
57891         * tests/test-sleep.c: New file.
57892
57893         * modules/sleep: New file.
57894         * lib/sleep.c: New file.
57895         * m4/sleep.m4: New file.
57896         * lib/unistd_.h (sleep): New declaration.
57897         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
57898         HAVE_SLEEP.
57899         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
57900         * doc/functions/sleep.texi: Document the sleep module.
57901
57902 2007-05-01  Bruno Haible  <bruno@clisp.org>
57903
57904         * lib/sigprocmask.h: Remove file.
57905         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
57906         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
57907         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
57908         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
57909         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
57910         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
57911         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
57912         HAVE_SIGSET_T as a shell variable.
57913         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
57914         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
57915         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
57916         (Depends-on): Add signal. Remove verify.
57917         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
57918         (Include): Mention <signal.h> instead of sigprocmask.h.
57919         * NEWS: Mention the change.
57920         * lib/fatal-signal.c: Don't include sigprocmask.h.
57921
57922 2007-05-01  Bruno Haible  <bruno@clisp.org>
57923
57924         * modules/signal: New file.
57925         * lib/signal_.h: New file.
57926         * m4/signal_h.m4: New file.
57927
57928 2007-05-01  Bruno Haible  <bruno@clisp.org>
57929
57930         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
57931         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
57932         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
57933         HAVE_WCTYPE_CTMP_BUG into wctype.h.
57934
57935 2007-05-01  Bruno Haible  <bruno@clisp.org>
57936
57937         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
57938         configure time.
57939         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
57940         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
57941         * modules/sys_stat (Makefile.am): Substitute their values into
57942         sys/stat.h.
57943
57944 2007-05-01  Bruno Haible  <bruno@clisp.org>
57945
57946         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
57947         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
57948         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
57949
57950 2007-05-01  Bruno Haible  <bruno@clisp.org>
57951
57952         * doc/header/assert.texi: Undo last change: don't mention the gnulib
57953         'assert' module here.
57954
57955 2007-05-01  Bruno Haible  <bruno@clisp.org>
57956
57957         * doc/functions/*.texi: New files.
57958         * doc/functions/google-ranking.txt: New file.
57959         * doc/gnulib.texi (Function Substitutes): New chapter.
57960         (ctime, inet_ntoa): Remove sections.
57961         * doc/ctime.texi: Remove file.
57962         * doc/inet_ntoa.texi: Remove file.
57963         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
57964         dependencies.
57965         (%.info): New rule, specifying a --reference-limit.
57966
57967 2007-05-01  Bruno Haible  <bruno@clisp.org>
57968
57969         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
57970
57971 2007-05-01  Bruno Haible  <bruno@clisp.org>
57972
57973         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
57974         the portability of 'mkdir' to mingw systems.
57975
57976 2007-05-01  Bruno Haible  <bruno@clisp.org>
57977
57978         * doc/headers/google-ranking.txt: New file.
57979
57980 2007-04-30  Eric Blake  <ebb9@byu.net>
57981
57982         Prefer fseeko to fseek.
57983         * modules/getpass (Depends-on): Add fseeko.
57984         * lib/getpass.c (getpass): Use fseeko, not fseek.
57985
57986 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
57987
57988         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
57989         assumes the sorting is stable, while most qsort implementations
57990         are not.  Use argument addresses to ensure they never compare as
57991         equal.
57992
57993         * tests/test-argp-2.sh (usage-indent test): Fix output
57994         (func_compare): Restore diff options
57995         * tests/test-argp.c: Restore #include "progname.h"
57996
57997 2007-04-29  Bruno Haible  <bruno@clisp.org>
57998
57999         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
58000         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58001         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
58002         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58003         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
58004         (configure.ac): Define CHECK_SNPRINTF_POSIX.
58005         (TESTS, check_PROGRAMS): Add test-snprintf.
58006         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
58007         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
58008         (TESTS, check_PROGRAMS): Add test-vsnprintf.
58009         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
58010         assertions that fail on HP-UX, OSF/1, or IRIX.
58011         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
58012
58013 2007-04-29  Bruno Haible  <bruno@clisp.org>
58014
58015         * MODULES.html.sh (posix_functions): Remove 'contents'.
58016
58017 2007-04-29  Karl Berry  <karl@gnu.org>
58018
58019         * config/srclist.txt (gendocs_template_min): new entry.
58020
58021 2007-04-29  Bruno Haible  <bruno@clisp.org>
58022
58023         Work around fpurge bug on BSD systems.
58024         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
58025         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
58026         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
58027         fpurge to rpl_fpurge if the system already has this function.
58028         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
58029         the case where the system already has this function. Correct invariants
58030         on BSD systems.
58031         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
58032         BSD systems.
58033
58034 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
58035
58036         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
58037         proposed by Sven Verdoolaege.
58038
58039         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
58040         options.
58041         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
58042         (usage and help tests): Update
58043
58044 2007-04-29  Bruno Haible  <bruno@clisp.org>
58045
58046         * tests/test-fflush.c (main): Use a file of size 17, not 10.
58047         Print more information in case of failure. Disable a test on BeOS.
58048
58049 2007-04-29  Bruno Haible  <bruno@clisp.org>
58050
58051         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
58052         This helps debugging on systems on which no gdb is available.
58053
58054 2007-04-29  Bruno Haible  <bruno@clisp.org>
58055
58056         * lib/freading.h: Improve comments.
58057         * lib/fwriting.h: Likewise.
58058         * tests/test-freading.c (main): Don't check freading immediately after
58059         repositioning. Needed for glibc.
58060
58061 2007-04-29  Bruno Haible  <bruno@clisp.org>
58062
58063         * lib/freading.c (freading): Trivial simplification.
58064
58065 2007-04-28  Bruno Haible  <bruno@clisp.org>
58066
58067         * tests/test-fwriting.c (main): Also test the interaction between
58068         fflush and fwriting.
58069         * modules/fwriting-tests (Depends-on): Add fflush.
58070
58071         * tests/test-freading.c (main): Also test the interaction between
58072         fflush and freading.
58073         * modules/freading-tests (Depends-on): Add fflush.
58074
58075 2007-04-28  Bruno Haible  <bruno@clisp.org>
58076
58077         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
58078         fseeko and ftello.
58079         Suggested by Eric Blake.
58080
58081 2007-04-28  Jim Meyering  <jim@meyering.net>
58082
58083         Avoid false-negative in gl_STDINT_H's C99 conformance test.
58084         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
58085         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
58086
58087 2007-04-27  Eric Blake  <ebb9@byu.net>
58088
58089         * doc/headers/assert.texi (assert.h): Document assert module use.
58090
58091 2007-04-27  Bruno Haible  <bruno@clisp.org>
58092
58093         * doc/headers/*.texi: New files.
58094         * doc/gnulib.texi (Header File Substitutes): New chapter.
58095         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
58096         dependencies.
58097         (standards.info ,standards.html, standards.dvi): Update dependencies.
58098         (mostlyclean, clean): New targets.
58099
58100 2007-04-27  Bruno Haible  <bruno@clisp.org>
58101
58102         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
58103         * modules/sysexits (Files, Makefile.am): Update.
58104
58105         * lib/sys_socket_.h: Renamed from lib/socket_.h.
58106         * modules/sys_socket (Files, Makefile.am): Update.
58107
58108         * lib/sys_stat_.h: Renamed from lib/stat_.h.
58109         * modules/sys_stat (Files, Makefile.am): Update.
58110
58111 2007-04-27  Eric Blake  <ebb9@byu.net>
58112
58113         * lib/freading.h: Improve comments.
58114         * lib/fwriting.h: Likewise.
58115         * lib/fflush.c: Likewise.
58116
58117         Fix closein for mingw.
58118         * modules/closein-tests: Add tests for closein.
58119         * tests/test-closein.c: New file.
58120         * tests/test-closein.sh: Likewise.
58121         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
58122         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
58123
58124 2007-04-27  Bruno Haible  <bruno@clisp.org>
58125
58126         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
58127         version is < 6.
58128         * lib/math_.h [__DECC]: Likewise.
58129         * lib/stdio_.h [__DECC]: Likewise.
58130         * lib/stdlib_.h [__DECC]: Likewise.
58131         * lib/string_.h [__DECC]: Likewise.
58132         * lib/time_.h [__DECC]: Likewise.
58133         * lib/wchar_.h [__DECC]: Likewise.
58134         * lib/wctype_.h [__DECC]: Likewise.
58135
58136 2007-04-27  Bruno Haible  <bruno@clisp.org>
58137
58138         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
58139
58140 2007-04-27  Bruno Haible  <bruno@clisp.org>
58141
58142         * lib/fflush.c: Add comments.
58143         * modules/fpurge-tests (Depends-on): Add fflush.
58144         * modules/freadable-tests (Depends-on): Likewise.
58145         * modules/fwritable-tests (Depends-on): Likewise.
58146
58147 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
58148
58149         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
58150         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
58151         Report by Bruno Haible <bruno@clisp.org>.
58152
58153 2007-04-26  Eric Blake  <ebb9@byu.net>
58154
58155         Fix fflush on mingw.
58156         * modules/fflush (Depends-on): Add freading.
58157         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
58158         but unread data.
58159
58160 2007-04-26  Eric Blake  <ebb9@byu.net>
58161         and Bruno Haible  <bruno@clisp.org>
58162
58163         Implement freading and fwriting.
58164         * lib/freading.c: New file.
58165         * lib/freading.h: Likewise.
58166         * m4/freading.m4: Likewise.
58167         * modules/freading: Likewise.
58168         * modules/freading-tests: Likewise.
58169         * tests/test-freading.c: Likewise.
58170         * lib/fwriting.c: New file.
58171         * lib/fwriting.h: Likewise.
58172         * m4/fwriting.m4: Likewise.
58173         * modules/fwriting: Likewise.
58174         * modules/fwriting-tests: Likewise.
58175         * tests/test-fwriting.c: Likewise.
58176         * MODULES.html.sh (File stream based Input/Output): Mention them.
58177
58178 2007-04-26  Bruno Haible  <bruno@clisp.org>
58179
58180         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
58181         'long' when we assume it.
58182         Suggested by Eric Blake.
58183
58184 2007-04-26  Bruno Haible  <bruno@clisp.org>
58185
58186         Ensure fseeko, ftello are declared on glibc systems.
58187         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
58188         * modules/fseeko (configure.ac-early): Likewise.
58189         * modules/ftello (configure.ac-early): Likewise.
58190         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
58191         AC_FUNC_FSEEKO for this.
58192         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
58193         (gl_CHECK_FSEEKO): Remove macro.
58194
58195 2007-04-26  Bruno Haible  <bruno@clisp.org>
58196
58197         * tests/test-fflush.c (main): Also check the ftell result after
58198         fflush and fseek/fseeko.
58199         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
58200         file descriptor position cache in the stream.
58201         * lib/fseeko.c (rpl_fseeko): Likewise.
58202
58203 2007-04-26  Bruno Haible  <bruno@clisp.org>
58204
58205         * modules/fflush-tests (Depends-on): Add fseeko.
58206
58207 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
58208             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58209
58210         * lib/argz_.h: ensure error_t definition is obtained in same
58211         mechanism system argz.h would have.
58212         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
58213         argz facilities are known bad.  Err on the side of caution if
58214         cross-compiling.
58215
58216 2007-04-25  Eric Blake  <ebb9@byu.net>
58217
58218         * lib/fpurge.c (includes): Use stdlib.h for free.
58219         * tests/test-fflush.c (main): Also test fflush-fseeko.
58220
58221 2007-04-25  Bruno Haible  <bruno@clisp.org>
58222
58223         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
58224         * lib/fseeko.c: New file.
58225         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
58226         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
58227         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
58228         gl_FUNC_FSEEKO.
58229         (gl_FUNC_FSEEKO): Invoke it.
58230         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
58231         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
58232         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
58233
58234 2007-04-25  Bruno Haible  <bruno@clisp.org>
58235
58236         * modules/fflush (Depends-on): Add ftello.
58237
58238 2007-04-25  Bruno Haible  <bruno@clisp.org>
58239
58240         * modules/ftello-tests: New file.
58241         * tests/test-ftello.c: New file.
58242
58243         * modules/ftello: New file.
58244         * m4/ftello.m4: New file.
58245         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
58246         HAVE_FTELLO.
58247         * lib/stdio_.h (ftello): New declaration.
58248         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
58249         HAVE_FTELLO.
58250
58251 2007-04-25  Bruno Haible  <bruno@clisp.org>
58252
58253         * modules/fseeko-tests: New file.
58254         * tests/test-fseeko.c: New file.
58255
58256         * modules/fseeko: New file.
58257         * m4/fseeko.m4: New file.
58258         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
58259         HAVE_FSEEKO.
58260         * lib/stdio_.h (fseeko): New declaration.
58261         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
58262         HAVE_FSEEKO.
58263
58264 2007-04-25  Bruno Haible  <bruno@clisp.org>
58265
58266         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
58267
58268 2007-04-25  Bruno Haible  <bruno@clisp.org>
58269
58270         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
58271         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
58272         * tests/test-unistd.c: Likewise.
58273         * tests/test-fcntl.c: Likewise.
58274
58275 2007-04-23  Eric Blake  <ebb9@byu.net>
58276
58277         * lib/fflush.c: Fix missing include.
58278         Reported by Bruno Haible.
58279
58280 2007-04-23  Bruno Haible  <bruno@clisp.org>
58281
58282         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
58283         Reported by Eric Blake.
58284
58285 2007-04-23  Bruno Haible  <bruno@clisp.org>
58286
58287         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
58288
58289 2007-04-23  Bruno Haible  <bruno@clisp.org>
58290
58291         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
58292
58293 2007-04-23  Bruno Haible  <bruno@clisp.org>
58294
58295         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
58296         Needed on HP-UX 11.
58297
58298 2007-04-16  Eric Blake  <ebb9@byu.net>
58299
58300         Make fflush rely on fpurge.
58301         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
58302         open coding all variants.
58303         * modules/fflush (Depends-on): Add fpurge and unistd.
58304         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
58305         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
58306
58307         Fix --with-tests compilation on cygwin.
58308         * modules/argmatch-tests (Makefile.am): List gnulib library first
58309         in LDADD.
58310         * modules/argp-tests (Makefile.am): Likewise.
58311         * modules/array-list-tests (Makefile.am): Likewise.
58312         * modules/array-oset-tests (Makefile.am): Likewise.
58313         * modules/avltree-list-tests (Makefile.am): Likewise.
58314         * modules/avltree-oset-tests (Makefile.am): Likewise.
58315         * modules/avltreehash-list-tests (Makefile.am): Likewise.
58316         * modules/carray-list-tests (Makefile.am): Likewise.
58317         * modules/dirname-tests (Makefile.am): Likewise.
58318         * modules/frexp-tests (Makefile.am): Likewise.
58319         * modules/isnanl-tests (Makefile.am): Likewise.
58320         * modules/linked-list-tests (Makefile.am): Likewise.
58321         * modules/linkedhash-list-tests (Makefile.am): Likewise.
58322         * modules/lock-tests (Makefile.am): Likewise.
58323         * modules/rbtree-list-tests (Makefile.am): Likewise.
58324         * modules/rbtree-oset-tests (Makefile.am): Likewise.
58325         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
58326         * modules/tls-tests (Makefile.am): Likewise.
58327         * modules/tsearch-tests (Makefile.am): Likewise.
58328         * modules/xvasprintf-tests (Makefile.am): Likewise.
58329
58330         Fix fpurge for cygwin.
58331         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
58332         value.
58333         * modules/fpurge-tests (Depends-on): Clean up trash.
58334
58335 2007-04-16  Simon Josefsson  <simon@josefsson.org>
58336
58337         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
58338
58339         * m4/autobuild.m4: Re-indent.
58340
58341 2007-04-13  Bruno Haible  <bruno@clisp.org>
58342
58343         * modules/fpurge-tests: New file.
58344         * tests/test-fpurge.c: New file.
58345
58346         * modules/fpurge: New file.
58347         * lib/fpurge.h: New file.
58348         * lib/fpurge.c: New file.
58349         * m4/fpurge.m4: New file.
58350
58351 2007-04-13  Bruno Haible  <bruno@clisp.org>
58352
58353         * modules/fbufmode-tests: New file.
58354         * tests/test-fbufmode.c: New file.
58355
58356         * modules/fbufmode: New file.
58357         * lib/fbufmode.h: New file.
58358         * lib/fbufmode.c: New file.
58359         * m4/fbufmode.m4: New file.
58360
58361 2007-04-13  Bruno Haible  <bruno@clisp.org>
58362
58363         * modules/fwritable-tests: New file.
58364         * tests/test-fwritable.c: New file.
58365
58366         * modules/fwritable: New file.
58367         * lib/fwritable.h: New file.
58368         * lib/fwritable.c: New file.
58369         * m4/fwritable.m4: New file.
58370
58371 2007-04-13  Bruno Haible  <bruno@clisp.org>
58372
58373         * modules/freadable-tests: New file.
58374         * tests/test-freadable.c: New file.
58375
58376         * modules/freadable: New file.
58377         * lib/freadable.h: New file.
58378         * lib/freadable.c: New file.
58379         * m4/freadable.m4: New file.
58380
58381 2007-04-13  Bruno Haible  <bruno@clisp.org>
58382
58383         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
58384         MOSTLYCLEANFILES.
58385
58386 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
58387
58388         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
58389         gzip bootstrap.conf to avoid dragging in i18n machinery.
58390         (gnulib_tool_option): Use it.
58391
58392 2007-04-13  Bruno Haible  <bruno@clisp.org>
58393
58394         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
58395         %F directives.
58396         * tests/test-vasprintf-posix.c (test_function): Likewise.
58397         * tests/test-snprintf-posix.h (test_function): Likewise.
58398         * tests/test-sprintf-posix.h (test_function): Likewise.
58399         * tests/test-fprintf-posix.h (test_function): Likewise.
58400         * tests/test-printf-posix.h (test_function): Likewise.
58401         * tests/test-fprintf-posix.out: Likewise.
58402
58403 2007-04-13  Bruno Haible  <bruno@clisp.org>
58404
58405         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
58406         * modules/tls-tests (configure.ac): Likewise.
58407         Reported by Arto C. Nirkko <anirkko@insel.ch>.
58408
58409 2007-04-13  Bruno Haible  <bruno@clisp.org>
58410
58411         * lib/tls.c (glthread_tls_get): Fix return type.
58412         Patch by Arto C. Nirkko <anirkko@insel.ch>.
58413
58414 2007-04-12  Eric Blake  <ebb9@byu.net>
58415
58416         * modules/gettime (Depends-on): Remove gettime.
58417         Reported by Dmitry V. Levin.
58418
58419 2007-04-12  Bruno Haible  <bruno@clisp.org>
58420
58421         * modules/fflush (Include): Mention <stdio.h>.
58422         * modules/strtoimax (Include): Mention <inttypes.h>.
58423         * modules/strtoumax (Include): Likewise.
58424
58425 2007-04-12  Eric Blake  <ebb9@byu.net>
58426
58427         * .cvsignore: New file.
58428         * .gitignore: Likewise.
58429
58430 2007-04-12  Bruno Haible  <bruno@clisp.org>
58431
58432         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
58433         not before, since $(LDADD) often contains libgnu.a.
58434         * modules/striconv-tests (test_striconv_LDADD): Likewise.
58435         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
58436         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
58437         Needed on Cygwin.
58438
58439 2007-04-12  Eric Blake  <ebb9@byu.net>
58440
58441         Work around glibc's failure to flush stdin on fclose.
58442         * lib/closein.c (close_stdin): Flush stdin before closing.
58443
58444         Work around glibc's failure to reset seekable stdin on exit.
58445         * modules/closein: New module.
58446         * lib/closein.c: New file.
58447         * lib/closein.h: Likewise.
58448         * m4/closein.m4: Likewise.
58449         * MODULES.html.sh (File stream based Input/Output): Document it.
58450
58451 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58452
58453         * gnulib-tool: Rename generated 'autobuild' script to
58454         'do-autobuild' in --create-megatestdir output.
58455
58456         * doc/gnulib.texi (Build robot for gnulib): Fix.
58457
58458 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58459
58460         * modules/sysexits (Depends-on): Add absolute-header.
58461
58462 2007-04-12  Eric Blake  <ebb9@byu.net>
58463
58464         No need to preserve errno on success.
58465         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
58466         Reported by Bruno Haible.
58467
58468 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58469
58470         * MODULES.html.sh (Support for maintaining and releasing
58471         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
58472
58473 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58474
58475         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
58476
58477 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58478
58479         * modules/autobuild: New module.
58480
58481         * m4/autobuild.m4: New file.
58482
58483 2007-04-11  Bruno Haible  <bruno@clisp.org>
58484
58485         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
58486         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
58487         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
58488         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
58489         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58490         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58491         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58492         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58493         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58494         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58495         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
58496         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58497         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58498         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
58499         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58500         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58501         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
58502         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58503         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58504         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
58505         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58506         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58507         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
58508         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58509         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58510         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
58511         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58512         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58513         Reported by Eric Blake.
58514
58515 2007-04-11  Bruno Haible  <bruno@clisp.org>
58516
58517         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
58518
58519 2007-04-10  Bruno Haible  <bruno@clisp.org>
58520
58521         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
58522         for NaN and Infinity. Needed on FreeBSD 6.1.
58523         * tests/test-vasnprintf-posix.c (test_function): Undo last change
58524         regarding results for "%010a" of Infinity and NaN.
58525         * tests/test-vasprintf-posix.c (test_function): Likewise.
58526         * tests/test-snprintf-posix.h (test_function): Likewise.
58527         * tests/test-sprintf-posix.h (test_function): Likewise.
58528         * tests/test-fprintf-posix.h (test_function): Likewise.
58529         * tests/test-printf-posix.h (test_function): Likewise.
58530         * tests/test-fprintf-posix.out: Likewise.
58531
58532 2007-04-10  Bruno Haible  <bruno@clisp.org>
58533
58534         * modules/locale-tests: New file.
58535         * tests/test-locale.c: New file.
58536
58537         * modules/locale: New file.
58538         * lib/locale_.h: New file.
58539         * m4/locale_h.m4: New file.
58540
58541 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
58542             Bruno Haible  <bruno@clisp.org>
58543
58544         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
58545         be determined, test for availability of the copysignf, copysign,
58546         copysignl functions.
58547         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
58548         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
58549         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
58550
58551 2007-04-09  Eric Blake  <ebb9@byu.net>
58552
58553         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
58554         * modules/stdio (Makefile.am): Support fflush.
58555         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58556         * modules/fflush: New file.
58557         * lib/fflush.c: Likewise.
58558         * m4/fflush.m4: Likewise.
58559         * modules/fflush-tests: New test.
58560         * tests/test-fflush.c: Likewise.
58561         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
58562
58563 2007-04-06  Bruno Haible  <bruno@clisp.org>
58564
58565         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
58566         (VASNPRINTF): Use signbit for faster determination whether to print a
58567         minus sign.
58568         * modules/vasnprintf (Files): Remove lib/float+.h.
58569         * modules/fprintf-posix (Depends-on): Add signbit.
58570         * modules/snprintf-posix (Depends-on): Likewise.
58571         * modules/sprintf-posix (Depends-on): Likewise.
58572         * modules/vasnprintf-posix (Depends-on): Likewise.
58573         * modules/vasprintf-posix (Depends-on): Likewise.
58574         * modules/vfprintf-posix (Depends-on): Likewise.
58575         * modules/vsnprintf-posix (Depends-on): Likewise.
58576         * modules/vsprintf-posix (Depends-on): Likewise.
58577
58578 2007-04-06  Bruno Haible  <bruno@clisp.org>
58579
58580         * tests/test-frexp.c (main): Test also the sign bit of zero results.
58581         * tests/test-frexpl.c (main): Likewise.
58582         * tests/test-ldexpl.c (main): Likewise.
58583         * modules/frexp-tests (Depends-on): Add signbit.
58584         * modules/frexpl-tests (Depdends-on): Likewise.
58585         * modules/ldexpl-tests (Depdends-on): Likewise.
58586
58587 2007-04-06  Bruno Haible  <bruno@clisp.org>
58588
58589         * modules/signbit-tests: New file.
58590         * tests/test-signbit.c: New file.
58591
58592         * modules/signbit: New file.
58593         * lib/signbitf.c: New file.
58594         * lib/signbitd.c: New file.
58595         * lib/signbitl.c: New file.
58596         * m4/signbit.m4: New file.
58597         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
58598         (signbit): New macro.
58599         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
58600         REPLACE_SIGNBIT.
58601         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
58602         REPLACE_FREXPL into math.h.
58603
58604 2007-04-06  Bruno Haible  <bruno@clisp.org>
58605
58606         * modules/isnanf-nolibm-tests: New file.
58607         * tests/test-isnanf.c: New file.
58608
58609         * modules/isnanf-nolibm: New file.
58610         * lib/isnanf.h: New file.
58611         * lib/isnanf.c: New file.
58612         * lib/isnan.c: Consider the USE_FLOAT macro.
58613         * m4/isnanf.m4: New file.
58614
58615 2007-04-06  Bruno Haible  <bruno@clisp.org>
58616
58617         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
58618         (Link): New section.
58619
58620         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
58621
58622 2007-04-06  Bruno Haible  <bruno@clisp.org>
58623
58624         Assume the 'long double' type.
58625         * m4/longdouble.m4: Remove file.
58626         * config/srclist.txt: Don't mention longdouble.m4.
58627         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
58628         * lib/float+.h: Likewise.
58629         * lib/frexp.c: Likewise.
58630         * lib/printf-args.h: Likewise.
58631         * lib/printf-args.c: Likewise.
58632         * lib/printf-frexp.c: Likewise.
58633         * lib/printf-parse.c: Likewise.
58634         * lib/vasnprintf.c: Likewise.
58635         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
58636         * m4/intl.m4: Likewise.
58637         * m4/isnanl.m4: Likewise.
58638         * m4/printf.m4: Likewise.
58639         * m4/printf-frexpl.m4: Likewise.
58640         * m4/vasnprintf.m4: Likewise.
58641         * modules/allocsa (Files): Remove m4/longdouble.m4.
58642         * modules/gettext (Files): Likewise.
58643         * modules/relocatable-prog-wrapper (Files): Likewise.
58644         * modules/vasnprintf (Files): Likewise.
58645         * modules/isnanl (Files): Likewise.
58646         (Include): Simplify.
58647         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
58648         (Include): Simplify.
58649         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
58650         (Include): Simplify.
58651         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
58652         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58653         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
58654         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58655         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
58656         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58657         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
58658         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58659         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
58660         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58661         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
58662         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58663         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
58664         * tests/test-isnanl.c: Likewise.
58665         * tests/test-snprintf-posix.h: Likewise.
58666         * tests/test-sprintf-posix.h: Likewise.
58667         * tests/test-vasnprintf-posix.c: Likewise.
58668         * tests/test-vasnprintf-posix2.c: Likewise.
58669         * tests/test-vasprintf-posix.c: Likewise.
58670
58671 2007-04-06  Bruno Haible  <bruno@clisp.org>
58672
58673         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
58674         * lib/math_.h [__DECC]: Include the overridden include file through
58675         #include_next, outside the double-inclusion guard.
58676         * lib/stdio_.h [__DECC]: Likewise.
58677         * lib/stdlib_.h [__DECC]: Likewise.
58678         * lib/string_.h [__DECC]: Likewise.
58679         * lib/time_.h [__DECC]: Likewise.
58680         * lib/wchar_.h [__DECC]: Likewise.
58681         * lib/wctype_.h [__DECC]: Likewise.
58682         * lib/inttypes_.h [__DECC]: Likewise.
58683         Reported by Albert Chin <china@thewrittenword.com> in
58684         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
58685
58686 2007-04-04  Eric Blake  <ebb9@byu.net>
58687
58688         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
58689         1.5.x.
58690
58691 2007-04-04  Bruno Haible  <bruno@clisp.org>
58692
58693         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
58694         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
58695
58696 2007-04-04  Bruno Haible  <bruno@clisp.org>
58697
58698         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
58699         results for "%010a" of Infinity and NaN.
58700         * tests/test-vasprintf-posix.c (test_function): Likewise.
58701         * tests/test-snprintf-posix.h (test_function): Likewise.
58702         * tests/test-sprintf-posix.h (test_function): Likewise.
58703         * tests/test-fprintf-posix.h (test_function): Remove these tests.
58704         * tests/test-printf-posix.h (test_function): Likewise.
58705         * tests/test-fprintf-posix.out: Update.
58706         Needed for FreeBSD 6.1.
58707
58708 2007-04-04  Bruno Haible  <bruno@clisp.org>
58709
58710         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
58711         directly used by the gnulib modules nor by gnulib-tool.
58712
58713 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
58714
58715         * DEPENDENCIES: Give overall description of version dependency
58716         desirability.  Use more-typical names for apps.
58717         Add shell, coreutils, diffutils, grep, tar, gzip.
58718
58719 2007-04-04  Simon Josefsson  <simon@josefsson.org>
58720
58721         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
58722
58723 2007-04-04  Karl Berry  <karl@gnu.org>
58724
58725         * MODULES.html.sh (func_module): missing '.
58726
58727 2007-04-03  Bruno Haible  <bruno@clisp.org>
58728
58729         * modules/argmatch-tests (Makefile.am): New variable
58730         test_argmatch_LDADD.
58731         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
58732         * modules/array-list-tests (Makefile.am): New variable
58733         test_array_list_LDADD.
58734         * modules/array-oset-tests (Makefile.am): New variable
58735         test_array_oset_LDADD.
58736         * modules/avltree-list-tests (Makefile.am): New variable
58737         test_avltree_list_LDADD.
58738         * modules/avltree-oset-tests (Makefile.am): New variable
58739         test_avltree_oset_LDADD.
58740         * modules/avltreehash-list-tests (Makefile.am): New variable
58741         test_avltreehash_list_LDADD.
58742         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
58743         test_canonicalize_lgpl_LDADD.
58744         * modules/carray-list-tests (Makefile.am): New variable
58745         test_carray_list_LDADD.
58746         * modules/dirname-tests (Makefile.am): New variable
58747         test_dirname_LDADD.
58748         * modules/linked-list-tests (Makefile.am): New variable
58749         test_linked_list_LDADD.
58750         * modules/linkedhash-list-tests (Makefile.am): New variable
58751         test_linkedhash_list_LDADD.
58752         * modules/rbtree-list-tests (Makefile.am): New variable
58753         test_rbtree_list_LDADD.
58754         * modules/rbtree-oset-tests (Makefile.am): New variable
58755         test_rbtree_oset_LDADD.
58756         * modules/rbtreehash-list-tests (Makefile.am): New variable
58757         test_rbtreehash_list_LDADD.
58758         * modules/xvasprintf-tests (Makefile.am): New variable
58759         test_xvasprintf_LDADD.
58760         Reported by Eric Blake.
58761
58762 2007-04-03  Eric Blake  <ebb9@byu.net>
58763
58764         * DEPENDENCIES: Weaken m4 requirements.
58765
58766 2007-04-03  Bruno Haible  <bruno@clisp.org>
58767
58768         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
58769         * modules/isnanl-tests (configure.ac): Likewise.
58770
58771 2007-04-03  Ben Pfaff  <blp@gnu.org>
58772
58773         * modules/iconv_open: Add $(srcdir)/ to source directory
58774         references in Makefile fragments that call gperf, to fix VPATH
58775         builds.
58776
58777 2007-04-03  Bruno Haible  <bruno@clisp.org>
58778
58779         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
58780         * lib/ldexpl.c: Undo last change.
58781
58782 2007-04-03  Bruno Haible  <bruno@clisp.org>
58783
58784         * modules/printf-frexpl (Depends-on): Undo last change.
58785         (Files): Add m4/ldexpl.m4.
58786
58787 2007-04-03  Bruno Haible  <bruno@clisp.org>
58788
58789         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
58790         * modules/isnanl (Link): New section.
58791
58792         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
58793         * modules/frexp (Link): New section.
58794
58795         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
58796         * modules/frexpl (Link): New section.
58797
58798         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
58799         * modules/ldexpl (Link): New section.
58800
58801 2007-04-03  Bruno Haible  <bruno@clisp.org>
58802
58803         * modules/TEMPLATE-EXTENDED: New file.
58804         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
58805
58806 2007-04-03  Bruno Haible  <bruno@clisp.org>
58807
58808         * DEPENDENCIES: New file.
58809         Suggested by Simon Josefsson.
58810
58811 2007-04-03  Bruno Haible  <bruno@clisp.org>
58812
58813         * doc/gnulib.texi: Escape @.
58814
58815 2007-04-03  James Youngman  <jay@gnu.org>
58816         and Paul Eggert  <eggert@cs.ucla.edu>
58817
58818         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
58819         birthtime on all systems that have birthtime, not just those which
58820         use st_birthtimensec rather than st_birthtim.  Putting zero in
58821         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
58822         that the birth time is not available for files on an NFS mount.
58823
58824 2007-04-03  Simon Josefsson  <simon@josefsson.org>
58825
58826         * modules/memxor: Move back from crypto/, suggested by Bruno.
58827         * modules/crypto/hmac-sha1: Fix memxor dependency.
58828
58829         * modules/crypto/gc: Moved from ../.
58830
58831 2007-04-02  Eric Blake  <ebb9@byu.net>
58832
58833         * lib/ldexpl.c (includes): Avoid libm.
58834
58835         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
58836
58837 2007-04-02  Bruno Haible  <bruno@clisp.org>
58838
58839         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
58840         on IRIX.
58841
58842 2007-04-02  Bruno Haible  <bruno@clisp.org>
58843
58844         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
58845         x86 or x86_64 platforms running MacOS X.
58846         Reported by Ryan Schmidt <@ryandesign.com>.
58847
58848 2007-04-02  Bruno Haible  <bruno@clisp.org>
58849
58850         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
58851         i386.
58852
58853 2007-04-01  Simon Josefsson  <simon@josefsson.org>
58854
58855         * modules/crypto/arcfour: Moved from ../.
58856         * modules/crypto/arcfour-tests: Moved from ../.
58857         * modules/crypto/arctwo: Moved from ../.
58858         * modules/crypto/arctwo-tests: Moved from ../.
58859         * modules/crypto/des: Moved from ../.
58860         * modules/crypto/des-tests: Moved from ../.
58861         * modules/crypto/gc-arcfour: Moved from ../.
58862         * modules/crypto/gc-arcfour-tests: Moved from ../.
58863         * modules/crypto/gc-arctwo: Moved from ../.
58864         * modules/crypto/gc-arctwo-tests: Moved from ../.
58865         * modules/crypto/gc-des: Moved from ../.
58866         * modules/crypto/gc-des-tests: Moved from ../.
58867         * modules/crypto/gc-hmac-md5: Moved from ../.
58868         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
58869         * modules/crypto/gc-hmac-sha1: Moved from ../.
58870         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
58871         * modules/crypto/gc-md2: Moved from ../.
58872         * modules/crypto/gc-md2-tests: Moved from ../.
58873         * modules/crypto/gc-md4: Moved from ../.
58874         * modules/crypto/gc-md4-tests: Moved from ../.
58875         * modules/crypto/gc-md5: Moved from ../.
58876         * modules/crypto/gc-md5-tests: Moved from ../.
58877         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
58878         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
58879         * modules/crypto/gc-random: Moved from ../.
58880         * modules/crypto/gc-rijndael: Moved from ../.
58881         * modules/crypto/gc-rijndael-tests: Moved from ../.
58882         * modules/crypto/gc-sha1: Moved from ../.
58883         * modules/crypto/gc-sha1-tests: Moved from ../.
58884         * modules/crypto/gc-tests: Moved from ../.
58885         * modules/crypto/hmac-md5: Moved from ../.
58886         * modules/crypto/hmac-md5-tests: Moved from ../.
58887         * modules/crypto/hmac-sha1: Moved from ../.
58888         * modules/crypto/hmac-sha1-tests: Moved from ../.
58889         * modules/crypto/md2: Moved from ../.
58890         * modules/crypto/md2-tests: Moved from ../.
58891         * modules/crypto/md4: Moved from ../.
58892         * modules/crypto/md4-tests: Moved from ../.
58893         * modules/crypto/md5: Moved from ../.
58894         * modules/crypto/md5-tests: Moved from ../.
58895         * modules/crypto/memxor: Moved from ../.
58896         * modules/crypto/rijndael: Moved from ../.
58897         * modules/crypto/rijndael-tests: Moved from ../.
58898         * modules/crypto/sha1: Moved from ../.
58899
58900 2007-03-30  James Youngman  <jay@gnu.org>
58901
58902         * tests/test-stat-time.c (prepare_test): use chmod() rather than
58903         rename() to change the ctime of a file (because ctime is unaffected
58904         by rename on jfs2 on AIX 5.1).
58905         (main): Start by doing cleanup, in case a previous run failed leaving
58906         test files behind.
58907
58908 2007-03-31  Bruno Haible  <bruno@clisp.org>
58909
58910         Support old proprietary implementations of iconv.
58911         * modules/iconv_open: New file.
58912         * lib/iconv_.h: New file.
58913         * m4/iconv_h.m4: New file.
58914         * lib/iconv_open.c: New file.
58915         * lib/iconv_open-aix.gperf: New file.
58916         * lib/iconv_open-hpux.gperf: New file.
58917         * lib/iconv_open-irix.gperf: New file.
58918         * lib/iconv_open-osf.gperf: New file.
58919         * m4/iconv_open.m4: New file.
58920         * modules/linebreak (Depends-on): Add iconv_open.
58921         * modules/striconv (Depends-on): Likewise.
58922         * modules/striconveh (Depends-on): Likewise.
58923         * modules/unicodeio (Depends-on): Likewise.
58924         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
58925         (iconv_t)(-1).
58926         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
58927         conversion if cd is (iconv_t)(-1).
58928         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
58929         is not possible.
58930
58931 2007-03-31  Bruno Haible  <bruno@clisp.org>
58932
58933         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
58934         work on Solaris either. Protect also second use of "autodetect_jp".
58935
58936 2007-03-31  Bruno Haible  <bruno@clisp.org>
58937
58938         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
58939         the function is not present.
58940
58941 2007-03-31  Bruno Haible  <bruno@clisp.org>
58942
58943         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
58944         the function is not present.
58945
58946 2007-03-31  Bruno Haible  <bruno@clisp.org>
58947
58948         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
58949         a bug in HP-UX iconv_open().
58950
58951 2007-03-31  Bruno Haible  <bruno@clisp.org>
58952
58953         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
58954         (Mathematics <math.h>): New section, add fpieee.
58955         (Input/output <stdio.h>): Add fseterr.
58956         (Mathematics <math.h>): New section, add printf-frexp.
58957         (Container data structures): Add sublist.
58958         (Core language properties): Add fpucw, inline.
58959         (Functions for greatest-width integer types <inttypes.h>): Add
58960         imaxabs, imaxdiv, inttypes.
58961         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
58962         isnanl-nolibm, ldexp.
58963         (Mathematics <math.h>): New section, add printf-frexpl.
58964         (Support for systems lacking POSIX:2001): Add fprintf-posix,
58965         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
58966         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
58967         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
58968         (Unicode string functions): Add unistr/u*-mbtoucr.
58969         (Java): Add javacomp-script, javaexec-script.
58970         (C#): Add csharpcomp-script, csharpexec-script.
58971         (Support for building libraries and executables): Add havelib,
58972         relocatable-*.
58973         (Support for maintaining and releasing projects): Renamed from
58974         'Support for maintaining and release projects'. Add announce-gen.
58975
58976 2007-03-31  Bruno Haible  <bruno@clisp.org>
58977
58978         * README: Talk primarily about git.
58979         (git and CVS): Renamed from CVS.
58980         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
58981         gnulib is available through git.
58982         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
58983
58984 2007-03-30  Bruno Haible  <bruno@clisp.org>
58985
58986         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
58987         * lib/poll_.h: Likewise.
58988         * lib/stat_.h: Likewise.
58989         * lib/sys_time_.h: Likewise.
58990         * lib/sysexit_.h: Likewise.
58991         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
58992         * lib/stdbool_.h: Likewise.
58993         * lib/byteswap_.h: Add double-inclusion guard.
58994
58995 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
58996
58997         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
58998
58999 2007-03-30  Karl Berry  <karl@gnu.org>
59000
59001         * config/srclist-update: double space after USA in the license
59002         substitution, since that's how it's usually (?) written.
59003
59004 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
59005
59006         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
59007         reported by Bruno Haible.
59008
59009 2007-03-29  Bruno Haible  <bruno@clisp.org>
59010
59011         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
59012         a bug in AIX iconv().
59013
59014 2007-03-29  Bruno Haible  <bruno@clisp.org>
59015
59016         * modules/ldexpl-tests: New file.
59017         * tests/test-ldexpl.c: New file.
59018
59019 2007-03-29  Bruno Haible  <bruno@clisp.org>
59020
59021         * lib/ldexpl.c: Include fpucw.h.
59022         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
59023         multiplication.
59024         * modules/ldexpl (Depends-on): Add fpucw.
59025
59026 2007-03-29  Bruno Haible  <bruno@clisp.org>
59027
59028         * modules/ldexpl: New file.
59029         * m4/ldexpl.m4: New file.
59030         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
59031         set.
59032         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
59033         REPLACE_LDEXPL.
59034         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
59035         REPLACE_LDEXPL.
59036         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59037         gl_FUNC_LDEXPL_WORKS.
59038         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
59039         * modules/mathl (Files): Remove lib/ldexpl.c.
59040         (Depends-on): Add ldexpl.
59041
59042 2007-03-29  Bruno Haible  <bruno@clisp.org>
59043
59044         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
59045
59046 2007-03-29  Bruno Haible  <bruno@clisp.org>
59047
59048         * tests/test-striconveh.c (main): Don't assume that a direct conversion
59049         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
59050         and possibly also HP-UX.
59051         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
59052         work on AIX, IRIX, HP-UX, OSF/1.
59053         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
59054         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
59055         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
59056         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
59057         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
59058         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
59059
59060 2007-03-29  Bruno Haible  <bruno@clisp.org>
59061
59062         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
59063
59064 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
59065
59066         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
59067         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
59068
59069 2007-03-29  Eric Blake  <ebb9@byu.net>
59070
59071         * lib/acl-internal.h: Remove redundant include.
59072         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
59073         Cygwin when a file is locked.
59074
59075 2007-03-29  Bruno Haible  <bruno@clisp.org>
59076
59077         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
59078         file.
59079         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
59080
59081 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
59082
59083         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
59084         try to remove a parent directory if the child couldn't be removed
59085         (except for the first rmdir, which could fail because the child
59086         doesn't exist).  Problem reported by Jeff Blaine in
59087         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
59088
59089 2007-03-28  Bruno Haible  <bruno@clisp.org>
59090
59091         * lib/striconveh.c (utf8conv_carefully): New function.
59092         (mem_cd_iconveh_internal): Invoke it.
59093
59094 2007-03-28  Bruno Haible  <bruno@clisp.org>
59095
59096         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
59097         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
59098         input.
59099         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
59100         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
59101         unistr/u8-uctomb.
59102
59103 2007-03-28  Bruno Haible  <bruno@clisp.org>
59104
59105         * modules/unistr/u8-mbtoucr: New file.
59106         * lib/unistr/u8-mbtoucr.c: New file.
59107         * modules/unistr/u16-mbtoucr: New file.
59108         * lib/unistr/u16-mbtoucr.c: New file.
59109         * modules/unistr/u16-mbtoucr: New file.
59110         * lib/unistr/u16-mbtoucr.c: New file.
59111         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
59112
59113 2007-03-27  Simon Josefsson  <simon@josefsson.org>
59114             Bruno Haible  <bruno@clisp.org>
59115
59116         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
59117         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
59118         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
59119
59120         * m4/stdio_h.m4: Add stubs for vasprintf too.
59121
59122         * modules/stdio: Support vasprintf in sed command.
59123
59124         * modules/vasprintf: Depend on stdio for prototypes.  Remove
59125         vasprintf.h.  Add stdio module indicator.
59126
59127         * lib/stdio_.h: Declare asprintf and vasprintf, based on
59128         vasprintf.h.
59129
59130         * lib/vasprintf.h: File removed.
59131
59132         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
59133         * lib/vasprintf.c: Ditto.
59134         * lib/xvasprintf.c: Ditto.
59135         * tests/test-vasprintf-posix.c: Ditto.
59136         * tests/test-vasprintf.c: Ditto.
59137
59138 2007-03-27  Bruno Haible  <bruno@clisp.org>
59139
59140         Make vasnprintf multithread-safe.
59141         * lib/vasnprintf.c (decimal_point_char): New function.
59142         (VASNPRINTF): Use it.
59143         Suggested by Simon Josefsson.
59144
59145 2007-03-27  Eric Blake  <ebb9@byu.net>
59146
59147         Support sub-second birthtime on cygwin.
59148         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
59149         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
59150         (get_stat_birthtime): Also work with st_birthtim.
59151
59152 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
59153
59154         * lib/stat-time.h (USE_BIRTHTIME): Remove.
59155         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
59156         (get_stat_birthtime_ns): Do not try to use "spare" fields.
59157         (get_stat_birthtime_ns): Simplify compile-time tests.
59158         (get_stat_birthtime): Change the API to look like
59159         get_stat_mtime etc., except return a negative tv_nsec on error.
59160         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
59161         Don't check for "spare" fields.
59162         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
59163         or for struct stat.st_birthtime, as these tests aren't used.
59164         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
59165
59166 2007-03-27  Bruno Haible  <bruno@clisp.org>
59167
59168         * lib/stat-time.h: Include <sys/stat.h>.
59169
59170 2007-03-27  James Youngman  <jay@gnu.org>
59171
59172         * lib/stat-time.h (get_stat_birthtime): New function for
59173           retrieving st_birthtime as provided by UFS2 (hence *BSD).
59174         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
59175           and its variants.
59176         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
59177         * modules/stat-time-test: New file.
59178         * tests/test-stat-time.c: New test, devised by Bruno Haible.
59179
59180 2007-03-26  Bruno Haible  <bruno@clisp.org>
59181
59182         Better support of signalling NaNs.
59183         * lib/atanl.c: Include isnanl.h.
59184         (atanl): Perform test for NaN at the beginning of the function and
59185         through a call to isnanl.
59186         * lib/cosl.c: Include isnanl.h.
59187         (cosl): Perform test for NaN at the beginning of the function and
59188         through a call to isnanl.
59189         * lib/ldexpl.c: Include isnanl.h.
59190         (ldexpl): Perform test for NaN through a call to isnanl.
59191         * lib/logl.c: Include isnanl.h.
59192         (logl): Perform test for NaN at the beginning of the function and
59193         through a call to isnanl.
59194         * lib/sinl.c: Include isnanl.h.
59195         (sinl): Perform test for NaN at the beginning of the function and
59196         through a call to isnanl.
59197         * lib/sqrtl.c: Include isnanl.h.
59198         (sqrtl): Perform test for NaN at the beginning of the function and
59199         through a call to isnanl.
59200         * lib/tanl.c: Include isnanl.h.
59201         (tanl): Perform test for NaN at the beginning of the function and
59202         through a call to isnanl.
59203         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
59204         * modules/mathl (Depends-on): Add isnanl.
59205
59206 2007-03-26  Eric Blake  <ebb9@byu.net>
59207
59208         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
59209         regression in logic sense of previous patch.
59210
59211 2007-03-26  Bruno Haible  <bruno@clisp.org>
59212
59213         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
59214         unportable shell command "if ! ...".
59215         Reported by Ralf Wildenhues.
59216
59217 2007-03-25  Bruno Haible  <bruno@clisp.org>
59218
59219         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
59220         <sysexits.h> file, and only add EX_CONFIG.
59221         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
59222         absolute file name and whether it is sufficient. Substitute also
59223         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
59224         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
59225         ABSOLUTE_SYSEXITS_H into sysexits.h.
59226
59227 2007-03-25  Bruno Haible  <bruno@clisp.org>
59228
59229         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
59230         hints is NULL.
59231
59232 2007-03-25  Bruno Haible  <bruno@clisp.org>
59233
59234         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
59235         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
59236
59237 2007-03-25  Bruno Haible  <bruno@clisp.org>
59238
59239         * lib/vasnprintf.c: Include langinfo.h.
59240         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
59241         multithread-safe.
59242         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
59243         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
59244         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59245         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59246         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59247         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59248         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59249         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
59250         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59251         Reported by Simon Josefsson.
59252
59253 2007-03-25  Bruno Haible  <bruno@clisp.org>
59254
59255         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
59256         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
59257         * modules/vasnprintf (Depends-on): Add stdint.
59258
59259 2007-03-25  Bruno Haible  <bruno@clisp.org>
59260
59261         * modules/fpieee: New file.
59262         * m4/fpieee.m4: New file.
59263         * modules/isnan-nolibm (Depends-on): Add fpieee.
59264         * modules/isnanl-nolibm (Depends-on): Add fpieee.
59265         * modules/isnanl (Depends-on): Add fpieee.
59266
59267 2007-03-25  Bruno Haible  <bruno@clisp.org>
59268
59269         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
59270
59271 2007-03-25  Bruno Haible  <bruno@clisp.org>
59272
59273         Avoid test failures on IRIX 6.5.
59274         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
59275         (main): Use it.
59276         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
59277         macros.
59278         (main): Use them.
59279
59280 2007-03-25  Bruno Haible  <bruno@clisp.org>
59281
59282         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
59283         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
59284         exists but doesn't work.
59285         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
59286         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
59287         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
59288         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
59289         math.h.
59290
59291 2007-03-25  Bruno Haible  <bruno@clisp.org>
59292
59293         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
59294         returns inf. Needed on IRIX 6.5.
59295
59296 2007-03-25  Bruno Haible  <bruno@clisp.org>
59297
59298         * tests/test-frexpl.c: Include isnanl-nolibm.h.
59299         (main): Use isnanl instead of x != x idiom.
59300         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
59301
59302         * tests/test-frexp.c: Include isnan.h.
59303         (main): Use isnan instead of x != x idiom.
59304         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
59305
59306 2007-03-25  Bruno Haible  <bruno@clisp.org>
59307
59308         * tests/test-frexp.c (NaN): New function/macro.
59309         (main): Use it instead of 0.0 / 0.0.
59310         * tests/test-isnan.c (NaN): New function/macro.
59311         (main): Use it instead of 0.0 / 0.0.
59312         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
59313         (test_function): Use it instead of 0.0 / 0.0.
59314         * tests/test-vasprintf-posix.c (NaN): New function/macro.
59315         (test_function): Use it instead of 0.0 / 0.0.
59316         * tests/test-snprintf-posix.h (NaN): New function/macro.
59317         (test_function): Use it instead of 0.0 / 0.0.
59318         * tests/test-sprintf-posix.h (NaN): New function/macro.
59319         (test_function): Use it instead of 0.0 / 0.0.
59320         * tests/test-fprintf-posix.h (NaN): New function/macro.
59321         (test_function): Use it instead of 0.0 / 0.0.
59322         * tests/test-printf-posix.h (NaN): New function/macro.
59323         (test_function): Use it instead of 0.0 / 0.0.
59324
59325         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
59326
59327 2007-03-25  Bruno Haible  <bruno@clisp.org>
59328
59329         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
59330
59331 2007-03-25  Bruno Haible  <bruno@clisp.org>
59332
59333         * lib/regexec.c (merge_state_with_log): Make static.
59334
59335 2007-03-25  Bruno Haible  <bruno@clisp.org>
59336
59337         * lib/trigl.c (kernel_rem_pio2): Make static.
59338
59339 2007-03-25  Bruno Haible  <bruno@clisp.org>
59340
59341         * lib/sincosl.c (sincosl_table): Make static.
59342
59343 2007-03-25  Bruno Haible  <bruno@clisp.org>
59344
59345         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
59346         if the compiler does not support C99.
59347
59348 2007-03-25  Bruno Haible  <bruno@clisp.org>
59349
59350         * modules/time (Makefile.am): Ensure all rule action lines start with a
59351         tab.
59352
59353 2007-03-24  Bruno Haible  <bruno@clisp.org>
59354
59355         * modules/tsearch-tests: New file.
59356         * tests/test-tsearch.sh: New file.
59357         * tests/test-tsearch.c: New file, mostly copied from glibc.
59358
59359         * modules/search-tests: New file.
59360         * tests/test-search.c: New file.
59361
59362         * modules/search: New file.
59363         * lib/search_.h: New file, incorporating lib/tsearch.h.
59364         * m4/search_h.m4: New file.
59365         * lib/tsearch.h: Remove file.
59366         * lib/tsearch.c: Include search.h instead of tsearch.h.
59367         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
59368         HAVE_TSEARCH.
59369         * modules/tsearch (Files): Remove lib/tsearch.h.
59370         (Depends-on): Add search.
59371         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
59372         (Include): Change tsearch.h into search.h.
59373
59374 2007-03-24  Bruno Haible  <bruno@clisp.org>
59375
59376         * modules/fpucw: New file.
59377         * lib/fpucw.h: New file.
59378         * lib/frexp.c: Include fpucw.h.
59379         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
59380         (FUNC): Use them.
59381         * lib/printf-frexp.c: Include fpucw.h.
59382         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
59383         (FUNC): Use them.
59384         * lib/vasnprintf.c: Include fpucw.h.
59385         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
59386         'long double' calculations.
59387         * tests/test-frexpl.c: Include fpucw.h.
59388         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
59389         * tests/test-printf-frexpl.c: Include fpucw.h.
59390         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
59391         * modules/frexpl (Depends-on): Add fpucw.
59392         * modules/printf-frexpl (Depends-on): Likewise.
59393         * modules/fprintf-posix (Depends-on): Likewise.
59394         * modules/snprintf-posix (Depends-on): Likewise.
59395         * modules/sprintf-posix (Depends-on): Likewise.
59396         * modules/vasnprintf-posix (Depends-on): Likewise.
59397         * modules/vasprintf-posix (Depends-on): Likewise.
59398         * modules/vfprintf-posix (Depends-on): Likewise.
59399         * modules/vsnprintf-posix (Depends-on): Likewise.
59400         * modules/vsprintf-posix (Depends-on): Likewise.
59401         * modules/frexpl-tests (Depends-on): Likewise.
59402         * modules/printf-frexpl-tests (Depends-on): Likewise.
59403
59404 2007-03-24  Bruno Haible  <bruno@clisp.org>
59405
59406         * lib/float+.h: New file.
59407         * lib/isnan.c: Include float+.h.
59408         (SIZE): New macro.
59409         (FUNC): Compare only SIZE bytes of the value.
59410         * lib/vasnprintf.c: Include float+.h.
59411         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
59412         SIZEOF_LDBL or SIZEOF_DBL bytes.
59413         * modules/isnan-nolibm (Files): Add lib/float+.h.
59414         * modules/isnanl-nolibm (Files): Add lib/float+.h.
59415         * modules/isnanl (Files): Add lib/float+.h.
59416         * modules/vasnprintf (Files): Add lib/float+.h.
59417
59418 2007-03-24  Bruno Haible  <bruno@clisp.org>
59419
59420         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
59421         include isnanl-nolibm.h.
59422
59423 2007-03-24  Bruno Haible  <bruno@clisp.org>
59424
59425         * tests/test-read-file.c (main): Don't produce spurious output for
59426         expected situations. Make the test fail if it encountered unexpected
59427         results.
59428
59429 2007-03-24  Bruno Haible  <bruno@clisp.org>
59430
59431         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
59432         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
59433
59434 2007-03-24  Bruno Haible  <bruno@clisp.org>
59435
59436         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
59437
59438 2007-03-24  Bruno Haible  <bruno@clisp.org>
59439
59440         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
59441         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
59442
59443         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
59444         * modules/utf8-ucs4: Turn into a symbolic link to module
59445         unistr/u8-mbtouc.
59446
59447         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
59448         utf8-ucs4-unsafe.
59449         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
59450         unistr/u8-mbtouc-unsafe.
59451
59452         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
59453         * modules/utf16-ucs4: Turn into a symbolic link to module
59454         unistr/u16-mbtouc.
59455
59456         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
59457         utf16-ucs4-unsafe.
59458         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
59459         unistr/u16-mbtouc-unsafe.
59460
59461         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
59462         * modules/ucs4-utf8: Turn into a symbolic link to module
59463         unistr/u8-ubtomb.
59464
59465         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
59466         * modules/ucs4-utf16: Turn into a symbolic link to module
59467         unistr/u16-ubtomb.
59468
59469 2007-03-24  Bruno Haible  <bruno@clisp.org>
59470
59471         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
59472         Enable the function only if HAVE_INLINE.
59473         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
59474         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
59475         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
59476         Enable the function only if HAVE_INLINE.
59477         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
59478         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
59479         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
59480         Enable the function only if HAVE_INLINE.
59481         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
59482         Enable the function only if HAVE_INLINE.
59483         * modules/utf8-ucs4: Update.
59484         * modules/utf8-ucs4-unsafe: Update.
59485         * modules/utf16-ucs4: Update.
59486         * modules/utf16-ucs4-unsafe: Update.
59487         * modules/ucs4-utf8: Update.
59488         * modules/ucs4-utf16: Update.
59489
59490 2007-03-24  Bruno Haible  <bruno@clisp.org>
59491
59492         * lib/utf8-ucs4.h: Remove file.
59493         * lib/utf8-ucs4-unsafe.h: Remove file.
59494         * lib/utf16-ucs4.h: Remove file.
59495         * lib/utf16-ucs4-unsafe.h: Remove file.
59496         * lib/ucs4-utf8.h: Remove file.
59497         * lib/ucs4-utf16.h: Remove file.
59498         * lib/unistr.h: Include their previous contents.
59499         * m4/utf-ucs4.m4: Remove file.
59500         * m4/ucs4-utf.m4: Remove file.
59501         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
59502         (Depends-on): Add unistr/base.
59503         (configure.ac): Remove gl_UTF_UCS4.
59504         (Makefile.am): Update.
59505         (Include): Change to unistr.h.
59506         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
59507         (Depends-on): Add unistr/base.
59508         (configure.ac): Remove gl_UTF_UCS4.
59509         (Makefile.am): Update.
59510         (Include): Change to unistr.h.
59511         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
59512         (Depends-on): Add unistr/base.
59513         (configure.ac): Remove gl_UTF_UCS4.
59514         (Makefile.am): Update.
59515         (Include): Change to unistr.h.
59516         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
59517         (Depends-on): Add unistr/base.
59518         (configure.ac): Remove gl_UTF_UCS4.
59519         (Makefile.am): Update.
59520         (Include): Change to unistr.h.
59521         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
59522         (Depends-on): Add unistr/base.
59523         (configure.ac): Remove gl_UCS4_UTF.
59524         (Makefile.am): Update.
59525         (Include): Change to unistr.h.
59526         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
59527         (Depends-on): Add unistr/base.
59528         (configure.ac): Remove gl_UCS4_UTF.
59529         (Makefile.am): Update.
59530         (Include): Change to unistr.h.
59531         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
59532         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
59533         utf8-ucs4-unsafe.h.
59534         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
59535         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
59536         utf16-ucs4-unsafe.h.
59537         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
59538         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
59539         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
59540         * lib/unistr/u8-strchr.c: Likewise.
59541         * lib/unistr/u8-strrchr.c: Likewise.
59542         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
59543         * lib/unistr/u16-strchr.c: Likewise.
59544         * lib/unistr/u16-strrchr.c: Likewise.
59545         * lib/striconveh.c: Update.
59546         * lib/linebreak.c: Update.
59547
59548 2007-03-24  Bruno Haible  <bruno@clisp.org>
59549
59550         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
59551         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
59552
59553 2007-03-22  Bruno Haible  <bruno@clisp.org>
59554
59555         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
59556
59557 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
59558
59559         * MODULES.html.sh (File system functions): New module write-any-file.
59560         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
59561         * m4/write-any-file.m4: New files.
59562
59563 2007-03-23  Eric Blake  <ebb9@byu.net>
59564
59565         * gnulib-tool: Rearrange space-tab sequences, since some editors
59566         like to eat them.
59567
59568 2007-03-23  Eric Blake  <ebb9@byu.net>
59569
59570         * lib/version-etc.c (version_etc_va): Update license wording to
59571         be more concise.  Recommended by Richard Stallman.
59572
59573 2007-03-22  Bruno Haible  <bruno@clisp.org>
59574
59575         * lib/poll.c (MSG_PEEK): New fallback definition.
59576
59577 2007-03-22  Bruno Haible  <bruno@clisp.org>
59578
59579         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
59580         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
59581         (main): Update.
59582         Fixes a compilation error on BeOS.
59583
59584 2007-03-22  Bruno Haible  <bruno@clisp.org>
59585
59586         * modules/frexpl-tests: New file.
59587         * tests/test-frexpl.c: New file.
59588
59589         * modules/frexpl: New file.
59590         * m4/frexpl.m4: New file.
59591         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
59592         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
59593         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
59594         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
59595         (Depends-on): Add frexpl. Remove isnanl-nolibm.
59596         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
59597
59598 2007-03-22  Bruno Haible  <bruno@clisp.org>
59599
59600         * lib/frexpl.c: Share code with lib/frexp.c.
59601         * modules/mathl (Files): Add lib/frexp.c.
59602         (Depends-on): Add isnanl-nolibm.
59603
59604 2007-03-22  Bruno Haible  <bruno@clisp.org>
59605
59606         * modules/printf-frexp (Files): Add m4/frexp.m4.
59607         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
59608         only if the found frexp function actually works.
59609
59610 2007-03-22  Bruno Haible  <bruno@clisp.org>
59611
59612         * lib/frexp.c: Remove older implementation that uses divisions.
59613
59614 2007-03-21  Bruno Haible  <bruno@clisp.org>
59615
59616         * modules/frexp-tests: New file.
59617         * tests/test-frexp.c: New file.
59618
59619         * modules/frexp: New file.
59620         * lib/frexp.c: New file.
59621         * m4/frexp.m4: New file.
59622         * lib/math_.h (frexp): New declaration.
59623         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
59624         REPLACE_FREXP.
59625         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
59626
59627 2007-03-21  Bruno Haible  <bruno@clisp.org>
59628
59629         * modules/isnanl-tests: New file.
59630         * tests/test-isnanl.c: New file.
59631
59632         * modules/isnanl: New file.
59633         * lib/isnanl.h: New file.
59634         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
59635         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
59636         gl_FUNC_ISNANL_WORKS.
59637         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
59638         New macros.
59639
59640 2007-03-21  Bruno Haible  <bruno@clisp.org>
59641
59642         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
59643         lib/isnanl.h.
59644         (Include): Update.
59645         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
59646         * lib/vasnprintf.c: Update.
59647         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
59648         tests/test-isnanl.h, remove tests/test-isnanl.c.
59649         (Makefile.am): Update.
59650         * tests/test-isnanl-nolibm.c: New file.
59651         * tests/test-isnanl.h: New file.
59652         * tests/test-isnanl.c: Remove file.
59653
59654 2007-03-21  Jim Meyering  <jim@meyering.net>
59655
59656         When trying to open ".", treat ESTALE like EACCES.
59657         * lib/savewd.c (savewd_save): Resort to forking not just upon
59658         failure with EACCES, but also when errno is ESTALE.
59659
59660 2007-03-20  Bruno Haible  <bruno@clisp.org>
59661
59662         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
59663         Needed on AIX 5.1. Reported by Matthew Woehlke.
59664
59665 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
59666
59667         Suggestions by Bruno Haible:
59668         * lib/acl-internal.h: Include "gettext.h" rather than rolling
59669         our own.
59670         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
59671         * modules/acl (Depends-on): Add gettext.
59672
59673 2007-03-19  Bruno Haible  <bruno@clisp.org>
59674
59675         * modules/iconvme: Remove file.
59676         * lib/iconvme.h: Remove file.
59677         * lib/iconvme.c: Remove file.
59678         * m4/iconvme.m4: Remove file.
59679
59680 2007-03-19  Bruno Haible  <bruno@clisp.org>
59681
59682         * doc/relocatable-maint.texi: Break long shell script line.
59683         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
59684
59685 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
59686
59687         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
59688         handle file_has_acl.
59689         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
59690         * lib/acl.c: Move header inclusions and related macro defns into
59691         lib/acl-internal.h.
59692         (S_ISLNK): Remove defn, since that's now done for us.
59693         (file_has_acl): Move to lib/file-has-acl.c.
59694         Call acl_trivial if available.  This is the crucial part of the fix.
59695         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
59696         shared within the library.  Rewrite a bit, partly to make it compatible
59697         with the GNU coding style.
59698         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
59699         Remove unnecessary double-quotes.
59700         Don't test for acl_to_text; the build will catch that.
59701         Replace acl_entries if it doesn't exist and it is needed.
59702         Check for -lsec and acl_trivial (as used on Solaris 10).
59703         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
59704         lib/file-has-acl.c.
59705         (Depends-on): Add sys_stat, for S_ISLNK.
59706
59707 2007-03-19  Ben Pfaff  <blp@gnu.org>
59708
59709         * doc/gnulib.texi: Fix typos.
59710         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
59711
59712 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
59713
59714         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
59715         If size is zero here, buf must be zero.
59716
59717 2007-03-19  Simon Josefsson  <simon@josefsson.org>
59718
59719         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
59720         <bruno@clisp.org>.
59721
59722 2007-03-18  Bruno Haible  <bruno@clisp.org>
59723
59724         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
59725         Suggested by Eric Blake.
59726
59727 2007-03-18  Ben Pfaff  <blp@gnu.org>
59728
59729         * doc/relocatable.texi: Recommend using as prefix a directory
59730         that does not exist and will never be created.  Based on
59731         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
59732         and others.
59733
59734 2007-03-17  Bruno Haible  <bruno@clisp.org>
59735
59736         * lib/fchownat.c: Include lchown.h.
59737
59738 2007-03-17  Bruno Haible  <bruno@clisp.org>
59739
59740         Fix endless loop when the given allocated size was > INT_MAX.
59741         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
59742         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
59743         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
59744         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
59745         * lib/sprintf.c (sprintf): Likewise.
59746
59747 2007-03-17  Bruno Haible  <bruno@clisp.org>
59748
59749         * tests/test-argp-2.sh (func_compare): Output a context diff.
59750
59751 2007-03-17  Bruno Haible  <bruno@clisp.org>
59752
59753         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
59754         locale's decimal-point character.
59755
59756 2007-03-17  Bruno Haible  <bruno@clisp.org>
59757
59758         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
59759         before comparing it. Needed because on some platforms (e.g. x86) a
59760         'long double' occupies less bytes than sizeof (long double).
59761
59762 2007-03-17  Bruno Haible  <bruno@clisp.org>
59763
59764         * tests/test-crc.c (main): Make printf statements 64-bit clean.
59765         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
59766         * tests/test-getaddrinfo.c (simple): Likewise.
59767         * tests/test-read-file.c (main): Likewise.
59768
59769 2007-03-17  Bruno Haible  <bruno@clisp.org>
59770
59771         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
59772
59773 2007-03-17  Bruno Haible  <bruno@clisp.org>
59774
59775         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
59776         unused variable.
59777
59778 2007-03-17  Bruno Haible  <bruno@clisp.org>
59779
59780         * tests/test-c-strcasecmp.c: Include c-strcase.h.
59781         * tests/test-c-strncasecmp.c: Likewise.
59782
59783 2007-03-17  Bruno Haible  <bruno@clisp.org>
59784
59785         * modules/stdlib (Depends-on): Add unistd.
59786         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
59787         Needed for MacOS X 10.3.
59788
59789 2007-03-17  Bruno Haible  <bruno@clisp.org>
59790
59791         * lib/unistr/u-strdup.h: Include <stdlib.h>.
59792
59793 2007-03-17  Bruno Haible  <bruno@clisp.org>
59794
59795         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
59796
59797 2007-03-17  Bruno Haible  <bruno@clisp.org>
59798
59799         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
59800         to reflect files copied from gnulib (with or without modifications).
59801         Suggested by Jim Meyering.
59802
59803 2007-03-17  Eric Blake  <ebb9@byu.net>
59804
59805         * NEWS: Document stdlib change from 2007-02-18.
59806
59807 2007-03-17  Jim Meyering  <jim@meyering.net>
59808
59809         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
59810         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
59811         someone uses a name containing shell meta-characters.
59812         Reported by Alfred M. Szmidt.
59813
59814         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
59815
59816 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
59817
59818         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
59819         and copy gettext configuration files only if configure.ac contains
59820         a use of AM_GNU_GETTEXT_VERSION.
59821
59822 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
59823
59824         * build-aux/bootstrap (gnulib_name): New variable.
59825         (gnulib_tool_options): Use it.
59826
59827 2007-03-13  Simon Josefsson  <simon@josefsson.org>
59828
59829         * tests/test-des.c: Use new namespace.
59830
59831 2007-03-15  Bruno Haible  <bruno@clisp.org>
59832
59833         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
59834         Reported by James Youngman <jay@gnu.org>.
59835
59836 2007-03-15  Bruno Haible  <bruno@clisp.org>
59837
59838         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
59839         declared prototype. Needed with cc on OSF/1 5.1.
59840
59841 2007-03-15  Bruno Haible  <bruno@clisp.org>
59842
59843         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
59844         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
59845         (struct gl_list_implementation): Add dispose_fn argument to the
59846         'create_empty', 'create' methods.
59847         (struct gl_list_impl_base): Add field 'dispose_fn'.
59848         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
59849         argument.
59850         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
59851         dispose_fn argument.
59852         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
59853         dispose_fn on the dropped values.
59854         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
59855         dispose_fn argument.
59856         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
59857         dropped values.
59858         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
59859         (gl_tree_remove_node): Call dispose_fn on the dropped value.
59860         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
59861         (gl_tree_remove_node): Call dispose_fn on the dropped value.
59862         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
59863         argument.
59864         (gl_tree_list_free): Call dispose_fn on the dropped values.
59865         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
59866         the dropped values.
59867         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
59868         Add dispose_fn argument.
59869         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
59870         Call dispose_fn on the dropped values.
59871         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
59872         Add dispose_fn argument.
59873         (gl_sublist_create): Initialize the 'dispose_fn' field.
59874         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
59875         * tests/test-array_list.c (main): Update.
59876         * tests/test-carray_list.c (main): Update.
59877         * tests/test-avltree_list.c (main): Update.
59878         * tests/test-rbtree_list.c (main): Update.
59879         * tests/test-avltreehash_list.c (main): Update.
59880         * tests/test-rbtreehash_list.c (main): Update.
59881         * tests/test-linked_list.c (main): Update.
59882         * tests/test-linkedhash_list.c (main): Update.
59883         * tests/test-array_oset.c (main): Update.
59884
59885 2007-03-15  Bruno Haible  <bruno@clisp.org>
59886
59887         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
59888         (gl_oset_create_empty): Add dispose_fn argument.
59889         (struct gl_oset_implementation): Add dispose_fn argument to
59890         'create_empty' method.
59891         (struct gl_oset_impl_base): Add dispose_fn field.
59892         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
59893         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
59894         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
59895         values.
59896         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
59897         (gl_tree_oset_free): Call dispose_fn on the dropped values.
59898         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
59899         dropped value.
59900         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
59901         dropped value.
59902         * tests/test-array_oset.c (main): Update.
59903         * tests/test-avltree_oset.c (main): Update.
59904         * tests/test-rbtree_oset.c (main): Update.
59905         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
59906
59907 2007-03-13  Bruno Haible  <bruno@clisp.org>
59908
59909         * tests/test-stdbool.c (i): Update after last patch.
59910
59911 2007-03-12  Bruno Haible  <bruno@clisp.org>
59912
59913         * lib/quotearg.c: Include <wctype.h> early, before the definition of
59914         the iswprint macro. Needed on Solaris 2.5.1.
59915
59916 2007-03-12  Bruno Haible  <bruno@clisp.org>
59917
59918         * tests/test-printf-frexp.c (main): Declare x as volatile.
59919
59920 2007-03-12  Simon Josefsson  <simon@josefsson.org>
59921
59922         * doc/gnulib.texi (Build robot for gnulib): New section.
59923
59924 2007-03-12  Jim Meyering  <jim@meyering.net>
59925
59926         * build-aux/bootstrap: New file.
59927         * build-aux/bootstrap.conf: New file, from coreutils.
59928
59929 2007-03-11  Bruno Haible  <bruno@clisp.org>
59930
59931         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
59932
59933 2007-03-12  Simon Josefsson  <simon@josefsson.org>
59934
59935         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
59936         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
59937         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
59938
59939 2007-03-11  Bruno Haible  <bruno@clisp.org>
59940
59941         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
59942         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
59943
59944 2007-03-11  Bruno Haible  <bruno@clisp.org>
59945
59946         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
59947         formula. Needed for SunPRO C 5.0.
59948
59949 2007-03-11  Bruno Haible  <bruno@clisp.org>
59950
59951         * modules/long-options (Depends-on): Add getopt.
59952
59953 2007-03-11  Bruno Haible  <bruno@clisp.org>
59954
59955         * modules/modechange (Depends-on): Add stdbool.
59956
59957 2007-03-11  Bruno Haible  <bruno@clisp.org>
59958
59959         * modules/i-ring (Depends-on): Add stdbool.
59960
59961 2007-03-11  Bruno Haible  <bruno@clisp.org>
59962
59963         * modules/gc-des (Depends-on): Add stdbool.
59964
59965 2007-03-11  Bruno Haible  <bruno@clisp.org>
59966
59967         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
59968
59969 2007-03-11  Bruno Haible  <bruno@clisp.org>
59970
59971         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
59972
59973 2007-03-11  Bruno Haible  <bruno@clisp.org>
59974
59975         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
59976
59977 2007-03-11  Bruno Haible  <bruno@clisp.org>
59978
59979         * lib/vasnprintf.c (sprintf): Undefine.
59980
59981 2007-03-11  Bruno Haible  <bruno@clisp.org>
59982
59983         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
59984         initializers in SunPRO C and Compaq C compilers.
59985
59986 2007-03-11  Bruno Haible  <bruno@clisp.org>
59987
59988         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
59989         decrementing code ANSI C compliant.
59990
59991 2007-03-11  Bruno Haible  <bruno@clisp.org>
59992
59993         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
59994         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
59995
59996 2007-03-11  Bruno Haible  <bruno@clisp.org>
59997
59998         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
59999         <stdbool.h> substitute doesn't pass.
60000
60001 2007-03-11  Bruno Haible  <bruno@clisp.org>
60002
60003         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
60004
60005 2007-03-11  Bruno Haible  <bruno@clisp.org>
60006
60007         * gnulib-tool (func_create_megatestdir): Create also an autobuild
60008         script, for submission to autobuild.josefsson.org.
60009
60010 2007-03-10  Bruno Haible  <bruno@clisp.org>
60011
60012         * modules/canonicalize-lgpl-tests: New file.
60013         * tests/test-canonicalize-lgpl.sh: New file.
60014         * tests/test-canonicalize-lgpl.c: New file.
60015
60016         * modules/c-strcase-tests: New file.
60017         * tests/test-c-strcase.sh: New file.
60018         * tests/test-c-strcasecmp.c: New file.
60019         * tests/test-c-strncasecmp.c: New file.
60020
60021         * modules/atexit-tests: New file.
60022         * tests/test-atexit.sh: New file.
60023         * tests/test-atexit.c: New file.
60024
60025 2007-03-10  Bruno Haible  <bruno@clisp.org>
60026
60027         * tests/test-binary-io.sh: Use temporary filenames that are not so
60028         likely to clash with those of other tests (in a parallel make).
60029         * tests/test-binary-io.c: Likewise.
60030
60031 2007-03-10  Bruno Haible  <bruno@clisp.org>
60032
60033         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
60034         fallback; use #error instead.
60035         Suggested by Simon Josefsson.
60036
60037 2007-03-10  Bruno Haible  <bruno@clisp.org>
60038
60039         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
60040         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
60041         first and the last.
60042
60043 2007-03-10  Bruno Haible  <bruno@clisp.org>
60044
60045         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
60046
60047 2007-03-10  Bruno Haible  <bruno@clisp.org>
60048
60049         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
60050         "make distcheck".
60051         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
60052         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
60053         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
60054
60055 2007-03-10  Bruno Haible  <bruno@clisp.org>
60056
60057         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
60058         variable.
60059         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
60060         variable.
60061
60062 2007-03-09  Eric Blake  <ebb9@byu.net>
60063         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
60064
60065         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
60066         types are not being provided by gnulib.
60067         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
60068         types are supported.
60069
60070 2007-03-10  Bruno Haible  <bruno@clisp.org>
60071
60072         * lib/stdio_.h (__attribute__): New macro.
60073         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
60074         vsprintf): Specify __attribute__ __format__ for GCC.
60075         Suggested by Eric Blake.
60076
60077 2007-03-09  Bruno Haible  <bruno@clisp.org>
60078
60079         * modules/printf-posix-tests: New file.
60080         * tests/test-printf-posix.sh: New file.
60081         * tests/test-printf-posix.c: New file.
60082
60083         * modules/printf-posix: New file.
60084         * lib/printf.c: New file.
60085         * m4/printf-posix-rpl.m4: New file.
60086         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
60087         REPLACE_PRINTF.
60088         * lib/stdio_.h (printf): New declaration.
60089         (format, __format__, ____printf____, ____scanf____, ____strftime____,
60090         ____strfmon____): New macros.
60091         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
60092         REPLACE_PRINTF.
60093
60094 2007-03-09  Bruno Haible  <bruno@clisp.org>
60095
60096         * tests/test-vasnprintf-posix2.sh: New file.
60097         * tests/test-vasnprintf-posix2.c: New file.
60098         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
60099         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
60100         (Makefile.am): Activate test-vasnprintf-posix2.sh.
60101
60102         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
60103         a locale dependent decimal point, rather than always '.'.
60104
60105 2007-03-09  Eric Blake  <ebb9@byu.net>
60106
60107         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
60108         spite of platforms like Tandem/NSK that define it to -1.
60109
60110 2007-03-08  Bruno Haible  <bruno@clisp.org>
60111
60112         * modules/vprintf-posix-tests: New file.
60113         * tests/test-vprintf-posix.sh: New file.
60114         * tests/test-vprintf-posix.c: New file.
60115         * tests/test-printf-posix.h: New file.
60116
60117         * modules/vprintf-posix: New file.
60118         * lib/vprintf.c: New file.
60119         * m4/vprintf-posix.m4: New file.
60120         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
60121         REPLACE_VPRINTF.
60122         * lib/stdio_.h (vprintf): New declaration.
60123         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
60124         REPLACE_VPRINTF.
60125
60126 2007-03-08  Bruno Haible  <bruno@clisp.org>
60127
60128         * modules/fprintf-posix-tests: New file.
60129         * tests/test-fprintf-posix.sh: New file.
60130         * tests/test-fprintf-posix.c: New file.
60131
60132         * modules/fprintf-posix: New file.
60133         * lib/fprintf.c: New file.
60134         * m4/fprintf-posix.m4: New file.
60135         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
60136         REPLACE_FPRINTF.
60137         * lib/stdio_.h (fprintf): New declaration.
60138         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
60139         REPLACE_FPRINTF.
60140
60141 2007-03-08  Bruno Haible  <bruno@clisp.org>
60142
60143         * modules/vfprintf-posix-tests: New file.
60144         * tests/test-vfprintf-posix.sh: New file.
60145         * tests/test-vfprintf-posix.c: New file.
60146         * tests/test-fprintf-posix.h: New file.
60147         * tests/test-fprintf-posix.out: New file.
60148
60149         * modules/vfprintf-posix: New file.
60150         * lib/vfprintf.c: New file.
60151         * m4/vfprintf-posix.m4: New file.
60152         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
60153         REPLACE_VFPRINTF.
60154         * lib/stdio_.h (vfprintf): New declaration.
60155         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
60156         REPLACE_VFPRINTF.
60157
60158 2007-03-08  Bruno Haible  <bruno@clisp.org>
60159
60160         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
60161
60162 2007-03-08  Bruno Haible  <bruno@clisp.org>
60163
60164         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
60165         instead of 'expr' invocations.
60166         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60167         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60168         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60169         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60170         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60171         Suggested by Paul Eggert.
60172
60173 2007-03-08  Bruno Haible  <bruno@clisp.org>
60174
60175         * modules/fseterr-tests: New file.
60176         * tests/test-fseterr.c: New file.
60177
60178         * modules/fseterr: New file.
60179         * lib/fseterr.h: New file.
60180         * lib/fseterr.c: New file.
60181
60182 2007-03-08  Bruno Haible  <bruno@clisp.org>
60183
60184         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
60185         * lib/getopt_.h: Likewise.
60186         * lib/mbswidth.h: Likewise.
60187         * lib/setenv.h: Likewise.
60188         * lib/vasnprintf.h: Likewise.
60189         * lib/vasprintf.h: Likewise.
60190         * lib/verror.h: Likewise.
60191         * lib/xsetenv.h: Likewise.
60192         * lib/xvasprintf.h: Likewise.
60193
60194 2007-03-08  Jim Meyering  <jim@meyering.net>
60195
60196         * users.txt: Add parted.
60197
60198         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
60199
60200 2007-03-07  Bruno Haible  <bruno@clisp.org>
60201
60202         * m4/printf.m4: Make the shell script snippets copy&pastable.
60203
60204 2007-03-02  Bruno Haible  <bruno@clisp.org>
60205
60206         * lib/netinet_in_.h: New file.
60207         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
60208         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
60209         * modules/netinet_in (Files): Add lib/netinet_in_.h.
60210         (Depends-on): Add absolute-header.
60211         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
60212         into netinet/in.h.
60213
60214 2007-03-03  Bruno Haible  <bruno@clisp.org>
60215
60216         * lib/sys_select_.h: New file.
60217         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
60218         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
60219         * modules/sys_select (Files): Add lib/sys_select_.h.
60220         (Depends-on): Add absolute-header.
60221         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
60222         into sys/select.h.
60223
60224 2007-03-02  Bruno Haible  <bruno@clisp.org>
60225
60226         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
60227         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
60228         values.
60229         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
60230         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
60231         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
60232         * modules/sys_socket (Depends-on): Add absolute-header.
60233         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
60234         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
60235         (Include): Remove requirement of inclusion of <sys/types.h>.
60236
60237 2007-03-02  Bruno Haible  <bruno@clisp.org>
60238
60239         * lib/byteswap_.h (bswap_32): Fix formula.
60240
60241 2007-03-06  Bruno Haible  <bruno@clisp.org>
60242
60243         * modules/sprintf-posix-tests: New file.
60244         * tests/test-sprintf-posix.c: New file.
60245
60246         * modules/sprintf-posix: New file.
60247         * lib/sprintf.c: New file.
60248         * m4/sprintf-posix.m4: New file.
60249         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
60250         REPLACE_SPRINTF.
60251         * lib/stdio_.h (sprintf): New declaration.
60252         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
60253         REPLACE_SPRINTF.
60254
60255 2007-03-06  Bruno Haible  <bruno@clisp.org>
60256
60257         * modules/vsprintf-posix-tests: New file.
60258         * tests/test-vsprintf-posix.c: New file.
60259         * tests/test-sprintf-posix.h: New file.
60260
60261         * modules/vsprintf-posix: New file.
60262         * lib/vsprintf.c: New file.
60263         * m4/vsprintf-posix.m4: New file.
60264         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
60265         REPLACE_VSPRINTF.
60266         * lib/stdio_.h (vsprintf): New declaration.
60267         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
60268         REPLACE_VSPRINTF.
60269
60270 2007-03-06  Bruno Haible  <bruno@clisp.org>
60271
60272         * modules/vsnprintf (Depend-on): Remove minmax.
60273
60274 2007-03-06  Bruno Haible  <bruno@clisp.org>
60275
60276         * modules/snprintf-posix-tests: New file.
60277         * tests/test-snprintf-posix.c: New file.
60278
60279         * modules/snprintf-posix: New file.
60280         * m4/snprintf-posix.m4: New file.
60281         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
60282         gl_FUNC_SNPRINTF.
60283         (gl_FUNC_SNPRINTF): Invoke it.
60284         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
60285         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
60286         is set.
60287         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
60288
60289 2007-03-06  Bruno Haible  <bruno@clisp.org>
60290
60291         * modules/vsnprintf-posix-tests: New file.
60292         * tests/test-vsnprintf-posix.c: New file.
60293         * tests/test-snprintf-posix.h: New file.
60294
60295         * modules/vsnprintf-posix: New file.
60296         * m4/vsnprintf-posix.m4: New file.
60297         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
60298         gl_FUNC_VSNPRINTF.
60299         (gl_FUNC_VSNPRINTF): Invoke it.
60300         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
60301         * lib/stdio_.h (vsnprintf): Define as a replacement if
60302         REPLACE_VSNPRINTF is set.
60303         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
60304
60305 2007-03-06  Bruno Haible  <bruno@clisp.org>
60306
60307         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
60308         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
60309
60310 2007-03-06  Bruno Haible  <bruno@clisp.org>
60311
60312         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
60313         (asinl): Declare also if HAVE_DECL_ASINL is set.
60314         (atanl): Declare also if HAVE_DECL_ATANL is set.
60315         (ceill): Declare also if HAVE_DECL_CEILL is set.
60316         (cosl): Declare also if HAVE_DECL_COSL is set.
60317         (expl): Declare also if HAVE_DECL_EXPL is set.
60318         (floorl): Declare also if HAVE_DECL_FLOORL is set.
60319         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
60320         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
60321         (logl): Declare also if HAVE_DECL_LOGL is set.
60322         (sinl): Declare also if HAVE_DECL_SINL is set.
60323         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
60324         (tanl): Declare also if HAVE_DECL_TANL is set.
60325         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
60326         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
60327         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
60328         declaration of frexpl, ldexpl.
60329         * modules/printf-frexpl (Depends-on): Add math.
60330         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
60331
60332 2007-03-05  Bruno Haible  <bruno@clisp.org>
60333
60334         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
60335         frexpl and ldexpl are declared.
60336         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
60337
60338 2007-03-05  Bruno Haible  <bruno@clisp.org>
60339
60340         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
60341         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
60342
60343 2007-03-05  Bruno Haible  <bruno@clisp.org>
60344
60345         * lib/stdio_.h: Include <stddef.h>.
60346
60347 2007-03-05  Bruno Haible  <bruno@clisp.org>
60348
60349         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
60350
60351 2007-03-05  Bruno Haible  <bruno@clisp.org>
60352
60353         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
60354         NetBSD 4, from Ralf Wildenhues.
60355
60356 2007-03-04  Bruno Haible  <bruno@clisp.org>
60357
60358         * lib/vasprintf.h: Update #if logic for the case when the functions
60359         exist but are overridden.
60360
60361 2007-03-04  Bruno Haible  <bruno@clisp.org>
60362
60363         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
60364         implementations: glibc-2.4 and MacOS X 10.3.
60365         * tests/test-vasnprintf-posix.c (test_function): Test also the case
60366         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
60367         * tests/test-vasprintf-posix.c (test_function): Likewise.
60368
60369 2007-03-04  Bruno Haible  <bruno@clisp.org>
60370
60371         * modules/vasprintf-posix-tests: New file.
60372         * tests/test-vasprintf-posix.c: New file.
60373
60374         * modules/vasprintf-posix: New file.
60375         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
60376         defined.
60377         * m4/vasprintf-posix.m4: New file.
60378         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
60379         gl_FUNC_VASPRINTF.
60380         (gl_FUNC_VASPRINTF): Invoke it.
60381         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
60382         here.
60383         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
60384
60385 2007-03-04  Bruno Haible  <bruno@clisp.org>
60386
60387         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
60388         REPLACE_GETTIMEOFDAY.
60389         * modules/sys_time (Makefile.am): Likewise.
60390         * m4/sys_time_h.m4: Likewise.
60391         * m4/gettimeofday.m4: Likewise.
60392
60393 2007-03-04  Bruno Haible  <bruno@clisp.org>
60394
60395         * modules/vasnprintf-posix-tests: New file.
60396         * tests/test-vasnprintf-posix.c: New file.
60397
60398         * modules/vasnprintf-posix: New file.
60399         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
60400         printf-frexpl.h.
60401         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
60402         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
60403         REPLACE_VASNPRINTF is defined.
60404         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
60405         gl_FUNC_VASNPRINTF.
60406         (gl_FUNC_VASNPRINTF): Invoke it.
60407         * m4/vasnprintf-posix.m4: New file.
60408         * m4/printf.m4: New file.
60409
60410 2007-03-04  Bruno Haible  <bruno@clisp.org>
60411
60412         Compile progreloc.c only if --enable-relocatable is specified.
60413         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
60414         if --enable-relocatable was specified.
60415         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
60416         lib_SOURCES.
60417
60418 2007-03-04  Jim Meyering  <jim@meyering.net>
60419
60420         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
60421         Use it consistently, rather than enumerating errno constants.
60422
60423 2007-03-04  Bruno Haible  <bruno@clisp.org>
60424
60425         * modules/xvasprintf-tests: New file.
60426         * tests/test-xvasprintf.c: New file.
60427
60428         * modules/vasprintf-tests: New file.
60429         * tests/test-vasprintf.c: New file.
60430
60431         * modules/vasnprintf-tests: New file.
60432         * tests/test-vasnprintf.c: New file.
60433
60434         * modules/vsnprintf-tests: New file.
60435         * tests/test-vsnprintf.c: New file.
60436
60437         * modules/snprintf-tests: New file.
60438         * tests/test-snprintf.c: New file.
60439
60440 2007-03-04  Bruno Haible  <bruno@clisp.org>
60441
60442         Compile relocatable.c only if --enable-relocatable is specified.
60443         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
60444         gl_RELOCATABLE_LIBRARY.
60445         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
60446         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
60447         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
60448         gl_RELOCATABLE_LIBRARY.
60449         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
60450         (Makefile.am): Remove lib_SOURCES.
60451         * modules/relocatable-lib-lgpl (configure.ac): Invoke
60452         gl_RELOCATABLE_LIBRARY.
60453         (Makefile.am): Remove lib_SOURCES.
60454         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
60455         always.
60456         * modules/relocatable-prog-wrapper (configure.ac): Invoke
60457         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
60458
60459 2007-03-04  Bruno Haible  <bruno@clisp.org>
60460
60461         * modules/argmatch-tests: New file.
60462         * tests/test-argmatch.c: New file.
60463
60464         * tests/test-allocsa.c (main): Halve the number of loop runs.
60465
60466         * modules/alloca-opt-tests: New file.
60467         * tests/test-alloca-opt.c: New file.
60468
60469 2007-03-04  Jim Meyering  <jim@meyering.net>
60470
60471         Work around difference between Linux ACLs and Solaris 10 ZFS.
60472         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
60473         for EINVAL.
60474
60475 2007-03-03  Bruno Haible  <bruno@clisp.org>
60476
60477         * modules/relocatable-prog (Depends-on): Add back progreloc's
60478         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
60479
60480 2007-03-03  Bruno Haible  <bruno@clisp.org>
60481
60482         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
60483         * modules/relocatable-lib: New file.
60484
60485 2007-03-03  Bruno Haible  <bruno@clisp.org>
60486
60487         * modules/relocatable-prog: Renamed from modules/relocatable.
60488         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
60489
60490 2007-03-03  Bruno Haible  <bruno@clisp.org>
60491
60492         * modules/relocatable-script (Files): Add doc/relocatable.texi,
60493         m4/relocatable-lib.m4.
60494         (Depends-on): Remove 'relocatable'.
60495         (configure.ac): Add gl_RELOCATABLE_NOP.
60496
60497 2007-03-03  Bruno Haible  <bruno@clisp.org>
60498
60499         * modules/relocatable-prog-wrapper: New file.
60500         * modules/relocatable (Depends-on): Add it. Remove all other
60501         dependencies except progname.
60502         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
60503
60504         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
60505         (gl_FUNC_STRERROR): Nop.
60506         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
60507
60508         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
60509         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
60510
60511         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
60512         (gl_FUNC_READLINK): Update.
60513
60514         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
60515
60516 2007-03-03  Bruno Haible  <bruno@clisp.org>
60517
60518         * lib/xreadlink.c: Include <unistd.h> unconditionally.
60519         * modules/xreadlink (Depends-on): Add unistd.
60520         * modules/xreadlink-with-size (Depends-on): Likewise.
60521
60522 2007-03-03  Bruno Haible  <bruno@clisp.org>
60523
60524         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
60525         extracted from gt_FUNC_SETENV.
60526         (gt_FUNC_SETENV): Remove macro.
60527         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
60528         remove gt_FUNC_SETENV.
60529
60530 2007-03-03  Bruno Haible  <bruno@clisp.org>
60531
60532         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
60533         ENABLE_RELOCATABLE here.
60534         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
60535
60536 2007-03-03  Bruno Haible  <bruno@clisp.org>
60537
60538         * modules/rbtreehash-list-tests (Depends-on): Add progname.
60539         * tests/test-rbtreehash_list.c: Include progname.h.
60540         (main): Call set_program_name.
60541
60542         * modules/rbtree-oset-tests (Depends-on): Add progname.
60543         * tests/test-rbtree_oset.c: Include progname.h.
60544         (main): Call set_program_name.
60545
60546         * modules/rbtree-list-tests (Depends-on): Add progname.
60547         * tests/test-rbtree_list.c: Include progname.h.
60548         (main): Call set_program_name.
60549
60550         * modules/linked-list-tests (Depends-on): Add progname.
60551         * tests/test-linked_list.c: Include progname.h.
60552         (main): Call set_program_name.
60553
60554 2007-03-03  Bruno Haible  <bruno@clisp.org>
60555
60556         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
60557         All uses of __restrict changed to _Restrict_.
60558         * lib/glob_.h (__restrict): Remove macro.
60559
60560 2007-03-02  Bruno Haible  <bruno@clisp.org>
60561
60562         * modules/gettext (configure.ac): Require gettext infrastructure
60563         from version 0.16.1.
60564
60565 2007-03-02  Bruno Haible  <bruno@clisp.org>
60566
60567         * modules/linkedhash-list-tests (Depends-on): Add progname.
60568         * tests/test-linkedhash_list.c: Include progname.h.
60569         (main): Call set_program_name.
60570
60571         * modules/carray-list-tests (Depends-on): Add progname.
60572         * tests/test-carray_list.c: Include progname.h.
60573         (main): Call set_program_name.
60574
60575         * modules/avltreehash-list-tests (Depends-on): Add progname.
60576         * tests/test-avltreehash_list.c: Include progname.h.
60577         (main): Call set_program_name.
60578
60579         * modules/avltree-oset-tests (Depends-on): Add progname.
60580         * tests/test-avltree_oset.c: Include progname.h.
60581         (main): Call set_program_name.
60582
60583         * modules/avltree-list-tests (Depends-on): Add progname.
60584         * tests/test-avltree_list.c: Include progname.h.
60585         (main): Call set_program_name.
60586
60587         * modules/array-oset-tests (Depends-on): Add progname.
60588         * tests/test-array_oset.c: Include progname.h.
60589         (main): Call set_program_name.
60590
60591         * modules/array-list-tests (Depends-on): Add progname.
60592         * tests/test-array_list.c: Include progname.h.
60593         (main): Call set_program_name.
60594
60595         * modules/argp-tests (Depends-on): Add progname.
60596         * tests/test-argp.c: Include argp.h first. Include progname.h.
60597         (main): Call set_program_name.
60598
60599 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
60600
60601         * doc/gnulib-tool.texi (Initial import): Reword description of
60602         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
60603         limited effect even if defined after the first system include.
60604
60605 2007-03-01  Bruno Haible  <bruno@clisp.org>
60606
60607         * build-aux/config.libpath: Update to libtool-1.5.22.
60608         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
60609
60610 2007-03-01  Bruno Haible  <bruno@clisp.org>
60611
60612         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
60613         foo_CFLAGS.
60614         Reported by Ralf Wildenhues.
60615
60616 2007-03-01  Bruno Haible  <bruno@clisp.org>
60617
60618         * build-aux/install-reloc: Remove object files left over by some
60619         compilers.
60620         Reported by Ralf Wildenhues.
60621
60622 2007-03-01  Bruno Haible  <bruno@clisp.org>
60623
60624         * build-aux/install-reloc: Break long lines.
60625
60626 2007-03-01  Bruno Haible  <bruno@clisp.org>
60627
60628         * doc/relocatable.texi: Document that it may not work on OpenBSD.
60629         Reported by Ralf Wildenhues.
60630
60631 2007-03-01  Bruno Haible  <bruno@clisp.org>
60632
60633         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
60634         include ordering constraints.
60635
60636 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60637
60638         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
60639         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
60640         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
60641         as another example.
60642         * lib/time_.h: Fix misspelling.
60643         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60644         Require gl_HEADER_TIME_H_DEFAULTS.
60645         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
60646         * m4/time_r.m4 (gl_TIME_R): Likewise.
60647         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
60648
60649 2007-03-01  Bruno Haible  <bruno@clisp.org>
60650
60651         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
60652         * m4/utimens.m4 (gl_UTIMENS): Likewise.
60653
60654 2007-03-01  Jim Meyering  <jim@meyering.net>
60655
60656         * modules/xreadlink (Maintainer): Add my name.
60657         * modules/xreadlink-with-size (Depends-on): Alphabetize.
60658
60659 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
60660             Bruno Haible  <bruno@clisp.org>
60661
60662         * build-aux/install-reloc: Compile also c-ctype.c.
60663         * build-aux/relocatable.sh.in: New file.
60664         * doc/relocatable.texi: New file.
60665         * doc/relocatable-maint.texi: New file.
60666         * doc/gnulib.texi: Include relocatable-maint.texi.
60667         * lib/progreloc.c: Include unistd.h unconditionally.
60668         * lib/relocwrapper.c: Include unistd.h unconditionally.
60669         Include c-ctype.h.
60670         (add_dotbin): Use c_tolower.
60671         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
60672         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
60673         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
60674         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
60675         to m4/relocatable-lib.m4.
60676         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
60677         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
60678         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
60679         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
60680         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
60681         * modules/relocatable: New file.
60682         * modules/relocatable-lib: New file.
60683         * modules/relocatable-script: New file.
60684
60685 2007-02-28  Bruno Haible  <bruno@clisp.org>
60686
60687         Import --enable-relocatable infrastructure.
60688         * build-aux/config.libpath: New file, from GNU gettext.
60689         * build-aux/install-reloc: New file, from GNU gettext.
60690         * build-aux/reloc-ldflags: New file, from GNU gettext.
60691         * lib/relocatable.h: New file, from GNU gettext.
60692         * lib/relocatable.c: New file, from GNU gettext.
60693         * lib/relocwrapper.c: New file, from GNU gettext.
60694         * m4/relocatable.m4: New file, from GNU gettext.
60695
60696 2007-02-28  Bruno Haible  <bruno@clisp.org>
60697
60698         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
60699
60700         * modules/xreadlink: New file, from GNU gettext with modifications.
60701         * lib/xreadlink.c: New file, from GNU gettext.
60702         * lib/xreadlink.h: Add comments.
60703         (xreadlink): New declaration.
60704
60705         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
60706         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
60707         lib/xreadlink-with-size.c.
60708         (configure.ac): Remove gl_XREADLINK invocation.
60709         (Makefile.am): Augment lib_SOURCES.
60710         * m4/xreadlink.m4: Remove file.
60711         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
60712         (xreadlink_with_size): Renamed from xreadink.
60713         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
60714         * modules/canonicalize (Depends-on): Replace xreadlink with
60715         xreadlink-with-size.
60716         * lib/canonicalize.c (canonicalize_filename_mode): Update.
60717
60718 2007-02-25  Jim Meyering  <jim@meyering.net>
60719
60720         * build-aux/announce-gen: When complaining about excess arguments,
60721         list them.
60722
60723 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
60724
60725         * README: Document signed integer overflow situation more
60726         accurately.
60727
60728 2007-02-25  Bruno Haible  <bruno@clisp.org>
60729
60730         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
60731         'a' or 'A' conversion.
60732
60733 2007-02-25  Bruno Haible  <bruno@clisp.org>
60734
60735         * modules/filename: Renamed from modules/pathname.
60736         (Files): Replace lib/pathname.h with lib/filename.h. Replace
60737         lib/concatpath.c with lib/concat-filename.c.
60738         (Makefile.am): Update.
60739         (Include): Replace pathname.h with filename.h.
60740         * lib/filename.h: Renamed from lib/pathname.h.
60741         (concatenated_filename): Renamed from concatenated_pathname.
60742         * lib/concat-filename.c: Renamed from lib/concatpath.c.
60743         (concatenated_filename): Renamed from concatenated_pathname.
60744         * lib/findprog.c: Include filename.h instead of pathname.h.
60745         (find_in_path): Update.
60746         * lib/javacomp.c: Include filename.h instead of pathname.h.
60747         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
60748         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
60749         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
60750         is_oldgcj_14_13_usable, is_javac_usable): Update.
60751         * lib/javaexec.c: Include filename.h instead of pathname.h.
60752         (execute_java_class): Update.
60753         * modules/findprog: Update.
60754         * modules/javacomp: Update.
60755         * modules/javaexec: Update.
60756         * MODULES.html.sh (File system functions): Add 'filename', remove
60757         'pathname'.
60758
60759 2007-02-25  Bruno Haible  <bruno@clisp.org>
60760
60761         * modules/printf-frexpl-tests: New file.
60762         * tests/test-printf-frexpl.c: New file.
60763
60764         * modules/printf-frexpl: New file.
60765         * lib/printf-frexpl.h: New file.
60766         * lib/printf-frexpl.c: New file.
60767         * m4/printf-frexpl.m4: New file.
60768
60769 2007-02-25  Bruno Haible  <bruno@clisp.org>
60770
60771         * modules/printf-frexp-tests: New file.
60772         * tests/test-printf-frexp.c: New file.
60773
60774         * modules/printf-frexp: New file.
60775         * lib/printf-frexp.h: New file.
60776         * lib/printf-frexp.c: New file.
60777         * m4/printf-frexp.m4: New file.
60778
60779 2007-02-25  Bruno Haible  <bruno@clisp.org>
60780
60781         Assume automake >= 1.10 for the tests.
60782         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
60783         * modules/arctwo-tests: Likewise.
60784         * modules/argp-tests: Likewise.
60785         * modules/avltree-list-tests: Likewise.
60786         * modules/avltree-oset-tests: Likewise.
60787         * modules/avltreehash-list-tests: Likewise.
60788         * modules/carray-list-tests: Likewise.
60789         * modules/crc-tests: Likewise.
60790         * modules/des-tests: Likewise.
60791         * modules/gc-arcfour-tests: Likewise.
60792         * modules/gc-arctwo-tests: Likewise.
60793         * modules/gc-des-tests: Likewise.
60794         * modules/gc-hmac-md5-tests: Likewise.
60795         * modules/gc-hmac-sha1-tests: Likewise.
60796         * modules/gc-md2-tests: Likewise.
60797         * modules/gc-md4-tests: Likewise.
60798         * modules/gc-md5-tests: Likewise.
60799         * modules/gc-pbkdf2-sha1-tests: Likewise.
60800         * modules/gc-rijndael-tests: Likewise.
60801         * modules/gc-sha1-tests: Likewise.
60802         * modules/gc-tests: Likewise.
60803         * modules/getaddrinfo-tests: Likewise.
60804         * modules/hmac-md5-tests: Likewise.
60805         * modules/hmac-sha1-tests: Likewise.
60806         * modules/linked-list-tests: Likewise.
60807         * modules/linkedhash-list-tests: Likewise.
60808         * modules/lock-tests: Likewise.
60809         * modules/md2-tests: Likewise.
60810         * modules/md4-tests: Likewise.
60811         * modules/md5-tests: Likewise.
60812         * modules/rbtree-list-tests: Likewise.
60813         * modules/rbtree-oset-tests: Likewise.
60814         * modules/rbtreehash-list-tests: Likewise.
60815         * modules/read-file-tests: Likewise.
60816         * modules/rijndael-tests: Likewise.
60817         * modules/stdint-tests: Likewise.
60818         * modules/tls-tests: Likewise.
60819
60820 2007-02-24  Bruno Haible  <bruno@clisp.org>
60821
60822         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
60823         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
60824         function; instead check whether isnan with a double argument links.
60825         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
60826         function; instead check whether isnan with a 'long double' argument
60827         links.
60828         Reported by Eric Blake <ebb9@byu.net>.
60829
60830 2007-02-24  Bruno Haible  <bruno@clisp.org>
60831
60832         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
60833         defined.
60834         * lib/isnanl.c: Remove all code. Just include isnan.c.
60835         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
60836
60837 2007-02-25  Jim Meyering  <jim@meyering.net>
60838
60839         Avoid conflicting types for 'unsetenv' on FreeBSD.
60840         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
60841         conflicting with FreeBSD's (5.0 and 6.1) function declaration
60842         in stdlib.h.
60843
60844 2007-02-24  Bruno Haible  <bruno@clisp.org>
60845
60846         * modules/isnanl-nolibm-tests: New file.
60847         * tests/test-isnanl.c: New file.
60848
60849         * modules/isnanl-nolibm: New file.
60850         * lib/isnanl.h: New file.
60851         * lib/isnanl.c: New file.
60852         * m4/isnanl.m4: New file.
60853
60854 2007-02-24  Bruno Haible  <bruno@clisp.org>
60855
60856         * modules/isnan-nolibm-tests: New file.
60857         * tests/test-isnan.c: New file.
60858
60859         * modules/isnan-nolibm: New file.
60860         * lib/isnan.h: New file.
60861         * lib/isnan.c: New file.
60862         * m4/isnan.m4: New file.
60863
60864 2007-02-24  Bruno Haible  <bruno@clisp.org>
60865
60866         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
60867         assume that an exponent fits in 20 bits.
60868
60869 2007-02-24  Jim Meyering  <jim@meyering.net>
60870
60871         * m4/regex.m4: Update the description of the configure-time option,
60872         --without-included-regex, to state accurately what the defaults are,
60873         and perhaps to give people an idea why using this option is risky.
60874
60875 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
60876
60877         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
60878         loops on small arguments.  This attempts to avoid the problem
60879         Bruno Haible reported for AIX 4.3.2 in
60880         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
60881
60882 2007-02-23  Bruno Haible  <bruno@clisp.org>
60883
60884         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
60885         Needed for help2man.
60886
60887 2007-02-23  Karl Berry  <karl@gnu.org>
60888
60889         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
60890         exists, foo.h should be cvs-ignored, not committed.
60891
60892 2007-02-23  Eric Blake  <ebb9@byu.net>
60893
60894         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
60895         * lib/stat-time.h (includes): Likewise.
60896         * lib/utimecmp.c (includes): Likewise.
60897         * lib/utimens.h (includes): Likewise.
60898         * lib/getdate.y (includes): Also include "timespec.h" for use
60899         internal to the module.
60900         * modules/utimens (Depends-on): Revert yesterday's patch.
60901         * modules/nanosleep (Depends-on): Add missing dependency.
60902
60903 2007-02-22  Bruno Haible  <bruno@clisp.org>
60904
60905         * lib/glob.c: Don't include getlogin_r.h.
60906
60907 2007-02-22  Jim Meyering  <jim@meyering.net>
60908
60909         * modules/utimens (Depends-on): Add timespec, required for
60910         utimens.h's inclusion of timespec.h.
60911
60912 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
60913
60914         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
60915         long unreadable paths in GNU/Linux.  Problem reported by Andreas
60916         Schwab in
60917         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
60918         I'll try to think of a better way to fix the Solaris problem.
60919
60920         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
60921         like glibc; on Solaris 10, it fails with errno == EINVAL.
60922         POSIX says the behavior is unspecified if the first argument is NULL,
60923         so play it safe and never pass NULL to the system getcwd.
60924
60925 2007-02-21  Jim Meyering  <jim@meyering.net>
60926
60927         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
60928         of gettimeofday.  It would conflict with the one now always
60929         provided via sys_time_.h.  Reported by Matthew Woehlke, as
60930         an IRIX 6.5 build failure.
60931
60932 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
60933
60934         Minor fixups to port to Solaris 10 with Sun C 5.8.
60935         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
60936         * modules/getcwd (Depends-on): Add dirfd.
60937         * lib/putenv.c (putenv): #undef it.
60938         (rpl_putenv): New decl.
60939         (malloc, free): Include <stdlib.h> rather than prototyping separately.
60940
60941 2007-02-20  Bruno Haible  <bruno@clisp.org>
60942
60943         * modules/stdio-tests: New file.
60944         * tests/test-stdio.c: New file.
60945
60946         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
60947         (Depends-on): Add stdio.
60948         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
60949         (Include): Use <stdio.h> instead of vsnprintf.h.
60950         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
60951         HAVE_DECL_VSNPRINTF.
60952         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
60953
60954         * modules/snprintf (Files): Remove lib/snprintf.h.
60955         (Depends-on): Add stdio.
60956         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
60957         (Include): Use <stdio.h> instead of snprintf.h.
60958         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
60959         HAVE_DECL_SNPRINTF.
60960         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
60961         * lib/getaddrinfo.c: Likewise.
60962
60963         * modules/stdio: New file.
60964         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
60965         * lib/snprintf.h: Remove file.
60966         * lib/vsnprintf.h: Remove file.
60967         * lib/.cppi-disable: Remove snprintf.h.
60968         * m4/stdio_h.m4: New file.
60969         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
60970
60971 2007-02-20  Jim Meyering  <jim@meyering.net>
60972
60973         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
60974         used by e.g., mingw.  From Bruno Haible.
60975
60976 2007-02-19  Bruno Haible  <bruno@clisp.org>
60977
60978         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
60979         warnings.
60980         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60981
60982 2007-02-19  Bruno Haible  <bruno@clisp.org>
60983
60984         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
60985         from mingw users.
60986
60987 2007-02-19  Bruno Haible  <bruno@clisp.org>
60988
60989         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
60990         warnings.
60991         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
60992
60993 2007-02-19  Jim Meyering  <jim@meyering.net>
60994
60995         Don't use FD after a successful "fdopendir (fd)".
60996         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
60997         Reset it by calling dirfd on the just-obtained DIR*.
60998
60999         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
61000         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
61001
61002 2007-02-18  Bruno Haible  <bruno@clisp.org>
61003
61004         * lib/readlink.c: Include <unistd.h>.
61005         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
61006         HAVE_READLINK.
61007         * modules/readlink (Depends-on): Add unistd.
61008         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61009         (Include): Add <unistd.h>.
61010
61011         * lib/getlogin_r.h: Remove file.
61012         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
61013         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
61014         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
61015         HAVE_DECL_GETLOGIN_R.
61016         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
61017         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61018         (Include): Use <unistd.h> instead of getlogin_r.h.
61019
61020         * lib/getcwd.h: Remove file.
61021         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
61022         * lib/xgetcwd.c: Likewise.
61023         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
61024         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
61025         * modules/getcwd (Files): Remove lib/getcwd.h.
61026         (Depends-on): Add unistd.
61027         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61028         (Include): Use <unistd.h> instad of getcwd.h.
61029
61030         * lib/ftruncate.c: Include <unistd.h> first.
61031         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
61032         Set HAVE_FTRUNCATE.
61033         * modules/ftruncate (Depends-on): Add unistd.
61034         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61035
61036         * lib/fchdir.c: Include <unistd.h> first.
61037         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
61038         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
61039         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
61040         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61041         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
61042
61043         * lib/dup2.c: Include <unistd.h> first.
61044         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
61045         HAVE_DUP2.
61046         * modules/dup2 (Depends-on): Add unistd.
61047         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61048
61049         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
61050         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
61051         REPLACE_CHOWN. Don't define chown as a macro here.
61052         * modules/chown (Depends-on): Add unistd.
61053         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61054
61055         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
61056         Add definition for GL_LINK_WARNING.
61057         (chown, dup2): New declarations.
61058         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
61059         link warning.
61060         (ftruncate): New declaration.
61061         (getcwd): New declaration, taken from old getcwd.h.
61062         (getlogin_r): New declaration, taken from old getlogin_r.h.
61063         (readlink): New declaration.
61064         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
61065         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
61066         (gl_PREREQ_UNISTD): Remove macro.
61067         (gl_UNISTD_MODULE_INDICATOR): New macro.
61068         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
61069         many new variables. Don't set UNISTD_H.
61070         * modules/unistd (Description): Change.
61071         (Depends-on): Add link-warning.
61072         (configure.ac): Update.
61073         (Makefile.am): Create unistd.h always. Substitute many new variables
61074         into it.
61075
61076 2007-02-18  Bruno Haible  <bruno@clisp.org>
61077
61078         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
61079         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
61080         HAVE_GETSUBOPT.
61081         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
61082         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
61083         * lib/getsubopt.h: Remove file.
61084         * modules/getsubopt (Files): Remove lib/getsubopt.h.
61085         (Depends-on): Add stdlib.
61086         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61087         (Includes): Use <stdlib.h> instead of getsubopt.h.
61088         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
61089         Set HAVE_GETSUBOPT.
61090         * lib/getsubopt.c: Don't include getsubopt.h.
61091
61092 2007-02-18  Bruno Haible  <bruno@clisp.org>
61093
61094         * modules/fchdir (Depends-on): Add dup2.
61095
61096 2007-02-18  Bruno Haible  <bruno@clisp.org>
61097
61098         * lib/stdlib_.h: Handle glibc's special invocation convention
61099         specially.
61100
61101 2007-02-18  Bruno Haible  <bruno@clisp.org>
61102
61103         * modules/stdlib-tests: New file.
61104         * tests/test-stdlib.c: New file.
61105
61106         * modules/mkstemp (Files): Remove lib/mkstemp.h.
61107         (Depends-on): Add stdlib.
61108         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61109         (Includes): Use <stdlib.h> instead of mkstemp.h.
61110         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
61111         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
61112         * lib/mkstemp.c: Don't include mkstemp.h.
61113         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
61114         * lib/stdlib--.h: Don't include mkstemp.h.
61115
61116         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
61117         (Depends-on): Add stdlib.
61118         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61119         (Includes): Use <stdlib.h> instead of mkdtemp.h.
61120         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
61121         HAVE_MKDTEMP.
61122         * lib/mkdtemp.c: Don't include mkdtemp.h.
61123         * lib/clean-temp.c: Don't include mkdtemp.h.
61124
61125         * modules/exit (Files): Remove lib/exit.h.
61126         (Depends-on): Add stdlib.
61127         (Makefile.am): Remove lib_SOURCES.
61128         (Include): Use <stdlib.h> instead of exit.h.
61129         * lib/argmatch.c: Don't include exit.h.
61130         * lib/execute.c: Likewise.
61131         * lib/pagealign_alloc.c: Likewise.
61132         * lib/pipe.c: Likewise.
61133         * lib/wait-process.c: Likewise.
61134         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
61135         * lib/exitfail.c: Likewise.
61136         * lib/savewd.c: Likewise.
61137         * lib/xsetenv.c: Likewise.
61138
61139         * modules/stdlib: New file.
61140         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
61141         and extra comments about mkstemp().
61142         * lib/exit.h: Remove file.
61143         * lib/mkdtemp.h: Remove file.
61144         * lib/mkstemp.h: Remove file.
61145         * m4/stdlib_h.m4: New file.
61146         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
61147
61148 2007-02-18  Bruno Haible  <bruno@clisp.org>
61149
61150         * modules/math-tests: New file.
61151         * tests/test-math.c: New file.
61152
61153         * modules/math: New file.
61154         * modules/mathl (Files): Remove lib/mathl.h.
61155         (Depends-on): Add math.
61156         (Makefile.am): Don't mention mathl.h.
61157         (Include): Use <math.h> instead of mathl.h.
61158         * lib/math_.h: New file.
61159         * lib/mathl.h: Remove file.
61160         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
61161         mathl.h.
61162         * lib/asinl.c: Likewise.
61163         * lib/atanl.c: Likewise.
61164         * lib/ceill.c: Likewise.
61165         * lib/cosl.c: Likewise.
61166         * lib/expl.c: Likewise.
61167         * lib/floorl.c: Likewise.
61168         * lib/frexpl.c: Likewise.
61169         * lib/ldexpl.c: Likewise.
61170         * lib/logl.c: Likewise.
61171         * lib/sincosl.c: Likewise.
61172         * lib/sinl.c: Likewise.
61173         * lib/sqrtl.c: Likewise.
61174         * lib/tanl.c: Likewise.
61175         * lib/trigl.c: Likewise.
61176         * m4/math_h.m4: New file.
61177         * MODULES.html.sh (Mathematics): Add math.
61178
61179 2007-02-17  Bruno Haible  <bruno@clisp.org>
61180
61181         * modules/wctype-tests: New file.
61182         * tests/test-wctype.c: New file.
61183
61184         * modules/wchar-tests: New file.
61185         * tests/test-wchar.c: New file.
61186
61187         * modules/unistd-tests: New file.
61188         * tests/test-unistd.c: New file.
61189
61190         * modules/time-tests: New file.
61191         * tests/test-time.c: New file.
61192
61193         * modules/sysexits-tests: New file.
61194         * tests/test-sysexits.c: New file.
61195
61196         * modules/sys_time-tests: New file.
61197         * tests/test-sys_time.c: New file.
61198
61199         * modules/sys_stat-tests: New file.
61200         * tests/test-sys_stat.c: New file.
61201
61202         * modules/sys_socket-tests: New file.
61203         * tests/test-sys_socket.c: New file.
61204
61205         * modules/sys_select-tests: New file.
61206         * tests/test-sys_select.c: New file.
61207
61208         * modules/string-tests: New file.
61209         * tests/test-string.c: New file.
61210
61211         * modules/stdbool-tests: New file.
61212         * tests/test-stdbool.c: New file.
61213
61214         * modules/netinet_in-tests: New file.
61215         * tests/test-netinet_in.c: New file.
61216
61217         * modules/inttypes-tests: New file.
61218         * tests/test-inttypes.c: New file.
61219
61220         * modules/fcntl-tests: New file.
61221         * tests/test-fcntl.c: New file.
61222
61223         * modules/byteswap-tests: New file.
61224         * tests/test-byteswap.c: New file.
61225
61226         * modules/arpa_inet-tests: New file.
61227         * tests/test-arpa_inet.c: New file.
61228
61229 2007-02-17  Bruno Haible  <bruno@clisp.org>
61230
61231         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
61232         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
61233         if the corresponding module is not enabled. Emit link warnings if
61234         the function is used nevertheless.
61235         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
61236         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
61237         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
61238         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
61239         * modules/inttypes (Depends-on): Add link-warning.
61240         (Makefile.am): Copy the contents of build-aux/link-warning.h into
61241         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
61242         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
61243         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
61244         * modules/imaxdiv (configure.ac): Likewise.
61245         * modules/strtoimax (configure.ac): Likewise.
61246         * modules/strtoumax (configure.ac): Likewise.
61247
61248 2007-02-17  Bruno Haible  <bruno@clisp.org>
61249
61250         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
61251         gl_STRING_MODULE_INDICATOR_DEFAULTS.
61252         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
61253         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
61254
61255 2007-02-17  Bruno Haible  <bruno@clisp.org>
61256
61257         * modules/link-warning: New file.
61258         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
61259         * lib/string_.h (GL_LINK_WARNING): Remove definition.
61260         * modules/string (Depends-on): Add link-warning.
61261         (Makefile.am): Copy the contents of build-aux/link-warning.h into
61262         string.h.
61263         * MODULES.html.sh (Support for building libraries and executables): Add
61264         link-warning.
61265
61266 2007-02-17  Bruno Haible  <bruno@clisp.org>
61267
61268         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
61269         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
61270         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
61271         long lines.
61272
61273 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
61274             Bruno Haible  <bruno@clisp.org>
61275
61276         * modules/tmpfile: New file.
61277         * lib/tmpfile.c: New file.
61278         * m4/tmpfile.m4: New file.
61279         * MODULES.html.sh (func_all_modules): New section "Input/output".
61280
61281 2007-02-15  Bruno Haible  <bruno@clisp.org>
61282
61283         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
61284         (supports_delete_on_close): New function.
61285         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
61286
61287 2007-02-14  Bruno Haible  <bruno@clisp.org>
61288
61289         * modules/mbspcasecmp-tests: New file.
61290         * tests/test-mbspcasecmp.sh: New file.
61291         * tests/test-mbspcasecmp.c: New file.
61292
61293         New module mbspcasecmp.
61294         * modules/mbspcasecmp: New file.
61295         * lib/mbspcasecmp.c: New file.
61296         * lib/string_.h (strncasecmp): Change warning message.
61297         (mbspcasecmp): New declaration.
61298         * m4/mbspcasecmp.m4: New file.
61299         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61300         GNULIB_MBSPCASECMP.
61301         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
61302         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
61303
61304 2007-02-14  Bruno Haible  <bruno@clisp.org>
61305
61306         * modules/mbsncasecmp-tests: New file.
61307         * tests/test-mbsncasecmp.sh: New file.
61308         * tests/test-mbsncasecmp.c: New file.
61309
61310         New module mbsncasecmp.
61311         * modules/mbsncasecmp: New file.
61312         * lib/mbsncasecmp.c: New file.
61313         * lib/string_.h (mbsncasecmp): New declaration.
61314         * m4/mbsncasecmp.m4: New file.
61315         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61316         GNULIB_MBSNCASECMP.
61317         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
61318         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
61319
61320 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
61321
61322         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
61323         Verify that it doesn't overlap with our flags.
61324         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
61325         do not have the desired effect in multibyte locales; instead, use
61326         mbscasecmp.
61327         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
61328         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
61329         we don't require GNU fnmatch ourselves (if our users require it, they
61330         should do so explicitly).
61331
61332         Fix regex code so it doesn't rely on strcasecmp.
61333         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
61334         Otherwise, include gnulib's langinfo.h.
61335         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
61336         undesirable behavior in non-C locales.  Instead, rely on localecharset.
61337         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
61338         * modules/regex (FILES): Remove m4/codeset.m4.
61339         (Depends-on): Add localcharset.  Remove strcase.
61340
61341 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61342
61343         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
61344         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
61345
61346 2007-02-13  Bruno Haible  <bruno@clisp.org>
61347
61348         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
61349         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61350
61351 2007-02-12  Bruno Haible  <bruno@clisp.org>
61352
61353         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
61354         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
61355         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
61356         time warning rather than a link error.
61357
61358 2007-02-12  Bruno Haible  <bruno@clisp.org>
61359
61360         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
61361         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61362         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61363
61364 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
61365
61366         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
61367         args, not 2.
61368
61369 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
61370
61371         New module 'time', so that apps can include <time.h> as per
61372         POSIX and GNU instead of separate include files like time_r.h
61373         and timegm.h.  This implementation tries out a simpler approach
61374         for replacing decls in standard include files (as compared to
61375         the string module), somewhat as an experiment.
61376
61377         * config/srclist.txt: Comment out mktime.c for now.
61378         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
61379         since it doesn't apply any more.  Use generic wording instead.
61380         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
61381         'time'.
61382         * lib/time_.h, m4/time_h.m4, modules/time: New files.
61383         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
61384         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
61385         Don't include <sys/types.h>; no longer needed since we assume C89.
61386         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
61387         * lib/strftime.c: Likewise.
61388         * lib/time_r.c: Likewise.
61389         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
61390         * lib/nanosleep.c: Include <time.h> first, to check interface.
61391         * lib/strptime.c: Likewise.
61392         * lib/time_r.c: Likewise.
61393         * lib/timegm.c: Likewise.
61394         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
61395         needed.
61396         * lib/timegm.c: Don't include timegm.h; no longer needed.
61397         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
61398         time.h now handles any problems in that area.
61399         (struct timespec, nanosleep): Remove; time.h now arranges for these.
61400         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
61401         that time.h defines struct timespec.
61402         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
61403         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
61404         handles that.
61405         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
61406         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
61407         needed.  Set REPLACE_LOCALTIME.
61408         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
61409         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
61410         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
61411         nanosleep; time_h.m4 now does that.  Don't require
61412         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
61413         module handles this now.
61414         * modules/getdate (Depends-on): Remove timespec.  Add time.
61415         * modules/nanosleep (Depends-on): Likewise.
61416         * modules/stat-time (Depends-on): Likewise.
61417         * modules/nanosleep (Include): Include time.h, not timespec.h.
61418         * modules/strptime (Files): Remove lib/strptime.h.
61419         (Depends-on): Add extensions, time.
61420         (Include): Include time.h, not strptime.h.
61421         * modules/time_r (Files): Remove lib/time_r.h.
61422         (Depends-on): Add time.
61423         (Include): Include time.h, not time_r.h.
61424         * modules/timegm: Likewise.
61425         * modules/timespec (Description): Now does timespec-related decls
61426         of our own, instead of struct timespec itself.
61427         (Depends-on): Add time; remove extensions.
61428         (Maintainer): Add self.
61429         * modules/utimecmp (Depends-on): Add time; remove timespec.
61430         * modules/utimens (Depends-on): Likewise.
61431         * modules/xnanosleep (Depends-on): Likewise.
61432
61433 2007-02-11  Bruno Haible  <bruno@clisp.org>
61434
61435         * lib/c-strstr.c: Include allocsa.h.
61436         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
61437         * lib/c-strcasestr.c: Include allocsa.h.
61438         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
61439         * lib/strcasestr.c: Include allocsa.h.
61440         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
61441         * lib/mbsstr.c: Include allocsa.h.
61442         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
61443         allocsa/freesa instead of malloc/free.
61444         * lib/mbscasestr.c: Include allocsa.h.
61445         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
61446         allocsa/freesa instead of malloc/free.
61447         * modules/c-strstr (Depends-on): Add allocsa.
61448         * modules/c-strcasestr (Depends-on): Likewise.
61449         * modules/strcasestr (Depends-on): Likewise.
61450         * modules/mbsstr (Depends-on): Likewise.
61451         * modules/mbscasestr (Depends-on): Likewise.
61452
61453 2007-02-11  Bruno Haible  <bruno@clisp.org>
61454
61455         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
61456
61457         * modules/mbsspn-tests: New file.
61458         * tests/test-mbsspn.sh: New file.
61459         * tests/test-mbsspn.c: New file.
61460
61461 2007-02-11  Bruno Haible  <bruno@clisp.org>
61462
61463         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
61464
61465         * modules/mbspbrk-tests: New file.
61466         * tests/test-mbspbrk.sh: New file.
61467         * tests/test-mbspbrk.c: New file.
61468
61469 2007-02-11  Bruno Haible  <bruno@clisp.org>
61470
61471         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
61472         unneeded cast.
61473
61474         * modules/mbscspn-tests: New file.
61475         * tests/test-mbscspn.sh: New file.
61476         * tests/test-mbscspn.c: New file.
61477
61478 2007-02-11  Bruno Haible  <bruno@clisp.org>
61479
61480         * modules/mbscasecmp-tests: New file.
61481         * tests/test-mbscasecmp.sh: New file.
61482         * tests/test-mbscasecmp.c: New file.
61483
61484 2007-02-11  Bruno Haible  <bruno@clisp.org>
61485
61486         Ensure O(n) worst-case complexity of mbscasestr.
61487         * lib/mbscasestr.c: Include stdbool.h.
61488         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
61489         functions.
61490         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
61491         the bookkeeping indicates that it's worth it.
61492         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
61493
61494         * modules/mbscasestr-tests: New file.
61495         * tests/test-mbscasestr1.c: New file.
61496         * tests/test-mbscasestr2.sh: New file.
61497         * tests/test-mbscasestr2.c: New file.
61498         * tests/test-mbscasestr3.sh: New file.
61499         * tests/test-mbscasestr3.c: New file.
61500         * tests/test-mbscasestr4.sh: New file.
61501         * tests/test-mbscasestr4.c: New file.
61502         * m4/locale-tr.m4: New file.
61503
61504 2007-02-11  Bruno Haible  <bruno@clisp.org>
61505
61506         Ensure O(n) worst-case complexity of mbsstr.
61507         * lib/mbsstr.c: Include stdbool.h.
61508         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
61509         functions.
61510         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
61511         bookkeeping indicates that it's worth it.
61512         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
61513
61514         * modules/mbsstr-tests: New file.
61515         * tests/test-mbsstr1.c: New file.
61516         * tests/test-mbsstr2.sh: New file.
61517         * tests/test-mbsstr2.c: New file.
61518         * tests/test-mbsstr3.sh: New file.
61519         * tests/test-mbsstr3.c: New file.
61520         * m4/locale-fr.m4: New file.
61521
61522 2007-02-11  Bruno Haible  <bruno@clisp.org>
61523
61524         * lib/mbsrchr.c (mbsrchr): Fix bug.
61525
61526         * modules/mbsrchr-tests: New file.
61527         * tests/test-mbsrchr.sh: New file.
61528         * tests/test-mbsrchr.c: New file.
61529
61530 2007-02-11  Bruno Haible  <bruno@clisp.org>
61531
61532         * lib/mbschr.c (mbschr): Fix bug.
61533
61534         * modules/mbschr-tests: New file.
61535         * tests/test-mbschr.sh: New file.
61536         * tests/test-mbschr.c: New file.
61537         * m4/locale-zh.m4: New file.
61538
61539 2007-02-11  Bruno Haible  <bruno@clisp.org>
61540
61541         Support for copying multibyte string iterators.
61542         * lib/mbiter.h: Include <string.h>.
61543         (mbiter_multi_copy): New function.
61544         (mbi_copy): New macro.
61545         * lib/mbuiter.h: Include <string.h>.
61546         (mbuiter_multi_copy): New function.
61547         (mbui_copy): New macro.
61548
61549 2007-02-11  Bruno Haible  <bruno@clisp.org>
61550
61551         New module mbslen.
61552         * modules/mbslen: New file.
61553         * lib/mbslen.c: New file.
61554         * lib/string_.h (mbslen): New declaration.
61555         * m4/mbslen.m4: New file.
61556         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61557         GNULIB_MBSLEN.
61558         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
61559         * MODULES.html.sh (Internationalization functions): Add mbslen.
61560
61561 2007-02-11  Bruno Haible  <bruno@clisp.org>
61562
61563         Ensure O(n) worst-case complexity of strcasestr substitute.
61564         * lib/strcasestr.c: Include stdbool.h.
61565         (knuth_morris_pratt): New function.
61566         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
61567         bookkeeping indicates that it's worth it.
61568         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
61569
61570         * modules/strcasestr-tests: New file.
61571         * tests/test-strcasestr.c: New file.
61572
61573 2007-02-11  Bruno Haible  <bruno@clisp.org>
61574
61575         Ensure O(n) worst-case complexity of c_strcasestr.
61576         * lib/c-strcasestr.c: Include stdbool.h, string.h.
61577         (knuth_morris_pratt): New function.
61578         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
61579         the bookkeeping indicates that it's worth it.
61580         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
61581
61582         * modules/c-strcasestr-tests: New file.
61583         * tests/test-c-strcasestr.c: New file.
61584
61585 2007-02-11  Bruno Haible  <bruno@clisp.org>
61586
61587         Ensure O(n) worst-case complexity of c_strstr.
61588         * lib/c-strstr.c: Include stdbool.h, string.h.
61589         (knuth_morris_pratt): New function.
61590         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
61591         bookkeeping indicates that it's worth it.
61592         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
61593
61594         * lib/c-strstr.c: Complete rewrite for maintainability.
61595
61596         * modules/c-strstr-tests: New file.
61597         * tests/test-c-strstr.c: New file.
61598
61599 2007-02-11  Bruno Haible  <bruno@clisp.org>
61600
61601         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
61602         5.2.1 and earlier, whereby \055 was treated just like the range
61603         delimiter '-'.
61604         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
61605
61606 2007-02-08  Bruno Haible  <bruno@clisp.org>
61607
61608         * modules/regex (Depends-on): Add stdbool.
61609         Reported by Dalibor Topic <robilad@kaffe.org>.
61610
61611 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
61612
61613         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
61614         Prefer returning from main to exiting from it.
61615         Remove unnecessary parens after sizeof.
61616
61617 2007-02-05  Bruno Haible  <bruno@clisp.org>
61618
61619         New module mbssep.
61620         * modules/mbssep: New file.
61621         * lib/mbssep.c: New file.
61622         * lib/string_.h (strsep): Add a conditional link warning.
61623         (mbssep): New declaration.
61624         * m4/mbssep.m4: New file.
61625         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61626         GNULIB_MBSSEP.
61627         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
61628         * MODULES.html.sh (Internationalization functions): Add mbssep.
61629
61630 2007-02-05  Bruno Haible  <bruno@clisp.org>
61631
61632         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
61633         Optimize search in case of 1 delimiter.
61634
61635 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
61636
61637         * lib/acl.h: Include sys/types.h before sys/acl.h.
61638
61639 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
61640
61641         Merge upstream fix for glibc bugzilla #3957:
61642
61643         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
61644
61645         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
61646         bit for RE_HAT_LISTS_NOT_NEWLINE.
61647         (build_charclass_op): Remove bogus comment.
61648
61649 2007-02-05  Simon Josefsson  <simon@josefsson.org>
61650
61651         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
61652
61653 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
61654
61655         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
61656         * lib/memmem.c [!defined _LIBC]: Include config.h.
61657
61658 2007-02-04  Bruno Haible  <bruno@clisp.org>
61659
61660         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
61661         warning message.
61662
61663 2007-02-04  Bruno Haible  <bruno@clisp.org>
61664
61665         New module mbstok_r.
61666         * modules/mbstok_r: New file.
61667         * lib/mbstok_r.c: New file.
61668         * lib/string_.h (strtok_r): Change argument names to match the
61669         comments. Add a conditional link warning.
61670         (mbstok_r): New declaration.
61671         * m4/mbstok_r.m4: New file.
61672         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61673         GNULIB_MBSTOK_R.
61674         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
61675         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
61676
61677 2007-02-04  Bruno Haible  <bruno@clisp.org>
61678
61679         New module mbsspn.
61680         * modules/mbsspn: New file.
61681         * lib/mbsspn.c: New file.
61682         * lib/string_.h (strspn): Add a conditional link warning.
61683         (mbsspn): New declaration.
61684         * m4/mbsspn.m4: New file.
61685         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61686         GNULIB_MBSSPN.
61687         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
61688         * MODULES.html.sh (Internationalization functions): Add mbsspn.
61689
61690 2007-02-04  Bruno Haible  <bruno@clisp.org>
61691
61692         New module mbspbrk.
61693         * modules/mbspbrk: New file.
61694         * lib/mbspbrk.c: New file.
61695         * lib/string_.h (strpbrk): Add a conditional link warning.
61696         (mbspbrk): New declaration.
61697         * m4/mbspbrk.m4: New file.
61698         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61699         GNULIB_MBSPBRK.
61700         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
61701         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
61702
61703 2007-02-04  Bruno Haible  <bruno@clisp.org>
61704
61705         New module mbscspn.
61706         * modules/mbscspn: New file.
61707         * lib/mbscspn.c: New file.
61708         * lib/string_.h (strcspn): Add a conditional link warning.
61709         (mbscspn): New declaration.
61710         * m4/mbscspn.m4: New file.
61711         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61712         GNULIB_MBSCSPN.
61713         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
61714         * MODULES.html.sh (Internationalization functions): Add mbscspn.
61715
61716 2007-02-04  Bruno Haible  <bruno@clisp.org>
61717
61718         New module mbscasestr, reduced goal of strcasestr.
61719         * modules/mbscasestr: New file.
61720         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
61721         (mbscasestr): Renamed from strcasestr.
61722         * lib/strcasestr.c: Don't include mbuiter.h.
61723         (strcasestr): Remove support for multibyte locales.
61724         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
61725         Change the conditional link warning.
61726         (mbscasestr): New declaration.
61727         * m4/mbscasestr.m4: New file.
61728         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
61729         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
61730         REPLACE_STRCASESTR.
61731         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
61732         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61733         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
61734         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
61735         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
61736         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
61737         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
61738         (Depends-on): Remove mbuiter.
61739         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
61740
61741 2007-02-04  Bruno Haible  <bruno@clisp.org>
61742
61743         Simplify handling of strncasecmp.
61744         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
61745         the conditional link warning.
61746         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61747         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
61748         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
61749         * modules/strcase (configure.ac): Don't invoke
61750         gl_STRING_MODULE_INDICATOR.
61751         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
61752
61753 2007-02-04  Bruno Haible  <bruno@clisp.org>
61754
61755         New module mbscasecmp, reduced goal of strcasecmp.
61756         * modules/mbscasecmp: New file.
61757         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
61758         (mbscasecmp): Renamed from strcasecmp.
61759         * lib/strcasecmp.c: Don't include mbuiter.h.
61760         (strcasecmp): Remove support for multibyte locales.
61761         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
61762         Change the conditional link warning.
61763         (mbscasecmp): New declaration.
61764         * m4/mbscasecmp.m4: New file.
61765         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
61766         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
61767         REPLACE_STRCASECMP.
61768         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
61769         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61770         GNULIB_MBSCASECMP.
61771         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
61772         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
61773         * modules/strcase (Files): Remove m4/mbrtowc.m4.
61774         (Depends-on): Remove mbuiter.
61775         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
61776
61777 2007-02-04  Bruno Haible  <bruno@clisp.org>
61778
61779         New module mbsstr. Remove module strstr.
61780         * modules/mbsstr: New file.
61781         * modules/strstr: Remove file.
61782         * lib/mbsstr.c: Renamed from lib/strstr.c.
61783         (mbsstr): Renamed from strstr.
61784         * lib/string_.h (strstr): Remove declaration. Change the conditional
61785         link warning.
61786         (mbsstr): New declaration.
61787         * m4/mbsstr.m4: New file.
61788         * m4/strstr.m4: Remove file.
61789         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
61790         REPLACE_STRSTR.
61791         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
61792         Don't initialize GNULIB_STRSTR.
61793         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
61794         substitute GNULIB_STRSTR and REPLACE_STRSTR.
61795         * MODULES.html.sh (Internationalization functions): Add mbsstr.
61796         (Support for systems lacking ANSI C 89): Remove strstr.
61797
61798 2007-02-04  Bruno Haible  <bruno@clisp.org>
61799
61800         New module mbsrchr.
61801         * modules/mbsrchr: New file.
61802         * lib/mbsrchr.c: New file.
61803         * lib/string_.h (strrchr): Add a conditional link warning.
61804         (mbsrchr): New declaration.
61805         * m4/mbsrchr.m4: New file.
61806         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61807         GNULIB_MBSRCHR.
61808         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
61809         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
61810
61811 2007-02-04  Bruno Haible  <bruno@clisp.org>
61812
61813         New module mbschr.
61814         * modules/mbschr: New file.
61815         * lib/mbschr.c: New file.
61816         * lib/string_.h (strchr): Add a conditional link warning.
61817         (mbschr): New declaration.
61818         * m4/mbschr.m4: New file.
61819         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61820         GNULIB_MBSCHR.
61821         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
61822         * MODULES.html.sh (Internationalization functions): Add mbschr.
61823
61824 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
61825
61826         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
61827
61828         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
61829
61830 2007-02-04  Bruno Haible  <bruno@clisp.org>
61831
61832         New module description section 'configure.ac-early'.
61833         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
61834         (func_get_autoconf_early_snippet): New function.
61835         (func_import, func_create_testdir): Use it. Remove special cases for
61836         modules 'extensions' and 'lock'.
61837         * modules/extensions (configure.ac-early): Require
61838         gl_USE_SYSTEM_EXTENSIONS.
61839         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
61840
61841 2007-02-04  Bruno Haible  <bruno@clisp.org>
61842
61843         Make use of gcj-4.3's -fsource and -ftarget option.
61844         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
61845         and if so try the options -fsource and -ftarget.
61846         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
61847         source_version, ftarget_option, target_version arguments.
61848         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
61849         (is_envjavac_oldgcj_14_14_usable): Renamed from
61850         is_envjavac_gcj_14_14_usable.
61851         (is_envjavac_oldgcj_14_13_usable): Renamed from
61852         is_envjavac_gcj_14_13_usable.
61853         (is_gcj_present): Update.
61854         (is_gcj_43, is_gcj43_usable): New functions.
61855         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
61856         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
61857         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
61858         try the options -fsource and -ftarget.
61859
61860 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
61861
61862         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
61863         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
61864         larger value.
61865
61866 2007-02-03  Jim Meyering  <jim@meyering.net>
61867
61868         Give tools a better chance to allocate space for very large buffers.
61869         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
61870
61871         Make pwd and readlink work also when run with an unreadable parent dir
61872         on systems with openat support.
61873         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
61874         provided getcwd function, even when we have openat support.
61875         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
61876
61877 2007-02-02  Bruno Haible  <bruno@clisp.org>
61878
61879         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
61880         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
61881         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
61882         portability problems if one of these functions is only used on specific
61883         platforms.
61884         Reported by Paul Eggert.
61885
61886 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
61887
61888         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
61889         is causing more trouble than it's curing.
61890         * lib/regex_internal.h (__mempcpy): Remove.
61891         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
61892         (and make the code a tad smaller to boot).
61893         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
61894
61895 2007-02-02  Jim Meyering  <jim@meyering.net>
61896
61897         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
61898         section, not in the Makefile.am: one.
61899
61900 2007-02-02  Eric Blake  <ebb9@byu.net>
61901
61902         * lib/strchrnul.c: Always include config.h first.
61903
61904         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
61905         gnulib strstr is not necessary here.
61906
61907 2007-02-02  Simon Josefsson  <simon@josefsson.org>
61908
61909         * m4/socklen.m4: Fix typo.
61910
61911 2007-02-02  Eric Blake  <ebb9@byu.net>
61912
61913         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
61914         * modules/netinet_in (Makefile.am): Likewise.
61915
61916 2007-02-01  Bruno Haible  <bruno@clisp.org>
61917
61918         * lib/string_.h (GL_LINK_WARNING): New macro.
61919         (strcasecmp, strstr, strcasestr): If provided by the system,
61920         conditionally define as a macro that leads to a warning instead of to
61921         an error.
61922         (strncasecmp): Conditionally define as a macro that leads to a warning.
61923
61924 2007-02-01  Karl Berry  <karl@gnu.org>
61925
61926         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
61927
61928 2007-02-01  Bruno Haible  <bruno@clisp.org>
61929
61930         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
61931         renamings.
61932
61933 2007-02-01  Eric Blake  <ebb9@byu.net>
61934
61935         * modules/regex (Depends-on): Revert dependence on mempcpy.
61936         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
61937         module's definition of mempcpy.
61938         Reported by Paul Eggert.
61939
61940 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
61941
61942         * lib/string_.h: If the gnulib module XYZ is not present, undefine
61943         the symbol XYZ before redefining it.  This fixes a problem with
61944         programs that don't use XYZ, when compiled on systems that define
61945         XYZ to something else.
61946
61947 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
61948
61949         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
61950         occurs when "mkdir -m foo" creates a setgid directory that is (1)
61951         writeable to group or other and (2) is intended to have a special
61952         mode bit that is set or cleared.  In such a case, the directory
61953         should be neither group- nor other-writeable until the special
61954         mode bits are right.
61955
61956 2007-01-31  Eric Blake  <ebb9@byu.net>
61957
61958         * modules/mountlist (Depends-on): Add strstr.
61959
61960         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
61961         bug.
61962         * modules/string (Makefile.am): Remove redundant replacement.
61963         * modules/regex (Depends-on): Add mempcpy.
61964
61965 2007-01-31  Bruno Haible  <bruno@clisp.org>
61966
61967         New module description field 'Link'.
61968         * gnulib-tool (func_usage): Document --extract-link-directive.
61969         (sed_extract_prog): Recognize 'Link' directive.
61970         (func_get_link_directive): New function.
61971         (func_import): Show summary of link directives.
61972         Handle --extract-link-directive option.
61973         * modules/acl (Link): New section.
61974         * modules/clock-time (Link): New section.
61975         * modules/euidaccess (Link): New section.
61976         * modules/gettext (Link): New section.
61977         * modules/iconv (Link): New section.
61978         * modules/lock (Link): New section.
61979         * modules/nanosleep (Link): New section.
61980         * modules/readline (Link): New section.
61981
61982 2007-01-27  Bruno Haible  <bruno@clisp.org>
61983
61984         Enforce the use of gnulib modules for unportable <string.h> functions.
61985         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
61986         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
61987         (gl_HEADER_STRING_H_BODY): Require it.
61988         * lib/string_.h: If the gnulib module XYZ is not present, redefine
61989         the symbol XYZ to one that gives a link error.
61990         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
61991         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
61992         * modules/mempcpy (configure.ac): Likewise.
61993         * modules/memrchr (configure.ac): Likewise.
61994         * modules/stpcpy (configure.ac): Likewise.
61995         * modules/stpncpy (configure.ac): Likewise.
61996         * modules/strcase (configure.ac): Likewise.
61997         * modules/strcasestr (configure.ac): Likewise.
61998         * modules/strchrnul (configure.ac): Likewise.
61999         * modules/strdup (configure.ac): Likewise.
62000         * modules/strndup (configure.ac): Likewise.
62001         * modules/strnlen (configure.ac): Likewise.
62002         * modules/strpbrk (configure.ac): Likewise.
62003         * modules/strsep (configure.ac): Likewise.
62004         * modules/strstr (configure.ac): Likewise.
62005         * modules/strtok_r (configure.ac): Likewise.
62006
62007 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
62008
62009         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
62010
62011 2007-01-30  Jim Meyering  <jim@meyering.net>
62012
62013         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
62014
62015 2007-01-29  Bruno Haible  <bruno@clisp.org>
62016
62017         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
62018         * lib/execute.c: Likewise.
62019         * lib/pipe.c: Likewise.
62020         * lib/printf-args.h: Likewise.
62021         * lib/printf-args.c: Likewise.
62022         * lib/printf-parse.c: Likewise.
62023         * lib/vasnprintf.c: Likewise.
62024
62025 2007-01-29  Eric Blake  <ebb9@byu.net>
62026
62027         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
62028         declaration.
62029
62030 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
62031
62032         * lib/strptime.h (strptime): Use 'restrict' for args where
62033         POSIX requires this.
62034         * lib/strptime.c (strptime): Likewise.
62035         Change license notice from LGPL to GPL, since gnulib-tool will
62036         change this as needed.
62037         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
62038         defined.
62039         Include "strptime.h" first, to check interface.
62040         Do not #undef _LIBC and _NL_CURRENT.
62041         Do not include <stdlib.h>; no longer needed.
62042         Include "time_r.h" and declare ptime_locale_status
62043         only if _LIBC is not defined.
62044         (__P): Remove unused macro.
62045         (match_string): Bring back glibc version, but use it only if _LIBC
62046         is defined.
62047         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
62048         Remove unnecessary assertion and abort() call.
62049         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
62050         * m4/strptime.m4: Fix serial number comment.
62051         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
62052         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
62053         (Depends-on): Add time_r.
62054
62055 2007-01-29  Bruno Haible  <bruno@clisp.org>
62056
62057         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62058         strptime.
62059         * modules/strptime (Depends-on): Add stdbool.
62060         * lib/strptime.h: Include <time.h> always. Add comments.
62061
62062 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62063
62064         * modules/strptime: New file.
62065         * lib/strptime.h: New file.
62066         * lib/strptime.c: New file.
62067         * m4/strptime.m4: New file.
62068
62069 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
62070
62071         * MODULES.html.sh: New module mpsort.
62072         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
62073
62074         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
62075         a circularity problem with HP-UX ia64 reported by Bob Proulx in
62076         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
62077         All uses changed.
62078         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
62079         All uses changed.
62080         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
62081         to _Restrict_.
62082         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
62083         the parameter matches the prototype.
62084
62085 2007-01-28  Jim Meyering  <jim@meyering.net>
62086
62087         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
62088         sys/time.h here, reverting that part of the previous patch:
62089         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
62090
62091 2007-01-28  Bruno Haible  <bruno@clisp.org>
62092
62093         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
62094         value of $(SYS_TIME_H).
62095         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
62096         remove it conditionally, too. [added by Jim Meyering]
62097         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
62098         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
62099         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
62100         GETTIMEOFDAY_REPLACEMENT to 1.
62101
62102 2007-01-28  Bruno Haible  <bruno@clisp.org>
62103
62104         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
62105         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
62106         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
62107         Set UNISTD_H instead of UNISTD_H2.
62108         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
62109
62110 2007-01-28  Bruno Haible  <bruno@clisp.org>
62111
62112         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
62113         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
62114
62115 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62116
62117         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
62118         (func_create_testdir): Ensure C locale for `grep' and `tr'
62119         character ranges.
62120         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
62121         ACLOCAL_AMFLAGS parsing state machine.
62122
62123 2007-01-27  Bruno Haible  <bruno@clisp.org>
62124
62125         * modules/unistr/base: Update.
62126
62127 2007-01-27  Bruno Haible  <bruno@clisp.org>
62128
62129         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
62130         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
62131         * modules/unistr/u32-mbtouc-unsafe: Renamed from
62132         modules/unistr/u32-mbtouc.
62133         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
62134         * lib/unistr.h: Update.
62135         * lib/linebreak.c: Update.
62136         * modules/unistr/u32-mbtouc: Renamed from
62137         modules/unistr/u32-mbtouc-safe.
62138         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
62139         * lib/unistr.h: Update.
62140         * lib/unistr/u32-to-u8.c: Update.
62141         * lib/unistr/u32-to-u16.c: Update.
62142
62143 2007-01-27  Bruno Haible  <bruno@clisp.org>
62144
62145         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
62146         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
62147         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
62148         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
62149         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
62150         * modules/unistr/u16-mbtouc-unsafe: Renamed from
62151         modules/unistr/u16-mbtouc.
62152         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
62153         * lib/unistr.h: Update.
62154         * lib/linebreak.c: Update.
62155         * modules/linebreak: Update.
62156         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
62157         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
62158         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
62159         * modules/unistr/u16-mbtouc: Renamed from
62160         modules/unistr/u16-mbtouc-safe.
62161         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
62162         * lib/unistr.h: Update.
62163         * lib/unistr/u16-to-u8.c: Update.
62164         * modules/unistr/u16-to-u8: Update.
62165         * lib/unistr/u16-to-u32.c: Update.
62166         * modules/unistr/u16-to-u32: Update.
62167
62168 2007-01-27  Bruno Haible  <bruno@clisp.org>
62169
62170         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
62171         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
62172         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
62173         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
62174         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
62175         * modules/unistr/u8-mbtouc-unsafe: Renamed from
62176         modules/unistr/u8-mbtouc.
62177         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
62178         * lib/unistr.h: Update.
62179         * lib/striconveh.c: Update.
62180         * modules/striconveh: Update.
62181         * lib/linebreak.c: Update.
62182         * modules/linebreak: Update.
62183         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
62184         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
62185         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
62186         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
62187         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
62188         * lib/unistr.h: Update.
62189         * lib/striconveh.c: Update.
62190         * modules/striconveh: Update.
62191         * lib/unistr/u8-to-u16.c: Update.
62192         * modules/unistr/u8-to-u16: Update.
62193         * lib/unistr/u8-to-u32.c: Update.
62194         * modules/unistr/u8-to-u32: Update.
62195
62196 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62197
62198         Sync from Libtool.
62199         * lib/argz.c: Do not include strings.h nor memory.h, include
62200         string.h unconditionally.  Patch by Simon Josefsson.
62201
62202 2007-01-27  Bruno Haible  <bruno@clisp.org>
62203
62204         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
62205         from gl_HEADER_STRING_H_BODY.
62206         (gl_HEADER_STRING_H_BODY): Require it.
62207         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
62208         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62209         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62210         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62211         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62212         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
62213         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
62214         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62215         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
62216         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62217         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62218         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
62219         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62220         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
62221         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62222
62223 2007-01-27  Bruno Haible  <bruno@clisp.org>
62224
62225         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
62226         check_PROGRAMS into noinst_PROGRAMS.
62227         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
62228         check_PROGRAMS in this case.
62229         (func_import): Set for_test to false.
62230         (func_create_testdir): Set for_test to true.
62231
62232 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
62233             Bruno Haible  <bruno@clisp.org>
62234
62235         * modules/strcasestr (Files): Remove lib/strcasestr.h.
62236         (Depends-on): Add string.
62237         (Includes): Use <string.h> instead of strcasestr.h.
62238         * modules/string (Makefile.am): Also substitute the value of
62239         REPLACE_STRCASESTR.
62240         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
62241         assume strcasestr is declared in <string.h> not <strings.h>. Also
62242         set REPLACE_STRCASESTR.
62243         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
62244         REPLACE_STRCASESTR.
62245         * lib/strcasestr.h: Remove file.
62246         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
62247         * lib/string_.h (strcasestr): New declaration.
62248
62249 2007-01-27  Bruno Haible  <bruno@clisp.org>
62250
62251         * lib/string_.h: Use 'extern'.
62252
62253 2007-01-27  Jim Meyering  <jim@meyering.net>
62254
62255         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
62256         of set-but-not-used local, "q".
62257
62258         * lib/mempcpy.c: Include <config.h> before <string.h>.
62259         This fixes a compilation error on HP-UX, due to the system's
62260         "restrict"-using mempcpy prototype.
62261
62262 2007-01-26  Bruno Haible  <bruno@clisp.org>
62263
62264         Small optimization.
62265         * lib/javacomp.c: Include c-strstr.h.
62266          (is_envjavac_gcj): Use c_strstr instead of strstr.
62267         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
62268
62269 2007-01-26  Bruno Haible  <bruno@clisp.org>
62270
62271         * MODULES.html.sh (Unicode string functions): Add the new modules.
62272
62273         * modules/uniconv/u32-strconv-to-locale: New file.
62274         * lib/uniconv/u32-strconv-to-locale.c: New file.
62275
62276         * modules/uniconv/u16-strconv-to-locale: New file.
62277         * lib/uniconv/u16-strconv-to-locale.c: New file.
62278
62279         * modules/uniconv/u8-strconv-to-locale: New file.
62280         * lib/uniconv/u8-strconv-to-locale.c: New file.
62281
62282         * modules/uniconv/u32-strconv-from-locale: New file.
62283         * lib/uniconv/u32-strconv-from-locale.c: New file.
62284
62285         * modules/uniconv/u16-strconv-from-locale: New file.
62286         * lib/uniconv/u16-strconv-from-locale.c: New file.
62287
62288         * modules/uniconv/u8-strconv-from-locale: New file.
62289         * lib/uniconv/u8-strconv-from-locale.c: New file.
62290
62291         * modules/uniconv/u32-strconv-to-enc: New file.
62292         * lib/uniconv/u32-strconv-to-enc.c: New file.
62293         * modules/uniconv/u32-strconv-to-enc-tests: New file.
62294         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
62295
62296         * modules/uniconv/u16-strconv-to-enc: New file.
62297         * lib/uniconv/u16-strconv-to-enc.c: New file.
62298         * lib/uniconv/u-strconv-to-enc.h: New file.
62299         * modules/uniconv/u16-strconv-to-enc-tests: New file.
62300         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
62301
62302         * modules/uniconv/u8-strconv-to-enc: New file.
62303         * lib/uniconv/u8-strconv-to-enc.c: New file.
62304         * modules/uniconv/u8-strconv-to-enc-tests: New file.
62305         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
62306
62307         * modules/uniconv/u32-strconv-from-enc: New file.
62308         * lib/uniconv/u32-strconv-from-enc.c: New file.
62309         * modules/uniconv/u32-strconv-from-enc-tests: New file.
62310         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
62311
62312         * modules/uniconv/u16-strconv-from-enc: New file.
62313         * lib/uniconv/u16-strconv-from-enc.c: New file.
62314         * modules/uniconv/u16-strconv-from-enc-tests: New file.
62315         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
62316
62317         * modules/uniconv/u8-strconv-from-enc: New file.
62318         * lib/uniconv/u8-strconv-from-enc.c: New file.
62319         * lib/uniconv/u-strconv-from-enc.h: New file.
62320         * modules/uniconv/u8-strconv-from-enc-tests: New file.
62321         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
62322
62323         * modules/uniconv/u32-conv-from-enc: New file.
62324         * lib/uniconv/u32-conv-from-enc.c: New file.
62325         * modules/uniconv/u32-conv-from-enc-tests: New file.
62326         * tests/uniconv/test-u32-conv-from-enc.c: New file.
62327
62328         * modules/uniconv/u16-conv-from-enc: New file.
62329         * lib/uniconv/u16-conv-from-enc.c: New file.
62330         * lib/uniconv/u-conv-from-enc.h: New file.
62331         * modules/uniconv/u16-conv-from-enc-tests: New file.
62332         * tests/uniconv/test-u16-conv-from-enc.c: New file.
62333
62334         * modules/uniconv/u8-conv-from-enc: New file.
62335         * lib/uniconv/u8-conv-from-enc.c: New file.
62336         * modules/uniconv/u8-conv-from-enc-tests: New file.
62337         * tests/uniconv/test-u8-conv-from-enc.c: New file.
62338
62339         * modules/uniconv/base: New file.
62340         * lib/uniconv.h: New file.
62341
62342 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
62343
62344         * doc/gnulib-tool.texi (Initial import): Update to match current
62345         behavior with strdup module.
62346         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
62347         * lib/memmem.h: Remove; all uses removed.  This is now done
62348         by <string.h>.
62349         * lib/mempcpy.h: Likewise.
62350         * lib/memrchr.h: Likewise.
62351         * lib/stpcpy.h: Likewise.
62352         * lib/stpncpy.h: Likewise.
62353         * lib/strcase.h: Likewise.
62354         * lib/strchrnul.h: Likewise.
62355         * lib/strdup.h: Likewise.
62356         * lib/strndup.h: Likewise.
62357         * lib/strnlen.h: Likewise.
62358         * lib/strpbrk.h: Likewise.
62359         * lib/strsep.h: Likewise.
62360         * lib/strstr.h: Likewise.
62361         * lib/strtok_r.h: Likewise.
62362         * lib/string_.h: New file.
62363         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
62364         Rely on <string.h> instead.
62365         * lib/canon-host.c: Likewise.
62366         * lib/chdir-long.c: Likewise.
62367         * lib/concatpath.c: Likewise.
62368         * lib/exclude.c: Likewise.
62369         * lib/fchdir.c: Likewise.
62370         * lib/getaddrinfo.c: Likewise.
62371         * lib/getcwd.c: Likewise.
62372         * lib/getsubopt.c: Likewise.
62373         * lib/glob.c: Likewise.
62374         * lib/hard-locale.c: Likewise.
62375         * lib/iconvme.c: Likewise.
62376         * lib/javacomp.c: Likewise.
62377         * lib/mempcpy.c: Likewise.
62378         * lib/memrchr.c: Likewise.
62379         * lib/regex_internal.h: Likewise.
62380         * lib/stpncpy.c: Likewise.
62381         * lib/strcasecmp.c: Likewise.
62382         * lib/strchrnul.c: Likewise.
62383         * lib/strdup.c: Likewise.
62384         * lib/striconv.c: Likewise.
62385         * lib/striconveh.c: Likewise.
62386         * lib/striconveha.c: Likewise.
62387         * lib/strncasecmp.c: Likewise.
62388         * lib/strndup.c: Likewise.
62389         * lib/strnlen.c: Likewise.
62390         * lib/strsep.c: Likewise.
62391         * lib/strstr.c: Likewise.
62392         * lib/strtok_r.c: Likewise.
62393         * lib/userspec.c: Likewise.
62394         * lib/w32spawn.h: Likewise.
62395         * lib/xstrndup.c: Likewise.
62396         * lib/mountlist.c (strstr): Remove decl.
62397         * m4/string_h.m4: New file.
62398         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
62399         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
62400         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
62401         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
62402         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
62403         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
62404         Set REPLACE_STRCASECMP if necessary.
62405         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
62406         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
62407         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
62408         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
62409         HAVE_DECL_STRDUP if necessary.
62410         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
62411         since gl_FUNC_STRNDUP does that now.
62412         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
62413         Check for decl here...
62414         (gl_PREREQ_STRNLEN): ... not here.
62415         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
62416         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
62417         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
62418         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
62419         necessary.
62420         * modules/string: New file.
62421         * modules/memmem (Files): Remove special-purpose include file.
62422         (Depends-on): Add string.
62423         (Include): Include <string.h>, not the removed file.
62424         * modules/mempcpy: Likewise.
62425         * modules/memrchr: Likewise.
62426         * modules/stpcpy: Likewise.
62427         * modules/stpncpy: Likewise.
62428         * modules/strcase: Likewise.
62429         * modules/strchrnul: Likewise.
62430         * modules/strdup: Likewise.
62431         * modules/strndup: Likewise.
62432         * modules/strnlen: Likewise.
62433         * modules/strpbrk: Likewise.
62434         * modules/strsep: Likewise.
62435         * modules/strstr: Likewise.
62436         * modules/strtok_r: Likewise.
62437         * tests/test-dirname.c: Don't include "strdup.h", since
62438         <string.h> now suffices.
62439         * tests/test-memmem.c: Don't include "memmem.h", since
62440         <string.h> now suffices.
62441
62442 2007-01-25  Bruno Haible  <bruno@clisp.org>
62443
62444         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
62445         *resultp is 0.
62446
62447         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
62448         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
62449         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
62450         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
62451
62452         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
62453         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
62454         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
62455         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
62456         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
62457         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
62458
62459 2007-01-24  Bruno Haible  <bruno@clisp.org>
62460
62461         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
62462         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
62463         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
62464         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
62465         gl_FUNC_FTS_CORE.
62466         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
62467         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
62468         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62469         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
62470         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
62471         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
62472         gl_FUNC_FCHOWNAT.
62473         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
62474         gl_FUNC_STRFTIME.
62475         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
62476         Reported by Ralf Wildenhues.
62477
62478 2007-01-24  Bruno Haible  <bruno@clisp.org>
62479
62480         Drop AC_REQUIRE calls that are redundant with the module dependencies.
62481         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
62482         gl_GETADDRINFO.
62483         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
62484         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
62485         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
62486
62487 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
62488
62489         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
62490         Don't use 'exit'; just return from 'main'.
62491         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
62492
62493         * lib/fnmatch_.h: Readjust white space and comments to match
62494         glibc, to avoid spurious diffs.
62495
62496 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62497
62498         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
62499         2004-12-01 change by Jakub Jelinek, since this code won't compile
62500         if !LIBC.  Problem reported by Bob Proulx.
62501
62502 2007-01-23  Bruno Haible  <bruno@clisp.org>
62503
62504         * lib/striconveh.c: Include c-strcaseeq.h.
62505         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
62506         * modules/striconveh (Depends-on): Add c-strcaseeq.
62507
62508 2007-01-23  Bruno Haible  <bruno@clisp.org>
62509
62510         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
62511
62512         * modules/c-strcaseeq: New file.
62513         * lib/c-strcaseeq.h: New file.
62514
62515         * modules/streq: New file.
62516         * lib/streq.h: New file.
62517
62518 2007-01-23  Bruno Haible  <bruno@clisp.org>
62519
62520         * modules/striconveha-tests: New file.
62521         * tests/test-striconveha.c: New file.
62522
62523         * lib/striconveha.h: Include <stdbool.h>.
62524         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
62525         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
62526         (mem_iconveha_notranslit): Renamed from mem_iconveha.
62527         (mem_iconveha): New function.
62528         (str_iconveha_notranslit): Renamed from str_iconveha.
62529         (str_iconveha): New function.
62530         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
62531         c-strcase.
62532
62533 2007-01-23  Bruno Haible  <bruno@clisp.org>
62534
62535         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
62536         encodings without forgiving before trying any encoding with handler.
62537         (str_iconveha): Try all encodings without forgiving before trying any
62538         encoding with handler.
62539
62540 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62541
62542         Import the following changes from libc.
62543
62544         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
62545
62546         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
62547
62548         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
62549
62550         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
62551         normal_bracket label.
62552
62553         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
62554
62555         [BZ #361]
62556         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
62557         to normal_bracket after fetching the next character.
62558
62559 2007-01-22  Bruno Haible  <bruno@clisp.org>
62560
62561         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
62562         argument.
62563         * lib/striconveh.c (iconv_carefully_1): New function.
62564         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
62565         argument.
62566         (str_cd_iconveh): Update.
62567         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
62568         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
62569         * tests/test-striconveh.c (MAGIC): New macro.
62570         (new_offsets): New function.
62571         (main): Test call with and without offsets.
62572
62573 2007-01-22  Bruno Haible  <bruno@clisp.org>
62574
62575         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
62576         * modules/sys_select (Makefile.am): Likewise.
62577         * modules/sys_socket (Makefile.am): Likewise.
62578         * modules/sys_time (Makefile.am): Likewise.
62579
62580 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
62581
62582         * modules/gettimeofday (License): Change from GPL to LGPL, since
62583         gettimeofday is a library function.
62584
62585 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62586
62587         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
62588
62589 2007-01-21  Bruno Haible  <bruno@clisp.org>
62590
62591         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
62592
62593 2007-01-21  Bruno Haible  <bruno@clisp.org>
62594
62595         * modules/striconveha: New file.
62596         * lib/striconveha.h: New file.
62597         * lib/striconveha.c: New file.
62598         * MODULES.html.sh (Internationalization functions): Add striconveha.
62599         * lib/striconv.c (str_iconv): Optimize the case of an empty input
62600         string.
62601         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
62602
62603 2007-01-21  Bruno Haible  <bruno@clisp.org>
62604
62605         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
62606         * lib/striconveh.c (str_iconveh): Likewise.
62607
62608 2007-01-21  Bruno Haible  <bruno@clisp.org>
62609
62610         * lib/striconveh.h (mem_iconveh): New declaration.
62611         * lib/striconveh.c (mem_iconveh): New function.
62612         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
62613
62614 2007-01-21  Bruno Haible  <bruno@clisp.org>
62615
62616         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
62617
62618         * lib/striconveh.h (mem_cd_iconveh): Change specification.
62619         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
62620         original result buffer.
62621         (str_cd_iconveh): Update.
62622         * tests/test-striconveh.c (main): Update.
62623
62624         * lib/striconv.h (mem_cd_iconv): Change specification.
62625         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
62626         result buffer.
62627         (str_cd_iconv): Update.
62628         * tests/test-striconv.c (main): Update.
62629
62630 2007-01-21  Bruno Haible  <bruno@clisp.org>
62631
62632         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
62633
62634 2007-01-20  Jim Meyering  <jim@meyering.net>
62635
62636         * lib/userspec.c (parse_with_separator): If a user or group string
62637         starts with "+", skip the corresponding name-to-ID look-up, since
62638         such a look-up must fail: user and group names may not include "+".
62639
62640 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
62641
62642         * lib/poll.c: Include sys/time.h and time.h unconditionally,
62643         since we now assume the sys_time module.
62644         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
62645         check for sys/time.h; no longer needed.
62646         * modules/poll (Depends-on): Depend on sys_time.
62647
62648 2007-01-18  Bruno Haible  <bruno@clisp.org>
62649
62650         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
62651         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
62652
62653         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
62654         gettimeofday.
62655
62656         * tests/test-gettimeofday.c: Include <time.h>.
62657         (dummy): Remove variable.
62658
62659         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
62660         gl_HEADER_SYS_TIME_H.
62661         (gl_HEADER_SYS_TIME_H): New macro.
62662
62663         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
62664         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62665         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
62666         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
62667         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62668         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
62669         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
62670         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62671         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
62672         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
62673         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62674
62675         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
62676         last change; it caused a compilation error when cross-compiling to
62677         Cygwin.
62678
62679 2007-01-18  Jim Meyering  <jim@meyering.net>
62680
62681         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
62682         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
62683         than the race-prone "test -d sys || mkdir sys".
62684         (configure.ac): Use AC_PROG_MKDIR_P.
62685         * modules/sys_select: Likewise.
62686         * modules/sys_socket: Likewise.
62687         * modules/sys_time: Likewise.
62688
62689 2007-01-18  Eric Blake  <ebb9@byu.net>
62690
62691         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
62692         replace gettimeofday.
62693         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
62694         name, to avoid infinite recursion.
62695
62696 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
62697
62698         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
62699         module sys_time.
62700         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
62701         assume timespec.h defines struct timeval.
62702         * lib/settime.c: Likewise.
62703         * lib/utimens.c: Likewise.
62704         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
62705         since we now assume the gettimeofday module.
62706         * lib/tempname.c (__gen_tempname): Likewise.
62707         * lib/gettimeofday.h: Remove.
62708         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
62709         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
62710         Include <time.h>, for 'time()'.
62711         (localtime_buffer_addr): Also use this workaround if
62712         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
62713         to simplify the uses.  All uses changed.
62714         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
62715         that #undef is inside {}, and 'const' follows type name consistently.
62716         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
62717         (gettimeofday): Do not use the maximum possible value for
62718         tv->tv_usec, since that might break usages other than ls.c.
62719         Instead, we'll leave ls.c alone.  This undoes today's patch
62720         by Bruno.  Add a compile-time warning for 1s-clock resolution;
62721         we've never observed the problem but might as well keep the
62722         canary.
62723         * lib/nanosleep.c: Include timespec.h first, for interface check.
62724         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
62725         now assume the sys_time module.
62726         * lib/tempname.c: Likewise.
62727         * lib/timespec.h: Likewise.
62728         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
62729         needed.
62730         * lib/strftime.c: Likewise.
62731         * lib/timespec.h: Likewise.
62732         * lib/posixtm.c: Include posixtm.h first, for interface check.
62733         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
62734         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
62735         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
62736         * lib/sys_time_.h: New file.
62737         * lib/timespec.h (struct timespec): Use long int, not long.
62738         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
62739         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
62740         Remove obsolescent call to AC_HEADER_TIME.
62741         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
62742         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62743         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
62744         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
62745         Likewise.
62746         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
62747         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
62748         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
62749         into the sys_time module.  Check for gettimeofday just once.
62750         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
62751         for gettimeofday signature to just check the signature.  Merely
62752         compile it, since linking doesn't test signature.  Improve test for
62753         whether gettimeofday.o is actually needed.
62754         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
62755         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
62756         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
62757         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62758         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
62759         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
62760         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
62761         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
62762         than worrying about sys/time.h.
62763         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62764         Don't bother worrying about TIME_WITH_SYS_TIME.
62765         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
62766         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
62767         * m4/sys_time_h.m4: New file.
62768         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
62769         Don't include sys/time.h.  Return from main rather than exiting.
62770         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
62771         all uses changed.
62772         * modules/gethrxtime (Depends-on): Add sys_time.
62773         * modules/gettime (Depends-on): Likewise.
62774         * modules/gettimeofday (Depends-on): Likewise.
62775         * modules/nanosleep (Depends-on): Likewise.
62776         * modules/settime (Depends-on): Likewise.
62777         * modules/tempname (Depends-on): Likewise.
62778         * modules/utimens (Depends-on): Likewise.
62779         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
62780         (Include): Change back to <sys/time.h>.
62781         (Maintainer): Add self.
62782         * modules/sys_time: New file.
62783         * modules/tempname (Depends-on): Add gettimeofday.
62784         * tests/test-gettimeofday.c: Include <sys/time.h>
62785         rather than gettimeofday.h.
62786
62787 2007-01-17  Bruno Haible  <bruno@clisp.org>
62788
62789         * gnulib-tool (func_get_license): Revert last patch. Instead, let
62790         the license default to GPL.
62791         (func_create_testdir): Don't complain if a module is LGPL and its
62792         tests module depends on GPLed modules.
62793
62794 2007-01-17  Bruno Haible  <bruno@clisp.org>
62795
62796         * lib/gettimeofday.c (gettimeofday): Add code for the case
62797         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
62798         maximum possible value for tv->tv_usec, rather than the minimum one.
62799
62800 2005-10-08  Martin Lambers  <marlam@marlam.de>
62801 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
62802 2007-01-16  Bruno Haible  <bruno@clisp.org>
62803
62804         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
62805         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
62806         gl_FUNC_GETTIMEOFDAY.
62807         (Include): Add gettimeofday.h.
62808         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
62809         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
62810         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
62811         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
62812         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
62813         * lib/gettimeofday.h: New file.
62814         * lib/gettimeofday.c: Include <sys/timeb.h>.
62815         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
62816         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62817         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
62818         fall back on time().
62819
62820         * tests/test-gettimeofday.c: New file.
62821         * modules/gettimeofday-tests: New file.
62822
62823 2007-01-16  Eric Blake  <ebb9@byu.net>
62824
62825         * modules/fnmatch (Depends-on): Depend on wchar.
62826         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
62827         * m4/fnmatch.m4: Likewise.
62828         * modules/mbchar (Makefile.am): Assume <wchar.h>.
62829         * m4/mbchar.m4: Likewise.
62830         * modules/mbswidth (Depends-on): Depend on wchar.
62831         * lib/mbswidth.c: Assume <wchar.h>.
62832         * m4/mbswidth.m4: Likewise.
62833         * modules/quotearg (Depends-on): Depend on wchar.
62834         * lib/quotearg.c: Assume <wchar.h>.
62835         * m4/quotearg.m4: Likewise.
62836         * modules/regex (Depends-on): Depend on wchar.
62837         * lib/regex_internal.h: Assume <wchar.h>.
62838         * m4/regex.m4: Likewise.
62839         * modules/stdint (Depends-on): Depend on wchar.
62840         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
62841         * m4/stdint.m4: Likewise.
62842         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
62843         * modules/strftime (Depends-on): Depend on wchar.
62844         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
62845         * modules/strtol (Depends-on): Depend on wchar.
62846         * lib/strtol.c: Assume <wchar.h>.
62847         * modules/wcwidth (Depends-on): Depend on wchar.
62848         * lib/wcwidth.h: Assume <wchar.h>.
62849         * m4/wcwidth.m4: Likewise.
62850
62851 2007-01-16  Bruno Haible  <bruno@clisp.org>
62852
62853         * modules/csharpexec-script: New, created from...
62854         * modules/csharpexec: ... this.
62855
62856 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
62857
62858         * modules/javaexec-script: New, created from...
62859         * modules/javaexec: ... this.
62860
62861 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62862
62863         * modules/poll (Dependencies): Add sys_select.
62864
62865 2007-01-15  Jim Meyering  <jim@meyering.net>
62866
62867         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
62868         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
62869         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
62870         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
62871
62872 2007-01-15  Bruno Haible  <bruno@clisp.org>
62873
62874         * modules/striconveh: New file.
62875         * lib/striconveh.h: New file.
62876         * lib/striconveh.c: New file.
62877         * MODULES.html.sh (Internationalization functions): Add striconveh.
62878
62879         * modules/striconveh-tests: New file.
62880         * tests/test-striconveh.c: New file.
62881
62882 2007-01-15  Bruno Haible  <bruno@clisp.org>
62883
62884         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
62885         not from GNU libiconv or GNU libc.
62886
62887 2007-01-15  Bruno Haible  <bruno@clisp.org>
62888
62889         * doc/gnulib-intro.texi (Copyright): Explain the different license
62890         terms for module descriptions, autoconf macros, tests, documentation.
62891
62892 2007-01-14  Bruno Haible  <bruno@clisp.org>
62893
62894         * modules/striconv-tests: New file.
62895         * tests/test-striconv.c: New file.
62896
62897 2007-01-14  Bruno Haible  <bruno@clisp.org>
62898
62899         * modules/iconv-tests: New file.
62900         * tests/test-iconv.c: New file.
62901
62902 2007-01-14  Bruno Haible  <bruno@clisp.org>
62903
62904         * gnulib-tool (func_get_license): For test modules, use the license of
62905         the main module.
62906
62907 2007-01-14  Bruno Haible  <bruno@clisp.org>
62908
62909         * modules/iconv (Include): Clarify that <iconv.h> can only be included
62910         if iconv is found to exist.
62911
62912 2007-01-14  Bruno Haible  <bruno@clisp.org>
62913
62914         * modules/c-ctype-tests: New file.
62915         * tests/test-c-ctype.c: New file.
62916
62917 2007-01-14  Bruno Haible  <bruno@clisp.org>
62918
62919         * modules/binary-io-tests: New file.
62920         * tests/test-binary-io.sh: New file.
62921         * tests/test-binary-io.c: New file.
62922
62923 2007-01-14  Bruno Haible  <bruno@clisp.org>
62924
62925         * modules/array-oset-tests: New file.
62926         * tests/test-array_oset.c: New file.
62927
62928 2007-01-14  Bruno Haible  <bruno@clisp.org>
62929
62930         * modules/array-list-tests: New file.
62931         * tests/test-array_list.c: New file.
62932
62933 2007-01-14  Bruno Haible  <bruno@clisp.org>
62934
62935         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
62936         and make.
62937         Reported by Simon Josefsson in
62938         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
62939
62940 2007-01-14  Bruno Haible  <bruno@clisp.org>
62941
62942         * modules/allocsa-tests: New file.
62943         * tests/test-allocsa.c: New file.
62944
62945 2007-01-14  Bruno Haible  <bruno@clisp.org>
62946
62947         * modules/fchdir (Depends-on): Add absolute-header.
62948         * modules/unistd (Depends-on): Likewise.
62949
62950 2006-12-30  Bruno Haible  <bruno@clisp.org>
62951
62952         * modules/fchdir: New file.
62953         * modules/unistd (Files): Add lib/unistd_.h.
62954         (Makefile.am): Generate unistd.h from unistd_.h.
62955         * lib/fchdir.c: New file.
62956         * lib/dirent_.h: New file.
62957         * lib/unistd_.h: New file.
62958         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
62959         * m4/fchdir.m4: New file.
62960         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
62961         (gl_HEADER_UNISTD): Invoke it.
62962         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
62963         function.
62964         * lib/backupfile.c (opendir, closedir): Undefine.
62965         * lib/chown.c (open, close): Undefine.
62966         * lib/clean-temp.c (open, close): Undefine.
62967         * lib/copy-file.c (open, close): Undefine.
62968         * lib/execute.c (open, close): Undefine.
62969         * lib/fsusage.c (open, close): Undefine.
62970         * lib/gc-gnulib.c (open, close): Undefine.
62971         * lib/getcwd.c (opendir, closedir): Undefine.
62972         * lib/glob.c (opendir, closedir): Undefine.
62973         * lib/javacomp.c (open, close): Undefine.
62974         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
62975         * lib/openat-proc.c (open, close): Undefine.
62976         * lib/pagealign_alloc.c (open, close): Undefine.
62977         * lib/pipe.c (open, close): Undefine.
62978         * lib/progreloc.c (open, close): Undefine.
62979         * lib/savedir.c (opendir, closedir): Undefine.
62980         * lib/utime.c (open, close): Undefine.
62981         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
62982
62983 2007-01-10  Bruno Haible  <bruno@clisp.org>
62984
62985         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
62986
62987 2007-01-12  Eric Blake  <ebb9@byu.net>
62988
62989         Provide a robust <wchar.h>.  Further simplifications are now
62990         possible in other modules, but not included here.
62991         * modules/wchar: New module.
62992         * m4/wchar.m4: New file.
62993         * lib/wchar_.h: Likewise.
62994         * modules/mbchar (Depends-on): Depend on wchar, as the first use
62995         of the new module.
62996         * MODULES.html.sh (Extended multibyte and wide character utilities):
62997         New section.
62998
62999 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
63000
63001         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
63002         to a reasonable default for memory allocation.
63003         (xreadlink): Don't allocate a huge buffer, to work around a buggy
63004         file system that reports garbage st_size values for symlinks.
63005         Problem reported by Liyang Hu.
63006
63007 2007-01-11  Simon Josefsson  <simon@josefsson.org>
63008
63009         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
63010         Emacs .#* auto-save files).
63011
63012 2007-01-11  Bruno Haible  <bruno@clisp.org>
63013
63014         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
63015         directory.
63016
63017 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63018
63019         Use @...@ consistently in lib/wctype_.h.
63020         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
63021         on it being set to 1 or 0.
63022         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
63023         go back to AC_SUBSTing it.
63024         * modules/wctype (Makefile.am): Undo previous change.
63025
63026 2007-01-10  Eric Blake  <ebb9@byu.net>
63027
63028         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
63029         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
63030         * modules/wctype (Makefile.am): Likewise.
63031         Reported by Chris McGuire.
63032
63033 2007-01-10  Jim Meyering  <jim@meyering.net>
63034
63035         fts.c: a small readability/maintainability improvement
63036         * lib/fts.c (fts_read): Make this code slightly more readable and
63037         maintainable by hoisting the "sp->fts_cur = p" assignments to
63038         immediately follow the statements that set P.  Derived from
63039         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
63040
63041 2007-01-10  Eric Blake  <ebb9@byu.net>
63042
63043         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
63044         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
63045         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63046         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
63047         Reported by Chris McGuire.
63048
63049 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63050
63051         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
63052         in sed script.
63053
63054 2007-01-09  Bruno Haible  <bruno@clisp.org>
63055
63056         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
63057         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
63058         variables.
63059         (func_module): Use them.
63060
63061 2007-01-09  Bruno Haible  <bruno@clisp.org>
63062
63063         * modules/unistr/base: New file.
63064         * lib/unistr.h: New file.
63065
63066         * modules/unistr/u8-to-u16: New file.
63067         * lib/unistr/u8-to-u16.c: New file.
63068
63069         * modules/unistr/u8-to-u32: New file.
63070         * lib/unistr/u8-to-u32.c: New file.
63071
63072         * modules/unistr/u16-to-u8: New file.
63073         * lib/unistr/u16-to-u8.c: New file.
63074
63075         * modules/unistr/u16-to-u32: New file.
63076         * lib/unistr/u16-to-u32.c: New file.
63077
63078         * modules/unistr/u32-to-u8: New file.
63079         * lib/unistr/u32-to-u8.c: New file.
63080
63081         * modules/unistr/u32-to-u16: New file.
63082         * lib/unistr/u32-to-u16.c: New file.
63083
63084         * modules/unistr/u8-check: New file.
63085         * modules/unistr/u16-check: New file.
63086         * modules/unistr/u32-check: New file.
63087         * lib/unistr/u8-check.c: New file.
63088         * lib/unistr/u16-check.c: New file.
63089         * lib/unistr/u32-check.c: New file.
63090
63091         * modules/unistr/u8-chr: New file.
63092         * modules/unistr/u16-chr: New file.
63093         * modules/unistr/u32-chr: New file.
63094         * lib/unistr/u8-chr.c: New file.
63095         * lib/unistr/u16-chr.c: New file.
63096         * lib/unistr/u32-chr.c: New file.
63097
63098         * modules/unistr/u8-cmp: New file.
63099         * modules/unistr/u16-cmp: New file.
63100         * modules/unistr/u32-cmp: New file.
63101         * lib/unistr/u8-cmp.c: New file.
63102         * lib/unistr/u16-cmp.c: New file.
63103         * lib/unistr/u32-cmp.c: New file.
63104
63105         * modules/unistr/u8-cpy: New file.
63106         * modules/unistr/u16-cpy: New file.
63107         * modules/unistr/u32-cpy: New file.
63108         * lib/unistr/u8-cpy.c: New file.
63109         * lib/unistr/u16-cpy.c: New file.
63110         * lib/unistr/u32-cpy.c: New file.
63111         * lib/unistr/u-cpy.h: New file.
63112
63113         * modules/unistr/u8-cpy-alloc: New file.
63114         * modules/unistr/u16-cpy-alloc: New file.
63115         * modules/unistr/u32-cpy-alloc: New file.
63116         * lib/unistr/u8-cpy-alloc.c: New file.
63117         * lib/unistr/u16-cpy-alloc.c: New file.
63118         * lib/unistr/u32-cpy-alloc.c: New file.
63119         * lib/unistr/u-cpy-alloc.h: New file.
63120
63121         * modules/unistr/u8-endswith: New file.
63122         * modules/unistr/u16-endswith: New file.
63123         * modules/unistr/u32-endswith: New file.
63124         * lib/unistr/u8-endswith.c: New file.
63125         * lib/unistr/u16-endswith.c: New file.
63126         * lib/unistr/u32-endswith.c: New file.
63127         * lib/unistr/u-endswith.h: New file.
63128
63129         * modules/unistr/u8-mblen: New file.
63130         * modules/unistr/u16-mblen: New file.
63131         * modules/unistr/u32-mblen: New file.
63132         * lib/unistr/u8-mblen.c: New file.
63133         * lib/unistr/u16-mblen.c: New file.
63134         * lib/unistr/u32-mblen.c: New file.
63135
63136         * modules/unistr/u8-mbtouc: New file.
63137         * modules/unistr/u16-mbtouc: New file.
63138         * modules/unistr/u32-mbtouc: New file.
63139         * lib/unistr/u8-mbtouc.c: New file.
63140         * lib/unistr/u16-mbtouc.c: New file.
63141         * lib/unistr/u32-mbtouc.c: New file.
63142
63143         * modules/unistr/u8-mbtouc-safe: New file.
63144         * modules/unistr/u16-mbtouc-safe: New file.
63145         * modules/unistr/u32-mbtouc-safe: New file.
63146         * lib/unistr/u8-mbtouc-safe.c: New file.
63147         * lib/unistr/u16-mbtouc-safe.c: New file.
63148         * lib/unistr/u32-mbtouc-safe.c: New file.
63149
63150         * modules/unistr/u8-move: New file.
63151         * modules/unistr/u16-move: New file.
63152         * modules/unistr/u32-move: New file.
63153         * lib/unistr/u8-move.c: New file.
63154         * lib/unistr/u16-move.c: New file.
63155         * lib/unistr/u32-move.c: New file.
63156         * lib/unistr/u-move.h: New file.
63157
63158         * modules/unistr/u8-next: New file.
63159         * modules/unistr/u16-next: New file.
63160         * modules/unistr/u32-next: New file.
63161         * lib/unistr/u8-next.c: New file.
63162         * lib/unistr/u16-next.c: New file.
63163         * lib/unistr/u32-next.c: New file.
63164
63165         * modules/unistr/u8-prev: New file.
63166         * modules/unistr/u16-prev: New file.
63167         * modules/unistr/u32-prev: New file.
63168         * lib/unistr/u8-prev.c: New file.
63169         * lib/unistr/u16-prev.c: New file.
63170         * lib/unistr/u32-prev.c: New file.
63171
63172         * modules/unistr/u8-set: New file.
63173         * modules/unistr/u16-set: New file.
63174         * modules/unistr/u32-set: New file.
63175         * lib/unistr/u8-set.c: New file.
63176         * lib/unistr/u16-set.c: New file.
63177         * lib/unistr/u32-set.c: New file.
63178         * lib/unistr/u-set.h: New file.
63179
63180         * modules/unistr/u8-startswith: New file.
63181         * modules/unistr/u16-startswith: New file.
63182         * modules/unistr/u32-startswith: New file.
63183         * lib/unistr/u8-startswith.c: New file.
63184         * lib/unistr/u16-startswith.c: New file.
63185         * lib/unistr/u32-startswith.c: New file.
63186         * lib/unistr/u-startswith.h: New file.
63187
63188         * modules/unistr/u8-stpcpy: New file.
63189         * modules/unistr/u16-stpcpy: New file.
63190         * modules/unistr/u32-stpcpy: New file.
63191         * lib/unistr/u8-stpcpy.c: New file.
63192         * lib/unistr/u16-stpcpy.c: New file.
63193         * lib/unistr/u32-stpcpy.c: New file.
63194         * lib/unistr/u-stpcpy.h: New file.
63195
63196         * modules/unistr/u8-stpncpy: New file.
63197         * modules/unistr/u16-stpncpy: New file.
63198         * modules/unistr/u32-stpncpy: New file.
63199         * lib/unistr/u8-stpncpy.c: New file.
63200         * lib/unistr/u16-stpncpy.c: New file.
63201         * lib/unistr/u32-stpncpy.c: New file.
63202         * lib/unistr/u-stpncpy.h: New file.
63203
63204         * modules/unistr/u8-strcat: New file.
63205         * modules/unistr/u16-strcat: New file.
63206         * modules/unistr/u32-strcat: New file.
63207         * lib/unistr/u8-strcat.c: New file.
63208         * lib/unistr/u16-strcat.c: New file.
63209         * lib/unistr/u32-strcat.c: New file.
63210         * lib/unistr/u-strcat.h: New file.
63211
63212         * modules/unistr/u8-strchr: New file.
63213         * modules/unistr/u16-strchr: New file.
63214         * modules/unistr/u32-strchr: New file.
63215         * lib/unistr/u8-strchr.c: New file.
63216         * lib/unistr/u16-strchr.c: New file.
63217         * lib/unistr/u32-strchr.c: New file.
63218
63219         * modules/unistr/u8-strcmp: New file.
63220         * modules/unistr/u16-strcmp: New file.
63221         * modules/unistr/u32-strcmp: New file.
63222         * lib/unistr/u8-strcmp.c: New file.
63223         * lib/unistr/u16-strcmp.c: New file.
63224         * lib/unistr/u32-strcmp.c: New file.
63225
63226         * modules/unistr/u8-strcpy: New file.
63227         * modules/unistr/u16-strcpy: New file.
63228         * modules/unistr/u32-strcpy: New file.
63229         * lib/unistr/u8-strcpy.c: New file.
63230         * lib/unistr/u16-strcpy.c: New file.
63231         * lib/unistr/u32-strcpy.c: New file.
63232         * lib/unistr/u-strcpy.h: New file.
63233
63234         * modules/unistr/u8-strcspn: New file.
63235         * modules/unistr/u16-strcspn: New file.
63236         * modules/unistr/u32-strcspn: New file.
63237         * lib/unistr/u8-strcspn.c: New file.
63238         * lib/unistr/u16-strcspn.c: New file.
63239         * lib/unistr/u32-strcspn.c: New file.
63240         * lib/unistr/u-strcspn.h: New file.
63241
63242         * modules/unistr/u8-strdup: New file.
63243         * modules/unistr/u16-strdup: New file.
63244         * modules/unistr/u32-strdup: New file.
63245         * lib/unistr/u8-strdup.c: New file.
63246         * lib/unistr/u16-strdup.c: New file.
63247         * lib/unistr/u32-strdup.c: New file.
63248         * lib/unistr/u-strdup.h: New file.
63249
63250         * modules/unistr/u8-strlen: New file.
63251         * modules/unistr/u16-strlen: New file.
63252         * modules/unistr/u32-strlen: New file.
63253         * lib/unistr/u8-strlen.c: New file.
63254         * lib/unistr/u16-strlen.c: New file.
63255         * lib/unistr/u32-strlen.c: New file.
63256         * lib/unistr/u-strlen.h: New file.
63257
63258         * modules/unistr/u8-strmblen: New file.
63259         * modules/unistr/u16-strmblen: New file.
63260         * modules/unistr/u32-strmblen: New file.
63261         * lib/unistr/u8-strmblen.c: New file.
63262         * lib/unistr/u16-strmblen.c: New file.
63263         * lib/unistr/u32-strmblen.c: New file.
63264
63265         * modules/unistr/u8-strmbtouc: New file.
63266         * modules/unistr/u16-strmbtouc: New file.
63267         * modules/unistr/u32-strmbtouc: New file.
63268         * lib/unistr/u8-strmbtouc.c: New file.
63269         * lib/unistr/u16-strmbtouc.c: New file.
63270         * lib/unistr/u32-strmbtouc.c: New file.
63271
63272         * modules/unistr/u8-strncat: New file.
63273         * modules/unistr/u16-strncat: New file.
63274         * modules/unistr/u32-strncat: New file.
63275         * lib/unistr/u8-strncat.c: New file.
63276         * lib/unistr/u16-strncat.c: New file.
63277         * lib/unistr/u32-strncat.c: New file.
63278         * lib/unistr/u-strncat.h: New file.
63279
63280         * modules/unistr/u8-strncmp: New file.
63281         * modules/unistr/u16-strncmp: New file.
63282         * modules/unistr/u32-strncmp: New file.
63283         * lib/unistr/u8-strncmp.c: New file.
63284         * lib/unistr/u16-strncmp.c: New file.
63285         * lib/unistr/u32-strncmp.c: New file.
63286
63287         * modules/unistr/u8-strncpy: New file.
63288         * modules/unistr/u16-strncpy: New file.
63289         * modules/unistr/u32-strncpy: New file.
63290         * lib/unistr/u8-strncpy.c: New file.
63291         * lib/unistr/u16-strncpy.c: New file.
63292         * lib/unistr/u32-strncpy.c: New file.
63293         * lib/unistr/u-strncpy.h: New file.
63294
63295         * modules/unistr/u8-strnlen: New file.
63296         * modules/unistr/u16-strnlen: New file.
63297         * modules/unistr/u32-strnlen: New file.
63298         * lib/unistr/u8-strnlen.c: New file.
63299         * lib/unistr/u16-strnlen.c: New file.
63300         * lib/unistr/u32-strnlen.c: New file.
63301         * lib/unistr/u-strnlen.h: New file.
63302
63303         * modules/unistr/u8-strpbrk: New file.
63304         * modules/unistr/u16-strpbrk: New file.
63305         * modules/unistr/u32-strpbrk: New file.
63306         * lib/unistr/u8-strpbrk.c: New file.
63307         * lib/unistr/u16-strpbrk.c: New file.
63308         * lib/unistr/u32-strpbrk.c: New file.
63309         * lib/unistr/u-strpbrk.h: New file.
63310
63311         * modules/unistr/u8-strrchr: New file.
63312         * modules/unistr/u16-strrchr: New file.
63313         * modules/unistr/u32-strrchr: New file.
63314         * lib/unistr/u8-strrchr.c: New file.
63315         * lib/unistr/u16-strrchr.c: New file.
63316         * lib/unistr/u32-strrchr.c: New file.
63317
63318         * modules/unistr/u8-strspn: New file.
63319         * modules/unistr/u16-strspn: New file.
63320         * modules/unistr/u32-strspn: New file.
63321         * lib/unistr/u8-strspn.c: New file.
63322         * lib/unistr/u16-strspn.c: New file.
63323         * lib/unistr/u32-strspn.c: New file.
63324         * lib/unistr/u-strspn.h: New file.
63325
63326         * modules/unistr/u8-strstr: New file.
63327         * modules/unistr/u16-strstr: New file.
63328         * modules/unistr/u32-strstr: New file.
63329         * lib/unistr/u8-strstr.c: New file.
63330         * lib/unistr/u16-strstr.c: New file.
63331         * lib/unistr/u32-strstr.c: New file.
63332         * lib/unistr/u-strstr.h: New file.
63333
63334         * modules/unistr/u8-strtok: New file.
63335         * modules/unistr/u16-strtok: New file.
63336         * modules/unistr/u32-strtok: New file.
63337         * lib/unistr/u8-strtok.c: New file.
63338         * lib/unistr/u16-strtok.c: New file.
63339         * lib/unistr/u32-strtok.c: New file.
63340         * lib/unistr/u-strtok.h: New file.
63341
63342         * modules/unistr/u8-uctomb: New file.
63343         * modules/unistr/u16-uctomb: New file.
63344         * modules/unistr/u32-uctomb: New file.
63345         * lib/unistr/u8-uctomb.c: New file.
63346         * lib/unistr/u16-uctomb.c: New file.
63347         * lib/unistr/u32-uctomb.c: New file.
63348
63349         * MODULES.html.sh (Unicode string functions): Add the new modules.
63350
63351 2007-01-08  Bruno Haible  <bruno@clisp.org>
63352
63353         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
63354         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
63355         subdirectories.
63356
63357 2007-01-08  Karl Berry  <karl@gnu.org>
63358
63359         * doc/error.texi: mention that main() fns must set program_name
63360         when progname is used.
63361
63362 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
63363
63364         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
63365         WCTYPE_H is empty, for the benefit of builds from non-distclean
63366         directories.  Problem reported by Eric Blake in
63367         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
63368
63369 2007-01-08  Bruno Haible  <bruno@clisp.org>
63370
63371         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
63372         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
63373         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
63374         PROVIDE_CANONICALIZE_FILENAME_MODE.
63375         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
63376
63377 2007-01-08  Bruno Haible  <bruno@clisp.org>
63378
63379         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
63380         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
63381         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
63382         * lib/fts.c: Likewise.
63383         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
63384
63385 2006-12-25  Bruno Haible  <bruno@clisp.org>
63386
63387         * modules/utf8-ucs4-safe: New file.
63388         * lib/utf8-ucs4-safe.h: New file.
63389         * lib/unistr/utf8-ucs4-safe.c: New file.
63390
63391         * modules/utf16-ucs4-safe: New file.
63392         * lib/utf16-ucs4-safe.h: New file.
63393         * lib/unistr/utf16-ucs4-safe.c: New file.
63394
63395         * MODULES.html.sh (Unicode string functions): Add the new modules.
63396
63397 2007-01-08  Bruno Haible  <bruno@clisp.org>
63398
63399         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
63400         (Depends-on): Add unitypes.
63401         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
63402         (u8_mbtouc_aux): Move out to separate file.
63403         (u8_mbtouc): Use ucs4_t, uint8_t types.
63404         * lib/unistr/utf8-ucs4.c: New file.
63405
63406         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
63407         (Depends-on): Add unitypes.
63408         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
63409         (u16_mbtouc_aux): Move out to separate file.
63410         (u16_mbtouc): Use ucs4_t, uint16_t types.
63411         * lib/unistr/utf16-ucs4.c: New file.
63412
63413         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
63414         (Depends-on): Add unitypes.
63415         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
63416         (u8_uctomb_aux): Move out to separate file.
63417         (u8_uctomb): Use ucs4_t, uint8_t types.
63418         * lib/unistr/ucs4-utf8.c: New file.
63419
63420         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
63421         (Depends-on): Add unitypes.
63422         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
63423         (u16_uctomb_aux): Move out to separate file.
63424         (u16_uctomb): Use ucs4_t, uint16_t types.
63425         * lib/unistr/ucs4-utf16.c: New file.
63426
63427 2006-12-25  Bruno Haible  <bruno@clisp.org>
63428
63429         * modules/unitypes: New file.
63430         * lib/unitypes.h: New file.
63431         * MODULES.html.sh (func_all_modules): New section "Unicode string
63432         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
63433         this section. Add unitypes.
63434
63435 2007-01-08  Bruno Haible  <bruno@clisp.org>
63436
63437         Avoid variable names that conflict with those from libtool.
63438         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
63439         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
63440         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
63441         library_names_spec to acl_library_names_spec, hardcode_* to
63442         acl_hardcode_*.
63443         Reported by Ralf Wildenhues.
63444
63445 2007-01-08  Bruno Haible  <bruno@clisp.org>
63446
63447         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
63448         definition.
63449         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
63450         definition.
63451         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
63452         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
63453         definition.
63454         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
63455         definition.
63456         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
63457         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
63458         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
63459         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
63460         definition.
63461         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
63462         definition.
63463         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
63464         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
63465         GC_USE_<algorithm>.
63466         * lib/gc-libgcrypt.c: Likewise.
63467         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
63468         * modules/gc-arctwo (configure.ac): Likewise.
63469         * modules/gc-des (configure.ac): Likewise.
63470         * modules/gc-hmac-md5 (configure.ac): Likewise.
63471         * modules/gc-hmac-sha1 (configure.ac): Likewise.
63472         * modules/gc-md2 (configure.ac): Likewise.
63473         * modules/gc-md4 (configure.ac): Likewise.
63474         * modules/gc-md5 (configure.ac): Likewise.
63475         * modules/gc-random (configure.ac): Likewise.
63476         * modules/gc-rijndael (configure.ac): Likewise.
63477         * modules/gc-sha1 (configure.ac): Likewise.
63478
63479 2007-01-08  Bruno Haible  <bruno@clisp.org>
63480
63481         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
63482         macro definition.
63483         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
63484         definition.
63485         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
63486         definition.
63487         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
63488         * modules/fcntl-safer (configure.ac): Likewise.
63489         * modules/fopen-safer (configure.ac): Likewise.
63490         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
63491         GNULIB_FWRITEERROR macro definition.
63492
63493 2007-01-08  Bruno Haible  <bruno@clisp.org>
63494
63495         * m4/gnulib-common.m4: New file.
63496         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
63497         (func_get_filelist): Add m4/gnulib-common.m4.
63498
63499 2007-01-08  Bruno Haible  <bruno@clisp.org>
63500
63501         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
63502         command.
63503
63504 2007-01-08  Jim Meyering  <jim@meyering.net>
63505
63506         Use a more robust test for a "can't happen" condition.
63507         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
63508         narrowed the st_size value.  Presuming the "can't happen" condition
63509         is true, that narrowing could conceivably convert an invalid st_size
63510         value into a valid one.  Instead, use a change based on Matthew
63511         Woehlke's original patch.
63512
63513         Slight readability improvement: use an assert-like macro
63514         in place of literal "abort ()" uses.
63515         * lib/fts.c (fts_assert): Define.
63516         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
63517         Use this macro instead of a bare 'abort'.
63518
63519 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
63520
63521         Don't worry about using IRIX 5.3's wctype.h broken definitions;
63522         simply work around them.
63523         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
63524         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
63525         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
63526         declaring.
63527         Don't bother to define as macros, since the standard doesn't require it.
63528         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
63529         longer worry about IRIX 5.3.
63530         (HAVE_WCTYPE_CTMP_BUG): Remove.
63531
63532 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63533
63534         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
63535         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
63536         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
63537         Problems reported by Georg Schwarz for IRIX 5.3.
63538
63539         * gnulib-tool (autoconf_minversion): Take the maximum version number
63540         found, not the minimum.  Problem reported by James Youngman.
63541
63542 2007-01-03  Karl Berry  <karl@gnu.org>
63543
63544         * doc/error.texi: new file, explaining interaction with progname.
63545         * doc/gnulib.texi: include it.  Update copyright.
63546
63547 2007-01-03  Simon Josefsson  <simon@josefsson.org>
63548
63549         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
63550         AC_CANONICAL_HOST, to improve autobuild outputs.
63551
63552 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
63553             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
63554
63555         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
63556         sockets, server sockets, and other file descriptors.  Count errors
63557         to compute the return value.  Reorder the code a bit to be easier
63558         to follow.  Don't set event bits that were not requested (except
63559         POLLERR and POLLHUP).
63560
63561 2007-01-01  Bruno Haible  <bruno@clisp.org>
63562
63563         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
63564
63565 2007-01-03  Jim Meyering  <jim@meyering.net>
63566
63567         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
63568
63569 2007-01-02  Bruno Haible  <bruno@clisp.org>
63570
63571         * modules/settime (Include): Require timespec.h.
63572         * modules/nanosleep (Include): Likewise.
63573
63574 2007-01-01  Bruno Haible  <bruno@clisp.org>
63575
63576         * gnulib-tool (func_emit_copyright_notice): Bump year.
63577         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
63578
63579 2007-01-01  Bruno Haible  <bruno@clisp.org>
63580
63581         Improve support for OpenBSD.
63582         * build-aux/config.rpath (libname_spec): Export.
63583         (library_names_spec): New variable. Export.
63584         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
63585         library_names_spec from the config.rpath output. Locate shared library
63586         through the name pattern in library_names_spec.
63587
63588 2007-01-01  Eric Blake  <ebb9@byu.net>
63589
63590         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
63591
63592 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
63593
63594         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
63595         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
63596         assume the C locale, and avoid an "eval" that could cause trouble.
63597         Problem with SORT reported by Bob Proulx.
63598
63599         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
63600         Define.  Trivial patch from Henning Nielsen Lund, originally
63601         sent to bug-grep@gnu.org today.
63602
63603 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
63604
63605         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
63606         struct stat.  Problem reported by Henning Nielsen Lund.
63607         * lib/acl.c: Include acl.h first, to check interface.  Don't
63608         bother to include sys/types.h and sys/stat.h again.
63609
63610 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
63611
63612         Import the following change from libc; problem reported by
63613         Sven Verdoolaege.
63614
63615         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
63616
63617         [BZ #1373]
63618         * lib/argp.h: Remove __NTH for __argp_usage inline function.
63619
63620 2006-12-28  Jim Meyering  <jim@meyering.net>
63621
63622         * build-aux/announce-gen: Do not assume that the package
63623         builds any of tar.gz, tar.bz2, and .xdelta files.
63624         Suggestion from Simon Josefsson.
63625
63626 2006-12-28  Simon Josefsson  <simon@josefsson.org>
63627
63628         * modules/announce-gen: New file.
63629
63630 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
63631
63632         * lib/mbchar.h: Just include <wctype.h>; the wctype module
63633         handles its gotchas now.
63634         * lib/mbswidth.c: Likewise.
63635         * lib/wcwidth.h: Likewise.
63636         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
63637         and iswcntrl; the wctype module does this stuff now.
63638         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
63639         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63640         * modules/mbchar (Depends-on): Add wctype.
63641         * modules/mbswidth (Depends-on): Likewise.
63642         * modules/wcwidth (Depends-on): Likewise.
63643
63644 2006-12-27  Eric Blake  <ebb9@byu.net>
63645
63646         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
63647         module uses more than what <wctype.h> is required to provide.
63648
63649 2006-12-26  Eric Blake  <ebb9@byu.net>
63650
63651         * gnulib-tool (sed_extract_prog): Avoid space-tab.
63652
63653 2006-12-26  Eric Blake  <ebb9@byu.net>
63654
63655         * modules/absolute-header: New module.
63656         * modules/fcntl (Depends-on): Depend on it.
63657         * modules/inttypes (Depends-on): Likewise.
63658         * modules/stdint (Depends-on): Likewise.
63659         * modules/sys_stat (Depends-on): Likewise.
63660         * modules/wctype (Depends-on): Likewise.
63661         * MODULES.html.sh (Support for building libraries and
63662         executables): Document it.
63663
63664 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
63665
63666         * gnulib-tool (SED): Remove, undoing previous change.
63667         The problem was that it broke coreutils on Solaris, because
63668         "sed --posix" leaked into a makefile.
63669         (sed): New alias, if 'alias' and GNU sed.
63670
63671 2006-12-24  Jim Meyering  <jim@meyering.net>
63672
63673         Work around an fchownat bug in glibc-2.4:
63674         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
63675         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
63676         in spite of the -P option.
63677         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
63678         New macros.
63679         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
63680         * modules/openat (Files): Add lib/fchownat.c.
63681         * lib/openat.c (fchownat): Don't define here.  Move to...
63682         * lib/fchownat.c: ...this new file.
63683
63684 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63685
63686         Fix bug reported by Bruno Haible in
63687         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
63688         where quotearg.c didn't compile on Mac OS X 10.2 because it
63689         lacks <wchar.h> and wint_t.
63690         * lib/wctype_.h (__wctype_wint_t): New type.
63691         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
63692         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
63693         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
63694         Arg is now of type __wctype_wint_t, not wint_t.
63695         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
63696         substitute HAVE_WINT_T.
63697         * modules/wctype (Files): Add m4/wint_t.m4.
63698         (wctype.h): Substitute HAVE_WINT_T.
63699
63700 2006-12-23  Bruno Haible  <bruno@clisp.org>
63701
63702         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
63703
63704 2006-12-23  Bruno Haible  <bruno@clisp.org>
63705
63706         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
63707         S_ISLNK.
63708         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
63709         mingw.
63710
63711 2006-12-22  Bruno Haible  <bruno@clisp.org>
63712
63713         * lib/copy-file.c: Include acl.h.
63714         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
63715         Close the file descriptors only after being done with copy_acl.
63716         * modules/copy-file (Depends-on): Add acl.
63717
63718 2006-12-22  Bruno Haible  <bruno@clisp.org>
63719
63720         * gnulib-tool (SED): New variable.
63721         Use $SED instead of sed everywhere.
63722
63723 2006-12-22  Bruno Haible  <bruno@clisp.org>
63724
63725         * modules/no-c++: New file.
63726         * m4/no-c++.m4: New file.
63727         * MODULES.html.sh (Support for building libraries and executables):
63728         Add no-c++.
63729
63730 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
63731
63732         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
63733         Include <limits.h>, and use its INT_MAX to rewrite the
63734         j loop so that it does not overflow 'int'.  Problem reported by
63735         Ralf Wildenhues in
63736         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
63737         Play it safe by shifting left by 1 rather than multiplying by 2,
63738         as GCC is less likely to optimize this away when the value
63739         is signed (when it assumes overflow leads to undefined behavior).
63740         Also, don't assume time_t uses two's complement.
63741
63742 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
63743
63744         * MODULES.html.sh: New module wctype.
63745         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
63746         * lib/fnmatch.c: Don't bother to include <wchar.h> before
63747         <wctype.h>, since the new wctype module should fix this.
63748         * lib/quotearg.c: Include <wctype.h> unconditionally, since
63749         the wctype module should arrange for it.
63750         * lib/regex_internal.h: Likewise.
63751         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
63752         since the wctype module should handle this now.
63753         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
63754         * modules/fnmatch (Depends-on): Add wctype.
63755         * modules/quotearg (Depends-on): Likewise.
63756         * modules/regex (Depends-on): Likewise.
63757
63758 2006-12-19  Bruno Haible  <bruno@clisp.org>
63759
63760         * lib/strdup.h [C++]: Wrap definitions in extern "C".
63761         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
63762
63763 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63764
63765         * modules/savewd (Depends-on): Fix dependency on fcntl.
63766
63767 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63768
63769         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
63770         conforms to C99, rather than relying on the user's environment
63771         setting of STDINT_H.
63772
63773 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63774         and Eric Blake  <ebb9@byu.net>
63775
63776         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
63777         This is more consistent with the other defines here.
63778         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
63779         Port to z/OS.  Problem reported by Paul Gilmartin.
63780         Change local vars to use gl_ prefix rather than ac_.
63781         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
63782         with other defines.
63783         * modules/double-slash-root: New module.
63784         * modules/dirname (Files): Remove m4/double-slash-root.m4.
63785         (Depends-on): Add double-slash-root.
63786         * MODULES.html.sh (File system functions): Mention new module.
63787
63788 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
63789
63790         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
63791         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
63792         This is for the benefit of gzip, which doesn't do i18n.
63793
63794 2006-12-12  Jim Meyering  <jim@meyering.net>
63795
63796         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
63797         Reported by Andreas Schwab <schwab@suse.de>.
63798
63799 2006-12-12  Bruno Haible  <bruno@clisp.org>
63800
63801         Merge these changes.
63802         2006-09-05  Bruno Haible  <bruno@clisp.org>
63803         * lib/iconvme.c (iconv_string): No need to save and restore errno when
63804         iconv_alloc succeeded.
63805         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
63806         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
63807         test for " && dest " at the end - dest is always != NULL there. Call
63808         iconv with 4xNULL arguments initially, to reset the state. Call iconv
63809         with 2xNULL arguments, also to flush the state storage. Handle the
63810         IRIX iconv behaviour. Realloc the final result, to throw away unused
63811         memory.
63812
63813 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
63814
63815         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
63816         and fchmodat unconditionally, since glibc 2.4 has them.
63817         Problem reported by Arkadiusz Miskiewicz.
63818
63819 2006-12-10  Bruno Haible  <bruno@clisp.org>
63820
63821         * gnulib-tool (func_import): Show the include files only for those
63822         modules that are copied and specified.
63823         Reported by Karl Berry.
63824
63825 2006-12-08  Jim Meyering  <jim@meyering.net>
63826
63827         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
63828         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
63829
63830         * build-aux/announce-gen: Add two new options, both optional:
63831         --bootstrap-tools=TOOL_LIST
63832               a comma-separated list of tools, e.g.,
63833               autoconf,automake,bison,gnulib
63834         --gnulib-snapshot-date=DATE
63835               if gnulib is in the bootstrap tool list,
63836               then report this as the snapshot date.
63837               If not specified, use the current date/time.
63838               If you specify a date here, be sure it's UTC.
63839
63840 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63841
63842         * tests/test-argp-2.sh: Fix test to match actual output.
63843         (func_compare): Fix sed script to be portable.
63844
63845 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
63846
63847         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
63848         workaround for this case.  It is not autoconfigured now; offhand
63849         it's hard to see how to autoconfigure it.
63850
63851 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
63852
63853         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
63854         a directory that is about to be chowned.  Such a directory's
63855         initial file permissions should permit the owner only and this
63856         should not be changed until after the chown, since the group and
63857         other bits would be incorrect if they granted permission before
63858         the chown.
63859
63860         Fix porting problem for iswctype reported by Georg Schwarz in:
63861         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
63862         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
63863         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
63864         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
63865         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63866
63867 2006-12-03  Jim Meyering  <jim@meyering.net>
63868
63869         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
63870         p->fts_statp may not yet be defined.
63871         (fts_read): Instead, set it in the caller, once p->fts_statp is
63872         sure to be defined, and corresponds to a top-level directory.
63873         This bug made du -x fail.  Here's the coreutils test case:
63874         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
63875         Reported by Mike Frysinger.
63876
63877 2006-12-01  Jim Meyering  <jim@meyering.net>
63878
63879         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
63880         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
63881         Reported by Simon Josefsson.
63882
63883 2006-11-30  Jim Meyering  <jim@meyering.net>
63884
63885         * m4/warning.m4: Use the all-permissive copyright notice
63886         recommended by RMS (rather than LGPL).
63887         * m4/vararrays.m4: Likewise.
63888         * m4/flexmember.m4: Likewise.
63889
63890 2006-11-29  Bruno Haible  <bruno@clisp.org>
63891
63892         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
63893         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
63894         using +=.
63895         Reported by Simon Josefsson <simon@josefsson.org>.
63896
63897 2006-11-28  James Youngman <jay@gnu.org>
63898
63899         * README: Advise users that they might find the bug-gnulib@gnu.org
63900         and autotools-announce@gnu.org mailing lists useful.
63901
63902 2006-11-28  Bruno Haible  <bruno@clisp.org>
63903
63904         * m4/ptrdiff_max.m4: Remove file.
63905
63906 2006-11-21  Bruno Haible  <bruno@clisp.org>
63907
63908         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
63909         _AC_COMPUTE_INT.
63910         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
63911         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
63912         _AC_COMPUTE_INT.
63913         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
63914         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
63915         _AC_COMPUTE_INT.
63916         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
63917
63918 2006-11-28  Jim Meyering  <jim@meyering.net>
63919
63920         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
63921         warning from "gcc -Wshadow" about shadowing the builtin.
63922
63923 2006-11-27  Bruno Haible  <bruno@clisp.org>
63924
63925         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
63926         _AC_COMPUTE_INT.
63927         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
63928
63929 2006-11-27  Bruno Haible  <bruno@clisp.org>
63930             Paul Eggert  <eggert@cs.ucla.edu>
63931
63932         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
63933
63934 2006-11-26  Bruno Haible  <bruno@clisp.org>
63935
63936         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
63937         noinst_LTLIBRARIES.
63938
63939 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
63940             Bruno Haible  <bruno@clisp.org>
63941
63942         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
63943         if compiling with "gcc -ansi".
63944
63945 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
63946
63947         Fix some incompatibilities with gcc -ansi -pedantic.
63948         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
63949         if compiling pedantically with GCC, unless it's C99 or later.
63950         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
63951         it mishandles gcc -ansi -pedantic as well.
63952         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
63953         if gcc -pedantic.
63954         * lib/regexec.c (check_node_accept_bytes): Don't use auto
63955         initializers for struct if -pedantic, unless it's C99 or later.
63956
63957 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
63958
63959         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
63960         Don't close an fd more than once. Identical atimes indicate
63961         success, not failure.
63962
63963 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
63964
63965         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
63966
63967 2006-11-23  Jim Meyering  <jim@meyering.net>
63968
63969         * build-aux/announce-gen: New file.  From coreutils.
63970
63971 2006-11-22  Jim Meyering  <jim@meyering.net>
63972
63973         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
63974         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
63975         (fts_read): Use a temporary to narrow the overused st_size member
63976         before using it in a switch statement.  Reported by Matthew Woehlke.
63977
63978         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
63979         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
63980
63981 2006-11-20  Bruno Haible  <bruno@clisp.org>
63982
63983         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
63984         changequote instead of pairs of brackets.
63985         Reported by Andreas Schwab <schwab@suse.de>.
63986
63987 2006-11-21  Jim Meyering  <jim@meyering.net>
63988
63989         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
63990         so as to remain compatible with older compilers.
63991         Patch from Michael Deutschmann.
63992
63993 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
63994
63995         * MODULES.html.sh (File system functions): Add openat.
63996
63997         * lib/openat.h (rpl_fstatat): New macro, if
63998         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
63999         (fstatat): Define to rpl_fstatat under the same conditions,
64000         unless COMPILING_FSTATAT.
64001         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
64002         seems to have the bug.
64003         * lib/fstatat.c: New file.
64004         * modules/openat (Files): Add it.
64005
64006 2006-11-20  Bruno Haible  <bruno@clisp.org>
64007
64008         * Makefile: New file.
64009
64010 2006-11-20  Jim Meyering  <jim@meyering.net>
64011
64012         The beginnings of syntax-related checks for gnulib.
64013         * lib/Makefile: New file.
64014         * lib/t-idcache: New script.  Ensure that the two halves of
64015         idcache.c stay in sync.
64016
64017         * lib/idcache.c: Adjust comments in user- and group- portions to
64018         be more accurate, and to be consistent with one another.
64019
64020 2006-11-20  Jim Meyering  <jim@meyering.net>
64021
64022         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
64023         continue using the flexible array member (thus, this module performs
64024         half as many malloc calls), with the addition that...
64025         (getgroup, getuser): Consistently record a non-match via an empty
64026         "name" string, and map an empty string match to a NULL return value.
64027         * modules/idcache (Depends-on): Re-add flexmember.
64028
64029         * lib/idcache.c (getuser): Remove all uses of the register keyword.
64030         (getuidbyname, getgroup, getgidbyname): Likewise.
64031
64032         Use cleaner syntax: NULL rather than 0.
64033         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
64034
64035 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
64036
64037         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
64038         It mishandled the case where the group was missing.
64039         Problem reported by Greg Schafer.
64040         * modules/idcache: Likewise.
64041
64042 2006-11-18  Jim Meyering  <jim@meyering.net>
64043
64044         * check-module (%exempt_header): Add exception for some
64045         conditionally-included headers.
64046
64047         * modules/i-ring (Depends-on): Add verify.
64048         (License): Change to LGPL.
64049
64050 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64051
64052         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
64053         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
64054         and inttostr.h.  Use snprintf rather than uinttostr, so that
64055         LGPLed code doesn't depend on GPLed.
64056
64057 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
64058
64059         * modules/inline (License): Change from GPL to LGPL.
64060
64061 2006-11-17  Jim Meyering  <jim@meyering.net>
64062
64063         * modules/d-type (License): Switch to LGPL.
64064
64065 2006-11-15  Bruno Haible  <bruno@clisp.org>
64066
64067         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
64068
64069 2006-11-15  Eric Blake  <ebb9@byu.net>
64070
64071         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
64072         the module dependency.
64073
64074 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64075             Bruno Haible  <bruno@clisp.org>
64076
64077         * gnulib-tool (func_create_testdir): Add license consistency check.
64078
64079 2006-11-15  Eric Blake  <ebb9@byu.net>
64080
64081         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
64082         random "(cached)" in configure output.
64083
64084 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64085
64086         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
64087         test for conforming inttypes.h is both announced and cached.
64088
64089         * MODULES.html.sh (seen_modules, seen_files): New variables.
64090         (func_module): Rewrite to use a few less gnulib-tool and sed
64091         invocations.  Avoid a couple of quadratic algorithms for ...
64092         (missed_modules, missed_files): ... these, with ...
64093         (func_append, func_tmpdir): ... these new functions, from
64094         gnulib-tool.  Analogously, install traps for cleanup.
64095
64096         * tests/test-gc.c (main): Remove unused variables.
64097         * tests/test-read-file.c: Include stdlib.h, for 'free'.
64098
64099 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
64100
64101         * modules/inttostr (License): Change to LGPL.
64102
64103 2006-11-14  Eric Blake  <ebb9@byu.net>
64104
64105         * modules/tempname (License): Change to LGPL.
64106
64107 2006-11-14  Eric Blake  <ebb9@byu.net>
64108
64109         * doc/functions.texi (Function Portability): *printf functions on
64110         Cygwin now understand all POSIX size specifiers.
64111
64112 2006-11-14  Bruno Haible  <bruno@clisp.org>
64113
64114         * modules/c-ctype (License): Change to LGPL.
64115
64116 2006-11-12  Bruno Haible  <bruno@clisp.org>
64117
64118         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
64119         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
64120         for GNOME libraries, for which the include files are installed in
64121         subdirectories of $prefix/include.
64122
64123 2006-11-12  Bruno Haible  <bruno@clisp.org>
64124
64125         * m4/lib-link.m4: Require at least autoconf-2.54.
64126         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
64127         name to underscores for the --with option.
64128
64129 2006-11-13  Bruno Haible  <bruno@clisp.org>
64130
64131         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
64132         the tests directory.
64133         Reported by Ralf Wildenhues.
64134
64135 2006-11-13  Bruno Haible  <bruno@clisp.org>
64136
64137         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
64138         (func_emit_initmacro_end): Undo the override here.
64139         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
64140         Works around the famous automake error in coreutils.
64141
64142 2006-11-13  Eric Blake  <ebb9@byu.net>
64143
64144         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
64145         element, not its node.
64146
64147 2006-11-12  Bruno Haible  <bruno@clisp.org>
64148
64149         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
64150         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
64151
64152 2006-11-12  Bruno Haible  <bruno@clisp.org>
64153
64154         * gnulib-tool: New option --local-symlink.
64155         (func_usage): Document it.
64156         (lsymbolic): New variable.
64157         (func_import, func_create_testdir): If --symlink was not specified,
64158         test whether --local-symlink was specified and the file comes from
64159         the local_gnulib_dir.
64160
64161 2006-11-12  Bruno Haible  <bruno@clisp.org>
64162
64163         * gnulib-tool (func_ln): New function.
64164         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
64165
64166 2006-11-12  Bruno Haible  <bruno@clisp.org>
64167
64168         Finish support for source files in subdirectories.
64169         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
64170         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
64171         AUTOMAKE_OPTIONS.
64172         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
64173
64174 2006-11-12  Bruno Haible  <bruno@clisp.org>
64175
64176         * gnulib-tool (func_get_automake_snippet): Synthesize also an
64177         EXTRA_lib_SOURCES augmentation.
64178         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
64179
64180 2006-11-12  Jim Meyering  <jim@meyering.net>
64181
64182         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
64183         file descriptors.  This also averts a failure on systems with
64184         native openat support when a traversed directory lacks "x" access.
64185         * lib/fts_.h: Include "i-ring.h"
64186         (struct FTS) [fts_fd_ring]: New member.
64187         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
64188         (FCHDIR): Add parentheses.
64189         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
64190         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
64191         When descending, rather than simply closing the previous
64192         fts_cwd_fd value, push that file descriptor onto the ring.
64193         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
64194         (fts_open): Initialize the new fd_ring member.
64195         (fts_close): Clear the ring.
64196         (fts_safe_changedir): When possible, use our new fd_ring to skip
64197         the diropen and fstat and dev/ino comparison that would normally
64198         accompany a virtual `chdir ("..")'.
64199
64200         * modules/fts (Depends-on): Add i-ring.
64201         * modules/i-ring: New module.
64202         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
64203         * m4/i-ring.m4: New file.
64204
64205 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64206
64207         * gnulib-tool (func_create_testdir): Fix replacement of
64208         `build-aux' in configure.ac.  Run autotools in gltests
64209         subdirectory.
64210         (func_create_testdir, func_create_megatestdir, test): There is
64211         no need for '--force' in most autotool invocations in a new
64212         tree.  Actually fail the whole test if any of the tools, or the
64213         configure or make stages fail.
64214
64215         Sync from Automake.
64216         * build-aux/gnupload: Revert last change.  Add pointer to upload
64217         instructions of the GNU Maintenance Instructions.
64218         Suggestion by Karl Berry.
64219
64220 2006-11-10  Jim Meyering  <jim@meyering.net>
64221
64222         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
64223
64224 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64225
64226         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
64227         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
64228         (bind_textdomain_codeset) [! ENABLE_NLS]:
64229         Evaluate all the arguments.  That way, callers get compatible behavior
64230         if the arguments have side effects.  Also, it avoids some GCC
64231         diagnostics in some cases; Joel E. Denny reported problems when Bison
64232         was configured with --enable-gcc-warnigs.
64233
64234 2006-11-10  Jim Meyering  <jim@meyering.net>
64235
64236         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
64237         relevant options in CFLAGS (like -O, -fno-inline) are taken into
64238         account.
64239
64240 2006-11-10  Jim Meyering  <jim@meyering.net>
64241
64242         * modules/inline: New file/module.
64243         * modules/xalloc (Files): Remove m4/inline.m4.
64244         (Depends-on): Add inline, instead.
64245         * modules/oset: Likewise.
64246         * modules/list: Likewise.
64247
64248 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64249
64250         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
64251         Problem reported by Matthew Woehlke.
64252
64253 2006-11-09  Bruno Haible  <bruno@clisp.org>
64254
64255         * lib/tempname.c (gen_tempname): Remove variant that invokes
64256         __gen_tempname.
64257         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
64258         __gen_tempname.
64259
64260 2006-11-08  Bruno Haible  <bruno@clisp.org>
64261
64262         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
64263         to 'yes' instead of 'cross-compiling'.
64264
64265 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
64266
64267         * lib/quotearg.h (quotearg_free): New decl.
64268         * lib/quotearg.c (quotearg_free): New function.
64269         (slot0, nslots, slotvec0, slotvec):
64270         Now file-scope so that quotearg_free can get at them.
64271
64272 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64273
64274         Sync from Automake.
64275         * build-aux/gnupload: Add missing 'gnu' to example URL.
64276         Report by Karl Berry.
64277
64278 2006-11-08  Bruno Haible  <bruno@clisp.org>
64279
64280         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
64281         Suggested by Paul Eggert.
64282
64283 2006-11-08  Jim Meyering  <jim@meyering.net>
64284
64285         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
64286         It's already included if !_LIBC.
64287         (fts_safe_changedir): Add a comment.
64288
64289 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
64290
64291         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
64292         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
64293         Matthew Woehlke.
64294
64295         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
64296         definitions up, to avoid colliding with change below.
64297         (static_inline) [HAVE_INLINE]: New macro.
64298         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
64299         Provide extern decls when !HAVE_INLINE.  Do not define unless
64300         static_inline is defined, either by us or by xmalloc.c.  Use
64301         static_inline rather than static inline.
64302         (XCALLOC): Optimize sizeof(T) = 1 case.
64303         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
64304
64305 2006-11-07  Bruno Haible  <bruno@clisp.org>
64306
64307         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
64308         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
64309         AC_C_INLINE.
64310         * modules/xalloc (Files): Add m4/inline.m4.
64311
64312 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64313
64314         * README: Fix typo.
64315         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
64316         (Miscellanous Notes): ...from this.
64317
64318 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
64319
64320         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
64321         Mention that offsetof should be used instead of sizeof.
64322         From Bruno Haible.
64323
64324 2006-11-07  Bruno Haible  <bruno@clisp.org>
64325
64326         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
64327
64328 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
64329
64330         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
64331         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
64332         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
64333         (gl_tree_add_before, gl_tree_add_after):
64334         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
64335         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
64336         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
64337         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
64338         (gl_linked_add_after, gl_linked_add_at): Likewise.
64339         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
64340         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
64341         (gl_tree_add_before, gl_tree_add_after): Likewise.
64342         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
64343         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
64344         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
64345
64346 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64347
64348         * lib/gl_oset.h: Use C comment style, not C++ comment style.
64349
64350 2006-11-06  Bruno Haible  <bruno@clisp.org>
64351
64352         * m4/inline.m4: New file.
64353         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
64354         * modules/list (Files): Add m4/inline.m4.
64355         * modules/oset (Files): Likewise.
64356
64357 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
64358
64359         * lib/idcache.c: Include <stddef.h>, for offsetof.
64360         (struct userid.name): Change from char * to a flexible array member.
64361         All uses changed.
64362         * modules/idcache (Depends-on): Add flexmember.
64363
64364         * MODULES.html.sh (Core language properties): New module flexmember.
64365         * modules/flexmember, m4/flexmember.m4: New files.
64366
64367         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
64368         inline functions that are identical with the old xnmalloc_inline,
64369         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
64370         that we can avoid some unnecessary integer multiplications and
64371         divisions in the common case where the element size is known at
64372         compile time.
64373         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
64374         needed.
64375         (xnboundedmalloc): Remove.
64376         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
64377         arguments, for consistency with rest of this header.
64378         (xcharalloc): Rewrite using XNMALLOC.
64379         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
64380         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
64381         versions have been moved to lib/xalloc.h and renamed to be the
64382         non-*_inline versions.
64383         (xmalloc, xrealloc): Implement without reference to the xnmalloc
64384         and xnrealloc functions, since those functions are now inline and
64385         now call us.
64386         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
64387         renaming described above.
64388         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
64389         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
64390         captures the dependency in AC_C_INLINE.
64391
64392         New module canonicalize-lgpl, proposed by Charles Wilson in
64393         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
64394         with a few small changes afterwards.
64395         * MODULES.html.sh (File system functions): New module
64396         canonicalize-lgpl.
64397         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
64398         and canonicalize_file_name.
64399         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
64400         * modules/canonicalize-lgpl: New files.
64401
64402 2006-11-05  Bruno Haible  <bruno@clisp.org>
64403
64404         * gnulib-tool (func_import, func_create_testdir): Create directories
64405         also for files in subdirectories of lib/.
64406
64407 2006-11-05  Bruno Haible  <bruno@clisp.org>
64408
64409         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
64410         ANSI C compliant.
64411
64412 2006-11-03  Bruno Haible  <bruno@clisp.org>
64413
64414         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
64415         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
64416         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
64417         (xnboundedmalloc): New inline function.
64418         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
64419         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
64420         xmalloc.
64421         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
64422         xmalloc.
64423         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
64424         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
64425         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
64426         xmalloc.
64427         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
64428         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
64429         xmalloc.
64430         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
64431         gl_tree_add_after): Use XMALLOC instead of xmalloc.
64432         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
64433         xmalloc.
64434         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
64435         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
64436         gl_tree_add_after): Use XMALLOC instead of xmalloc.
64437         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
64438         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
64439         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
64440         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
64441
64442 2006-11-03  Bruno Haible  <bruno@clisp.org>
64443
64444         * lib/c-ctype.h [C++]: Define functions without name mangling.
64445         * lib/fwriteerror.h [C++]: Likewise.
64446         * lib/gcd.h [C++]: Likewise.
64447         * lib/linebreak.h [C++]: Likewise.
64448
64449 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
64450
64451         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
64452         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
64453         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
64454         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
64455         Check for functions and headers just once.
64456         Check for declaration of canonicalize_file_name.
64457         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
64458
64459 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
64460
64461         * gnulib-tool (func_import): Fix typo in actioncmd.
64462
64463 2006-11-02  Bruno Haible  <bruno@clisp.org>
64464
64465         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
64466         newline sequence in the Makefile.am snippet as a space, like "make"
64467         does.
64468         Reported by Roger Persson <perrog@gmail.com>.
64469
64470 2006-11-01  Bruno Haible  <bruno@clisp.org>
64471
64472         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
64473         already declared in <string.h>.
64474         * lib/strcase.h (strncasecmp): Don't declare it if yes.
64475
64476 2006-11-01  Bruno Haible  <bruno@clisp.org>
64477
64478         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
64479         * lib/strcase.h: Include <string.h>.
64480         (strcasecmp): Define to rpl_strcasecmp here.
64481
64482 2006-11-01  Bruno Haible  <bruno@clisp.org>
64483
64484         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
64485
64486 2006-11-01  Eric Blake  <ebb9@byu.net>
64487
64488         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
64489
64490         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
64491
64492 2006-10-29  Bruno Haible  <bruno@clisp.org>
64493
64494         Make it compile in C++ mode.
64495         * lib/full-write.c (full_rw): Add a cast.
64496
64497 2006-11-01  Bruno Haible  <bruno@clisp.org>
64498
64499         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
64500         be POSIX compliant.
64501         Reported by Roger Persson <perrog@gmail.com>.
64502
64503 2006-11-01  Eric Blake  <ebb9@byu.net>
64504
64505         * lib/getopt_.h: Fix comments.
64506
64507 2006-10-31  Eric Blake  <ebb9@byu.net>
64508
64509         * modules/tmpdir (Depends-on): Add sys_stat.
64510         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
64511         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
64512         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
64513         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
64514         tempname.
64515
64516 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
64517
64518         Avoid some C++ diagnostics reported by Bruno Haible.
64519         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
64520         xmalloc.
64521         (quotearg_alloc): Use xcharalloc rather than xmalloc.
64522         (struct slotvec): Move to top level.
64523         (quotearg_n_options): Rewrite to avoid xmalloc.
64524         * lib/xalloc.h (xcharalloc): New function.
64525         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
64526         [defined __cplusplus]: Add function template that provides result
64527         type propagation.  This part of the change is from Bruno Haible.
64528
64529 2006-10-29  Bruno Haible  <bruno@clisp.org>
64530
64531         Make it compile in C++ mode.
64532         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
64533         * lib/strnlen1.c (strnlen1): Cast memchr result.
64534         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
64535         * lib/clean-temp.c (string_equals, string_hash): Add casts.
64536         (create_temp_dir): Rename local variable 'template'.
64537         (compile_csharp_using_sscli): Add cast.
64538         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
64539         * lib/findprog.c (find_in_path): Likewise.
64540         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
64541         * lib/wait-process.c (register_slave_subprocess): Likewise.
64542
64543 2006-10-22  Bruno Haible  <bruno@clisp.org>
64544
64545         * modules/tsearch: New file.
64546         * lib/tsearch.h: New file.
64547         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
64548         * m4/tsearch.m4: New file.
64549         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
64550
64551 2006-10-29  Eric Blake  <ebb9@byu.net>
64552
64553         * lib/arcfour.c: Assume config.h.
64554         * lib/arctwo.c: Likewise.
64555         * lib/base64.c: Likewise.
64556         * lib/check-version.c: Likewise.
64557         * lib/crc.c: Likewise.
64558         * lib/des.c: Likewise.
64559         * lib/gc-gnulib.c: Likewise.
64560         * lib/gc-libgcrypt.c: Likewise.
64561         * lib/gc-pbkdf2-sha1.c: Likewise.
64562         * lib/getaddrinfo.c: Likewise.
64563         * lib/getdelim.c: Likewise.
64564         * lib/getline.c: Likewise.
64565         * lib/hmac-md5.c: Likewise.
64566         * lib/hmac-sha1.c: Likewise.
64567         * lib/iconvme.c: Likewise.
64568         * lib/md2.c: Likewise.
64569         * lib/md4.c: Likewise.
64570         * lib/memxor.c: Likewise.
64571         * lib/read-file.c: Likewise.
64572         * lib/readline.c: Likewise.
64573         * lib/rijndael-alg-fst.c: Likewise.
64574         * lib/rijndael-api-fst.c: Likewise.
64575         * lib/xgetdomainname.c: Likewise.
64576
64577 2006-10-28  Eric Blake  <ebb9@byu.net>
64578
64579         * lib/xstrndup.c: Assume config.h.
64580
64581 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
64582
64583         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
64584         stat-macros.h is now for our own macros, whereas stat_h is for
64585         macros in the <sys/stat.h> name space.
64586         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
64587         (STAT_MACROS_H): Remove.
64588         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
64589         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
64590         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
64591         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
64592         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
64593         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
64594         Move these macros to ...
64595         * lib/stat_.h: here.  Don't include stat-macros.h.
64596         * lib/canonicalize.c: Don't include stat-macros.h.
64597         * lib/chown.c: Likewise.
64598         * lib/euidaccess.c: Likewise.
64599         * lib/file-type.c: Likewise.
64600         * lib/filemode.c: Likewise.
64601         * lib/glob.c: Likewise.
64602         * lib/isapipe.c: Likewise.
64603         * lib/lchown.c: Likewise.
64604         * lib/lstat.c: Likewise.
64605         * lib/mkdir-p.c: Likewise.
64606         * lib/rmdir.c: Likewise.
64607         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
64608         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
64609         unless mkdir isn't declared, to speed up 'configure'.
64610         Always create sys/stat.h, since it's unlikely any real sys/stat.h
64611         would define all the S_* symbols.
64612         * modules/canonicalize (Depends-on):
64613         Depend on sys_stat, not stat-macros.
64614         * modules/chown: Likewise.
64615         * modules/euidaccess: Likewise.
64616         * modules/filemode: Likewise.
64617         * modules/file-type: Likewise.
64618         * modules/glob: Likewise.
64619         * modules/isapipe: Likewise.
64620         * modules/lchown: Likewise.
64621         * modules/lstat: Likewise.
64622         * modules/mkancesdirs: Likewise.
64623         * modules/rmdir: Likewise.
64624         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
64625         * modules/modechange: Likewise.
64626         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
64627         (configure.ac): Remove gl_STAT_MACROS.
64628         * modules/sys_stat (Depends-on): Remove stat-macros.
64629
64630 2006-10-27  Bruno Haible  <bruno@clisp.org>
64631
64632         * m4/signed.m4: Remove file.
64633         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
64634         invocation.
64635         * modules/vasnprintf (Files): Remove m4/signed.m4.
64636
64637 2006-10-27  Bruno Haible  <bruno@clisp.org>
64638
64639         Update to GNU gettext 0.16.
64640         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
64641         m4/inttypes-h.m4, m4/signed.m4.
64642         * m4/gettext.m4: Update to GNU gettext 0.16.
64643         * m4/intl.m4: New file, from GNU gettext.
64644         * m4/intldir.m4: New file, from GNU gettext.
64645         * config/srclist.txt: Update
64646
64647 2006-10-27  Eric Blake  <ebb9@byu.net>
64648
64649         * MODULES.html.sh: Document tempname.
64650         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
64651         dependencies.
64652         (Files): Move lib/tempname.c...
64653         * modules/tempname: ...to this new module.
64654         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
64655         (gl_PREREQ_TEMPNAME): Move...
64656         * m4/tempname.m4: ...to this new file.
64657         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
64658         * modules/sys_stat (Depends-on): Add stat-macros.
64659         * lib/stat_.h (includes): Pick up stat macros.
64660         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
64661         if stat macros are broken.
64662         * lib/tempname.c (includes): No need to include "stat-macros.h".
64663         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
64664         (direxists, __path_search) [!_LIBC]: Don't compile these in
64665         gnulib; the tmpdir module covers that.
64666         * lib/tempname.h: New file.
64667
64668 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
64669
64670         * COPYING: Explain how gnulib-tool converts licence headers.
64671         Almost all wording by Eric Blake.
64672
64673 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
64674
64675         * lib/mbchar.h (is_basic_table): Make read-only.
64676         * lib/mbchar.c (is_basic_table): Likewise.
64677         Reported by John Darrington.
64678
64679 2006-10-25  Bruno Haible  <bruno@clisp.org>
64680
64681         * lib/progname.h (set_program_name): Undefine before defining.
64682
64683 2006-10-25  Bruno Haible  <bruno@clisp.org>
64684
64685         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
64686         false for non-gcc C++ compilers.
64687         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
64688
64689 2006-10-24  Bruno Haible  <bruno@clisp.org>
64690
64691         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
64692         iconv implementations like Irix iconv.
64693
64694 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64695
64696         * modules/vararrays: New file.
64697         * m4/vararrays.m4: New file, taken from diffutils.
64698         * MODULES.html.sh: New module vararrays.
64699
64700 2006-10-24  Karl Berry  <karl@gnu.org>
64701
64702         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
64703         Don't call GNU Unix.
64704
64705 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64706
64707         * users.txt: Add Libtool.
64708
64709         Sync from Libtool:
64710
64711         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64712
64713         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
64714         to gnulib's policy of including config.h unconditionally.
64715
64716 2006-10-24  Bruno Haible  <bruno@clisp.org>
64717
64718         * modules/wcwidth (Files): Add m4/wint_t.m4.
64719         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
64720         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
64721
64722 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64723
64724         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
64725         to pacify GCC with some -W flags enabled.  Problem reported by
64726         Bruno Haible.
64727
64728 2006-10-24  Jim Meyering  <jim@meyering.net>
64729
64730         * MODULES.html.sh: Remove uinttostr.  It's not a module.
64731         Reported by Karl Berry.
64732
64733 2006-10-23  Bruno Haible  <bruno@clisp.org>
64734
64735         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
64736
64737 2006-10-24  Bruno Haible  <bruno@clisp.org>
64738
64739         * lib/gl_list.h: Use C comment style, not C++ comment style.
64740
64741 2006-10-23  Eric Blake  <ebb9@byu.net>
64742
64743         * lib/getaddrinfo.c (includes): Add missing include.
64744
64745 2006-10-23  Bruno Haible  <bruno@clisp.org>
64746             Paul Eggert  <eggert@cs.ucla.edu>
64747
64748         Ability to rename obstack_free.
64749         * lib/obstack.h (__obstack_free): New macro. Declare instead of
64750         obstack_free.
64751         (obstack_free): Invoke the __obstack_free macro.
64752         * lib/obstack.c (obstack_free): Use __obstack_free macro.
64753
64754 2006-10-23  Bruno Haible  <bruno@clisp.org>
64755             Paul Eggert  <eggert@cs.ucla.edu>
64756
64757         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
64758         __argc, __argv from the declaration. (They are defined as macros on
64759         mingw.)
64760
64761 2006-10-22  Bruno Haible  <bruno@clisp.org>
64762
64763         * doc/gnulib-intro.texi: New file.
64764         * doc/gnulib.texi: Include it.
64765
64766 2006-10-21  Bruno Haible  <bruno@clisp.org>
64767
64768         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
64769         "Introduction", "Miscellanous Notes", "Particular Modules".
64770
64771 2006-10-21  Bruno Haible  <bruno@clisp.org>
64772
64773         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64774         Change mostlyclean-local rule to avoid sh syntax error from bash
64775         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
64776
64777 2006-10-23  Jim Meyering  <jim@meyering.net>
64778
64779         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
64780         in place of snprintf.
64781
64782         * modules/inttostr (Files): Add lib/uinttostr.c.
64783         * lib/uinttostr.c (inttostr): New file/function.
64784         * lib/inttostr.h (uinttostr): Declare.
64785         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
64786         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
64787         Add uinttostr.
64788         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
64789
64790 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
64791
64792         * lib/canonicalize.c (ELOOP): Define if not already defined.
64793         Problem reported by Bruno Haible in
64794         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
64795
64796 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
64797
64798         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
64799         Problem reported by Perry Smith and Ville Laurikari.
64800
64801         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
64802         uses.
64803
64804 2006-10-19  Bruno Haible  <bruno@clisp.org>
64805
64806         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
64807         for mingw.
64808
64809 2006-10-19  Bruno Haible  <bruno@clisp.org>
64810
64811         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
64812         Needed for mingw.
64813
64814 2006-10-19  Bruno Haible  <bruno@clisp.org>
64815
64816         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
64817
64818 2006-10-19  Bruno Haible  <bruno@clisp.org>
64819
64820         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
64821         it.
64822
64823 2006-10-19  Bruno Haible  <bruno@clisp.org>
64824
64825         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
64826         invocation.
64827
64828 2006-10-19  Bruno Haible  <bruno@clisp.org>
64829
64830         * gnulib-tool (func_create_testdir): Don't include ftruncate and
64831         mountlist by default.
64832
64833 2006-10-16  Bruno Haible  <bruno@clisp.org>
64834
64835         * lib/c-strstr.c: Include c-strstr.h.
64836
64837 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
64838
64839         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
64840         in a slash.
64841
64842 2006-10-18  Bruno Haible  <bruno@clisp.org>
64843
64844         * lib/lock.h [C++]: Wrap definitions in extern "C".
64845
64846 2006-10-18  Bruno Haible  <bruno@clisp.org>
64847
64848         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
64849         gl_LIBOBJS list.
64850
64851 2006-10-18  Bruno Haible  <bruno@clisp.org>
64852
64853         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
64854
64855 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
64856
64857         * lib/xstrtol.h: Include gettext.h.
64858         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
64859         Problem reported by Eric Blake.
64860         * modules/xstrtol (Depends-on): Add gettext-h.
64861
64862 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
64863
64864         * lib/strftime.c (advance): New macro.
64865         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
64866         incomplete type, so you can't add 0 to it.  Problem and patch
64867         reported by Eelco Dolstra for dietlibc.
64868
64869 2006-10-18  Jim Meyering  <jim@meyering.net>
64870
64871         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
64872         type for a local, and rename it: s/up/user_proc/.
64873
64874 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
64875
64876         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
64877         READ_UTMP_USER_PROCESS.
64878         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
64879
64880 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64881
64882         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
64883         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
64884
64885 2006-10-17  Eric Blake  <ebb9@byu.net>
64886
64887         * lib/sigprocmask.c (sigprocmask): Fix typo.
64888
64889         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
64890
64891         * modules/clean-temp (Makefile.am): Don't add to make output...
64892         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
64893         config.h.
64894
64895 2006-10-17  Bruno Haible  <bruno@clisp.org>
64896
64897         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
64898         differently if DEFAULT_TEXT_DOMAIN is set.
64899
64900 2006-10-16  Bruno Haible  <bruno@clisp.org>
64901
64902         * lib/clean-temp.c: Include fwriteerror.h.
64903
64904 2006-10-16  Bruno Haible  <bruno@clisp.org>
64905
64906         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
64907
64908 2006-10-16  Bruno Haible  <bruno@clisp.org>
64909
64910         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
64911         * lib/sigprocmask.h: Include <sys/types.h>.
64912         (sigset_t): Use the system's definition if present.
64913
64914 2006-10-17  Eric Blake  <ebb9@byu.net>
64915
64916         * lib/xvasprintf.c (includes): Assume config.h.
64917         * lib/xasprintf.c (includes): Likewise.
64918
64919 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64920
64921         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
64922         at least as wide as intmax_t.
64923
64924 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
64925
64926         (Imported from Automake.)
64927         * build-aux/gnupload: Update to version 1.1 of directive file.
64928
64929 2006-10-16  Eric Blake  <ebb9@byu.net>
64930
64931         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
64932         match Automake 1.10a.
64933
64934 2006-10-14  Bruno Haible  <bruno@clisp.org>
64935
64936         * modules/sigprocmask: New file.
64937         * lib/sigprocmask.h: New file.
64938         * lib/sigprocmask.c: New file.
64939         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
64940         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
64941         request sigprocmask.o.
64942         (gl_PREREQ_SIGPROCMASK): New macro.
64943         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
64944         (Depends-on): Add sigprocmask.
64945         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
64946         gt_SIGNALBLOCKING. Test for 'raise' only once.
64947         * lib/fatal-signal.c: Include sigprocmask.h.
64948         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
64949         unblock_fatal_signals): Define always.
64950         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64951         sigprocmask.
64952
64953 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64954
64955         Sync from Automake.
64956         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
64957         which incorrectly sets the mode of an existing destination
64958         directory.  In some cases the unpatched install-sh could do the
64959         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
64960         system.  We hope this is rare in practice, but it's clearly worth
64961         fixing.  Problem reported by Alex Unleashed in
64962         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
64963         Also, don't bother to check for -m bugs unless we're using -m;
64964         suggested by Stepan Kasal.
64965
64966 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64967
64968         Sync from Automake.
64969         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
64970         `-c' flag, so they appear at the same position as in %FASTDEP%
64971         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
64972         which ignores unknown options only after the first non-option.
64973         Bug report against M4 by Nelson H. F. Beebe.
64974
64975 2006-10-13  Jim Meyering  <jim@meyering.net>
64976
64977         Fix a bug in yesterday's change.
64978         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
64979         p->fts_statp->st_dev would be used uninitialized.
64980         Ensures that we always call fts_stat on the very first entry.
64981         Miklos Szeredi reported that find -xdev stopped working.
64982
64983 2006-10-12  Bruno Haible  <bruno@clisp.org>
64984
64985         * gnulib-tool (func_get_automake_snippet): Append an automatically
64986         computed EXTRA_DIST augmentation.
64987         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
64988         * modules/alloca-opt (Makefile.am): Likewise.
64989         * modules/allocsa (Makefile.am): Likewise.
64990         * modules/arcfour (Makefile.am): Likewise.
64991         * modules/arctwo (Makefile.am): Likewise.
64992         * modules/argmatch (Makefile.am): Likewise.
64993         * modules/argz (Makefile.am): Likewise.
64994         * modules/atexit (Makefile.am): Likewise.
64995         * modules/backupfile (Makefile.am): Likewise.
64996         * modules/byteswap (Makefile.am): Likewise.
64997         * modules/c-strtod (Makefile.am): Likewise.
64998         * modules/c-strtold (Makefile.am): Likewise.
64999         * modules/calloc (Makefile.am): Likewise.
65000         * modules/canon-host (Makefile.am): Likewise.
65001         * modules/canonicalize (Makefile.am): Likewise.
65002         * modules/chdir-long (Makefile.am): Likewise.
65003         * modules/chdir-safer (Makefile.am): Likewise.
65004         * modules/check-version (Makefile.am): Likewise.
65005         * modules/chown (Makefile.am): Likewise.
65006         * modules/cloexec (Makefile.am): Likewise.
65007         * modules/close-stream (Makefile.am): Likewise.
65008         * modules/closeout (Makefile.am): Likewise.
65009         * modules/crc (Makefile.am): Likewise.
65010         * modules/csharpexec (Makefile.am): Likewise.
65011         * modules/cycle-check (Makefile.am): Likewise.
65012         * modules/des (Makefile.am): Likewise.
65013         * modules/dev-ino (Makefile.am): Likewise.
65014         * modules/dirfd (Makefile.am): Likewise.
65015         * modules/dirname (Makefile.am): Likewise.
65016         * modules/dup2 (Makefile.am): Likewise.
65017         * modules/eealloc (Makefile.am): Likewise.
65018         * modules/error (Makefile.am): Likewise.
65019         * modules/euidaccess (Makefile.am): Likewise.
65020         * modules/exclude (Makefile.am): Likewise.
65021         * modules/exitfail (Makefile.am): Likewise.
65022         * modules/fcntl-safer (Makefile.am): Likewise.
65023         * modules/fcntl (Makefile.am): Likewise.
65024         * modules/file-type (Makefile.am): Likewise.
65025         * modules/fileblocks (Makefile.am): Likewise.
65026         * modules/filemode (Makefile.am): Likewise.
65027         * modules/filenamecat (Makefile.am): Likewise.
65028         * modules/fnmatch (Makefile.am): Likewise.
65029         * modules/fopen-safer (Makefile.am): Likewise.
65030         * modules/fpending (Makefile.am): Likewise.
65031         * modules/fprintftime (Makefile.am): Likewise.
65032         * modules/free (Makefile.am): Likewise.
65033         * modules/fsusage (Makefile.am): Likewise.
65034         * modules/ftruncate (Makefile.am): Likewise.
65035         * modules/fts (Makefile.am): Likewise.
65036         * modules/gc-arcfour (Makefile.am): Likewise.
65037         * modules/gc-des (Makefile.am): Likewise.
65038         * modules/gc-hmac-md5 (Makefile.am): Likewise.
65039         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
65040         * modules/gc-md4 (Makefile.am): Likewise.
65041         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
65042         * modules/gc-sha1 (Makefile.am): Likewise.
65043         * modules/gc (Makefile.am): Likewise.
65044         * modules/getaddrinfo (Makefile.am): Likewise.
65045         * modules/getcwd (Makefile.am): Likewise.
65046         * modules/getdelim (Makefile.am): Likewise.
65047         * modules/getdomainname (Makefile.am): Likewise.
65048         * modules/getgroups (Makefile.am): Likewise.
65049         * modules/gethostname (Makefile.am): Likewise.
65050         * modules/gethrxtime (Makefile.am): Likewise.
65051         * modules/getline (Makefile.am): Likewise.
65052         * modules/getloadavg (Makefile.am): Likewise.
65053         * modules/getlogin_r (Makefile.am): Likewise.
65054         * modules/getndelim2 (Makefile.am): Likewise.
65055         * modules/getopt (Makefile.am): Likewise.
65056         * modules/getpagesize (Makefile.am): Likewise.
65057         * modules/getpass-gnu (Makefile.am): Likewise.
65058         * modules/getpass (Makefile.am): Likewise.
65059         * modules/getsubopt (Makefile.am): Likewise.
65060         * modules/gettime (Makefile.am): Likewise.
65061         * modules/gettimeofday (Makefile.am): Likewise.
65062         * modules/getugroups (Makefile.am): Likewise.
65063         * modules/getusershell (Makefile.am): Likewise.
65064         * modules/glob (Makefile.am): Likewise.
65065         * modules/group-member (Makefile.am): Likewise.
65066         * modules/hard-locale (Makefile.am): Likewise.
65067         * modules/hash (Makefile.am): Likewise.
65068         * modules/hmac-md5 (Makefile.am): Likewise.
65069         * modules/hmac-sha1 (Makefile.am): Likewise.
65070         * modules/human (Makefile.am): Likewise.
65071         * modules/idcache (Makefile.am): Likewise.
65072         * modules/imaxabs (Makefile.am): Likewise.
65073         * modules/imaxdiv (Makefile.am): Likewise.
65074         * modules/inet_ntop (Makefile.am): Likewise.
65075         * modules/inet_pton (Makefile.am): Likewise.
65076         * modules/intprops (Makefile.am): Likewise.
65077         * modules/inttostr (Makefile.am): Likewise.
65078         * modules/inttypes (Makefile.am): Likewise.
65079         * modules/isapipe (Makefile.am): Likewise.
65080         * modules/javaversion (Makefile.am): Likewise.
65081         * modules/lchmod (Makefile.am): Likewise.
65082         * modules/lchown (Makefile.am): Likewise.
65083         * modules/localcharset (Makefile.am): Likewise.
65084         * modules/long-options (Makefile.am): Likewise.
65085         * modules/lstat (Makefile.am): Likewise.
65086         * modules/malloc (Makefile.am): Likewise.
65087         * modules/mathl (Makefile.am): Likewise.
65088         * modules/mbchar (Makefile.am): Likewise.
65089         * modules/md2 (Makefile.am): Likewise.
65090         * modules/md4 (Makefile.am): Likewise.
65091         * modules/md5 (Makefile.am): Likewise.
65092         * modules/memcasecmp (Makefile.am): Likewise.
65093         * modules/memchr (Makefile.am): Likewise.
65094         * modules/memcmp (Makefile.am): Likewise.
65095         * modules/memcoll (Makefile.am): Likewise.
65096         * modules/memcpy (Makefile.am): Likewise.
65097         * modules/memmem (Makefile.am): Likewise.
65098         * modules/memmove (Makefile.am): Likewise.
65099         * modules/mempcpy (Makefile.am): Likewise.
65100         * modules/memrchr (Makefile.am): Likewise.
65101         * modules/memset (Makefile.am): Likewise.
65102         * modules/memxor (Makefile.am): Likewise.
65103         * modules/mkancesdirs (Makefile.am): Likewise.
65104         * modules/mkdir-p (Makefile.am): Likewise.
65105         * modules/mkdir (Makefile.am): Likewise.
65106         * modules/mkdtemp (Makefile.am): Likewise.
65107         * modules/mkstemp (Makefile.am): Likewise.
65108         * modules/mktime (Makefile.am): Likewise.
65109         * modules/modechange (Makefile.am): Likewise.
65110         * modules/mountlist (Makefile.am): Likewise.
65111         * modules/nanosleep (Makefile.am): Likewise.
65112         * modules/obstack (Makefile.am): Likewise.
65113         * modules/openat (Makefile.am): Likewise.
65114         * modules/pagealign_alloc (Makefile.am): Likewise.
65115         * modules/pathmax (Makefile.am): Likewise.
65116         * modules/physmem (Makefile.am): Likewise.
65117         * modules/poll (Makefile.am): Likewise.
65118         * modules/posixtm (Makefile.am): Likewise.
65119         * modules/posixver (Makefile.am): Likewise.
65120         * modules/putenv (Makefile.am): Likewise.
65121         * modules/quote (Makefile.am): Likewise.
65122         * modules/quotearg (Makefile.am): Likewise.
65123         * modules/raise (Makefile.am): Likewise.
65124         * modules/read-file (Makefile.am): Likewise.
65125         * modules/readline (Makefile.am): Likewise.
65126         * modules/readlink (Makefile.am): Likewise.
65127         * modules/readtokens (Makefile.am): Likewise.
65128         * modules/readutmp (Makefile.am): Likewise.
65129         * modules/realloc (Makefile.am): Likewise.
65130         * modules/regex (Makefile.am): Likewise.
65131         * modules/rename-dest-slash (Makefile.am): Likewise.
65132         * modules/rename (Makefile.am): Likewise.
65133         * modules/rijndael (Makefile.am): Likewise.
65134         * modules/rmdir (Makefile.am): Likewise.
65135         * modules/rpmatch (Makefile.am): Likewise.
65136         * modules/safe-read (Makefile.am): Likewise.
65137         * modules/safe-write (Makefile.am): Likewise.
65138         * modules/same-inode (Makefile.am): Likewise.
65139         * modules/same (Makefile.am): Likewise.
65140         * modules/save-cwd (Makefile.am): Likewise.
65141         * modules/savedir (Makefile.am): Likewise.
65142         * modules/setenv (Makefile.am): Likewise.
65143         * modules/settime (Makefile.am): Likewise.
65144         * modules/sha1 (Makefile.am): Likewise.
65145         * modules/sig2str (Makefile.am): Likewise.
65146         * modules/snprintf (Makefile.am): Likewise.
65147         * modules/stat-macros (Makefile.am): Likewise.
65148         * modules/stat-time (Makefile.am): Likewise.
65149         * modules/stdbool (Makefile.am): Likewise.
65150         * modules/stdint (Makefile.am): Likewise.
65151         * modules/stdlib-safer (Makefile.am): Likewise.
65152         * modules/stpcpy (Makefile.am): Likewise.
65153         * modules/stpncpy (Makefile.am): Likewise.
65154         * modules/strcase (Makefile.am): Likewise.
65155         * modules/strcasestr (Makefile.am): Likewise.
65156         * modules/strchrnul (Makefile.am): Likewise.
65157         * modules/strcspn (Makefile.am): Likewise.
65158         * modules/strdup (Makefile.am): Likewise.
65159         * modules/strerror (Makefile.am): Likewise.
65160         * modules/strftime (Makefile.am): Likewise.
65161         * modules/strndup (Makefile.am): Likewise.
65162         * modules/strnlen (Makefile.am): Likewise.
65163         * modules/strpbrk (Makefile.am): Likewise.
65164         * modules/strsep (Makefile.am): Likewise.
65165         * modules/strstr (Makefile.am): Likewise.
65166         * modules/strtod (Makefile.am): Likewise.
65167         * modules/strtoimax (Makefile.am): Likewise.
65168         * modules/strtok_r (Makefile.am): Likewise.
65169         * modules/strtol (Makefile.am): Likewise.
65170         * modules/strtoll (Makefile.am): Likewise.
65171         * modules/strtoul (Makefile.am): Likewise.
65172         * modules/strtoull (Makefile.am): Likewise.
65173         * modules/strtoumax (Makefile.am): Likewise.
65174         * modules/strverscmp (Makefile.am): Likewise.
65175         * modules/sys_socket (Makefile.am): Likewise.
65176         * modules/sys_stat (Makefile.am): Likewise.
65177         * modules/sysexits (Makefile.am): Likewise.
65178         * modules/time_r (Makefile.am): Likewise.
65179         * modules/timegm (Makefile.am): Likewise.
65180         * modules/timespec (Makefile.am): Likewise.
65181         * modules/tmpfile-safer (Makefile.am): Likewise.
65182         * modules/trim (Makefile.am): Likewise.
65183         * modules/unistd-safer (Makefile.am): Likewise.
65184         * modules/unlinkdir (Makefile.am): Likewise.
65185         * modules/unlocked-io (Makefile.am): Likewise.
65186         * modules/userspec (Makefile.am): Likewise.
65187         * modules/utime (Makefile.am): Likewise.
65188         * modules/utimecmp (Makefile.am): Likewise.
65189         * modules/utimens (Makefile.am): Likewise.
65190         * modules/vasnprintf (Makefile.am): Likewise.
65191         * modules/vasprintf (Makefile.am): Likewise.
65192         * modules/vsnprintf (Makefile.am): Likewise.
65193         * modules/xalloc (Makefile.am): Likewise.
65194         * modules/xgetcwd (Makefile.am): Likewise.
65195         * modules/xnanosleep (Makefile.am): Likewise.
65196         * modules/xreadlink (Makefile.am): Likewise.
65197         * modules/xstrtod (Makefile.am): Likewise.
65198         * modules/xstrtol (Makefile.am): Likewise.
65199         * modules/xstrtold (Makefile.am): Likewise.
65200         * modules/yesno (Makefile.am): Likewise.
65201         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
65202
65203 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65204
65205         * modules/error (Makefile.am): Distribute files through
65206         EXTRA_DIST, not lib_SOURCES.
65207
65208 2006-10-12  Eric Blake  <ebb9@byu.net>
65209
65210         * modules/error (Makefile.am): Distribute files in /lib.
65211         * modules/obstack (Makefile.am): Likewise.
65212
65213 2006-10-12  Bruno Haible  <bruno@clisp.org>
65214
65215         * modules/acl (Makefile.am): Distribute all files in lib/ through
65216         EXTRA_DIST.
65217         * modules/arcfour (Makefile.am): Likewise.
65218         * modules/arctwo (Makefile.am): Likewise.
65219         * modules/argmatch (Makefile.am): Likewise.
65220         * modules/argz (Makefile.am): Likewise.
65221         * modules/atexit (Makefile.am): Likewise.
65222         * modules/backupfile (Makefile.am): Likewise.
65223         * modules/c-strtod (Makefile.am): Likewise.
65224         * modules/c-strtold (Makefile.am): Likewise.
65225         * modules/calloc (Makefile.am): Likewise.
65226         * modules/canon-host (Makefile.am): Likewise.
65227         * modules/canonicalize (Makefile.am): Likewise.
65228         * modules/chdir-long (Makefile.am): Likewise.
65229         * modules/chdir-safer (Makefile.am): Likewise.
65230         * modules/check-version (Makefile.am): Likewise.
65231         * modules/chown (Makefile.am): Likewise.
65232         * modules/cloexec (Makefile.am): Likewise.
65233         * modules/close-stream (Makefile.am): Likewise.
65234         * modules/closeout (Makefile.am): Likewise.
65235         * modules/crc (Makefile.am): Likewise.
65236         * modules/cycle-check (Makefile.am): Likewise.
65237         * modules/des (Makefile.am): Likewise.
65238         * modules/dirfd (Makefile.am): Likewise.
65239         * modules/dirname (Makefile.am): Likewise.
65240         * modules/dup2 (Makefile.am): Likewise.
65241         * modules/euidaccess (Makefile.am): Likewise.
65242         * modules/exclude (Makefile.am): Likewise.
65243         * modules/exitfail (Makefile.am): Likewise.
65244         * modules/fcntl-safer (Makefile.am): Likewise.
65245         * modules/file-type (Makefile.am): Likewise.
65246         * modules/fileblocks (Makefile.am): Likewise.
65247         * modules/filemode (Makefile.am): Likewise.
65248         * modules/filenamecat (Makefile.am): Likewise.
65249         * modules/fnmatch (Makefile.am): Likewise.
65250         * modules/fopen-safer (Makefile.am): Likewise.
65251         * modules/fpending (Makefile.am): Likewise.
65252         * modules/fprintftime (Makefile.am): Likewise.
65253         * modules/free (Makefile.am): Likewise.
65254         * modules/fsusage (Makefile.am): Likewise.
65255         * modules/ftruncate (Makefile.am): Likewise.
65256         * modules/fts (Makefile.am): Likewise.
65257         * modules/gc (Makefile.am): Likewise.
65258         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
65259         * modules/getaddrinfo (Makefile.am): Likewise.
65260         * modules/getcwd (Makefile.am): Likewise.
65261         * modules/getdelim (Makefile.am): Likewise.
65262         * modules/getdomainname (Makefile.am): Likewise.
65263         * modules/getgroups (Makefile.am): Likewise.
65264         * modules/gethostname (Makefile.am): Likewise.
65265         * modules/gethrxtime (Makefile.am): Likewise.
65266         * modules/getline (Makefile.am): Likewise.
65267         * modules/getloadavg (Makefile.am): Likewise.
65268         * modules/getlogin_r (Makefile.am): Likewise.
65269         * modules/getopt (Makefile.am): Likewise.
65270         * modules/getpass (Makefile.am): Likewise.
65271         * modules/getpass-gnu (Makefile.am): Likewise.
65272         * modules/getsubopt (Makefile.am): Likewise.
65273         * modules/gettime (Makefile.am): Likewise.
65274         * modules/gettimeofday (Makefile.am): Likewise.
65275         * modules/getugroups (Makefile.am): Likewise.
65276         * modules/getusershell (Makefile.am): Likewise.
65277         * modules/glob (Makefile.am): Likewise.
65278         * modules/group-member (Makefile.am): Likewise.
65279         * modules/hard-locale (Makefile.am): Likewise.
65280         * modules/hash (Makefile.am): Likewise.
65281         * modules/hmac-md5 (Makefile.am): Likewise.
65282         * modules/hmac-sha1 (Makefile.am): Likewise.
65283         * modules/human (Makefile.am): Likewise.
65284         * modules/idcache (Makefile.am): Likewise.
65285         * modules/imaxabs (Makefile.am): Likewise.
65286         * modules/imaxdiv (Makefile.am): Likewise.
65287         * modules/inet_ntop (Makefile.am): Likewise.
65288         * modules/inet_pton (Makefile.am): Likewise.
65289         * modules/inttostr (Makefile.am): Likewise.
65290         * modules/isapipe (Makefile.am): Likewise.
65291         * modules/lchown (Makefile.am): Likewise.
65292         * modules/long-options (Makefile.am): Likewise.
65293         * modules/lstat (Makefile.am): Likewise.
65294         * modules/malloc (Makefile.am): Likewise.
65295         * modules/mathl (Makefile.am): Likewise.
65296         * modules/mbchar (Makefile.am): Likewise.
65297         * modules/md2 (Makefile.am): Likewise.
65298         * modules/md4 (Makefile.am): Likewise.
65299         * modules/md5 (Makefile.am): Likewise.
65300         * modules/memcasecmp (Makefile.am): Likewise.
65301         * modules/memchr (Makefile.am): Likewise.
65302         * modules/memcmp (Makefile.am): Likewise.
65303         * modules/memcoll (Makefile.am): Likewise.
65304         * modules/memcpy (Makefile.am): Likewise.
65305         * modules/memmem (Makefile.am): Likewise.
65306         * modules/memmove (Makefile.am): Likewise.
65307         * modules/mempcpy (Makefile.am): Likewise.
65308         * modules/memrchr (Makefile.am): Likewise.
65309         * modules/memset (Makefile.am): Likewise.
65310         * modules/memxor (Makefile.am): Likewise.
65311         * modules/mkancesdirs (Makefile.am): Likewise.
65312         * modules/mkdir (Makefile.am): Likewise.
65313         * modules/mkdir-p (Makefile.am): Likewise.
65314         * modules/mkdtemp (Makefile.am): Likewise.
65315         * modules/mkstemp (Makefile.am): Likewise.
65316         * modules/mktime (Makefile.am): Likewise.
65317         * modules/modechange (Makefile.am): Likewise.
65318         * modules/mountlist (Makefile.am): Likewise.
65319         * modules/nanosleep (Makefile.am): Likewise.
65320         * modules/openat (Makefile.am): Likewise.
65321         * modules/pagealign_alloc (Makefile.am): Likewise.
65322         * modules/physmem (Makefile.am): Likewise.
65323         * modules/poll (Makefile.am): Likewise.
65324         * modules/posixtm (Makefile.am): Likewise.
65325         * modules/posixver (Makefile.am): Likewise.
65326         * modules/putenv (Makefile.am): Likewise.
65327         * modules/quote (Makefile.am): Likewise.
65328         * modules/quotearg (Makefile.am): Likewise.
65329         * modules/raise (Makefile.am): Likewise.
65330         * modules/read-file (Makefile.am): Likewise.
65331         * modules/readline (Makefile.am): Likewise.
65332         * modules/readlink (Makefile.am): Likewise.
65333         * modules/readtokens (Makefile.am): Likewise.
65334         * modules/readutmp (Makefile.am): Likewise.
65335         * modules/realloc (Makefile.am): Likewise.
65336         * modules/regex (Makefile.am): Likewise.
65337         * modules/rename (Makefile.am): Likewise.
65338         * modules/rename-dest-slash (Makefile.am): Likewise.
65339         * modules/rijndael (Makefile.am): Likewise.
65340         * modules/rmdir (Makefile.am): Likewise.
65341         * modules/rpmatch (Makefile.am): Likewise.
65342         * modules/safe-read (Makefile.am): Likewise.
65343         * modules/safe-write (Makefile.am): Likewise.
65344         * modules/same (Makefile.am): Likewise.
65345         * modules/save-cwd (Makefile.am): Likewise.
65346         * modules/savedir (Makefile.am): Likewise.
65347         * modules/setenv (Makefile.am): Likewise.
65348         * modules/settime (Makefile.am): Likewise.
65349         * modules/sha1 (Makefile.am): Likewise.
65350         * modules/sig2str (Makefile.am): Likewise.
65351         * modules/snprintf (Makefile.am): Likewise.
65352         * modules/stdlib-safer (Makefile.am): Likewise.
65353         * modules/stpcpy (Makefile.am): Likewise.
65354         * modules/stpncpy (Makefile.am): Likewise.
65355         * modules/strcase (Makefile.am): Likewise.
65356         * modules/strcasestr (Makefile.am): Likewise.
65357         * modules/strchrnul (Makefile.am): Likewise.
65358         * modules/strcspn (Makefile.am): Likewise.
65359         * modules/strdup (Makefile.am): Likewise.
65360         * modules/strerror (Makefile.am): Likewise.
65361         * modules/strftime (Makefile.am): Likewise.
65362         * modules/strndup (Makefile.am): Likewise.
65363         * modules/strnlen (Makefile.am): Likewise.
65364         * modules/strpbrk (Makefile.am): Likewise.
65365         * modules/strsep (Makefile.am): Likewise.
65366         * modules/strstr (Makefile.am): Likewise.
65367         * modules/strtod (Makefile.am): Likewise.
65368         * modules/strtoimax (Makefile.am): Likewise.
65369         * modules/strtok_r (Makefile.am): Likewise.
65370         * modules/strtol (Makefile.am): Likewise.
65371         * modules/strtoll (Makefile.am): Likewise.
65372         * modules/strtoul (Makefile.am): Likewise.
65373         * modules/strtoull (Makefile.am): Likewise.
65374         * modules/strtoumax (Makefile.am): Likewise.
65375         * modules/strverscmp (Makefile.am): Likewise.
65376         * modules/time_r (Makefile.am): Likewise.
65377         * modules/timegm (Makefile.am): Likewise.
65378         * modules/tmpfile-safer (Makefile.am): Likewise.
65379         * modules/unistd-safer (Makefile.am): Likewise.
65380         * modules/unlinkdir (Makefile.am): Likewise.
65381         * modules/userspec (Makefile.am): Likewise.
65382         * modules/utime (Makefile.am): Likewise.
65383         * modules/utimecmp (Makefile.am): Likewise.
65384         * modules/utimens (Makefile.am): Likewise.
65385         * modules/vasnprintf (Makefile.am): Likewise.
65386         * modules/vasprintf (Makefile.am): Likewise.
65387         * modules/vsnprintf (Makefile.am): Likewise.
65388         * modules/xalloc (Makefile.am): Likewise.
65389         * modules/xgetcwd (Makefile.am): Likewise.
65390         * modules/xnanosleep (Makefile.am): Likewise.
65391         * modules/xreadlink (Makefile.am): Likewise.
65392         * modules/xstrtod (Makefile.am): Likewise.
65393         * modules/xstrtol (Makefile.am): Likewise.
65394         * modules/xstrtold (Makefile.am): Likewise.
65395         * modules/yesno (Makefile.am): Likewise.
65396
65397 2006-10-12  Jim Meyering  <jim@meyering.net>
65398
65399         * m4/getloadavg.m4: Revert the change below.
65400
65401         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
65402         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
65403         fail with a symlink, which is what coreutils' ./bootstrap now
65404         creates by default.
65405
65406 2006-10-12  Bruno Haible  <bruno@clisp.org>
65407
65408         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
65409         mingw.
65410         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
65411         MSVC and mingw explicitly.
65412
65413 2006-10-11  Simon Josefsson  <jas@extundo.com>
65414             Bruno Haible  <bruno@clisp.org>
65415
65416         Add support for multiple gnulib-tool invocations in the scope of a
65417         single configure.ac file.
65418         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
65419         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
65420         with the same contents as the _LIBADD variable.
65421         (func_emit_initmacro_start, func_emit_initmacro_end,
65422         func_emit_initmacro_done): New functions.
65423         (func_import, func_create_testdir): Invoke them. Allow the identifiers
65424         gl_LIBOBJS and gl_LTLIBOBJS.
65425
65426 2006-10-11  Bruno Haible  <bruno@clisp.org>
65427
65428         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
65429         (func_create_testdir): Don't create po/Makefile.am, don't invoke
65430         autoreconf. Instead, invoke autopoint explicitly but move back the
65431         *.m4 files from gnulib.
65432
65433 2006-10-11  Bruno Haible  <bruno@clisp.org>
65434
65435         * gnulib-tool (func_usage): Make module names after --create-testdir
65436         optional.
65437         (func_create_testdir): If no module was specified, use nearly all
65438         modules.
65439
65440 2006-10-12  Jim Meyering  <jim@meyering.net>
65441
65442         Big performance improvement for fts-based tools that use FTS_NOSTAT.
65443         Avoid spurious inode-mismatch problems on non-POSIX file systems.
65444         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
65445         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
65446         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
65447         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
65448         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
65449         (fts_set_stat_required): New function.
65450         (fts_open): Defer the calls to fts_stat, if possible or requested.
65451         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
65452         into fts_stat itself.
65453         (fts_read): Perform any required (deferred) fts_stat call.
65454         (fts_build): Likewise, for the directory we're about to open and read.
65455         In the readdir loop, carefully decide whether each entry will require
65456         an eventual call to fts_stat, using dirent.d_type info if available.
65457         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
65458         a command line argument into this function.  Update all callers.
65459         Map a return value of FTS_DOT to FTS_D for a command line argument.
65460         * modules/fts (Depends-on): Add d-type.  Alphabetize.
65461         Thanks to Miklos Szeredi for his tenacity and for the initial
65462         bug report about "find" failing on a FUSE-based file system.
65463
65464         * lib/fts.c (fts_open): Use consistent indentation.
65465
65466 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65467
65468         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
65469         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
65470         reported by Jim Meyering.  All uses of cache variables renamed
65471         to match Autoconf's.
65472         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
65473         the other one.
65474
65475         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
65476         Fix misspelling in diagnostic.
65477
65478 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
65479
65480         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
65481         defined.  Problem reported by Matthew Woehlke.
65482
65483         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
65484         Add support for Tandem NonStop R series.
65485         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
65486         Use new macro.
65487
65488         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
65489         (has_trailing_slash): Omit size arg; all callers changed.
65490         Omit 'inline', since it doesn't help performance and we'd
65491         need to configure it.
65492         Don't count //, ///, etc. as having a trailing slash.
65493         As a side effect, this removes a C99ism reported by Matthew Woehlke.
65494         (rpl_rename_dest_slash): On failure, use rename's errno rather
65495         than (in some cases) an incorrect or junk errno.
65496         Simplify code by removing need to compute length; this does
65497         cause it to make two passes instead of one over the file name,
65498         but it's worth it.
65499
65500         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
65501         change, since Autoconf's version may no longer be appropriate now
65502         that we are using CVS Autoconf's version.  Add support for Tandem.
65503
65504 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
65505             Bruno Haible  <bruno@clisp.org>
65506
65507         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
65508         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
65509         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
65510         gl_AC_TYPE_LONG_LONG.
65511
65512         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
65513         instead of HAVE_LONG_LONG.
65514         * lib/printf-args.c (printf_fetchargs): Likewise.
65515         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
65516         * lib/vasnprintf.c (VASNPRINTF): Likewise.
65517         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
65518         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
65519         gl_AC_TYPE_LONG_LONG.
65520
65521 2006-10-11  Bruno Haible  <bruno@clisp.org>
65522
65523         * m4/longlong.m4: Add comments.
65524         * m4/ulonglong.m4: Likewise.
65525
65526 2006-10-10  Bruno Haible  <bruno@clisp.org>
65527
65528         Make it possible to #define stpcpy, strdup to aliases.
65529         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
65530         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
65531
65532 2006-10-10  Bruno Haible  <bruno@clisp.org>
65533
65534         Make it possible to #define gcd to an alias.
65535         * lib/gcd.c: Include config.h.
65536
65537 2006-10-10  Bruno Haible  <bruno@clisp.org>
65538
65539         Make it possible to #define c_isascii to an alias.
65540         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
65541         defined. Undefine the macros before defining them, to avoid gcc
65542         warnings.
65543         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
65544         define NO_C_CTYPE_MACROS early.
65545
65546 2006-10-10  Bruno Haible  <bruno@clisp.org>
65547
65548         Make it possible to #define set_program_name to an alias.
65549         * lib/progname.c: Don't undefine set_program_name; instead, undefine
65550         ENABLE_RELOCATABLE early.
65551
65552 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
65553
65554         Port to Tandem NSK OSS, which has 64-bit signed int but at most
65555         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
65556         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
65557         More generally, don't assume that 64-bit signed int is available
65558         if unsigned int is, and vice versa.
65559         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
65560         unsigned symbols, not on their signed counterparts.
65561         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
65562         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
65563         (UINT64_C, UINTMAX_C):
65564         Likewise.
65565         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
65566         unsigned counterparts.
65567         (Have_long_long, Unsigned): New macros.
65568         (Int): Renamed from INT.
65569         (strtoimax): Use the new macros.
65570         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
65571         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
65572         * modules/inttypes (inttypes.h): Substitute
65573         HAVE_UNSIGNED_LONG_LONG_INT.
65574         * modules/stdint (stdint.h): Likewise.
65575         (Files): Add m4/ulonglong.m4.
65576
65577 2006-10-10  Bruno Haible  <bruno@clisp.org>
65578
65579         Fix a gcc -Wshadow warning.
65580         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
65581         to 'bucket'.
65582         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
65583         gl_linked_indexof_from_to): Likewise.
65584         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
65585         Likewise.
65586         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
65587         Likewise.
65588         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
65589         Reported by Eric Blake.
65590
65591 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
65592
65593         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
65594         for NetBSD.  Problem reported by Bruno Haible.
65595
65596 2006-10-09  Jim Meyering  <jim@meyering.net>
65597
65598         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
65599         Patch from Bruno Haible.
65600
65601 2006-10-09  Jim Meyering  <jim@meyering.net>
65602
65603         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
65604         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
65605         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
65606
65607 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65608
65609         Don't include <config.h> twice; this doesn't work in some cases,
65610         e.g., when config.h has "#define intmax_t long long int" and
65611         we include <config.h>, <inttypes.h>, <config.h> in that order.
65612         Problem reported by Matthew Woehlke in:
65613         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
65614         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
65615         * lib/fts-cycle.c: Don't include config.h.
65616         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
65617         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
65618         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
65619         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
65620         inttypes.h.
65621         * lib/xstrtoumax.c: Likewise.
65622         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
65623         __strtol and the like, so that this module is more like its siblings.
65624         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
65625         Remove; no longer needed now that we assume gnulib inttypes.h.
65626
65627 2006-10-08  Bruno Haible  <bruno@clisp.org>
65628
65629         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
65630         option.
65631
65632 2006-10-07  Jim Meyering  <jim@meyering.net>
65633
65634         * modules/inttypes (inttypes.h): Revert what seems to have been
65635         an inadvertent part of today's change: use "|", not "/" in the
65636         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
65637
65638 2006-10-07  Bruno Haible  <bruno@clisp.org>
65639
65640         * modules/sublist: New file.
65641
65642 2006-10-07  Bruno Haible  <bruno@clisp.org>
65643
65644         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
65645         * modules/argz (argz.h): Likewise.
65646         * modules/arpa_inet (arpa/inet.h): Likewise.
65647         * modules/byteswap (byteswap.h): Likewise.
65648         * modules/configmake (configmake.h): Likewise.
65649         * modules/fcntl (fcntl.h): Likewise.
65650         * modules/fnmatch (fnmatch.h): Likewise.
65651         * modules/getopt (getopt.h): Likewise.
65652         * modules/glob (glob.h): Likewise.
65653         * modules/inttypes (inttypes.h): Likewise.
65654         * modules/netinet_in (netinet/in.h): Likewise.
65655         * modules/poll (poll.h): Likewise.
65656         * modules/stdbool (stdbool.h): Likewise.
65657         * modules/stdint (stdint.h): Likewise.
65658         * modules/sys_select (sys/select.h): Likewise.
65659         * modules/sys_socket (sys/socket.h): Likewise.
65660         * modules/sys_stat (sys/stat.h): Likewise.
65661         * modules/sysexits (sysexits.h): Likewise.
65662         * modules/unistd (unistd.h): Likewise.
65663         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65664         Add a "DO NOT EDIT" comment to the generated file.
65665         (func_import): Likewise for gnulib-comp.m4.
65666
65667 2006-10-07  Bruno Haible  <bruno@clisp.org>
65668
65669         * lib/gl_sublist.h: New file.
65670         * lib/gl_sublist.c: New file.
65671
65672 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
65673
65674         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
65675         name (relative to the original working directory) and the file
65676         name component (relative to the temporary working directory).  All
65677         callers changed.
65678         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
65679         * lib/mkdir-p.c (make_dir_parents): Likewise.
65680         * lib/mkdir-p.h (make_dir_parents): Likewise.
65681
65682 2006-10-06  Eric Blake  <ebb9@byu.net>
65683
65684         Define several macros for use by the clean-temp module.
65685         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
65686         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
65687         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
65688
65689         * lib/clean-temp.h (close_stream_temp): New declaration.
65690         * lib/clean-temp.c (includes): Pull in headers according to what
65691         other modules are in use.
65692         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
65693
65694 2006-10-06  Bruno Haible  <bruno@clisp.org>
65695
65696         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
65697         instead of fopen, fwriteerror.
65698
65699 2006-10-06  Bruno Haible  <bruno@clisp.org>
65700
65701         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
65702         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
65703         int.
65704         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
65705         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
65706         Return an error indicator.
65707         Suggested by Eric Blake.
65708
65709 2006-10-06  Bruno Haible  <bruno@clisp.org>
65710
65711         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
65712         Reported by Eric Blake.
65713
65714 2006-10-06  Bruno Haible  <bruno@clisp.org>
65715
65716         * modules/closeout (Description): Mention stderr too.
65717
65718 2006-10-06  Bruno Haible  <bruno@clisp.org>
65719         and Paul Eggert  <eggert@cs.ucla.edu>
65720
65721         * lib/closeout.c (close_stdout): Also close stderr.
65722         * lib/closeout.h: Update comment.
65723
65724 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
65725
65726         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
65727         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
65728         * lib/dirchownmod.c: Include lchown.h.
65729         * lib/lchown.c: Don't include files that lchown.h now includes.
65730         Don't declare chown, since lchown.h now does that.
65731         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
65732         (lchown): Define to rpl_chown if lchown is declared but
65733         does not exist.  Declare using a prototype if lchown is not
65734         declared.  Add a copyright notice.
65735         * lib/mkstemp.h: Include <unistd.h>.
65736         * lib/openat.c: Include lchown.h.
65737
65738         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
65739         we now test for that separately.
65740         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
65741         rather than O_NOFOLLOW, when testing whether it's possible to
65742         avoid a race condition reliably.
65743         * lib/savewd.c (savewd_chdir): Likewise.
65744
65745         Remove macros that are no longer needed now that stdint.h is
65746         reliable.
65747         * lib/fsusage.c (UINTMAX_MAX): Remove.
65748         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
65749         * lib/utimecmp.c (SIZE_MAX): Remove.
65750
65751         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
65752
65753         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
65754         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
65755         O_NOATIME works.
65756
65757 2006-10-05  Bruno Haible  <bruno@clisp.org>
65758
65759         * lib/gl_list.h (gl_sortedlist_search_from_to,
65760         gl_sortedlist_indexof_from_to): New declarations.
65761         (gl_list_implementation): New fields sortedlist_search_from_to,
65762         sortedlist_indexof_from_to.
65763         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
65764         inline functions.
65765         * lib/gl_list.c (gl_sortedlist_search_from_to,
65766         gl_sortedlist_indexof_from_to): New functions.
65767         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
65768         function.
65769         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
65770         (gl_array_sortedlist_search_from_to): New function.
65771         (gl_array_list_implementation): Update.
65772         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
65773         function.
65774         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
65775         (gl_carray_sortedlist_search_from_to): New function.
65776         (gl_carray_list_implementation): Update.
65777         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
65778         gl_linked_sortedlist_indexof_from_to): New functions.
65779         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
65780         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
65781         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
65782         gl_tree_sortedlist_indexof_from_to): New functions.
65783         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
65784         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
65785         Update.
65786         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
65787         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
65788         Update.
65789
65790 2006-10-05  Bruno Haible  <bruno@clisp.org>
65791
65792         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
65793         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
65794         (struct gl_list_implementation): Add fields search_from_to,
65795         indexof_from_to. Remove fields search, indexof.
65796         (gl_list_search): Use the search_from_to method.
65797         (gl_list_search_from, gl_list_search_from_to): New functions.
65798         (gl_list_indexof): Use the indexof_from_to method.
65799         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
65800         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
65801         (gl_list_search_from, gl_list_search_from_to): New functions.
65802         (gl_list_indexof): Use the indexof_from_to method.
65803         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
65804         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
65805         gl_array_indexof. Add start_index, end_index arguments.
65806         (gl_array_search_from_to): Renamed from gl_array_search. Add
65807         start_index, end_index arguments.
65808         (gl_array_remove, gl_array_list_implementation): Update.
65809         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
65810         gl_carray_indexof. Add start_index, end_index arguments.
65811         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
65812         start_index, end_index arguments.
65813         (gl_carray_remove, gl_carray_list_implementation): Update.
65814         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
65815         gl_linked_search. Add start_index, end_index arguments.
65816         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
65817         start_index, end_index arguments.
65818         (gl_linked_remove): Update.
65819         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
65820         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
65821         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
65822         field to 'size_t'.
65823         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
65824         gl_tree_search. Add start_index, end_index arguments.
65825         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
65826         start_index, end_index arguments.
65827         (gl_tree_remove): Update.
65828         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
65829         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
65830         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
65831         function.
65832         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
65833         gl_tree_search. Add start_index, end_index arguments.
65834         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
65835         start_index, end_index arguments.
65836         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
65837         Update.
65838         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
65839
65840 2006-10-05  Bruno Haible  <bruno@clisp.org>
65841
65842         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
65843
65844         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
65845         fwriteerror_temp): New declarations.
65846         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
65847         (descriptors): New variable.
65848         (cleanup): First, close the descriptors.
65849         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
65850         fclose_temp, fwriteerror_temp): New functions.
65851
65852 2006-10-04  Jim Meyering  <jim@meyering.net>
65853
65854         * lib/fts.c (fts_open): Tiny comment change.
65855
65856 2006-10-04  Bruno Haible  <bruno@clisp.org>
65857
65858         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
65859         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
65860         gl_LOCK_BODY.
65861         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
65862         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
65863         gl_LOCK_EARLY_BODY.
65864         (gl_LOCK): Require gl_LOCK_BODY.
65865
65866 2006-10-04  Bruno Haible  <bruno@clisp.org>
65867
65868         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
65869         (gl_oset_search_atleast): New declaration.
65870         (struct gl_oset_implementation): Add field 'search_atleast'.
65871         (gl_oset_search_atleast): New inline function.
65872         * lib/gl_oset.c (gl_oset_search_atleast): New function.
65873         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
65874         (gl_array_oset_implementation): Update.
65875         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
65876         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
65877         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
65878
65879 2006-10-04  Bruno Haible  <bruno@clisp.org>
65880
65881         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
65882
65883 2006-10-03  Bruno Haible  <bruno@clisp.org>
65884
65885         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
65886         from gl_avltreehash_list_implementation.
65887
65888 2006-10-03  Bruno Haible  <bruno@clisp.org>
65889
65890         * lib/gl_oset.c (gl_oset_add): Fix return type.
65891
65892 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
65893
65894         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
65895
65896 2006-10-02  Eric Blake  <ebb9@byu.net>
65897
65898         * modules/strnlen (Depends-on): Add extensions.
65899
65900 2006-10-02  Eric Blake  <ebb9@byu.net>
65901
65902         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
65903         definition in 2.60+.
65904
65905 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
65906
65907         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
65908         checks.
65909
65910 2006-10-02  Bruno Haible  <bruno@clisp.org>
65911
65912         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
65913         to the AUTOMAKE_OPTIONS.
65914         Reported by Jim Meyering.
65915
65916 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
65917
65918         Work around bug in Solaris 10 /proc file system:
65919         /proc/self/fd/NNN/.. isn't the parent directory of
65920         the directory whose file descriptor is NNN.  This needs to
65921         be worked around at run time, not compile time, since a
65922         program might be built on Solaris 8, where things work, and
65923         run on Solaris 10.
65924         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
65925         to use the following interface instead:
65926         (OPENAT_BUFFER_SIZE): New macro.
65927         (openat_proc_name): New function.
65928         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
65929         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
65930         Likewise.
65931         * lib/openat-proc.c: New file.
65932         * modules/openat (Files): Add lib/openat-proc.c.
65933         (Depends-on): Add same-inode, stdbool.
65934         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
65935
65936 2006-09-29  Bruno Haible  <bruno@clisp.org>
65937
65938         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
65939         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
65940         argument. Set stdout_closed before testing for ferror, not after.
65941         (fwriteerror, fwriteerror_no_ebadf): New functions.
65942
65943 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65944
65945         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
65946
65947 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
65948
65949         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
65950         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
65951
65952 2006-09-28  Jim Meyering  <jim@meyering.net>
65953
65954         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
65955         Include <unistd.h>.
65956
65957 2006-09-28  Bruno Haible  <bruno@clisp.org>
65958
65959         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
65960         * modules/linkedhash-list (Depends-on): Likewise.
65961         * modules/rbtreehash-list (Depends-on): Likewise.
65962
65963 2006-09-28  Bruno Haible  <bruno@clisp.org>
65964
65965         * lib/strndup.h: Simplify the redefinition of strndup.
65966         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
65967         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
65968
65969 2006-09-28  Bruno Haible  <bruno@clisp.org>
65970
65971         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
65972         * lib/gl_linkedhash_list.c: Likewise.
65973         * lib/gl_rbtreehash_list.c: Likewise.
65974
65975 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
65976
65977         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
65978         getaddrinfo.
65979
65980         * lib/__fpending.h: Don't include <stdio_ext.h> unless
65981         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
65982         it causes <stdio_ext.h> to cause a compile-time error.
65983         Problem reported by Nelson H. F. Beebe.
65984         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
65985         of HAVE_DECL___PENDING.
65986
65987         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
65988         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
65989         declaration.
65990
65991 2006-09-27  Jim Meyering  <jim@meyering.net>
65992
65993         This file could end up with a definition for a function
65994         named __strndup, rather than rpl_strndup on a system with
65995         incomplete weak_alias support.
65996         * lib/strndup.c (strndup): Rename from __strndup.
65997         Remove #defines that used to map __strndup to strndup.
65998         Don't use K&R prototypes.
65999         Remove LIBC-related code, since this file is not sync'd with glibc.
66000         * lib/strndup.h: Revamp, accordingly.
66001         * m4/strndup.m4: Modernize.
66002
66003 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
66004
66005         * modules/savewd (Depends-on): Add 'raise'.
66006         * lib/savewd.c: Include <signal.h>, for 'raise'.
66007
66008 2006-09-26  Jim Meyering  <jim@meyering.net>
66009
66010         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
66011         when we detect Darwin 8.7.0's acl_get_file bug.
66012         Rearrange to perform the new (below) run-test while $LIBS
66013         contains any acl-related library.  Set USE_ACL at the end.
66014         (gl_ACL_GET_FILE): New function.
66015
66016 2006-09-26  Eric Blake  <ebb9@byu.net>
66017
66018         * lib/verror.c: Include <config.h> unconditionally.
66019
66020 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
66021
66022         * modules/clock-time (Maintainer): Add self.
66023         * modules/getlogin_r (Depends-on): Add extensions.
66024
66025 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66026
66027         * modules/clock-time: New module.
66028         * modules/nanosleep (Depends-on): Add clock-time.
66029         * modules/gethrxtime (Depends-on): Likewise.
66030         * modules/gettime (Depends-on): Likewise.
66031         * modules/settime (Depends-on): Likewise.
66032
66033         * modules/fts-lgpl: Depend on openat.
66034         * modules/mkancesdirs: Depend on savewd.
66035         * modules/mkdir-p: Likewise.
66036
66037 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66038
66039         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
66040
66041         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
66042         `gl_have_arbitrary_file_name_length_limit' to
66043         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
66044         actually works between configure runs.
66045
66046 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66047             Bruno Haible  <bruno@clisp.org>
66048
66049         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
66050
66051 2006-09-25  Jim Meyering  <jim@meyering.net>
66052
66053         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
66054         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
66055
66056 2006-09-25  Eric Blake  <ebb9@byu.net>
66057
66058         * gnulib-tool (func_import, func_create_testdir): Fix typos in
66059         exec's in 2006-09-18 patch when shuffling fds.
66060
66061 2006-09-25  Bruno Haible  <bruno@clisp.org>
66062
66063         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
66064         Reported by Jim Meyering.
66065
66066 2006-09-24  Jim Meyering  <jim@meyering.net>
66067
66068         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
66069         compare a pointer against a literal "0".  That caused failures with
66070         at least HP-UX's hpcc.
66071
66072 2006-09-22  Simon Josefsson  <jas@extundo.com>
66073
66074         * modules/gc-sha1:
66075         * modules/gc-md4:
66076         * modules/gc-hmac-sha1:
66077         * modules/gc-hmac-md5:
66078         * modules/gc-des:
66079         * modules/gc-arcfour: Distribute more files.
66080
66081 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66082
66083         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
66084         (gl_linked_iterator_from_to): Initialize struct completely.
66085         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
66086         (gl_tree_iterator_from_to): Likewise
66087         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
66088         * lib/gl_array_list.c [lint] (gl_array_iterator)
66089         (gl_array_iterator_from_to): Likewise.
66090         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
66091         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
66092         (gl_carray_iterator_from_to): Likewise.
66093
66094         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
66095         * lib/md4.c (md4_process_block): Remove unused variable.
66096         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
66097         parentheses for clarity.
66098
66099 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66100
66101         * modules/bison-i18n (Depends-on): Add gettext.
66102
66103 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66104
66105         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
66106         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
66107         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
66108         also add missing comma that caused broken test.
66109         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
66110         stdlib.h, for `abort'.
66111         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
66112         variables.
66113         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
66114         include unistd.h if present, for `rmdir'.
66115         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
66116         variables.
66117         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
66118         in the process include standard headers for prototypes.
66119         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
66120         gets declared on GNU/Linux.
66121         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
66122         unistd.h, for `rmdir'.
66123         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
66124
66125         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
66126         always true.
66127         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
66128
66129         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
66130
66131 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66132
66133         * gnulib-tool (func_version): Create output all at once.  This
66134         may help avoid triggering unnecessary SIGPIPEs, and at any
66135         rate it doesn't hurt.
66136
66137 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66138             Bruno Haible  <bruno@clisp.org>
66139
66140         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
66141         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66142         * m4/signed.m4 (bh_C_SIGNED): Likewise.
66143
66144         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
66145         (gl_FUNC_VASPRINTF): Invoke it.
66146
66147 2006-09-22  Bruno Haible  <bruno@clisp.org>
66148
66149         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
66150         getloadavg.c as first argument.
66151
66152 2006-09-22  Bruno Haible  <bruno@clisp.org>
66153
66154         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
66155         at the beginning of the gl_INIT macro.
66156         * modules/getloadavg (configure.ac): Pass $gl_source_base to
66157         gl_GETLOADAVG.
66158
66159 2006-09-22  Bruno Haible  <bruno@clisp.org>
66160
66161         * gnulib-tool (func_create_megatestdir): Don't include the config-h
66162         module.
66163         Suggested by Ralf Wildenhues.
66164
66165 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
66166
66167         Import this patch from libc:
66168
66169         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
66170
66171         * lib/regex_internal.c (re_string_reconstruct): Handle
66172         offset < pstr->valid_raw_len && pstr->offsets_needed case.
66173         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
66174         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
66175         re_string_context_at.
66176
66177         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
66178         now requires it.
66179         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
66180         gl_REGEX now does it for us.
66181         (gl_REGEX): Add test taken from
66182         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
66183
66184         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
66185         Check that large offsets work.  Modernize Autoconf usages.
66186         Prefer "yes" to mean a good thing rather than a bad.
66187         Don't put "#define mkstemp" in config.h, as this might interfere
66188         with standard system headers that "#define mkstemp mkstemp64".
66189
66190         * modules/mkstemp (Depends-on): Add extensions, so that
66191         mkstemp is visible on some platforms.
66192         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
66193         (Include): Change to "mkstemp.h" from <stdlib.h>.
66194         (Files): Add mkstemp.h.
66195
66196         * lib/mkstemp.h: New file, since some standard headers
66197         #define mkstemp.
66198         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
66199         Include "mkstemp.h".
66200         Make the _LIBC code resemble glibc original more,
66201         e.g., use K&R style.
66202         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
66203         (mkstemp): Remove, since mkstemp.h does this for us.
66204         * lib/stdlib--.h: Include mkstemp.h.
66205
66206         Import this patch from libc:
66207
66208         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
66209
66210         * lib/tempname.c (__gen_tempname): Change attempts_min
66211         into a macro.  Use preprocessor to decide how to initialize
66212         attempts [Coverity CID 67].
66213
66214 2006-09-20  Bruno Haible  <bruno@clisp.org>
66215
66216         * lib/mkdtemp.c: Import from libc.
66217         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
66218                 * sysdeps/posix/tempname.c (__gen_tempname): Change
66219                 attempts_min into a macro.  Use preprocessor to decide how to
66220                 initialize attempts [Coverity CID 67].
66221         2001-11-27  Paul Eggert  <eggert@twinsun.com>
66222                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
66223                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
66224
66225 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66226
66227         * gnulib-tool (func_exit): New function, to allow to pass the
66228         exit status portably through the trap.  Use everywhere.
66229         (--help, --version): Signal a write error.
66230         (trap): catch SIGPIPE, for write errors.
66231         Exit at the end of the trap, with the correct exit status.
66232
66233 2006-09-19  Karl Berry  <karl@gnu.org>
66234
66235         * doc/gnulib.texi: note about the license texinfo files.
66236
66237 2006-09-19  Eric Blake  <ebb9@byu.net>
66238
66239         * gnulib-tool: Avoid space-tab.
66240
66241 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
66242
66243         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
66244         that prevented coreutils 6.1 from building.  Problem reported
66245         by Petter Reinholdtsen.
66246
66247 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
66248
66249         * gnulib-tool (avoidlist): Fix typo that broke options like
66250         --avoid=lock that are used by coreutils bootstrap.
66251
66252 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
66253
66254         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
66255         more systematically.
66256
66257 2006-09-18  Jim Meyering  <jim@meyering.net>
66258
66259         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
66260
66261 2006-09-18  Bruno Haible  <bruno@clisp.org>
66262
66263         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
66264
66265 2006-09-18  Bruno Haible  <bruno@clisp.org>
66266
66267         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
66268         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
66269         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
66270         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
66271         * m4/gettext.m4: Require autoconf >= 2.52.
66272         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
66273         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
66274         of gl_cv_header_inttypes_h.
66275
66276 2006-09-18  Bruno Haible  <bruno@clisp.org>
66277
66278         * lib/javaversion.c: Include configmake.h.
66279
66280 2006-09-18  Bruno Haible  <bruno@clisp.org>
66281
66282         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
66283         avoid that the while loops be executed in a subshell.
66284
66285 2006-09-18  Bruno Haible  <bruno@clisp.org>
66286
66287         * MODULES.html.sh (func_module): Break long lines.
66288         Suggested by Bruce Korb <bkorb@gnu.org>.
66289
66290 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66291
66292         Speed up by a factor of 1.12.
66293         * gnulib-tool (nl): New variable.
66294         (func_import): Rewrite include directive extraction to only read each
66295         directive once.
66296
66297 2006-09-17  Bruno Haible  <bruno@clisp.org>
66298
66299         * modules/javaversion (Makefile.am): Remove DEFS setting.
66300         (Depends-on): Add configmake, for PKGDATADIR definition.
66301
66302 2006-09-17  Bruno Haible  <bruno@clisp.org>
66303
66304         * gnulib-tool (func_create_testdir): Rewrite all files at once.
66305
66306 2006-09-17  Bruno Haible  <bruno@clisp.org>
66307
66308         * gnulib-tool (func_append): New function, stolen from libtool.m4.
66309         (func_modules_transitive_closure, func_modules_add_dummy,
66310         func_modules_to_filelist, func_import, func_create_testdir,
66311         func_create_megatestdir, ...): Use it wherever possible.
66312         Suggested by Ralf Wildenhues.
66313
66314 2006-09-16  Karl Berry  <karl@gnu.org>
66315
66316         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
66317         to avoid sectioning errors.
66318         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
66319         [ifinfo]: blank line after @center-ed titles.
66320         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
66321         Spell FSF address consistently with others.
66322         (These changes approved by rms.)
66323
66324 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66325
66326         Speed up by a factor of 1.61.
66327         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
66328         already checked module names again.
66329
66330 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66331
66332         Speed up by a factor of 1.13.
66333         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
66334         for new_files, and the input to func_add_or_update.
66335
66336 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66337
66338         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
66339         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
66340
66341 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66342
66343         * modules/mkancesdirs (Depends-on): Add fcntl.
66344         * modules/savewd: New file.
66345         * MODULES.html.sh (File system functions): Add savewd.
66346
66347         * modules/configmake (Makefile.am): Add support for the
66348         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
66349
66350 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66351
66352         * m4/savewd.m4: New file.
66353
66354 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66355
66356         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
66357         (dirchownmod): New arg FD.  All callers changed.
66358         Use FD rather than opening the directory ourself, as opening is
66359         now the caller's responsibility.
66360         * lib/dirchownmod.h: Likewise.
66361         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
66362         hosts that require <sys/types.h> before <sys/stat.h>.  Include
66363         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
66364         (test_dir): Remove.
66365         (mkancesdirs): Return length of prefix of FILE that has already
66366         been made, or -2 if there is a child doing the work.  Redo
66367         algorithm so that it is O(N) rather than O(N**2).  Optimize away
66368         ".", and treat ".." specially since it might stray back into
66369         already-created areas.  Use a subprocess if necessary.  New arg
66370         WD; all users changed.  MAKE_DIR function should now return 1
66371         if it creates a directory that is not readable.  Return -2 if
66372         a child process is spun off.
66373         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
66374         Adjust signature to match code.
66375         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
66376         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
66377         all users changed.
66378         * lib/savewd.c, lib/savewd.h: New files.
66379
66380 2006-09-15  Jim Meyering  <jim@meyering.net>
66381
66382         * modules/rename-dest-slash: New module.
66383         * MODULES.html.sh (posix_compat): Add it here.
66384
66385         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
66386
66387 2006-09-15  Jim Meyering  <jim@meyering.net>
66388
66389         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
66390         file.
66391
66392         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
66393
66394 2006-09-15  Jim Meyering  <jim@meyering.net>
66395
66396         * lib/rename-dest-slash.c (has_trailing_slash): Use
66397         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
66398         (rpl_rename_dest_slash): Perform the cheaper trailing slash
66399         test before testing whether SRC is a directory.
66400         Suggestions from Bruno Haible.
66401
66402         Avoid a warning about an unused variable.
66403         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
66404         into the #ifdef block where it's used.
66405
66406         * lib/rename-dest-slash.c: New file.
66407
66408 2006-09-14  Bruno Haible  <bruno@clisp.org>
66409
66410         * lib/allocsa.c: Include <config.h> unconditionally.
66411         * lib/asnprintf.c: Likewise.
66412         * lib/asprintf.c: Likewise.
66413         * lib/c-strcasecmp.c: Likewise.
66414         * lib/c-strcasestr.c: Likewise.
66415         * lib/c-strncasecmp.c: Likewise.
66416         * lib/c-strstr.c: Likewise.
66417         * lib/classpath.c: Likewise.
66418         * lib/clean-temp.c: Likewise.
66419         * lib/concatpath.c: Likewise.
66420         * lib/copy-file.c: Likewise.
66421         * lib/csharpcomp.c: Likewise.
66422         * lib/csharpexec.c: Likewise.
66423         * lib/execute.c: Likewise.
66424         * lib/fatal-signal.c: Likewise.
66425         * lib/findprog.c: Likewise.
66426         * lib/fwriteerror.c: Likewise.
66427         * lib/gl_array_list.c: Likewise.
66428         * lib/gl_array_oset.c: Likewise.
66429         * lib/gl_avltree_list.c: Likewise.
66430         * lib/gl_avltree_oset.c: Likewise.
66431         * lib/gl_avltreehash_list.c: Likewise.
66432         * lib/gl_carray_list.c: Likewise.
66433         * lib/gl_linked_list.c: Likewise.
66434         * lib/gl_linkedhash_list.c: Likewise.
66435         * lib/gl_list.c: Likewise.
66436         * lib/gl_oset.c: Likewise.
66437         * lib/gl_rbtree_list.c: Likewise.
66438         * lib/gl_rbtree_oset.c: Likewise.
66439         * lib/gl_rbtreehash_list.c: Likewise.
66440         * lib/imaxabs.c: Likewise.
66441         * lib/imaxdiv.c: Likewise.
66442         * lib/javacomp.c: Likewise.
66443         * lib/javaexec.c: Likewise.
66444         * lib/javaversion.c: Likewise.
66445         * lib/linebreak.c: Likewise.
66446         * lib/localcharset.c: Likewise.
66447         * lib/lock.c: Likewise.
66448         * lib/mbchar.c: Likewise.
66449         * lib/mbswidth.c: Likewise.
66450         * lib/mkdtemp.c: Likewise.
66451         * lib/pipe.c: Likewise.
66452         * lib/printf-args.c: Likewise.
66453         * lib/printf-parse.c: Likewise.
66454         * lib/progname.c: Likewise.
66455         * lib/progreloc.c: Likewise.
66456         * lib/readlink.c: Likewise.
66457         * lib/sh-quote.c: Likewise.
66458         * lib/stpcpy.c: Likewise.
66459         * lib/stpncpy.c: Likewise.
66460         * lib/strcasecmp.c: Likewise.
66461         * lib/strcasestr.c: Likewise.
66462         * lib/strcspn.c: Likewise.
66463         * lib/striconv.c: Likewise.
66464         * lib/strncasecmp.c: Likewise.
66465         * lib/strnlen1.c: Likewise.
66466         * lib/strstr.c: Likewise.
66467         * lib/strtok_r.c: Likewise.
66468         * lib/tls.c: Likewise.
66469         * lib/tmpdir.c: Likewise.
66470         * lib/unicodeio.c: Likewise.
66471         * lib/unsetenv.c: Likewise.
66472         * lib/vasnprintf.c: Likewise.
66473         * lib/vasprintf.c: Likewise.
66474         * lib/wait-process.c: Likewise.
66475         * lib/xallocsa.c: Likewise.
66476         * lib/xsetenv.c: Likewise.
66477         * lib/xstriconv.c: Likewise.
66478
66479 2006-09-13  Simon Josefsson  <jas@extundo.com>
66480
66481         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
66482         that internally, suggested by Ralf Wildenhues
66483         <Ralf.Wildenhues@gmx.de>.
66484
66485 2006-09-13  Simon Josefsson  <jas@extundo.com>
66486
66487         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
66488         @LIBOBJS@.
66489         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66490
66491 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
66492
66493         * lib/_fpending.c: Include <config.h> unconditionally, since we no
66494         longer worry about uses that don't define HAVE_CONFIG_H.
66495         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
66496         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
66497         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
66498         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
66499         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
66500         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
66501         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
66502         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
66503         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
66504         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
66505         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
66506         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
66507         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
66508         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
66509         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
66510         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
66511         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
66512         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
66513         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
66514         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
66515         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
66516         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
66517         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
66518         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
66519         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
66520         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
66521         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
66522         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
66523         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
66524         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
66525         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
66526         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
66527         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
66528         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
66529         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
66530         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
66531         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
66532         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
66533         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
66534         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
66535         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
66536         Likewise.
66537
66538 2006-09-13  Eric Blake  <ebb9@byu.net>
66539
66540         * lib/getopt.c: Fix typo in last commit.
66541
66542 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66543
66544         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
66545         dgettext.
66546
66547 2006-09-12  Jim Meyering  <jim@meyering.net>
66548
66549         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
66550         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
66551         Reported by Nelson H. F. Beebe.
66552
66553 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66554
66555         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
66556         program_invocation_name and program_invocation_short_name are
66557         initialized.
66558         * lib/argp-namefrob.h: Move declarations of program_invocation_name
66559         and program_invocation_short_name to argp.h, so they are visible
66560         to user programs.
66561         * lib/argp.h: Likewise
66562
66563 2006-09-10  Bruno Haible  <bruno@clisp.org>
66564
66565         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
66566         m4/inttypes_h.m4, m4/uintmax_t.m4.
66567
66568 2006-09-10  Bruno Haible  <bruno@clisp.org>
66569
66570         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
66571         gl_AC_TYPE_UINTMAX_T.
66572
66573 2006-09-10  Bruno Haible  <bruno@clisp.org>
66574
66575         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
66576
66577 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66578
66579         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
66580         convention.  Text proposed by Bruno Haible.
66581         (struct argp_option): Document the use of N_() wrappers.
66582
66583         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
66584         '\v', and translate the two parts separately, instead of feeding
66585         the whole string to gettext.  This allows to exclude
66586         '\v' from the strings visible to the translator by writing doc
66587         strings as N_("..") "\v" N_("..").
66588
66589 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
66590
66591         * config/srclist.txt: Undo latest change; the bug was fixed.
66592
66593 2006-09-09  Bruno Haible  <bruno@clisp.org>
66594
66595         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
66596         assignments if building a library without libtool.
66597         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
66598         in func_emit_lib_Makefile_am.
66599         (func_import): When building a static library libfoo.a, arrange to
66600         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
66601         (func_create_testdir): Likewise.
66602         * modules/gc (configure.ac, Makefile.am): If building statically,
66603         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
66604         * modules/iconvme (configure.ac, Makefile.am): Likewise.
66605         * modules/striconv (configure.ac, Makefile.am): Likewise.
66606         Based on a suggestion by Ralf Wildenhues.
66607
66608 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66609
66610         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
66611         Check for unistd.h too, since Autoconf doesn't assume POSIX.
66612         Also:
66613
66614         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66615         Add year_2050_test to catch glibc bug 2821
66616         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
66617
66618         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66619         Prefer #ifdef to #if.
66620
66621         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
66622         Return from 'main' instead of calling 'exit'.
66623
66624 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66625
66626         * lib/mktime.c (guess_time_tm): Fix bug where mktime
66627         returned the maximum time_t value rather than (time_t) -1.
66628         Problem originally reported by William Bardwell
66629         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
66630
66631         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
66632         Moved to here ...
66633         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
66634         ... from here.
66635
66636 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66637
66638         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
66639         2821 is fixed.
66640
66641 2006-09-08  Jim Meyering  <jim@meyering.net>
66642
66643         Don't make generated files read-only.  That would bother too many
66644         people.  However, do retain the ability to work when targets are
66645         read-only: remove the destination and temporary files before writing
66646         them (when generated via sed or echo), or by using the -f option for
66647         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
66648         * modules/alloca-opt, modules/argz, modules/arpa_inet:
66649         * modules/byteswap, modules/configmake, modules/fcntl:
66650         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
66651         * modules/localcharset, modules/netinet_in, modules/poll:
66652         * modules/stdbool, modules/stdint, modules/sys_select:
66653         * modules/sys_socket, modules/sys_stat, modules/sysexits:
66654
66655 2006-09-08  Jim Meyering  <jim@meyering.net>
66656
66657         Avoid new build failure on FreeBSD 6.0.
66658         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
66659         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
66660         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
66661
66662 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66663
66664         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
66665
66666 2006-09-07  Jim Meyering  <jim@meyering.net>
66667
66668         Fix global typo in last change: use chmod u-w, not chmod u-x.
66669         Spotted by Paul Eggert and Bruce Korb.
66670         * modules/alloca-opt, modules/argz, modules/arpa_inet:
66671         * modules/byteswap, modules/configmake, modules/fcntl:
66672         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
66673         * modules/localcharset, modules/netinet_in, modules/poll:
66674         * modules/stdbool, modules/stdint, modules/sys_select:
66675         * modules/sys_socket, modules/sys_stat, modules/sysexits:
66676
66677 2006-09-06  Jim Meyering  <jim@meyering.net>
66678
66679         Make generated files be read-only.
66680         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
66681         Ensure that each generated file is now read-only.
66682         * modules/argz: Likewise.
66683         * modules/arpa_inet: Likewise.
66684         * modules/byteswap: Likewise.
66685         * modules/configmake: Likewise.
66686         * modules/fcntl: Likewise.
66687         * modules/fnmatch: Likewise.
66688         * modules/getopt: Likewise.
66689         * modules/glob: Likewise.
66690         * modules/inttypes: Likewise.
66691         * modules/netinet_in: Likewise.
66692         * modules/poll: Likewise.
66693         * modules/stdbool: Likewise.
66694         * modules/stdint: Likewise.
66695         * modules/sys_select: Likewise.
66696         * modules/sys_socket: Likewise.
66697         * modules/sys_stat: Likewise.
66698         * modules/sysexits: Likewise.
66699         * modules/localcharset: Same as above, but continue using temporary
66700         file named "t-$@" (why different?) rather than the "$@-t" used
66701         everywhere else.
66702
66703         * modules/sysexits (Makefile.am): Replace literal occurrences
66704         of "sysexit.h" more readable, and more consistent, "$@".
66705
66706 2006-09-06  Bruno Haible  <bruno@clisp.org>
66707
66708         * modules/striconv: New file.
66709         * modules/xstriconv: New file.
66710         * MODULES.html.sh (Internationalization functions): Add striconv,
66711         xstriconv.
66712
66713 2006-09-06  Bruno Haible  <bruno@clisp.org>
66714
66715         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
66716         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
66717         not using libtool correctly.
66718
66719 2006-09-06  Bruno Haible  <bruno@clisp.org>
66720
66721         * lib/striconv.h: New file.
66722         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
66723         iconvstring.c.
66724         * lib/xstriconv.h: New file.
66725         * lib/xstriconv.c: New file.
66726
66727 2006-09-06  Bruno Haible  <bruno@clisp.org>
66728
66729         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66730         lib_..._LDFLAGS.
66731
66732 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66733
66734         * lib/argz_.h: Sync from Libtool.
66735
66736         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
66737                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
66738
66739         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
66740
66741 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
66742
66743         * modules/trim: New file.
66744
66745 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
66746
66747         * lib/trim.h: New file.
66748         * lib/trim.c: New file.
66749
66750 2006-09-05  Bruno Haible  <bruno@clisp.org>
66751
66752         * MODULES.html.sh (String handling): Add trim.
66753
66754 2006-09-04  Karl Berry  <karl@gnu.org>
66755
66756         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
66757         until next release.
66758
66759 2006-09-03  Bruno Haible  <bruno@clisp.org>
66760
66761         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
66762         correctly.
66763
66764 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66765
66766         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
66767         not gl_GETLOADAVG.  Omit unneeded semicolons.
66768         Problems reported by Ralf Wildenhues in
66769         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
66770         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
66771         at the end, which is the usual gnulib style.
66772
66773         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
66774         of doing all the work ourselves.
66775         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
66776         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
66777
66778 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66779
66780         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
66781         Problem reported by Ralf Wildenhues in
66782         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
66783
66784         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
66785         HAVE_STRUCT_STATFS_F_FSTYPENAME.
66786
66787 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66788
66789         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
66790         yesterday's patch by changing test -n to test -z.
66791
66792 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66793
66794         * modules/getloadavg (Files): Add m4/getloadavg.m4.
66795         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
66796         the former is now obsolescent.
66797
66798         * modules/chdir-long (Depends-on): Add fcntl.
66799
66800 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66801
66802         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
66803         obsolescent, and programs should use gnulib instead.
66804         * m4/getloadavg.m4: New file, with contents taken from Autoconf
66805         but with prefixes changed.
66806
66807 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66808
66809         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
66810         or stdbool.h, because they might not exist while configuring.
66811
66812         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
66813         Don't include unistd.h or limits.h; not needed, since chdir-long.h
66814         does that for us.
66815         (O_DIRECTORY): Remove.
66816
66817 2006-08-31  Eric Blake  <ebb9@byu.net>
66818
66819         * gnulib-tool: Don't let emacs change spaces to TAB.
66820
66821 2006-08-31  Bruno Haible  <bruno@clisp.org>
66822
66823         * gnulib-tool: When calling func_import more than once, do it in a
66824         subshell.
66825         Reported by Eric Blake <ebb9@byu.net>.
66826
66827 2006-08-31  Bruno Haible  <bruno@clisp.org>
66828
66829         * gnulib-tool (nl): Remove variable.
66830         (sed_transform_lib_file): Use more robust test for config-h module.
66831         (func_import): Fix typo in 2006-08-25 patch.
66832
66833 2006-08-31  Bruno Haible  <bruno@clisp.org>
66834
66835         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
66836         specified, augment Makefile.am variables instead of assigning them.
66837
66838 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
66839
66840         Work around a bug in both the Linux and SunOS 64-bit kernels:
66841         nanosleep mishandles sleeps for longer than 2**31 seconds.
66842         Problem reported by Frank v Waveren in
66843         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
66844         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
66845         Check for nanosleep bug.
66846         (LIB_NANOSLEEP): Append clock_gettime library if needed.
66847
66848 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
66849
66850         Work around a bug in both the Linux and SunOS 64-bit kernels:
66851         nanosleep mishandles sleeps for longer than 2**31 seconds.
66852         Problem reported by Frank v Waveren in
66853         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
66854         * lib/nanosleep.c (BILLION): New constant.
66855         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
66856         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
66857         implementation.
66858
66859 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
66860
66861         * modules/nanosleep (Depends-on): Add gettime.
66862
66863 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
66864         and Simon Josefsson  <jas@extundo.com>
66865         and Oskar Liljeblad  <oskar@osk.mine.nu>
66866
66867         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
66868         * gnulib-tool (func_import): New license type 'unmodifiable license
66869         text'.
66870         * modules/fdl: Use it.  Longer description.
66871         * module/gpl, module/lgpl: New files.
66872
66873 2006-08-30  Jim Meyering  <jim@meyering.net>
66874
66875         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
66876         shadowing the parameter.
66877
66878 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66879
66880         Sync from Libtool:
66881
66882         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66883
66884         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
66885         sharing with gnulib.  Report by Eric Blake.
66886
66887 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
66888
66889         * modules/isapipe: New file.
66890         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
66891
66892 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
66893
66894         * modules/configmake (Makefile.am): Add a comment, and omit
66895         the CONFIGMAKE_ prefix from generated macro names.  Suggested
66896         by Bruno Haible.
66897
66898 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
66899
66900         * m4/isapipe.m4: New file.
66901
66902 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
66903
66904         * lib/isapipe.c, lib/isapipe.h: New files.
66905
66906 2006-08-29  Jim Meyering  <jim@meyering.net>
66907
66908         * modules/configmake (Makefile.am): Make configmake.h depend on
66909         Makefile.  Otherwise, a stale configmake.h could hang around.
66910
66911 2006-08-29  Eric Blake  <ebb9@byu.net>
66912
66913         * lib/error.c (error_at_line, print_errno_message): Match libc, after
66914         resolution of upstream bug 3044.
66915
66916 2006-08-29  Bruno Haible  <bruno@clisp.org>
66917
66918         * modules/localcharset (Depends-on): Add configmake.
66919         (Makefile.am): Remove setting of LIBDIR through DEFS.
66920
66921 2006-08-29  Bruno Haible  <bruno@clisp.org>
66922
66923         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
66924         defined.
66925
66926 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
66927
66928         * modules/fcntl: New file.
66929         * modules/chdir-safer (Depends-on): Add fcntl.
66930         * modules/fts: Likewise.
66931         * modules/mkdir-p: Likewise.
66932
66933         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
66934         This undoes the most recent change, since we're now addressing the
66935         problem in a different way.
66936
66937         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
66938         into output, since the output might be called Makefile.am even
66939         if $makefile_name is something different.
66940         (func_import): Use $makefile_am rather than
66941         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
66942         empty.
66943
66944         * modules/inttypes (Files): Add m4/inttypes-h.m4.
66945
66946 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
66947
66948         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
66949         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
66950         recent change to stdint.m4, since we're now addressing the problem in a
66951         different way.
66952
66953 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
66954
66955         * m4/fcntl_h.m4: New file.
66956
66957 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
66958
66959         * lib/fcntl_.h: New file.
66960         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
66961         the fcntl module.
66962         * lib/dirchownmod.c: Likewise.
66963         * lib/fts.c: Likewise.
66964
66965         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
66966         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
66967         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
66968         just before including <inttypes.h>, to avoid circular inclusion.
66969
66970 2006-08-28  Jim Meyering  <jim@meyering.net>
66971
66972         * doc/visibility.texi: Actually read and correct the grammar of the
66973         sentence affected by yesterday's change.
66974
66975 2006-08-28  Eric Blake  <ebb9@byu.net>
66976
66977         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
66978         needs wrapper.
66979
66980 2006-08-28  Eric Blake  <ebb9@byu.net>
66981
66982         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
66983
66984 2006-08-28  Eric Blake  <ebb9@byu.net>
66985
66986         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
66987
66988 2006-08-28  Bruno Haible  <bruno@clisp.org>
66989
66990         * modules/c-strstr: New file, from GNU gettext.
66991         * MODULES.html.sh (String handling): Add c-strstr.
66992
66993 2006-08-28  Bruno Haible  <bruno@clisp.org>
66994
66995         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
66996         macros.
66997         Reported by Eric Blake.
66998
66999 2006-08-28  Bruno Haible  <bruno@clisp.org>
67000
67001         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
67002         (VASNPRINTF): Return a string of length > INT_MAX without failing.
67003         * lib/vasprintf.c: Include errno.h, limits.h.
67004         (EOVERFLOW): New fallback definition.
67005         (vasprintf): Test here whether the string length is > INT_MAX.
67006         * lib/vsnprintf.c: Include errno.h, limits.h.
67007         (EOVERFLOW): New fallback definition.
67008         (vsnprintf): Fix bug when generated string was too long for the buffer.
67009         Test here whether the string length is > INT_MAX.
67010
67011 2006-08-28  Bruno Haible  <bruno@clisp.org>
67012
67013         * lib/inttypes_.h (SCNX*): Remove definitions.
67014         Reported by Eric Blake.
67015
67016 2006-08-28  Bruno Haible  <bruno@clisp.org>
67017
67018         * lib/c-strstr.h: New file, from GNU gettext.
67019         * lib/c-strstr.c: New file, from GNU gettext.
67020
67021 2006-08-28  Bruno Haible  <bruno@clisp.org>
67022
67023         * gnulib-tool: Reorder some statements.
67024
67025 2006-08-28  Bruno Haible  <bruno@clisp.org>
67026
67027         * gnulib-tool: New option --makefile-name.
67028         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
67029         $makefile_name.
67030         (func_import): Write $makefile_name to the cache file, and read it from
67031         there unless explicitly specified. Use $makefile_name as file name
67032         instead of Makefile.am. Adjust the recommendations accordingly.
67033
67034 2006-08-28  Bruno Haible  <bruno@clisp.org>
67035
67036         * gnulib-tool (func_verify_module): Check against misapplying patch.
67037
67038 2006-08-28  Bruno Haible  <bruno@clisp.org>
67039
67040         * gnulib-tool (func_relativize, func_relconcat): New functions.
67041         Give an error if --local-dir is given with --update.
67042         Remove trailing slashes from $local_gnulib_dir.
67043         (func_import): Store the relativized $local_gnulib_dir in
67044         gnulib-cache.m4, and read it from there if not specified explicitly.
67045
67046 2006-08-28  Bruno Haible  <bruno@clisp.org>
67047
67048         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
67049         is the current directory. Respect also $local_gnulib_dir.
67050
67051 2006-08-28  Bruno Haible  <bruno@clisp.org>
67052             Simon Josefsson  <jas@extundo.com>
67053
67054         BeOS portability.
67055         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
67056
67057 2006-08-27  Jim Meyering  <jim@meyering.net>
67058
67059         * doc/visibility.texi: Remove duplicate word: "pointer".
67060
67061 2006-08-26  Bruno Haible  <bruno@clisp.org>
67062
67063         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
67064         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
67065         (Makefile.am): Create inttypes.h from inttypes_.h.
67066         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
67067
67068         * modules/imaxabs: New file.
67069
67070         * modules/imaxdiv: New file.
67071
67072 2006-08-26  Bruno Haible  <bruno@clisp.org>
67073
67074         * m4/inttypes.m4: New file.
67075         * m4/_inttypes_h.m4: Remove file.
67076         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
67077         PRI_MACROS_BROKEN.
67078         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
67079
67080         * m4/imaxabs.m4: New file.
67081
67082         * m4/imaxdiv.m4: New file.
67083
67084 2006-08-26  Bruno Haible  <bruno@clisp.org>
67085
67086         * lib/inttypes_.h: New file.
67087         * lib/inttypes.h: Remove file.
67088         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
67089
67090         * lib/imaxabs.c: New file.
67091
67092         * lib/imaxdiv.c: New file.
67093
67094 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67095
67096         New config-h module, so that "make" output needn't be cluttered
67097         by -DHAVE_CONFIG_H.
67098         * MODULES.html.sh (Support for building libraries and executables):
67099         Add config-h.
67100         * modules/config-h: New file.
67101         * gnulib-tool (nl, sed_transform_lib_file): New vars.
67102         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
67103         the config-h module is used.
67104
67105         New configmake module, so that "make" output needn't be cluttered
67106         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
67107         * MODULES.html.sh (Support for building libraries and executables):
67108         Add configmake.
67109         * modules/configmake: New file.
67110
67111 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67112
67113         * m4/config-h.m4: New file.
67114
67115 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67116
67117         * config/srclist.txt: Add elisp-comp.
67118
67119 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67120
67121         * MODULES.html.sh (Support for building libraries and executables):
67122         Add elisp-comp.
67123         * build-aux/elisp-comp: New file.
67124         * modules/elisp-comp: New file.
67125
67126 2006-08-24  Bruno Haible  <bruno@clisp.org>
67127
67128         * gnulib-tool (func_create_testdir): Use non-default values of
67129         sourcebase and m4base.
67130
67131 2006-08-24  Bruno Haible  <bruno@clisp.org>
67132
67133         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
67134         HTML structure.
67135
67136 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67137
67138         * modules/openat (Depends-on): Add lchown.
67139
67140 2006-08-23  Bruno Haible  <bruno@clisp.org>
67141
67142         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
67143         of gl_LOCK_EARLY instead of gl_LOCK.
67144
67145 2006-08-23  Bruno Haible  <bruno@clisp.org>
67146
67147         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
67148         on OSF/1 to no.
67149         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
67150
67151 2006-08-23  Bruno Haible  <bruno@clisp.org>
67152
67153         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
67154         as unusable.
67155
67156         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
67157         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
67158         (gl_LOCK): New macro.
67159
67160 2006-08-22  Simon Josefsson  <jas@extundo.com>
67161
67162         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
67163         to md5 module.
67164
67165 2006-08-22  Simon Josefsson  <jas@extundo.com>
67166
67167         * MODULES.html.sh: Add "Support for maintaining and release
67168         projects".
67169
67170         * build-aux/gnupload: New file, from coreutils.
67171
67172 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67173
67174         Avoid the need for AC_LIBSOURCES in m4 macros.
67175         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
67176         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
67177         * modules/check-version (EXTRA_DIST): Add check-version.h.
67178         * modules/crc (EXTRA_DIST): Add crc.h.
67179         * modules/des (EXTRA_DIST): Add des.h.
67180         * modules/gc (EXTRA_DIST): Add gc.h.
67181         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
67182         * modules/getline (EXTRA_DIST): Add getline.h.
67183         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
67184         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
67185         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
67186         * modules/md2 (EXTRA_DIST): Add md2.h.
67187         * modules/md4 (EXTRA_DIST): Add md4.h.
67188         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
67189         * modules/read-file (EXTRA_DIST): Add read-file.h.
67190         * modules/readline (EXTRA_DIST): Add readline.h.
67191         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
67192         rijndael-api-fst.h.
67193
67194 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67195
67196         * m4/rijndael.m4 (gl_ARCFOUR):
67197         * m4/arctwo.m4 (gl_ARCTWO):
67198         * m4/check-version.m4 (gl_CHECK_VERSION):
67199         * m4/crc.m4 (gl_CRC):
67200         * m4/des.m4 (gl_DES):
67201         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
67202         * m4/gc.m4 (gl_GC):
67203         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
67204         * m4/getline.m4 (gl_FUNC_GETLINE):
67205         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
67206         * m4/hmac-md5.m4 (gl_HMAC_MD5):
67207         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
67208         * m4/md2.m4 (gl_MD2):
67209         * m4/md4.m4 (gl_MD4):
67210         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
67211         * m4/read-file.m4 (gl_FUNC_READ_FILE):
67212         * m4/readline.m4 (gl_FUNC_READLINE):
67213         * m4/rijndael.m4 (gl_RIJNDAEL):
67214         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
67215         to get the necessary .h files and whatnot.
67216
67217 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67218
67219         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
67220         gnulib rather than the other way around.
67221         * config/srclistvars.sh (COREUTILS): Remove.
67222
67223 2006-08-22  Jim Meyering  <jim@meyering.net>
67224
67225         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
67226
67227         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
67228
67229 2006-08-22  Eric Blake  <ebb9@byu.net>
67230
67231         * modules/regexprops-generic: New file.
67232         * MODULES.html.sh (Support for building documentation): List it.
67233
67234 2006-08-22  Eric Blake  <ebb9@byu.net>
67235
67236         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
67237         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
67238         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
67239         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
67240
67241 2006-08-22  Bruno Haible  <bruno@clisp.org>
67242
67243         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
67244         and lib_LTLIBRARIES like the other lib_* variables.
67245
67246 2006-08-22  Bruno Haible  <bruno@clisp.org>
67247
67248         * build-aux/x-to-1.in: New file, from GNU gettext.
67249
67250 2006-08-22  Bruno Haible  <bruno@clisp.org>
67251
67252         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
67253         <utmpx.h> exists.
67254
67255 2006-08-22  Bruno Haible  <bruno@clisp.org>
67256
67257         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
67258         <utmpx.h> exists.
67259
67260 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
67261
67262         BeOS portability.
67263         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
67264         exist.
67265         Problem reported by Bruno Haible.
67266
67267 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
67268
67269         Avoid the need for AC_LIBSOURCES in m4 macros.
67270         * modules/acl (EXTRA_DIST): Add acl.h.
67271         * modules/argmatch (Files): Add m4/argmatch.m4.
67272         (configure.ac): Add gl_ARGMATCH.
67273         (EXTRA_DIST): Renamed from lib_SOURCES, for
67274         consistency with the other modules.  Remove argmatch.c.
67275         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
67276         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
67277         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
67278         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
67279         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
67280         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
67281         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
67282         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
67283         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
67284         * modules/closeout (EXTRA_DIST): Add closeout.h.
67285         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
67286         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
67287         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
67288         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
67289         dirname.h; remove basename.c and stripslash.c.
67290         * modules/exclude (EXTRA_DIST): Add exclude.h.
67291         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
67292         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
67293         * modules/file-type (EXTRA_DIST): Add file-type.h.
67294         * modules/filemode (EXTRA_DIST): Add filemode.h.
67295         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
67296         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
67297         * modules/fpending (EXTRA_DIST): Add __fpending.h.
67298         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
67299         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
67300         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
67301         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
67302         * modules/getdate (EXTRA_DIST): Add getdate.c.
67303         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
67304         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
67305         * modules/getpass (EXTRA_DIST): Add getpass.h.
67306         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
67307         * modules/group-member (EXTRA_DIST): Add group-member.h.
67308         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
67309         * modules/hash (EXTRA_DIST): Add hash.h.
67310         * modules/human (EXTRA_DIST): Add human.h.
67311         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
67312         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
67313         * modules/lchown (EXTRA_DIST): Add lchown.h.
67314         * modules/long-options (EXTRA_DIST): Add long-options.h.
67315         * modules/lstat (EXTRA_DIST): Add lstat.h.
67316         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
67317         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
67318         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
67319         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
67320         * modules/memxor (EXTRA_DIST): Add memxor.h.
67321         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
67322         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
67323         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
67324         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
67325         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
67326         * modules/physmem (EXTRA_DIST): Add physmem.h.
67327         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
67328         * modules/posixver (EXTRA_DIST): Add posixver.h.
67329         * modules/quote (EXTRA_DIST): Add quote.h.
67330         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
67331         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
67332         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
67333         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
67334         regex_internal.h regexec.c.
67335         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
67336         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
67337         * modules/same (EXTRA_DIST): Add same.h.
67338         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
67339         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
67340         * modules/savedir (EXTRA_DIST): Add savedir.h.
67341         * modules/sha1 (EXTRA_DIST): Add sha1.h.
67342         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
67343         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
67344         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
67345         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
67346         * modules/strdup (EXTRA_DIST): Add strdup.h.
67347         * modules/strftime (EXTRA_DIST): Add strftime.h.
67348         * modules/strndup (EXTRA_DIST): Add strndup.h.
67349         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
67350         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
67351         * modules/time_r (EXTRA_DIST): Add time_r.h.
67352         * modules/timespec (EXTRA_DIST): Add timespec.h.
67353         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
67354         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
67355         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
67356         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
67357         * modules/userspec (EXTRA_DIST): Add userspec.h.
67358         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
67359         * modules/utimens (EXTRA_DIST): Add utimens.h.
67360         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
67361         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
67362         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
67363         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
67364         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
67365         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
67366         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
67367         * modules/yesno (EXTRA_DIST): Add yesno.h.
67368
67369 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
67370
67371         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
67372
67373         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
67374         * m4/dev-ino.m4, same-inode.m4: Remove.
67375
67376         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
67377         * m4/acl.m4 (AC_FUNC_ACL):
67378         * m4/backupfile.m4 (gl_BACKUPFILE):
67379         * m4/c-strtod.m4 (gl_C99_STRTOLD):
67380         * m4/canon-host.m4 (gl_CANON_HOST):
67381         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
67382         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
67383         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
67384         * m4/cloexec.m4 (gl_CLOEXEC):
67385         * m4/close-stream.m4 (gl_CLOSE_STREAM):
67386         * m4/closeout.m4 (gl_CLOSEOUT):
67387         * m4/dirfd.m4 (gl_FUNC_DIRFD):
67388         * m4/dirname.m4 (gl_DIRNAME):
67389         * m4/exclude.m4 (gl_EXCLUDE):
67390         * m4/exitfail.m4 (gl_EXITFAIL):
67391         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
67392         * m4/file-type.m4 (gl_FILE_TYPE):
67393         * m4/filemode.m4 (gl_FILEMODE):
67394         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
67395         * m4/fpending.m4 (gl_FUNC_FPENDING):
67396         * m4/fprintftime.m4 (gl_FPRINTFTIME):
67397         * m4/fts.m4 (gl_FUNC_FTS):
67398         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
67399         * m4/getdate.m4 (gl_GETDATE):
67400         * m4/gethrxtime.m4 (gl_GETHRXTIME):
67401         * m4/getpagesize.m4 (gl_GETPAGESIZE):
67402         * m4/getpass.m4 (gl_FUNC_GETPASS):
67403         * m4/gettime.m4 (gl_GETTIME):
67404         * m4/getugroups.m4 (gl_GETUGROUPS):
67405         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
67406         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
67407         * m4/hard-locale.m4 (gl_HARD_LOCALE):
67408         * m4/hash.m4 (gl_HASH):
67409         * m4/idcache.m4 (gl_IDCACHE):
67410         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
67411         * m4/lchown.m4 (gl_FUNC_LCHOWN):
67412         * m4/long-options.m4 (gl_LONG_OPTIONS):
67413         * m4/lstat.m4 (gl_FUNC_LSTAT):
67414         * m4/md5.m4 (gl_MD5):
67415         * m4/memcasecmp.m4 (gl_MEMCASECMP):
67416         * m4/memcoll.m4 (gl_MEMCOLL):
67417         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
67418         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
67419         * m4/memxor.m4 (gl_MEMXOR):
67420         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
67421         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
67422         * m4/modechange.m4 (gl_MODECHANGE):
67423         * m4/mountlist.m4 (gl_MOUNTLIST):
67424         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67425         * m4/openat.m4 (gl_FUNC_OPENAT):
67426         * m4/pathmax.m4 (gl_PATHMAX):
67427         * m4/physmem.m4 (gl_PHYSMEM):
67428         * m4/posixtm.m4 (gl_POSIXTM):
67429         * m4/posixver.m4 (gl_POSIXVER):
67430         * m4/quote.m4 (gl_QUOTE):
67431         * m4/quotearg.m4 (gl_QUOTEARG):
67432         * m4/readtokens.m4 (gl_READTOKENS):
67433         * m4/readutmp.m4 (gl_READUTMP):
67434         * m4/regex.m4 (gl_REGEX):
67435         * m4/safe-read.m4 (gl_SAFE_READ):
67436         * m4/safe-write.m4 (gl_SAFE_WRITE):
67437         * m4/same.m4 (gl_SAME):
67438         * m4/save-cwd.m4 (gl_SAVE_CWD):
67439         * m4/savedir.m4 (gl_SAVEDIR):
67440         * m4/settime.m4 (gl_SETTIME):
67441         * m4/sha1.m4 (gl_SHA1):
67442         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
67443         * m4/stat-macros.m4 (gl_STAT_MACROS):
67444         * m4/stat-time.m4 (gl_STAT_TIME):
67445         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
67446         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
67447         * m4/strdup.m4 (gl_FUNC_STRDUP):
67448         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
67449         * m4/strndup.m4 (gl_FUNC_STRNDUP):
67450         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
67451         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
67452         * m4/time_r.m4 (gl_TIME_R):
67453         * m4/timespec.m4 (gl_TIMESPEC):
67454         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
67455         * m4/unlinkdir.m4 (gl_UNLINKDIR):
67456         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
67457         * m4/userspec.m4 (gl_USERSPEC):
67458         * m4/utimecmp.m4 (gl_UTIMECMP):
67459         * m4/utimens.m4 (gl_UTIMENS):
67460         * m4/xalloc.m4 (gl_XALLOC):
67461         * m4/xgetcwd.m4 (gl_XGETCWD):
67462         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
67463         * m4/xreadlink.m4 (gl_XREADLINK):
67464         * m4/xstrtod.m4 (gl_XSTRTOD):
67465         * m4/yesno.m4 (gl_YESNO):
67466         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
67467         to get the necessary .h files and whatnot.
67468
67469 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
67470             Bruno Haible  <bruno@clisp.org>
67471
67472         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
67473         /bin/sh understanding of '!' conditional negation.
67474
67475 2006-08-21  Jim Meyering  <jim@meyering.net>
67476
67477         * modules/openat (Depends-on): Really alphabetize.
67478
67479         * modules/acl (Depends-on): Add error and quote.
67480
67481         * check-module (find_included_lib_files): Add at-func.c to the
67482         ok-to-include-more-than-once white list.
67483
67484         * modules/openat (Depends-on): Add lstat.  Alphabetize.
67485
67486 2006-08-21  Bruno Haible  <bruno@clisp.org>
67487
67488         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67489         Emit a pkgdata_DATA variable only if some snippets add contents to it.
67490         Reported by Martin Lambers <marlam@marlam.de>.
67491
67492 2006-08-21  Bruno Haible  <bruno@clisp.org>
67493
67494         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
67495         specify an installation location, don't emit a noinst_LIBRARIES or
67496         noinst_LTLIBRARIES assignment.
67497
67498 2006-08-21  Bruno Haible  <bruno@clisp.org>
67499
67500         BeOS portability.
67501         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
67502         BeOS has mbrtowc() but no <wctype.h>.
67503
67504 2006-08-21  Bruno Haible  <bruno@clisp.org>
67505
67506         BeOS portability.
67507         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
67508         exist.
67509
67510 2006-08-21  Bruno Haible  <bruno@clisp.org>
67511
67512         BeOS portability.
67513         * lib/mbchar.h: Include <wctype.h> only if it exists.
67514
67515 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67516
67517         Remove files that are no longer needed by their respective modules.
67518         * m4/obstack.m4: Remove.
67519         * m4/strerror_r.m4: Remove.
67520         * m4/uint32_t.m4: Remove.
67521         * m4/uintptr_t.m4: Remove.
67522         * m4/ullong_max.m4: Remove.
67523         * m4/xstrtoimax.m4: Remove.
67524         * m4/xstrtoumax.m4: Remove.
67525
67526         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
67527         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
67528         dependencies now capture this.
67529
67530         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
67531         Do not use AC_LIBSOURCES, since gnulib modules now do this.
67532         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
67533         * m4/human.m4 (gl_HUMAN): Likewise.
67534         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
67535         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
67536
67537         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
67538
67539         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
67540         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
67541         stdint.
67542         * m4/human.m4 (gl_HUMAN): Likewise.
67543         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
67544         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
67545         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
67546         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
67547         * m4/xstrtol (gl_XSTRTOL): Likewise.
67548
67549         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
67550         AC_TYPE_LONG_LONG_INT.
67551         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
67552         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
67553         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
67554         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
67555
67556         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
67557         on stdbool.
67558
67559         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
67560         (gl_PREREQ_XSTRTOUL): Remove.
67561
67562         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
67563
67564         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
67565         mode.
67566
67567 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67568
67569         Add and change modules to make it easier for coreutils to use
67570         gnulib-tool.
67571         * modules/backupfile (Files): Remove m4/d-ino.m4.
67572         (Depends-on): Add d-ino.
67573         * modules/cycle-check (Depends-on): Add stdint.
67574         (lib_SOURCES): Add cycle-check.h.
67575         * modules/d-ino: New module.
67576         * modules/d-type: New module.
67577         * modules/error (Files): Remove m4/strerror_r.m4.
67578         * modules/filemode (Files): Add m4/st_dm_mode.m4.
67579         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
67580         m4/inttypes_h.m4, m4/uintmax_t.m4.
67581         (Depends-on): Add stdint.
67582         (lib_SOURCES): Add fsusage.h.
67583         * modules/getcwd (Files): Remove d-ino.m4.
67584         (Depends-on): Add d-ino.
67585         * modules/getndelim2 (Depends-on): Add stdint.
67586         * modules/glob (Files): Remove m4/d-type.m4.
67587         (Depends-on): Add d-type.
67588         * modules/host-os: New module.
67589         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
67590         m4/inttypes_h.m4, m4/uintmax_t.m4.
67591         * Depends-on: Add stdint.
67592         (lib_SOURCES): Add human.h.
67593         * modules/inttostr (Files): Remove m4/intmax_t.m4,
67594         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
67595         m4/uintmax_t.m4, m4/ulonglong.m4.
67596         (Depends-on): Add stdint.
67597         (EXTRA_DIST): Add inttostr.h.
67598         * modules/lchmod: New module.
67599         * modules/link-follow: New module.
67600         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
67601         (Depends-on): Add lchmod.
67602         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
67603         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
67604         (Depends-on): Add stdint.
67605         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
67606         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
67607         (Depends-on): Add stdint.
67608         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
67609         * modules/perl: New module.
67610         * modules/regex (Depends-on): Add stdint.
67611         * modules/rmdir-errno: New module.
67612         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
67613         m4/intmax_t.m4.
67614         (Depends-on): Add stdint.
67615         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
67616         m4/uintmax_t.m4.
67617         (Depends-on): Add stdint.
67618         * modules/unlink-busy: New module.
67619         * modules/utimecmp (Depends-on): Add stdint.
67620         * modules/uptime: New module.
67621         * modules/winsz-ioctl: New module.
67622         * modules/winsz-termios: New module.
67623         * modules/xnanosleep (Depends-on): Add nanosleep.
67624         * modules/ullong_max: Remove.
67625         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
67626         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
67627         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
67628         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
67629         (Depends-on): Add inttypes.
67630         (lib_SOURCES): Add xstrtol.h.
67631         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
67632         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
67633         * MODULES.html.sh: Move 'assert' into the assert section.
67634         Move 'dummy' into the linking section.
67635         Remove ullong_max.
67636         Add section for compatibility checks for POSIX:2001 functions,
67637         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
67638         winsz-ioctl, and winsz-termios into it.
67639         Add lchmod.
67640         Add top-level Misc section and put host-os, perl, and uptime
67641         into it.
67642
67643 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67644
67645         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
67646         now assume the stdint module.  Do not include inttypes.h.
67647         * lib/fsusage.h: Likewise.
67648         * lib/getndelim2.c: Likewise.
67649         * lib/human.h: Likewise.
67650         * lib/inttostr.h: Likewise.
67651         * lib/obstack.c: Likewise.
67652         * lib/regex_internal.h: Likewise.
67653         * lib/tempname.c: Likewise.
67654         * lib/utimecmp.c: Likewise.
67655         * lib/xstrtol.h: Likewise.
67656
67657         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
67658
67659         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
67660         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
67661         * lib/xtime.h: Likewise.
67662
67663 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67664
67665         * modules/openat (Files): Add lib/fchmodat.c.
67666         Fixes problem reported by Jay Youngman.
67667
67668 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67669
67670         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
67671         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
67672
67673 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
67674             Bruno Haible  <bruno@clisp.org>
67675
67676         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
67677         and is a script that invokes bison. Tighten the code. Add comments.
67678
67679 2006-08-18  Jim Meyering  <jim@meyering.net>
67680
67681         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
67682         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
67683         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
67684         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
67685
67686 2006-08-18  Bruno Haible  <bruno@clisp.org>
67687
67688         * modules/bison-i18n: New file.
67689         * MODULES.html.sh (Internationalization functions): Add it.
67690
67691 2006-08-18  Bruno Haible  <bruno@clisp.org>
67692
67693         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
67694         sys/statvfs.h. When getmntinfo was found, check its declaration and
67695         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
67696
67697 2006-08-18  Bruno Haible  <bruno@clisp.org>
67698
67699         * m4/bison-i18n.m4: New file, from bison.
67700
67701 2006-08-18  Bruno Haible  <bruno@clisp.org>
67702
67703         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
67704         (ME_DUMMY): Treat "kernfs" as a dummy.
67705         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
67706
67707 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67708
67709         Update from coreutils.
67710
67711         2006-08-15  Jim Meyering  <jim@meyering.net>
67712
67713         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
67714
67715         2006-01-17  Jim Meyering  <jim@meyering.net>
67716
67717         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
67718
67719         2006-01-11  Jim Meyering  <jim@meyering.net>
67720
67721         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
67722         Check for the lchmod function.
67723
67724 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67725
67726         Update from coreutils.
67727
67728         * lib/__fpending.h: Add copyright notice.
67729         * lib/fprintftime.h: Likewise.
67730         * lib/savedir.c: Use (C) in copyright notice.
67731         * lib/savedir.h: Likewise.
67732
67733         2006-08-15  Jim Meyering  <jim@meyering.net>
67734
67735         * lib/at-func.c: New file, with the logic of all emulated at-functions.
67736         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
67737         in support of the EXPECTED_ERRNO macro.
67738         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
67739         definitions.  Instead, define the appropriate symbols and include
67740         "at-func.c".
67741         * lib/mkdirat.c (mkdirat): Likewise.
67742         * lib/fchmodat.c (fchmodat): Likewise.
67743         (ENOSYS): Remove definition.
67744         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
67745         it.  Don't include "unistd--.h" -- it wasn't ever used.
67746
67747         2006-01-17  Jim Meyering  <jim@meyering.net>
67748
67749         Rewrite fts.c not to change the current working directory,
67750         by using openat, fstatat, fdopendir, etc..
67751
67752         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
67753         (HAVE_OPENAT_SUPPORT): Define.
67754         [_LIBC] (fchdir): Don't undef or define; no longer used.
67755         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
67756         Now, this `function' always succeeds, and consumes its file descriptor
67757         parameter -- so callers must not close such FDs.  Update callers.
67758         (diropen_fd, opendirat, cwd_advance_fd): New functions.
67759         (diropen): Add parameter, SP.  Adjust all callers.
67760         Implement using diropen_fd, rather than open.
67761         (fts_open): Initialize new member, fts_cwd_fd.
67762         Remove fts_rft-setting code.
67763         (fts_close): Close fts_cwd_fd, if necessary.
67764         (__opendir2): Define in terms of opendir or opendirat,
67765         depending on whether the FST_NOCHDIR flag is set.
67766         (fts_build): Since fts_safe_changedir consumes its FD, and since
67767         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
67768         and close the dup'd file descriptor upon failure.
67769         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
67770         (fts_safe_changedir): Tweak semantics to reflect that this function
67771         now calls cwd_advance_fd and hence consumes its FD argument.
67772         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
67773         [struct FTS] (fts_rft): Remove now-unused member.
67774         [struct FTS] (fts_cycle.state): Improve comment.
67775
67776         * lib/openat.c (openat_needs_fchdir): New function.
67777         * lib/openat.h (openat_needs_fchdir): Declare it.
67778
67779 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
67780
67781         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
67782         Problem and fix reported by Pádraig Brady in
67783         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
67784
67785 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67786
67787         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
67788
67789 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67790
67791         * lib/memcoll.c (memcoll): Optimize for the common case where the
67792         arguments are bytewise equal.
67793
67794 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67795
67796         * doc/regexprops-generic.texi: Add a copyright notice.
67797
67798 2006-08-15  Bruno Haible  <bruno@clisp.org>
67799
67800         * modules/tmpdir (License): Change to LGPL.
67801
67802 2006-08-15  Bruno Haible  <bruno@clisp.org>
67803
67804         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
67805         module.
67806
67807 2006-08-14  Simon Josefsson  <jas@extundo.com>
67808
67809         * config/srclist.txt: Add gnupload.
67810
67811 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67812
67813         Change copyright notice from LGPL 2 to GPL 2, since that's the
67814         standard form used in the gnulib repository.
67815         * tests/test-lock.c: Likewise.
67816         * tests/test-stdint.c: Likewise.
67817         * tests/test-tls.c: Likewise.
67818
67819         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
67820         prelude-manager.  User shorter URLs for GNU projects, without '?'.
67821         Add copyright notice.
67822
67823         * check-module: Add copyright notice.  Output a copyright
67824         notice if "--version" is specified.
67825         * modules/COPYING: New file.
67826         * tests/test-getaddrinfo.c: Add copyright notice.
67827         * tests/test-verify.c: Likewise.
67828
67829 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67830
67831         Change copyright notice from LGPL 2 to GPL 2, since that's the
67832         standard form used in the gnulib repository.
67833         * lib/lock.c: LGPL -> GPL.
67834         * lib/lock.h: Likewise.
67835         * lib/strnlen1.c: Likewise.
67836         * lib/strnlen1.h: Likewise.
67837         * lib/tls.c: Likewise.
67838         * lib/tls.h: Likewise.
67839         * lib/tmpdir.c: Likewise.
67840
67841         * lib/TODO: Remove; this belongs only in coreutils.
67842
67843 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67844
67845         Add copyright notices to long-enough files that lack them, since
67846         otherwise the files aren't clearly free.  Use the same notice that
67847         getdate.texi already uses.
67848         * doc/alloca-opt.texi: Add copyright notice.
67849         * doc/alloca.texi: Likewise.
67850         * doc/ctime.texi: Likewise.
67851         * doc/functions.texi: Likewise.
67852         * doc/gcd.texi: Likewise.
67853         * doc/gnulib-tool.texi: Likewise.
67854         * doc/inet_ntoa.texi: Likewise.
67855         * doc/visibility.texi: Likewise.
67856
67857         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
67858         * doc/quote.texi: Add copyright notice.
67859
67860         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
67861         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
67862         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
67863         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
67864         is now obsolete, and give a pointer to the Sun list.
67865         Add copyright notice.
67866
67867 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
67868
67869         * config/srclistvars.sh: Add copyright notice.
67870
67871 2006-08-14  Eric Blake  <ebb9@byu.net>
67872
67873         Import the following change from libc:
67874
67875         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
67876
67877         Upstream bug 2997.
67878         * lib/misc/error.c: Add space between program name and message if file
67879         name is missing.
67880
67881 2006-08-12  Karl Berry  <karl@gnu.org>
67882
67883         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
67884         remove, these originate in gnulib now.
67885
67886 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67887
67888         * doc/Makefile (standards.info standards.html standards.dvi):
67889         Also depend on make-stds.texi.
67890
67891 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
67892
67893         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
67894         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
67895
67896         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
67897         in wchar_t.  Problem reported by Eric Blake.
67898
67899         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
67900         LEN is smaller than SIZE.  Suggested by Bruno Haible.
67901         Also, help the compiler to keep LEN in a register.
67902
67903 2006-08-11  Eric Blake  <ebb9@byu.net>
67904
67905         * users.txt: Sort.  Add tar.
67906
67907 2006-08-11  Bruno Haible  <bruno@clisp.org>
67908
67909         * users.txt: New file.
67910
67911 2006-08-11  Bruno Haible  <bruno@clisp.org>
67912
67913         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
67914         before <wchar.h>. Needed for OSF/1 and BSD/OS.
67915
67916 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
67917
67918         * modules/snprintf (Depends-on): Remove minmax.
67919         (Maintainer): Add self and Bruno.
67920
67921 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
67922
67923         * lib/.cppi-disable: Add snprintf.h, socket_.h.
67924         * lib/snprintf.c: Include <errno.h> and <limits.h>.
67925         (EOVERFLOW): Define if the system does not.
67926         Do not include "minmax.h"; it wasn't used.
67927         (snprintf): Don't assume size_t promotes to an unsigned type.
67928         Fix bug when generated string was too long for the buffer: the
67929         buffer's contents are supposed to be the initial prefix of the
67930         output.  Don't assume vasnprintf returns EOVERFLOW if the size
67931         exceeds INT_MAX; do the check ourselves.
67932
67933         Import the following changes from libc:
67934
67935         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
67936
67937         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
67938         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
67939         set wc to the byte which couldn't be converted.
67940         (re_string_reconstruct): Don't clear valid_raw_len before calling
67941         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
67942         tip_context using re_string_context_at.
67943
67944         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
67945
67946         * lib/posix/regex.h: g++ still cannot handled [restrict].
67947
67948         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
67949
67950         * lib/posix/regex.h: Remove special handling for VMS.
67951
67952 2006-08-10  Jim Meyering  <jim@meyering.net>
67953
67954         * modules/same-inode: New module.
67955         * modules/dev-ino: New module.
67956         * modules/cycle-check: Depend on these modules, rather than simply
67957         including their .h files.
67958         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
67959         required via m4/cycle-check.m4.
67960         * modules/same: Depend on new same-inode module, rather than
67961         including same-inode.h.
67962         * modules/chdir-safer: New file.
67963
67964         * modules/chown (Depends-on): Add stat-macros.
67965
67966 2006-08-10  Jim Meyering  <jim@meyering.net>
67967
67968         * m4/cycle-check.m4: New file.
67969         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
67970         * m4/dev-ino.m4, m4/same-inode.m4: New files.
67971
67972 2006-08-10  Eric Blake  <ebb9@byu.net>
67973
67974         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
67975         in from original proposal.
67976
67977 2006-08-10  Eric Blake  <ebb9@byu.net>
67978         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
67979
67980         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
67981         namespace.
67982
67983 2006-08-10  Bruno Haible  <bruno@clisp.org>
67984
67985         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
67986         as well.
67987
67988 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67989
67990         Sync from coreutils.
67991
67992         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
67993
67994         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
67995         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
67996
67997 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
67998
67999         * modules/restrict: Remove; no longer needed now that we assume
68000         Autoconf 2.59 or later.
68001         * MODULES.html.sh: Remove 'restrict'.
68002         * modules/argp (Depends-on): Remove 'restrict'.
68003         * modules/base64 (Depends-on): Likewise.
68004         * modules/gc (Depends-on): Likewise.
68005         * modules/getaddrinfo (Depends-on): Likewise.
68006         * modules/glob (Depends-on): Likewise.
68007         * modules/inet_ntop (Depends-on): Likewise.
68008         * modules/inet_pton (Depends-on): Likewise.
68009         * modules/memxor (Depends-on): Likewise.
68010         * modules/regex (Depends-on): Likewise.
68011         * modules/strtok_r (Depends-on): Likewise.
68012         * modules/time_r (Depends-on): Likewise.
68013
68014 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68015
68016         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
68017         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
68018         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
68019         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
68020         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
68021         * m4/memxor.m4 (gl_MEMXOR): Likewise.
68022         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
68023         gl_C_RESTRICT replaced by AC_C_RESTRICT.
68024
68025         Merge from coreutils.
68026         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
68027         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
68028         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68029         * m4/time_r.m4 (gl_TIME_R): Likewise.
68030
68031 2006-08-09  Karl Berry  <karl@gnu.org>
68032
68033         * config/srclist.txt: no more gettext-tools, per Bruno.
68034
68035 2006-08-08  Eric Blake  <ebb9@byu.net>
68036
68037         * modules/verror: New module.
68038         * MODULES.html.sh: Document it.
68039
68040 2006-08-08  Eric Blake  <ebb9@byu.net>
68041
68042         * lib/verror.h, lib/verror.c: New files.
68043
68044 2006-08-08  Eric Blake  <ebb9@byu.net>
68045
68046         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
68047         verror_at_line output complies with GNU Coding Standards even when
68048         file is NULL.
68049
68050 2006-08-07  Bruno Haible  <bruno@clisp.org>
68051
68052         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
68053         versions of AIX.
68054         Reported by Ralf Wildenhues.
68055
68056 2006-08-07  Bruno Haible  <bruno@clisp.org>
68057
68058         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
68059         in an AC_DEFUN. Needed so that the autoconf snippets can use
68060         AC_REQUIRE.
68061
68062 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68063
68064         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68065         Initialize pkgdata_DATA.
68066         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
68067         overriding it.
68068
68069 2006-08-06  Eric Blake  <ebb9@byu.net>
68070
68071         * lib/error.h: Fold in some upstream changes from glibc.
68072         * lib/error.c: Likewise.
68073
68074 2006-08-04  Bruno Haible  <bruno@clisp.org>
68075
68076         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68077         Make the mostlyclean-local rule depend on mostlyclean-generic.
68078         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
68079
68080 2006-07-31  Bruno Haible  <bruno@clisp.org>
68081
68082         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
68083         <stdlib.h>, <string.h>.
68084
68085 2006-07-30  Bruno Haible  <bruno@clisp.org>
68086
68087         * modules/readlink (License): Change to LGPL.
68088
68089 2006-07-30  Bruno Haible  <bruno@clisp.org>
68090
68091         * modules/javaversion (Makefile.am): Distribute javaversion.java and
68092         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
68093         set PKGDATADIR to point to it.
68094
68095 2006-07-30  Bruno Haible  <bruno@clisp.org>
68096
68097         * modules/csharpexec (configure.ac): Comment out macro invocation.
68098         * modules/javaexec (configure.ac): Likewise.
68099         * modules/javacomp-script (configure.ac): Likewise.
68100
68101         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
68102
68103 2006-07-30  Bruno Haible  <bruno@clisp.org>
68104
68105         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
68106         linked-list.
68107
68108 2006-07-30  Bruno Haible  <bruno@clisp.org>
68109
68110         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
68111
68112 2006-07-30  Bruno Haible  <bruno@clisp.org>
68113
68114         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68115         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
68116         get removed.
68117
68118 2006-07-29  Bruno Haible  <bruno@clisp.org>
68119
68120         Make it possible for gnulib-tool to work with locally modified or
68121         augmented gnulib repositories.
68122         * gnulib-tool (func_usage): Document --local-dir option.
68123         (local_gnulib_dir): New variable.
68124         Handle --local-dir option.
68125         (func_lookup_file): New function.
68126         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
68127         (func_get_description, func_get_filelist, func_get_description,
68128         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
68129         func_get_automake_snippet, func_get_include_directive,
68130         func_get_license, func_get_maintainer): Use func_lookup_file.
68131         (func_import, func_create_testdir): Use func_lookup_file.
68132
68133 2006-07-29  Bruno Haible  <bruno@clisp.org>
68134
68135         * modules/setenv (Depends-on): Add unistd.
68136
68137 2006-07-29  Bruno Haible  <bruno@clisp.org>
68138
68139         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
68140
68141 2006-07-29  Bruno Haible  <bruno@clisp.org>
68142
68143         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
68144
68145 2006-07-29  Bruno Haible  <bruno@clisp.org>
68146
68147         * gnulib-tool (import, update): If there is no Makefile.am, look at
68148         aclocal.m4, instead of bailing out.
68149
68150 2006-07-29  Bruno Haible  <bruno@clisp.org>
68151
68152         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
68153         Categorize the options by when they are useful.
68154
68155 2006-07-29  Bruno Haible  <bruno@clisp.org>
68156
68157         * gnulib-tool (func_usage): Document option --no-libtool.
68158         Handle option --no-libtool.
68159         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
68160         for changed semantics of $libtool variable.
68161         (func_import): Likewise. If libtool is not used, show this through
68162         an option --no-libtool.
68163         (func_create_testdir): Update.
68164
68165 2006-07-29  Bruno Haible  <bruno@clisp.org>
68166
68167         * gnulib-tool (func_import): Extend error message about missing
68168         --doc-base.
68169
68170 2006-07-29  Bruno Haible  <bruno@clisp.org>
68171
68172         * gnulib-tool (func_import): Don't create the $docbase directory if
68173         there is no file to store there.
68174
68175 2006-07-29  Bruno Haible  <bruno@clisp.org>
68176
68177         * gnulib-tool (autoconf_minversion): If a --dir option is given and
68178         relevant, look for configure.ac there, not in the current directory.
68179         Also use a simple search for AC_PREREQ, not "autoconf --trace".
68180
68181 2006-07-29  Bruno Haible  <bruno@clisp.org>
68182
68183         * gnulib-tool (SORT): New variable.
68184         (func_usage): Undocument --assume-autoconf option.
68185         Remove --assume-autoconf option handling.
68186         (autoconf_minversion): Determine from the contents of configure.ac.
68187         (func_import): Remove autoconf_minversion handling.
68188         Suggested by Eric Blake.
68189
68190 2006-07-29  Bruno Haible  <bruno@clisp.org>
68191
68192         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
68193
68194 2006-07-29  Bruno Haible  <bruno@clisp.org>
68195
68196         * config/srclist.txt (*setenv.[ch]): Remove rules.
68197
68198 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68199
68200         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
68201
68202 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68203
68204         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
68205         arpa/inet.h.
68206
68207 2006-07-28  Simon Josefsson  <jas@extundo.com>
68208
68209         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
68210         * modules/inet_pton (Depends-on): Likewise.
68211
68212 2006-07-28  Simon Josefsson  <jas@extundo.com>
68213
68214         * m4/netinet_in_h.m4: New file.
68215
68216 2006-07-28  Simon Josefsson  <jas@extundo.com>
68217
68218         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
68219         #include's.
68220
68221 2006-07-28  Simon Josefsson  <jas@extundo.com>
68222
68223         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
68224         #include's.
68225
68226 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
68227
68228         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
68229         setgid on directories only if they set these bits.
68230         * lib/modechange.h: Remove obsolete comment about masks.
68231
68232 2006-07-28  Eric Blake  <ebb9@byu.net>
68233
68234         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
68235         macro expansion.
68236
68237 2006-07-28  Bruno Haible  <bruno@clisp.org>
68238
68239         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
68240
68241 2006-07-28  Bruno Haible  <bruno@clisp.org>
68242
68243         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
68244
68245 2006-07-28  Bruno Haible  <bruno@clisp.org>
68246
68247         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
68248         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
68249         Define fallbacks.
68250         Avoids link error on FreeBSD 4.x.
68251         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68252
68253         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
68254         encoding.
68255         * lib/mbswidth.c (iswcntrl): Likewise.
68256
68257 2006-07-27  Bruno Haible  <bruno@clisp.org>
68258
68259         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
68260         test.
68261
68262 2006-07-27  Bruno Haible  <bruno@clisp.org>
68263
68264         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
68265         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
68266         defined.
68267
68268 2006-07-26  Eric Blake  <ebb9@byu.net>
68269
68270         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
68271
68272 2006-07-26  Eric Blake  <ebb9@byu.net>
68273
68274         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
68275         like mingw that lack mkstemp.
68276         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
68277         avoid compilation warning on mingw.
68278
68279 2006-07-26  Bruno Haible  <bruno@clisp.org>
68280
68281         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
68282         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
68283         INT_FAST*_MIN, INTPTR_MIN.
68284
68285 2006-07-25  Bruno Haible  <bruno@clisp.org>
68286
68287         * modules/version-etc (Depends-on): Add stdarg.
68288
68289 2006-07-25  Bruno Haible  <bruno@clisp.org>
68290
68291         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
68292         complex commands.
68293
68294 2006-07-25  Bruno Haible  <bruno@clisp.org>
68295
68296         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
68297         defined in <stdarg.h> or config.h.
68298
68299 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
68300
68301         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
68302         (gl_STDIO_SAFER): Remove.
68303
68304 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
68305
68306         * MODULES.html.sh (File stream based Input/Output):
68307         Add fopen-safer, tmpfile-safer; remove stdio-safer.
68308         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
68309         * modules/fopen-safer, modules/tmpfile-safer: New files.
68310         * modules/stdio-safer: Remove.
68311
68312 2006-07-24  Bruno Haible  <bruno@clisp.org>
68313
68314         * modules/tmpdir: New file.
68315         * MODULES.html.sh (File system functions): Add it.
68316
68317 2006-07-24  Bruno Haible  <bruno@clisp.org>
68318
68319         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
68320         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
68321
68322 2006-07-24  Bruno Haible  <bruno@clisp.org>
68323
68324         * modules/clean-temp: New file.
68325
68326 2006-07-24  Bruno Haible  <bruno@clisp.org>
68327
68328         * m4/tmpdir.m4: New file, from GNU gettext.
68329
68330 2006-07-24  Bruno Haible  <bruno@clisp.org>
68331
68332         * lib/tmpdir.h: New file, from GNU gettext.
68333         * lib/tmpdir.c: New file, from GNU gettext.
68334
68335 2006-07-24  Bruno Haible  <bruno@clisp.org>
68336
68337         * lib/clean-temp.h: New file, from GNU gettext.
68338         * lib/clean-temp.c: New file, from GNU gettext.
68339
68340 2006-07-23  Eric Blake  <ebb9@byu.net>
68341
68342         * modules/stdio-safer (Files): Add tmpfile-safer.c.
68343         (Depends-on): Add binary-io.
68344
68345 2006-07-23  Eric Blake  <ebb9@byu.net>
68346
68347         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
68348
68349 2006-07-23  Eric Blake  <ebb9@byu.net>
68350
68351         * lib/tmpfile-safer.c: New file.
68352         * lib/stdio-safer.h (fopen_safer): Add prototype.
68353         * lib/stdio--.h (tmpfile): Make safer.
68354
68355 2006-07-23  Bruno Haible  <bruno@clisp.org>
68356
68357         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
68358         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
68359         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
68360         gl_linked_remove_at): Use it.
68361
68362 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68363         and Simon Josefsson <jas@extundo.com>
68364
68365         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
68366
68367         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
68368
68369 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68370
68371         * modules/close-stream: New file.
68372         * modules/closeout (Description): Make it clear that it exits
68373         with a diagnostic on error.
68374         (Depends-on): Add close-stream.  Remove fpending, stdbool.
68375         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
68376
68377 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68378
68379         * m4/close-stream.m4: New file.
68380
68381 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68382
68383         * lib/close-stream.c, lib/close-stream.h: New files.
68384
68385 2006-07-22  Bruno Haible  <bruno@clisp.org>
68386
68387         Merge from GNU gettext 0.15.
68388
68389         2006-05-01  Bruno Haible  <bruno@clisp.org>
68390
68391                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
68392
68393         2006-07-22  Bruno Haible  <bruno@clisp.org>
68394
68395                 * modules/javaversion: New file.
68396                 * MODULES.html.sh (Java): Add javaversion.
68397
68398         2006-03-12  Bruno Haible  <bruno@clisp.org>
68399
68400                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
68401
68402         2005-12-04  Bruno Haible  <bruno@clisp.org>
68403
68404                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
68405                 (untested).
68406
68407         2006-06-21  Bruno Haible  <bruno@clisp.org>
68408
68409                 Avoid warnings from recent versions of mcs.
68410                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
68411                 -o, -L, -r any more. Use options documented since mcs-1.0
68412                 instead. Similarly for -g.
68413
68414         2005-12-04  Bruno Haible  <bruno@clisp.org>
68415
68416                 * build-aux/csharpcomp.sh.in: Suffix for resources is
68417                 .resources, not .resource.
68418
68419         2005-07-09  Bruno Haible  <bruno@clisp.org>
68420
68421                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
68422                 add a .dll suffix.
68423                 Reported by Mark Junker <mjscod@gmx.de>.
68424
68425         2006-07-22  Bruno Haible  <bruno@clisp.org>
68426
68427                 * modules/gettext: Upgrade to gettext-0.15.
68428                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
68429                 m4/visibility.m4.
68430                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
68431
68432 2006-07-22  Bruno Haible  <bruno@clisp.org>
68433
68434         Merge from GNU gettext 0.15.
68435
68436         2006-03-25  Bruno Haible  <bruno@clisp.org>
68437
68438                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
68439
68440         2006-07-21  Bruno Haible  <bruno@clisp.org>
68441
68442                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
68443                 "1.1".
68444
68445         2006-05-09  Bruno Haible  <bruno@clisp.org>
68446
68447                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
68448                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
68449                 for the conftestver execution.
68450
68451         2006-05-01  Bruno Haible  <bruno@clisp.org>
68452
68453                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
68454                 optional target-version argument. Verify that the compiler
68455                 groks source of the specified source-version, or add -source
68456                 option as necessary. Verify that the compiler produces
68457                 bytecode in the specified target-version, or add -target and
68458                 -source options as necessary. Make the result of the test
68459                 available as variable CONF_JAVAC. Also log error output in
68460                 config.log.
68461
68462         2006-03-11  Bruno Haible  <bruno@clisp.org>
68463
68464                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
68465
68466         2006-05-09  Bruno Haible  <bruno@clisp.org>
68467
68468                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
68469                 CLASSPATH_SEPARATOR to a semicolon.
68470
68471         2006-03-12  Bruno Haible  <bruno@clisp.org>
68472
68473                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
68474                 available as variable CONF_JAVA, for subsequent autoconf
68475                 tests. Also log error output in config.log.
68476
68477         2006-07-19  Bruno Haible  <bruno@clisp.org>
68478
68479                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
68480                 that getline works on glibc2 systems. Needed to avoid trouble
68481                 in relocatable.c.
68482                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
68483
68484         2005-12-04  Bruno Haible  <bruno@clisp.org>
68485
68486                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
68487                 launcher (untested).
68488
68489         2005-12-04  Bruno Haible  <bruno@clisp.org>
68490
68491                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
68492
68493         2006-07-22  Bruno Haible  <bruno@clisp.org>
68494
68495                 * gettext.m4: Update from GNU gettext-0.15.
68496                 * nls.m4: Likewise.
68497                 * po.m4: Likewise.
68498                 * inttypes-pri.m4: Likewise.
68499                 * inttypes-h.m4: Renamed from inttypes.m4.
68500                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
68501
68502 2006-07-22  Bruno Haible  <bruno@clisp.org>
68503
68504         Merge from GNU gettext 0.15.
68505
68506         2005-07-05  Bruno Haible  <bruno@clisp.org>
68507
68508                 * printf-args.c (printf_fetchargs): Work around broken
68509                 definition of wint_t on mingw.
68510
68511         2005-02-12  Bruno Haible  <bruno@clisp.org>
68512
68513                 * xallocsa.h: Add extern "C" for C++.
68514
68515         2006-05-17  Bruno Haible  <bruno@clisp.org>
68516
68517                 Cygwin portability.
68518                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
68519
68520         2006-04-30  Bruno Haible  <bruno@clisp.org>
68521
68522                 * progreloc.c: Include <mach-o/dyld.h> if available.
68523                 (find_executable): Use _NSGetExecutablePath when possible.
68524
68525         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68526
68527                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
68528                 function.
68529
68530         2005-12-29  Bruno Haible  <bruno@clisp.org>
68531
68532                 * progreloc.c (set_program_name_and_installdir): Fix
68533                 compilation error.
68534
68535         2005-12-04  Bruno Haible  <bruno@clisp.org>
68536
68537                 Cygwin portability.
68538                 * progreloc.c: Include <windows.h> also on Cygwin.
68539                 (find_executable): Add support for Cygwin.
68540                 (set_program_name_and_installdir): Handle also platforms with
68541                 nonempty EXEEXT.
68542
68543         2006-07-11  Bruno Haible  <bruno@clisp.org>
68544
68545                 * javacomp.c: Fix a comment.
68546                 Reported by Jim Meyering.
68547
68548         2006-04-30  Bruno Haible  <bruno@clisp.org>
68549
68550                 * javacomp.h (compile_java_class): Add source_version,
68551                 target_version arguments.
68552                 * javacomp.c: Rewritten to choose only a compiler that
68553                 respects the specified source_version and target_version.
68554
68555         2006-06-27  Bruno Haible  <bruno@clisp.org>
68556
68557                 Assume correct S_ISDIR macro.
68558                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
68559
68560         2006-07-22  Bruno Haible  <bruno@clisp.org>
68561
68562                 * javaversion.h: New file, from GNU gettext.
68563                 * javaversion.c: New file, from GNU gettext.
68564                 * javaversion.java: New file, from GNU gettext.
68565                 * javaversion.class: New file, from GNU gettext.
68566
68567         2006-05-17  Bruno Haible  <bruno@clisp.org>
68568
68569                 Cygwin portability.
68570                 * javaexec.c (execute_java_class): Test for jview program
68571                 also on Cygwin.
68572
68573         2006-04-09  Bruno Haible  <bruno@clisp.org>
68574
68575                 * fatal-signal.c: Don't include string.h.
68576                 (at_fatal_signal): Use a copying loop instead of memcpy.
68577
68578         2005-12-04  Bruno Haible  <bruno@clisp.org>
68579
68580                 * csharpexec.c: Add support for 'clix' launcher (untested).
68581                 (execute_csharp_using_sscli): New function.
68582                 (execute_csharp_program): Call it.
68583
68584         2006-06-21  Bruno Haible  <bruno@clisp.org>
68585
68586                 Avoid warnings from recent versions of mcs.
68587                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
68588                 -o, -L, -r any more. Use options documented since mcs-1.0
68589                 instead. Similarly for -g.
68590
68591         2005-07-09  Bruno Haible  <bruno@clisp.org>
68592
68593                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
68594                 add a .dll suffix.
68595                 Reported by Mark Junker <mjscod@gmx.de>.
68596
68597         2006-06-17  Bruno Haible  <bruno@clisp.org>
68598
68599                 * config.charset: Update for NetBSD 3.0.
68600
68601         2006-05-17  Bruno Haible  <bruno@clisp.org>
68602
68603                 Cygwin portability.
68604                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
68605
68606         2006-05-16  Bruno Haible  <bruno@clisp.org>
68607
68608                 * localcharset.c [CYGWIN]: Include <windows.h>.
68609                 (get_charset_aliases): For Cygwin, return the same CPxxx
68610                 aliases list as under WIN32.
68611                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
68612                 the environment variables. Fall back to GetACP().
68613
68614         2006-04-05  Bruno Haible  <bruno@clisp.org>
68615
68616                 * config.charset: Update Juan Manuel Guerrero's address.
68617
68618         2005-02-12  Bruno Haible  <bruno@clisp.org>
68619
68620                 * allocsa.h: Add extern "C" for C++.
68621
68622         2005-02-10  Bruno Haible  <bruno@clisp.org>
68623
68624                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
68625                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
68626
68627         2006-07-22  Bruno Haible  <bruno@clisp.org>
68628
68629                 * gettext.h: Update to GNU gettext-0.15.
68630
68631 2006-07-22  Bruno Haible  <bruno@clisp.org>
68632
68633         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
68634         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
68635         lib-prefix.m4, longdouble.m4, ssize_t.m4.
68636
68637 2006-07-21  Eric Blake  <ebb9@byu.net>
68638
68639         * modules/stdlib-safer: New file.
68640         * MODULES.html.sh (File stream based Input/Output): Add
68641         stdlib-safer.
68642
68643 2006-07-21  Eric Blake  <ebb9@byu.net>
68644
68645         * lib/stdlib-safer.h: New file from coreutils, required by
68646         stdlib--.h.
68647
68648 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
68649
68650         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
68651
68652 2006-07-20  Bruno Haible  <bruno@clisp.org>
68653
68654         * gnulib-tool: Recognize new option --assume-autoconf.
68655         (autoconf_minversion): New variable.
68656         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
68657
68658 2006-07-20  Bruno Haible  <bruno@clisp.org>
68659
68660         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
68661
68662 2006-07-19  Derek R. Price  <derek@ximbiot.com>
68663
68664         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
68665         Reindent and repaginate.
68666
68667 2006-07-19  Derek Price  <derek@ximbiot.com>
68668
68669         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
68670         Correct grammar.
68671
68672 2006-07-17  Bruno Haible  <bruno@clisp.org>
68673
68674         * modules/list: New file.
68675         * modules/array-list: New file.
68676         * modules/carray-list, modules/carray-list-tests: New files.
68677         * modules/linked-list, modules/linked-list-tests: New files.
68678         * modules/avltree-list, modules/avltree-list-tests: New files.
68679         * modules/rbtree-list, modules/rbtree-list-tests: New files.
68680         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
68681         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
68682         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
68683         * modules/oset: New file.
68684         * modules/array-oset: New file.
68685         * modules/avltree-oset, modules/avltree-oset-tests: New files.
68686         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
68687         * tests/test-carray_list.c: New file.
68688         * tests/test-linked_list.c: New file.
68689         * tests/test-avltree_list.c: New file.
68690         * tests/test-rbtree_list.c: New file.
68691         * tests/test-linkedhash_list.c: New file.
68692         * tests/test-avltreehash_list.c: New file.
68693         * tests/test-rbtreehash_list.c: New file.
68694         * tests/test-avltree_oset.c: New file.
68695         * tests/test-rbtree_oset.c: New file.
68696         * MODULES.html.sh (Container data structures): New section.
68697
68698 2006-07-17  Bruno Haible  <bruno@clisp.org>
68699
68700         * m4/gl_list.m4: New file.
68701
68702 2006-07-17  Bruno Haible  <bruno@clisp.org>
68703
68704         * lib/gl_list.h: New file.
68705         * lib/gl_list.c: New file.
68706         * lib/gl_array_list.h: New file.
68707         * lib/gl_array_list.c: New file.
68708         * lib/gl_carray_list.h: New file.
68709         * lib/gl_carray_list.c: New file.
68710         * lib/gl_linked_list.h: New file.
68711         * lib/gl_linked_list.c: New file.
68712         * lib/gl_anylinked_list1.h: New file.
68713         * lib/gl_anylinked_list2.h: New file.
68714         * lib/gl_avltree_list.h: New file.
68715         * lib/gl_avltree_list.c: New file.
68716         * lib/gl_anyavltree_list1.h: New file.
68717         * lib/gl_anyavltree_list2.h: New file.
68718         * lib/gl_rbtree_list.h: New file.
68719         * lib/gl_rbtree_list.c: New file.
68720         * lib/gl_anyrbtree_list1.h: New file.
68721         * lib/gl_anyrbtree_list2.h: New file.
68722         * lib/gl_anytree_list1.h: New file.
68723         * lib/gl_anytree_list2.h: New file.
68724         * lib/gl_linkedhash_list.h: New file.
68725         * lib/gl_linkedhash_list.c: New file.
68726         * lib/gl_anyhash_list1.h: New file.
68727         * lib/gl_anyhash_list2.h: New file.
68728         * lib/gl_avltreehash_list.h: New file.
68729         * lib/gl_avltreehash_list.c: New file.
68730         * lib/gl_rbtreehash_list.h: New file.
68731         * lib/gl_rbtreehash_list.c: New file.
68732         * lib/gl_anytreehash_list1.h: New file.
68733         * lib/gl_anytreehash_list2.h: New file.
68734
68735         * lib/gl_oset.h: New file.
68736         * lib/gl_oset.c: New file.
68737         * lib/gl_array_oset.h: New file.
68738         * lib/gl_array_oset.c: New file.
68739         * lib/gl_avltree_oset.h: New file.
68740         * lib/gl_avltree_oset.c: New file.
68741         * lib/gl_rbtree_oset.h: New file.
68742         * lib/gl_rbtree_oset.c: New file.
68743         * lib/gl_anytree_oset.h: New file.
68744
68745 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
68746
68747         * m4/mkancesdirs.m4: New file.
68748         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
68749         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
68750         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
68751         it.
68752
68753 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
68754
68755         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
68756         * lib/mkancesdirs.h: New files.
68757         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
68758         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
68759         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
68760         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
68761         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
68762         callers changed.  Revamp internals significantly, by not
68763         attempting to create directories that are temporarily more
68764         permissive than the final results.  Do not attempt to use
68765         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
68766         This removes some race conditions, fixes some bugs, and simplifies
68767         things.  Use new dirchownmod function to do owner and mode changes.
68768         * lib/mkdir-p.h: Likewise.
68769         * lib/modechange.c (octal_to_mode): New function.
68770         (struct mode_change): New member mentioned.
68771         (make_node_op_equals): New arg mentioned.  All callers changed.
68772         (mode_compile): Keep track of which mode bits the user has explicitly
68773         mentioned.
68774         (mode_adjust): New arg DIR, so that we implement the X op correctly.
68775         New arg PMODE_BITS, to keep track of which mode bits the user
68776         mentioned; it treats S_ISUID and S_ISGID speciall.
68777         All callers changed.
68778         * lib/modechange.h: Likewise.
68779
68780 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
68781
68782         * MODULES.html.sh: Add mkancestors.
68783         * modules/mkancesdirs: New module.
68784         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
68785         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
68786         The chdir-safer and afs files are now orphans; I'll remove them
68787         unless someone speaks up.
68788         Add lib/dirchownmod.c, lib/dirchownmod.h.
68789         (Depends-on): Remove alloca, chown, save-cwd, dirname.
68790         Add lchown, mkancesdirs.
68791         (Maintainer): Add self.
68792
68793 2006-07-15  Karl Berry  <karl@gnu.org>
68794
68795         * gnulib-tool: help message wording/arrangement.
68796
68797 2006-07-14  Simon Josefsson  <jas@extundo.com>
68798
68799         * doc/gnulib.texi (Libtool and Windows): New section.
68800
68801 2006-07-12  Simon Josefsson  <jas@extundo.com>
68802
68803         * modules/gendocs (License): Fix license, approved by Karl.
68804
68805 2006-07-12  Eric Blake  <ebb9@byu.net>
68806
68807         * MODULES.html.sh: Add gendocs.
68808
68809 2006-07-11  Eric Blake  <ebb9@byu.net>
68810
68811         * modules/fdl: New module, to install doc/fdl.texi.
68812         * MODULES.html.sh: Add new section for documentation modules.
68813         * gnulib-tool: Avoid space-tab.
68814         (--doc-base): New option, to manage files from doc.
68815
68816 2006-07-11  Eric Blake  <ebb9@byu.net>
68817
68818         * m4/absolute-header.m4: Fix comments to match recent change.
68819
68820 2006-07-11  Eric Blake  <ebb9@byu.net>
68821
68822         * gnulib-tool: List --doc-base before --tests-base.
68823
68824 2006-07-11  Derek R. Price  <derek@ximbiot.com>
68825
68826         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
68827
68828 2006-07-11  Bruno Haible  <bruno@clisp.org>
68829
68830         * README: Mention where to put documentation.
68831
68832 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68833
68834         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
68835
68836 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
68837
68838         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
68839         to stdint.m4.
68840
68841 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
68842
68843         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
68844         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
68845         "no/such/file/stdint.h" when there is no such file, so that
68846         the resulting C code can be parsed by dodgy compilers.
68847         Problems reported by Bob Proulx.
68848
68849 2006-07-10  Derek R. Price  <derek@ximbiot.com>
68850
68851         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
68852         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
68853         macros into the GNU _D_EXACT_NAMLEN.
68854         * lib/savedir.c:  Likewise.
68855         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
68856
68857 2006-07-10  Derek R. Price  <derek@ximbiot.com>
68858         and Paul Eggert  <eggert@cs.ucla.edu>
68859
68860         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
68861         * m4/savedir.m4:
68862         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
68863         macros into the GNU _D_EXACT_NAMLEN.
68864
68865 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68866
68867         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
68868         around the absolute name, to work around a problem with the HP-UX
68869         11.23 native C compiler, reported by Bob Proulx.
68870
68871 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68872
68873         * doc/maintain.texi, make-stds.texi: Sync from
68874         <http://savannah.gnu.org/projects/gnustandards>.
68875
68876 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
68877
68878         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
68879
68880 2006-07-09  Jim Meyering  <jim@meyering.net>
68881
68882         * m4/glob.m4: Remove a doubled word in a comment.
68883
68884 2006-07-09  Jim Meyering  <jim@meyering.net>
68885
68886         * lib/argp-pv.c: Remove a doubled word in a comment.
68887         * lib/check-version.c (check_version): Likewise.
68888         * lib/javacomp.c (compile_java_class): Likewise.
68889
68890 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
68891
68892         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
68893         for the benefit of people using Autoconf 2.60.  If you want to
68894         support older Autoconf versions you can copy m4/onceonly_2_57.m4
68895         (or m4/onceonly.m4, if pre-2.57) manually.
68896
68897 2006-07-08  Jim Meyering  <jim@meyering.net>
68898
68899         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
68900         comment.
68901         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
68902         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
68903         comment.
68904
68905 2006-07-08  Jim Meyering  <jim@meyering.net>
68906
68907         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
68908
68909 2006-07-07  Simon Josefsson  <jas@extundo.com>
68910
68911         * tests/test-crc.c: Change expected crc value, the test vector
68912         were probably computed using the old broken crc.c?
68913
68914 2006-07-06  Simon Josefsson  <jas@extundo.com>
68915
68916         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
68917         now the canonical place for the M4 file).
68918
68919         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
68920         from the sys_socket dependency now.
68921
68922         * modules/inet_pton (Files): Ditto.
68923
68924         * modules/inet_ntop (Files): Ditto.
68925
68926 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68927
68928         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
68929         not gl_PREREQ_GETUSERSHELL.
68930
68931 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68932
68933         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
68934         with only one argument, for Autoconf 2.60.
68935         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
68936         expand to nothing, so add a shell command to avoid syntax error.
68937         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
68938
68939 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68940
68941         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
68942
68943 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68944
68945         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
68946         no longer needed.  Check for isblank decl.
68947         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
68948         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
68949         of existence.
68950
68951 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68952
68953         * lib/getloadavg.c: Use __VMS, not VMS.
68954         * lib/getopt.c: Likewise.
68955         * lib/getpagesize.h: Likewise.
68956         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
68957         and probably does not work.
68958
68959 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
68960
68961         * lib/.cppi-disable: Add wcwidth.
68962         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
68963         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
68964         (ISGRAPH): Remove.  All uses changed to isgraph.
68965         (FOLD) [!defined _LIBC]: Remove special case.
68966         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
68967         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
68968         HAVE_ISBLANK.
68969         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
68970         case.
68971
68972 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
68973
68974         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
68975         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
68976         brackets.  Other minor changes to suppress some compiler
68977         warnings.
68978
68979 2006-07-06  Derek R. Price  <derek@ximbiot.com>
68980         and Paul Eggert  <eggert@cs.ucla.edu>
68981
68982         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
68983         of invoking obsolescent AC_HEADER_DIRENT macro.
68984         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
68985         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
68986         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
68987         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
68988         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
68989         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
68990         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
68991         * m4/readdir.m4: Remove; no longer needed.
68992
68993 2006-07-06  Derek R. Price  <derek@ximbiot.com>
68994         and Paul Eggert  <eggert@cs.ucla.edu>
68995
68996         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
68997         Don't worry about this obsolete case any more.
68998         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
68999         directories.
69000         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
69001         worry about this obsolete case any more.
69002         * lib/fts.c: Likewise.
69003         * lib/getcwd.c: Likewise.
69004         * lib/glob.h: Likewise.
69005         * lib/savedir.c: Likewise.
69006
69007 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69008
69009         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
69010         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
69011         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
69012         needed.
69013         All uses removed.
69014         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69015         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
69016         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
69017         needed.
69018         * m4/getdate.m4 (gl_GETDATE): Likewise.
69019         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
69020         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
69021         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
69022         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69023         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
69024         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69025         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
69026         needed.
69027
69028 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69029
69030         * lib/memcasecmp.c: Include <limits.h>.
69031         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
69032         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
69033         Don't assume isdigit succeeds only on '0' through '9'.
69034
69035 2006-07-05  Eric Blake  <ebb9@byu.net>
69036
69037         * modules/getaddrinfo (Depends-on): Add snprintf.
69038
69039 2006-07-05  Eric Blake  <ebb9@byu.net>
69040
69041         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
69042         to avoid 'header present but could not be compiled' on cygwin.
69043
69044 2006-07-05  Eric Blake  <ebb9@byu.net>
69045
69046         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
69047         missing from netdb.h.
69048         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
69049
69050 2006-07-05  Derek R. Price  <derek@ximbiot.com>
69051
69052         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
69053         no longer needed.
69054         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
69055         * m4/getdate.m4 (gl_GETDATE): Likewise.
69056         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
69057         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
69058         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
69059         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69060         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69061
69062 2006-07-05  Derek R. Price  <derek@ximbiot.com>
69063
69064         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
69065         All uses of is_space replaced by isspace.
69066         * lib/exit.h: Don't talk about STDC_HEADERS.
69067         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
69068         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
69069         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
69070         replaced by isprint etc.
69071         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
69072         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
69073         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
69074         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
69075         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
69076         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
69077
69078 2006-07-05  Bruno Haible  <bruno@clisp.org>
69079
69080         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
69081         the function exists, before testing against AIX.
69082         Reported by Martin Lambers <marlam@marlam.de>.
69083
69084 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
69085
69086         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
69087         From Mark D. Baushke.
69088
69089 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
69090
69091         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
69092         to the absolute name, not just one, to bypass Sun C 5.8's
69093         "warning: #include of /usr/include/... may be non-portable".
69094
69095 2006-07-04  Eric Blake  <ebb9@byu.net>
69096
69097         * modules/dirname-tests: New test module.
69098         * tests/test-dirname.c: New file, replacing dirname.c
69099         TEST_DIRNAME section that was recently deleted.
69100
69101 2006-07-04  Bruno Haible  <bruno@clisp.org>
69102
69103         Assume ANSI C header files and <ctype.h> functions.
69104         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
69105         (mbsnwidth): Use isprint, iscntrl instead.
69106
69107 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69108
69109         Merge from coreutils.
69110         * MODULES.html.sh: Add xstrtold.
69111         * modules/xstrtold: New file.
69112         * modules/cycle-check (Files): Add lib/same-inode.h.
69113         * modules/dirname (Files): Add m4/double-slash-root.m4.
69114         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
69115         * modules/mkdir-p (Files): Add lib/same-inode.h.
69116         * modules/same (Files): Add lib/same-inode.h.
69117
69118 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69119
69120         * m4/absolute-header.m4: Renamed from full-header-path.m4.
69121         This is to keep the terminology clean; POSIX talks about
69122         "absolute pathnames", not "full pathnames", but the GNU
69123         Coding Standards say to use "path" for something else;
69124         so use "absolute" to keep both sides happy.
69125         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
69126         Set gl_absolute_header, not gl_full_header_path.
69127         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
69128         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
69129         All uses changed.
69130
69131         Merge from coreutils.
69132
69133         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
69134
69135         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
69136         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
69137         want to require the building of c-strtod.o.
69138         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
69139         needs -lm directly.
69140         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
69141
69142         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
69143
69144         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
69145         --as-needed option if available.  Problem reported by Albert Chin in
69146         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
69147         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
69148         cc merely issues a bunch of annoying warnings for --as-needed
69149         (this problem was reported by Bob Proulx).  Also, try linking with
69150         -lm to detect a bug in binutils 2.16 (this problem was reported
69151         by Ralf Wildenhues).
69152
69153         2006-06-18  Jim Meyering  <jim@meyering.net>
69154
69155         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
69156         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
69157         macro.
69158         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
69159         also check for glibc-2.4's abort-inducing bug.
69160
69161         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
69162         Low-probability clean-up should be to use rmdir to get rid of
69163         the just-created directory, not unlink.
69164
69165         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
69166         configure fail, and request a bug report to inform us about it.
69167         Add a comment that, barring reports to the contrary, in 2007 we'll
69168         assume ftruncate is universally available.
69169
69170         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
69171
69172         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
69173
69174         2006-03-12  Jim Meyering  <jim@meyering.net>
69175
69176         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
69177         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
69178         * m4/same.m4 (gl_SAME): Likewise.
69179         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
69180
69181         2006-03-11  Eric Blake  <ebb9@byu.net>
69182
69183         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
69184         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
69185         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
69186         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
69187
69188 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69189
69190         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
69191         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
69192         reported by Mark D. Baushke, one in
69193         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
69194
69195         Merge from coreutils.
69196
69197         * lib/.cppi-disable: Add stdint_.h.
69198         * lib/.cvsignore: Add stdint.h.
69199
69200         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
69201
69202         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
69203         both double and long double versions.
69204         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
69205         * lib/xstrtold.c: New file.
69206         * lib/xstrtod.h (xstrtold): New decl.
69207
69208         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
69209
69210         * lib/filemode.c (setst): Remove.
69211         (strmode): Rewrite to avoid setst.  This makes the code shorter,
69212         (arguably) clearer, and the generated code is a bit smaller on my
69213         Debian GNU/Linux stable x86 host.
69214
69215         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
69216
69217         * lib/filemode.c: Include "filemode.h" first, to test the interface.
69218         Assume that filemode.h includes sys/types.h and sys/stat.h.
69219         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
69220         (ftypelet): Reorder to put common cases first, for efficiency.
69221         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
69222         to do 'M'.
69223         (strmode): Renamed from mode_string, and now stores 12 bytes instead
69224         of 10, for compatibility with FreeBSD.  All callers changed.
69225         (filemodestring): Now stores 12 bytes instead of 10, and sets file
69226         types that can't be deduced solely from st_mode.  First arg is now a
69227         const pointer.
69228         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
69229         (strmode): Renamed from mode_string.
69230         (filemodestring): New decl.
69231         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
69232         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
69233         needed.
69234         (S_ISPORT, S_ISWHT): New macros, if not already defined.
69235
69236         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
69237
69238         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
69239         fsusage.h now does that.  Include fsusage.h first, to test interface.
69240         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
69241         at most one method (the old code could have generated decls that
69242         didn't conform to C89, not that this was ever exercised).
69243         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
69244
69245         2006-03-19  Jim Meyering  <jim@meyering.net>
69246
69247         Work even in a chroot where d_ino values for entries in "/"
69248         don't match the stat.st_ino values for the same names.
69249         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
69250         number, iterate through all entries again, using lstat instead.
69251         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
69252         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
69253
69254         * lib/getcwd.c (__getcwd): Clarify a comment.
69255         Use memcpy in place of a call to strcpy.
69256
69257         2006-03-12  Jim Meyering  <jim@meyering.net>
69258
69259         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
69260         matches that of the current directory (which we're about to chdir ".."
69261         out of), then save the dev-ino of the parent, instead.
69262
69263         * lib/same-inode.h (SAME_INODE): New file/macro.
69264         * lib/chdir-safer.c (SAME_INODE): Remove definition.
69265         Include "same-inode.h", instead.
69266         * lib/same.c: Likewise.
69267         * lib/cycle-check.h: Include "same-inode.h".
69268         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
69269         * lib/cycle-check.c (SAME_INODE): Remove definition.
69270         * lib/root-dev-ino.h: Include "same-inode.h".
69271
69272         2006-03-11  Eric Blake  <ebb9@byu.net>
69273
69274         * lib/same.c (same_name): s/base_name/last_component/
69275         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
69276         * lib/filenamecat.c (file_name_concat): Likewise.
69277
69278         2006-03-11  Eric Blake  <ebb9@byu.net>,
69279                     Paul Eggert  <eggert@cs.ucla.edu>
69280
69281         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
69282         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
69283         drive prefix.
69284         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
69285         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
69286         (last_component): New method.
69287         * lib/dirname.c (dir_len): Determine when drive letters need a
69288         subsequent slash.  Preserve // when it is special.
69289         (dir_name): Don't append dot when drive letter is absolute.
69290         [TEST_DIRNAME]: Move into a full-blown gnulib test.
69291         * lib/basename.c (base_name): New semantics - malloc the result.
69292         Preserve // when it is special.  Preserve relative files that look
69293         like drive letters.
69294         (base_len): Preserve // when it is special.
69295         (last_component): New method, similar to old base_name semantics.
69296         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
69297         base_name.  Strip redundant slashes from ///.
69298
69299 2006-07-03  Jim Meyering  <jim@meyering.net>
69300
69301         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
69302         macro is used before the first cycle_check call.
69303
69304 2006-07-03  Eric Blake  <ebb9@byu.net>
69305
69306         * modules/dirname (Depends-on): Add xstrndup.
69307
69308 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
69309
69310         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
69311         test cases, so that config.log is a bit easier to follow.
69312
69313 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
69314
69315         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
69316         both are 64 bits, since this seems to be the tradition, and this
69317         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
69318         we ever run into a host that prefers long long to long in this
69319         case, we'll need another configure-time test.  Problem reported by
69320         Jim Meyering.
69321
69322 2006-07-02  Eric Blake  <ebb9@byu.net>
69323
69324         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
69325
69326 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69327
69328         * modules/inttypes (Depends-on): No longer depends on stdint.
69329         * modules/stdint (Description): Say more about assumptions.
69330         Say that the fast types might differ.  Say macros are used.
69331         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
69332         (Makefile.am): Revise list of substituted symbols to match
69333         new stdint.m4.
69334         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
69335         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
69336         * tests/test-stdint.c (verify_same_types)
69337         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
69338         the code conforms to C99/C89.
69339         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
69340         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
69341
69342 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69343
69344         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
69345         but fix a bug, by requiring at least 64 bits.
69346         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
69347         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
69348         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
69349         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
69350
69351         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
69352         changes.  Make 2.59 a prerequisite.  Check and substitute for
69353         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
69354         inttypes.h.  Do not use special include files; just use the
69355         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
69356         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
69357         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
69358         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
69359         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
69360         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
69361         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
69362         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
69363         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
69364         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
69365         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
69366         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
69367         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
69368         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
69369         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
69370         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
69371         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
69372         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
69373         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
69374         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
69375         WINT_MAX.  Check for C99 conformance more strictly, by detecting
69376         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
69377         not check for things that C99 does not require, e.g., int8_t.  If
69378         a test isn't needed unless <stdint.h> isn't working, and is
69379         unlikely to be needed for any other reason, then don't do it
69380         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
69381         size_t, since we assume C89 freestanding at least.  Do not check
69382         for sig_atomic_t, wchar_t, or wint_t, since the code now does
69383         the right thing even if the types are not defined.  Instead use:
69384         (gl_STDINT_TYPE_PROPERTIES): New macro.
69385         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
69386         testing whether <sys/types.h> clashes, as Autoconf does this for
69387         us now.  All uses removed.
69388         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
69389         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
69390         (gl_CHECK_TYPE_SAME):
69391         Remove; no longer needed.
69392         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
69393         exists, since we'll return 0 anyway in that case.
69394         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
69395
69396 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69397
69398         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
69399         possible collision with system files.
69400         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
69401         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
69402         WCHAR_MIN and WCHAR_MAX in this case.
69403         (<stddef.h>): Do not include; no longer needed.
69404         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
69405         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
69406         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
69407         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
69408         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
69409         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
69410         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
69411         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
69412         !defined(__c99))]: Include in this case too, since it's harmless
69413         now.
69414         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
69415         dangerous to do so.
69416         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
69417         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
69418         (_STDINT_MIN, _STDINT_MAX): New macros.
69419         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
69420         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
69421         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
69422         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
69423         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
69424         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
69425         macros, not typedefs; this simplifies things quite a bit.
69426         Use long int for all types narrower than int64_t.
69427         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
69428         Define in terms of long long int or int64_t or long int,
69429         not int64_t or int32_t.  This saves some compile-time testing.
69430         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
69431         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
69432         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
69433         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
69434         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
69435         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
69436         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
69437         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
69438         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
69439         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
69440         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
69441         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
69442         undef any previous version and define our own version, for
69443         simplicity and consistency with the new macros for types.
69444         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
69445         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
69446         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
69447         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
69448         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
69449         @WINT_T_SUFFIX@ to keep things simple here.
69450         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
69451         Simplify by assuming typical 8/16/32/64 host, since we're
69452         already doing that elsewhere anyway.
69453         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
69454         and assume long long int is 64 bits if available.  This
69455         speeds up 'configure'.
69456
69457 2006-07-01  Eric Blake  <ebb9@byu.net>
69458
69459         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
69460         Reported by Andreas Buening.
69461
69462 2006-07-01  Eric Blake  <ebb9@byu.net>
69463
69464         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
69465
69466 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
69467
69468         * lib/getaddrinfo.c: fixed typo
69469
69470 2006-06-29  Jim Meyering  <jim@meyering.net>
69471
69472         * modules/strftime (Maintainer): Add my name, since with the
69473         FPRINTFTIME changes strftime.c has forked from glibc.
69474
69475 2006-06-29  Eric Blake  <ebb9@byu.net>
69476
69477         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
69478
69479 2006-06-29  Eric Blake  <ebb9@byu.net>
69480
69481         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
69482
69483 2006-06-29  Eric Blake  <ebb9@byu.net>
69484
69485         * lib/stat_.h: New file.
69486
69487 2006-06-29  Eric Blake  <ebb9@byu.net>
69488
69489         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
69490         unused static function.
69491
69492 2006-06-29  Eric Blake  <ebb9@byu.net>
69493
69494         * doc/functions.texi (Function Portability): Document missing lstat
69495         on mingw.
69496
69497 2006-06-29  Eric Blake  <ebb9@byu.net>
69498
69499         * MODULES.html.sh: Add sys_stat.
69500         * modules/sys_stat: New module.
69501         * modules/mkstemp (Depends-on): Add sys_stat.
69502
69503 2006-06-29  Derek R. Price  <derek@ximbiot.com>
69504
69505         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
69506
69507 2006-06-29  Derek R. Price  <derek@ximbiot.com>
69508
69509         * m4/c-bs-a.m4: Removed.
69510
69511 2006-06-29  Derek R. Price  <derek@ximbiot.com>
69512
69513         * lib/strftime.c: Assume strftime() exists.
69514
69515 2006-06-29  Derek Price  <derek@ximbiot.com>
69516
69517         * modules/c-bs-a: Removed - \a is C89.
69518         * MODULES.html.sh: Remove c-bs-a.
69519
69520 2006-06-29  Bruno Haible  <bruno@clisp.org>
69521
69522         * modules/wcwidth (License): Change to LGPL.
69523
69524 2006-06-28  Simon Josefsson  <jas@extundo.com>
69525
69526         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
69527         on _WIN32.
69528
69529         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
69530         getnameinfo.
69531
69532 2006-06-28  Simon Josefsson  <jas@extundo.com>
69533
69534         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
69535
69536 2006-06-28  Simon Josefsson  <jas@extundo.com>
69537
69538         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
69539         functions there.  It will succeed on Windows XP, but on Windows
69540         2000 and (presumably) earlier, it will fail, and use the internal
69541         re-implementation.
69542         (use_win32_p): New function.
69543         (getaddrinfo): Use strtoul on servname, to support numeric ports.
69544         Support AI_NUMERICSERV to disable getservbyname.
69545         (getnameinfo): New function, only supports
69546         NI_NUMERICHOST|NI_NUMERICSERV for now.
69547
69548         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
69549         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
69550         getnameinfo.
69551
69552 2006-06-28  Eric Blake  <ebb9@byu.net>
69553
69554         * modules/wcwidth: New file.
69555         * modules/mbchar (Depends-on): Add wcwidth.
69556         * modules/mbswidth (Depends-on): Add wcwidth.
69557         * MODULES.html.sh: Add wcwidth.
69558
69559 2006-06-28  Eric Blake  <ebb9@byu.net>
69560
69561         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
69562         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
69563
69564 2006-06-28  Eric Blake  <ebb9@byu.net>
69565
69566         * lib/xvasprintf.h: Fix comments.
69567
69568 2006-06-28  Eric Blake  <ebb9@byu.net>
69569
69570         * lib/mbchar.h (wcwidth): Include wcwidth.h.
69571         * lib/mbswidth.c (wcwidth): Move from here...
69572         * lib/wcwidth.h: ...to this new file.
69573
69574 2006-06-28  Derek R. Price  <derek@ximbiot.com>
69575
69576         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
69577
69578         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
69579         it's obsolete.
69580         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
69581
69582 2006-06-28  Derek R. Price  <derek@ximbiot.com>
69583
69584         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
69585         Autoconf 2.60 says this stuff was obsolete.
69586
69587 2006-06-28  Bruno Haible  <bruno@clisp.org>
69588
69589         * modules/wcwidth (Files): Add m4/wchar_t.m4.
69590
69591 2006-06-28  Bruno Haible  <bruno@clisp.org>
69592
69593         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
69594         gt_TYPE_WCHAR_T.
69595
69596 2006-06-28  Bruno Haible  <bruno@clisp.org>
69597
69598         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
69599         declaration for wcwidth.
69600         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
69601
69602 2006-06-28  Bruno Haible  <bruno@clisp.org>
69603
69604         * lib/mkdtemp.c [MINGW]: Include <io.h>.
69605         (mkdir): Define using _mkdir.
69606
69607 2006-06-28  Bruno Haible  <bruno@clisp.org>
69608
69609         * lib/getaddrinfo.h: Fix POSIX URL.
69610         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
69611         _WIN32.
69612         (use_win32_p): Make static.
69613         (getaddrinfo): Reject service name if it is empty or does not consist
69614         solely of decimal digits, or if its value is > 65535.
69615         (getnameinfo): Remove useless casts.
69616
69617 2006-06-27  Simon Josefsson  <jas@extundo.com>
69618
69619         * modules/sys_select: New file, suggested by Bruno Haible, Paul
69620         Eggert and Martin Lambers.
69621
69622 2006-06-27  Simon Josefsson  <jas@extundo.com>
69623
69624         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
69625         Eggert and Martin Lambers.
69626
69627 2006-06-27  Bruno Haible  <bruno@clisp.org>
69628
69629         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
69630         result to 0, not to empty.
69631         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
69632
69633 2006-06-27  Bruno Haible  <bruno@clisp.org>
69634
69635         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
69636
69637 2006-06-26  Simon Josefsson  <jas@extundo.com>
69638
69639         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
69640         present.
69641
69642 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
69643
69644         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
69645         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
69646         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
69647
69648 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
69649
69650         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
69651
69652 2006-06-26  Bruno Haible  <bruno@clisp.org>
69653
69654         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
69655
69656 2006-06-26  Bruno Haible  <bruno@clisp.org>
69657
69658         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
69659
69660 2006-06-26  Bruno Haible  <bruno@clisp.org>
69661
69662         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
69663         SGI C compiler in pre-C99 mode.
69664         Suggested by Mark D. Baushke and Larry Jones.
69665
69666 2006-06-26  Bruno Haible  <bruno@clisp.org>
69667
69668         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
69669         WCHAR_MAX.
69670         Reported by Mark D. Baushke and Larry Jones.
69671
69672 2006-06-26  Bruno Haible  <bruno@clisp.org>
69673
69674         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
69675         in pre-C99 mode.
69676         Suggested by Mark D. Baushke and Larry Jones.
69677
69678 2006-06-23  Simon Josefsson  <jas@extundo.com>
69679             Bruno Haible  <bruno@clisp.org>
69680
69681         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
69682         Emit mostlyclean-local rule.
69683         (func_emit_tests_Makefile_am): Likewise.
69684         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
69685
69686 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
69687
69688         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
69689
69690 2006-06-23  Bruno Haible  <bruno@clisp.org>
69691
69692         * tests/test-stdint.c: Update to match ISO C 99 Technical
69693         Corrigendum 1.
69694
69695 2006-06-23  Bruno Haible  <bruno@clisp.org>
69696
69697         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
69698
69699 2006-06-23  Bruno Haible  <bruno@clisp.org>
69700
69701         * lib/stdint_.h: Treat IRIX like OpenBSD.
69702
69703 2006-06-23  Bruno Haible  <bruno@clisp.org>
69704
69705         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
69706         ISO C 99 Technical Corrigendum 1.
69707
69708 2006-06-22  Simon Josefsson  <jas@extundo.com>
69709
69710         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
69711         MinGW.
69712
69713 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69714
69715         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
69716         needed.  Some compiler complained about some of them.  Problem reported
69717         by Larry Jones in
69718         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
69719
69720 2006-06-21  Simon Josefsson  <jas@extundo.com>
69721
69722         * tests/test-getaddrinfo.c: New file.
69723
69724         * modules/getaddrinfo-tests: New file.
69725
69726         * MODULES.html.sh: Add inet_pton.
69727
69728         * modules/inet_pton: New file.
69729
69730 2006-06-21  Simon Josefsson  <jas@extundo.com>
69731
69732         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
69733         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
69734         of using the (limited) gnulib implementation on Windows XP.
69735
69736         * m4/inet_pton.m4: New file.
69737
69738 2006-06-21  Simon Josefsson  <jas@extundo.com>
69739
69740         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
69741         variable.
69742
69743         * lib/socket_.h: Don't define WINVER.
69744
69745         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
69746         slightly modified to work in gnulib.
69747
69748 2006-06-21  Simon Josefsson  <jas@extundo.com>
69749
69750         * doc/gnulib.texi (Windows sockets): Add.
69751
69752 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
69753
69754         * lib/read-file.c (fread_file): Start with buffer allocation of
69755         0 bytes rather than 1 byte; this simplifies the code.
69756         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
69757         code to free buffer and save/restore errno.
69758         (internal_read_file): Remove unused local.
69759
69760 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
69761
69762         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
69763         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
69764         Problem reported by Denis Excoffier in
69765         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
69766
69767 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69768
69769         * modules/sys_socket, modules/socklen: Include sys/types since
69770         FreeBSD 4.x's sys/socket.h needs it.
69771
69772 2006-06-19  Simon Josefsson  <jas@extundo.com>
69773
69774         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
69775
69776 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
69777
69778         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
69779
69780 2006-06-19  Bruno Haible  <bruno@clisp.org>
69781
69782         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
69783         and FULL_PATH_INTTYPES_H in angle brackets.
69784         Reported by Mark D. Baushke <mdb@gnu.org>.
69785
69786 2006-06-17  Eric Blake  <ebb9@byu.net>
69787
69788         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
69789         errno.
69790
69791 2006-06-17  Bruno Haible  <bruno@clisp.org>
69792
69793         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
69794         <sys/inttypes.h>.
69795
69796 2006-06-17  Bruno Haible  <bruno@clisp.org>
69797
69798         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
69799         whether errno is declared. Assume <errno.h> declares errno.
69800
69801 2006-06-17  Bruno Haible  <bruno@clisp.org>
69802
69803         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
69804
69805 2006-06-17  Bruno Haible  <bruno@clisp.org>
69806
69807         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
69808         problem on Solaris 2.5.1.
69809
69810 2006-06-16  Eric Blake  <ebb9@byu.net>
69811
69812         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
69813         * lib/unicodeio.c [!defined errno]: Likewise.
69814         * lib/strtol.c [!defined errno]: Likewise.
69815         * lib/strtod.c [!defined errno]: Likewise.
69816
69817 2006-06-15  Eric Blake  <ebb9@byu.net>
69818
69819         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
69820
69821 2006-06-15  Eric Blake  <ebb9@byu.net>
69822
69823         * config/srclist.txt (ssize_t.m4): Lose sync.
69824
69825 2006-06-15  Bruno Haible  <bruno@clisp.org>
69826
69827         * modules/stdint (Files): Include m4/full-header-path.m4,
69828         m4/size_max.m4, m4/wchar_t.m4.
69829         (Makefile.am): Many more substitutions.
69830         * modules/stdint-tests: New file.
69831         * tests/test-stdint.c: New file.
69832
69833 2006-06-15  Bruno Haible  <bruno@clisp.org>
69834
69835         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
69836         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
69837         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
69838         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
69839         gl_CHECK_TYPE_SAME): New macros.
69840
69841 2006-06-15  Bruno Haible  <bruno@clisp.org>
69842
69843         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
69844
69845 2006-06-15  Bruno Haible  <bruno@clisp.org>
69846
69847         * lib/stdint_.h: Rewritten to be fully auto-configured.
69848         Fixes bug on HP-UX/IA64.
69849
69850 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
69851
69852         * lib/getdate.y (__attribute__): Don't define if already defined.
69853         Problem reported by Larry Jones.
69854         * lib/utimens.c (__attribute__): Likewise.
69855
69856 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
69857
69858         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
69859         reported by Andreas Schwab.
69860
69861 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69862             Bruno Haible  <bruno@clisp.org>
69863
69864         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
69865         check for the declaration of strnlen and a run test that exposes the
69866         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
69867         rpl_strndup.
69868
69869 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69870             Bruno Haible  <bruno@clisp.org>
69871
69872         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
69873
69874 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69875
69876         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
69877         compile test, for Tru64 4.0D.
69878
69879 2006-05-28  Karl Berry  <karl@gnu.org>
69880
69881         * config/srclist.txt (printf-args.c): lose sync.
69882
69883 2006-05-26  Martin Lambers  <marlam@marlam.de>
69884
69885         * lib/getpass.c: Updates the test for the native W32 API, and adds
69886         missing includes, thus fixing compilation warnings.
69887
69888 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
69889
69890         * lib/exclude.c (exclude_fnmatch): New function.
69891         (excluded_file_name): Call exclude_fnmatch.
69892         * lib/exclude.h (excluded_file_name): New prototype
69893
69894 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
69895
69896         * lib/tempname.c (small_open, large_open): New macros.
69897         (__open, __open64) [!_LIBC]: Remove.
69898         (__gen_tempname): Use small_open and large_open instead of __open
69899         and __open64.  This fixes a portability bug on HP-UX 11.11i
69900         reported by Simon Wing-Tang in
69901         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
69902
69903 2006-05-24  Bruno Haible  <bruno@clisp.org>
69904
69905         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
69906         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
69907         Reported by Thorsten Maerz <torte@netztorte.de> via
69908         Aaron Stone <aaron@serendipity.cx>.
69909
69910 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
69911
69912         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
69913         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
69914         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
69915         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
69916         not really conditional on the cache.
69917         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
69918
69919 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
69920
69921         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
69922         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
69923         (my_usleep): Don't mishandle maximum value.
69924
69925 2006-05-19  Jim Meyering  <jim@meyering.net>
69926
69927         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
69928
69929 2006-05-17  Bruno Haible  <bruno@clisp.org>
69930
69931         Cygwin portability.
69932         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
69933
69934 2006-05-17  Bruno Haible  <bruno@clisp.org>
69935
69936         * lib/stdint_.h: Fix recognition of Cygwin.
69937
69938 2006-05-15  Bruno Haible  <bruno@clisp.org>
69939
69940         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
69941         on libtool patch by Ralf Wildenhues.
69942
69943 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
69944
69945         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
69946         test for C99 conformance; (bool) 0.5 is an integer constant
69947         expression, but (bool) -0.5 is not.  Problem reported by Fedor
69948         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
69949
69950 2006-05-11  Simon Josefsson  <jas@extundo.com>
69951
69952         * m4/xvasprintf.m4: Fix obvious typo.
69953
69954 2006-05-11  Jim Meyering  <jim@meyering.net>
69955
69956         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
69957         James Lemley.
69958
69959 2006-05-10  Simon Josefsson  <jas@extundo.com>
69960
69961         * lib/md4.c: Typo fix, update copyright years.
69962         (K1, K2): Don't use L because it turn computations into 64-bit on
69963         64-bit platforms.
69964
69965 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
69966
69967         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
69968         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
69969         unwanted sign propagation, e.g., on hosts with 64-bit int.
69970         There still are some problems with reeelly weird theoretical hosts
69971         (e.g., 33-bit int) but it's not worth worrying about now.
69972         * lib/sha1.c (rol): Likewise.
69973         (K1, K2, K3, K4): Remove unnecessary L suffix.
69974
69975 2006-05-10  Bruno Haible  <bruno@clisp.org>
69976
69977         * lib/des.c: Cast to avoid warnings.
69978
69979 2006-05-09  Bruno Haible  <bruno@clisp.org>
69980
69981         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
69982         (Depends-on): Depend also on xsize, stdarg.
69983         (configure.ac): Add gl_XVASPRINTF.
69984
69985 2006-05-09  Bruno Haible  <bruno@clisp.org>
69986
69987         * m4/xvasprintf.m4: New file.
69988
69989 2006-05-09  Bruno Haible  <bruno@clisp.org>
69990
69991         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
69992         (EOVERFLOW): Define fallback value.
69993         (xstrcat): New function.
69994         (xvasprintf): Recognize the special case of a string concatenation.
69995
69996 2006-05-08  Eric Blake  <ebb9@byu.net>
69997
69998         * gnulib-tool (func_version): Base copyright year on CVS date.
69999         (func_emit_copyright_notice): New function.
70000         (func_emit_lib_Makefile_am): Use it.
70001         (func_emit_tests_Makefile_am): Likewise.
70002         (func_import): Likewise.
70003
70004 2006-05-08  Bruno Haible  <bruno@clisp.org>
70005
70006         * modules/stdarg: New file.
70007         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
70008
70009 2006-05-08  Bruno Haible  <bruno@clisp.org>
70010
70011         * m4/stdarg.m4: New file, from GNU gettext.
70012
70013 2006-05-08  Bruno Haible  <bruno@clisp.org>
70014
70015         * config/srclist.txt (build-aux/config.rpath): different from latest
70016         release.
70017
70018 2006-05-08  Bruno Haible  <bruno@clisp.org>
70019
70020         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
70021
70022 2006-05-05  Jim Meyering  <jim@meyering.net>
70023
70024         * m4/warning.m4: New file, derived from bison's file by the same name.
70025
70026 2006-05-03  Bruno Haible  <bruno@clisp.org>
70027
70028         * lib/stdint_.h: Shorter URL.
70029         * lib/inttypes.h: Likewise.
70030
70031 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70032
70033         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
70034
70035 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70036
70037         * lib/verify.h: Document the internals better.  Most of this change
70038         was written by Bruno Haible.
70039
70040 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70041
70042         * doc/verify.texi: New file, partly based on a proposal by
70043         Bruno Haible.
70044
70045 2006-05-02  Bruno Haible  <bruno@clisp.org>
70046
70047         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
70048         test from here...
70049         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
70050
70051 2006-04-29  Bruno Haible  <bruno@clisp.org>
70052
70053         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
70054         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
70055
70056 2006-04-29  Bruno Haible  <bruno@clisp.org>
70057
70058         * gnulib-tool: Make --update option actually work.
70059
70060 2006-04-29  Bruno Haible  <bruno@clisp.org>
70061
70062         * doc/gcd.texi: New file.
70063         * doc/gnulib.texi: Include it.
70064
70065 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
70066
70067         * lib/getdate.y (get_date): When adding relative date, start with the
70068         initial time, not with the result of the first mktime call.
70069
70070 2006-04-25  Bruno Haible  <bruno@clisp.org>
70071
70072         * gnulib-tool (func_import): Output the include directives in three
70073         blocks, sorted separately.
70074         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70075
70076 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
70077
70078         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
70079         to define main with arguments, for C++.  Reported by Eric Blake.
70080         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
70081         Prefer 'int main ()' to 'int main (void)', for C++.
70082         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
70083         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
70084         for 'main', for C99 and C++.
70085
70086 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
70087
70088         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
70089         Don't assume that exit status -1 is valid.
70090         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70091         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
70092         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
70093         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
70094         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
70095         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
70096         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
70097         functions can be used without declaring them, or that you can
70098         exit with status -1.
70099         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
70100
70101 2006-04-24  Karl Berry  <karl@gnu.org>
70102
70103         * config/srclist.txt (longdouble.m4): sync lost.
70104
70105 2006-04-24  Eric Blake  <ebb9@byu.net>
70106
70107         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
70108
70109 2006-04-24  Bruno Haible  <bruno@clisp.org>
70110
70111         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
70112         poll() implementation in AIX.
70113         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70114
70115 2006-04-24  Bruno Haible  <bruno@clisp.org>
70116
70117         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
70118         assigned exactly once.
70119
70120 2006-04-23  Claudio Fontana  <claudio@gnu.org>
70121             Bruno Haible  <bruno@clisp.org>
70122
70123         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
70124         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
70125         for AM_CPPFLAGS.
70126
70127 2006-04-23  Bruno Haible  <bruno@clisp.org>
70128
70129         * modules/copy-file: Depend on unistd.
70130         * modules/execute: Likewise.
70131         * modules/fatal-signal: Likewise.
70132         * modules/findprog: Likewise.
70133         * modules/mkdtemp : Likewise.
70134         * modules/pipe: Likewise.
70135         * modules/wait-process: Likewise.
70136
70137 2006-04-23  Bruno Haible  <bruno@clisp.org>
70138
70139         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
70140         condition was already detected.
70141         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70142
70143 2006-04-23  Bruno Haible  <bruno@clisp.org>
70144
70145         * lib/copy-file.c: Include <unistd.h> unconditionally.
70146         * lib/execute.c: Likewise.
70147         * lib/fatal-signal.c: Likewise.
70148         * lib/findprog.c: Likewise.
70149         * lib/mkdtemp.c: Likewise.
70150         * lib/pipe.h: Likewise.
70151         * lib/pipe.c: Likewise.
70152         * lib/wait-process.h: Likewise.
70153
70154 2006-04-23  Bruno Haible  <bruno@clisp.org>
70155
70156         * gnulib-tool (func_usage): Fix --import description. Document
70157         --update.
70158         (func_import): Create temporary file in a temporary directory, if
70159         --dry-run is specified. Silence errors from 'grep' when there are no
70160         m4 files in $m4dir.
70161         (func_create_testdir): Silence errors from 'grep' when there are no
70162         m4 files in $m4dir.
70163         Reported by Karl Berry <karl@freefriends.org>.
70164
70165 2006-04-20  Bruno Haible  <bruno@clisp.org>
70166
70167         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
70168         one argument, so that the code will be portable to Autoconf 2.60.
70169         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
70170         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70171         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
70172
70173 2006-04-19  Derek Price  <derek@ximbiot.com>
70174             Eric Blake  <ebb9@byu.net>
70175
70176         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
70177         rather than "/full/path.h".  Update comment to match.  Shorten &
70178         generalize m4_translit call via AS_TR_CPP.
70179
70180 2006-04-19  Derek Price  <derek@ximbiot.com>
70181             Eric Blake  <ebb9@byu.net>
70182
70183         * lib/inttypes.h: Correct grammar in comment.
70184
70185 2006-04-18  Derek Price  <derek@ximbiot.com>
70186             Paul Eggert  <eggert@cs.ucla.edu>
70187
70188         * modules/inttypes: New file.
70189         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
70190
70191 2006-04-18  Derek Price  <derek@ximbiot.com>
70192             Paul Eggert  <eggert@cs.ucla.edu>
70193
70194         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
70195         New files.
70196
70197 2006-04-18  Derek Price  <derek@ximbiot.com>
70198             Paul Eggert  <eggert@cs.ucla.edu>
70199
70200         * lib/inttypes.h: New file.
70201         * lib/strtoimax.c: Assume <inttypes.h>.
70202
70203 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
70204
70205         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
70206         isn't mounted.  Problem reported by Kir Kolyshkin.
70207
70208 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70209
70210         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
70211         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
70212         Derek R. Price.
70213         * lib/regex.h (RE_DUP_MAX): Update comment to match current
70214         implementation.
70215
70216 2006-04-12  Eric Blake  <ebb9@byu.net>
70217
70218         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
70219         is now done automatically by the corresponding Autoconf macro.
70220
70221 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
70222
70223         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
70224         time_r.h.
70225
70226 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70227
70228         Merge regex changes from libc, removing some of our
70229         POSIX-conformance changes that were rejected and redoing them in a
70230         less-intrusive way.
70231
70232         * lib/regcomp.c (re_compile_internal, init_dfa):
70233         Length arg is now size_t, not Idx.  All uses changed.
70234         (peek_token): Forward decl now says internal_function.
70235         (__re_error_msgid, __re_error_msgid_idx):
70236         Now static rather than extern with attribute_hidden.
70237         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
70238         For some reason libc prefers K&R style defns for external functions.
70239         (regerror) [!defined _LIBC]: Likewise.
70240         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
70241         (seek_collating_symbol_entry, lookup_collation_sequence_value):
70242         (build_range_exp, build_collating_symbol):
70243         Use K&R-style defn.
70244         (re_compile_fastmap): Use '\0' to memset, not 0.
70245         (utf8_sb_map): Make the calculations more obvious.
70246         (init_dfa, parse_bracket_exp, build_charclass_op):
70247         Call calloc and cast result, as glibc does.
70248         (init_word_char, fetch_token, peek_token, peek_token_bracket):
70249         (build_range_exp, build_collating_symbol):
70250         Now internal functions.
70251
70252         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
70253
70254         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
70255         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
70256         Don't depend on VMS; depend on __VMS instead, for POSIX
70257         namespace cleanness.
70258         (regoff_t): Define to ssize_t, not long int.
70259
70260         Remove the REG_ macros named below.  Instead, make the old names
70261         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
70262         __USE_GNU_REGEX.
70263         (REG_BACKSLASH_ESCAPE_IN_LISTS):
70264         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
70265         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
70266         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
70267         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
70268         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
70269         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
70270         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
70271         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
70272         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
70273         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
70274         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
70275         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
70276         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
70277         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
70278         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
70279         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
70280         (REG_NREGS):
70281         Remove.  All uses replaced by the old RE_* names.
70282         (RE_BACKSLASH_ESCAPE_IN_LISTS):
70283         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
70284         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
70285         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
70286         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
70287         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
70288         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
70289         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
70290         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
70291         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
70292         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
70293         Don't bother having these macros be independent of each others'
70294         values, since they no longer exist in the POSIX name space.
70295
70296         Rename the following member names back to their old names,
70297         unless !__USE_GNU_REGEX.  All uses changed back.
70298         (buffer): Renamed from re_buffer.
70299         (allocated): Renamed from re_allocated.
70300         (used): Renamed from re_used.
70301         (syntax): Renamed from re_syntax.
70302         (fastmap): Renamed from re_fastmap.
70303         (translate): Renamed from re_translate.
70304         (can_be_null): Renamed from re_can_be_null.
70305         (regs_allocated): Renamed from re_regs_allocated.
70306         (fastmap_accurate): Renamed from re_fastmap_accurate.
70307         (no_sub): Renamed from re_no_sub.
70308         (not_bol): Renamed from re_not_bol.
70309         (not_eol): Renamed from re_not_eol.
70310         (newline_anchor): Renamed from re_newline_anchor.
70311         (num_regs): Renamed from rm_num_regs.
70312         (start): Renamed from rm_start.
70313         (end): Renamed from rm_end.
70314
70315         (free_state): Move up a bit.
70316
70317         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
70318         #define to be empty.
70319         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
70320         when that is what is intended.
70321         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
70322         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
70323         (MAX): New macro.
70324         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
70325         All uses changed back to re_malloc, etc.  It's now the caller's
70326         responsibility to check for overflow; all callers changed.
70327         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
70328         (re_x2nrealloc): Remove.
70329         (free_state): Remove decl.
70330
70331         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
70332         (re_set_registers, re_exec):
70333         Use K&R-style defn.
70334
70335         2006-01-31  Roland McGrath  <roland@redhat.com>
70336
70337         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
70338         Reported by Mike Frysinger <vapier@gentoo.org>.
70339
70340         2006-01-15  Andreas Jaeger  <aj@suse.de>
70341
70342         [BZ #1950]
70343         * lib/regex_internal.c (re_string_reconstruct): Adjust for
70344         build_wcs_upper_buffer change.
70345         (build_wcs_upper_buffer): Change return type.
70346
70347         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
70348
70349         * lib/regex_internal.h: Include <stdint.h> if available.
70350
70351         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
70352
70353         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
70354
70355         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70356
70357         * lib/regcomp.c: Adjust for changed secondary hash function.
70358
70359         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
70360
70361         * lib/regex.h: Pretty printing.
70362         Clean up namespace a bit.
70363
70364         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
70365
70366         * lib/regexec.c (update_cur_sifted_state, check_arrival,
70367         check_arrival_add_next_nodes): Avoid using uninitialized variable.
70368
70369         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
70370                     Ulrich Drepper  <drepper@redhat.com>
70371
70372         [BZ #1302]
70373         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
70374         changed.
70375         (bitset_word_t): Renamed from bitset_word.  All uses changed.
70376
70377         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
70378
70379         [BZ #281]
70380         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
70381         * lib/regcomp.c: Remove unnecessary uses of
70382         unsigned RE_TRANSLATE_TYPE.
70383         * lib/regex_internal.h: Likewise.
70384         * lib/regex_internal.c: Likewise.
70385         * lib/regexec.c: Likewise.
70386         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
70387
70388         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
70389
70390         * lib/regexec.c (find_recover_state): Remove unnecessary
70391         initialization.
70392         (transit_state_bkref): Make DFA a const pointer.
70393         (get_subexp): Likewise.
70394         (check_arrival): Likewise.
70395         (update_cur_sifted_state): Likewise.
70396         (re_search_internal): Likewise.
70397         (prune_impossible_nodes): Likewise.
70398         (acquire_init_state_context): Likewise.
70399         (proceed_next_node): Likewise.
70400         (set_regs): Likewise.
70401         (free_fail_stack_return): Likewise.
70402         (check_arrival_expand_ecl): Mark DFA parameter as const.
70403         (check_arrival_expand_ecl_sub): Likewise.
70404         (check_subexp_limits): Likewise.
70405         (sub_epsilon_src_nodes):  Likewise.
70406         (add_epsilon_src_nodes):  Likewise.
70407         (merge_state_array): Likewise.
70408         (update_regs): Likewise.
70409         (build_trtable): Likewise.
70410         (sift_states_backward): Mark MCTX parameter as const.
70411         (build_sifted_states): Likewise.
70412         (update_cur_sifted_state): Likewise.
70413         (sift_states_mkref): Likewise.
70414         (check_arrival_expand_ecl): Mark eclosure as const.
70415         (check_dst_limits_calc_pos_1): Likewise.
70416         * lib/regex_internal.h (re_match_context_t): Make dfa a const
70417         pointer.
70418
70419         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
70420
70421         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
70422         (transit_state_sb): Likewise.
70423         (transit_state_mb): Likewise.
70424         (sift_states_iter_mb): Likewise.
70425         (check_arrival_add_next_nodes): Likewise.
70426         (check_node_accept_bytes): Change first parameter to pointer-to-const.
70427         [_LIBC] (re_search_2_stub): Use mempcpy.
70428
70429         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
70430         mbrtowc for very simple UTF-8 case.
70431
70432         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
70433         a pointer-to-const.
70434         (re_acquire_state_context): Likewise.
70435         * lib/regex_internal.h: Adjust prototypes.
70436
70437         * lib/regex.c: Prevent using C++ compilers.
70438
70439         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
70440         (re_acquire_state_context): Likewise.
70441
70442 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70443
70444         * modules/regex (Depends-on): Add ssize_t.
70445
70446 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70447
70448         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
70449         translation table.
70450
70451 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70452
70453         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
70454
70455 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
70456             Bruno Haible  <bruno@clisp.org>
70457
70458         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
70459         <sys/types.h> and <inttypes.h>.
70460
70461 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70462
70463         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
70464         `__error_t_defined', so argp.h will not typedef the former.
70465
70466 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
70467
70468         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
70469         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
70470         glibc names.  Even if glibc is changed to conform to POSIX, the
70471         traditional names will be available anyway, since regex depends on
70472         the extensions module.  Also, fix a longstanding typo in the
70473         implementation of Spencer ERE test #75 from grep 2.3.  Problems
70474         reported by Emanuele Giaquinta.  Also, change sense of cached
70475         variable, so that the message makes sense.
70476
70477 2006-03-24  Simon Josefsson  <jas@extundo.com>
70478
70479         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
70480         including some doc fixes.
70481         (base64_encode_alloc): Fix +1 bug on allocation failures.
70482
70483 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70484
70485         * lib/base64.c (base64_encode): Do not read past end of array with
70486         unsanitized input on systems with CHAR_BIT > 8.
70487
70488 2006-03-24  Eric Blake  <ebb9@byu.net>
70489
70490         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
70491
70492 2006-03-22  Karl Berry  <karl@gnu.org>
70493
70494         * config/srclist.txt (*setenv.[ch]): get from coreutils.
70495         * config/srclistvars.sh (COREUTILS): new var.
70496
70497 2006-03-17  Jim Meyering  <jim@meyering.net>
70498
70499         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
70500         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
70501
70502 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
70503
70504         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
70505         no longer needs it.  Instead, check that regoff_t is as least
70506         as wide as ptrdiff_t.
70507
70508         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
70509         so that our regex.h stays compatible with the installed regex.
70510         This is helpful for installers who configure --without-included-regex.
70511         Problem reported by Emanuele Giaquinta.
70512
70513 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
70514
70515         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
70516         Typedef to long int, not to off_, as POSIX will likely change
70517         in that direction.
70518
70519 2006-03-15  Eric Blake  <ebb9@byu.net>
70520
70521         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
70522
70523 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
70524
70525         * lib/argp-help.c (validate_uparams): Fix typo
70526         * lib/argp-parse.c (argp_default_options): Consistently begin help
70527         messages with a lowercase letter.
70528
70529 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
70530
70531         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
70532         overrun buffers and shouldn't be used (much as gets shouldn't be
70533         used).
70534         * lib/time_r.c (asctime_r, ctime_r): Likewise.
70535
70536 2006-03-08  Simon Josefsson  <jas@extundo.com>
70537
70538         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
70539         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70540
70541 2006-03-08  Simon Josefsson  <jas@extundo.com>
70542
70543         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
70544         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70545
70546 2006-03-08  Simon Josefsson  <jas@extundo.com>
70547
70548         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
70549         signal that configure disabled the device.
70550
70551 2006-03-08  Simon Josefsson  <jas@extundo.com>
70552
70553         * build-aux/maint.mk: Fix refresh-po, to handle no translated
70554         languages.
70555
70556 2006-03-07  Simon Josefsson  <jas@extundo.com>
70557
70558         * modules/getopt (Depends-on): Add unistd.
70559
70560         * modules/unistd: New file.
70561
70562 2006-03-07  Simon Josefsson  <jas@extundo.com>
70563
70564         * modules/gc-random: New file.
70565
70566 2006-03-07  Simon Josefsson  <jas@extundo.com>
70567
70568         * m4/unistd_h.m4: New file.
70569
70570 2006-03-07  Simon Josefsson  <jas@extundo.com>
70571
70572         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
70573         test to be side-effect free by storing the result in the cache
70574         variable gl_cv_lib_readline, and moving the assignment of
70575         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
70576         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70577
70578 2006-03-07  Simon Josefsson  <jas@extundo.com>
70579
70580         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
70581         error on missing devices (the functions will return an error).
70582
70583         * m4/gc.m4: Move random stuff to gc-random.m4
70584
70585 2006-03-07  Simon Josefsson  <jas@extundo.com>
70586
70587         * lib/unistd_.h: New file.
70588
70589 2006-03-07  Simon Josefsson  <jas@extundo.com>
70590
70591         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
70592
70593 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
70594
70595         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
70596         Problem reported by Juan Manuel Guerrero.
70597
70598 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
70599
70600         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
70601         the unistd module.
70602         * lib/getlogin_r.c: Likewise.
70603         * lib/getlogin_r.h: Likewise.
70604         * lib/glob.c: Likewise.
70605         * lib/pagealign_alloc.c: Likewise.
70606         * lib/unistd_.h: Remove; no longer needed.
70607
70608 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
70609
70610         * MODULES.html.sh (Support for systems lacking POSIX:2001):
70611         Add unistd.
70612         * modules/c-stack (Depends-on): Add unistd.
70613         * modules/getlogin_r: Likewise.
70614         * modules/glob: Likewise.
70615         * modules/pagealign_alloc: Likewise.
70616         * modules/unistd (Files): Remove lib/unistd_.h.
70617         (EXTRA_DIST): Remove.
70618         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
70619         need unistd_.h.
70620         (MOSTLYCLEANFILES): Remove unistd.h-t.
70621
70622 2006-03-03  Simon Josefsson  <jas@extundo.com>
70623
70624         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
70625
70626 2006-03-03  Simon Josefsson  <jas@extundo.com>
70627
70628         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
70629         libidn and bison.
70630
70631 2006-03-03  Simon Josefsson  <jas@extundo.com>
70632
70633         * build-aux/maint.mk: Add indent target.
70634
70635 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
70636
70637         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
70638         our replacement poll.h in any case, to avoid a differing
70639         declaration from a system header.  Seen on AIX.
70640
70641 2006-03-01  Simon Josefsson  <jas@extundo.com>
70642
70643         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
70644         <kasal@ucw.cz>.
70645
70646 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70647
70648         * modules/gettime (Depends-on): Add extensions module.
70649         * modules/nanosleep (Depends-on): Likewise.
70650         * modules/settime (Depends-on): Likewise.
70651
70652 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70653
70654         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
70655         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
70656         pedantically.
70657         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70658         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
70659
70660         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
70661         not "==".  Reported by Ralf Wildenhues.
70662
70663 2006-03-01  Karl Berry  <karl@gnu.org>
70664
70665         * doc/Copyright/request-*: new files, synced from gnuorg.
70666
70667 2006-03-01  Karl Berry  <karl@gnu.org>
70668
70669         * config/srclist.txt (Copyright/*): new entries.
70670
70671 2006-02-28  Simon Josefsson  <jas@extundo.com>
70672
70673         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
70674
70675 2006-02-27  Simon Josefsson  <jas@extundo.com>
70676
70677         * lib/base64.h: Indent #define's.  From Jim Meyering
70678         <jim@meyering.net>.
70679
70680 2006-02-27  Jim Meyering  <jim@meyering.net>
70681
70682         Revert the change of 2006-02-24, so these files can continue
70683         to be sync'd from gettext.
70684         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
70685         of `config.h'.
70686
70687 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
70688
70689         * modules/intprops: New file.
70690         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
70691         Add intprops.
70692         * modules/getloadavg (Files): Remove lib/intprops.h.
70693         (Depends-on): Add intprops.
70694         * modules/human: Likewise.
70695         * modules/inttostr: Likewise.
70696         * modules/openat: Likewise.
70697         * modules/sig2str: Likewise.
70698         * modules/userspec: Likewise.
70699         * modules/utimecmp: Likewise.
70700         * modules/xnanosleep: Likewise.
70701         * modules/xstrtol: Likewise.
70702
70703 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
70704
70705         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
70706         * modules/lock-tests (TESTS): Use $(EXEEXT).
70707         * modules/tls-tests: Likewise.
70708         * modules/argp-tests: Likewise.
70709         (check_PROGRAMS): New var, replacing...
70710         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
70711
70712 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70713
70714         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
70715         `config.h'.
70716
70717 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
70718
70719         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
70720
70721 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70722
70723         Sync from coreutils.
70724         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
70725         gl_CHDIR_SAFER.
70726
70727 2006-02-22  Jim Meyering  <jim@meyering.net>
70728
70729         Sync from coreutils.
70730         * m4/chdir-safer.m4: New file.
70731
70732 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
70733
70734         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
70735         AT_FDCWD exceeds INT_MAX.
70736         * lib/openat.h (AT_FDCWD): Likewise.
70737
70738 2006-02-17  Eric Blake  <address@hidden>
70739
70740         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
70741
70742 2006-02-16  Simon Josefsson  <jas@extundo.com>
70743
70744         * modules/getaddrinfo (Depends-on): Add sys_socket.
70745
70746 2006-02-15  Simon Josefsson  <jas@extundo.com>
70747
70748         * build-aux/maint.mk: Add dsyntax-check rule.
70749
70750 2006-02-15  Eric Blake  <ebb9@byu.net>
70751
70752         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
70753         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
70754         'present but cannot compile' warnings on cygwin.
70755         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
70756         use ws2tcpip.h if sys/socket.h works.
70757         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
70758         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
70759
70760 2006-02-14  Simon Josefsson  <jas@extundo.com>
70761
70762         * modules/maintainer-makefile (Files): Rename.
70763
70764         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
70765         and (the local) Makefile.cfg to maint-cfg.mk.
70766
70767         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
70768         to the latter.
70769
70770         * modules/maintainer-makefile: New module.
70771
70772         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
70773         severaly stripped to make it possible to build it up from scratch
70774         with reliable tests.
70775
70776         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
70777         fixes to permit overriding the default actions when configure and
70778         makefile are not available.
70779
70780 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
70781
70782         Sync from coreutils.
70783         * modules/lstat (Depends-on): Don't depend on xalloc.
70784         (License): Change from GPL to LGPL, since this is now simply a
70785         replacement for a libc function.
70786
70787 2006-02-14  Jim Meyering  <jim@meyering.net>
70788
70789         Sync from coreutils.
70790
70791         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
70792         failure on deficient systems, and simplify gnulib lgpl dependencies.
70793         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
70794         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
70795
70796         * lib/xalloc-die.c: Remove unused definition of N_.
70797
70798 2006-02-14  Jim Meyering  <jim@meyering.net>
70799
70800         Sync from coreutils.
70801         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
70802         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
70803         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
70804         double-quote uses of that variable, to accommodate the rare case in
70805         which getmntent is available in none of the libraries checked.  This
70806         happens at least on FreeBSD 5.0.
70807
70808 2006-02-13  Simon Josefsson  <jas@extundo.com>
70809
70810         * gnulib-tool (Usage): Fix --import, from
70811         karl@freefriends.org (Karl Berry).
70812
70813 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
70814
70815         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
70816
70817 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
70818
70819         * lib/argp-namefrob.h: Restore changes accidentally lost during the
70820         "autoupdate" on 2005-12-12.
70821
70822 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
70823
70824         * modules/closeout (Depends-on): Remove atexit.
70825
70826 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
70827
70828         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
70829         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
70830
70831 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
70832
70833         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
70834         __EXTENSIONS__ if this causes compilation to fail.  Problem
70835         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
70836         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
70837
70838 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
70839
70840         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
70841         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
70842         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
70843         All uses changed.
70844
70845 2006-01-26  Simon Josefsson  <jas@extundo.com>
70846
70847         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
70848         prototype is visible on mingw32.
70849
70850         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
70851         for mingw32.
70852
70853         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
70854         mingw32).
70855
70856 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
70857
70858         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
70859         attempt to open for write; this always fails, at least on POSIX
70860         hosts.  This reinstates the 2006-01-09 change, which was
70861         inadvertently removed.
70862
70863 2006-01-26  Bruno Haible  <bruno@clisp.org>
70864
70865         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
70866         Reported by Paul Eggert.
70867
70868 2006-01-26  Bruno Haible  <bruno@clisp.org>
70869             Paul Eggert  <eggert@cs.ucla.edu>
70870
70871         * lib/stdbool_.h (_Bool)
70872         [(! (defined __cplusplus || defined __BEOS__)
70873           && !defined __GNUC__
70874           && !(defined __HP_cc || defined __xlc__
70875                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
70876                || defined __sgi))]:
70877         #define to signed char in these cases too; this simplifies
70878         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
70879         etc., separately) and makes it more conservative.
70880
70881 2006-01-25  Simon Josefsson  <jas@extundo.com>
70882
70883         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
70884         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
70885         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
70886
70887 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
70888
70889         * lib/argp-namefrob.h: Bugfix. Remove stray #
70890
70891 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
70892
70893         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
70894         so that we test the test.
70895         Check for yet another HP-UX cc bug involving *bool |= bool.
70896
70897 2006-01-25  Karl Berry  <karl@gnu.org>
70898
70899         * config/srclist.txt (vasnprintf.c): sync lost.
70900
70901 2006-01-25  Jim Meyering  <jim@meyering.net>
70902
70903         Sync from the stable (b5) branch of coreutils:
70904
70905         * lib/fts.c (fts_children): Don't let close() clobber errno from
70906         failed fchdir().
70907
70908         * lib/fts.c (fts_stat): When following a symlink-to-directory,
70909         don't necessarily interpret stat-fails+lstat-succeeds as indicating
70910         a dangling symlink.  That can also happen at least for ELOOP.
70911         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
70912         FYI, this bug predates the inclusion of fts.c in coreutils.
70913
70914         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
70915         in their own block, so pre-c99 compilers don't object.
70916
70917         Avoid the double-free (first in fts_read, second in fts_close) that
70918         would occur when an `active' directory is made inaccessible (e.g.,
70919         via chmod a-x) during a traversal.
70920         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
70921         before returning.  Reproduce this failure by
70922         mkdir -p a/b; cd a; chmod a-x . b
70923         Reported by Stavros Passas.
70924
70925 2006-01-25  Jim Meyering  <jim@meyering.net>
70926
70927         * lib/fileblocks.c: Remove more useless parentheses.
70928         * lib/readutmp.h: Likewise.
70929
70930 2006-01-25  Bruno Haible  <bruno@clisp.org>
70931
70932         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
70933         warnings.
70934         Reported by Paul Eggert.
70935
70936 2006-01-25  Bruno Haible  <bruno@clisp.org>
70937
70938         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
70939         rid of a trap command. For Solaris sh.
70940         Reported by Mark D. Baushke <mdb@gnu.org>.
70941
70942 2006-01-24  Simon Josefsson  <jas@extundo.com>
70943
70944         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
70945         Bruno.
70946
70947 2006-01-24  Karl Berry  <karl@gnu.org>
70948
70949         * config/srclist.txt (argp-namefrob.h): sync lost.
70950
70951 2006-01-24  Jim Meyering  <jim@meyering.net>
70952
70953         * modules/openat (Files): Add lib/intprops.h.
70954         From Mark D. Baushke.
70955
70956 2006-01-24  Jim Meyering  <jim@meyering.net>
70957
70958         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
70959         Reported by Mark D. Baushke.
70960
70961 2006-01-24  Jim Meyering  <jim@meyering.net>
70962
70963         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
70964
70965 2006-01-24  Bruno Haible  <bruno@clisp.org>
70966
70967         * modules/strnlen (Maintainer): Change from glibc to all.
70968
70969 2006-01-24  Bruno Haible  <bruno@clisp.org>
70970
70971         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
70972         Patch by Paul Eggert.
70973
70974 2006-01-24  Bruno Haible  <bruno@clisp.org>
70975
70976         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
70977         already has it.
70978         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
70979         2005-11-26.
70980
70981         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
70982         'signed char' to avoid problems with the built-in _Bool type.
70983         Reported by Paul Eggert on 2005-11-26.
70984
70985 2006-01-24  Bruno Haible  <bruno@clisp.org>
70986
70987         * gnulib-tool (func_import): Avoid constructing complicated sed
70988         expressions inside backquote.
70989         Report and solution by Mark D. Baushke <mdb@gnu.org>.
70990
70991 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
70992
70993         These changes imported from libc.
70994         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
70995         test and two separate function calls.
70996         * lib/strndup.c (__strndup): Add libc_hidden_def.
70997
70998 2006-01-23  Simon Josefsson  <jas@extundo.com>
70999
71000         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
71001         Remove the test_*_SOURCES variable: automake infers it by default.
71002         * modules/tls-tests: Likewise.
71003
71004 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71005
71006         Work around porting bugs reported by Dieter in
71007         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
71008         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
71009         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
71010         Include "getopt.h" first, to check interface.
71011         (getenv): Declare only if defined HAVE_DECL_GETENV &&
71012         !HAVE_DECL_GETENV.
71013         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
71014         (__strndup): Revert to K&R-style function dfns, the glibc style.
71015         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
71016         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
71017         Include strnlen.h first, to get prototype properly.
71018         (strnlen): Renamed from __strnlen.
71019         Remove weak alias.
71020
71021 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71022
71023         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
71024
71025 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71026
71027         * config/srclist.txt: Adjust to reflect glibc reorganization.
71028         This affects only comments.
71029
71030 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71031
71032          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
71033          Reported by Bruce Korb <bkorb@gnu.org>.
71034
71035 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
71036
71037         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
71038         to pacify gcc -Wswitch-default.
71039
71040 2006-01-22  Bruno Haible  <bruno@clisp.org>
71041
71042         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
71043         temporary buffer for sprintf, take into account the precision also
71044         for 'd', 'i', 'u', 'o', 'x', 'X'.
71045
71046 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
71047
71048         * modules/argp-tests: New module
71049         * tests/test-argp.c: New file
71050         * tests/test-argp-2.sh: New file
71051
71052 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
71053
71054         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
71055         (__argp_base_name): Removed
71056         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
71057         typo.
71058         (__argp_base_name): Provide macro definition or extern declaration
71059         depending on the configuration
71060
71061 2006-01-20  Simon Josefsson  <jas@extundo.com>
71062
71063         * modules/inet_ntop (Depends-on): Depend on sys_socket.
71064
71065 2006-01-20  Simon Josefsson  <jas@extundo.com>
71066
71067         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
71068
71069 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71070
71071         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
71072         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
71073         Suggested by Bruno Haible.
71074
71075 2006-01-20  Karl Berry  <karl@gnu.org>
71076
71077         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
71078         until changes propagate, I guess.
71079
71080 2006-01-19  Simon Josefsson  <jas@extundo.com>
71081
71082         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
71083
71084 2006-01-19  Simon Josefsson  <jas@extundo.com>
71085
71086         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
71087
71088 2006-01-19  Simon Josefsson  <jas@extundo.com>
71089
71090         * gnulib-tool: Set check_PROGRAMS.
71091
71092         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
71093         modules/des-tests, modules/gc-arcfour-tests,
71094         modules/gc-arctwo-tests, modules/gc-des-tests,
71095         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
71096         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
71097         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
71098         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
71099         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
71100         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
71101         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
71102         test_*_SOURCES.
71103
71104 2006-01-18  Simon Josefsson  <jas@extundo.com>
71105
71106         * modules/socklen (Depends-on): Depend on sys_socket.
71107
71108 2006-01-18  Simon Josefsson  <jas@extundo.com>
71109
71110         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
71111         modules/des-tests, modules/gc-arcfour-tests,
71112         modules/gc-arctwo-tests, modules/gc-des-tests,
71113         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
71114         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
71115         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
71116         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
71117         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
71118         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
71119         $(EXEEXT) to automake TESTS variable, for mingw32.
71120
71121 2006-01-17  Simon Josefsson  <jas@extundo.com>
71122
71123         * modules/socklen (Include): Need sys/socket.h.
71124
71125 2006-01-17  Bruno Haible  <bruno@clisp.org>
71126
71127         * modules/ssize_t (Include): Add <sys/types.h>.
71128
71129 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
71130
71131         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
71132         it's not portable and it doesn't work with cross-compiles.
71133         Problem reported by Bruno Haible.  Fix missing-$ typo in
71134         'test "gl_cv_ignore_unused_libraries" ...' that prevented
71135         -zignore from being used with Sun's C compiler.
71136
71137 2006-01-12  Simon Josefsson  <jas@extundo.com>
71138
71139         * lib/base64.c: Fix warning, reported by Bruno Haible
71140         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
71141
71142 2006-01-12  Bruno Haible  <bruno@clisp.org>
71143
71144         * modules/ldd: New file.
71145         * build-aux/ldd.sh.in: New file.
71146         * MODULES.html.sh (Support for building libraries and executables): Add
71147         ldd.
71148
71149 2006-01-12  Bruno Haible  <bruno@clisp.org>
71150
71151         * m4/ldd.m4: New file.
71152
71153 2006-01-12  Bruno Haible  <bruno@clisp.org>
71154
71155         * gnulib-tool (func_import, func_create_testdir): Don't go into an
71156         endless loop while replacing $auxdir with build-aux.
71157
71158 2006-01-11  Simon Josefsson  <jas@extundo.com>
71159
71160         * lib/stdint_.h (SIZE_MAX): Add missing (.
71161
71162 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
71163
71164         Sync from coreutils.
71165         * lib/md5.c: Fix commentary typos.
71166         (alignof, UNALIGNED_P): No need for a GCC-specific version.
71167         * lib/md5.h (__attribute__): Remove; unused.
71168         * lib/sha1.c: Fix commentary to match md5 better.
71169         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
71170         so that we don't need to worry about alignment.  All uses changed.
71171         This merges the 2005-10-28 md5 change into sha1.
71172
71173 2006-01-11  Jim Meyering  <jim@meyering.net>
71174
71175         Sync from coreutils.
71176         * lib/md5.c (OP): Fix spacing.
71177
71178 2006-01-11  Bruno Haible  <bruno@clisp.org>
71179
71180         Ensure automatic ordering between gl_LOCK and gl_ARGP.
71181         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
71182         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
71183
71184 2006-01-11  Bruno Haible  <bruno@clisp.org>
71185
71186         Ensure automatic ordering between gl_LOCK and gl_ARGP.
71187         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
71188         the "early" section as well.
71189
71190 2006-01-11  Bruno Haible  <bruno@clisp.org>
71191
71192         Avoid "ar: no archive members specified" error on MacOS X.
71193         * gnulib-tool (func_modules_add_dummy): New function.
71194         (func_import, func_create_testdir): Invoke it.
71195
71196 2006-01-11  Bruno Haible  <bruno@clisp.org>
71197
71198         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
71199         with $auxdir in AC_CONFIG_FILES statements.
71200
71201 2006-01-11  Bruno Haible  <bruno@clisp.org>
71202
71203         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71204         Initialize also noinst_HEADERS to empty.
71205
71206 2006-01-11  Bruno Haible  <bruno@clisp.org>
71207
71208         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
71209         variables.
71210         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
71211         autoreconf.
71212
71213 2006-01-11  Bruno Haible  <bruno@clisp.org>
71214
71215         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
71216         overridable by the user.
71217         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71218
71219 2006-01-10  Simon Josefsson  <jas@extundo.com>
71220
71221         * modules/sys_socket: New file.
71222
71223 2006-01-10  Simon Josefsson  <jas@extundo.com>
71224
71225         * m4/sys_socket_h.m4: New file.
71226
71227 2006-01-10  Simon Josefsson  <jas@extundo.com>
71228
71229         * lib/socket_.h: New file.
71230
71231 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71232
71233         * modules/readutmp (Maintainer): Add myself.
71234
71235 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71236
71237         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
71238         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
71239         People who are still concerned with buggy memcmp implementations
71240         can invoke gl_FUNC_MEMCMP themselves.
71241
71242 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71243
71244         * lib/regex_internal.h (BITSET_WORD_BITS):
71245         Work around a bug in 64-bit PGC (before version 6.1-2), where the
71246         preprocessor mishandles large unsigned values as if they were signed.
71247         Problem reported by Claudio Fontana in
71248         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
71249
71250 2006-01-10  Jim Meyering  <jim@meyering.net>
71251
71252         Avoid the double-free (first in fts_read, second in fts_close) that
71253         would occur when an `active' directory is made inaccessible (e.g.,
71254         via chmod a-x) during a traversal.
71255         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
71256         before returning.  Reproduce this failure by
71257         mkdir -p a/b; cd a; chmod a-x . b
71258         Reported by Stavros Passas.
71259
71260         Sync from coreutils.
71261         * lib/sha1.c: Tweak grammar in a comment.
71262
71263 2006-01-10  Jim Meyering  <jim@meyering.net>
71264
71265         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
71266         Patch by Joerg Sonnenberger.
71267
71268 2006-01-10  Bruno Haible  <bruno@clisp.org>
71269
71270         * modules/readutmp: Depend on module free.
71271         * modules/strtok_r: Depend on module restrict.
71272
71273 2006-01-10  Bruno Haible  <bruno@clisp.org>
71274
71275         * modules/gettext (configure.ac): Add an invocation of
71276         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
71277
71278 2006-01-10  Bruno Haible  <bruno@clisp.org>
71279
71280         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
71281         Reported by Werner Lemberg <wl@gnu.org>.
71282
71283 2006-01-10  Bruno Haible  <bruno@clisp.org>
71284
71285         * lib/localcharset.c: Update from GNU gettext.
71286
71287 2006-01-10  Bruno Haible  <bruno@clisp.org>
71288
71289         * lib/argp.h (__const): Remove macro. Use const instead.
71290         * lib/argp-fmtstream.h (__const): Likewise.
71291         * lib/glob_.h (__const): Remove macro.
71292         * lib/glob-libc.h: Use const instead of __const.
71293
71294 2006-01-10  Bruno Haible  <bruno@clisp.org>
71295
71296         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
71297         variable.
71298         Needed to avoid an automake error regarding the 'gettext' module.
71299
71300 2006-01-09  Simon Josefsson  <jas@extundo.com>
71301
71302         * modules/inet_ntop (Depends-on): Add restrict.
71303
71304 2006-01-09  Simon Josefsson  <jas@extundo.com>
71305
71306         * modules/gc-rijndael-tests (License): Put under LGPL.
71307
71308         * modules/gc-des-tests (License): Likewise.
71309
71310         * modules/gc-arcfour-tests (License): Likewise.
71311
71312         * modules/gc-arctwo-tests (License): Likewise.
71313
71314         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
71315
71316         * modules/gc-hmac-sha1-tests (Files): Likewise.
71317
71318         * modules/gc-hmac-md5-tests (License): Likewise.
71319
71320         * modules/gc-sha1-tests (License): Likewise.
71321
71322         * modules/gc-md5-tests (License): Likewise.
71323
71324         * modules/gc-md4-tests (License): Likewise.
71325
71326         * modules/gc-md2-tests (License): Likewise.
71327
71328         * modules/gc-tests (License): Likewise.
71329
71330         * modules/des-tests (License): Likewise.
71331
71332         * modules/md4-tests (License): Likewise.
71333
71334         * modules/md2-tests (License): Likewise.
71335
71336 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71337
71338         Sync from coreutils:
71339
71340         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
71341         * modules/lib-ignore: New file.
71342         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
71343         chdir-safer.m4, lchmod.m4.
71344         * modules/openat: Add mkdirat.c, openat-priv.h.
71345
71346 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71347
71348         Sync from coreutils.
71349         * m4/lib-ignore.m4: New file.
71350         * m4/lchmod.m4: New file.
71351
71352 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71353
71354         Sync from coreutils.
71355         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
71356         for write access: POSIX says that must fail.
71357         * lib/fts.c (diropen): Likewise.
71358         * lib/save-cwd.c (save_cwd): Likewise.
71359         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
71360         well, for minor improvements on hosts that lack O_DIRECTORY.
71361         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
71362         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
71363         Fall back on chown if open failed with EACCES.
71364
71365         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
71366         Report an error at compile-time if only a 1-second nominal clock
71367         resolution is found.
71368
71369         * lib/lchmod.h: New file.
71370         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
71371         (make_dir_parents): Use lchown rather than chown, and
71372         lchmod rather than chmod.
71373
71374         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
71375         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
71376         "proc" reported by n0dalus.
71377
71378         * lib/mountlist.c: Include <limits.h>.
71379         (dev_from_mount_options)
71380         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
71381         New function.  It no longer assumes "dev=" has the System V meaning
71382         on Linux (since it doesn't).  It also parses "dev=" more carefully.
71383         (read_file_system_list)
71384         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
71385         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
71386         dev= in that case.
71387
71388         * lib/posixtm.h (PDS_PRE_2000): New macro.
71389         * lib/posixtm.c (year): Arg is now syntax_bits rather than
71390         allow_century.  All usages changed.  Reject dates outside the range
71391         1969-1999 if PDS_PRE_2000 is used.
71392
71393 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71394
71395         Sync from coreutils.
71396         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
71397         (Time of day items): Mention the possibility of leap seconds.
71398         Problem reported by Dr. David Alan Gilbert.
71399
71400 2006-01-09  Jim Meyering  <jim@meyering.net>
71401
71402         Sync from coreutils.
71403
71404         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
71405
71406         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
71407
71408         * lib/modechange.c (mode_compile): Reject an invalid mode string
71409         that starts with an octal digit.  From Andreas Gruenbacher.
71410
71411         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
71412         and dup to open_safer and dup_safer, respectively.
71413         (openat_permissive): Fix typo in comment.
71414
71415         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
71416         "gettext.h"; either no longer needed or are guaranteed by openat.h.
71417         (_): Remove; no longer needed.
71418         (openat): Renamed from rpl_openat; no need for rpl_openat
71419         since openat.h renames openat for us.
71420         Replace most of the body with a call to openat_permissive,
71421         to avoid duplicate code.
71422         Port to (probably hypothetical) environments were mode_t is
71423         wider than int.
71424         (openat_permissive): Require mode arg, so that we can check
71425         types better.  Put it just after flags.  Change cwd failure
71426         indicator from pointer-to-bool to pointer-to-errno-value.
71427         All callers changed.
71428         Invoke openat_save_fail and/or openat_restore_fail if
71429         cwd_errno is null, so that openat can call us.
71430         (openat_permissive, fdopendir, fstatat, unlinkat):
71431         Simplify errno handling to avoid some duplicate code,
71432         as it's OK to set errno on success.
71433         * lib/openat.h: Revamp code so that function macros depend on
71434         __OPENAT_PREFIX only, not also on AT_FDCWD.
71435         (openat_ro): Remove.  Caller changed to use openat_permissive.
71436         (openat_permissive): Now a macro, if not a function.
71437         (openat_restore_fail, openat_save_fail): Now always functions,
71438         since mkdirat needs them even if __OPENAT_PREFIX is defined.
71439
71440         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
71441         and openat.c.
71442         * lib/mkdirat.c: Include openat-priv.h.
71443         Remove definitions of macros defined therein.
71444         * lib/openat.c: Likewise.
71445
71446         * lib/mkdirat.c (mkdirat): New file and function.
71447         * lib/openat.h (mkdirat): Declare.
71448
71449         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
71450
71451         * lib/openat.h (openat_permissive): Declare.
71452         (openat_ro): Define.
71453
71454         * lib/openat.c (EXPECTED_ERRNO): New macro.
71455         (openat_permissive): New function -- used in remove.c rewrite.
71456         (all functions): Set errno just before returning, only if there
71457         was an actual failure.
71458         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
71459
71460         Emulate openat-family functions using Linux's procfs, if possible.
71461         Idea and some code based on Ulrich Drepper's glibc changes.
71462
71463         * lib/openat.c: (BUILD_PROC_NAME): New macro.
71464         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
71465         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
71466         before falling back on save_cwd and restore_cwd.
71467         (fdopendir, fstatat, unlinkat): Likewise.
71468
71469         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
71470         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
71471
71472         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
71473         as second argument to va_arg.  Otherwise, some versions of gcc
71474         warn that `if this code is reached, the program will abort'.
71475
71476 2006-01-09  Jim Meyering  <jim@meyering.net>
71477
71478         Sync from coreutils.
71479         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
71480         Require openat-priv.h.
71481
71482 2006-01-09  Bruno Haible  <bruno@clisp.org>
71483
71484         * modules/strnlen (Include): Use strnlen.h.
71485
71486 2006-01-09  Bruno Haible  <bruno@clisp.org>
71487
71488         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
71489
71490 2006-01-09  Bruno Haible  <bruno@clisp.org>
71491
71492         * lib/sysexit_.h (EX_OK): New macro.
71493         Suggested by Martin Lambers <marlam@marlam.de>.
71494
71495 2006-01-09  Bruno Haible  <bruno@clisp.org>
71496
71497         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
71498         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
71499
71500 2006-01-09  Bruno Haible  <bruno@clisp.org>
71501
71502         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
71503         numbers.
71504
71505 2006-01-09  Bruno Haible  <bruno@clisp.org>
71506
71507         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
71508         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
71509         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
71510         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
71511
71512 2006-01-09  Bruno Haible  <bruno@clisp.org>
71513
71514         * build-aux/javacomp.sh.in: New file, moved from lib/.
71515         * modules/javacomp-script (Files): Update.
71516         (configure.ac): Add AC_CONFIG_FILES invocation.
71517         (EXTRA_DIST): Remove variable.
71518
71519         * build-aux/javaexec.sh.in: New file, moved from lib/.
71520         * modules/javaexec (Files): Update.
71521         (configure.ac): Add AC_CONFIG_FILES invocation.
71522         (EXTRA_DIST): Remove javaexec.sh.in.
71523
71524         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
71525         * modules/csharpcomp-script (Files): Update.
71526         (configure.ac): Add AC_CONFIG_FILES invocation.
71527         (EXTRA_DIST): Remove variable.
71528
71529         * build-aux/csharpexec.sh.in: New file, moved from lib/.
71530         * modules/csharpexec (Files): Update.
71531         (configure.ac): Add AC_CONFIG_FILES invocation.
71532         (EXTRA_DIST): Remove csharpexec.sh.in.
71533
71534 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
71535
71536         Sync from coreutils.
71537
71538         Add POSIX ACL support
71539         * lib/acl.h (copy_acl, set_acl): Add declarations.
71540         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
71541         systems other than Linux.
71542         (chmod_or_fchmod): New function: use fchmod when possible,
71543         and chmod otherwise.
71544         (file_has_acl): Add a POSIX ACL implementation, with a
71545         Linux-specific subcase.
71546         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
71547         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
71548         acls are unsupported.
71549         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
71550         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
71551         are unsupported.
71552
71553 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
71554
71555         Sync from coreutils.
71556         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
71557
71558 2006-01-07  Bruno Haible  <bruno@clisp.org>
71559
71560         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
71561         gl_EARLY.
71562
71563 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71564
71565         * lib/strftime.c (tzname): Don't declare if it is already #defined.
71566         Problem reported for Mingw by Mark Junker.
71567
71568 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71569
71570         * README: Gnulib normally doesn't generate a tarball.
71571
71572 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
71573
71574         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
71575         long int, not int, for nanosecond counts, so that people who are
71576         used to POSIX struct timespec won't be surprised.  Reported by Jim
71577         Meyering.
71578
71579 2005-12-28  Bruno Haible  <bruno@clisp.org>
71580
71581         * build-aux/config.rpath: Update from GNU gettext.
71582
71583 2005-12-16  Jim Meyering  <jim@meyering.net>
71584
71585         * modules/fprintftime: New module.
71586         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
71587
71588 2005-12-16  Jim Meyering  <jim@meyering.net>
71589
71590         * m4/fprintftime.m4: New file.
71591
71592 2005-12-16  Jim Meyering  <jim@meyering.net>
71593
71594         * lib/fprintftime.c, lib/fprintftime.h: New files.
71595
71596 2005-12-15  Simon Josefsson  <jas@extundo.com>
71597
71598         * modules/socklen (configure.ac): Fix M4 macro name, to align with
71599         new m4/socklen.m4.
71600
71601 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
71602
71603         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
71604         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
71605
71606 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
71607
71608         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
71609         * lib/argp-help.c (fill_in_uparams): Check if the constructed
71610         struct uparams is valid. Fall back to the default values if it is
71611         not.
71612
71613 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71614
71615         * modules/argp (Files): Add argp-pin.c
71616         (Depends-on): dirname
71617         (lib_SOURCES): Add argp-pin.c
71618
71619 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71620
71621         * m4/argp.m4:  Check if program_invocation_name and
71622         program_invocation_short_name are declared and define appropriate
71623         macros if they are not.
71624
71625 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71626
71627         * lib/argp-help.c (__argp_base_name): New function
71628         (__argp_short_program_name): Rewrite using __argp_base_name
71629         * lib/argp-namefrob.h: Define program_invocation_name and
71630         program_invocation_short_name if requested
71631         (__argp_base_name): Add prototype
71632         * lib/argp-parse.c (argp_def): Use gettext wrappers
71633         (argp_default_parser): Use __argp_base_name
71634         * lib/argp-pin.c: New file. Defines program_invocation_name and
71635         program_invocation_short_name on systems that lack them.
71636
71637 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
71638
71639         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
71640         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
71641         porting problem reported by Georg Schwarz in
71642         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
71643
71644 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
71645
71646         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
71647         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
71648         porting problem reported by Georg Schwarz in
71649         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
71650
71651 2005-12-05  Bruno Haible  <bruno@clisp.org>
71652
71653         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
71654         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
71655         Reported by Mark Junker <mjscod@gmx.de>.
71656
71657 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
71658
71659         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
71660         Use implementation from Albert Chin, with some
71661         comments/corrections by Stepan Kasal and myself.
71662
71663 2005-12-02  Bruno Haible  <bruno@clisp.org>
71664
71665         * gnulib-tool (func_import): Accept GPLed build tool modules when
71666         --lgpl is given.
71667         * modules/csharpcomp-script: New file.
71668         * modules/csharpcomp: Depend on it.
71669         * modules/javacomp-script: New file.
71670         * modules/javacomp: Depend on it.
71671         Suggested by Simon Josefsson.
71672
71673 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
71674
71675         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
71676         statement, to work around an HP-UX 10.20 compiler bug reported by
71677         Peter O'Gorman.
71678
71679 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
71680
71681         * modules/savedir (Depends-on): Add openat.
71682
71683 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
71684
71685         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
71686         (uintmax_t) [defined uintmax_t]: Do not declare.
71687         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
71688         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
71689         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
71690         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
71691         sake of portability to weird hosts that C allows (though we don't
71692         know of any practical examples).
71693
71694         * lib/savedir.h (fdsavedir): New decl.
71695         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
71696         contains most of the former guts of savedir.
71697         (savedir): Use savedirstream.
71698         Include "openat.h".
71699
71700 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71701
71702         * modules/obstack (Files): Add m4/ulonglong.m4.
71703         Problem reported by Davide Angelocola.
71704
71705 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
71706
71707         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
71708         coreutils no longer futzes with rounding modes.
71709
71710 2005-11-14  Jim Meyering  <jim@meyering.net>
71711
71712         * lib/mkstemp-safer.c: Include <config.h>, required for possible
71713         replacement of mkstemp.
71714
71715 2005-11-10  Simon Josefsson  <jas@extundo.com>
71716
71717         * lib/readline.c: Remove EOL.
71718
71719 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71720
71721         * modules/gethrxtime (Depends-on): Add gettime.
71722
71723 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71724
71725         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
71726         or gettimeofday; no longer needed.
71727
71728 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71729
71730         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
71731         time business.
71732         (gethrxtime) [! (HAVE_NANOUPTIME
71733         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
71734         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
71735         our own approximation.
71736
71737 2005-11-08  Eric Blake  <ebb9@byu.net>
71738
71739         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
71740
71741 2005-11-08  Eric Blake  <ebb9@byu.net>
71742
71743         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
71744
71745 2005-11-04  Bruno Haible  <bruno@clisp.org>
71746
71747         * gnulib-tool: Implement --update mode.
71748
71749 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
71750
71751         Fix porting problem reported by Theodoros V. Kalamatianos.
71752         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
71753         Don't assume that futimes failing means we must fail.
71754
71755 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
71756
71757         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
71758         variables to suggest the intended function of the PATH_MAX check.
71759
71760 2005-10-30  Kean Johnston  <jkj@sco.com>
71761
71762         Trivial changes to support SCO systems.
71763         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
71764         as PATH_MAX.
71765         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
71766         where __ptr is null when no I/O is pending.
71767
71768 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
71769
71770         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
71771         leave errno alone.  Problem reported by Dmitry V. Levin.
71772
71773 2005-10-28  Simon Josefsson  <jas@extundo.com>
71774
71775         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
71776         Test more.
71777
71778         * tests/test-gc-md2.c, tests/test-md2.c: New files.
71779
71780         * modules/md2, modules/md2-tests: New files.
71781
71782 2005-10-28  Simon Josefsson  <jas@extundo.com>
71783
71784         * m4/inet_ntop.m4: More tests.
71785
71786         * m4/gc-md2.m4, md2.m4: New file.
71787
71788 2005-10-28  Simon Josefsson  <jas@extundo.com>
71789
71790         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
71791         "restrict" keywords, as per POSIX.  Protect the function
71792         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
71793         Don't use K&R prototypes.  Check the sprintf return values.
71794         Re-define EAFNOSUPPORT if not present.  Indent.
71795
71796         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
71797         suggested by Bruno Haible <bruno@clisp.org>.
71798
71799         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
71800
71801         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
71802
71803         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
71804         libgcrypt).
71805
71806         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
71807
71808         * lib/md2.h, lib/md2.c: New files.
71809
71810 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
71811
71812         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
71813         errno alone.  Problem reported by Frederic Jolliton.
71814
71815 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
71816
71817         * modules/verify (License): Change from GPL to LGPL.  This is a
71818         tiny module and there are apparently near-equivalents that are
71819         under the BSD license.
71820
71821 2005-10-24  Simon Josefsson  <jas@extundo.com>
71822
71823         * modules/sha1: Relicense to LGPL.
71824
71825 2005-10-24  Simon Josefsson  <jas@extundo.com>
71826
71827         * lib/md4.h: Shrink buffer size, now that we changed the type.
71828
71829 2005-10-23  Simon Josefsson  <jas@extundo.com>
71830
71831         * gnulib-tool (func_import): Fix --tests-base.
71832
71833 2005-10-22  Simon Josefsson  <jas@extundo.com>
71834
71835         * modules/arcfour (Depends-on): Need stdint.
71836
71837 2005-10-22  Simon Josefsson  <jas@extundo.com>
71838
71839         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
71840         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
71841
71842 2005-10-22  Simon Josefsson  <jas@extundo.com>
71843
71844         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
71845         suggested by Bruno Haible <bruno@clisp.org>.
71846
71847 2005-10-22  Simon Josefsson  <jas@extundo.com>
71848
71849         * lib/crc.h: Include stddef.h, for size_t.
71850
71851 2005-10-22  Simon Josefsson  <jas@extundo.com>
71852
71853         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
71854         arcfour_context struct (simplify test vector testing in GNU
71855         Shishi).
71856
71857 2005-10-21  Simon Josefsson  <jas@extundo.com>
71858
71859         * modules/des, modules/des-tests: New files.
71860
71861         * modules/gc-des, modules/gc-des-tests: New files.
71862
71863         * tests/test-des.c, tests/test-gc-des.c: New file.
71864
71865 2005-10-21  Simon Josefsson  <jas@extundo.com>
71866
71867         * modules/arctwo, modules/arctwo-tests: New files.
71868
71869         * tests/test-arctwo.c: New file.
71870
71871         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
71872
71873         * tests/test-gc-arctwo.c: New file.
71874
71875 2005-10-21  Simon Josefsson  <jas@extundo.com>
71876
71877         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
71878         Bruno Haible <bruno@clisp.org>.
71879
71880         * m4/gc-des.m4: New file.
71881
71882 2005-10-21  Simon Josefsson  <jas@extundo.com>
71883
71884         * m4/arctwo.m4: New file.
71885
71886         * m4/gc-arctwo.m4: New file.
71887
71888 2005-10-21  Simon Josefsson  <jas@extundo.com>
71889
71890         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
71891         block.
71892
71893 2005-10-21  Simon Josefsson  <jas@extundo.com>
71894
71895         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
71896         <bruno@clisp.org>.
71897
71898         * lib/hmac-sha1.c (hmac_sha1): Likewise.
71899
71900         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
71901         Bruno Haible <bruno@clisp.org>.
71902
71903         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
71904         <bruno@clisp.org>.
71905
71906 2005-10-21  Simon Josefsson  <jas@extundo.com>
71907
71908         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
71909
71910 2005-10-21  Simon Josefsson  <jas@extundo.com>
71911
71912         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
71913
71914 2005-10-21  Simon Josefsson  <jas@extundo.com>
71915
71916         * lib/des.h, lib/des.c: New files.
71917
71918         * lib/gc-gnulib.c: Support DES.c
71919
71920 2005-10-21  Simon Josefsson  <jas@extundo.com>
71921
71922         * lib/arctwo.h, lib/arctwo.c: New files.
71923
71924         * lib/gc-gnulib.c: Support ARCTWO.
71925
71926 2005-10-21  Simon Josefsson  <jas@extundo.com>
71927
71928         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
71929         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71930
71931 2005-10-21  Simon Josefsson  <jas@extundo.com>
71932
71933         * gnulib-tool (func_import, func_create_testdir): Define automake
71934         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
71935         Makefile.am snippet),
71936         suggested by Bruno Haible <bruno@clisp.org>.
71937
71938         * modules/gc (Makefile.am): Use it.
71939
71940 2005-10-21  Bruno Haible  <bruno@clisp.org>
71941
71942         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
71943         patch.
71944
71945 2005-10-19  Simon Josefsson  <jas@extundo.com>
71946
71947         * tests/test-gc-rijndael.c: New file.
71948
71949         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
71950
71951 2005-10-19  Simon Josefsson  <jas@extundo.com>
71952
71953         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
71954         interface too.
71955
71956 2005-10-19  Simon Josefsson  <jas@extundo.com>
71957
71958         * tests/test-gc-arcfour.c: New file.
71959
71960         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
71961
71962 2005-10-19  Simon Josefsson  <jas@extundo.com>
71963
71964         * modules/gc-md4, modules/gc-md4-tests: New file.
71965
71966         * tests/test-gc-md4.c: New file.
71967
71968 2005-10-19  Simon Josefsson  <jas@extundo.com>
71969
71970         * m4/gc-md4.m4: New file.
71971
71972 2005-10-19  Simon Josefsson  <jas@extundo.com>
71973
71974         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
71975         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
71976         <kasal@ucw.cz>.
71977
71978 2005-10-19  Simon Josefsson  <jas@extundo.com>
71979
71980         * m4/gc-arcfour.m4: New file.
71981
71982         * m4/gc-rijndael.m4: New file.
71983
71984 2005-10-19  Simon Josefsson  <jas@extundo.com>
71985
71986         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
71987
71988 2005-10-19  Simon Josefsson  <jas@extundo.com>
71989
71990         * lib/gc-gnulib.c: Support ARCFOUR.
71991
71992 2005-10-19  Simon Josefsson  <jas@extundo.com>
71993
71994         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
71995         support.
71996
71997         * lib/gc.h: Add ECB enum type.
71998
71999         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
72000
72001 2005-10-18  Simon Josefsson  <jas@extundo.com>
72002
72003         * tests/test-md5.c: New file.
72004
72005         * modules/md5-tests: New file.
72006
72007 2005-10-18  Simon Josefsson  <jas@extundo.com>
72008
72009         * tests/test-md4.c: New file.
72010
72011         * modules/md4, modules/md4-tests: New files.
72012
72013 2005-10-18  Simon Josefsson  <jas@extundo.com>
72014
72015         * m4/md4.m4: New file.
72016
72017 2005-10-18  Simon Josefsson  <jas@extundo.com>
72018
72019         * lib/md4.h, lib/md4.c: New files, based on md5.?.
72020
72021 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
72022
72023         * gnulib-tool (func_create_testdir): Omit the second check whether
72024         BUILT_SOURCES in nonempty.
72025
72026 2005-10-17  Simon Josefsson  <jas@extundo.com>
72027
72028         * tests/test-rijndael.c: New file.
72029
72030 2005-10-17  Simon Josefsson  <jas@extundo.com>
72031
72032         * modules/sha1: Depend on stdint instead of md5.
72033
72034         * modules/md5: Depend on stdint, remove uint32_t.
72035
72036 2005-10-17  Simon Josefsson  <jas@extundo.com>
72037
72038         * modules/gc-sha1-tests: New file.
72039
72040         * tests/test-gc-sha1.c: New file.
72041
72042 2005-10-17  Simon Josefsson  <jas@extundo.com>
72043
72044         * m4/md5.m4: Remove call to uint32_t.m4.
72045
72046 2005-10-17  Simon Josefsson  <jas@extundo.com>
72047
72048         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
72049
72050         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
72051         md5.h.
72052
72053         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
72054
72055         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
72056
72057 2005-10-17  Simon Josefsson  <jas@extundo.com>
72058
72059         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
72060
72061 2005-10-17  Simon Josefsson  <jas@extundo.com>
72062
72063         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
72064
72065 2005-10-17  Simon Josefsson  <jas@extundo.com>
72066
72067         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
72068
72069         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
72070
72071 2005-10-17  Bruno Haible  <bruno@clisp.org>
72072
72073         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
72074         that it can also be used in a test.
72075
72076 2005-10-16  Bruno Haible  <bruno@clisp.org>
72077
72078         * gnulib-tool (func_emit_tests_Makefile_am): Also define
72079         TESTS_ENVIRONMENT, so that individual tests can augment it.
72080
72081         * gnulib-tool (func_create_testdir): Use an intermediate target for
72082         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
72083         macros, like $(ALLOCA_H), which cannot be passed through the command
72084         line.
72085
72086 2005-10-15  Simon Josefsson  <jas@extundo.com>
72087
72088         * modules/rijndael-tests: New file.
72089
72090         * modules/rijndael: New file.
72091
72092 2005-10-15  Simon Josefsson  <jas@extundo.com>
72093
72094         * m4/rijndael.m4: New file.
72095
72096 2005-10-15  Simon Josefsson  <jas@extundo.com>
72097
72098         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
72099
72100         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
72101
72102 2005-10-14  Simon Josefsson  <jas@extundo.com>
72103
72104         * tests/test-arcfour.c: New file.
72105
72106         * modules/arcfour, modules/arcfour-tests: New files.
72107
72108 2005-10-14  Simon Josefsson  <jas@extundo.com>
72109
72110         * m4/arcfour.m4: New file.
72111
72112 2005-10-14  Simon Josefsson  <jas@extundo.com>
72113
72114         * lib/arcfour.h, lib/arcfour.c: New files.
72115
72116 2005-10-14  Roland McGrath  <roland@redhat.com>
72117
72118         Import from libc.  [BZ #1331]
72119         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
72120         macro argument.
72121         Reported by Matej Vela <vela@debian.org>.
72122
72123 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72124
72125         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
72126         include <wchar.h>; no longer needed.
72127
72128 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72129
72130         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
72131
72132 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
72133         and  Ulrich Drepper  <drepper@redhat.com>
72134
72135         Import from libc.
72136         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
72137         instead of inline stream orientation test and two separate
72138         function calls.  Pay no attention to USE_IN_LIBIO.
72139
72140 2005-10-13  Simon Josefsson  <jas@extundo.com>
72141
72142         * modules/gc-hmac-md5-tests: New file.
72143
72144         * tests/test-gc-hmac-sha1.c: New file.
72145
72146         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
72147
72148         * modules/gc-hmac-md5-tests: New file.
72149
72150         * tests/test-gc-md5.c: New file.
72151
72152         * modules/gc-md5-tests: New file.
72153
72154 2005-10-13  Simon Josefsson  <jas@extundo.com>
72155
72156         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
72157         Move memory allocation outside of loop.
72158
72159 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
72160
72161         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
72162         intermediate directory is in a read-only file system.  Problem
72163         reported by Eric Blake.
72164
72165 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
72166
72167         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
72168
72169 2005-10-12  Simon Josefsson  <jas@extundo.com>
72170
72171         * tests/test-hmac-sha1.c: New file.
72172
72173         * modules/hmac-sha1-tests: New file.
72174
72175         * modules/hmac-sha1: New file.
72176
72177 2005-10-12  Simon Josefsson  <jas@extundo.com>
72178
72179         * modules/gc-sha1: New file.
72180
72181 2005-10-12  Simon Josefsson  <jas@extundo.com>
72182
72183         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
72184
72185         * tests/test-gc-pbkdf2-sha1.c: New file.
72186
72187 2005-10-12  Simon Josefsson  <jas@extundo.com>
72188
72189         * modules/gc-md5, modules/gc-hmac-md5: New files.
72190
72191         * modules/gc (Files): Remove md5, memxor and hmac files.
72192
72193 2005-10-12  Simon Josefsson  <jas@extundo.com>
72194
72195         * m4/gc-pbkdf2-sha1.m4: New file.
72196
72197         * m4/gc-hmac-sha1.m4: New file.
72198
72199         * m4/gc-sha1: New file.
72200
72201         * m4/hmac-sha1.m4: New file.
72202
72203 2005-10-12  Simon Josefsson  <jas@extundo.com>
72204
72205         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
72206
72207         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
72208
72209 2005-10-12  Simon Josefsson  <jas@extundo.com>
72210
72211         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
72212         suggested by Bruno Haible <bruno@clisp.org>.
72213
72214 2005-10-12  Simon Josefsson  <jas@extundo.com>
72215
72216         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
72217
72218 2005-10-12  Simon Josefsson  <jas@extundo.com>
72219
72220         * lib/gc-pbkdf2-sha1.c: New file.
72221
72222         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
72223
72224 2005-10-12  Simon Josefsson  <jas@extundo.com>
72225
72226         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
72227
72228         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
72229
72230 2005-10-12  Simon Josefsson  <jas@extundo.com>
72231
72232         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
72233         GC_USE_HMAC_MD5, respectively.
72234
72235         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
72236         (gc_md5): Fix typo.
72237
72238         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
72239
72240         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
72241
72242         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
72243
72244 2005-10-12  Bruno Haible  <bruno@clisp.org>
72245
72246         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
72247         Reported by Stepan Kasal <kasal@ucw.cz>.
72248
72249 2005-10-11  Simon Josefsson  <jas@extundo.com>
72250
72251         * tests/test-crc.c: New file.
72252
72253         * modules/crc, modules/crc-tests: New files.
72254
72255 2005-10-11  Simon Josefsson  <jas@extundo.com>
72256
72257         * m4/crc.m4: New file.
72258
72259 2005-10-11  Simon Josefsson  <jas@extundo.com>
72260
72261         * lib/gc.h: Add gc_hash and gc_hash_buffer.
72262
72263         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
72264
72265         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
72266
72267 2005-10-11  Simon Josefsson  <jas@extundo.com>
72268
72269         * lib/crc.h, lib/crc.c: New files.
72270
72271         * lib/gc.h (gc_hash_buffer): Add doc.
72272
72273 2005-10-11  Bruno Haible  <bruno@clisp.org>
72274
72275         * modules/c-strcasestr: New file.
72276         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
72277
72278 2005-10-11  Bruno Haible  <bruno@clisp.org>
72279
72280         * modules/c-strcase: New file.
72281         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
72282
72283 2005-10-11  Bruno Haible  <bruno@clisp.org>
72284
72285         * lib/strcasecmp.c: Include limits.h.
72286         (strcasecmp): Avoid integer overflow on exotic platforms.
72287         * lib/strncasecmp.c: Include limits.h.
72288         (strncasecmp): Avoid integer overflow on exotic platforms.
72289         Reported by Paul Eggert.
72290
72291 2005-10-11  Bruno Haible  <bruno@clisp.org>
72292
72293         * lib/c-strcasestr.h: New file, from GNU gettext.
72294         * lib/c-strcasestr.c: New file, from GNU gettext.
72295
72296 2005-10-11  Bruno Haible  <bruno@clisp.org>
72297
72298         * lib/c-strcase.h: New file, from GNU gettext.
72299         * lib/c-strcasecmp.c: New file, from GNU gettext.
72300         * lib/c-strncasecmp.c: New file, from GNU gettext.
72301
72302 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72303
72304         * modules/mempcpy (License): GPL -> LGPL.
72305         * modules/strchrnul (License): Likewise.
72306         * modules/sysexits (License): Likewise.
72307
72308 2005-10-08  Simon Josefsson  <jas@extundo.com>
72309
72310         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
72311
72312 2005-10-07  Simon Josefsson  <jas@extundo.com>
72313
72314         * m4/memxor.m4: Remove gl_C_RESTRICT call.
72315
72316 2005-10-06  Simon Josefsson  <jas@extundo.com>
72317
72318         * tests/test-hmac-md5.c: New file.
72319
72320         * modules/hmac-md5-tests: New file.
72321
72322         * modules/hmac-md5: New file.
72323
72324 2005-10-06  Simon Josefsson  <jas@extundo.com>
72325
72326         * m4/hmac-md5.m4: New file.
72327
72328         * m4/memxor.m4: Require gl_C_RESTRICT.
72329
72330 2005-10-06  Simon Josefsson  <jas@extundo.com>
72331
72332         * lib/memxor.c (memxor): Avoid casts and warnings.
72333
72334 2005-10-06  Simon Josefsson  <jas@extundo.com>
72335
72336         * lib/hmac-md5.c: New file.
72337
72338         * lib/hmac.h: New file.
72339
72340 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72341
72342         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
72343         promotes to int, not unsigned int, to catch the AIX 5.3
72344         compiler bug.
72345
72346 2005-10-05  Simon Josefsson  <jas@extundo.com>
72347
72348         * modules/memxor: New file.
72349
72350         * modules/iconv (Files): Move config.rpath to havelib, it is used
72351         there.
72352
72353         * modules/havelib (Files): Add config.rpath.
72354
72355 2005-10-05  Simon Josefsson  <jas@extundo.com>
72356
72357         * m4/memxor.m4: New file.
72358
72359 2005-10-05  Simon Josefsson  <jas@extundo.com>
72360
72361         * lib/memxor.c (memxor): Fix compiler error.
72362
72363         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
72364         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
72365
72366         * lib/memxor.h, lib/memxor.c: New files.
72367
72368         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
72369         we assume all systems have it, suggested by Jim Meyering
72370         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
72371         any systems lack sys/socket.h; mingw32 is known to lack it, but we
72372         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
72373         same reasons.
72374
72375 2005-10-05  Simon Josefsson  <jas@extundo.com>
72376
72377         * config/srclist.txt: Add glibc bug 1423 for md5.h.
72378
72379 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
72380
72381         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
72382         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
72383         needed, since the source code now assumes these .h files.
72384
72385 2005-10-05  Derek Price  <derek@ximbiot.com>
72386
72387         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
72388
72389 2005-10-05  Bruno Haible  <bruno@clisp.org>
72390
72391         * modules/stdint (License): Change to LGPL.
72392
72393 2005-10-04  Simon Josefsson  <jas@extundo.com>
72394
72395         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
72396         D. Baushke" <mdb@gnu.org>.
72397
72398 2005-10-04  Bruno Haible  <bruno@clisp.org>
72399
72400         * lib/verify.h (verify_true): Provide alternative definition for C++.
72401
72402 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
72403
72404         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
72405         (SSIZE_MAX): New macro, if not already defined.
72406         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
72407         than 2 GiB.
72408
72409 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
72410
72411         Sync from coreutils.
72412         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
72413         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
72414         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
72415         ULLONG_MAX doesn't work with 2.7.2.1.
72416
72417 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
72418
72419         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
72420         From Ben Pfaff.
72421
72422         * modules/exclude (Depends-on): Depend on verify.
72423         * modules/strtoimax (Depends-on): Likewise.
72424         * modules/utimecmp (Depends-on): Likewise.
72425
72426 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
72427
72428         * lib/exclude.c: Include verify.h.
72429         (verify): Remove.  All callers changed to use verify.h's version.
72430         * lib/strtoimax.c: Likewise.
72431         * lib/utimecmp.c: Likewis.e
72432
72433         Sync from coreutils.
72434         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
72435         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
72436         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
72437         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
72438         bother returning ENOSYS if settimeofday or stime fails; just let
72439         them return whatever errno they want to return.
72440         * lib/utimens.c: Include unistd.h, for dup2.
72441         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
72442         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
72443
72444 2005-10-02  Jim Meyering  <jim@meyering.net>
72445
72446         Sync from coreutils.
72447         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
72448         from glibc-2.2.5 that fails for read-only files.
72449
72450 2005-10-02  Jim Meyering  <jim@meyering.net>
72451
72452         Sync from coreutils.
72453         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
72454         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
72455         `#if HAVE_CONFIG_H'.
72456         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
72457         Remove AT_FDCWD test.
72458         Do not consume the fd unless successful.
72459         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
72460         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
72461         block, so that we don't even try to compile it if settimeofday is
72462         available.  This works around a compilation failure on OSF1 V5.1,
72463         due to stime requiring a `long int*' while tv_sec is `int'.
72464
72465 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
72466
72467         Sync from coreutils.
72468         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
72469         against `yes', rather than just testing for nonempty.
72470
72471 2005-10-01  Simon Josefsson  <jas@extundo.com>
72472
72473         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
72474         and Darwin.
72475
72476         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
72477         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
72478         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
72479         freeaddrinfo and gai_strerror are declared by the POSIX headers.
72480         Check if struct addrinfo is declared.
72481
72482 2005-10-01  Simon Josefsson  <jas@extundo.com>
72483
72484         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
72485         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
72486         AI_* and EAI_* definitions.  Protect function declarations.
72487
72488 2005-10-01  Jim Meyering  <jim@meyering.net>
72489
72490         Sync from coreutils.
72491
72492         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
72493         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
72494         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
72495         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
72496         in the inet and nsl libraries.  Required on Solaris 5.7.
72497
72498 2005-10-01  Jim Meyering  <jim@meyering.net>
72499
72500         Sync from coreutils.
72501         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
72502         in the inet and nsl libraries.  Required on Solaris 5.7.
72503
72504 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
72505
72506         * lib/getdelim.c (getdelim): Remove unused variables.
72507
72508 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
72509
72510         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
72511         so that the code works even with ancient cpp.  Portability problem
72512         with GCC 2.7.2.1 reported by Thomas M.Ott.
72513
72514 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
72515
72516         * modules/regex (Depends-on): Add strcase.
72517
72518         * modules/gethostname (Licence): Change from GPL to LGPL, since
72519         gethostname.c is a trivial implementation of a standard library
72520         function.
72521         * modules/poll (License): Change from GPL to LGPL, since it's
72522         derived from LGPL code.
72523
72524 2005-09-27  Jim Meyering  <jim@meyering.net>
72525
72526         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
72527         HAVE_CONFIG_H.
72528
72529         * lib/intprops.h (signed_type_or_expr__): Define.
72530         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
72531         for unsigned types.
72532
72533 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
72534
72535         * lib/verify.h (verify_expr): Remove, replacing with:
72536         (verify_true): New macro that returns true instead of void.
72537         (verify_type__): Remove.
72538         (verify): Use verify_true rather than verify_type__.
72539
72540 2005-09-26  Bruno Haible  <bruno@clisp.org>
72541
72542         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
72543         is necessary.
72544         (lib_SOURCES): Remove mbchar.c.
72545         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
72546         (Files): Add m4/mbrtowc.m4.
72547         * modules/mbiter: Likewise.
72548         * modules/mbuiter: Likewise.
72549
72550 2005-09-26  Bruno Haible  <bruno@clisp.org>
72551
72552         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
72553         compile mbchar.c if they are not both present.
72554         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
72555         * m4/mbiter.m4 (gl_MBITER): Likewise.
72556         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
72557         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
72558         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
72559
72560 2005-09-25  Jim Meyering  <jim@meyering.net>
72561
72562         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
72563         also uses socklen_t.
72564
72565 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
72566
72567         * lib/utimens.c (ENOSYS): Define if not already defined.
72568         (futimens): Support having a null PATH if the file descriptor
72569         is nonnegative.
72570
72571         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
72572         Remove.
72573         (__attribute): Define to empty unless GCC 3.1 or later.
72574         This works around a core dump on OpenBSD 3.4, which has GCC
72575         2.95.3, which dumps core when given __attribute__(()).  It also
72576         simplifies other tests, since we really don't want to bother with
72577         worrying about which ancient version of GCC supported what.
72578         Original problem reported by Yoann Vandoorselaere, with part of
72579         the fix suggested by Derek Price.
72580
72581 2005-09-24  Jim Meyering  <jim@meyering.net>
72582
72583         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
72584         so we can once again use a positive bitfield width of 1 -- now we
72585         don't have to explain why we were using a bitfield width of 2.
72586
72587 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
72588
72589         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
72590         and similarly for the other external symbols.  Problem reported
72591         by James Gallager.
72592
72593         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
72594         bug reported by Jim Meyering.
72595
72596         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
72597         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
72598         not needed, since socklen is a prerequisite module.
72599
72600 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
72601
72602         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
72603         Problem reported by Eric Blake.
72604         (getaddrinfo): Initialize se so that it's not garbage.
72605         Redo internal storage allocation so that it doesn't make unportable
72606         assumptions about alignment.
72607         Fix a memory leak.
72608
72609         * lib/utimens.c (futimens): Use futimesat if available.
72610         Prefer it to futimes since it doesn't have the futimes bug.
72611
72612         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
72613         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
72614         Instead, declare a function that returns a pointer to an array,
72615         and use verify_type__ to declare the size of the array.
72616         Problem and germ of a solution reported by Bruno Haible.
72617         (verify_type__): Use 2, not 1, for bitfield size, to avoid
72618         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
72619
72620 2005-09-23  Jim Meyering  <jim@meyering.net>
72621
72622         Sync from coreutils.
72623         Correct build failure (socklen_t not defined) on at least
72624         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
72625         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
72626
72627 2005-09-23  Jim Meyering  <jim@meyering.net>
72628
72629         * modules/getaddrinfo (Depends-on): Add socklen.
72630
72631 2005-09-23  Bruno Haible  <bruno@clisp.org>
72632
72633         * tests/test-verify.c: New file.
72634
72635 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
72636
72637         Sync from coreutils.
72638
72639         * modules/argmatch (Depends-on): Add verify.
72640         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
72641         unistd-safer.
72642         * modules/save-cwd (Depends-on): Likewise.
72643
72644         * modules/openat (Files): Add lib/openat-die.c.
72645         (Depends-on): Remove error, exitfail.
72646         Add dirname.
72647
72648         * modules/verify: New file.
72649         * MODULES.html.sh (Diagnostics <assert.h>): New section,
72650         with "verify" module.
72651
72652 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
72653
72654         Sync from coreutils.
72655
72656         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
72657         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
72658         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
72659         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
72660         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
72661         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
72662         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
72663         Don't bother checking for string.h, stdlib.h, unistd.h.
72664         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
72665         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
72666         module's job.
72667         * m4/jm-macros.m4 (gl_MACROS): Likewise.
72668         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
72669
72670         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
72671         (gl_GETDATE): Use it.
72672
72673         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
72674
72675 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
72676
72677         Sync from coreutils.
72678
72679         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
72680         stat-time.h.
72681         * lib/argmatch.h: Include verify.h
72682         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
72683         (ARGMATCH_ASSERT): Remove; unused.
72684         * lib/canonicalize.c: Assume STDC_HEADERS.
72685         * lib/exclude.c: Include "strcase.h".
72686         * lib/regex_internal.h [!defined _LIBC]: Likewise.
72687         * lib/getusershell.c: Include stdio--.h rather than stdio.h
72688         and stdio-safer.h.
72689         (getusershell): Call fopen, not fopen_safer.
72690         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
72691         Do not include unistd-safer.h.
72692         (save_cwd): Don't call fd_safer; no longer needed
72693         now that we include fcntl--.h.
72694
72695         * lib/getdate.y (relative_time): New type.
72696         (RELATIVE_TIME_0): New constant.
72697         (parser_control): Use relative_time instead of doing it ourselves.
72698         (%union): Add new relative_time rel member.
72699         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
72700         Now typeless.
72701         (relunit, relunit_snumber): Now of type rel.
72702         (zone, rel, relunit, get_date): Adjust to above changes.
72703
72704         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
72705         Do not include unistd-safer.h.
72706         (getloadavg): Don't call fd_safer; no longer needed
72707         now that we include fcntl--.h.
72708
72709         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
72710         (make_dir_parents): Treat ENOSYS like EEXIST.
72711
72712         Improve quality of diagnostics on restore_cwd failure.
72713         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
72714         (make_dir_parents): Last arg is now int * (for errno), not bool *.
72715         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
72716         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
72717         each time through the loop.  Do not diagnose restore_cwd failure;
72718         that is the caller's job (and perhaps the caller does not care).
72719
72720         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
72721         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
72722         If the file already exists but is not a directory, don't bother
72723         to try to make its parents.
72724         Close potential file descriptor leak if we can't chdir("/") (!).
72725         Don't always return true if chdir($PWD) fails; return true only
72726         if the requested action was done successfully (except for the
72727         chdir($PWD)).
72728         Don't log final directory unless we actually made it.
72729         Refactor to avoid duplicate code to fix up permissions.
72730         Don't attempt to fix up parent permissions if chdir($PWD) fails.
72731
72732         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
72733         to make it a bit faster and (I hope) clearer.
72734         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
72735         Fix bug in formats like %2N.
72736
72737         * lib/verify.h: New file.
72738
72739 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
72740
72741         Sync from coreutils.
72742         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
72743
72744 2005-09-22  Jim Meyering  <jim@meyering.net>
72745
72746         Sync from coreutils.
72747
72748         * m4/lstat.m4 (gl_FUNC_LSTAT):
72749         Use AC_LIBSOURCES to require lstat.c and lstat.h.
72750         Remove obsolete comment.
72751         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
72752         * m4/xstrtod.m4: Likewise.
72753
72754         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
72755
72756 2005-09-22  Jim Meyering  <jim@meyering.net>
72757
72758         Sync from coreutils.
72759
72760         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
72761
72762         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
72763         the .tm_year member, since otherwise gcc-4.0 would now warn about
72764         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
72765
72766         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
72767         order to avoid an unsuppressible warning from gcc on 64-bit systems.
72768
72769         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
72770         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
72771         when run in a time zone for which daylight savings time is in effect
72772         for the starting date.
72773
72774         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
72775         stop us from restricting permissions of just-created absolute-named
72776         directories.
72777         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
72778         to restore initial working directory.
72779         * lib/mkdir-p.c (make_dir_parents): New parameter:
72780         different_working_dir, to tell caller if/when we change the working
72781         directory and are unable to return to the initial one.
72782         * lib/mkdir-p.h (make_dir_parents): Update prototype.
72783         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
72784         `return false'.  This fixes a bug introduced on 2004-07-30.
72785
72786         * lib/openat.c (fdopendir): Be sure to close the supplied
72787         file descriptor before returning.  This makes our replacement
72788         implementation a little closer to Solaris's, where fdopendir
72789         ties the file descriptor to the returned DIR* pointer.
72790         * lib/openat.c (unlinkat): New function.
72791         * lib/openat.h (unlinkat): Add prototype.
72792         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
72793         (openat_restore_fail): Rename from openat_restore_die.
72794         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
72795
72796         Provide an alternative to exiting immediately upon save_cwd or
72797         restore_cwd failure.  Now, an application can arrange e.g.,
72798         to perform a longjump in that case.
72799         * lib/openat.c: Include dirname.h.
72800         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
72801         (rpl_openat, fdopendir, fstatat): Call openat_save_die
72802         and openat_restore_die rather than calling error directly.
72803         Don't include "error.h" or "exitfail.h"; they're no longer needed.
72804
72805         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
72806         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
72807         define.
72808
72809         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
72810         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
72811                             int utc, int nanoseconds);
72812         Background:
72813         date should not have to allocate a megabyte of virtual memory to
72814         handle a format argument like +%1048575T.  When implemented with
72815         strftime, it must allocate such a buffer, use strftime to fill it
72816         in, print it, then free it.
72817         With fprintftime, it simply prints everything and exits.
72818         With no need for memory allocation, that's one fewer way to fail.
72819         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
72820         optional field width, not before, so we accept %9:z, not %:9z.
72821         (my_strftime): Be sure to use L_('x') for literals.
72822
72823         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
72824         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
72825         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
72826         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
72827         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
72828         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
72829         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
72830         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
72831         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
72832         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
72833         * lib/xgethostname.c, lib/xreadlink.c:
72834         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
72835
72836         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
72837         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
72838         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
72839         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
72840         and don't include <sys/file.h>).
72841
72842 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
72843
72844         Sync from coreutils.
72845
72846         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
72847         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
72848         [!LDAV_DONE]: Avoid unused variable warning.
72849
72850 2005-09-21  Bruno Haible  <bruno@clisp.org>
72851
72852         * lib/unicodeio.h (unicode_to_mb): New declaration.
72853
72854 2005-09-20  Derek Price  <derek@ximbiot.com>
72855
72856         * lib/getaddrinfo.c: Don't include <netdb.h> included from
72857         getaddrinfo.h.
72858
72859 2005-09-20  Bruno Haible  <bruno@clisp.org>
72860
72861         * gnulib-tool: Remove trailing slashes from the values specified for
72862         --source-base, --m4-base, --tests-base, --aux-dir.
72863         Suggested by Simon Josefsson <jas@extundo.com>.
72864
72865 2005-09-20  Bruno Haible  <bruno@clisp.org>
72866
72867         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
72868         func_modules_to_filelist, func_import, func_create_testdir): Make all
72869         sorting results locale-independent, so that gnulib-cache.m4 doesn't
72870         change when gnulib-tool is invoked in a different locale.
72871
72872 2005-09-19  Simon Josefsson  <jas@extundo.com>
72873
72874         * m4/socklen.m4: Fix typo.
72875
72876 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72877
72878         Use a consistent style for including <config.h>.
72879         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
72880         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
72881         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
72882         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
72883         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
72884         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
72885         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
72886         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
72887         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
72888         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
72889         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
72890         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
72891         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
72892         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
72893         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
72894         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
72895         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
72896         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
72897         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
72898         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
72899         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
72900         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
72901         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
72902         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
72903         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
72904         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
72905         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
72906         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
72907         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
72908         lib/xstrtoumax.c, lib/yesno.c:
72909         Standardize inclusion of config.h.
72910         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
72911         lib/inttostr.h:  Removed inclusion of config.h from header files.
72912         * lib/inttostr.c:  Adjusted in-tree users.
72913         * lib/timespec.h: Remove superfluous warning to include config.h.
72914         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
72915         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
72916         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
72917         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
72918         config.h with HAVE_CONFIG_H.
72919
72920 2005-09-19  Jim Meyering  <jim@meyering.net>
72921
72922         * modules/pathmax (License): Change to LGPL.
72923
72924 2005-09-19  Derek Price  <derek@ximbiot.com>
72925
72926         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
72927
72928 2005-09-19  Bruno Haible  <bruno@clisp.org>
72929
72930         * gnulib-tool (import): Provide default for --tests-base.
72931
72932 2005-09-19  Bruno Haible  <bruno@clisp.org>
72933
72934         * doc/quote.texi: New file, extracted from gnulib.texi.
72935         * doc/ctime.texi: New file, extracted from gnulib.texi.
72936         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
72937         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
72938         * doc/gnulib.texi: Include them.
72939
72940 2005-09-18  Bruno Haible  <bruno@clisp.org>
72941
72942         Portability fix.
72943         * gnulib-tool (func_readlink): New function.
72944         (func_ln_if_changed): Use it.
72945
72946 2005-09-18  Bruno Haible  <bruno@clisp.org>
72947
72948         * gnulib-tool: Support --with-tests also with --import.
72949         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
72950         (func_import): Use variables $testsbase and $inctests. Emit a
72951         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
72952         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
72953         SUBDIRS += $testsdir.
72954         (func_create_testdir): Update.
72955
72956 2005-09-18  Bruno Haible  <bruno@clisp.org>
72957
72958         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
72959         instead of $dry_run.
72960         (func_cp_if_changed, func_mv_if_changed): Remove functions.
72961         (func_ln_if_changed): Don't handle dry-run here.
72962         (func_import): In dry-run mode, detect more precisely which actions
72963         would be performed, and don't use "...ing" verbs.
72964
72965 2005-09-18  Bruno Haible  <bruno@clisp.org>
72966
72967         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
72968         (func_import): Use join on two temporary files instead of three nested
72969         loops, in order to determine which files are new or old.
72970
72971 2005-09-18  Bruno Haible  <bruno@clisp.org>
72972
72973         * gnulib-tool (func_import): Comment out code that spits out the
72974         new files with --dry-run.
72975
72976 2005-09-18  Bruno Haible  <bruno@clisp.org>
72977
72978         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
72979
72980 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
72981
72982         * lib/stat-time.h: New file.
72983         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
72984         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
72985         in a different way.
72986         (timespec_cmp): New function.
72987         * lib/utimecmp.c: Include stat-time.h.
72988         (SYSCALL_RESOLUTION): Depend on whether various struct stat
72989         members exist, not on the obsolescent ST_MTIM_NSEC.
72990         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
72991
72992 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
72993
72994         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
72995
72996 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
72997
72998         * MODULES.html.sh (File system functions): Add stat-time.
72999         * modules/stat-time: New file.
73000         * modules/timespec (Files): Remove m4/st_mtim.m4; this
73001         is now done in a different way, by the stat-time module.
73002         * modules/utimecmp (Depends-on): Add stat-time.
73003
73004 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73005
73006         * m4/st_mtim.m4: Remove.  Superseded by...
73007         * m4/stat-time.m4: New file.
73008         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
73009         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
73010
73011 2005-09-15  Derek Price  <derek@ximbiot.com>
73012
73013         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
73014
73015 2005-09-15  Derek Price  <derek@ximbiot.com>
73016
73017         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
73018         * lib/regex_internal.c: Ditto, using this...
73019         (__GNUC_PREREQ): ...new macro.
73020         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
73021         using...
73022         (__GNUC_PREREQ): ...this new macro.
73023
73024         * lib/strstr.h: Include string.h. Define strstr as a macro here.
73025
73026 2005-09-15  Derek Price  <derek@ximbiot.com>
73027             Paul Eggert  <eggert@cs.ucla.edu>
73028
73029         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
73030         changes, consolidating in...
73031         * lib/regex_internal.h: ...this file.
73032
73033 2005-09-13  Jim Meyering  <jim@meyering.net>
73034
73035         * lib/canon-host.c: Filter through gnu indent and reword comments
73036         slightly.
73037         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
73038
73039 2005-09-13  Derek Price  <derek@ximbiot.com>
73040
73041         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
73042         failure.
73043         Reported by Jim Meyering  <jim@meyering.net>.
73044
73045 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73046
73047         * lib/base64.c: Typo.
73048         (base64_encode): Put b64str in initialized data section.
73049
73050 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
73051
73052         Merge glibc and coreutils changes into gnulib, plus a few
73053         extra fixes.
73054         * lib/md5.c: Use #error rather than a string.
73055         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
73056         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
73057         (__attribute__): Define to empty for non recent-GCC.
73058         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
73059         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
73060         Renamed from their non-__ counterparts, with new macros replacing
73061         them if not _LIBC.  Add __THROW attribute.
73062         (rol): Remove.
73063         (struct md5_ctx): Align buffer if using GCC.
73064         * lib/sha1.h (struct sha1_ctx): Likewise.
73065         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
73066         The old name was backwards.
73067         (NOTSWAP): Remove; not used.
73068         (rol): New macro, moved here from md5.h.
73069         (sha1_process_block): Remove a FIXME that doesn't make sense.
73070
73071 2005-09-12  Derek Price  <derek@ximbiot.com>
73072
73073         Return usable errors from canon-host.
73074         * lib/canon-host.h: New file.
73075         * lib/canon-host.c (canon_host): Wrap...
73076         (canon_host_r): ...this new function, which now relies exclusively on
73077         getaddrinfo.
73078         (ch_strerror): New function.
73079         (last_cherror): New global.
73080         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
73081         interface.
73082         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
73083         void *.
73084         (freeaddrinfo): Free ai->ai_canonname when set.
73085
73086 2005-09-12  Derek Price  <derek@ximbiot.com>
73087
73088         Make canon-host require getaddrinfo.
73089         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
73090         AC_LIBSOURCE canon-host.h.  Call...
73091         (gl_PREREQ_CANON_HOST): ...this new function, which requires
73092         gl_GETADDRINFO.
73093         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
73094
73095 2005-09-12  Derek Price  <derek@ximbiot.com>
73096
73097         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
73098         LGPL.
73099         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
73100
73101 2005-09-12  Derek Price  <derek@ximbiot.com>
73102
73103         * lib/gai_strerror.c: Include config.h when available.  Include
73104         getaddrinfo.h before other headers to test interface.
73105         Reported by Larry Jones <lawrence.jones@ugs.com>.
73106
73107 2005-09-12  Derek Price  <derek@ximbiot.com>
73108             Paul Eggert  <eggert@cs.ucla.edu>
73109
73110         * modules/glob (Files): Add glob-libc.h.
73111
73112 2005-09-12  Derek Price  <derek@ximbiot.com>
73113             Paul Eggert  <eggert@cs.ucla.edu>
73114
73115         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
73116         glob_.h, glob-libc.h.
73117         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
73118
73119 2005-09-12  Derek Price  <derek@ximbiot.com>
73120             Paul Eggert  <eggert@cs.ucla.edu>
73121
73122         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
73123         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
73124         protecting things that should be done only in gnulib contexts.
73125         * lib/glob_.h: New file, containing only the glob things needed for
73126         gnulib.
73127         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
73128         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
73129         (glob, globfree, glob_pattern_p): Now defined simply in terms of
73130         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
73131         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
73132         and to respect the namespace rules better.
73133
73134 2005-09-08  Simon Josefsson  <jas@extundo.com>
73135
73136         * modules/socklen: New file.
73137
73138 2005-09-08  Simon Josefsson  <jas@extundo.com>
73139
73140         * m4/socklen.m4: New file.
73141
73142 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73143
73144         * modules/utimens (Files): Add m4/utimbuf.m4, since
73145         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
73146         Reported by Sergey Poznyakoff.
73147
73148 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73149
73150         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
73151         definitions, since that's the preferred style in glibc.
73152         Fix a minor spacing issue, and update copyright notice to match
73153         glibc's.
73154
73155 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73156
73157         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
73158
73159 2005-09-06  Simon Josefsson  <jas@extundo.com>
73160
73161         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
73162         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
73163
73164 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73165
73166         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
73167         warning.
73168
73169 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73170
73171         * config/srclist.txt: Add glibc bug 1302.
73172
73173 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
73174
73175         Change bitset word type from unsigned int to unsigned long int,
73176         as this has better performance on typical 64-bit hosts.
73177         Port bitset code to hosts with unusual word sizes.
73178         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
73179         (build_collating_symbol):
73180         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
73181         argument is a bitset.  This is merely a style issue, but it makes
73182         it clearer that an entire array is expected.
73183         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
73184         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
73185         Port to the case where bitset_word is not the same as unsigned int.
73186         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
73187         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
73188         Likewise.
73189         * lib/regexec.c (check_dst_limits_calc_pos_1,
73190         check_subexp_matching_top):
73191         (build_trtable, group_nodes_into_DFAstates):
73192         Likewise.
73193         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
73194         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
73195         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
73196         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
73197         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
73198         * lib/regcomp.c (optimize_subexps, lower_subexp):
73199         Work even if bitset_word has holes in its bitwise representation.
73200         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
73201         * lib/regexec.c (check_dst_limits_calc_pos_1,
73202         check_subexp_matching_top):
73203         Likewise.
73204         * lib/regex_internal.c (re_string_reconstruct):
73205         Don't assume UCHAR_MAX == 255.
73206         * lib/regex_internal.h (bitset_set_all): Likewise.
73207         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
73208         All uses changed.
73209         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
73210         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
73211         All uses changed.
73212         (BITSET_WORD_MAX): New macro.
73213         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
73214         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
73215         (bitset_empty, bitset_copy):
73216         Prefer sizeof (bitset) to multiplying it out ourselves.
73217         (bitset_not_merge): Remove; unused.
73218         (bitset_contain): Return bool, not unsigned int with one bit on.
73219         All callers changed.
73220         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
73221         alignment than re_node_set; do this by defining a new internal
73222         type struct dests_alloc and using it to allocate memory.
73223
73224 2005-09-05  Bruno Haible  <bruno@clisp.org>
73225
73226         * gnulib-tool (func_import): Fix comparison in handling of symbolic
73227         links.
73228
73229 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
73230
73231         * modules/size_max (Makefile.am): Add size_max.h
73232
73233 2005-09-04  Derek Price  <derek@ximbiot.com>
73234
73235         * gnulib-tool (func_import): Fix reversed $symbolic logic.
73236
73237 2005-09-03  Simon Josefsson  <jas@extundo.com>
73238
73239         * gnulib-tool: Fix typo.
73240
73241 2005-09-03  Simon Josefsson  <jas@extundo.com>
73242
73243         * config/srclist.txt: Add glibc bug 1293.
73244
73245 2005-09-03  Derek Price  <derek@ximbiot.com>
73246
73247         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
73248         From Larry Jones <lawrence.jones@ugs.com>.
73249
73250 2005-09-02  Simon Josefsson  <jas@extundo.com>
73251
73252         * modules/socklen: New file.
73253
73254 2005-09-02  Simon Josefsson  <jas@extundo.com>
73255
73256         * modules/havelib: New module.
73257
73258         * modules/gettext, modules/iconv, modules/lock, modules/readline:
73259         Use havelib.
73260
73261 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
73262
73263         Check for arithmetic overflow when calculating sizes, to prevent
73264         some buffer-overflow issues.  These patches are conservative, in the
73265         sense that when I couldn't determine whether an overflow was possible,
73266         I inserted a run-time check.
73267         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
73268         macros.
73269         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
73270         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
73271         (re_xnrealloc, re_x2nrealloc): New inline functions.
73272         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
73273         parse_bracket_exp):
73274         (build_equiv_class, build_charclass): Check for arithmetic overflow
73275         in size expression calculations.
73276         * lib/regex_internal.c (re_string_realloc_buffers):
73277         (build_wcs_upper_buffer, re_node_set_add_intersect):
73278         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
73279         (re_dfa_add_node, register_state): Likewise.
73280         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
73281         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
73282         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
73283         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
73284
73285 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
73286
73287         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
73288         m4/ulonglong.m4.  Problem reported by Martin Lambers.
73289
73290 2005-09-02  Bruno Haible  <bruno@clisp.org>
73291
73292         Support for lib vs. lib64 distinction on biarch platforms.
73293         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
73294         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
73295         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
73296
73297 2005-09-02  Bruno Haible  <bruno@clisp.org>
73298
73299         * gnulib-tool (import): In the other first-use case, provide defaults
73300         as well.
73301
73302 2005-09-02  Bruno Haible  <bruno@clisp.org>
73303
73304         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
73305         patches not yet found in the latest gettext release.
73306
73307 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73308
73309         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
73310         to avoid a collision with bits/local_lim.h in glibc.
73311         All uses changed.  Problem reported by Dmitry V. Levin in
73312         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
73313
73314         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
73315         bugs in int versus size_t comparisons.
73316         (re_string_context_at): Fix bug where the code assumed that
73317         Idx is signed.
73318
73319         Use bool where appropriate.
73320         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
73321         All callers changed.
73322         (calc_eclosure_iter): Likewise, for ROOT arg.
73323         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
73324         (build_charclass_op): Likewise, for NON_MATCH arg.
73325         * lib/regex_internal.c (re_string_allocate, re_string_construct):
73326         (re_string_construct_common): Likewise, for ICASE arg.
73327         * lib/regexec.c (re_search_2_stub, re_search_stub):
73328         Likewise, for RET_LEN arg.
73329         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
73330         (set_regs): Likewise, for FL_BACKTRACK arg.
73331         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
73332         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
73333         (calc_eclosure_iter, parse_bracket_exp):
73334         Use bool for internal variables that are booleans.
73335         * lib/regexec.c (re_search_internal, check_matching,
73336         proceed_next_node):
73337         (set_regs, build_sifted_states, sift_states_bkref):
73338         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
73339         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
73340         (find_collation_sequence_value):
73341         Likewise.
73342         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
73343         (re_node_set_compare):
73344         Return bool, not int. All callers changed.
73345         * lib/regexec.c (check_halt_node_context, check_dst_limits):
73346         (build_trtable, check_node_accept): Likewise.
73347         * lib/regex_internal.h: Include stdbool.h.
73348
73349         Fix bugs uncovered when converting to bool.
73350         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
73351         failure instead of charging ahead blindly.
73352         * lib/regex_internal.c (register_state): Likewise.
73353         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
73354         for freeing internal storage.
73355         (group_nodes_into_DFA_states): Use unsigned int, not int, for
73356         bitset pieces used as boolean, to avoid undefined behavior
73357         on hosts that do int overflow checking.
73358
73359 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73360
73361         * config/srclist.txt: Add glibc bugs 1285-1287.
73362
73363 2005-09-01  Jim Meyering  <jim@meyering.net>
73364
73365         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
73366         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
73367         Require gl_STAT_MACROS, too.
73368
73369 2005-09-01  Bruno Haible  <bruno@clisp.org>
73370
73371         * gnulib-tool (import): In the first-use case, provide defaults.
73372
73373 2005-09-01  Bruno Haible  <bruno@clisp.org>
73374
73375         * gnulib-tool (func_import): Remove the .tmp files.
73376
73377 2005-09-01  Bruno Haible  <bruno@clisp.org>
73378
73379         * gnulib-tool (func_import): Fix handling of symbolic links.
73380
73381 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73382
73383         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
73384         old glibc regex code mishandles strings longer than 2**31 bytes.
73385         This patch fixes this when the regex code is used in gnulib
73386         (i.e., outside glibc).
73387
73388         This patch should not affect the use of the regex code inside
73389         glibc.  No doubt this problem also needs to be handled for glibc
73390         as well, but the result will be an incompatible change to the
73391         glibc ABI, and the old ABI will have to be supported too.  That
73392         can be the the subject for another patch.
73393
73394         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
73395         governing whether the rest of this patch is active.  By default,
73396         the macro is disabled and the patch has no effect.
73397         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
73398         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
73399         (struct re_pattern_buffer, re_search, re_search_2, re_match):
73400         (re_match_2, re_set_registers): Use the new types.
73401         * lib/regex_internal.h (Idx, re_hashval_t): New types.
73402         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
73403         New macros.
73404         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
73405         (re_string_context_at, bin_tree_t, re_dfastate_t):
73406         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
73407         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
73408         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
73409         (re_string_char_size_at, re_string_wchar_at):
73410         (re_string_elem_size_at):
73411         Use the new types and macros to port to 64-bit hosts.
73412         Use unsigned types for internal values, so that the code
73413         mostly works even for arrays larger than SSIZE_MAX.
73414         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
73415         (search_duplicated_node, calc_eclosure_iter, fetch_number):
73416         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
73417         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
73418         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
73419         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
73420         (calc_inveclosure, parse_dup_op, build_range_exp):
73421         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
73422         (fetch_number, create_token_tree, mark_opt_subexp):
73423         Likewise.
73424         * lib/regex_internal.c (re_string_construct_common,
73425         create_ci_newstate):
73426         (create_cd_newstate, re_string_allocate, re_string_construct):
73427         (re_string_realloc_buffers, build_wcs_upper_buffer):
73428         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
73429         (re_string_reconstruct, re_string_peek_byte_case):
73430         (re_string_fetch_byte_case, re_string_context_at):
73431         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
73432         (re_node_set_init_copy, re_node_set_add_intersect):
73433         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
73434         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
73435         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
73436         (re_acquire_state, re_acquire_state_context, register_state):
73437         Likewise.
73438         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
73439         search_cur_bkref_entry):
73440         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
73441         (re_search_internal, re_search_2_stub, re_search_stub)
73442         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
73443         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
73444         (update_cur_sifted_state, check_dst_limits):
73445         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
73446         (check_subexp_limits, sift_states_bkref, merge_state_array):
73447         (check_subexp_matching_top, get_subexp, get_subexp_sub):
73448         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
73449         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
73450         (expand_bkref_cache, check_node_accept_bytes):
73451         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
73452         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
73453         (acquire_init_state_context, check_halt_node_context):
73454         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
73455         (sift_states_backward, clean_state_log_if_needed):
73456         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
73457         (find_recover_state, transit_state_sb, transit_state_mb):
73458         (transit_state_bkref, build_trtable, match_ctx_clean):
73459         Likewise.
73460         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
73461         to work around an assumption that REG_MISSING is negative.
73462
73463         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
73464         (seek_collating_symbol_entry) [defined _LIBC]:
73465         (lookup_collation_sequence_value) [defined _LIBC]:
73466         (build_range_exp, build_collating_symbol) [defined _LIBC]:
73467         Use prototypes rather than old-style function definitions.
73468         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
73469         (transit_state_sb) [0]:
73470         (find_collation_sequence_value) [defined _LIBC]: Likewise.
73471
73472         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
73473         rm_eo.
73474
73475         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
73476         (optimize_subexps, lower_subexp):
73477         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
73478         since the signed shift might overflow.  Use 1u<<31 instead.
73479         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
73480         Likewise.
73481         * lib/regexec.c (check_dst_limits_calc_pos_1,
73482         check_subexp_matching_top): Likewise.
73483
73484         * lib/regcomp.c (optimize_subexps, lower_subexp):
73485         Use CHAR_BIT rather than 8, for clarity.
73486         * lib/regexec.c (check_dst_limits_calc_pos_1):
73487         (check_subexp_matching_top): Likewise.
73488         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
73489         have to worry about portability issues when shifting it left.
73490         Remove no-longer-needed test for table_size > 0.
73491         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
73492         in a word, as the resulting behavior is undefined.
73493         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
73494         in one case, a <= should have been an <, and in another case the
73495         whole test was missing.
73496         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
73497         the standard name CHAR_BIT.
73498         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
73499         this is not true on one's complement and signed-magnitude hosts.
73500
73501         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
73502         next_last_offset.
73503         (struct re_dfa_t): Remove unused member states_alloc.
73504         * lib/regcomp.c (init_dfa): Don't initialize unused members.
73505
73506 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73507
73508         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
73509         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
73510         and large-file glibc and in 32-bit large-file Solaris.
73511
73512 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73513
73514         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
73515         lengths fit in regoff_t; this isn't true if regoff_t is the same
73516         width as size_t.
73517         * lib/regex.c (re_search_internal): 5th arg is LAST_START
73518         (= START + RANGE) instead of RANGE.  This avoids overflow
73519         problems when regoff_t is the same width as size_t.
73520         All callers changed.
73521         (re_search_2_stub): Check for overflow when adding the
73522         sizes of the two strings.
73523         (re_search_stub): Check for overflow when adding START
73524         to RANGE; if it occurs, substitute the extreme value.
73525
73526 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73527
73528         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
73529
73530 2005-08-31  Jim Meyering  <jim@meyering.net>
73531
73532         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
73533         a pointer-to-const.
73534         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
73535         (register_state): Likewise.
73536         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
73537         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
73538         (group_nodes_into_DFAstates): Likewise.
73539
73540 2005-08-31  Jim Meyering  <jim@meyering.net>
73541
73542         * check-module: Add a FIXME comment.
73543
73544 2005-08-31  Eric Blake  <ebb9@byu.net>
73545
73546         * modules/unistd-safer (Files): Add unistd--.h.
73547         * modules/stdio-safer (Files): Add stdio--.h.
73548
73549 2005-08-31  Derek Price  <derek@ximbiot.com>
73550
73551         * lib/getdelim.c (getdelim): Return EOF on EOF.
73552         Reported by Larry Jones <lawrence.jones@ugs.com>.
73553
73554 2005-08-31  Bruno Haible  <bruno@clisp.org>
73555
73556         Avoid unnecessary diffs in the generated lib/Makefile.am.
73557         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
73558         the generated files.
73559         (func_import): Don't set cmd.
73560
73561 2005-08-31  Bruno Haible  <bruno@clisp.org>
73562
73563         * lib/strstr.c: Include <stddef.h>, for NULL.
73564         * lib/strcasestr.c: Likewise.
73565         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73566
73567 2005-08-31  Bruno Haible  <bruno@clisp.org>
73568
73569         * gnulib-tool: New option --macro-prefix.
73570         (func_import): Use macro_prefix.
73571         (import): Handle option --macro-prefix.
73572
73573 2005-08-31  Bruno Haible  <bruno@clisp.org>
73574
73575         * gnulib-tool (import): Rename most ac_* variables to cached_*.
73576         Also use new variables cached_lgpl, cached_libtool.
73577
73578 2005-08-31  Bruno Haible  <bruno@clisp.org>
73579
73580         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
73581         always instantiating them.
73582
73583 2005-08-31  Bruno Haible  <bruno@clisp.org>
73584
73585         * gnulib-tool (func_import): Read the previous cached settings
73586         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
73587         earlier added by gnulib but are now dropped. Warn when a gnulib file
73588         overwrites a non-gnulib file.
73589
73590 2005-08-31  Bruno Haible  <bruno@clisp.org>
73591
73592         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
73593         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
73594         projects that don't keep autogenerated files in CVS. Put into
73595         actioncmd only the specified modules, not the transitive closure.
73596
73597 2005-08-31  Bruno Haible  <bruno@clisp.org>
73598
73599         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
73600         Create directories that shall be filled.
73601         (import): Don't look for gl_* macros in configure.ac. Recurse across
73602         all directories containing a gnulib-cache.m4 files, if meaningful.
73603
73604 2005-08-31  Bruno Haible  <bruno@clisp.org>
73605
73606         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
73607         (import): Set seen_libtool when we see gl_LIBTOOL.
73608
73609 2005-08-31  Bruno Haible  <bruno@clisp.org>
73610
73611         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
73612         declaration macro definitions from generated gnulib.m4.
73613
73614 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
73615
73616         * lib/iconvme.h: Add prototype for iconv_alloc.
73617
73618 2005-08-29  Simon Josefsson  <jas@extundo.com>
73619
73620         * lib/iconvme.c: Fix errno.
73621
73622 2005-08-29  Bruno Haible  <bruno@clisp.org>
73623
73624         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
73625         that it works when the directory contains spaces.
73626
73627 2005-08-29  Bruno Haible  <bruno@clisp.org>
73628
73629         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
73630
73631 2005-08-29  Bruno Haible  <bruno@clisp.org>
73632
73633         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
73634         Emit more advice.
73635
73636 2005-08-29  Bruno Haible  <bruno@clisp.org>
73637         and Stepan Kasal  <kasal@ucw.cz>
73638
73639         * check-module: If more parameters are given, check each of them
73640         separately; add more exceptions, as noted by Jim Meyering.
73641         (check_module): New procedure.
73642         (%exempt_header): Now contains all exceptions.
73643
73644 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
73645
73646         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
73647
73648 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
73649
73650         * lib/iconvme.c: Split iconv_string into iconv_alloc.
73651
73652 2005-08-28  Bruno Haible  <bruno@clisp.org>
73653
73654         * m4/gnulib-tool.m4: New file.
73655
73656 2005-08-27  Jim Meyering  <jim@meyering.net>
73657
73658         * modules/unistd-safer (Files): Add pipe-safer.c.
73659         * modules/fcntl-safer (Files): Add creat-safer.c.
73660
73661 2005-08-27  Jim Meyering  <jim@meyering.net>
73662
73663         * m4/stdlib-safer.m4: New file.  From coreutils.
73664         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
73665         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
73666         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
73667         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
73668         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
73669
73670 2005-08-27  Jim Meyering  <jim@meyering.net>
73671
73672         * lib/fopen-safer.c: Merge minor changes from coreutils.
73673         * lib/dup-safer.c: Likewise.
73674         * lib/fd-safer.c: Likewise.
73675
73676         Merge from coreutils.
73677         * lib/stdio--.h: New file.
73678         * lib/stdlib--.h: New file.
73679         * lib/mkstemp-safer.c: New file.
73680
73681         GNU tar needs these.
73682         * lib/pipe-safer.c: New file.
73683         * lib/creat-safer.c: New file.
73684         * lib/fcntl--.h (creat): Define to creat_safer.
73685         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
73686         * lib/unistd--.h (pipe): Define to pipe_safer.
73687         * lib/unistd-safer.h: Declare pipe_safer.
73688
73689 2005-08-26  Simon Josefsson  <jas@extundo.com>
73690
73691         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
73692         Haible <bruno@clisp.org>.
73693
73694 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
73695
73696         * lib/regex_internal.h: Remove all references to
73697         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
73698         or better.
73699         (bitset_not, bitset_merge, bitset_not_merge):
73700         (bitset_mask, re_string_allocate, re_string_construct):
73701         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
73702         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
73703         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
73704         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
73705         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
73706         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
73707         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
73708         (re_acquire_state_context):
73709         Remove unnecessary forward decls.
73710         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
73711         Put __attribute at function definition,
73712         now that the function decl has been removed.
73713         * lib/regex_internal.c (re_string_peek_byte_case):
73714         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
73715         Likewise.
73716
73717 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
73718
73719         * m4/regex.m4: Add AC_PREREQ(2.50).
73720         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
73721
73722 2005-08-25  Simon Josefsson  <jas@extundo.com>
73723
73724         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
73725         __fsetlocking.
73726
73727 2005-08-25  Simon Josefsson  <jas@extundo.com>
73728
73729         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
73730         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
73731         GLIBC specific code.
73732
73733 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73734
73735         Make regex safe for g++.  This fixes one real bug (an "err"
73736         that should have been "*err").  g++ problem reported by
73737         Sam Steingold.
73738         * lib/regex_internal.h (re_calloc): New macro, consistent with
73739         re_malloc etc.  All callers of calloc changed to use re_calloc.
73740         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
73741         not int.  All callers changed.
73742         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
73743         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
73744         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
73745         (find_recover_state): Change "err" to "*err"; this fixes what
73746         appears to be a real bug.
73747         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
73748         versus int.
73749
73750 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73751
73752         * modules/regex (Depends-on): Add malloc, since the code
73753         assumes that !malloc(0) means failure.
73754
73755 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73756
73757         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
73758
73759         alloca modernization/simplification for regex.
73760         * lib/regex.c: Remove portability cruft for alloca.  This no longer
73761         needs to be at the start of the file, and can be moved into
73762         regex_internal.h and simplified.
73763         * lib/regex_internal.h: Include <alloca.h>.
73764         (__libc_use_alloca) [!defined _LIBC]: New macro.
73765         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
73766         now works outside glibc.
73767
73768 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73769
73770         * config/srclist.txt: Add glibc bugs 1241, 1245.
73771
73772 2005-08-25  Jim Meyering  <jim@meyering.net>
73773
73774         * lib/open-safer.c: Include <config.h>.
73775         Otherwise, we'd lose LARGEFILE support in any file using
73776         e.g. "fcntl--.h"
73777
73778 2005-08-25  Bruno Haible  <bruno@clisp.org>
73779
73780         * m4/minmax.m4: Require autoconf 2.52.
73781         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
73782         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
73783         alternatives of translit over the alphabet.
73784         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
73785
73786 2005-08-24  Simon Josefsson  <jas@extundo.com>
73787
73788         * tests/test-getpass.c: New file.
73789
73790 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73791
73792         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
73793         for GNU regex features.
73794
73795 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73796
73797         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
73798         * lib/regex.h (regerror): Likewise.
73799
73800         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
73801         requires this.  (The code never needed it.)
73802
73803         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
73804         All uses of recently-renamed identifiers changed to use the new,
73805         POSIX-compliant names.  The code will build and run just fine
73806         without these changes, but it's better to eat our own dog food
73807         and use the standard-conforming names.
73808
73809         * lib/regex.h: Fix a multitude of POSIX name space violations.
73810         These changes have an effect only for programs that define
73811         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
73812         do not change anything for programs compiled in the normal way.
73813         Also, there is no effect on the ABI.
73814
73815         (_REGEX_SOURCE): New macro.
73816         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
73817         defined and _GNU_SOURCE is not; this fixes a name space violation.
73818
73819         Rename the following macros to obey POSIX requirements.
73820         The old names are still visible as macros if _REGEX_SOURCE is defined.
73821         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
73822         RE_BACKSLASH_ESCAPE_IN_LISTS.
73823         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
73824         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
73825         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
73826         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
73827         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
73828         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
73829         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
73830         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
73831         (REG_INTERVALS): renamed from RE_INTERVALS.
73832         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
73833         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
73834         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
73835         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
73836         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
73837         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
73838         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
73839         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
73840         RE_UNMATCHED_RIGHT_PAREN_ORD.
73841         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
73842         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
73843         (REG_DEBUG): renamed from RE_DEBUG.
73844         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
73845         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
73846         unusual, since we can't clash with the POSIX REG_ICASE.
73847         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
73848         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
73849         (REG_NO_SUB): renamed from RE_NO_SUB.
73850         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
73851         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
73852         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
73853         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
73854         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
73855         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
73856         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
73857         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
73858         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
73859         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
73860         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
73861         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
73862         RE_SYNTAX_POSIX_MINIMAL_BASIC.
73863         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
73864         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
73865         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
73866         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
73867         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
73868         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
73869         (REG_FIXED): Renamed from REGS_FIXED.
73870         (REG_NREGS): Renamed from RE_NREGS.
73871
73872         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
73873         of other REG_* macros, since POSIX says the user is allowed to
73874         #undef these macros selectively.
73875
73876         (reg_errcode_t): Update comment stating what other tables need
73877         to be consistent.
73878
73879         Rename the following enum values to obey POSIX requirements.
73880         The old names are still visible as macros.
73881         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
73882         is not defined, since GNU is supposed to be a superset of POSIX as
73883         much as possible, and since we want reg_errcode_t to be a signed
73884         type for implementation consistency.
73885         (_REG_NOERROR): Renamed from REG_NOERROR.
73886         (_REG_NOMATCH): Renamed from REG_NOMATCH.
73887         (_REG_BADPAT): Renamed from REG_BADPAT.
73888         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
73889         (_REG_ECTYPE): Renamed from REG_ECTYPE.
73890         (_REG_EESCAPE): Renamed from REG_EESCAPE.
73891         (_REG_ESUBREG): Renamed from REG_ESUBREG.
73892         (_REG_EBRACK): Renamed from REG_EBRACK.
73893         (_REG_EPAREN): Renamed from REG_EPAREN.
73894         (_REG_EBRACE): Renamed from REG_EBRACE.
73895         (_REG_BADBR): Renamed from REG_BADBR.
73896         (_REG_ERANGE): Renamed from REG_ERANGE.
73897         (_REG_ESPACE): Renamed from REG_ESPACE.
73898         (_REG_BADRPT): Renamed from REG_BADRPT.
73899         (_REG_EEND): Renamed from REG_EEND.
73900         (_REG_ESIZE): Renamed from REG_ESIZE.
73901         (_REG_ERPAREN): Renamed from REG_ERPAREN.
73902         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
73903         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
73904         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
73905         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
73906
73907         (_REG_RE_NAME, _REG_RM_NAME): New macros.
73908         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
73909         changed.  But support the old name if the new one is not defined
73910         and if _REGEX_SOURCE.
73911
73912         Change the following member names in struct re_pattern_buffer.
73913         The old names are still supported if !_REGEX_SOURCE.
73914         The new names are always supported, regardless of _REGEX_SOURCE.
73915         (re_buffer): Renamed from buffer.
73916         (re_allocated): Renamed from allocated.
73917         (re_used): Renamed from used.
73918         (re_syntax): Renamed from syntax.
73919         (re_fastmap): Renamed from fastmap.
73920         (re_translate): Renamed from translate.
73921         (re_can_be_null): Renamed from can_be_null.
73922         (re_regs_allocated): Renamed from regs_allocated.
73923         (re_fastmap_accurate): Renamed from fastmap_accurate.
73924         (re_no_sub): Renamed from no_sub.
73925         (re_not_bol): Renamed from not_bol.
73926         (re_not_eol): Renamed from not_eol.
73927         (re_newline_anchor): Renamed from newline_anchor.
73928
73929         Change the following member names in struct re_registers.
73930         The old names are still supported if !_REGEX_SOURCE.
73931         The new names are always supported, regardless of _REGEX_SOURCE.
73932         (rm_num_regs): Renamed from num_regs.
73933         (rm_start): Renamed from start.
73934         (rm_end): Renamed from end.
73935
73936         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
73937         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
73938         Prepend __ to parameter names.
73939
73940         Undo yesterday's changes.
73941
73942 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73943
73944         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
73945         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
73946         lib/regex.c.
73947
73948 2005-08-24  Jim Meyering  <jim@meyering.net>
73949
73950         Sync from coreutils.
73951         * m4/fcntl-safer.m4: New file.
73952
73953         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
73954         and object files for this module.
73955
73956 2005-08-24  Jim Meyering  <jim@meyering.net>
73957
73958         Sync from coreutils.
73959         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
73960
73961 2005-08-24  Jim Meyering  <jim@meyering.net>
73962
73963         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
73964         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
73965
73966 2005-08-24  Jim Meyering  <jim@meyering.net>
73967
73968         * modules/fcntl-safer: New module.
73969         * modules/fts (Depends-on): Add fcntl-safer.
73970         * MODULES.html.sh (File descriptor based Input/Output):
73971         Add fcntl-safer.
73972
73973 2005-08-24  Bruno Haible  <bruno@clisp.org>
73974
73975         Support for unit test modules.
73976         * modules/README: Mention tests modules.
73977         * modules/TEMPLATE-TESTS: New file.
73978         * gnulib-tool: New options --extract-tests-module, --with-tests and
73979         --tests-base (unused for the moment).
73980         (testsbase, inctests): New variables.
73981         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
73982         (func_verify_module): Exclude TEMPLATE-TESTS.
73983         (func_verify_nontests_module, func_verify_tests_module): New functions.
73984         (func_get_dependencies): Add implicit dependency for tests modules.
73985         (func_get_tests_module): New function.
73986         (func_modules_transitive_closure): When --with-tests was specified,
73987         include the unit tests as well, unless explicitly avoided.
73988         (func_emit_lib_Makefile_am): Ignore the tests modules here.
73989         (func_emit_tests_Makefile_am): New function.
73990         (func_create_testdir): When --with-tests was specified, emit a
73991         tests/ directory.
73992         * MODULES.html.sh (Future developments): Update.
73993
73994 2005-08-24  Bruno Haible  <bruno@clisp.org>
73995
73996         * modules/tls-tests: New file.
73997         * tests/test-tls.c: New file, from GNU gettext.
73998
73999 2005-08-24  Bruno Haible  <bruno@clisp.org>
74000
74001         * modules/lock-tests: New file.
74002         * tests/test-lock.c: New file, from GNU gettext.
74003
74004 2005-08-24  Bruno Haible  <bruno@clisp.org>
74005
74006         * lib/lock.h: Add multiple inclusion guard.
74007         * lib/tls.h: Add multiple inclusion guard.
74008
74009 2005-08-24  Bruno Haible  <bruno@clisp.org>
74010
74011         * gnulib-tool: Add support for the --aux-dir option to
74012         --create-testdir, --create-megatestdir, --test, --megatest.
74013         (func_create_testdir, func_create_megatestdir): Optionally emit a
74014         AC_CONFIG_AUX_DIR directive.
74015         (create-testdir, create-megatestdir, test, megatest): Provide a
74016         default value for $auxdir.
74017
74018 2005-08-24  Bruno Haible  <bruno@clisp.org>
74019
74020         * gnulib-tool (import): Use compound statement instead of subshell
74021         where possible.
74022
74023 2005-08-24  Bruno Haible  <bruno@clisp.org>
74024
74025         * gnulib-tool (import): Change --aux-dir default to "build-aux".
74026
74027 2005-08-24  Bruno Haible  <bruno@clisp.org>
74028
74029         * gnulib-tool (func_version): Update.
74030
74031 2005-08-24  Bruno Haible  <bruno@clisp.org>
74032
74033         * gnulib-tool (func_import, func_create_testdir,
74034         func_create_megatestdir): Quote all autoconf macro arguments.
74035
74036 2005-08-24  Bruno Haible  <bruno@clisp.org>
74037
74038         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
74039         option --force, because --force causes the aclocal.m4 of each
74040         subdirectory to be newer than the corresponding config.h.in.
74041
74042 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74043
74044         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
74045         All contents moved to gl_REGEX.
74046         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
74047         assume that it does.
74048
74049 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74050
74051         * lib/regex.h (REG_NOSYS)
74052         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
74053         Define, since POSIX requires it as of 2001.
74054         (_REG_ENOSYS)
74055         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
74056         New private symbol, used to keep the enum signed in all cases.
74057         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
74058         Youngman in
74059         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
74060
74061         * lib/regex_internal.c (re_string_skip_chars, register_state):
74062         (calc_state_hash):
74063         Remove forward decls; no longer needed now that we use prototypes.
74064         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
74065         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
74066         (clean_state_log_if_needed): Likewise.
74067
74068 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74069
74070         * config/srclist.txt: Add glibc bugs 1231-1233.
74071
74072 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74073
74074         Fix problems reported by Sam Steingold in
74075         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
74076         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
74077         assumed that reg_errcode_t is a signed type, which is not
74078         necessarily true if _XOPEN_SOURCE is not defined.
74079         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
74080         since some compilers warn about it otherwise.
74081
74082 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74083
74084         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
74085         (init_word_char, create_initial_state, duplicate_node_closure):
74086         (fetch_token, peek_token_bracket, build_range_exp):
74087         (build_collating_symbol): Remove forward decls; no longer needed
74088         now that we use prototypes.
74089
74090         * lib/regcomp.c:
74091         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
74092         (re_compile_fastmap_iter, regcomp, regerror, regfree):
74093         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
74094         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
74095         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
74096         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
74097         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
74098         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
74099         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
74100         (build_range_exp, build_collating_symbol, parse_bracket_exp):
74101         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
74102         (build_charclass, build_charclass_op, fetch_number, create_tree):
74103         (create_token_tree, mark_opt_subexp, duplicate_tree):
74104         Use prototypes rather than old-style definitions.
74105
74106         * lib/regex_internal.c:
74107         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
74108         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
74109         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
74110         (re_string_reconstruct, re_string_peek_byte_case):
74111         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
74112         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
74113         (re_node_set_init_copy, re_node_set_add_intersect):
74114         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74115         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74116         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
74117         (re_acquire_state, re_acquire_state_context, register_state):
74118         (create_ci_newstate, create_cd_newstate, free_state):
74119         Likewise.
74120         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
74121         re_search_2):
74122         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
74123         (re_search_internal, prune_impossible_nodes):
74124         (acquire_init_state_context, check_matching, static):
74125         (check_halt_node_context, check_halt_state_context, proceed_next_node):
74126         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
74127         (update_regs, sift_states_backward, build_sifted_states):
74128         (clean_state_log_if_needed, merge_state_array):
74129         (update_cur_sifted_state, add_epsilon_src_nodes):
74130         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
74131         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
74132         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
74133         (find_recover_state, check_subexp_matching_top, transit_state_mb):
74134         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
74135         (check_arrival, check_arrival_add_next_nodes):
74136         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
74137         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
74138         (check_node_accept_bytes, check_node_accept, extend_buffers):
74139         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
74140         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
74141         (sift_ctx_init):
74142         Likewise.
74143
74144         * lib/regex_internal.h:
74145         (re_string_allocate, re_string_construct, re_string_reconstruct):
74146         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
74147         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
74148         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
74149         (re_string_context_at, re_string_peek_byte_case):
74150         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
74151         is defined, since we now use prototypes always.
74152
74153         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
74154         C89 or better.  All uses removed.
74155
74156 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74157
74158         * config/srclist.txt: Add glibc bugs 1220-1227.
74159
74160 2005-08-20  Jim Meyering  <jim@meyering.net>
74161
74162         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
74163         of unused local, dfa.
74164
74165 2005-08-20  Bruno Haible  <bruno@clisp.org>
74166
74167         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
74168
74169 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74170
74171         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
74172         (re_node_set_insert_last, re_dfa_add_node):
74173         Rename local variables to avoid GCC shadowing warnings.
74174
74175 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74176
74177         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
74178         [defined lint]: Suppress bogus uninitialized-variable warnings.
74179
74180         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
74181         and let the caller return REG_ESPACE if out of space.  This
74182         removes an uninitialied-variable warning with GCC 4.0.1, and also
74183         avoids taking the address of a local variable.  All callers
74184         changed.
74185
74186 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74187
74188         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
74189         $LIBCSRC/posix/regexec.c.
74190         Add glibc bug 1217 for regcomp.c.
74191
74192 2005-08-19  Jim Meyering  <jim@meyering.net>
74193
74194         * lib/regexec.c (proceed_next_node): Redo local variables to
74195         avoid GCC shadowing warnings.
74196
74197 2005-08-18  Bruno Haible  <bruno@clisp.org>
74198
74199         * lib/strstr.c (strstr): Fix return value in multibyte case.
74200         * lib/strcasestr.c (strcasestr): Likewise.
74201
74202 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74203
74204         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
74205
74206 2005-08-17  Jim Meyering  <jim@meyering.net>
74207
74208         Make the %s format (seconds since the epoch) work for a negative
74209         number and when used with a zero-padded field width, e.g. %015s.
74210
74211         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
74212         label so that it precedes the code to set `digits'.  Otherwise,
74213         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
74214         print `00-22'.  Now, it prints `-0022', as it should.
74215
74216 2005-08-17  Bruno Haible  <bruno@clisp.org>
74217
74218         * modules/strstr (Files): Add m4/mbrtowc.m4.
74219         (Depends-on): Add mbuiter.
74220
74221 2005-08-17  Bruno Haible  <bruno@clisp.org>
74222
74223         * modules/strcasestr: New file.
74224         * MODULES.html.sh (String handling, based on ANSI C 89): Add
74225         strcasestr.
74226
74227 2005-08-17  Bruno Haible  <bruno@clisp.org>
74228
74229         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
74230
74231 2005-08-17  Bruno Haible  <bruno@clisp.org>
74232
74233         * modules/mbuiter: New file.
74234         * MODULES.html.sh (Extended multibyte and wide character utilities):
74235         Add mbuiter.
74236
74237 2005-08-17  Bruno Haible  <bruno@clisp.org>
74238
74239         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
74240         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
74241
74242 2005-08-17  Bruno Haible  <bruno@clisp.org>
74243
74244         * m4/strcasestr.m4: New file.
74245
74246 2005-08-17  Bruno Haible  <bruno@clisp.org>
74247
74248         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
74249         * lib/strstr.c: Completely rewritten, with multibyte locale support.
74250
74251 2005-08-17  Bruno Haible  <bruno@clisp.org>
74252
74253         * lib/strcasestr.h: New file.
74254         * lib/strcasestr.c: New file.
74255
74256 2005-08-17  Bruno Haible  <bruno@clisp.org>
74257
74258         * lib/strcasecmp.c: Use mbuiter.h.
74259
74260 2005-08-17  Bruno Haible  <bruno@clisp.org>
74261
74262         * lib/mbuiter.h: New file.
74263
74264 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
74265
74266         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
74267         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
74268         and gl_GETOPT are both invoked via different paths (as happens
74269         with GNU tar CVS because it uses both argp and getopt), the former
74270         wins.
74271
74272 2005-08-16  Bruno Haible  <bruno@clisp.org>
74273
74274         * modules/tls: New file.
74275         * MODULES.html.sh (Multithreading): Add tls.
74276
74277 2005-08-16  Bruno Haible  <bruno@clisp.org>
74278
74279         * modules/strnlen1: New file.
74280         * MODULES.html.sh (String handling): Add strnlen1.
74281
74282 2005-08-16  Bruno Haible  <bruno@clisp.org>
74283
74284         * modules/strcase (Files): Add m4/mbrtowc.m4.
74285         (Depends-on): Add strnlen1, mbchar.
74286
74287 2005-08-16  Bruno Haible  <bruno@clisp.org>
74288
74289         * modules/mbiter: New file.
74290         * MODULES.html.sh (Extended multibyte and wide character utilities):
74291         Add mbiter.
74292
74293 2005-08-16  Bruno Haible  <bruno@clisp.org>
74294
74295         * modules/mbfile: New file.
74296         * MODULES.html.sh (Extended multibyte and wide character utilities):
74297         Add mbfile.
74298
74299 2005-08-16  Bruno Haible  <bruno@clisp.org>
74300
74301         * modules/mbchar: New file.
74302         * MODULES.html.sh (Extended multibyte and wide character utilities):
74303         New section.
74304
74305 2005-08-16  Bruno Haible  <bruno@clisp.org>
74306
74307         * m4/tls.m4: New file, from GNU gettext.
74308
74309 2005-08-16  Bruno Haible  <bruno@clisp.org>
74310
74311         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
74312         always.
74313         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
74314
74315 2005-08-16  Bruno Haible  <bruno@clisp.org>
74316
74317         * m4/mbiter.m4: New file.
74318
74319 2005-08-16  Bruno Haible  <bruno@clisp.org>
74320
74321         * m4/mbfile.m4: New file.
74322
74323 2005-08-16  Bruno Haible  <bruno@clisp.org>
74324
74325         * m4/mbchar.m4: New file.
74326
74327 2005-08-16  Bruno Haible  <bruno@clisp.org>
74328
74329         * lib/tls.h: New file, from GNU gettext.
74330         * lib/tls.c: New file, from GNU gettext.
74331
74332 2005-08-16  Bruno Haible  <bruno@clisp.org>
74333
74334         * lib/strnlen1.h: New file.
74335         * lib/strnlen1.c: New file.
74336
74337 2005-08-16  Bruno Haible  <bruno@clisp.org>
74338
74339         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
74340         (mbi_init): Update.
74341         (mbi_avail, mbi_advance): Let the iteration end before the terminating
74342         NUL byte, not after it.
74343
74344 2005-08-16  Bruno Haible  <bruno@clisp.org>
74345
74346         * lib/strcase.h (strcasecmp): Add note in comments.
74347         * lib/strncasecmp.c: Use code from strcasecmp.c.
74348         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
74349         (strcasecmp): Work correctly in multibyte locales.
74350
74351 2005-08-16  Bruno Haible  <bruno@clisp.org>
74352
74353         * lib/mbiter.h: New file.
74354
74355 2005-08-16  Bruno Haible  <bruno@clisp.org>
74356
74357         * lib/mbfile.h: New file.
74358
74359 2005-08-16  Bruno Haible  <bruno@clisp.org>
74360
74361         * lib/mbchar.h: New file.
74362         * lib/mbchar.c: New file.
74363
74364 2005-08-16  Bruno Haible  <bruno@clisp.org>
74365
74366         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
74367         the valid ones. Makes the comparison operations transitive:
74368         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
74369         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
74370
74371 2005-08-15  Simon Josefsson  <jas@extundo.com>
74372
74373         * modules/ssize_t (License): Change to 'unlimited'.
74374
74375         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
74376
74377 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74378
74379         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
74380         Add comments for each pending glibc patch.
74381
74382 2005-08-15  Bruno Haible  <bruno@clisp.org>
74383
74384         * lib/regex.h (__restrict_arr): Don't define to __restrict if
74385         __cplusplus is defined.
74386
74387 2005-08-14  Jim Meyering  <jim@meyering.net>
74388
74389         Sync from coreutils.
74390
74391         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
74392         Use the hash-table-based cycle-detection code not just when
74393         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
74394         Reported by James Youngman in
74395         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
74396         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
74397         FTS_TIGHT_CYCLE_CHECK.
74398         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
74399         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
74400         once again.
74401         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
74402         * lib/fts.c (fd_safer): Remove decl.
74403         Include fcntl--.h rather than unistd-safer.h
74404         (fts_safe_changedir): Don't call fd_safer; no longer needed
74405         now that we include fcntl--.h.
74406
74407 2005-08-12  Simon Josefsson  <jas@extundo.com>
74408
74409         * modules/getndelim2: Use ssize_t module.
74410         * modules/getnline: Likewise.
74411         * modules/safe-read: Likewise.
74412         * modules/xreadlink: Likewise.
74413
74414         * modules/ssize_t: New file.
74415
74416 2005-08-12  Simon Josefsson  <jas@extundo.com>
74417
74418         * m4/readline.m4: Look for termcap, curses or ncurses if required.
74419
74420 2005-08-12  Simon Josefsson  <jas@extundo.com>
74421
74422         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74423         ssize_t.
74424
74425 2005-08-12  Simon Josefsson  <jas@extundo.com>
74426
74427         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
74428         readline, getdelim and check_version.
74429         (Support for systems lacking ISO C 99: Sizes of integer types):
74430         Add size_max.
74431
74432 2005-08-12  Bruno Haible  <bruno@clisp.org>
74433
74434         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
74435
74436 2005-08-11  Simon Josefsson  <jas@extundo.com>
74437
74438         * modules/readline: New file.
74439
74440         * modules/strnlen (Files): Add strnlen.h.
74441
74442 2005-08-11  Simon Josefsson  <jas@extundo.com>
74443
74444         * m4/readline.m4: New file.
74445
74446 2005-08-11  Simon Josefsson  <jas@extundo.com>
74447
74448         * lib/readline.h, readline.c: New file.
74449
74450 2005-08-11  Simon Josefsson  <jas@extundo.com>
74451
74452         * doc/gnulib.texi (Initial import, Finishing touches): Mention
74453         gl_AVOID.
74454
74455 2005-08-11  Bruno Haible  <bruno@clisp.org>
74456
74457         * lib/strnlen.h (strnlen): Change parameter name to match comment.
74458
74459 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
74460
74461         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
74462
74463 2005-08-10  Simon Josefsson  <jas@extundo.com>
74464
74465         * tests/test-iconvme.c: New file.
74466
74467 2005-08-10  Simon Josefsson  <jas@extundo.com>
74468
74469         * m4/strnlen.m4: New file.
74470
74471         * m4/strndup.m4: Don't check for strnlen declaration, done in
74472         strnlen.m4.
74473
74474 2005-08-10  Simon Josefsson  <jas@extundo.com>
74475
74476         * lib/strndup.c: Use strnlen.h.
74477
74478         * lib/strnlen.h: New file.
74479
74480 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74481
74482         * README: Typos.
74483
74484 2005-08-02  Simon Josefsson  <jas@extundo.com>
74485
74486         * modules/readline: New file.
74487
74488 2005-08-02  Simon Josefsson  <jas@extundo.com>
74489
74490         * modules/getdelim: New file.
74491
74492         * modules/getline: Rewrite, don't use getndelim2.
74493
74494 2005-08-02  Simon Josefsson  <jas@extundo.com>
74495
74496         * m4/getline.m4: Separate out getdelim stuff into separate module.
74497
74498         * m4/getdelim.m4: New file.
74499
74500 2005-08-02  Simon Josefsson  <jas@extundo.com>
74501
74502         * lib/getline.h, getline.c: Rewrite.
74503
74504         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
74505
74506 2005-07-31  Bruno Haible  <bruno@clisp.org>
74507
74508         * lib/lock.h (gl_lock_initializer): New macro.
74509         (gl_lock_define_initialized): Use it.
74510         (gl_rwlock_initializer): New macro.
74511         (gl_rwlock_define_initialized): Use it.
74512         (gl_recursive_lock_initializer): New macro.
74513         (gl_recursive_lock_define_initialized): Use it.
74514
74515 2005-07-30  Karl Berry  <karl@gnu.org>
74516
74517         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
74518         Report from Ben Pfaff, regarding getopt.
74519
74520 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
74521
74522         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
74523         normal way.
74524         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
74525         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
74526         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
74527         (gl_GETOPT): Use the new macros.  Most of the implementation
74528         is moved to the new macros.  This is for programs like Emacs
74529         that don't want all the functionality of gl_GETOPT.
74530
74531 2005-07-26  Bruno Haible  <bruno@clisp.org>
74532
74533         * m4/lock.m4: Update from GNU gettext.
74534
74535 2005-07-26  Bruno Haible  <bruno@clisp.org>
74536
74537         * lib/lock.h: Update from GNU gettext.
74538         * lib/lock.c: Update from GNU gettext.
74539
74540 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
74541
74542         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
74543         obsolescent AC_TRY_RUN.  Include the default includes files, for
74544         'exit'.
74545
74546 2005-07-24  Bruno Haible  <bruno@clisp.org>
74547
74548         * modules/visibility: New file.
74549         * MODULES.html.sh (Misc): Add visibility.
74550
74551 2005-07-24  Bruno Haible  <bruno@clisp.org>
74552
74553         * m4/visibility.m4: New file.
74554
74555 2005-07-24  Bruno Haible  <bruno@clisp.org>
74556
74557         * doc/visibility.texi: New file.
74558
74559 2005-07-22  Bruno Haible  <bruno@clisp.org>
74560
74561         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
74562         $(ALLOCA_H), redundant through BUILT_SOURCES.
74563         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
74564         redundant through BUILT_SOURCES.
74565         * modules/byteswap (Makefile.am): Remove explicit dependency on
74566         $(BYTESWAP_H), redundant through BUILT_SOURCES.
74567         * modules/fnmatch (Makefile.am): Remove explicit dependency on
74568         $(FNMATCH_H), redundant through BUILT_SOURCES.
74569         * modules/getopt (Makefile.am): Remove explicit dependency on
74570         $(GETOPT_H), redundant through BUILT_SOURCES.
74571         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
74572         redundant through BUILT_SOURCES.
74573         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
74574         redundant through BUILT_SOURCES.
74575         * modules/stdbool (Makefile.am): Remove explicit dependency on
74576         $(STDBOOL_H), redundant through BUILT_SOURCES.
74577         * modules/stdint (Makefile.am): Remove explicit dependency on
74578         $(STDINT_H), redundant through BUILT_SOURCES.
74579         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
74580         Remove explicit dependency on $(SYSEXITS_H).
74581         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
74582
74583 2005-07-18  Simon Josefsson  <jas@extundo.com>
74584
74585         * lib/check-version.c (check_version): Accept identical versions too.
74586
74587 2005-07-18  Bruno Haible  <bruno@clisp.org>
74588
74589         * modules/lock: New file.
74590         * MODULES.html.sh (Multithreading): New section.
74591
74592 2005-07-18  Bruno Haible  <bruno@clisp.org>
74593
74594         * m4/lock.m4: New file, from GNU gettext.
74595
74596 2005-07-18  Bruno Haible  <bruno@clisp.org>
74597
74598         * lib/lock.h: New file, from GNU gettext.
74599         * lib/lock.c: New file, from GNU gettext.
74600
74601 2005-07-18  Bruno Haible  <bruno@clisp.org>
74602
74603         * lib/lock.h (gl_once_t): New type.
74604         (gl_once_define, gl_once): New macros.
74605         * lib/lock.c (fresh_once): New variable.
74606         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
74607         functions.
74608
74609 2005-07-16  Simon Josefsson  <jas@extundo.com>
74610
74611         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
74612         workaround, suggested by Bruno.
74613
74614 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
74615
74616         * modules/xalloc (Depends-on): Add xalloc-die.
74617         * modules/xvasprintf (Depends-on): Add xalloc-die.
74618
74619 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
74620
74621         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
74622         with a minor change.
74623
74624 2005-07-15  Bruno Haible  <bruno@clisp.org>
74625
74626         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
74627         When using lib/poll.c, define poll as rpl_poll.
74628
74629 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
74630
74631         * modules/argp (Depends-on): Remove unlocked-io.
74632
74633 2005-07-14  Derek Price  <derek@ximbiot.com>
74634
74635         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
74636         for glob symlink bug.
74637
74638 2005-07-14  Bruno Haible  <bruno@clisp.org>
74639
74640         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
74641         Instead, test for *_unlocked function declarations directly.
74642
74643 2005-07-11  Simon Josefsson  <jas@extundo.com>
74644
74645         * modules/size_max: New file.
74646
74647         * modules/xsize: Depend on size_max module for size_max.m4.
74648
74649 2005-07-11  Simon Josefsson  <jas@extundo.com>
74650
74651         * lib/size_max.h: New file.
74652
74653 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
74654
74655         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
74656         copyright symbol and the year.
74657         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
74658         (version_etc_va): Use parameterized copyright notice.
74659         Reword to conform to the current GNU coding standards.
74660
74661 2005-07-11  Karl Berry  <karl@gnu.org>
74662
74663         * doc/gnulib.texi (Quoting): new node.
74664         (Initial import): more info, from Patrice.
74665
74666 2005-07-11  Bruno Haible  <bruno@clisp.org>
74667
74668         * gnulib-tool (func_usage): Document option --avoid.
74669         (Command line options): Handle --avoid.
74670         (func_acceptable): New function.
74671         (func_modules_transitive_closure): Use it.
74672
74673 2005-07-11  Bruno Haible  <bruno@clisp.org>
74674
74675         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
74676         Reported by Jim Meyering.
74677
74678 2005-07-10  Bruno Haible  <bruno@clisp.org>
74679
74680         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
74681         Needed when size_t is smaller than 'unsigned int'.
74682         Reported by Paul Eggert.
74683
74684 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74685
74686         * modules/argp (Depends-on): Add unlocked-io
74687
74688 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74689
74690         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
74691         block of defines.
74692
74693 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
74694
74695         * config/srclist.txt: Comment out regcomp.c, since we have a porting
74696         fix now.
74697
74698 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
74699         and Paul Eggert  <eggert@cs.ucla.edu>
74700
74701         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
74702         in wint_t, not wchar_t.  Remove now-unnecessary cast.
74703
74704 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
74705
74706         * modules/regex (Files): Add lib/regex_internal.c,
74707         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
74708         (Depends-on): Add extensions.
74709         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
74710
74711 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
74712
74713         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
74714         pathconf.
74715         * m4/same.m4 (gl_SAME): Likewise.
74716         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
74717
74718         * m4/regex.m4: Adjust to new libc regex implementation.
74719         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
74720         all the .c and .h parts of (the new) regex.
74721         Quote the m4 stuff better.
74722         Check for RE_ICASE bug of old gnulib.
74723         Check for REG_STARTEND of recent libc.
74724         Rename local variables from jm_* to gl_*.
74725         Quote operand of "test -f".
74726         Say "recent enough" version of libc, not "version 2".
74727         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
74728         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
74729         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
74730         Remove check for btowc, isascii.
74731         Require AM_LANGINFO_CODESET.
74732
74733 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
74734
74735         * lib/regex.c, regex.h: Sync from libc.
74736         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
74737         * lib/regexec.c:
74738         New files, synced from libc, except that regex_internal.h
74739         currently has a small porting fix.
74740
74741 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
74742
74743         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
74744         regex_internal.c, regexec.c.
74745         Add regex_internal.h too, but as a comment, since the libc version
74746         is currently broken in gnulib mode.
74747
74748 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
74749
74750         Support programs like Emacs that use gnulib but not gettext.
74751         * MODULES.html.sh (Internationalization functions): Add gettext-h.
74752         * modules/gettext-h: New file.
74753         * modules/gettext (Files): Remove lib/gettext.h.
74754         (Depends-on): Add gettext-h.
74755         (Makefile.am): Remove lib_SOURCES.
74756         * modules/argmatch, modules/c-stack, modules/closeout:
74757         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
74758         * modules/execute, modules/file-type, modules/getaddrinfo:
74759         * modules/getopt, modules/human, modules/javacomp:
74760         * modules/javaexec, modules/mkdir-p, modules/obstack:
74761         * modules/openat, modules/pagealign_alloc, modules/pipe:
74762         * modules/quotearg, modules/regex, modules/rpmatch:
74763         * modules/unicodeio, modules/userspec, modules/version-etc:
74764         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
74765         * modules/xsetenv:
74766         Depend on gettext-h, not gettext.
74767
74768 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
74769
74770         * gnulib-tool (func_import): Add support for 'public domain' license.
74771         * modules/alloca, modules/atexit, modules/memmove:
74772         Now public domain, not GPL.
74773         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
74774         * modules/realloc, modules/strerror, modules/strtod:
74775         Now LGPL, not GPL.
74776
74777 2005-07-05  Bruno Haible  <bruno@clisp.org>
74778
74779         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
74780         autoconf CVS. Needed for mingw.
74781
74782 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
74783
74784         Remove the dependency of the strftime module on the tzset module.
74785         * modules/strftime (Depends-on): Remove dependency on tzset.
74786
74787 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
74788
74789         Remove the dependency of the strftime module on the tzset module.
74790         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
74791         gl_FUNC_TZSET_CLOBBER.
74792
74793 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
74794
74795         Remove the dependency of the strftime module on the tzset module.
74796         * lib/strftime.c (my_strftime)
74797         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
74798         Copy the input structure, to work around some of the bug with
74799         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
74800         Solaris releases, you should also use the tzset module, but we won't
74801         require it as a dependency any more since we don't want LGPLed code
74802         to depend on GPLed code.
74803
74804 2005-07-02  Jim Meyering  <jim@meyering.net>
74805
74806         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
74807         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
74808         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
74809         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
74810
74811 2005-07-02  Jim Meyering  <jim@meyering.net>
74812
74813         * lib/backupfile.c (backup_args): Change a `0' to NULL.
74814
74815 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
74816
74817         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
74818         declares only 'struct timespec;' (!).
74819
74820 2005-07-01  Jim Meyering  <jim@meyering.net>
74821
74822         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
74823         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
74824         * lib/save-cwd.c, tempname.c:
74825         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
74826         and don't include <sys/file.h>).
74827
74828 2005-06-29  Jim Meyering  <jim@meyering.net>
74829
74830         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
74831         type name.  Use the variable name instead.
74832         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
74833         Likewise.
74834
74835 2005-06-28  Simon Josefsson  <jas@extundo.com>
74836
74837         * modules/check-version (Files): Add check-version.m4.
74838
74839 2005-06-28  Simon Josefsson  <jas@extundo.com>
74840
74841         * m4/check-version.m4: New file, suggested by Jim Meyering
74842         <jim@meyering.net>.
74843
74844 2005-06-28  Simon Josefsson  <jas@extundo.com>
74845
74846         * lib/check-version.h, lib/check-version.c: New files.
74847
74848 2005-06-28  Simon Josefsson  <jas@extundo.com>
74849
74850         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
74851         collision with global variable.  Better indentation.  Don't
74852         increment buffer pointer beyond buffer end.  Based on comments
74853         from Paul Eggert <eggert@cs.ucla.edu>.
74854
74855         * lib/base64.h: Indent.
74856
74857 2005-06-28  Simon Josefsson  <jas@extundo.com>
74858
74859         * doc/gnulib.texi (Library version handling): New section.
74860
74861 2005-06-28  Jim Meyering  <jim@meyering.net>
74862
74863         * check-module (find_included_lib_files): Hard-code another
74864         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
74865         but modules/fts-lgpl (correctly) does not list those files.
74866
74867         * modules/canonicalize (Files): Add lib/pathmax.h.
74868
74869 2005-06-25  Simon Josefsson  <jas@extundo.com>
74870
74871         * modules/check-version: New file.
74872
74873 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
74874
74875         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
74876         initializer of struct addrinfo, as an indication that we don't
74877         care how many members the structure has.
74878
74879 2005-06-24  Derek Price  <derek@ximbiot.com>
74880         and Bruno Haible  <bruno@clisp.org>
74881
74882         Remove stat module & update lstat.
74883         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
74884         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
74885         * m4/stat.m4: Remove this file.
74886
74887 2005-06-24  Derek Price  <derek@ximbiot.com>
74888         and Bruno Haible  <bruno@clisp.org>
74889
74890         Remove stat module & update lstat.
74891         * lib/stat.c: Remove this file...
74892         (slash_aware_lstat): ...moving this content and its support...
74893         * lib/lstat.c (rpl_lstat): ...into here.
74894         * lib/lstat.h: New file.
74895
74896 2005-06-24  Derek Price  <derek@ximbiot.com>
74897         and Bruno Haible  <bruno@clisp.org>
74898
74899         Remove stat module & update lstat.
74900         * config/srclist.txt (libc sources): Remove stat.
74901
74902 2005-06-24  Derek Price  <derek@ximbiot.com>
74903         and Bruno Haible  <bruno@clisp.org>
74904
74905         Remove stat module & update lstat.
74906         * MODULES.html.sh (stat): Remove.
74907         * MODULES.html: Regenerated.
74908         * modules/lstat (Description): Correct function name.
74909         (Files): Add "lstat.h".
74910         (Depends-on): Remove stat, add xalloc, stat-macros.
74911         * modules/stat: Remove this file.
74912         (Include): Add "lstat.h", remove <sys/stat.h>.
74913
74914 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
74915
74916         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
74917         (ranged_convert): Don't save conversion in a temporary struct.
74918         This causes a warning with GCC 4.0.0, and anyway in the typical
74919         case it's not worth the extra 100 bytes or so of code.
74920         (ranged_convert, __mktime_internal): When calling a function via a
74921         pointer P, use P () rather than (*P) (), as we now assume C89 or
74922         better.
74923
74924 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74925
74926         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
74927         "who -r" failed to give output.  Problem reported by Tim Waugh.
74928
74929         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
74930         (xcalloc): Use it to avoid needless tests.
74931         Problem reported by Jim Meyering.
74932
74933 2005-06-20  Derek Price  <derek@ximbiot.com>
74934
74935         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
74936         unnecessary for Autoconfs > 2.59c.
74937
74938 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74939
74940         * lib/argp.h (__option_is_short): Check upper limit of
74941         __key. Isprint() requires its argument to have the value
74942         of an unsigned char or EOF.
74943
74944 2005-06-16  Jim Meyering  <jim@meyering.net>
74945
74946         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
74947         when either N or S is zero.
74948
74949 2005-06-16  Derek Price  <derek@ximbiot.com>
74950
74951         * m4/bison.m4: Declare YACC & YFLAGS precious.
74952
74953 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
74954
74955         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
74956         multibyte string or pattern, fall back on unibyte matching.
74957         Problem reported by James Youngman.
74958
74959 2005-06-08  Bruno Haible  <bruno@clisp.org>
74960
74961         * modules/csharpcomp: New file.
74962         * MODULES.html.sh (C#): Add csharpcomp.
74963
74964 2005-06-08  Bruno Haible  <bruno@clisp.org>
74965
74966         * m4/csharpcomp.m4: New file, from GNU gettext.
74967
74968 2005-06-08  Bruno Haible  <bruno@clisp.org>
74969
74970         * lib/csharpcomp.h: New file, from GNU gettext.
74971         * lib/csharpcomp.c: New file, from GNU gettext.
74972         * lib/csharpcomp.sh.in: New file, from GNU gettext.
74973
74974 2005-06-08  Bruno Haible  <bruno@clisp.org>
74975
74976         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
74977         warning on mingw.
74978
74979 2005-06-07  Derek Price  <derek@ximbiot.com>
74980
74981         Sync from CVS.
74982         * lib/glob_.h: Indent nested #ifdef.
74983
74984 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
74985
74986         Sync from coreutils.
74987         Use "file name" when talking about file names, instead of "filename"
74988         or "path", as per the GNU coding standards.
74989         * lib/mkdir-p.c: Renamed from makepath.c.
74990         (make_dir_parents): Renamed from make_path.  All callers changed.
74991         * lib/mkdir-p.h: Likewise.  All includers changed.
74992         * lib/filenamecat.c: Renamed from path-concat.c.
74993         (file_name_concat): Renamed from path_concat.  All callers changed.
74994         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
74995         * lib/filenamecat.h: Likewise.  All includers changed.
74996         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
74997         in comments or local variable names.
74998         * lib/basename.c: Likewise.
74999         * lib/canonicalize.c, canonicalize.h: Likewise.
75000         * lib/dirname.c, dirname.h: Likewise.
75001         * lib/euidaccess.c: Likewise.
75002         * lib/exclude.c: Likewise
75003         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
75004         * lib/fsusage.c, fsuage.h: Likewise.
75005         * lib/fts.c, fts_.h: Likewise.
75006         * lib/getcwd.c: Likewise.
75007         * lib/getloadavg.c: Likewise.
75008         * lib/mkstemp.c: Likewise.
75009         * lib/mountlist.c, mountlist.h: Likewise.
75010         * lib/openat.c, openat.h: Likewise.
75011         * lib/readlink-stub.c: Likewise.
75012         * lib/readutmp.c, readutmp.h: Likewise.
75013         * lib/rename.c: Likewise.
75014         * lib/rmdir.c: Likewise.
75015         * lib/same.c: Likewise.
75016         * lib/savedir.c: Likewise.
75017         * lib/stripslash.c: Likewise.
75018         * lib/tempname.c: Likewise.
75019         * lib/xreadlink.c: Likewise.
75020         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
75021         All uses changed.
75022         * lib/exclude.h: Likewise.
75023
75024         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
75025         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75026         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
75027         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75028         * lib/pathmax.h: Include <limits.h> unconditionally, since other
75029         files have been getting away with it for years (MORE/BSD 4.3
75030         is extinct now).
75031         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
75032         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75033
75034         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
75035         Define to 256, not 255, as per modern POSIX.
75036
75037 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75038
75039         Sync from coreutils.
75040         Use "file name" when talking about file names, instead of "filename"
75041         or "path", as per the GNU coding standards.
75042         * MODULES.html.sh: mkdir-p renamed from makepath.
75043         filenamecat renamed from path-concat.
75044         * modules/filenamecat: Renamed from modules/path-concat.
75045         (Files): filenamecat.h and filenamecat.c renamed from
75046         path-concat.h and path-concat.c.
75047         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
75048         (Include): filenamecat.h, not path-concat.h.
75049         * modules/mkdir-p: Renamed from modules/makepath.
75050         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
75051         makepath.c.
75052         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
75053         (Include): mkdir-p.h, not makepath.h.
75054
75055 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75056
75057         Sync from coreutils.
75058         * m4/mkdir-p.m4: Renamed from makepath.m4.
75059         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
75060         Rename files from makepath.c to mkdir-p.c, and from
75061         makepath.h to mkdir-p.h.
75062         * m4/filenamecat.m4: Renamed from path-concat.m4.
75063         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
75064         Rename files from path-concat.c to filenamecat.c,
75065         and from path-concat.h to filenamecat.h.
75066         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
75067         "file name" in local variables or comments.
75068         * m4/rename.m4: Likewise.
75069
75070 2005-06-01  Bruno Haible  <bruno@clisp.org>
75071
75072         * modules/csharpexec: New file.
75073         * MODULES.html.sh (C#): New section.
75074
75075 2005-06-01  Bruno Haible  <bruno@clisp.org>
75076
75077         * m4/csharp.m4: New file, from GNU gettext.
75078         * m4/csharpexec.m4: New file, from GNU gettext.
75079
75080 2005-06-01  Bruno Haible  <bruno@clisp.org>
75081
75082         * lib/csharpexec.h: New file, from GNU gettext.
75083         * lib/csharpexec.c: New file, from GNU gettext.
75084         * lib/csharpexec.sh.in: New file, from GNU gettext.
75085
75086 2005-05-31  Derek Price  <derek@ximbiot.com>
75087             Paul Eggert  <eggert@cs.ucla.edu>
75088
75089         Sync from cvs.
75090         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
75091
75092 2005-05-31  Derek Price  <derek@ximbiot.com>
75093             Paul Eggert  <eggert@cs.ucla.edu>
75094
75095         Sync from cvs.
75096         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
75097
75098 2005-05-29  Derek Price  <derek@ximbiot.com>
75099
75100         * config/srclist.txt (glob_.h, glob.c): Add these files.
75101
75102 2005-05-29  Derek Price  <derek@ximbiot.com>
75103
75104         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
75105         * modules/glob: New file.
75106         * modules/getlogin_r: Add link to POSIX spec in description.
75107
75108 2005-05-29  Derek Price  <derek@ximbiot.com>
75109             Paul Eggert  <eggert@cs.ucla.edu>
75110
75111         * m4/glob.m4: New file.
75112
75113 2005-05-29  Derek Price  <derek@ximbiot.com>
75114             Paul Eggert  <eggert@cs.ucla.edu>
75115
75116         * lib/glob_.h, lib/glob.c: New files.
75117
75118 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75119
75120         * modules/fts (Files): Remove m4/inttypes-pri.m4.
75121         * modules/fts-lgpl (Depends-on): Remove gettext.
75122
75123 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75124
75125         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
75126         and don't require gt_INTTYPES_PRI.
75127
75128 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75129
75130         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
75131
75132         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
75133         the configuration hassle isn't worth it.
75134         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
75135         (LONGEST_MODIFIER, PRIuMAX): Remove.
75136
75137 2005-05-27  Bruno Haible  <bruno@clisp.org>
75138
75139         * lib/getlogin_r.h: Remove second include of <stddef.h>.
75140
75141 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
75142
75143         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
75144         _POSIX_PTHREAD_SEMANTICS for Solaris.
75145
75146 2005-05-25  Derek Price  <derek@ximbiot.com>
75147
75148         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
75149
75150 2005-05-25  Derek Price  <derek@ximbiot.com>
75151             Paul Eggert  <eggert@cs.ucla.edu>
75152
75153         * modules/getlogin_r, m4/getlogin_r.m4: New files.
75154         * lib/getlogin_r.c, getlogin_r.h: New files.
75155
75156 2005-05-25  Bruno Haible  <bruno@clisp.org>
75157             Derek Price  <derek@ximbiot.com>
75158
75159         * lib/getlogin_r.h: Simplify API documentation.
75160
75161 2005-05-23  Derek Price  <derek@ximbiot.com>
75162
75163         * modules/minmax (Files): Add m4/minmax.m4.
75164         (configure.ac): Add gl_MINMAX.
75165
75166 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
75167
75168         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
75169         so that unistd-safer.h (GPL'ed code) need not be included.
75170
75171 2005-05-22  Bruno Haible  <bruno@clisp.org>
75172
75173         * m4/minmax.m4: New file.
75174         Based on a patch by Derek Price <derek@ximbiot.com>.
75175
75176 2005-05-22  Bruno Haible  <bruno@clisp.org>
75177
75178         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
75179         (INT64_MIN): Fix definition.
75180         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
75181
75182         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
75183         NEED_SIGNED_INT_TYPES.
75184
75185         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
75186         HAVE_SYSTEM_INTTYPES.
75187
75188 2005-05-22  Bruno Haible  <bruno@clisp.org>
75189
75190         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
75191         Also include <sys/param.h> if it defines MIN, MAX.
75192         Based on a patch by Derek Price <derek@ximbiot.com>.
75193
75194 2005-05-21  Jim Meyering  <jim@meyering.net>
75195
75196         * modules/fts (Files): Add m4/inttypes-pri.m4.
75197         (Depends-on): Add lstat and remove gettext.  Alphabetize.
75198
75199 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75200
75201         New fts module.
75202         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
75203         (setup_dir, free_dir): New functions.
75204         (enter_dir, leave_dir): Define trivial
75205         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
75206         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
75207         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
75208         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
75209         Move to fts-cycle.c.
75210         (fts_open): Use setup_dir.
75211         (fts_close): Use free_dir.
75212         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
75213         This adds a label and some gotos, but the alternatives were messier.
75214         Check for memory allocation failure when entering a dir.
75215         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
75216         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
75217         (FTS): New member fts_cycle, that is a union that contains the
75218         old active_dir_ht and cycle_state.  All uses changed to mention
75219         fts_cycle.ht and fts_cycle.state.
75220         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
75221         fts.c, with the following changes:
75222         (setup_dir, free_dir): New functions.
75223         (enter_dir): Now returns bool.  Return true if successful, false
75224         if memory exhausted.  All callers changed.
75225         Do not bother partly cleaning up on
75226         memory allocation failure; that is free_dir's job.
75227         However, free ad if hash_insert fails, to avoid memory leak.
75228         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
75229         fts->fts_options to see which union member to use.
75230
75231 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75232
75233         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
75234         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
75235
75236 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75237
75238         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
75239
75240 2005-05-20  Jim Meyering  <jim@meyering.net>
75241
75242         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
75243         Now a macro, to pacify GCC.
75244
75245 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
75246
75247         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
75248         of -1.
75249
75250 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
75251
75252         * lib/chown.c (rpl_chown): Return -1 on failure.
75253
75254 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
75255
75256         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
75257         Don't check for stddef.h.
75258         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
75259         don't use its results.
75260         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
75261         since we include them unconditionally.  Don't require
75262         AM_STDBOOL_H, since stdbool is a prerequisite.
75263         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
75264         since we assume C89 or better.
75265         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
75266         as we don't use their results.
75267         Don't check for fchdir, memmove, memset, strrchr, as we use
75268         them unconditionally.
75269         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
75270         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
75271
75272 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
75273
75274         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
75275         Include <stddef.h> unconditionally, since we assume C89 now.
75276         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
75277         * lib/fts.c: Include fts_.h first, to check interface.
75278         Do not include intprops.h; no longer needed.
75279         Include cycle-check.h and hash.h, since fts_.h no longer does.
75280         Remove unnecessary casts of closedir to void.
75281         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
75282         decide whether to decrement nlinks.
75283         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
75284         (FTS): Use struct hash_table * instead of Hash_table, so that
75285         we no longer need to include hash.h here.
75286
75287 2005-05-18  Jim Meyering  <jim@meyering.net>
75288
75289         * modules/dirfd (License): Change to LGPL.  Most of the code
75290         is already in the public domain.
75291
75292 2005-05-18  Jim Meyering  <jim@meyering.net>
75293
75294         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
75295         Reported by Yoann Vandoorselaere.
75296
75297 2005-05-17  Jim Meyering  <jim@meyering.net>
75298
75299         * m4/fts.m4: New file, from coreutils.
75300
75301 2005-05-17  Jim Meyering  <jim@meyering.net>
75302
75303         * lib/fts.c, lib/fts_.h: New files, from coreutils.
75304
75305 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75306
75307         Sync from coreutils.
75308         * m4/unlinkdir.m4: New file.
75309
75310 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75311
75312         Sync from coreutils.
75313         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
75314         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
75315         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
75316         White space changes only.
75317         * lib/makepath.c (make_path): Port to hosts where leading "//" is
75318         special.
75319         * lib/yesno.c: Include getline.h, not ctype.h.
75320         (yesno): Don't remove leading white space; POSIX doesn't allow it.
75321         Use getline to remove arbitrary restriction on response length.
75322
75323 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75324
75325         * config/srclist-update: Spell out "Street" in FSF postal
75326         mail address; this is the style the FSF seems to prefer.
75327
75328         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
75329         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
75330         this updates FSF postal mail address.
75331
75332         Sync from coreutils.
75333         * modules/unlinkdir: New file.
75334         * modules/yesno (Depends-on): Add getline.
75335         * MODULES.html.sh (File system functions): Add unlinkdir.
75336
75337 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
75338
75339         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
75340         lib/strsep.h:
75341         Change the initial comment to refer to GPL, not LGPL.
75342         gnulib-tool will change it to LGPL as needed.
75343
75344         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
75345         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
75346         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
75347         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
75348         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
75349         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
75350         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
75351         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
75352         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
75353         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
75354         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
75355         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
75356         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
75357         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
75358         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
75359         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
75360         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
75361         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
75362         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
75363         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
75364         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
75365         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
75366         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
75367         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
75368         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
75369         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
75370         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
75371         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
75372         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
75373         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
75374         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
75375         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
75376         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
75377         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
75378         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
75379         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
75380         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
75381         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
75382         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
75383         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
75384         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
75385         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
75386         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
75387         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
75388         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
75389         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
75390         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
75391         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
75392         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
75393         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
75394         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
75395         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
75396         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
75397         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
75398         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
75399         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
75400         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
75401         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
75402         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
75403         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
75404         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
75405         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
75406         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
75407         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
75408         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
75409         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
75410         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
75411         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
75412         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
75413         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
75414         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
75415         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
75416         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
75417         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
75418         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
75419         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
75420         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
75421         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
75422         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
75423         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
75424         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
75425         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
75426         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
75427         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
75428         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
75429         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
75430         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
75431         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
75432         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
75433         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
75434         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
75435         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
75436         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
75437         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
75438         lib/yesno.c, lib/yesno.h:
75439         Update FSF postal mail address.
75440
75441 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
75442
75443         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
75444         tests/test-memmem.c, tests/test-stpncpy.c:
75445         Update FSF postal mail address.
75446
75447 2005-05-13  Bruno Haible  <bruno@clisp.org>
75448
75449         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
75450         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
75451         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
75452         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
75453         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
75454         Add support for 64-bit integers in the MSVC compiler.
75455
75456 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75457
75458         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
75459
75460 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
75461
75462         * gnulib-tool (func_import): Sort and uniquify recommended includes.
75463
75464 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
75465
75466         * doc/getdate.texi (General date syntax): Don't say that date
75467         date --iso-8601=ns generates acceptable dates; it doesn't yet.
75468         Problem reported by Nic Ferrier.
75469
75470 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75471
75472         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
75473         specified in ai_socktype. Fix invalid ai_protocol
75474         check. ai_protocol is usually set to 0 or depending on
75475         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
75476         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
75477         ai_socktype / ai_protocol in the returned addrinfo structure.
75478
75479 2005-05-10  Simon Josefsson  <jas@extundo.com>
75480
75481         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
75482         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75483
75484 2005-05-10  Karl Berry  <karl@gnu.org>
75485
75486         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
75487         (from http://www.gnu.org/licenses).
75488         * doc/COPYING.LIB: also rename to COPYING.LESSER.
75489         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
75490         fdl.texi suffices.
75491
75492 2005-05-10  Karl Berry  <karl@gnu.org>
75493
75494         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
75495         (COPYING.DOC): remove.
75496
75497         * config/srclist-update: new FSF address.
75498
75499 2005-05-10  Derek Price  <derek@ximbiot.com>
75500
75501         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
75502         possible.
75503
75504 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75505             Bruno Haible  <bruno@clisp.org>
75506
75507         * modules/inet_ntop: New file.
75508         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75509         inet_ntop.
75510
75511 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75512             Bruno Haible  <bruno@clisp.org>
75513
75514         * m4/inet_ntop.m4: New file.
75515
75516 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75517             Bruno Haible  <bruno@clisp.org>
75518
75519         * lib/inet_ntop.h: New file.
75520         * lib/inet_ntop.c: New file, from glibc with modifications.
75521
75522 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
75523
75524         * modules/time_r (License): Change to LGPL.
75525         * modules/extensions (License): Change to LGPL.  Actually,
75526         the license is more permissive than that, but currently gnulib-tool
75527         doesn't know how to handle more-permissive licenses.
75528
75529         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
75530         Problem reported by Dave Love.
75531
75532 2005-05-08  Jim Meyering  <jim@meyering.net>
75533
75534         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
75535         blank.
75536
75537 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
75538
75539         * modules/argmatch (Depends-on): Add stdbool.
75540         * modules/backupfile (Depends-on): Likewise.
75541         * modules/chdir-long (Depends-on): Likewise.
75542         * modules/closeout (Depends-on): Likewise.
75543         * modules/cycle-check (Depends-on): Likewise.
75544         * modules/dirname (Depends-on): Likewise.
75545         * modules/fnmatch (Depends-on): Likewise.
75546         * modules/fsusage (Depends-on): Likewise.
75547         * modules/fwriteerror (Depends-on): Likewise.
75548         * modules/getcwd (Depends-on): Likewise.
75549         * modules/getloadavg (Depends-on): Likewise.
75550         * modules/hard-locale (Depends-on): Likewise.
75551         * modules/makepath (Depends-on): Likewise.
75552         * modules/mountlist (Depends-on): Likewise.
75553         * modules/nanosleep (Depends-on): Likewise.
75554         * modules/posixtm (Depends-on): Likewise.
75555         * modules/quotearg (Depends-on): Likewise.
75556         * modules/readtokens (Depends-on): Likewise.
75557         * modules/readtokens0 (Depends-on): Likewise.
75558         * modules/readutmp (Depends-on): Likewise.
75559         * modules/save-cwd (Depends-on): Likewise.
75560         * modules/strftime (Depends-on): Likewise.
75561         * modules/userspec (Depends-on): Likewise.
75562         * modules/utimecmp (Depends-on): Likewise.
75563         * modules/xgetcwd (Depends-on): Likewise.
75564         * modules/xnanosleep (Depends-on): Likewise.
75565         * modules/xstrtod (Depends-on): Likewise.
75566         * modules/yesno (Depends-on): Likewise.
75567
75568 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
75569
75570         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
75571         needless checks.
75572
75573 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
75574
75575         Merge from coreutils.  Among other things,
75576         add bulletproofing for cases where stdin, stdout, or stderr are closed.
75577         * lib/fd-safer.c: New file.
75578         * lib/fcntl-safer.h, open-safer.c: Remove.
75579         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
75580         * lib/dup-safer.c: Include unistd-safer.h first.
75581         Don't include errno.h.
75582         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
75583         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
75584         * lib/file-type.c: Rely on file-type.h change.
75585         * lib/getloadavg.c: Include unistd-safer.h.
75586         (getloadavg): Use safer open.
75587         * lib/getusershell.c: Include "stdio-safer.h".
75588         (getusershell): Use safer fopen.
75589         * lib/long-options.c (long_options): Use NULL rather than 0.
75590         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
75591         'free'.
75592         * lib/modechange.c: Likewise.
75593         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
75594         (MODE_DONE): New constant.
75595         (struct mode_change): Remove 'next' member.
75596         (make_node_op_equals): New function; like the old one of the
75597         same name, except it allocates an array.
75598         (mode_compile, mode_create_from_ref): Use it.
75599         (mode_compile): Allocate result as an array, not a linked list.
75600         Parse octal string ourself, so that we catch mistakes like "+0".
75601         (mode_adjust): Arg is an array, not a linked list.
75602         * lib/modechange.c: Include stat-macros.h, xalloc.h.
75603         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
75604         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
75605         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
75606         Remove.  This is now stat-macros.h's job.
75607         (talloc): Remove.  All callers replaced by xalloc, so that
75608         our invokers don't have to worry about reporting memory failures.
75609         (make_node_op_equals): Remove.
75610         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
75611         New constants.
75612         (struct mode_change): Moved here from modechange.h.
75613         (mode_append_entry): Remove.
75614         (mode_compile): Remove MASKED_OPS arg, since it encouraged
75615         apps to have incorrect behavior.  Use simpler algorithm for head
75616         and tail.  Don't futz with umask; that's now the job of mode_adjust.
75617         Detect more invalid usages rather than having somewhat-random behavior.
75618         Don't insert an "a=" action, as that leads to incorrect behavior.
75619         (mode_compile, mode_create_from_ref): Return NULL on error instead
75620         of an enum, since now there's only one way to have an error.  All
75621         callers changed.
75622         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
75623         at the correct time.  Simplify calculation of "+u" and its ilk.
75624         Don't mishandle "+X".
75625         (mode_free): Remove "register" and localize decls.
75626         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
75627         (struct mode_change): Move to modechange.c; callers don't
75628         need to see this stuff.
75629         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
75630         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
75631         (mode_change, mode_adjust): Reflect the new signatures noted above.
75632         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
75633         that might redefine system include files.
75634         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
75635         (my_usleep): Use NULL rather than (void *) 0.
75636         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
75637         Use siginterrupt to specify that system calls should be interrupted.
75638         (rpl_nanosleep): Move initialization of suspended closer to call of
75639         my_usleep.
75640         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
75641         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
75642         (desirable_utmp_entry): New function.
75643         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
75644         using x2nrealloc, to simplify logic.
75645         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
75646         size calculation.  Do not assume utmp file is a regular file.
75647         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
75648         (READ_UTMP_CHECK_PIDS): New constant.
75649         * lib/save-cwd.c: Include unistd-safer.h.
75650         (save_cwd): Use fd_safer.
75651         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
75652         [!_LIBC] Include "stat-macros.h" instead.
75653         * lib/unistd-safer.h (fd_safer): New decl.
75654
75655 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
75656
75657         * modules/getloadavg (Depends-on): Add unistd-safer.
75658         * modules/getusershell (Depends-on): Add stdio-safer.
75659         * modules/lstat (Depends-on): Remove xalloc.
75660         * modules/mkstemp (Depends-on): Add stat-macros.
75661         * modules/modechange (Depends-on): Remove xstrtol.
75662         Add stat-macros, xalloc.
75663         * modules/save-cwd (Depends-on): Add unistd-safer.
75664         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
75665         * modules/unistd-safer (Files): Add lib/fd-safer.c
75666         (Makefile.am): Remove lib_SOURCES.
75667
75668         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
75669         Remove fcntl-safer; unistd-safer supersedes it.
75670
75671 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
75672
75673         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
75674         AC_HEADER_STAT.
75675         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
75676         (gl_PREREQ_CHOWN): Remove.
75677         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
75678         it.  Don't require AC_HEADER_STAT.
75679         (gl_PREREQ_LSTAT): Remove.
75680         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
75681         Don't require AC_HEADER_STAT.
75682         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
75683         (gl_PREREQ_RMDIR): Remove.
75684         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
75685         mention stat-macros.h or AC_HEADER_STAT, since we'll make
75686         the stat-macros module a prerequisite.
75687         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
75688         * m4/filemode.m4 (gl_FILEMODE): Likewise.
75689         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
75690         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
75691         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
75692         variable names.
75693         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
75694         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
75695         variable prefixes.
75696         * m4/fcntl-safer.m4: Remove.
75697         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
75698         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
75699         Invoke gl_PREREQ_FD_SAFER.
75700         (gl_PREREQ_FD_SAFER): New macro.
75701         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
75702         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
75703         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
75704         Remove duplicate call to AC_LIBOBJ(readutmp).
75705         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
75706
75707         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
75708         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
75709
75710 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
75711
75712         * MODULES.html.sh (Misc): Add byteswap.
75713
75714 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
75715
75716         * modules/getcwd (Depends-on): Add extensions.
75717         * modules/openat (Depends-on): Likewise.
75718
75719 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
75720
75721         * modules/byteswap: New file.
75722
75723 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
75724
75725         * m4/byteswap.m4: New file.
75726
75727 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
75728
75729         * lib/byteswap_.h: New file.
75730
75731 2005-04-25  Karl Berry  <karl@gnu.org>
75732
75733         * m4/gettext.m4: Update from GNU gettext 0.14.4.
75734
75735 2005-04-25  Albert Chin  <china@thewrittenword.com>
75736
75737         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
75738         Toolkit C bug.
75739
75740 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
75741
75742         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
75743         (func_ln_if_changed): Remove forcibly for no error message
75744         in case file does not exist.
75745
75746 2005-04-19  Simon Josefsson  <jas@extundo.com>
75747
75748         * gnulib-tool (Options): Make --symlink mean --symbolic.
75749
75750 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
75751
75752         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
75753
75754 2005-04-16  Simon Josefsson  <jas@extundo.com>
75755
75756         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
75757
75758 2005-04-15  Simon Josefsson  <jas@extundo.com>
75759
75760         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
75761
75762 2005-04-15  Simon Josefsson  <jas@extundo.com>
75763
75764         * gnulib-tool: Rename --symlink to --symbolic.
75765
75766 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
75767
75768         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
75769         symbolic links to files instead of copying/moving.  Add --aux-dir,
75770         specifying directory relative --dir where auxiliary build tools
75771         are placed.
75772
75773 2005-04-14  Bruno Haible  <bruno@clisp.org>
75774
75775         * modules/allocsa (License): Change to LGPL.
75776         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
75777
75778 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
75779
75780         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
75781         that "UTC +1 second" continues to work.  Problem reported
75782         by Dmitry V. Levin.
75783         (relunit_snumber): New rule.
75784         (relunit): Use it.
75785
75786 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
75787
75788         * lib/getdate.y (universal_time_zone_table): New constant.
75789         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
75790         universal_time_zone_table.
75791         (lookup_zone): Prefer universal_time_zone_table to
75792         local_time_zone_table, so that "GMT" time stamps are allowed in
75793         London during the summer.  Problem reported by Ian Abbott.
75794
75795 2005-04-12  Jim Meyering  <jim@meyering.net>
75796
75797         * lib/human.c (humblock): Set *options even when returning due to
75798         xstrtoumax conversion failure.  Thanks to a used-uninitialized
75799         warning from gcc-4.
75800
75801 2005-04-09  Jim Meyering  <jim@meyering.net>
75802
75803         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
75804         -Wuninitialized: initialize tm0.tm_year.
75805
75806 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
75807
75808         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
75809         count, since there's no maximum.  All uses changed.
75810         Add member dsts_seen.
75811         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
75812         not being INT_MAX.
75813         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
75814         Use pc_rels_seen to decide whther a date is absolute.
75815
75816         * lib/getdate.y (number): Don't overwrite year.
75817         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
75818         check.
75819
75820 2005-04-02  Simon Josefsson  <jas@extundo.com>
75821
75822         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
75823         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
75824
75825 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
75826
75827         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
75828         where no absolute path name can be longer than PATH_MAX.
75829
75830 2005-03-27  Jim Meyering  <jim@meyering.net>
75831
75832         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
75833
75834 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
75835
75836         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
75837         "one's complement" -> "ones' complement" in comment, as per Knuth.
75838         "value of type" -> "type or expression" in comment.
75839         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
75840
75841 2005-03-26  Jim Meyering  <jim@meyering.net>
75842
75843         Comment nits.
75844         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
75845         Correct typos: s/or/of/.
75846
75847 2005-03-26  Jim Meyering  <jim@meyering.net>
75848
75849         * modules/check-include-files: Move to ../ and rename to...
75850         * check-module: ...this.
75851
75852 2005-03-25  Jim Meyering  <jim@meyering.net>
75853
75854         * modules/xvasprintf (Files): Add xalloc.h.
75855
75856 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
75857
75858         * modules/gettext (Files): config/config.rpath ->
75859         build-aux/config.rpath
75860         * modules/iconv (Files): Likewise.
75861         Problem reported by Oskar Liljeblad.
75862
75863 2005-03-23  Jim Meyering  <jim@meyering.net>
75864
75865         * modules/check-include-files: New script to check for
75866         missing dependencies, multiple includes, etc.
75867
75868         * modules/c-strtold (Depends-on): Add xalloc.
75869         * modules/c-strtod (Depends-on): Add xalloc.
75870         * modules/hash (Depends-on): Add xalloc.
75871         (Files): Remove lib/xalloc.h.
75872
75873         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
75874         * modules/userspec (Files): Add lib/inttostr.h.
75875
75876 2005-03-23  Jim Meyering  <jim@meyering.net>
75877
75878         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
75879
75880 2005-03-22  Jim Meyering  <jim@meyering.net>
75881
75882         * modules/stat-macros: New module.
75883         * modules/canonicalize, modules/euidaccess, modules/file-type,
75884         * modules/filemode, modules/lchown, modules/makepath,
75885         * modules/rmdir, modules/stat: Depend on new stat-macros module
75886         rather than listing lib/stat-macros.h manually.
75887         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
75888
75889 2005-03-22  Jim Meyering  <jim@meyering.net>
75890
75891         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
75892
75893 2005-03-22  Bruno Haible  <bruno@clisp.org>
75894
75895         * config/srclist.txt: Replace target directory 'config' with
75896         'build-aux'.
75897         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
75898         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
75899         ../build-aux/.
75900
75901 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
75902
75903         * modules/chdir-long (Depends-on): Add mempcpy.
75904
75905         * modules/acl, modules/backupfile, modules/c-strtod,
75906         modules/c-strtold, modules/canon-host, modules/canonicalize,
75907         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
75908         modules/exclude, modules/exitfail, modules/file-type,
75909         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
75910         modules/getdate, modules/getline, modules/getpagesize,
75911         modules/getpass, modules/getugroups, modules/group-member,
75912         modules/hard-locale, modules/hash, modules/human, modules/idcache,
75913         modules/inttostr, modules/long-options, modules/makepath,
75914         modules/md5, modules/memcasecmp, modules/memcoll,
75915         modules/modechange, modules/mountlist, modules/path-concat,
75916         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
75917         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
75918         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
75919         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
75920         modules/strftime, modules/strndup, modules/strverscmp,
75921         modules/timespec, modules/unlocked-io, modules/userspec,
75922         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
75923         modules/yesno:
75924         Remove lib_SOURCES line from Makefile.am section, as this is now
75925         done automatically by the corresponding Autoconf macro.
75926
75927 2005-03-21  Jim Meyering  <jim@meyering.net>
75928
75929         Changes imported from coreutils.
75930
75931         * lib/cycle-check.c: Don't include xalloc.h.
75932
75933         * lib/path-concat.c: Don't include assert.h.
75934         (path_concat): Remove assertion that would have triggered
75935         for ABASE starting with more than one slash.
75936         Reported by Andreas Schwab.
75937
75938         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
75939         properly when ABASE is an absolute file name.
75940         Correct the description of this function.
75941         Include <assert.h>.
75942         Add an assertion and a test driver.
75943         This fixes a bug introduced on 2004-07-02.
75944         Andreas Schwab reported the resulting failure of cp --parents:
75945         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
75946
75947 2005-03-21  Jim Meyering  <jim@meyering.net>
75948
75949         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
75950         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
75951
75952 2005-03-21  Jim Meyering  <jim@meyering.net>
75953         and  Paul Eggert  <eggert@cs.ucla.edu>
75954
75955         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
75956         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
75957         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
75958         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
75959         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
75960         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
75961         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
75962         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
75963         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
75964         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
75965         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
75966         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
75967         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
75968         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
75969         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
75970         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
75971         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
75972         for these modules.
75973
75974 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
75975
75976         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
75977         (which shouldn't happen), generate nothing instead of returning 0
75978         immediately, so that nstrftime (NULL, ...) doesn't return 0.
75979
75980 2005-03-16  Bruno Haible  <bruno@clisp.org>
75981
75982         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
75983         HAVE_LONGLONG_64BIT.
75984
75985 2005-03-16  Bruno Haible  <bruno@clisp.org>
75986
75987         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
75988         HAVE_LONGLONG_64BIT.
75989
75990 2005-03-16  Bruno Haible  <bruno@clisp.org>
75991
75992         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
75993         HAVE_LONGLONG_64BIT.
75994
75995 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
75996
75997         * lib/strftime.c (my_strftime): Prepend space to format so that we can
75998         reliably distinguish strftime failure from empty output on POSIX
75999         hosts.
76000
76001 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
76002
76003         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
76004         (iconv_string): Don't guess a size-zero buffer, as that might cause
76005         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
76006         result would be 'too large', where 'too large' is (heuristically)
76007         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
76008         overflow concerns.  This will prevent some unwanted malloc failures
76009         when the inputs are very large.
76010
76011 2005-03-15  Karl Berry  <karl@gnu.org>
76012
76013         * config/srclist.txt (config.rpath): from gettext.
76014         * config/config.rpath: update.
76015
76016 2005-03-15  Bruno Haible  <bruno@clisp.org>
76017
76018         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
76019         to 'negate'.
76020
76021         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
76022         variable.
76023
76024         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
76025         results.
76026
76027 2005-03-14  Simon Josefsson  <jas@extundo.com>
76028
76029         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
76030         <fx@gnu.org>.
76031
76032 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
76033
76034         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
76035         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
76036         intprops.h.
76037         * lib/strtol.c: Likewise.
76038
76039 2005-03-14  Jim Meyering  <jim@meyering.net>
76040
76041         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
76042         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
76043         to be nonzero so that we (and caller) can detect the difference
76044         between a valid zero-length expansion and an error return, even
76045         when the underlying strftime fails before writing anything into
76046         that location.
76047
76048 2005-03-14  Bruno Haible  <bruno@clisp.org>
76049
76050         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
76051         Update from GNU gettext 0.14.3.
76052
76053 2005-03-10  Jim Meyering  <jim@meyering.net>
76054
76055         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
76056
76057 2005-03-10  Jim Meyering  <jim@meyering.net>
76058
76059         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
76060         so that this module works on systems without fchdir.
76061
76062 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
76063
76064         Factor int-properties macros into a single file, except for
76065         glibc-related files.
76066         * lib/intprops.h: New file.
76067         * lib/getloadavg.c: Include it instead of limits.h.
76068         (INT_STRLEN_BOUND): Remove.
76069         * lib/human.c: Include intprops.h.
76070         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
76071         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
76072         302/1000.
76073         * lib/inttostr.h: Include intprops.h instead of limits.h.
76074         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
76075         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
76076         for consistency with intprops.h.
76077         (time_t_is_integer, twos_complement_arithmetic): Use them.
76078         * lib/sig2str.h: Include <signal.h>, intprops.h.
76079         (INT_STRLEN_BOUND): Remove.
76080         * lib/strftime.c (TYPE_SIGNED): Remove.
76081         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
76082         * lib/strtol.c: Adjust comments to match intprops.h.
76083         * lib/userspec.c: Include intprops.h.
76084         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
76085         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
76086         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
76087         instead of rolling our own expressions.
76088         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
76089
76090         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
76091         instead of int.
76092         (my_strftime): Do not mishandle years close to INT_MAX, by doing
76093         the right thing even if adding 1900 would overflow.  Similarly
76094         for tm_mon + 1 and tm_yday + 1.
76095         Make %Y always equivalent to %C%y, and similarly for %G and %g.
76096         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
76097         (DO_SIGNED_NUMBER): New macro.
76098         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
76099
76100 2005-03-07  Bruno Haible  <bruno@clisp.org>
76101
76102         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
76103
76104 2005-03-07  Bruno Haible  <bruno@clisp.org>
76105
76106         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
76107
76108 2005-03-04  Derek R. Price  <derek@ximbiot.com>
76109
76110         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
76111         (func_import): Only replace files via --import when they have actually
76112         changed.
76113
76114 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76115
76116         * m4/mmap-anon.m4: New file.
76117         * m4/pagealign_alloc.m4: New file.
76118
76119 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76120             Bruno Haible  <bruno@clisp.org>
76121
76122         * modules/pagealign_alloc: New file.
76123         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
76124
76125 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76126             Bruno Haible  <bruno@clisp.org>
76127
76128         * lib/pagealign_alloc.h: New file.
76129         * lib/pagealign_alloc.c: New file.
76130
76131 2005-03-03  Bruno Haible  <bruno@clisp.org>
76132
76133         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
76134         Use an all-permissive copyright notice, recommended by RMS.
76135
76136 2005-03-02  Bruno Haible  <bruno@clisp.org>
76137
76138         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
76139         of AIX, the replacement has to be done only after <string.h> is
76140         included, therefore not in config.h. stpncpy.h does the replacement,
76141         and stpncpy.c uses it.
76142
76143 2005-03-02  Bruno Haible  <bruno@clisp.org>
76144
76145         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
76146         stpncpy.c uses it.
76147
76148 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76149
76150         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
76151         The workaround isn't strictly needed for POSIX conformance, and
76152         it's too much of a pain to configure and maintain.  We'll ask
76153         people to fix their kernels instead.
76154         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
76155         (NANOSLEEP_BUG_WORKAROUND): Remove.
76156         (xnanosleep): Remove the workaround.
76157
76158 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76159
76160         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
76161         Reported by Derek Price.
76162         (Include): Add "timespec.h".
76163
76164         * modules/xnanosleep (Depends-on): Remove gethrxtime.
76165
76166 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76167
76168         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
76169         to detect nanosleep bug.
76170
76171 2005-03-01  Bruno Haible  <bruno@clisp.org>
76172
76173         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
76174
76175 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
76176
76177         * modules/gethrxtime: New file.
76178         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
76179         (Depends-on): Add gethrxtime.
76180         (configure.ac): Add gl_XNANOSLEEP.
76181         (Makefile.am): Remove lib_SOURCES line.
76182
76183 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
76184
76185         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
76186         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
76187
76188 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
76189
76190         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
76191         * lib/timespec.h (gettime): Return void, since it always
76192         succeeds now.  All uses changed.
76193         * lib/gettime.c (gettime): Likewise.
76194         [HAVE_NANOTIME]: Prefer nanotime.
76195         Assume gettimeofday succeeds, as POSIX requires.
76196         Assime time () succeeds, since other code already does.
76197         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
76198         (timespec_subtract): Remove.
76199         (NANOSLEEP_BUG_WORKAROUND): New constant.
76200         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
76201         things considerably.  Use it only on GNU/Linux hosts, since the
76202         workaround shouldn't be needed elsewhere.
76203
76204 2005-02-24  Bruno Haible  <bruno@clisp.org>
76205
76206         * modules/gettext (Files): Add m4/glibc2.m4.
76207
76208 2005-02-24  Bruno Haible  <bruno@clisp.org>
76209
76210         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
76211         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
76212         * m4/progtest.m4:
76213         Update from GNU gettext 0.14.2.
76214         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
76215
76216 2005-02-24  Bruno Haible  <bruno@clisp.org>
76217
76218         * lib/localcharset.c: Update from GNU gettext 0.14.2.
76219         * lib/config.charset: Update from GNU gettext 0.14.2.
76220
76221 2005-02-24  Bruno Haible  <bruno@clisp.org>
76222
76223         * lib/gettext.h: Update from GNU gettext 0.14.2.
76224
76225 2005-02-23  Simon Josefsson  <jas@extundo.com>
76226
76227         * m4/iconvme.m4: New file.
76228
76229 2005-02-23  Jim Meyering  <jim@meyering.net>
76230
76231         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
76232         change.
76233         Thanks to Bruno Haible for catching it.
76234
76235 2005-02-22  Simon Josefsson  <jas@extundo.com>
76236
76237         * modules/iconvme: New file.
76238
76239         * MODULES.html.sh: Add iconvme.
76240
76241 2005-02-22  Simon Josefsson  <jas@extundo.com>
76242
76243         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
76244
76245 2005-02-22  Simon Josefsson  <jas@extundo.com>
76246
76247         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
76248
76249 2005-02-22  Jim Meyering  <jim@meyering.net>
76250
76251         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
76252         s/ifndef/ifdef/.
76253
76254 2005-02-20  Neil Conway  <neilc@samurai.com>
76255
76256         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
76257         returned by OSX/Darwin if the specified buffer is not large
76258         enough for the hostname.
76259
76260 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76261
76262         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
76263         pass it to _help, otherwise the latter coredumps trying to
76264         dereference state.root_argp.
76265
76266 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
76267
76268         * modules/chdir-long (Depends-on): Add memrchr.
76269         * modules/memrchr (Files): Add lib/memrchr.h.
76270         (Include): "memrchr.h".
76271
76272 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
76273
76274         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
76275
76276 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
76277
76278         * lib/memrchr.h: New file.
76279         * lib/chdir-long.c: Include it.
76280         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
76281         Don't bother including stddef.h.
76282
76283 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
76284
76285         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
76286         inclusion.
76287         Include <sys/types.h>, for dev_t.
76288         (ME_DUMMY, ME_REMOTE): Move from here....
76289         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
76290         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
76291         Dmitry V. Levin.
76292         Include mountlist.h first, to test the interface.
76293
76294 2005-01-29  Bruno Haible  <bruno@clisp.org>
76295
76296         * lib/progname.c (program_name): Initialize.
76297         Needed when linking statically on MacOS X.
76298
76299 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
76300
76301         Sync from coreutils.
76302         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
76303         (Depends-on): Add c-strtod.
76304         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
76305
76306 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
76307
76308         Sync from coreutils.
76309         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
76310
76311         Remove files that are specific to coreutils.
76312         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
76313
76314 2005-01-28  Bruno Haible  <bruno@clisp.org>
76315
76316         * modules/javacomp: New file.
76317         * MODULES.html.sh (Java): Add javacomp.
76318
76319 2005-01-28  Bruno Haible  <bruno@clisp.org>
76320
76321         * m4/javacomp.m4: New file, from GNU gettext.
76322
76323 2005-01-28  Bruno Haible  <bruno@clisp.org>
76324
76325         * lib/javacomp.sh.in: New file, from GNU gettext.
76326         * lib/javacomp.h: New file, from GNU gettext.
76327         * lib/javacomp.c: New file, from GNU gettext.
76328
76329 2005-01-26  Simon Josefsson  <jas@extundo.com>
76330
76331         * lib/gai_strerror.c: Use GPL in header.
76332
76333 2005-01-26  Bruno Haible  <bruno@clisp.org>
76334
76335         * modules/javaexec: New file.
76336         * MODULES.html.sh (Java): Add javaexec.
76337
76338 2005-01-26  Bruno Haible  <bruno@clisp.org>
76339
76340         * m4/javaexec.m4: New file, from GNU gettext.
76341
76342 2005-01-26  Bruno Haible  <bruno@clisp.org>
76343
76344         * lib/javaexec.sh.in: New file, from GNU gettext.
76345         * lib/javaexec.h: New file, from GNU gettext.
76346         * lib/javaexec.c: New file, from GNU gettext.
76347
76348 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76349
76350         * modules/lchown (Depends-on): Remove lchown.h
76351
76352 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76353
76354         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
76355         must be defined if the header file was not found, in order
76356         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
76357
76358 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76359
76360         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
76361         initializers for struct pentry_state.
76362         (__argp_error): Check return value of __asprintf
76363         (__argp_failure): Translate error message
76364
76365         * lib/argp-parse.c: Removed braces around the expansion of N_()
76366
76367 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
76368
76369         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
76370         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
76371         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
76372         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
76373         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
76374         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
76375         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
76376         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
76377         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
76378         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
76379         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
76380         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
76381         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
76382         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
76383         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
76384         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
76385         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
76386         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
76387         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
76388         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
76389         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
76390         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
76391         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
76392         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
76393         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
76394         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
76395         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
76396         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
76397         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
76398         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
76399         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
76400         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
76401         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
76402         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
76403         xstrtol.m4, xstrtoumax.m4, yesno.m4:
76404         Use an all-permissive copyright notice, recommended by RMS.
76405
76406 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
76407
76408         * modules/chdir-long (Depends-on): Remove mempcpy.
76409
76410 2005-01-21  Jim Meyering  <jim@meyering.net>
76411
76412         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
76413         same value as for Solaris 9.
76414
76415         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
76416         component length.  This included changing the parameter to be
76417         of type `char *' rather than `char const *'.
76418         * lib/chdir-long.h (chdir_long): Update prototype.
76419
76420         * lib/openat.c (fdopendir, fstatat): New functions.
76421         * lib/openat.h: Include headers required for use of DIR and struct
76422         stat.
76423         [AT_SYMLINK_NOFOLLOW]: Define.
76424         (fdopendir, fstatat): Add prototypes.
76425
76426 2005-01-21  Bruno Haible  <bruno@clisp.org>
76427
76428         * modules/classpath: New file.
76429         * MODULES.html.sh (Java): Add classpath.
76430
76431 2005-01-21  Bruno Haible  <bruno@clisp.org>
76432
76433         * lib/classpath.h: New file, from GNU gettext.
76434         * lib/classpath.c: New file, from GNU gettext.
76435
76436 2005-01-20  Simon Josefsson  <jas@extundo.com>
76437
76438         * modules/version-etc-fsf: New file.
76439
76440 2005-01-20  Simon Josefsson  <jas@extundo.com>
76441
76442         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
76443         * lib/version-etc.c: Remove version_etc_copyright.
76444         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
76445         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
76446
76447 2005-01-20  Simon Josefsson  <jas@extundo.com>
76448
76449         * lib/base64.h (isbase64): Add.
76450
76451         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
76452         using a unsigned prototype, don't inline.
76453         (base64_decode): Use it.
76454
76455 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
76456
76457         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
76458         it.
76459
76460 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
76461
76462         * lib/save-cwd.c (save_cwd): Remove code to support the case
76463         where fchdir is missing or flaky.
76464
76465 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
76466
76467         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
76468
76469 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
76470
76471         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
76472         AC_LIBSOURCES now does this.
76473         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
76474         with new ullong_max module.
76475
76476 2005-01-19  Bruno Haible  <bruno@clisp.org>
76477
76478         * modules/sh-quote: New file.
76479         * MODULES.html.sh (Executing programs): Add sh-quote.
76480
76481 2005-01-19  Bruno Haible  <bruno@clisp.org>
76482
76483         * lib/sh-quote.h: New file, from GNU gettext.
76484         * lib/sh-quote.c: New file, from GNU gettext.
76485
76486 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
76487
76488         Merge from coreutils.
76489         * m4/ullong_max.m4: New file.
76490         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
76491         (gl_MACROS): Assume localeconv exists.
76492
76493 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
76494
76495         Merge changes from coreutils, as described below in several
76496         changelogs dated today.
76497
76498         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
76499         (O_DIRECTORY): Remove; not needed here, since "." must be
76500         a directory.  All uses removed.
76501         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
76502         universal on Suns, and we also need to test for IRIX.
76503         Revamp code to use 'if' rather than '#if'.
76504         Avoid unnecessary comparison of cwd->desc to 0.
76505
76506         * lib/utimens.c (futimens): Robustify the previous patch, by checking
76507         for known valid error numbers rather than observed invalid ones.
76508
76509 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
76510
76511         * modules/ullong_max: New file.
76512
76513         * modules/chdir-long, modules/openat: New files.
76514         * modules/save-cwd (Depends-on): Depend on chdir-long.
76515         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
76516
76517 2005-01-18  Jim Meyering  <jim@meyering.net>
76518
76519         Merge from coreutils.
76520         * m4/chdir-long.m4, m4/openat.m4: New files.
76521         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
76522         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
76523         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
76524         is sane and DOES follow symlinks.  Besides, testing 20 different
76525         systems found no broken chown implementations.
76526         Prompted by a change in rsync's copy of this macro.
76527         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
76528
76529         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
76530
76531         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
76532         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
76533         NULL-means-set-to-current-time semantics.
76534         Remove temporary file immediately, rather than waiting
76535         for configure's at-exit trap code to do it.
76536
76537 2005-01-18  Jim Meyering  <jim@meyering.net>
76538
76539         * lib/version-etc.c (version_etc_copyright): Update copyright date.
76540
76541         * lib/utimens.c (futimens): Account for the fact that futimes
76542         can also fail with errno == ENOSYS or errno == ENOENT.
76543         Patch from Dmitry V. Levin.
76544
76545         Change the name of the robust chdir function from chdir to chdir_long.
76546         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
76547         (restore_cwd): Use chdir_long, not chdir.
76548         * lib/chdir-long.c: Renamed from chdir.c.
76549         * lib/chdir-long.h: Renamed from chdir.h.
76550         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
76551         Hurd.
76552
76553 2005-01-18  Bruno Haible  <bruno@clisp.org>
76554
76555         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
76556         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
76557         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
76558         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
76559         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
76560         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
76561         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
76562         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
76563         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
76564         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
76565         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
76566         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
76567         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
76568         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
76569         Use an all-permissive copyright notice, recommended by RMS.
76570
76571 2005-01-18  Bob Proulx  <bob@proulx.com>
76572
76573         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
76574         simplify offsetof() macro construct to avoid compile failure with
76575         native HP-UX 11.0 ANSI C compiler.
76576
76577 2005-01-17  Bruno Haible  <bruno@clisp.org>
76578
76579         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
76580         redundant because stpncpy.m4 takes care of it.
76581
76582 2005-01-17  Bruno Haible  <bruno@clisp.org>
76583
76584         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
76585
76586 2005-01-17  Bruno Haible  <bruno@clisp.org>
76587
76588         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
76589         used.
76590
76591 2005-01-17  Bruno Haible  <bruno@clisp.org>
76592
76593         * lib/fwriteerror.h (fwriteerror): Change specification to include
76594         fclose.
76595         * lib/fwriteerror.c: Include <stdbool.h>.
76596         (fwriteerror): At the end, close the file stream. Record whether
76597         stdout was already closed.
76598
76599 2005-01-17  Bruno Haible  <bruno@clisp.org>
76600
76601         * lib/execute.c (environ): Declare if needed.
76602         * lib/pipe.c (environ): Likewise.
76603         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
76604
76605 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76606
76607         * modules/argp: Depend on vsnprintf
76608
76609 2005-01-10  Jim Meyering  <jim@meyering.net>
76610
76611         * modules/closeout (Depends-on): Add atexit.
76612
76613 2005-01-06  Bruno Haible  <bruno@clisp.org>
76614
76615         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
76616
76617 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76618
76619         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
76620         definitions to be after all include files, to avoid collisions.
76621         Problem reported by Bob Proulx.
76622
76623 2005-01-04  Jim Meyering  <jim@meyering.net>
76624
76625         Changes imported from coreutils.
76626         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
76627         as the mkstemp template, use a temporary directory and an
76628         8.3-friendly template to avoid trouble on systems like DJGPP.
76629         Reported by Juan M. Guerrero via Stepan Kasal.
76630         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
76631         close. Remove the temporary directory right away, rather than waiting
76632         for configure's at-exit trap code to do it.
76633         Suggestion from Stepan Kasal.
76634
76635 2005-01-01  Simon Josefsson  <jas@extundo.com>
76636
76637         * gnulib-tool: Print #include directives when --import'ing.
76638
76639 2004-12-28  Simon Josefsson  <jas@extundo.com>
76640
76641         * tests/test-base64.c: Include required header files.  Remove
76642         unused variables.
76643
76644 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
76645
76646         * modules/error (Depends-on): Remove gettext.
76647
76648 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
76649
76650         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
76651         not needed.  This removes a dependency on the gettext module.
76652         [defined _LIBC]: Do not include <libintl.h>; not needed.
76653
76654 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
76655
76656         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
76657         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
76658
76659 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
76660
76661         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
76662         HAVE_DECL_STRTOLD.
76663
76664 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76665
76666         * modules/getdate (Depends-on): Remove alloca-opt.
76667
76668 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76669
76670         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
76671
76672 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76673
76674         * lib/argp-parse.c: Include <stddef.h>.
76675         (alignof, alignto): New macros.
76676         (parser_init): Don't assume that void * is aligned sufficiently
76677         for struct option.
76678
76679         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
76680         need to extend the stack.
76681         (YYINITDEPTH): New macro, so that the initial stack isn't overly
76682         large.
76683
76684 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76685
76686         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
76687
76688 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
76689
76690         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
76691         (2004-10-24) change.  Apparently this was a false alarm.
76692
76693         * modules/getdate: Depend on alloca-opt, not alloca.
76694
76695 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
76696
76697         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
76698         Remove now-obsolete comment about AIX.
76699         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
76700         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
76701         (YYMAXDEPTH): New macro.
76702
76703 2004-12-18  Simon Josefsson  <jas@extundo.com>
76704
76705         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
76706
76707 2004-12-18  Bruno Haible  <bruno@clisp.org>
76708
76709         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
76710
76711 2004-12-18  Bruno Haible  <bruno@clisp.org>
76712
76713         * lib/fatal-signal.c (fatal_signals): Make non-const.
76714         (init_fatal_signals): New function.
76715         (uninstall_handlers, install_handlers): Ignore signals that were set to
76716         SIG_IGN.
76717         (at_fatal_signal): Call init_fatal_signals.
76718         (init_fatal_signal_set): Likewise. Ignore signals that were set to
76719         SIG_IGN.
76720         Reported by Paul Eggert.
76721
76722 2004-12-18  Bruno Haible  <bruno@clisp.org>
76723
76724         * doc/alloca.texi: New file.
76725         * doc/alloca-opt.texi: New file.
76726
76727 2004-12-17  Jim Meyering  <jim@meyering.net>
76728
76729         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
76730         Otherwise, install-sh could exit with improper exit status when
76731         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
76732
76733 2004-12-16  Simon Josefsson  <jas@extundo.com>
76734
76735         * tests/test-base64.c: Add license.
76736
76737 2004-12-15  Stepan Kasal  <address@hidden>
76738
76739         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
76740
76741 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
76742
76743         * modules/getcwd (Files): Add m4/d-ino.m4.
76744         Suggested by Mark D. Baushke.
76745
76746 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
76747
76748         * lib/getdate.y (textint): New member "negative".
76749         (time_zone_hhmm): New function.
76750         Expect 14 shift-reduce conflicts, not 13.
76751         (o_colon_minutes): New rule.
76752         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
76753         (yylex): Set the "negative" member of signed numbers.
76754
76755 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
76756
76757         * doc/getdate.texi (Time of day items, Time zone items):
76758         Describe new formats +00:00, UTC+00:00.
76759
76760 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
76761
76762         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
76763         spurious "-l"s.  Problem reported by Stepan Kasal.
76764
76765 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
76766
76767         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
76768         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
76769
76770 2004-12-04  Simon Josefsson  <jas@extundo.com>
76771
76772         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
76773         Vandoorselaere <yoann@prelude-ids.org>.
76774
76775 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
76776
76777         Changes imported from coreutils.
76778         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
76779         exist.
76780         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
76781
76782 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
76783
76784         Changes imported from coreutils.
76785         * lib/hard-locale.c: Assume <locale.h> exists.
76786         Include "strdup.h".
76787         (GLIBC_VERSION): New macro.
76788         (hard_locale): Assume setlocale exists.
76789         Rewrite to avoid #ifdef.
76790         Use strdup rather than malloc + strcpy.
76791         * lib/human.c: Assume <locale.h> exists.
76792         (human_readable): Assume localeconv exists.
76793
76794 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
76795
76796         * modules/hard-locale (Depends-on): Add strdup.
76797
76798 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
76799
76800         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
76801         convert T2, not T.  (Imported from libc.)
76802
76803 2004-11-30  Simon Josefsson  <jas@extundo.com>
76804
76805         * modules/restrict (License): Change to LGPL.
76806
76807 2004-11-30  Simon Josefsson  <jas@extundo.com>
76808
76809         * m4/restrict.m4: Add copyright and copying conditions.
76810
76811 2004-11-30  Simon Josefsson  <jas@extundo.com>
76812
76813         * m4/base64.m4: New file.
76814
76815 2004-11-30  Simon Josefsson  <jas@extundo.com>
76816
76817         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
76818         base64.
76819
76820         * tests/test-base64.c: New file.
76821
76822         * modules/base64: New file.
76823
76824 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
76825
76826         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
76827         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
76828
76829         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
76830
76831 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
76832
76833         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
76834         (__getcwd.c): Don't restore errno; glibc doesn't.
76835         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
76836         first, falling back to our code only if its results look suspicious.
76837         Ensure that the resulting buffer is only as large as necessary.
76838
76839         * lib/readutmp.c: Include readutmp.h first.
76840         Include <errno.h>, since readutmp.h no longer does that.
76841         * lib/readutmp.h: Don't include <errno.h>,
76842         <sys/param.h>, <time.h>; not needed to establish interface.
76843         (errno): Remove decl.
76844         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
76845         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
76846         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
76847
76848 2004-11-28  Simon Josefsson  <jas@extundo.com>
76849
76850         * lib/base64.h, base64.c: New file.
76851
76852 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
76853
76854         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
76855
76856 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
76857
76858         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
76859         (Depends-on): Remove pathmax, same.  Add mempcpy.
76860         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
76861         (Makefile.am): Append getcwd.h to lib_SOURCES.
76862         (Include): Add getcwd.h.
76863         (Maintainer): Change from Jim Meyering to "all, glibc",
76864         since getdate now uses intended-for-glibc code.
76865         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
76866         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
76867
76868 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
76869
76870         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
76871         HP's ANSI C compiler.
76872         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
76873         Declaring int functions causes warnings on some modern systems and
76874         shouldn't be needed to compile on ancient ones.
76875         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
76876         defined.
76877
76878         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
76879         with the following changes.
76880         (__set_errno): Parenthesize properly.
76881         Include <stdbool.h>.
76882         (MIN, MAX, MATCHING_INO): New macros.
76883         (__getcwd): Define with prototype, not K&R form.
76884         Use heuristics to allocate default buffer on stack if possible.
76885         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
76886         behavior, and to avoid the PATH_MAX limit when computing
76887         ../../../../...
76888         Use MATCHING_INO to compare inode number to file.
76889         Check for arithmetic overflow in size calculations.
76890         Fix bug in reallocation of dot array that caused getcwd to fail
76891         on directories nested deeper than 75.
76892         Be more careful about saving errno on error.
76893         Do not use realloc; use only free+malloc, as this is a bit
76894         more flexible and avoids a needless copy operation.
76895         Do not inspect st_dev and st_ino for symbolic links; POSIX
76896         doesn't specify the latter.
76897         Check for closedir errors.
76898         Avoid needless casts.
76899         Use "#ifdef weak_alias" around weak_alias, to be like other
76900         glibc code.
76901         The following changes to getcwd.c have effect only when used in
76902         gnulib; they have no effect inside glibc proper.
76903         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
76904         as alloca isn't used.
76905         (alloca, __alloca): Likewise.
76906         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
76907         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
76908         unconditionally, as gnulib assumes C89 or better.
76909         Do not include <sys/param.h>.
76910         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
76911         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
76912         better.
76913         (NULL) [!defined NULL]: Remove; we assume C89 or better.
76914         Include <dirent.h> in a way that is compatible with modern Autoconf.
76915         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
76916         New macros, if not already defined.
76917         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
76918         Use "_LIBC", not "defined _LIBC", for consistency.
76919         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
76920         a mempcpy module.
76921         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
76922         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
76923         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
76924         credit only to Jim Meyering and adjust the copyright dates.
76925         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
76926         <stdlib.h>, <unistd.h>, "pathmax.h".
76927         Instead, include "xgetcwd.h" (first) and "getcwd.h".
76928         (INITIAL_BUFFER_SIZE): Remove.
76929         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
76930
76931 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
76932
76933         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
76934         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
76935         Use the _ONCE methods, for efficiency.
76936         Check for fcntl.h.  In test program, include <errno.h>
76937         and <fcntl.h> if available.  Remove old K&R cruft from
76938         test program.  Check for common errors in GNU/Linux,
76939         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
76940         don't do AC_LIBOBJ, as that's getcwd.m4's job.
76941         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
76942         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
76943         name accordingly.
76944         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
76945         accommodate new getcwd.c.
76946         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
76947         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
76948         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
76949         that's all we need now.
76950
76951 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76952
76953         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
76954         argp-parse.c depends on getopt internals, that means we should
76955         always use our getopt, to be on the safe side.
76956         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
76957         order not to spoil the result of an eventual previous invocation
76958         of gl_GETOPT_SUBSTITUTE.
76959
76960 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76961
76962         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
76963         redefinition warnings. To avoid them, include the defines
76964         in `#if !defined __need_getopt ... #endif'. The only place
76965         where __getopt_argv_const is used is in definitions
76966         of getopt_long and getopt_long_only below, which are as well
76967         protected by `#ifndef __need_getopt'.
76968         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
76969         __need_getopt after including <stdio.h> and <unistd.h> These
76970         headers might have defined it.
76971
76972 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
76973
76974         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
76975
76976 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
76977
76978         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
76979         (futimens): New function, which uses futimes if available.
76980         (futimens, utimens): Support timespec==NULL, with same semantics
76981         as utime and utimens.
76982         * lib/utimens.h (futimens): New decl.
76983
76984 2004-11-23  Jim Meyering  <jim@meyering.net>
76985
76986         * lib/getopt_.h: Remove trailing blanks.
76987
76988 2004-11-23  Jim Meyering  <jim@meyering.net>
76989
76990         * lib/__fpending.c: Add comment.
76991
76992 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
76993
76994         * modules/canonicalize (Depends-on): Add xreadlink.
76995         Problem reported by James Youngman.
76996
76997 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
76998
76999         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
77000         New macros.
77001         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
77002         optopt): Use them instead of invoking ## directly; otherwise, the
77003         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
77004
77005 2004-11-19  Bruno Haible  <bruno@clisp.org>
77006
77007         * lib/strtok_r.c: Move comments from here...
77008         * lib/strtok_r.h: ... to here.
77009
77010 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77011
77012         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
77013         implementations that mishandle size_t overflow.
77014
77015 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77016
77017         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
77018         might fail.  Problem reported by Yoann Vandoorselaere.
77019         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
77020         implementations that mishandle size_t overflow.
77021
77022 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77023
77024         * modules/canon-host (Depends-on): Add strdup.
77025
77026 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77027
77028         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
77029
77030 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77031
77032         * lib/canon-host.c: Include "strdup.h".
77033         (canon_host): Use getaddrinfo if available, so that IPv6 works.
77034         Use strdup instead of malloc/strcpy to duplicate strings.
77035
77036         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
77037         (human_space_before_unit): New constant.
77038         * lib/human.c (human_readable): Support it.
77039
77040         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
77041         (xgetcwd): Set errno correctly when failing.
77042         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
77043         the failure is actually due to a PATH_MAX problem.
77044
77045         Further getopt changes to make it more likely that glibc will
77046         buy the changes back.
77047         * lib/getopt.c (POSIXLY_CORRECT): New constant.
77048         (getopt): Use it, so to preserve glibc semantic
77049         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
77050         when compiling for libc.
77051         * lib/getopt_.h (__getopt_argv_const): Bring it back.
77052         (getopt_long, getopt_long_only): Use it.
77053
77054         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
77055         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
77056         (getopt): Argv is now char * const *, as per standard.
77057         (_getopt_internal_r, _getopt_internal): Argv is now char **,
77058         not char *__getopt_argv_const *.
77059         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
77060         _getopt_long_only_r): Likewise.
77061         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
77062         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
77063         _getopt_long_r, _getopt_long_only_r): Likewise.
77064         * lib/getopt_.h (__getopt_argv_const): Remove.
77065         (getopt): Argv is now char * const *, as per standard.
77066
77067         * lib/getdate.y (tORDINAL): New token.
77068         (day, relunit): Allow it for relative times.
77069         (relative_time_table): Use tORDINAL for ordinals.
77070
77071 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77072
77073         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
77074         Document that "second" isn't allowed as an ordinal number.
77075
77076 2004-11-16  Jim Meyering  <jim@meyering.net>
77077
77078         * modules/closeout (Depends-on): Add fpending.
77079
77080 2004-11-15  Jim Meyering  <jim@meyering.net>
77081
77082         * lib/closeout.c: Include "__fpending.h" once again.
77083         Include <stdbool.h>.
77084         (close_stdout): Don't fail just because stdout was closed initially,
77085         since some programs don't write to stdout in the normal course of
77086         operation (other than --version and --help), and we don't want this
77087         function to make e.g. `touch file >&-' fail.
77088         But do fail if it was closed and someone has tried to write to it.
77089         E.g., `printf foo >&-' must fail.
77090
77091 2004-11-13  Jim Meyering  <jim@meyering.net>
77092
77093         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
77094
77095 2004-11-12  Simon Josefsson  <jas@extundo.com>
77096
77097         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
77098         small doc fix is still pending.
77099
77100 2004-11-11  Simon Josefsson  <jas@extundo.com>
77101
77102         * modules/strtok_r: New file.
77103
77104         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77105         strtok_r.
77106
77107 2004-11-11  Simon Josefsson  <jas@extundo.com>
77108
77109         * m4/strtok_r.m4: New file.
77110
77111         * m4/getopt.m4: Replace opterr.
77112
77113 2004-11-11  Simon Josefsson  <jas@extundo.com>
77114
77115         * lib/strtok_r.h, strtok_r.c: New file.
77116
77117 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
77118
77119         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
77120         of replacing opterr, getopt, etc.  This should handle the
77121         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
77122
77123 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
77124
77125         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
77126         we can stop lying to compilers about the constness of argv when we
77127         are compiled outside glibc.
77128         (getopt, getopt_long, getopt_long_only): Use it.
77129         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
77130         _getopt_internal, getopt): Likewise.
77131         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
77132         _getopt_long_only_r): Likewise.
77133         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
77134         _getopt_long_r, _getopt_long_only_r): Likewise.
77135
77136         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
77137         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
77138         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
77139         the other external symbols.
77140         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
77141         declaration, since the above renaming now works around collisions.
77142
77143 2004-11-11  Jim Meyering  <jim@meyering.net>
77144
77145         * lib/linebreak.c: Remove trailing blanks.
77146         * lib/alloca_.h: Likewise.
77147         * lib/acosl.c: Likewise.
77148         * lib/euidaccess.c: Likewise.
77149         * lib/allocsa.h: Likewise.
77150
77151 2004-11-10  Simon Josefsson  <jas@extundo.com>
77152
77153         * m4/getaddrinfo.m4: New file.
77154
77155 2004-11-10  Simon Josefsson  <jas@extundo.com>
77156
77157         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
77158
77159 2004-11-10  Simon Josefsson  <jas@extundo.com>
77160
77161         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77162         getaddrinfo.
77163
77164         * modules/getaddrinfo: New file.
77165
77166 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77167
77168         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
77169
77170 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77171
77172         * lib/mktime.c (SHR): New macro, which is a portable
77173         substitute for >> that should work even on Crays.
77174         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
77175         Problem reported by Mark D. Baushke in
77176         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
77177         * lib/getdate.y (SHR): Likewise.
77178         (tm_diff): Use it.
77179         * lib/strftime.c (SHR): Likewise.
77180         (tm_diff): Use it.
77181         * lib/quotearg.c (struct quoting_options): Use unsigned int for
77182         quote_these_too, so that right shifts are well defined.  All uses
77183         changed.
77184
77185 2004-11-10  Jim Meyering  <jim@meyering.net>
77186
77187         Ensure that no close failure goes unreported.
77188         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
77189         return early when it seems there's nothing to flush.
77190         Don't include __fpending.h.
77191
77192 2004-11-10  Jim Meyering  <jim@meyering.net>
77193
77194         * modules/closeout (Depends-on): Remove fpending.
77195
77196 2004-11-10  Jim Meyering  <jim@meyering.net>
77197
77198         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
77199
77200 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77201
77202         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
77203         gl_FUNC_STRFTIME.
77204         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
77205         and AC_REQUIRE when possible, to avoid duplicate checks.
77206         Check for <wchar.h>.
77207
77208 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77209
77210         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
77211
77212 2004-11-09  Bruno Haible  <bruno@clisp.org>
77213
77214         * m4/sockpfaf.m4: New file.
77215
77216 2004-11-05  Bruno Haible  <bruno@clisp.org>
77217
77218         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
77219         Reported by Mark D. Baushke <mdb@cvshome.org>.
77220
77221 2004-11-04  Bruno Haible  <bruno@clisp.org>
77222
77223         2004-09-11  Bruno Haible  <bruno@clisp.org>
77224                 * allocsa.valgrind: New file.
77225         2004-02-06  Bruno Haible  <bruno@clisp.org>
77226                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
77227                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
77228                 Reported by Christopher Seip <chris.seip@hp.com>.
77229
77230 2004-11-04  Bruno Haible  <bruno@clisp.org>
77231
77232         * modules/allocsa (Files): Add lib/allocsa.valgrind.
77233         (Makefile.am): Distribute it.
77234
77235 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
77236
77237         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
77238         with errno == ERANGE if the buffer is too small.
77239         Problem reported by Mark D. Baushke.
77240
77241 2004-11-03  Albert Chin  <china@thewrittenword.com>
77242             Paul Eggert  <eggert@cs.ucla.edu>
77243
77244         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
77245         equivalent, substitute $ac_type for equivalent type rather than
77246         blindly using uint32_t *always* which won't work if uint32_t is not
77247         available.  Define _UINT32_T to work around typedef of uint32_t if
77248         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
77249         2.5.1.
77250
77251 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77252
77253         * m4/jm-macros.m4: Sync from coreutils.
77254         (gl_MACROS): Check for mbrlen, for pathchk.
77255         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
77256
77257 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77258
77259         * lib/xreadlink.c (MAXSIZE): New macro.
77260         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
77261         size does not exceed MAXSIZE.  Avoid cast.
77262         As suggested by Mark D. Baushke in
77263         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
77264         if readlink fails with buffer size just under MAXSIZE, try again
77265         with MAXSIZE.
77266
77267 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77268
77269         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
77270
77271 2004-11-02  Derek R. Price  <derek@ximbiot.com>
77272         and  Paul Eggert  <eggert@cs.ucla.edu>
77273
77274         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
77275         (get_date): Overparenthesize to avoid GCC warning.
77276
77277 2004-11-02  Bruno Haible  <bruno@clisp.org>
77278
77279         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
77280         returns void.
77281
77282 2004-11-02  Bruno Haible  <bruno@clisp.org>
77283
77284         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
77285         function returns void.
77286
77287 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
77288
77289         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
77290         fflush_unlocked, flockfile, funlockfile, funlockfile,
77291         fputs_unlocked, putc_unlocked.
77292
77293 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
77294
77295         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
77296         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
77297         already declared.
77298
77299 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77300
77301         * modules/getdate (Files): Add doc/getdate.texi.
77302         (Depends-on): Add setenv, xalloc.
77303
77304 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77305
77306         * lib/getdate.y: Add support for TZ="foo" within a date string.
77307         Fix some bugs near time_t boundaries.  Reject dates with
77308         out-of-range components, e.g., "Sept 31".
77309         Include <stdlib.h>, "setenv.h", "xalloc.h".
77310         (ISDIGIT_LOCALE): Remove; unused.
77311         Note that the TZ and time functions used here are not reentrant.
77312         (mktime_ok, get_tz): New functions.
77313         (TZBUFSIZE): New constant.
77314         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
77315         This requires that we sometimes generate our own TZ="XXX..." setting.
77316
77317 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77318
77319         * doc/getdate.texi: New file, from coreutils with modifications for
77320         the new TZ parsing.
77321
77322 2004-10-27  Derek R. Price  <derek@ximbiot.com>
77323
77324         * lib/mktime.c (not_equal_tm): Remove redundant check.
77325
77326 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77327
77328         * modules/regex (lib_SOURCES): Add regex.c.
77329         Reported by James Youngman in
77330         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
77331
77332 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77333
77334         * lib/getdate.y: Use Bison 1.875 features, and some minor
77335         code cleanups.  This change does not affect semantics.
77336         Don't include <stdlib.h>; no longer needed.
77337         Don't include unlocked-io.h; only the "#if TEST" code uses
77338         stdio, and performance isn't crucial there.
77339         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
77340         Bison 1.875 features as described below.
77341         All uses of "PC." replaced by "pc->".
77342         (YYSTYPE): Add a forward declaration.
77343         (yylex, yyerror): Use full prototypes in forward decls.
77344         Use "%pure-parser" rather than obsolescent "%pure_parser".
77345         Use %parse-param and %lex-param instead of obsolescent
77346         YYPARSE_PARAM and YYLEX_PARAM.
77347         (meridian_table, month_and_day_table, time_units_table,
77348         relative_time_table, time_zone_table, military_table,
77349         lookup_zone, lookup_word, get_date):
77350         Use NULL instead of 0 where appropriate.
77351         (to_hour): Avoid abort (), to avoid a dependency on
77352         stdlib.h.
77353         (yyerror, yylex): Now accepts parser_control * arg.
77354         (main) [TEST]: Use '\0' rather than 0 for char.
77355
77356 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
77357
77358         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
77359
77360 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
77361
77362         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
77363         It's now the caller's responsibility to handle the case where
77364         !HAVE_GETPAGESIZE && !defined getpagesize.
77365
77366         * lib/mktime.c (leapyear): Arg is long int, not int.
77367
77368 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
77369
77370         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
77371
77372 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
77373
77374         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
77375         missing.  Problem reported by James Youngman.
77376
77377 2004-10-16  Simon Josefsson  <jas@extundo.com>
77378
77379         * gnulib-tool: Fix comments.  Fix parse problem.
77380         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
77381
77382 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
77383
77384         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
77385         implementation of getopt_long.  Problem reported by Alexander Taler in:
77386         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
77387
77388 2004-10-15  Bruno Haible  <bruno@clisp.org>
77389
77390         * gnulib-tool: Untabify. Initialize supplied_libname.
77391         (func_usage): More homogenous output.
77392         (func_modules_transitive_closure, func_modules_to_filelist,
77393         func_emit_lib_Makefile_am): New functions.
77394         (func_import): New function, extracted from big case statement. Use
77395         func_get_license, func_modules_transitive_closure,
77396         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
77397         opt_lgpl. Don't use test -a, as it's not portable.
77398         (func_create_testdir): Use func_modules_transitive_closure,
77399         func_modules_to_filelist, func_emit_lib_Makefile_am.
77400
77401 2004-10-15  Bruno Haible  <bruno@clisp.org>
77402
77403         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
77404
77405 2004-10-15  Bruno Haible  <bruno@clisp.org>
77406
77407         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
77408         the portions belonging to each module.
77409         Suggested by Derek Robert Price <derek@ximbiot.com>.
77410
77411 2004-10-12  Simon Josefsson  <jas@extundo.com>
77412
77413         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
77414         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
77415         to real functions.
77416
77417 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77418
77419         * modules/vsnprintf: New file.
77420
77421 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77422
77423         * m4/vsnprintf.m4: New file.
77424
77425 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77426
77427         * lib/vsnprintf.h: New file.
77428         * lib/vsnprintf.c: New file.
77429
77430 2004-10-11  Bruno Haible  <bruno@clisp.org>
77431
77432         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
77433         vsnprintf.
77434
77435 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
77436
77437         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
77438
77439 2004-10-07  Bruno Haible  <bruno@clisp.org>
77440
77441         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
77442         fits into the provided buffer.
77443
77444 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
77445
77446         * lib/diacrit.c, diacrit.h: Add GPL notice.
77447
77448         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
77449         notice.
77450         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
77451         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
77452         This avoids a potential constant-folding bug.
77453
77454 2004-10-05  Bruno Haible  <bruno@clisp.org>
77455
77456         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
77457         for the declaration of strsep.
77458
77459 2004-10-05  Bruno Haible  <bruno@clisp.org>
77460
77461         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
77462
77463 2004-10-04  Simon Josefsson  <jas@extundo.com>
77464
77465         * modules/memmem: New file.
77466         * tests/test-memmem.c: New file.
77467         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
77468
77469 2004-10-04  Simon Josefsson  <jas@extundo.com>
77470
77471         * m4/memmem.m4: New file.
77472
77473 2004-10-04  Simon Josefsson  <jas@extundo.com>
77474
77475         * lib/memmem.h: New file.
77476         * lib/memmem.c: New file, taken from glibc.
77477
77478 2004-10-04  Simon Josefsson  <jas@extundo.com>
77479
77480         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
77481         '#ifdef USE_UNLOCKED_IO'.
77482
77483 2004-10-04  Simon Josefsson  <jas@extundo.com>
77484
77485         * config/srclist.txt: Add memmem from glibc.
77486
77487 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
77488
77489         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
77490
77491         * modules/argmatch, modules/argp, modules/closeout, modules/error,
77492         modules/exclude, modules/getdate, modules/getline,
77493         modules/getndelim2, modules/getpass, modules/getpass-gnu,
77494         modules/getusershell, modules/linebuffer, modules/md5,
77495         modules/mountlist, modules/posixtm, modules/readtokens,
77496         modules/readutmp, modules/regex, modules/sha1,
77497         modules/version-etc, modules/yesno:
77498         Remove dependency on unlocked-io.
77499
77500 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
77501
77502         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
77503
77504         * m4/unlocked-io.m4: Add copyright notice.
77505         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
77506
77507 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
77508
77509         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
77510         * lib/xmalloc.c (xmemdup): Likewise.
77511         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
77512         XFREE): Remove these long-obsolescent macros.
77513         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
77514         * lib/xstrdup.c: Remove.
77515
77516         * lib/regex.c (re_comp): Cast gettext return value to char *,
77517         Problem reported by Martin Neitzel via Mark D. Baushke.
77518
77519 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
77520
77521         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
77522         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
77523         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
77524         regex.c, sha1.c, version-etc.c, yesno.c:
77525         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
77526         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
77527         the includer's responsibility.
77528
77529         Sync from coreutils.
77530
77531         * lib/modechange.c (mode_compile): Don't decrement a pointer that
77532         points to the start of a string, as the C Standard says the
77533         resulting behavior is undefined.
77534
77535         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
77536         simple -> simple_backups, numbered_existing ->
77537         numbered_existing_backups, numbered -> numbered_backups
77538         to avoid shadowing problems.  All uses changed.
77539         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
77540         * lib/backupfile.c (check_extension, numbered_backup):
77541         Rename locals to avoid shadowing 'basename'.
77542         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
77543         once.
77544
77545         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
77546         * lib/.cvsignore: Add getopt.h.
77547
77548 2004-10-04  Bruno Haible  <bruno@clisp.org>
77549
77550         * modules/README: New file.
77551         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
77552         not a module.
77553
77554 2004-10-02  Jim Meyering  <jim@meyering.net>
77555
77556         * lib/dirfd.h, getpagesize.h: Add copyright notice.
77557
77558 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77559
77560         * modules/strsep: New file.
77561
77562 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77563
77564         * m4/strsep.m4: New file.
77565
77566 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77567
77568         * lib/strsep.h: New file.
77569         * lib/strsep.c: New file.
77570
77571 2004-10-01  Simon Josefsson  <jas@extundo.com>
77572
77573         * lib/snprintf.c (snprintf): Handle size==0.
77574
77575 2004-10-01  Simon Josefsson  <jas@extundo.com>
77576             Bruno Haible  <bruno@clisp.org>
77577
77578         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
77579         (snprintf): Declare 'args'.
77580
77581 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
77582
77583         * lib/snprintf.c: Remove comments as to why each header is needed.
77584
77585 2004-10-01  Bruno Haible  <bruno@clisp.org>
77586
77587         * MODULES.html.sh: Add strsep.
77588
77589 2004-09-30  Simon Josefsson  <jas@extundo.com>
77590
77591         * modules/snprintf: New file.
77592
77593 2004-09-30  Simon Josefsson  <jas@extundo.com>
77594
77595         * m4/snprintf.m4: New file.
77596
77597 2004-09-30  Simon Josefsson  <jas@extundo.com>
77598
77599         * lib/snprintf.h, lib/snprintf.c: New files.
77600
77601 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77602
77603         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
77604         (hol_entry_help): Never translate an empty string.
77605         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
77606         * lib/argp.h (OPTION_NO_TRANS): New option.
77607
77608 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
77609
77610         * modules/argp (Maintainer): Replace Simon Josefsson
77611         by Sergey Poznyakoff.
77612
77613 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
77614
77615         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
77616         changes merged back into glibc.
77617
77618 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
77619
77620         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
77621
77622 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
77623
77624         * lib/xvasprintf.c: Include xalloc.h.
77625         (xvasprintf): Use xalloc_die, not xmalloc_die.
77626
77627 2004-09-29  Bruno Haible  <bruno@clisp.org>
77628
77629         * modules/alloca-opt: New file, derived from modules/alloca.
77630         * modules/allocsa: Depend on alloca-opt instead of alloca.
77631         * modules/setenv: Likewise.
77632         * modules/vasnprintf: Likewise.
77633         * MODULES.html.sh: Add alloca-opt.
77634
77635 2004-09-28  Simon Josefsson  <jas@extundo.com>
77636
77637         * gnulib-tool: New parameter --lgpl, to asseert that modules are
77638         LGPL, and to replace license template from GPL to LGPL.
77639
77640 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
77641
77642         * modules/dummy: Change license to LGPL.
77643
77644 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
77645
77646         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
77647
77648 2004-09-24  Simon Josefsson  <jas@extundo.com>
77649
77650         * modules/minmax (License): Change from GPL to LGPL.
77651
77652 2004-09-23  Simon Josefsson  <jas@extundo.com>
77653
77654         * gnulib-tool (--import): Typo.
77655
77656 2004-09-23  Simon Josefsson  <jas@extundo.com>
77657
77658         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
77659
77660 2004-09-22  Bruno Haible  <bruno@clisp.org>
77661
77662         * modules/*: Add 'License' field.
77663         * gnulib-tool: Accept --extract-license option.
77664         (func_get_license): New function.
77665
77666 2004-09-21  Bruno Haible  <bruno@clisp.org>
77667
77668         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
77669         Reported by Simon Josefsson.
77670
77671 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
77672
77673         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
77674         gl_AC_TYPE_LONG_LONG.
77675
77676 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
77677
77678         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
77679
77680 2004-09-18  Simon Josefsson  <jas@extundo.com>
77681         and  Paul Eggert  <eggert@cs.ucla.edu>
77682
77683         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
77684         calls with autoreconf.  Define GL_LIB.
77685
77686 2004-09-14  Karl Berry  <karl@gnu.org>
77687
77688         * config/srclist.txt: unsync setenv.c, sigh.
77689
77690 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77691
77692         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
77693         Problem reported by Bruno Haible in:
77694         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
77695
77696 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77697
77698         * config/srclist.txt: Comment out argp-pvh.c.
77699
77700 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
77701
77702         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
77703         in case some system header has #define'd it.  Problem reported by
77704         Soeren D. Schulze in
77705         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
77706
77707 2004-09-09  Karl Berry  <karl@gnu.org>
77708
77709         * regex.[ch]: delete from the root.  These were supposed to be
77710                 synced with emacs cvs, but this has not happened for about
77711                 a year, and anyway nothing else uses emacs regex.[ch].
77712                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
77713                 lib/regex[.ch] is untouched.
77714
77715 2004-09-09  Bruno Haible  <bruno@clisp.org>
77716
77717         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
77718
77719 2004-09-09  Bruno Haible  <bruno@clisp.org>
77720
77721         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
77722         modifications.
77723         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
77724
77725 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
77726
77727         * modules/xvasprintf: New file.
77728         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
77729
77730 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
77731
77732         * lib/xvasprintf.h: New file.
77733         * lib/xvasprintf.c: New file.
77734         * lib/xasprintf.c: New file.
77735
77736 2004-09-08  Bruno Haible  <bruno@clisp.org>
77737
77738         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
77739
77740 2004-09-08  Bruno Haible  <bruno@clisp.org>
77741
77742         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
77743         length is > INT_MAX.
77744         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
77745         more.
77746
77747 2004-09-08  Bruno Haible  <bruno@clisp.org>
77748
77749         * lib/stdint_.h: New file, taken from GNU clisp.
77750
77751 2004-09-08  Bruno Haible  <bruno@clisp.org>
77752             Oskar Liljeblad  <oskar@osk.mine.nu>
77753
77754         * modules/stdint: New file.
77755         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
77756
77757 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77758
77759         Import from coreutils.
77760         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
77761         strings on unbounded length.  alloca's performance benefits aren't
77762         that important here.
77763         (V_STRDUP): Remove.
77764         (parse_with_separator): New function, with most of the internals
77765         of the old parse_user_spec.  Allow user to omit both user and group,
77766         for compatibility with FreeBSD.
77767         Clone only the user name, not the entire spec.
77768         Do not set *uid, *gid unless entirely successful.
77769         Avoid memory leak in some failing cases.
77770         Fix regression for USER.GROUP reported by Dmitry V. Levin in
77771         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
77772         (parse_user_spec): Rewrite to use parse_with_separator.
77773
77774 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77775
77776         * modules/userspec: Don't depend on alloca.
77777
77778 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77779
77780         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
77781
77782 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77783
77784         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
77785         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
77786         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
77787
77788 2004-08-16  Simon Josefsson  <jas@extundo.com>
77789
77790         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
77791         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
77792         Add --dry-run for --import.
77793         Let user provided command line parameters override configure.ac
77794         settings.
77795
77796 2004-08-12  Simon Josefsson  <jas@extundo.com>
77797
77798         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
77799         as discussed with Paul Eggert in threads rooted at
77800         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
77801         and
77802         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
77803         Before, the test was empty, and relied on ELIDE_CODE in source
77804         code.)
77805         (gl_PREREQ_GETOPT): New macro.
77806         (gl_GETOPT): Use them.
77807
77808 2004-08-12  Simon Josefsson  <jas@extundo.com>
77809
77810         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
77811         * lib/getopt_.h: Renamed from getopt.h.
77812
77813 2004-08-12  Simon Josefsson  <jas@extundo.com>
77814
77815         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
77816         Change default library name from libfoo to libgnu.
77817         Now, if you have a configure.ac that says:
77818                 gl_SOURCE_BASE(gl)
77819                 gl_M4_BASE(gl/m4)
77820                 gl_MODULES(error getopt etcetera)
77821                 gl_INIT
77822         you can import all you need by running:
77823                 ../gnulib/gnulib-tool --import
77824
77825         * modules/getopt (Files): Rename getopt.h to getopt_.h.
77826         (Makefile.am): Rewrite, use logic from argz.
77827         (Include): Use <getopt.h> instead of "getopt.h".
77828
77829 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
77830
77831         * modules/argp (Files): Add m4/unlocked-io.m4.
77832         (Depends-on): Add extensions.
77833
77834 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
77835
77836         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
77837         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
77838         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
77839         Check for program_invocation_name, program_invocation_short_name,
77840         flockfile, funlockfile, features.h, _getopt_long_only_r.
77841
77842 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
77843
77844         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
77845         its complicated substitute.
77846         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
77847         and program_invocation_name.
77848         (__argp_basename) [!_LIBC]: Remove; the only use was
77849         replaced by its body.
77850         (__argp_short_program_name): Change condition from
77851         !defined __argp_short_program_name to
77852         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
77853         to match argp-namefrob.h.
77854         (__argp_failure): Don't assume strerror_r returns char *.
77855         * lib/argp-parse.c (N_): Define unconditionally.
77856         (argp_default_options): Fill out initializers with 0 to avoid
77857         gcc warnings.
77858
77859 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
77860
77861         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
77862         getopt1.c.
77863
77864 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77865
77866         Merge from coreutils.
77867
77868         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
77869
77870         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
77871         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
77872
77873 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77874
77875         Merge from coreutils.
77876
77877         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
77878         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
77879         for Reliant Unix 5.43.
77880
77881         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
77882         (union fooround): Use uintmax_t, not long int.
77883         The rest is a merge from libc:
77884         [defined _LIBC]: Include <shlib-compat.h>.
77885         (_obstack) [defined _LIBC]: Remove after 2.3.4.
77886
77887         * lib/settime.c (settime): Recode to avoid warning with
77888         Sun Forte C 6U2.
77889
77890         * lib/strverscmp.c: Convert to UTF-8.
77891
77892 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77893
77894         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
77895         m4/uintmax_t.m4.
77896
77897 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77898
77899         * modules/xalloc-die: New file.
77900         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
77901
77902         * modules/md5 (Files): Add m4/uint32_t.m4.
77903         * modules/sha1: Renamed from modules/sha.
77904         (Files):
77905         Rename lib/sha.h to lib/sha1.h.
77906         Rename lib/sha.c to lib/sha1.c.
77907         Rename m4/sha.m4 to m4/sha1.m4.
77908         (lib_SOURCES): Likewise.
77909         (configure.ac): Rename gl_SHA to gl_SHA1.
77910         (Include): sha.h -> sha1.h.
77911
77912 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77913
77914         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
77915         * m4/sha1.m4: Renamed from sha.m4.
77916         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
77917
77918 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77919
77920         * lib/obstack.h (obstack_empty_p):
77921         Don't assume that chunk->contents is suitably aligned.
77922         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
77923         Likewise. Problem reported by Benno in
77924         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
77925
77926         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
77927         readable.  This could be improved further but it'd take some work.
77928
77929 2004-08-08  Simon Josefsson  <jas@extundo.com>
77930
77931         * modules/xgethostname (Depends-on): Remove exit and error (not
77932         used).
77933
77934         * modules/getpass-gnu: Add getpass.h.
77935         (Depends-on): Add stdbool.
77936         * modules/getpass: Add getpass.h.
77937
77938 2004-08-08  Simon Josefsson  <jas@extundo.com>
77939
77940         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
77941         Check getpass declaration.
77942
77943 2004-08-08  Simon Josefsson  <jas@extundo.com>
77944
77945         * lib/xgethostname.c: Don't include error.h (not used).
77946
77947         * lib/getpass.h: Add.
77948         * lib/getpass.c: Include getpass.h first.
77949
77950 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
77951
77952         * lib/xalloc-die.c: New file.
77953         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
77954         All uses removed.
77955         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
77956         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
77957         xalloc-die.c.
77958         (_, N_, xalloc_die): Move to xalloc-die.c.
77959         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
77960         so that we needn't mess with xalloc_msg_memory_exhausted.
77961
77962         * lib/sha1.h: Renamed from sha.h.
77963         (SHA1_H): Renamed from _SHA_H.
77964         (sha1_ctx): Renamed from sha_ctx.
77965         (sha1_init_ctx): Renamed from sha_init_ctx.
77966         (sha1_process_block): Renamed from sha_process_block.
77967         (sha1_process_bytes): Renamed from sha_process_bytes.
77968         (sha1_finish_ctx): Renamed from sha_finish_ctx.
77969         (sha1_read_ctx): Renamed from sha_read_ctx.
77970         (sha1_stream): Renamed from sha_stream.
77971         (sha1_buffer): Renamed from sha_buffer.
77972         * lib/sha1.c: Likewise; renamed from sha.c.
77973         Do not include <sys/types.h>.
77974         Include <stddef.h> rather than <stdlib.h>.
77975
77976 2004-08-08  Bruno Haible  <bruno@clisp.org>
77977
77978         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
77979         FILESYSTEM_PREFIX_LEN.
77980         * lib/progreloc.c: Likewise.
77981         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
77982
77983 2004-08-06  Simon Josefsson  <jas@extundo.com>
77984
77985         * modules/progname (Depends-on): Don't depend on stdbool.
77986
77987 2004-08-06  Simon Josefsson  <jas@extundo.com>
77988
77989         * modules/getsubopt: New file.
77990         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77991         getsubopt.
77992
77993 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
77994
77995         More merge from coreutils.
77996
77997         * m4/utimens.m4, m4/utimecmp.m4: New files.
77998         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
77999         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
78000         prereq.m4, sha.m4: Import changes from coreutils.
78001
78002 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78003
78004         More merge from coreutils.
78005         * modules/raise, modules/readtokens0, modules/utimens:
78006         * modules/utimecmp, module/xnanosleep: New files.
78007         * modules/strftime: Add lib/strftime.h.
78008         Change include from <time.h> to "strftime.h".
78009         * modules/yesno: Add lib/yesno.h.
78010         * modules/backupfile: Remove lib/addext.c.
78011         * modules/euidaccess: Add stat-macros.h.
78012         * modules/canonicalize, modules/euidaccess,
78013         modules/filemode, modules/lchown, modules/makepath,
78014         modules/rmdir, modules/stat: Likewise.
78015
78016 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78017
78018         Merge from tar.
78019         * lib/argp-help.c (make_hol, hol_append): Don't assume that
78020         SIZE_MAX is a valid preprocessor constant.
78021         (__argp_basename): Change from "#ifndef _LIBC"
78022         to "#ifndef __argp_short_program_name", so that
78023         we don't compile these functions for tar.
78024
78025         More merges from coreutils.
78026         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
78027         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
78028         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
78029         * lib/addext.c: Remove; no longer needed.
78030         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
78031         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
78032         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
78033         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
78034         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
78035         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
78036         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
78037         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
78038         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
78039         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78040         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
78041         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
78042         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
78043         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
78044         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
78045         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
78046         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
78047         Import changes from coreutils.
78048
78049 2004-08-05  Simon Josefsson  <jas@extundo.com>
78050
78051         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
78052
78053 2004-08-05  Simon Josefsson  <jas@extundo.com>
78054
78055         * m4/getsubopt.m4: New file.
78056
78057 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78058
78059         Merge from coreutils.
78060
78061         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
78062         * m4/getcwd-path-max.m4: New files.
78063
78064         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
78065         FILESYSTEM_PREFIX_LEN ->
78066         FILE_SYSTEM_PREFIX_LEN.
78067         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
78068         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
78069         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
78070         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
78071
78072         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
78073         prerequisite modules now handle the DOS stuff.
78074         Don't check for unistd.h.
78075
78076 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78077
78078         Merge from coreutils.
78079
78080         * lib/.gdb-history: Remove; this doesn't belong here.
78081
78082         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
78083         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
78084         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
78085         * lib/getcwd.c: New files.
78086
78087         * lib/dirname.h: Include <stdbool.h>.
78088         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
78089         for consistency with POSIX terminology.  All uses changed.
78090         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
78091         (strip_trailing_slashes): Use bool for booleans.
78092         * lib/stripslash.c (strip_trailing_slashes): Likewise.
78093
78094         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
78095         sometimes returns a positive errno value even when it succeeds.
78096         (print_errno_message) [!LIBC]: Fall back on strerror if
78097         __strerror_r fails.
78098
78099         * lib/path-concat.c (mempcpy): Don't define if a system header defines
78100         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
78101         (longest_relative_suffix): New function.
78102         (path_concat): Use it.  Assume first argument is not NULL.
78103         Port to DOS.  Omit redundant separators.
78104         Report an error instead of returning NULL.
78105         Use mempcpy instead of memcpy.
78106         (xpath_concat): Remove: not declared or used.
78107
78108         * lib/same.h: Include <stdbool.h>
78109         (same_name): Return bool, not int.
78110         * lib/same.c (same_name): Likewise.
78111         (errno): Don't declare; we assume C89 or better now.
78112
78113         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
78114         if not already defined.
78115
78116         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
78117         * lib/dup-safer.c (errno): Likewise.
78118
78119 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78120
78121         Merge from coreutils.
78122         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
78123         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
78124         * modules/path-concat: Don't depend on strdup.
78125
78126 2004-08-03  Simon Josefsson  <jas@extundo.com>
78127
78128         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
78129         * lib/progname.h: Don't include stdbool.h.
78130
78131 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78132
78133         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
78134         * MODULES.html.sh (func_all_modules): Remove fatal.
78135
78136 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78137
78138         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
78139
78140 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78141
78142         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
78143         working.
78144
78145 2004-08-02  Simon Josefsson  <jas@extundo.com>
78146
78147         * lib/getsubopt.h: New file, with comments from Bruno Haible.
78148         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
78149         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
78150
78151 2004-08-01  Simon Josefsson  <jas@extundo.com>
78152
78153         * lib/xgetdomainname.c: Include stdlib.h, for free().
78154
78155 2004-07-19  Bruno Haible  <bruno@clisp.org>
78156
78157         * MODULES.html.sh (func_all_modules): Add dummy.
78158
78159 2004-07-16  Simon Josefsson  <jas@extundo.com>
78160
78161         * modules/dummy: New file.
78162
78163 2004-07-16  Simon Josefsson  <jas@extundo.com>
78164
78165         * lib/dummy.c: New file.
78166
78167 2004-07-16  Bruno Haible  <bruno@clisp.org>
78168
78169         * lib/backupfile.h: Add extern "C" for C++.
78170         * lib/closeout.h: Likewise.
78171         * lib/copy-file.h: Likewise.
78172         * lib/findprog.h: Likewise.
78173         * lib/full-write.h: Likewise.
78174         * lib/pathname.h: Likewise.
78175         * lib/progname.h: Likewise.
78176         * lib/stpcpy.h: Likewise.
78177         * lib/stpncpy.h: Likewise.
78178         * lib/strcase.h: Likewise.
78179         * lib/strstr.h: Likewise.
78180         * lib/xalloc.h: Likewise.
78181
78182         * lib/mbswidth.h: Add extern "C" for C++.
78183         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
78184
78185 2004-07-13  Robert Millan  <robertmh@gnu.org>
78186
78187         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
78188
78189 2004-07-09  Simon Josefsson  <jas@extundo.com>
78190
78191         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
78192         failed without this.)
78193
78194 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78195
78196         * modules/chown (Files): Add lib/fchown-stub.c, since
78197         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
78198
78199 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78200
78201         * lib/fchown-stub.c: New file.
78202
78203 2004-06-24  Jim Meyering  <jim@meyering.net>
78204
78205         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
78206
78207 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78208
78209         * modules/argz: Omit "#include".
78210
78211         * MODULES.html.sh (func_all_modules): Add calloc, to match
78212         2004-06-01 addition of calloc module.
78213
78214 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78215
78216         * m4/argz.m4: New file, which is autoupdated from libtool.
78217
78218 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78219
78220         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
78221         libtool.
78222
78223 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78224
78225         * config/srclist-update: Don't insist on "USA." before the
78226         close-comment, as libtool omits the period and puts the */ on a
78227         separate line.
78228         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
78229         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
78230
78231 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
78232
78233         * modules/argz: New file.
78234         * MODULES.html.sh (func_all_modules): Add argz.
78235
78236 2004-06-12  Jim Meyering  <jim@meyering.net>
78237         and  Paul Eggert  <eggert@cs.ucla.edu>
78238
78239         * modules/hash (Files): Add lib/xalloc.h.
78240         * modules/pipe (Depends-on): Add wait-process.
78241         * modules/stat (Depends-on): Add xalloc.
78242         * modules/userspec (Files): Add lib/userspec.h.
78243         * modules/xstrto
78244
78245         Upgrade from gettext-0.13.
78246         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
78247         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
78248         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
78249
78250 2004-06-10  Jim Meyering  <jim@meyering.net>
78251
78252         * lib/calloc.c: New file.
78253
78254 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
78255
78256         * lib/getdate.y (yylex): Allow space between sign and number.
78257         Problem reported by Dan Jacobson.
78258
78259 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
78260
78261         Merge from coreutils CVS.
78262
78263         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
78264         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
78265         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
78266         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
78267         xstrtol.m4: Fix copyright date and/or serial number.
78268
78269         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
78270         See if we need an fchown replacement.
78271         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
78272         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
78273         and use the replacement function if we detect either defect.
78274
78275         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
78276         gl_UTIMECMP.
78277
78278 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
78279         and  Jim Meyering  <jim@meyering.net>
78280
78281         Merge from coreutils CVS.
78282
78283         * lib/stat-macros.h: New file, with contents from file-type.h
78284         and coreutils' system.h.
78285         * lib/file-type.c: Include "stat-macros.h".
78286         * lib/file-type.h (file_type): Move all macro definitions to new file,
78287         stat-macros.h.
78288
78289         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
78290         Wrap old code with this conditional.
78291         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
78292         function that does not dereference symlinks.
78293         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
78294
78295         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
78296         dependency problems.
78297         (xreadlink): Accept new arg SIZE, for efficiency.
78298         All decls and uses changed.
78299         * lib/xreadlink.h: Include <stddef.h>, for size_t.
78300
78301         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
78302         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
78303
78304         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
78305         sysexits.h.
78306
78307 2004-06-01  Jim Meyering  <jim@meyering.net>
78308
78309         * m4/calloc.m4: New file.
78310
78311 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
78312
78313         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
78314         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
78315         Also, fix a typo in a diagnostic.
78316
78317 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
78318
78319         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
78320         or AC_FUNC_REALLOC.
78321
78322 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
78323
78324         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
78325         macros to be defined.
78326         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
78327         the allocator returns NULL because the requested size is zero.
78328
78329 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78330
78331         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
78332         var.  Add comment explaining why libc still defines it.  This
78333         merges the following patch from glibc:
78334         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
78335
78336 2004-05-20  Andreas Schwab  <schwab@suse.de>
78337
78338         * m4/free.m4: Replace free if it not known to work, not the other
78339         way round.
78340
78341 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78342
78343         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
78344         present in glibc since revision 1.1 of this file.
78345         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
78346         obstack_alignment_mask, obstack_alloc, obstack_base,
78347         obstack_blank, obstack_blank_fast, obstack_chunk_size,
78348         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
78349         obstack_grow0, obstack_init, obstack_int_grow,
78350         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
78351         obstack_next_free, obstack_object_size, obstack_ptr_grow,
78352         obstack_ptr_grow_fast, obstack_room): Remove declarations of
78353         nonexistent functions.
78354
78355 2004-05-18  Karl Berry  <karl@gnu.org>
78356
78357         * config/srclist.txt: break link for vasnprintf.c.
78358
78359 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
78360
78361         Port obstack to the AS/400, where pointers are 16 bytes wide and
78362         you cannot cast an integer to a valid pointer.  This patch is
78363         currently waiting to be integrated into glibc; see
78364         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
78365
78366         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
78367         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
78368         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
78369         (struct obstack): temp member is now a union of a pointer and
78370         an integer, instead of an integer.  All integer uses changed.
78371         This does not affect the physical layout of struct obstack,
78372         except on hosts (like the AS/400) where the size or alignment of
78373         void * is greater than that of ptrdiff_t.
78374         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
78375         __STDC__)]: Store temporary in pointer member of union, not
78376         integer member.
78377         * lib/obstack.c: Include <stddef.h>, for offsetof.
78378         (struct fooalign): Remove; it doesn't need a name.
78379         (union fooround): Change double to long double, and add void *.
78380         (DEFAULT_ALIGNMENT): Use offsetof to compute.
78381         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
78382         not a macro.  Hence the values are always int; so remove all
78383         casts-to-int in uses.
78384
78385 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
78386
78387         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
78388         we can get this patch merged into glibc.
78389
78390 2004-05-17  Derek R. Price  <derek@ximbiot.com>
78391             Paul Eggert  <eggert@cs.ucla.edu>
78392
78393         * m4/argp: Depend on alloca.
78394
78395 2004-05-17  Derek R. Price  <derek@ximbiot.com>
78396             Paul Eggert  <eggert@cs.ucla.edu>
78397
78398         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
78399         freecoding.
78400
78401 2004-05-17  Bruno Haible  <bruno@clisp.org>
78402
78403         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
78404         precision that consists of a '.' followed by an empty digit string.
78405         Patch by Tor Lillqvist <tml@iki.fi>.
78406
78407 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
78408
78409         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
78410         for backward compatibility with older code.  We need our own
78411         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
78412         it under some other name, and our alloca.h will define it.
78413
78414 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
78415             Derek Price  <derek@ximbiot.com>
78416
78417         * lib/alloca.c: Include <alloca.h>, to get our interface.
78418         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
78419         include <alloca.h> first.  Use C89 prototype for alloca; this
78420         requires including <stddef.h> for size_t.  Use extern "C" if C++.
78421         Use #elif for simplicity, since we can assume C89 now.
78422         Don't try to source the system alloca.h since it will not be found
78423         and to prevent recursively including its replacement.
78424         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
78425         * lib/regex.c: Likewise.
78426
78427 2004-05-16  Derek Price  <derek@ximbiot.com>
78428             Paul Eggert  <eggert@cs.ucla.edu>
78429
78430         getline cleanup.  This changes the getndelim2 API: both order of
78431         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
78432         no delimiter).
78433
78434         * lib/getline.c: Don't include stddef.h or stdio.h, since our
78435         interface does that.
78436         (getline): Always use getdelim, so that we don't have two
78437         copies of this code.
78438         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
78439         if available.
78440         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
78441         (GETNDELIM2_MAXIMUM): New macro.
78442         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
78443         instead of the old practice of delim2==0.  All callers changed.
78444         Return -1 on overflow, instead of returning junk.
78445         Do not set *linesize unless allocation succeeds.
78446         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
78447         that we include sys/types.h.
78448         * lib/getnline.h: Likewise.
78449         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
78450         (getndelim2): Reorder arguments.
78451         * lib/getnline.c (getnline, getndelim):
78452         Don't discard the NMAX argument.
78453         (getnline): Invoke getndelim, to avoid code duplication.
78454         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
78455         of (size_t) -1 by callers of the getnline family.
78456
78457 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78458
78459         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
78460         Check for gettimeofday.
78461         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
78462         Check for settimeofday, stime.
78463
78464 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78465
78466         * lib/nanosleep.c (suspended): Change its type from int to
78467         sig_atomic_t volatile.
78468         (first_call): Make it private to rpl_nanosleep, and have it
78469         be zero initially as that's a bit faster.
78470         (my_usleep): Round up fractional times instead of truncating them,
78471         as this is the usual meaning for 'sleep'.
78472
78473         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
78474         doesn't work.
78475         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
78476         (ENOSYS): Define if not defined.
78477         (settime): Fall back on stime if it exists and settimeofday fails.
78478         But don't bother with fallbacks if a method fails with errno == EPERM.
78479
78480 2004-05-11  Jim Meyering  <jim@meyering.net>
78481
78482         Prior to this change, the save_cwd caller required read access to the
78483         current directory on most systems (ones with the fchdir function).
78484
78485         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
78486         fails, try write-only, and finally, resort to using xgetcwd.
78487
78488 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
78489
78490         * lib/obstack.c, obstack.h: Import changes from libc.
78491
78492 2004-04-28  Bruno Haible  <bruno@clisp.org>
78493
78494         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
78495         also implicitly appends .exe to executables.
78496         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
78497         accepts Windows pathnames.
78498         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
78499         Treat Cygwin like Windows, since it now accepts Windows pathnames.
78500         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
78501         Treat Cygwin like Windows, since it now accepts Windows pathnames.
78502         Reported by Derek Robert Price <derek@ximbiot.com>.
78503
78504 2004-04-21  Karl Berry  <karl@gnu.org>
78505
78506         * config/srclist.txt (localcharset.c): break sync.
78507
78508 2004-04-20  Paul Eggert  <eggert@twinsun.com>
78509
78510         * m4/host-os.m4: Add a copyright notice.
78511
78512 2004-04-20  Jim Meyering  <jim@meyering.net>
78513
78514         Change UTILS_ to gl_ in AC_DEFINE'd names.
78515         Change utils_- and jm_-prefixed variables, too.
78516         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
78517         UTILS_FUNC_MKDIR_TRAILING_SLASH.
78518         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
78519
78520         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
78521         Don't emit trailing blanks.
78522         Also rename jm_-prefixed variables to have gl_ prefix.
78523
78524         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
78525         Also rename jm_-prefixed variables to have gl_ prefix.
78526
78527         * m4/jm-macros.m4: Reflect the renamings.
78528         * m4/prereq.m4: Likewise.
78529
78530 2004-04-20  Jim Meyering  <jim@meyering.net>
78531
78532         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
78533         memory.
78534
78535 2004-04-20  Jim Meyering  <jim@meyering.net>
78536             Bruno Haible  <bruno@clisp.org>
78537
78538         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
78539         memory when realloc fails.
78540
78541 2004-04-19  Jim Meyering  <jim@meyering.net>
78542
78543         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
78544         now that readutmp.c may call `free (0)'.
78545
78546 2004-04-19  Bruno Haible  <bruno@clisp.org>
78547
78548         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
78549         * m4/inttypes_h.m4: Likewise.
78550         * m4/stdint_h.m4: Likewise.
78551         * m4/intmax_t.m4: Likewise.
78552         * m4/uintmax_t.m4: Likewise.
78553
78554 2004-04-18  Jim Meyering  <jim@meyering.net>
78555
78556         * m4/prereq.m4: Don't forbid jm_ prefix.
78557
78558         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
78559         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
78560         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
78561         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
78562         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
78563         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
78564         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
78565         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
78566         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
78567         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
78568         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
78569         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
78570         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
78571         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
78572         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
78573         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
78574         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
78575         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
78576         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
78577
78578 2004-04-18  Jim Meyering  <jim@meyering.net>
78579
78580         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
78581         failure, don't leak memory and do call END_UTMP_ENT.
78582
78583 2004-04-16  Jim Meyering  <jim@meyering.net>
78584
78585         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
78586         coreutils' stat program.
78587         (gl_PREREQ): Don't require jm_PREREQ_STAT.
78588
78589 2004-04-11  Paul Eggert  <eggert@twinsun.com>
78590
78591         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
78592         C89.
78593         (CHAR_BIT): Remove, since we assume C89.
78594         Include <stdint.h> if available, as per current Autoconf CVS advice.
78595
78596 2004-03-31  Jim Meyering  <jim@meyering.net>
78597
78598         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
78599         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
78600         * m4/xalloc.m4: Likewise.
78601
78602 2004-03-30  Paul Eggert  <eggert@twinsun.com>
78603
78604         Merge from coreutils.
78605
78606         * m4/inttostr.m4: New file.
78607         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
78608         Require AM_STDBOOL_H and gl_TIMESPEC instead.
78609         Require gl_CLOCK_TIME.
78610         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
78611
78612 2004-03-30  Paul Eggert  <eggert@twinsun.com>
78613
78614         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
78615         not bool, to be more consistent with Unix conventions.
78616         Suggested by Bruno Haible.
78617
78618         Merge from coreutils.
78619
78620         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
78621         * lib/umaxtostr.c: New files.
78622
78623         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
78624         the usual <time.h> dance.
78625         (get_date): Change signature to support fractional time stamps.
78626         All callers changed.
78627         * lib/getdate.y: Include "getdate.h" first, as we can now
78628         assume C89 and don't need to worry about 'const'.
78629         Similarly, include "unlocked-io.h" near start, not in middle.
78630         Include <limits.h>.
78631         (textint.value): Use long int rather than int.
78632         (textint.digits): Use size_t rather than int.
78633         (BILLION, LOG10_BILLION): New constants.
78634         (parser_control): New member rel_ns.  Members day_ordinal,
78635         time_zone, month, day, hour, minutes, rel_year, rel_month,
78636         rel_day, rel_hour, rel_minutes, rel_seconds
78637         are now long int, not int.  Member seconds is now struct timespec,
78638         not int.  New member timespec_seen.  Members dates_seen, days_seen,
78639         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
78640         not int.
78641         (%union.intval): Now long int, not int.
78642         New member timespec.
78643         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
78644         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
78645         (spec): Now is a timespec or an item list.
78646         (timespec, items): New nonterminals.
78647         (time, rel, relunit, number, get_date):
78648         Add support for fractional seconds.
78649         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
78650         (gmtime, localtime, mktime): Remove decls; not needed with C89.
78651         (to_hour): First arg is now long int, not int.
78652         (to_year): Returns long int, not int.
78653         Don't treat year -70 like 70.
78654         (tm_diff): Returns long int, not int.
78655         (lookup_word): Use bool instead of int when appropriate.
78656         (yylex): Use size_t for count, not int.
78657         Detect overflow when parsing large integer constants.
78658         Add support for fractions.
78659         (get_date): Make pointers 'const' if possible.
78660         Use more-portable code to detect integer overflow.
78661         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
78662         Don't use ctime; it's not reliable if the year has >4 digits.
78663
78664         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
78665         This is for compatibility with BSD.
78666
78667         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
78668         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
78669         From coreutils' system.h.
78670
78671         * lib/userspec.c: Don't include "posixver.h".
78672         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
78673         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
78674         compatible extension.  Simplify code by removing a boolean int
78675         that was always nonzero if a string was nonnull.
78676
78677 2004-03-30  Jim Meyering  <jim@meyering.net>
78678
78679         Merge from coreutils.
78680
78681         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
78682         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
78683         on some systems one must include <grp.h> before it.
78684         Reported by Christian Krackowizer.
78685
78686 2004-03-30  Jim Meyering  <jim@meyering.net>
78687
78688         Merge from coreutils.
78689
78690         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
78691
78692         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
78693         an empty input stream.
78694
78695         * lib/readtokens.c: Include <stdbool.h>.
78696         (readtoken): Use `size_t' rather than int/long.
78697         All callers adjusted.
78698         Use `bool' rather than `int' where appropriate.
78699         Use memset rather than an explicit loop.
78700         Use x2nrealloc rather than xrealloc.
78701         Allow the use of `\0' as a delimiter.
78702         (readtokens): Likewise.
78703         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
78704
78705 2004-03-30  Jim Meyering  <jim@meyering.net>
78706
78707         * m4/realloc.m4: Remove file, since now it does no more than
78708         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
78709         the `configure.ac' section of module/realloc.
78710         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
78711
78712 2004-03-30  Bruno Haible  <bruno@clisp.org>
78713
78714         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
78715         nonnull.
78716
78717 2004-03-29  Paul Eggert  <eggert@twinsun.com>
78718
78719         Merge changes to getloadavg.c from coreutils and Emacs.
78720
78721         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
78722         Define to an expression, not to the empty string.
78723         Include cloexec.h and xalloc.h.
78724         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
78725         Use set_cloexec_flag rather than rolling our own.
78726         * lib/cloexec.c, lib/cloexec.h: New files.
78727
78728 2004-03-29  Paul Eggert  <eggert@twinsun.com>
78729
78730         * m4/cloexec.m4: New file.
78731
78732 2004-03-18  Paul Eggert  <eggert@twinsun.com>
78733
78734         * lib/getopt.h: Sync with libc CVS.
78735
78736 2004-03-18  Paul Eggert  <eggert@twinsun.com>
78737             Bruno Haible  <bruno@clisp.org>
78738
78739         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
78740         mbswidth.
78741
78742 2004-03-18  Paul Eggert  <eggert@twinsun.com>
78743             Bruno Haible  <bruno@clisp.org>
78744
78745         * lib/mbswidth.h: Include <wchar.h> only if
78746         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
78747         <wchar.h>.
78748         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
78749
78750 2004-03-09  Paul Eggert  <eggert@twinsun.com>
78751
78752         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
78753         Sync with libc CVS.
78754         * lib/getopt_int.h: New file, also synced from libc.
78755
78756 2004-03-09  Paul Eggert  <eggert@twinsun.com>
78757
78758         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
78759         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
78760         Bring back getopt.c, getopt.h, getopt1.c.
78761
78762 2004-03-07  Paul Eggert  <eggert@twinsun.com>
78763
78764         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
78765         All uses changed.  Check for sa_sigaction member; this fixes
78766         a bug first reported by Jason Andrade in
78767         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
78768
78769 2004-03-07  Paul Eggert  <eggert@twinsun.com>
78770
78771         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
78772         '#if' expressions.  Unlike the code it replaces, it does not
78773         depend on (defined _SC_PAGESIZE).  However, it does depend on
78774         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
78775         first reported by Jason Andrade in
78776         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
78777
78778 2004-02-25  Simon Josefsson  <jas@extundo.com>
78779
78780         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
78781
78782 2004-02-25  Simon Josefsson  <jas@extundo.com>
78783
78784         * lib/strdup.h: New file.
78785         * lib/strdup.c: Include it.
78786         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
78787         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
78788
78789 2004-02-23  Karl Berry  <karl@gnu.org>
78790
78791         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
78792         (from fencepost.gnu.org:/gd/gnuorg).
78793
78794 2004-02-23  Karl Berry  <karl@gnu.org>
78795
78796         * config/srclistvars.sh (GNUORG) [karl]: redefine.
78797         * config/srclist.txt: add maintain/standards documents.
78798
78799 2004-02-18  Bruno Haible  <bruno@clisp.org>
78800
78801         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
78802         Reported by Derek Robert Price <derek@ximbiot.com>.
78803
78804 2004-02-16  Karl Berry  <karl@gnu.org>
78805
78806         * config/mkinstalldirs, install-sh: update from automake.
78807
78808 2004-02-06  Karl Berry  <karl@gnu.org>
78809
78810         * m4/po.m4: update from gettext 0.14.1.
78811
78812 2004-02-06  Karl Berry  <karl@gnu.org>
78813
78814         * lib/config.charset: update from gettext 0.14.1.
78815
78816 2004-02-05  Paul Eggert  <eggert@twinsun.com>
78817
78818         Add comments and code, prompted by suggestions from Bruno Haible
78819         for sh-quote.
78820         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
78821         describing the enum quoting_style values.
78822         * lib/quotearg.c (quotearg_alloc): New function.
78823         (quotearg_buffer_restyled): Treat lone { and } as special.
78824         Treat = as special.  Work around bug with older shells
78825         that "see" a '\' that is really the 2nd byte of a multibyte char.
78826         Quote empty string with shell_quoting_style.
78827
78828 2004-02-03  Bruno Haible  <bruno@clisp.org>
78829
78830         * m4/pipe.m4: New file, from GNU gettext.
78831
78832 2004-02-03  Bruno Haible  <bruno@clisp.org>
78833
78834         * lib/pipe.h: New file, from GNU gettext.
78835         * lib/pipe.c: New file, from GNU gettext.
78836
78837 2004-01-27  Bruno Haible  <bruno@clisp.org>
78838
78839         * m4/execute.m4: New file, from GNU gettext.
78840
78841 2004-01-27  Bruno Haible  <bruno@clisp.org>
78842
78843         * lib/execute.h: New file, from GNU gettext.
78844         * lib/execute.c: New file, from GNU gettext.
78845         * lib/w32spawn.h: New file, from GNU gettext.
78846
78847 2004-01-24  Paul Eggert  <eggert@twinsun.com>
78848
78849         Merge from diffutils.
78850
78851         * lib/file-type.c (file_type): Add typed memory objects.
78852         * lib/file-type.h (S_TYPEISTMO): New macro.
78853
78854         * lib/c-stack.h (c_stack_action): Remove argv argument.
78855         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
78856         (die): Don't calculate message unless segv_action returns.
78857         (get_stack_location, min_address_from_argv, max_address_from_argv,
78858         volatile stack_base, volatile_stack_size): Remove.
78859         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
78860         that every segmentation violation is a stack overflow.  (Ouch!)
78861         See Debian bug 136249 (still outstanding) for more info about why
78862         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
78863
78864 2004-01-24  Paul Eggert  <eggert@twinsun.com>
78865
78866         Exit-status fix from coreutils.
78867
78868         Use exit_failure consistently in place of EXIT_FAILURE,
78869         so that program exit statuses are consistent on failure.
78870
78871         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
78872         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
78873         * lib/argmatch.h: Comment fix to match the above.
78874         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
78875         Now a macro referring to exit_failure, instead of a separate
78876         variable.  Include "exitfail.h" to get it.
78877         * lib/xstrtol.h: Include "exitfail.h".
78878         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
78879
78880         * lib/long-options.c (parse_long_options): Use prototype
78881         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
78882         for clarity.
78883
78884 2004-01-21  Jim Meyering  <jim@meyering.net>
78885
78886         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
78887         so as not to conflict with a different-sized __mktime_internal
78888         function in GNU libc.
78889         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
78890         Problem building statically-linked `ls' reported by Michael Brunnbauer.
78891
78892 2004-01-20  Karl Berry  <karl@gnu.org>
78893
78894         * config/config.guess: update from config.
78895
78896         * config/srclistvars.sh: GNUWWWLICENSES for karl.
78897
78898 2004-01-20  Bruno Haible  <bruno@clisp.org>
78899
78900         Safer stack allocation.
78901         * lib/setenv.c: Include allocsa.h.
78902         (alloca): Remove fallback definition.
78903         (freea): Remove macro.
78904         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
78905         instead of freea.
78906
78907 2004-01-20  Bruno Haible  <bruno@clisp.org>
78908
78909         * m4/eealloc.m4: New file, from GNU gettext.
78910
78911 2004-01-20  Bruno Haible  <bruno@clisp.org>
78912
78913         * m4/allocsa.m4: New file, from GNU gettext.
78914
78915 2004-01-20  Bruno Haible  <bruno@clisp.org>
78916
78917         * lib/xallocsa.h: New file, from GNU gettext.
78918         * lib/xallocsa.c: New file, from GNU gettext.
78919
78920 2004-01-20  Bruno Haible  <bruno@clisp.org>
78921
78922         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
78923
78924 2004-01-20  Bruno Haible  <bruno@clisp.org>
78925
78926         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
78927         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
78928         specially.
78929
78930 2004-01-20  Bruno Haible  <bruno@clisp.org>
78931
78932         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
78933         patch.
78934
78935 2004-01-20  Bruno Haible  <bruno@clisp.org>
78936
78937         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
78938
78939 2004-01-20  Bruno Haible  <bruno@clisp.org>
78940
78941         * lib/eealloc.h: New file.
78942
78943 2004-01-20  Bruno Haible  <bruno@clisp.org>
78944
78945         * lib/binary-io.h: Avoid warnings on Cygwin.
78946
78947 2004-01-20  Bruno Haible  <bruno@clisp.org>
78948
78949         * lib/allocsa.h: New file, from GNU gettext.
78950         * lib/allocsa.c: New file, from GNU gettext.
78951
78952 2004-01-18  Karl Berry  <karl@gnu.org>
78953
78954         * doc/gpl.texi, doc/lgpl.texi: new files.
78955
78956 2004-01-18  Karl Berry  <karl@gnu.org>
78957
78958         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
78959         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
78960
78961 2004-01-15  Paul Eggert  <eggert@twinsun.com>
78962
78963         Merge from coreutils.
78964
78965         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
78966         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
78967         (gl_DEFAULT_POSIX2_VERSION): Move
78968         the documentation from 'configure' into 'config.hin',
78969         so that 'configure --help' isn't burdened by it and
78970         we don't have to worry about its formatting there.
78971         Reword the documentation so that it's more succinct
78972         and can be run together into a single paragraph.
78973         * m4/same.m4 (gl_SAME): Check for pathconf.
78974
78975 2004-01-15  Paul Eggert  <eggert@twinsun.com>
78976
78977         Merge from coreutils.
78978
78979         * lib/posixver.c: Include posixver.h.
78980
78981         * lib/same.c: Include <stdbool.h>, <limits.h>.
78982         (_POSIX_NAME_MAX): Define if not defined.
78983         (MIN): New macro.
78984         (same_name): If file names are silently truncated, report
78985         that the file names are the same if they are the same after
78986         the silent truncation.
78987
78988         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
78989         conversion function.
78990         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
78991         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
78992         longer needed.
78993
78994 2004-01-15  Jim Meyering  <jim@meyering.net>
78995
78996         Merge from coreutils.
78997
78998         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
78999         if no library is required.
79000         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
79001         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
79002         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
79003         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
79004         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
79005         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
79006         value, $ac_cv_search_crypt, if it's "none required".
79007         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
79008         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
79009         not gl_FUNC_GETLOADAVG.
79010         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
79011         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
79012
79013 2004-01-15  Jim Meyering  <jim@meyering.net>
79014
79015         Merge from coreutils.
79016
79017         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
79018         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
79019         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
79020
79021         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
79022         optional configure-time default.
79023
79024         * lib/version-etc.c (version_etc_copyright): Update copyright date.
79025
79026         * lib/xreadlink.c (xreadlink): Correct outdated comment.
79027
79028 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
79029
79030         Merge from coreutils.
79031
79032         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
79033         value, $ac_cv_search_nanosleep, if it's "none required".
79034
79035 2004-01-14  Paul Eggert  <eggert@twinsun.com>
79036
79037         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
79038         with like-named macro in fnmatch.c.
79039         (EXT): Use an internal constant instead.
79040
79041         Merge fnmatch patches from glibc.
79042         * lib/fnmatch.c (mbsinit): Remove define.
79043         Add libc_hidden_ver (__fnmatch, fnmatch).
79044         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
79045         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
79046
79047 2004-01-14  Karl Berry  <karl@gnu.org>
79048
79049         * config/install-sh: update from automake.
79050
79051 2004-01-13  Karl Berry  <karl@gnu.org>
79052
79053         * config/install-sh: update from automake.
79054
79055 2004-01-09  Karl Berry  <karl@gnu.org>
79056
79057         * config/install-sh: update from automake.
79058
79059 2004-01-05  Karl Berry  <karl@gnu.org>
79060
79061         * config/config.{sub,guess}: update from config.
79062
79063 2003-12-31  Karl Berry  <karl@gnu.org>
79064
79065         * config/depcomp: update from automake.
79066
79067 2003-12-14  Karl Berry  <karl@gnu.org>
79068
79069         * lib/config.charset: update from gettext-runtime.
79070
79071 2003-12-03  Paul Eggert  <eggert@twinsun.com>
79072
79073         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
79074         Bug reported by Alfred M. Szmidt.
79075
79076 2003-12-03  Bruno Haible  <bruno@clisp.org>
79077
79078         * m4/gettext.m4: Upgrade from gettext-0.13.
79079         * m4/po.m4: Upgrade from gettext-0.13.
79080         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
79081         * m4/intmax.m4: New file, from gettext-0.13.
79082         * m4/printf-posix.m4: New file, from gettext-0.13.
79083
79084 2003-11-29  Karl Berry  <karl@gnu.org>
79085
79086         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
79087
79088 2003-11-25  Paul Eggert  <eggert@twinsun.com>
79089             Bruno Haible  <bruno@clisp.org>
79090
79091         * lib/printf-parse.h: Don't include sys/types.h.
79092         (ARG_NONE): New macro.
79093         (char_directive): Change type of *arg_index fields to size_t.
79094         * lib/printf-parse.c: Don't include sys/types.h.
79095         (SSIZE_MAX): Remove macro.
79096         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
79097         Remove unnecessary overflow check.
79098         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
79099         fields.
79100
79101 2003-11-25  Bruno Haible  <bruno@clisp.org>
79102
79103         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
79104
79105 2003-11-25  Bruno Haible  <bruno@clisp.org>
79106
79107         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
79108         gt_TYPE_SSIZE_T.
79109
79110 2003-11-24  Paul Eggert  <eggert@twinsun.com>
79111
79112         * modules/alloca: Remove dependency on xalloc.
79113
79114 2003-11-24  Paul Eggert  <eggert@twinsun.com>
79115
79116         * lib/alloca.c: Remove dependency on xalloc module.
79117         (xalloc_die): Remove.
79118         (memory_full) [!defined emacs]: New macro.
79119         [!defined emacs]: Don't include xalloc.h.
79120         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
79121         address arithmetic overflows.  Change datatypes a bit to avoid
79122         unnecessary casts.
79123
79124 2003-11-22  Jim Meyering  <jim@meyering.net>
79125
79126         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
79127         s/size/size_t/.
79128
79129 2003-11-21  Karl Berry  <karl@gnu.org>
79130
79131         * config/config.{sub,guess}: update from config.
79132
79133 2003-11-18  Karl Berry  <karl@gnu.org>
79134
79135         * config/config.{sub,guess}: update from config.
79136
79137         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
79138
79139 2003-11-17  Paul Eggert  <eggert@twinsun.com>
79140
79141         * README: Mention that S+T cannot overflow if S is the size of
79142         an existing object and T is sufficiently small.
79143
79144 2003-11-17  Jim Meyering  <jim@meyering.net>
79145
79146         On systems without utime and without a utimes function capable of
79147         dealing with a NULL struct utimbuf* argument, this utime replacement
79148         could -- in unusual circumstances -- leak a file descriptor.
79149         * lib/utime.c: Include <unistd.h> and <errno.h>.
79150         (utime_null): Be sure to close `fd' and to preserve errno.
79151         Reported by Geoff Collyer via Arnold Robbins.
79152
79153 2003-11-17  Bruno Haible  <bruno@clisp.org>
79154
79155         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
79156         (Depends-on): Add xsize.
79157
79158 2003-11-17  Bruno Haible  <bruno@clisp.org>
79159
79160         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
79161
79162 2003-11-17  Bruno Haible  <bruno@clisp.org>
79163
79164         * lib/vasnprintf.c (alloca): Remove fallback definition.
79165         (freea): Remove definition.
79166         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
79167         Reported by Paul Eggert.
79168
79169 2003-11-16  Paul Eggert  <eggert@twinsun.com>
79170             Bruno Haible  <bruno@clisp.org>
79171
79172         Protect against address arithmetic overflow.
79173         * lib/printf-args.h: Include stddef.h.
79174         (arguments): Change type of field 'count' to size_t.
79175         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
79176         'unsigned int' where appropriate.
79177         * lib/printf-parse.h: Include sys/types.h.
79178         (char_directive): Change type of *arg_index fields to ssize_t.
79179         (char_directives): Change type of fields 'count', max_*_length to
79180         size_t.
79181         * lib/printf-parse.c: Include sys/types.h and xsize.h.
79182         (SSIZE_MAX): Define fallback value.
79183         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
79184         instead of 'int' where appropriate. Check a_allocated, d_allocated
79185         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
79186         * lib/vasnprintf.c: Include xsize.h.
79187         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
79188         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
79189         overflow. Avoid wraparound when converting a width or precision from
79190         decimal to binary.
79191
79192 2003-11-16  Bruno Haible  <bruno@clisp.org>
79193
79194         Update from GNU gettext.
79195         * lib/printf-parse.c: Generalize to it can be compiled for wide
79196         strings.
79197         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
79198         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
79199         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
79200         SNPRINTF): New macros.
79201         Don't include <alloca.h> if the file is used inside libintl.
79202         (local_wcslen): New function, for Solaris 2.5.1.
79203         (VASNPRINTF): Use it instead of wcslen.
79204
79205 2003-11-16  Bruno Haible  <bruno@clisp.org>
79206
79207         * lib/xsize.h (xmax): New function.
79208         (xsum, xsum3, xsum4): Declare as "pure" functions.
79209
79210 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79211
79212         * modules/xalloc (Files): Undo latest change, since xalloc.h
79213         no longer needs SIZE_MAX or PTRDIFF_MAX.
79214
79215 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79216
79217         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
79218         gl_PTRDIFF_MAX.
79219
79220 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79221
79222         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
79223         "return", to pacify some unknown compiler.  Problem reported
79224         by Joerg Schilling.
79225
79226 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79227
79228         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
79229         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
79230         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
79231         heuristic is just as accurate as far as we know, and it removes a
79232         dependency on size_max.m4 and ptrdiff_max.m4.
79233
79234 2003-11-11  Bruno Haible  <bruno@clisp.org>
79235
79236         * modules/xsize (Files): Add m4/size_max.m4.
79237         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
79238
79239 2003-11-11  Bruno Haible  <bruno@clisp.org>
79240
79241         * m4/size_max.m4: New file.
79242         * m4/ptrdiff_max.m4: New file.
79243         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
79244         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
79245         (gl_XALLOC): Invoke it.
79246
79247 2003-11-11  Bruno Haible  <bruno@clisp.org>
79248
79249         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
79250         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
79251         defined.
79252
79253 2003-11-10  Paul Eggert  <eggert@twinsun.com>
79254
79255         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
79256         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
79257         rejected some allocations of exactly SIZE_MAX - 2 bytes.
79258         From Bruno Haible.
79259         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
79260         not (size_t) -1, since it's defined here.
79261
79262 2003-11-09  Karl Berry  <karl@gnu.org>
79263
79264         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
79265
79266 2003-11-06  Paul Eggert  <eggert@twinsun.com>
79267
79268         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
79269         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
79270         Reject sizes of exactly SIZE_MAX bytes.
79271         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
79272         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
79273
79274 2003-11-05  Bruno Haible  <bruno@clisp.org>
79275
79276         * lib/xsize.h: Include limits.h, to avoid a possible collision with
79277         SIZE_MAX defined in <limits.h> on Solaris.
79278
79279 2003-11-04  Jim Meyering  <jim@meyering.net>
79280
79281         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
79282         variable names, rather than @VAR@.
79283         * modules/poll: Likewise.
79284
79285 2003-11-04  Bruno Haible  <bruno@clisp.org>
79286
79287         * modules/xsize: New file.
79288         * modules/linebreak: Depend on xsize.
79289         * MODULES.html.sh (func_all_modules): Add xsize.
79290
79291 2003-11-04  Bruno Haible  <bruno@clisp.org>
79292
79293         * m4/xsize.m4: New file.
79294
79295 2003-11-04  Bruno Haible  <bruno@clisp.org>
79296
79297         * lib/xsize.h: New file.
79298         * lib/linebreak.c: Include xsize.h.
79299         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
79300         argument for overflow.
79301         Suggested by Paul Eggert.
79302
79303 2003-11-03  Karl Berry  <karl@gnu.org>
79304
79305         * config/config.{guess,sub}: update from config.
79306
79307 2003-11-03  Jim Meyering  <jim@meyering.net>
79308
79309         * modules/userspec (lib_SOURCES): Add userspec.h.
79310         (Include): Add "userspec.h".
79311         Improve description.
79312
79313 2003-11-03  Jim Meyering  <jim@meyering.net>
79314
79315         * lib/userspec.c: Include "userspec.h".
79316         * lib/userspec.h: New file.
79317
79318 2003-11-03  Bruno Haible  <bruno@clisp.org>
79319
79320         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
79321
79322 2003-11-03  Bruno Haible  <bruno@clisp.org>
79323
79324         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
79325         available, to avoid (extremely rare) race condition.
79326         Suggested by Paul Eggert.
79327
79328 2003-11-02  Karl Berry  <karl@gnu.org>
79329
79330         * config/srclist.txt (vasprintf.c): sync broken, sigh.
79331
79332 2003-10-31  Paul Eggert  <eggert@twinsun.com>
79333
79334         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
79335         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
79336         (read_filesystem_list): Set and use me_type_malloced.
79337         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
79338         whatever the type happens to be), for brevity and consistency.
79339         Check for size calculation overflow on Alphas running OSF/1.
79340
79341 2003-10-31  Jim Meyering  <jim@meyering.net>
79342
79343         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
79344
79345         * lib/linebuffer.c: Include <string.h> for declaration of memset.
79346
79347 2003-10-30  Paul Eggert  <eggert@twinsun.com>
79348             Bruno Haible  <bruno@clisp.org>
79349
79350         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
79351         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
79352
79353 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79354
79355         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
79356         netbsd*-gnu*.  Suggested by Robert Millan.
79357
79358 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79359
79360         * modules/group-member: Depend on stdbool.
79361
79362 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79363
79364         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
79365
79366 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79367
79368         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
79369         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
79370         after the 'gnu' in these cases.  This fixes some bugs in the
79371         previous change, and is based on suggestions by Robert Millan.
79372
79373 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79374
79375         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
79376         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
79377         no longer needed.
79378         * lib/quotearg.c (quotearg_n_options): Use it.
79379         * lib/group-member.c: Include <stdbool.h>.
79380         (free_group_info): Arg is now const *; don't free arg.
79381         (get_group_info): Now returns bool and accepts struct group_info *,
79382         rather than returning a malloc'ed struct group_info *.
79383         All uses changed.  Check for overflow in internal size calculation.
79384
79385         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
79386         rather than xmalloc/xrealloc.
79387         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
79388         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
79389         conformance bug: the old code used a pointer after freeing the
79390         storage that it addressed.
79391         * lib/hash.c (hash_initialize): Simplify the code by using
79392         xalloc_oversized rather than doing it by hand.
79393         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
79394         the buffer preserved.  Use free and xmalloc instead.
79395         * lib/quotearg.c (quotearg_n_options): Likewise.
79396         Use a simpler test for size overflow.  Don't use xalloc_oversized
79397         because unsigned int might be wider than size_t (!); this suggests
79398         that we should switch from unsigned int to size_t for slot numbers.
79399
79400 2003-10-28  Paul Eggert  <eggert@twinsun.com>
79401
79402         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
79403         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
79404         NetBSD kernels.  Requested by Richard Stallman.
79405
79406 2003-10-27  Paul Eggert  <eggert@twinsun.com>
79407
79408         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
79409         to allocate the returned structure.  Do not allocate a subarray,
79410         as x2nrealloc will do that.
79411         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
79412         instead of xnrealloc.
79413         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
79414
79415 2003-10-27  Bruno Haible  <bruno@clisp.org>
79416
79417         * lib/stdbool_.h: Better support for BeOS.
79418
79419 2003-10-26  Paul Eggert  <eggert@twinsun.com>
79420
79421         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
79422         now uses inline.
79423
79424 2003-10-26  Paul Eggert  <eggert@twinsun.com>
79425
79426         * lib/xalloc.h (xalloc_oversized): New static inline function, for
79427         callers that want to do their own size-overflow checking.  Include
79428         <stdbool.h>, since xalloc_oversized returns bool.
79429         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
79430         to use xalloc_oversized.
79431
79432         Add two functions x2realloc, x2nrealloc, for programs that grow
79433         arrays dynamically by doubling their sizes.
79434         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
79435         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
79436         New functions.
79437
79438         Port to C99 semantics for 'inline' of external functions.
79439         Bug reported by Bruno Haible.
79440         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
79441         with the old contents of xnmalloc.
79442         (xnmalloc, xmalloc): Use it.
79443         (xnrealloc_inline): New static inline function,
79444         with the old contents of xnrealloc.
79445         (xnrealloc, xrealloc): Use it.
79446
79447         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
79448         that.
79449
79450 2003-10-26  Karl Berry  <karl@gnu.org>
79451
79452         * config/srclist.txt (COPYING.DOC): no longer available from
79453         /gd/gnuorg; don't know where the ultimate source is.
79454
79455 2003-10-25  Paul Eggert  <eggert@twinsun.com>
79456
79457         Fix several address-calculation bugs in the hash modules,
79458         plus some minor code cleanup.
79459
79460         * lib/hash.h: Include <stdbool.h>, for bool.
79461         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
79462         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
79463         hash_get_n_entries, hash_get_max_bucket_length,
79464         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
79465         hash_rehash): Use size_t rather than unsigned.
79466         * lib/hash.c (struct hash_table, hash_get_n_buckets,
79467         hash_get_n_buckets_used, hash_get_n_entries,
79468         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
79469         hash_get_entries, hash_do_for_each, hash_string, is_prime,
79470         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
79471         Likewise.
79472         (SIZE_MAX): Define if not defined.
79473         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
79474         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
79475         hash_print):
79476         Use const * when possible.
79477         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
79478         (check_tuning): Fix bug: if tuning parameters were very close to
79479         0 or 1, rounding errors could have caused subscript violations.
79480         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
79481         (hash_initialize): Add 'fail:' label
79482         to free table and return NULL, and use it to simplify code.
79483         Use calloc rather than clearing the storage ourself.
79484         (hash_initialize, hash_rehash): Check for arithmetic overflow in
79485         buffer size calculations.
79486         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
79487         Include <stddef.h>, for size_t.
79488         * lib/hash-pjw.c (hash_pjw): Likewise.
79489         Switch to method described by Bruno Haible.
79490         Include <limits.h>, for CHAR_BIT.
79491         (SIZE_BITS): New macro.
79492
79493 2003-10-23  Paul Eggert  <eggert@twinsun.com>
79494
79495         * m4/getline.m4 (AM_FUNC_GETLINE):
79496         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
79497         hosts.  Problem reported by Derek Robert Price in
79498         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
79499         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
79500         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
79501
79502 2003-10-21  Paul Eggert  <eggert@twinsun.com>
79503
79504         * lib/getndelim2.c (getndelim2): When size calculation overflows,
79505         ceiling the allocation at NMAX bytes rather than silently
79506         discarding input bytes before NMAX is reached.  This makes
79507         a difference only if NMAX exceeds SIZE_MAX / 2.
79508
79509         * lib/obstack.c: Merge from glibc.
79510         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
79511         Add libc_hidden_def (_obstack_newchunk).
79512         (_obstack_free) [! defined _LIBC]: Remove.
79513         [defined _LIBC]: Make a strong alias from obstack_free, rather than
79514         a clone of the function body.
79515         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
79516         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
79517
79518         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
79519         glibc.
79520         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
79521         arg to memcpy.
79522
79523         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
79524         (obstack_ptr_grow_fast, obstack_int_grow_fast):
79525         Don't use lvalue casts, as GCC plans to remove support for them
79526         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
79527         was also present in the non-GCC version, indicating that this
79528         code had always been buggy and had never been widely used.
79529         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
79530         Use the fast variant of each macro, rather than copying the
79531         definiens of the fast variant; that way, we'll be more likely to
79532         catch future bugs in the fast variants.
79533
79534 2003-10-20  Bruno Haible  <bruno@clisp.org>
79535
79536         * modules/wait-process: New file.
79537         * MODULES.html.sh (func_all_modules): Add wait-process.
79538
79539 2003-10-20  Bruno Haible  <bruno@clisp.org>
79540
79541         * m4/wait-process.m4: New file.
79542
79543 2003-10-20  Bruno Haible  <bruno@clisp.org>
79544
79545         * lib/wait-process.h: New file, from GNU gettext.
79546         * lib/wait-process.c: New file, from GNU gettext.
79547
79548 2003-10-19  Jim Meyering  <jim@meyering.net>
79549
79550         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
79551         HPUX 10.20.
79552
79553 2003-10-18  Karl Berry  <karl@gnu.org>
79554
79555         * config/config.guess: update from config.
79556
79557 2003-10-16  Paul Eggert  <eggert@twinsun.com>
79558
79559         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
79560         (getgroups): First arg is int, not size_t.
79561         Don't let 'free' mangle errno.
79562
79563 2003-10-16  Paul Eggert  <eggert@twinsun.com>
79564
79565         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
79566
79567 2003-10-16  Karl Berry  <karl@gnu.org>
79568
79569         * config/config.{guess,sub}: update from config.
79570
79571 2003-10-16  Jim Meyering  <jim@meyering.net>
79572
79573         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
79574         memcpy.
79575
79576 2003-10-15  Paul Eggert  <eggert@twinsun.com>
79577
79578         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
79579         (SIZE_MAX): Remove.
79580         (new_exclude, add_exclude_file): Initial size no longer needs to
79581         be a power of 2.
79582         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
79583         our own address arithmetic overflow checking.
79584
79585         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
79586         (fnmatch): Do not alloca more than 2000 wide characters;
79587         instead, use malloc for large buffers.
79588         Check for address arithmetic overflow, and return -1
79589         with errno set to ENOMEM in that case.
79590         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
79591         (NEW_PATTERN): Do not alloca more than 8000 bytes;
79592         instead, return -1.  Check for address arithmetic overflow.
79593
79594 2003-10-14  Paul Eggert  <eggert@twinsun.com>
79595
79596         Handle invalid suffixes and overflow independently, so that
79597         callers can treat them independently as needed.  Fix some bugs in
79598         suffix handling, e.g., "100k@" was not diagnosed as an invalid
79599         suffix for a human-readable blocksize.  The major caller-visible
79600         change is the addition of a new
79601         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
79602         that both overflow and suffix chars were found.
79603
79604         * lib/human.c (humblock): Don't check separately for invalid suffix
79605         char; that is xstrtoumax's job (now that its bug is fixed).
79606         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
79607         INTMAX_MAX]: New macros.
79608         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
79609         TYPE_MAXIMUM): New macros.
79610         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
79611         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
79612         if overflow occurs, as it's what __strtol does and it's more useful
79613         in practice.
79614         (__xstrtol): If __strtol reports some error other than ERANGE,
79615         reflect it to the caller as LONGINT_INVALID.  If it reports
79616         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
79617         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
79618         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
79619         value.
79620         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
79621         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
79622         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
79623         [defined UINTMAX_MAX]: New macros.
79624
79625 2003-10-14  Bruno Haible  <bruno@clisp.org>
79626
79627         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
79628
79629 2003-10-14  Bruno Haible  <bruno@clisp.org>
79630
79631         * m4/sig_atomic_t: New file, from GNU gettext.
79632         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
79633
79634 2003-10-14  Bruno Haible  <bruno@clisp.org>
79635
79636         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
79637         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
79638         Also use volatile where needed.
79639
79640 2003-10-12  Paul Eggert  <eggert@twinsun.com>
79641
79642         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
79643         Change maintainer from Bruno Haible to 'all'.
79644
79645 2003-10-12  Paul Eggert  <eggert@twinsun.com>
79646
79647         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
79648
79649 2003-10-12  Paul Eggert  <eggert@twinsun.com>
79650
79651         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
79652         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
79653         and define in terms of the other primitives.
79654         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
79655         (SIZE_MAX): Define if not already defined.
79656         (array_size_overflow): New function.
79657         (xalloc_die): Abort instead of exiting if 'error' returns.
79658         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
79659         (xmalloc, xrealloc): Use them.
79660         (xcalloc): Check for address arithmetic overflow.
79661         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
79662         a bit faster than strcpy.
79663
79664 2003-10-10  Simon Josefsson  <jas@extundo.com>
79665
79666         * modules/argp (Depends-on): Add restrict and strcase.
79667
79668 2003-10-10  Simon Josefsson  <jas@extundo.com>
79669
79670         * m4/argp.m4: Add AC_C_INLINE.
79671
79672 2003-10-08  Paul Eggert  <eggert@twinsun.com>
79673
79674         Merge getpass from libc, plus a few fixes.
79675
79676         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
79677         Include <stdbool.h>.
79678         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
79679         __fsetlocking to empty.
79680         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
79681         do include <bits/libc-lock.h>.
79682         Do not include <fcntl.h>; not needed.
79683         [_LIBC]: Include <wchar.h>.
79684         (NOTCANCEL_MODE): New macro.
79685         (flockfile, funlockfile) [_LIBC]: New macros.
79686         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
79687         [!_LIBC]: New macros.
79688         (call_fclose): New function.
79689         (getpass): Use it.  Save tty stream separately; this simplifies the
79690         code and makes it more reliable if stdin happens to equal stdout.
79691         Invoke __fsetlocking on tty.
79692         Handle thread cancellation if needed.
79693         Namespace cleanup (use __tcgetattr, __getline).
79694         Use bool for Booleans.
79695         [USE_IN_LIBIO]: Handle wide streams.
79696         [!_LIBC]: Unconditionally do the fseek, since we don't know what
79697         stream might go where.
79698
79699         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
79700         doesn't have to include <stdio.h> before us.
79701         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
79702         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
79703         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
79704         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
79705         if not declared, so that we can use getpass.c code from libc without
79706         rewriting it.
79707         (flockfile, ftrylockfile, funlockfile): New macros.
79708
79709 2003-10-08  Paul Eggert  <eggert@twinsun.com>
79710
79711         * modules/getpass: Depend on stdbool.
79712
79713 2003-10-08  Paul Eggert  <eggert@twinsun.com>
79714
79715         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
79716
79717 2003-10-07  Karl Berry  <karl@gnu.org>
79718
79719         * config/config.{guess,sub}: update from config.
79720
79721 2003-10-06  Jim Meyering  <jim@meyering.net>
79722             Bruno Haible  <bruno@clisp.org>
79723
79724         This lets translators provide better translations for the
79725         "Written by ..." part of --version output.
79726         * lib/version-etc.h: Include stdarg.h.
79727         (version_etc_copyright): Declare as readonly.
79728         (version_etc): Make this function variadic with a NULL-terminated list
79729         of author name strings.
79730         (version_etc_va): New declaration.
79731         * lib/version-etc.c: Include stdarg.h, stdlib.h.
79732         (version_etc_copyright): Declare as readonly.
79733         (version_etc_va): New function. Provide a different translatable string
79734         for each possible number of authors < 10. Abbreviate when there are 10
79735         authors or more.
79736         (version_etc): Make this function variadic. Call version_etc_va.
79737         Suggestion from Gary V. Vaughan.
79738
79739         * lib/long-options.h (parse_long_options): Change prototype: the
79740         authors string is moved to the end and becomes variadic.
79741         * lib/long-options.c: Include stdarg.h.
79742         (parse_long_options): Make this function variadic, too.
79743         Call version_etc_va, not version_etc.
79744
79745 2003-10-06  Bruno Haible  <bruno@clisp.org>
79746
79747         * modules/version-etc-2: Remove file.
79748         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
79749
79750 2003-10-06  Bruno Haible  <bruno@clisp.org>
79751
79752         * modules/fatal-signal: New file.
79753         * MODULES.html.sh (func_all_modules): Add fatal-signal.
79754
79755 2003-10-06  Bruno Haible  <bruno@clisp.org>
79756
79757         * m4/fatal-signal.m4: New file.
79758         * m4/signalblocking.m4: New file, from GNU gettext.
79759
79760 2003-10-06  Bruno Haible  <bruno@clisp.org>
79761
79762         * lib/version-etc-2.h: Remove file.
79763         * lib/version-etc-2.c: Remove file.
79764
79765 2003-10-06  Bruno Haible  <bruno@clisp.org>
79766
79767         * lib/fatal-signal.h: New file, from GNU gettext.
79768         * lib/fatal-signal.c: New file, from GNU gettext.
79769
79770 2003-10-05  Paul Eggert  <eggert@twinsun.com>
79771
79772         * README: Rework advice for preventing empty .o files.
79773         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
79774         not <sys/types.h>.
79775
79776 2003-10-04  Karl Berry  <karl@gnu.org>
79777
79778         * lib/argp*: update from libc.
79779
79780 2003-10-04  Karl Berry  <karl@gnu.org>
79781
79782         * config/config.{guess,sub}: update from config.
79783
79784 2003-10-02  Bruno Haible  <bruno@clisp.org>
79785
79786         * modules/lchown (Include): Add lchown.h.
79787         * modules/time_r (Include): Use "..." syntax.
79788         * modules/xgetdomainname (Include): Add xgetdomainname.h.
79789
79790 2003-10-01  Simon Josefsson  <jas@extundo.com>
79791
79792         * MODULES.html.sh (func_all_modules): Move gethostname from section
79793         'based on' to section 'lacking' POSIX:2001.
79794
79795 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
79796
79797         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
79798         to output mode on the same stream.
79799
79800 2003-09-29  Paul Eggert  <eggert@twinsun.com>
79801
79802         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
79803         Fix arg typo in previous patch.
79804
79805 2003-09-28  Jim Meyering  <jim@meyering.net>
79806
79807         * lib/error.c: Correct cpp indentation.
79808
79809 2003-09-27  Paul Eggert  <eggert@twinsun.com>
79810
79811         * modules/free: New file.
79812
79813 2003-09-27  Paul Eggert  <eggert@twinsun.com>
79814
79815         * m4/free.m4: New file.
79816
79817 2003-09-27  Paul Eggert  <eggert@twinsun.com>
79818
79819         * lib/minmax.h (MIN, MAX)
79820         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
79821         Omit the special code that used __typeof__, since we worry that
79822         it could be more trouble than it's worth.  See:
79823         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
79824         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
79825
79826         * lib/free.c: New file.
79827
79828 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
79829
79830         Trivial fixes to Makefile.am parts of module listings.
79831         * modules/strstr: Append strstr.h to lib_SOURCES.
79832         * modules/strcase: Likewise, for strcase.h.
79833
79834 2003-09-27  Karl Berry  <karl@gnu.org>
79835
79836         * config/mkinstalldirs: update from automake.
79837
79838 2003-09-26  Paul Eggert  <eggert@twinsun.com>
79839
79840         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
79841         (error_tail): Do not loop, reallocating temporary buffer, since
79842         the output cannot contain more wide characters than the input
79843         contains bytes, the size must be big enough already.  This avoids
79844         one potential size overflow calculation.  Check for size overflow
79845         when calculating temporary buffer size.  Free temporary buffer
79846         when done, if it was allocated with malloc; this plugs a memory
79847         leak.  Remove casts from void * to pointers, that are no longer
79848         needed now that we're assuming C89 or better.
79849
79850         Merge error changes from glibc.
79851
79852         * lib/error.c, error.h: Update copyright notice header to match glibc.
79853         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
79854         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
79855         Disable cancellation while printing error.
79856         * lib/error.h: Prepend __ to parameter names.
79857
79858 2003-09-26  Jim Meyering  <jim@meyering.net>
79859
79860         * lib/error.c (error_tail): Move some declarations
79861         into inner scope where the local variables are used.
79862
79863 2003-09-26  Bruno Haible  <bruno@clisp.org>
79864
79865         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
79866         stpncpy().
79867         Don't define stpncpy through config.h; it's now done through stpncpy.h.
79868
79869 2003-09-26  Bruno Haible  <bruno@clisp.org>
79870
79871         * lib/stpncpy.h (gnu_stpncpy): New declaration.
79872         (stpncpy): Define as alias for gnu_stpncpy.
79873         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
79874
79875 2003-09-25  Simon Josefsson  <jas@extundo.com>
79876
79877         * lib/xgetdomainname.h: New file.
79878         * lib/xgetdomainname.c: New file.
79879
79880 2003-09-25  Simon Josefsson  <jas@extundo.com>
79881             Bruno Haible  <bruno@clisp.org>
79882
79883         * modules/getdomainname: New file.
79884         * modules/xgetdomainname: New file.
79885         * MODULES.html.sh (func_all_modules): Add getdomainname,
79886         xgetdomainname.
79887
79888 2003-09-25  Simon Josefsson  <jas@extundo.com>
79889             Bruno Haible  <bruno@clisp.org>
79890
79891         * m4/getdomainname.m4: New file.
79892
79893 2003-09-25  Simon Josefsson  <jas@extundo.com>
79894             Bruno Haible  <bruno@clisp.org>
79895
79896         * lib/getdomainname.h: New file.
79897         * lib/getdomainname.c: New file.
79898
79899 2003-09-25  Karl Berry  <karl@gnu.org>
79900
79901         * lib/argp-fmtstream.c, argp-help.c: update from libc.
79902
79903 2003-09-25  Karl Berry  <karl@gnu.org>
79904
79905         * config/install-sh: update from automake.
79906
79907 2003-09-25  Bruno Haible  <bruno@clisp.org>
79908
79909         * modules/version-etc-2: New file, from modules/version-etc with
79910         modifications.
79911         * MODULES.html.sh (func_all_modules): Add version-etc-2.
79912
79913 2003-09-25  Bruno Haible  <bruno@clisp.org>
79914
79915         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
79916         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
79917
79918 2003-09-24  Simon Josefsson  <jas@extundo.com>
79919
79920         * modules/xgethostname: Add xgethostname.h.
79921
79922 2003-09-24  Paul Eggert  <eggert@twinsun.com>
79923
79924         * lib/linebuffer.c (freebuffer): Don't free the argument, just
79925         the buffer associated with the argument.  Bug reported by
79926         Simon Josefsson.
79927
79928 2003-09-24  Paul Eggert  <eggert@twinsun.com>
79929
79930         * README: Document assumptions that 'int' is at least 32 bits
79931         wide, that integer arithmetic is 2's complement without overflow,
79932         that there are no holes in integer values, that adding sizes of
79933         two nonoverlapping objects can't overflow, and that all-bits-zero
79934         yields scalar zero.  Fix spelling and capitalization typos.
79935
79936 2003-09-19  Karl Berry  <karl@gnu.org>
79937
79938         * lib/argp.h: update from libc.
79939
79940 2003-09-17  Paul Eggert  <eggert@twinsun.com>
79941
79942         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
79943         to avoid spurious warnings like "AC_RUN_IFELSE was called before
79944         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
79945
79946 2003-09-17  Paul Eggert  <eggert@twinsun.com>
79947
79948         * gnulib-tool: Use "test -h", not "test -L", for portability
79949         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
79950         (tags_regexp): Remove, since \| doesn't conform to POSIX.
79951         (sed_extract_prog): Issue s commands one-by-one, rather than
79952         using \| in one s command.
79953
79954 2003-09-16  Paul Eggert  <eggert@twinsun.com>
79955
79956         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
79957         input error, instead of returning NULL the next time we are called
79958         (and therefore losing track of errno).
79959
79960 2003-09-16  Bruno Haible  <bruno@clisp.org>
79961
79962         * gnulib-tool (func_create_testdir): Warn about duplicated
79963         dependencies.
79964
79965 2003-09-15  Paul Eggert  <eggert@twinsun.com>
79966
79967         * modules/argmatch, modules/fatal, modules/obstack,
79968         modules/xalloc, modules/xgethostname: Sort dependencies by
79969         importance, not alphabetically.
79970
79971 2003-09-15  Paul Eggert  <eggert@twinsun.com>
79972
79973         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
79974         fails, so that the caller gets the proper errno.
79975
79976         * lib/readutmp.c (read_utmp): Likewise.
79977         Check for fstat error.  Close stream and free storage
79978         when failing.
79979
79980 2003-09-14  Karl Berry  <karl@gnu.org>
79981
79982         * config/srclist.txt (strdup.c): disable for c89 changes.
79983
79984 2003-09-14  Jim Meyering  <jim@meyering.net>
79985
79986         * lib/getloadavg.c: Correct cpp indentation.
79987         * lib/strdup.c: Likewise.
79988         * lib/vasnprintf.c: Likewise.
79989
79990 2003-09-14  Bruno Haible  <bruno@clisp.org>
79991
79992         * modules/fwriteerror: New file.
79993         * MODULES.html.sh (func_all_modules): Add fwriteerror.
79994
79995 2003-09-14  Bruno Haible  <bruno@clisp.org>
79996
79997         * lib/fwriteerror.h: New file.
79998         * lib/fwriteerror.c: New file.
79999
80000 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80001
80002         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
80003         modules/xgethostname, modules/xalloc: Depend on exit.
80004
80005 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80006
80007         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
80008
80009         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
80010         and AC_MINIX, too, so that their extensions are available.
80011
80012         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
80013         This macro has been superseded by gl_BACKUPFILE.
80014
80015         More patches to assume C89 or better.
80016
80017         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
80018
80019         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
80020         unconditionally.
80021         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
80022         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
80023         Include <string.h>, <stdlib.h> unconditionally.
80024         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
80025         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
80026         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
80027         headers or for string.h.
80028         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
80029         or strtoul.
80030
80031         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
80032         headers.
80033         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
80034         * m4/userspec.m4 (gl_USERSPEC): Likewise.
80035         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
80036         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
80037         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80038         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
80039         memcpy, memset.
80040         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
80041         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
80042         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
80043         strtol.
80044         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
80045         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
80046         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
80047         strtoul.
80048
80049 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80050
80051         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
80052         * lib/obstack.c [!defined _LIBC]: Likewise.
80053         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
80054         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
80055         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
80056
80057         More changes to assume C89 or better.
80058
80059         * lib/error.c (error_tail): Assume vprintf.
80060
80061         * lib/argmatch.c (getenv): Remove decl.
80062         * lib/progreloc.c (get_full_program_name): Define via prototype.
80063         * lib/setenv.c (clearenv): Likewise.
80064         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
80065         needed.
80066         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
80067         (malloc, memcpy): Remove decls.
80068         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
80069         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
80070         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
80071         (memcpy): Remove macro.
80072         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
80073         (__P): Remove.  All uses removed.
80074         (PTR): Remove.  All uses changed to void *.
80075         (CHAR_BIT, NULL): Remove.
80076         (spaces, zeros, memset_space, memset_zero)
80077         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
80078         Remove.
80079         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
80080         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
80081         Define with prototype.
80082         Remove now-unnecessary prototype decl.
80083         (extra_args_spec): Assume ANSI C.  All uses changed.
80084         (extra_args_spec_iso): Remove.
80085         (my_strftime, emacs_strftimeu): Define via prototype.
80086         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
80087         unconditionally.
80088         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
80089         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
80090         (strtoul, strtol): Remove decls.
80091         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
80092         LONG_MAX): Remove.
80093         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
80094         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
80095         (LOCALE_PARAM_PROTO): New macro.
80096         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
80097         (INTERNAL (strtol), strtol): Define with a prototype.
80098         (PARAMS): Remove.  All uses removed.
80099         * lib/tempname.c: Include <string.h> unconditionally.
80100         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
80101         * lib/xgethostname.c (main): Define with a prototype.
80102         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
80103         Include <stdlib.h> unconditionally.
80104         (calloc, malloc, realloc, free): Remove decls.
80105         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
80106         Include <stdlib.h> unconditionally.  Sort include file names.
80107         (strtod): Remove.
80108         (xstrtod): Define with a prototype.
80109         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
80110         (strtol, strtoul): Remove decls.
80111
80112 2003-09-11  Paul Eggert  <eggert@twinsun.com>
80113
80114         More patches to assume C89 or better.
80115         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
80116         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
80117         string.h, memchr, STDC_HEADERS.
80118
80119 2003-09-11  Paul Eggert  <eggert@twinsun.com>
80120
80121         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
80122         Include <stdlib.h>, <string.h> unconditionally.
80123         Remove now-unnecessary cast to char *.
80124         * lib/strnlen.c: Include <string.h> unconditionally.
80125         * lib/yesno.c (yesno): Define with a prototype.
80126
80127 2003-09-11  Bruno Haible  <bruno@clisp.org>
80128
80129         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
80130
80131 2003-09-10  Jim Meyering  <jim@meyering.net>
80132
80133         * lib/error.c: Correct indentation of cpp directives.
80134
80135 2003-09-10  Bruno Haible  <bruno@clisp.org>
80136
80137         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
80138         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
80139         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
80140         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
80141         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
80142         <stdlib.h> and <string.h> checks.
80143         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
80144         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
80145
80146 2003-09-10  Bruno Haible  <bruno@clisp.org>
80147
80148         * lib/strcspn.c: Include <string.h> unconditionally.
80149         * lib/strpbrk.c: Include <string.h> unconditionally.
80150         * lib/strstr.c: Include <string.h> unconditionally.
80151         * lib/unicodeio.c: Include <string.h> unconditionally.
80152         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
80153         * lib/unsetenv.c: Likewise.
80154         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
80155         * lib/yesno.c: Include <stdlib.h> unconditionally.
80156         (rpmatch): Add prototype.
80157
80158 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80159
80160         More patches to assume C89 or better.
80161         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
80162         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
80163         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
80164         or for string.h.
80165         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
80166         stdlib.h.
80167         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
80168         C headers.
80169         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
80170         string.h.
80171         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
80172         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
80173         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
80174         or for string.h.
80175         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
80176         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
80177         C headers.
80178         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
80179         memcpy.
80180         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
80181         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
80182         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
80183         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
80184         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
80185         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
80186         string.h, free.
80187         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
80188         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
80189         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
80190         C headers, or for string.h.
80191         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
80192         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
80193         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
80194         headers, memory.h, stdlib.h, string.h, strings.h.
80195         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
80196         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
80197         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
80198         strchr.
80199         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
80200         headers, memory.h, string.h.
80201         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
80202         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
80203         free.
80204         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
80205         headers.
80206         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
80207         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
80208         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
80209         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
80210         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
80211
80212 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80213
80214         More K&R removal.
80215
80216         * lib/acosl.c (main): Use a prototype.
80217         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
80218         tanl.c: Likewise.
80219
80220         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
80221
80222         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
80223         (getopt, etopt_long, getopt_long_only, _getopt_internal)
80224         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
80225         with a prototype.
80226         * lib/getopt.c (const): Remove macro.
80227         Include <string.h> unconditionally.
80228         (my_index): Remove; all uses changed to strchr.
80229         (strlen): Remove decl.
80230         (exchange): Remove forward decl; no longer needed.
80231         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
80232         Define with prototype.
80233         * lib/getopt1.c (const): Remove macro.
80234         (getopt_long, getopt_long_only, main): Define with prototype.
80235
80236         * lib/getugroups.c: Include <string.h> unconditionally.
80237
80238         * lib/getusershell.c: Include <stdlib.h> unconditionally.
80239         (getusershell, setusershell, endusershell, readname, main):
80240         Define with prototypes.
80241
80242         * lib/group-member.c: Include group-member.h first.
80243         Include <stdlib.h> unconditionally.
80244
80245         * lib/hard-locale.c: Include hard-locale.h first.
80246         Include <stdlib.h>, <string.h> unconditionally.
80247
80248         * lib/hash.c (free, malloc): Remove decls.
80249         Include <stdlib.h> unconditionally.
80250
80251         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
80252         (getenv): Do not declare.
80253
80254         * lib/idcache.c: Include <string.h> unconditionally.
80255
80256         * lib/long-options.c: Include long-options.h first, to test interface.
80257         Include <stdlib.h> unconditionally.
80258
80259         * lib/makepath.c: Include makepath.h first, to test interface.
80260         Include <stdlib.h> and <string.h> unconditionally.
80261
80262         * lib/linebuffer.c: Include <stdlib.h>.
80263         (free): Remove decl.
80264
80265         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
80266         stddef.h. rpl_malloc returns void *, not char *.
80267         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
80268         prototype.
80269
80270         * lib/md5.h: Include <limits.h> unconditionally.
80271         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
80272         (__P): Remove; all uses removed.
80273         * lib/md5.c: Include "md5.h" first.
80274         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
80275         md5_buffer, md5_process_bytes, md5_process_block):
80276         Define with prototypes.
80277         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
80278         * lib/sha.c: Include "sha.h" first.
80279         Include <stdlib.h>, <string.h> unconditionally.
80280
80281         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
80282         * lib/memcmp.c (__ptr_t): Likewise.
80283         * lib/memrchr.c (__ptr_t): Likewise.
80284         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
80285         Include <string.h> unconditionally.
80286         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
80287         * lib/memchr.c: Include <stdlib.h> unconditionally.
80288         * lib/memchr.c (LONG_MAX): Remove.
80289         * lib/memrchr.c (LONG_MAX): Likewise.
80290         * lib/memchr.c (__memchr): Define via a prototype.
80291         * lib/memrchr.c (__memrchr): Likewise.
80292         * lib/memcmp.c (__P): Remove, and remove all uses.
80293         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
80294         Remove forward decls; no longer needed.
80295         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
80296         Use types required by C89 in prototype.
80297
80298         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
80299         * lib/savedir.c: Likewise.
80300         * lib/mkdir.c (free): Remove decl.
80301         * lib/rmdir.c (rmdir): Define with a prototype.
80302         * lib/savedir.c: Include savedir.h first, to test interface.
80303
80304         * lib/mktime.c (STDC_HEADERS): Remove.
80305         Include <stdlib.h>, <string.h> unconditionally.
80306
80307         * lib/modechange.c: Include <stdlib.h> unconditionally.
80308         (malloc): Remove decl.
80309
80310         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
80311         (free): Remove decl.
80312
80313         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
80314         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
80315         (This type really should be intptr_t, but that's a C99ism.)
80316         (_obstack_memcpy): Remove: all uses changed to memcpy.
80317         Include <string.h> unconditionally.
80318         (struct obstack): Assume __STDC__ for types of members
80319         chunkfun, freefun, extra_arg.
80320         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
80321         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
80322         obstack_begin, obstack_specify_allocation,
80323         obstack_specify_allocation_with_arg, obstack_chunkfun,
80324         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
80325         Remove unprototyped decls and the macros that use them.
80326         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
80327         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
80328         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
80329         (defined __STDC__ && __STDC__)]:
80330         Remove nonprototyped code.
80331         Include <stdlib.h> unconditionally.
80332         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
80333         _obstack_allocated_p, _obstack_free, obstack_free,
80334         _obstack_memory_used, print_and_abort):
80335         Define using prototypes.
80336         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
80337         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
80338         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
80339         obstack_next_free, obstack_object_size, obstack_room) [0]:
80340         Remove unused, unprototyped code.
80341
80342         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
80343
80344         * lib/physmem.c (physmem_total, physmem_available, main): Define
80345         with prototypes.
80346
80347         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
80348         (main): Define with a prototype.
80349
80350         * lib/posixver.c (getenv): Remove decl.
80351
80352         * lib/putenv.c (malloc): Returns void *, not char *.
80353         Include <string.h> unconditionally.
80354         (strchr, memcpy, NULL): Do not define.
80355
80356         * lib/readtokens.c: Include readtokens.h first, to test interface.
80357         Include <stdlib.h>, <string.h> unconditionally.
80358         (init_tokenbuffer): Define with a prototype.
80359
80360         * lib/regex.c (PARAMS): Remove.  All uses removed.
80361         All uses of _RE_ARGS removed, too.
80362         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
80363         unconditionally.
80364         (bzero): Assume memset exists.
80365         (memcmp, memcpy, NULL): Remove.
80366         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
80367         char, or assignments to local vars of type signed char.
80368         (init_syntax_once, PREFIX(extract_number_and_incr),
80369         PREFIX(print_partial_compiled_pattern),
80370         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
80371         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
80372         PREFIX(regex_grow_registers), PREFIX(regex_compile),
80373         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
80374         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
80375         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
80376         wcs_compile_range, byte_compile_range, truncate_wchar,
80377         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
80378         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
80379         count_mbs_length, wcs_re_match_2_internal,
80380         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
80381         PREFIX(alt_match_null_string_p),
80382         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
80383         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
80384         regfree, PREFIX(extract_number)): Define with prototype.  Remove
80385         now-unnecessary declaration, if any.
80386         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
80387         regcomp, regexec):
80388         Remove now-unnecessary casts among pointer types.
80389         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
80390
80391         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
80392         (free): Remove decl.
80393
80394         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
80395
80396         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
80397         (free): Remove decl.
80398
80399         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
80400         * lib/xgetcwd.c: Likewise.
80401
80402         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
80403         (free): Remove decl.
80404
80405         * lib/strchrnul.c (strchrnul): Define with a prototype.
80406         Fix bug: c_in was not converted to char before searching.
80407
80408         The following changes are not K&R related:
80409
80410         * lib/group-member.h: Include <sys/types.h>, so that this file is
80411         self-contained.
80412         * lib/makepath.h: Likewise.
80413
80414         * lib/getusershell.c (readname, default_index, line_size, readname):
80415         Use size_t, not int, for sizes.
80416         (readname): If the size overflows, report an error instead of
80417         looping forever.
80418
80419 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80420
80421         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
80422         libc.
80423
80424 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80425
80426         * README: New section: portability guidelines.
80427
80428 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
80429
80430         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
80431         C89 spec.
80432
80433 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
80434
80435         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
80436
80437 2003-09-08  Paul Eggert  <eggert@twinsun.com>
80438
80439         Assume C89 or better; remove K&R cruft.
80440         A few of these changes were first proposed by Derek Robert Price
80441         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
80442
80443         * lib/addext.c: Include <string.h> unconditionally.
80444         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
80445         Don't declare getenv or malloc.
80446
80447         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
80448         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
80449         (NULL): Remove.
80450         (find_stack_direction, alloca): Use prototypes.
80451
80452         * lib/atexit.c (atexit): Define using a prototype.
80453
80454         * lib/basename.c, dirname.c, stripslash.c:
80455         Include <string.h> unconditionally.
80456
80457         * lib/bcopy.c: Include <stddef.h>.
80458         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
80459
80460         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
80461
80462         * lib/error.h (error, error_at_line, error_print_progname)
80463         [! (defined (__STDC__) && __STDC__)]: Remove decls.
80464         * lib/error.c: Include error.h first, to check interface.
80465         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
80466         (VA_START): Remove; all uses changeed to va_start.
80467         (exit, strerror): Remove decls.
80468         (error_print_progname): Prototype uncondionally.
80469         Don't include <errno.h>; no longer needed.
80470         (private_strerror): Remove.
80471         (error_tail): Always define.
80472         (error, error_at_line): Assume C89 or better; always use prototypes.
80473         * lib/fatal.c: Include "fatal.h" first, to test interface.
80474         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
80475         (VA_START): Remove; all uses changed to va_start.
80476         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
80477         this case.
80478         (exit): Remove decl.
80479         (fatal): Prototype unconditionally.  Assume va_start works.
80480         Abort at end, to pacify gcc.
80481
80482         * lib/euidaccess.c (main): Define with a prototype.
80483
80484         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
80485
80486         * lib/exitfail.c: Include <stdlib.h> unconditionally.
80487
80488         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
80489         prototypes.
80490         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
80491         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
80492         (getenv): Remove decl.
80493         (fnmatch): Define using a prototype.
80494         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
80495         (FCT): Define using a prototype.
80496
80497         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
80498
80499         * lib/gethostname.c: Include <stddef.h>.
80500         (gethostname): Define with prototype.  Length is size_t, not int.
80501
80502 2003-09-08  Paul Eggert  <eggert@twinsun.com>
80503
80504         Assume C89 or better; remove K&R cruft.
80505         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
80506         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
80507         string.h, getenv, malloc.
80508         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
80509         headers.
80510         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
80511         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
80512         do not check for strerror.
80513         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
80514         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
80515         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
80516         do not check for doprnt or vprintf.
80517         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
80518         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
80519
80520 2003-09-08  Paul Eggert  <eggert@twinsun.com>
80521
80522         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
80523         getversion.c should have been removed then, but was accidentally
80524         preserved.
80525
80526         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
80527         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
80528
80529 2003-09-08  Karl Berry  <karl@gnu.org>
80530
80531         * config/config.sub, config.guess, srclistvars.sh: update from savannah
80532                 config, forget about prep.
80533
80534         * config/depcomp, missing: update from automake.
80535
80536 2003-09-07  Paul Eggert  <eggert@twinsun.com>
80537
80538         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
80539         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
80540
80541 2003-09-07  Paul Eggert  <eggert@twinsun.com>
80542
80543         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
80544         copy_tm_result.  Bug reported by Simon Josefsson in
80545         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
80546
80547 2003-09-06  Paul Eggert  <eggert@twinsun.com>
80548
80549         * m4/time_r.m4: New file.
80550         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
80551         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
80552         is. Check for timegm declaration.
80553         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
80554         Do not check for gmtime_r.
80555         Replace mktime if __mktime_internal does not exist and if mktime
80556         hasn't been replaced already.
80557
80558 2003-09-06  Paul Eggert  <eggert@twinsun.com>
80559
80560         * lib/time_r.c, lib/time_r.h: New files.
80561
80562         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
80563         __localtime_r.
80564         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
80565         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
80566
80567         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
80568         __gmtime_r.
80569         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
80570         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
80571         Include <time_r.h>.
80572
80573         * lib/timegm.c: Switch to glibc implementation, with the following
80574         changes:
80575         [defined HAVE_CONFIG_H]: Include <config.h>.
80576         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
80577         (__mktime_internal) [!defined _LIBC]: New decl.
80578         (__gmtime_r) [!defined _LIBC]: New macro and function.
80579         (timegm): Use a prototype, since gnulib assumes C89.
80580         Do not bother declaring tmp to be const, as it's not really usefu.
80581         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
80582         (timegm): Declare only if HAVE_DECL_TIMEGM.
80583
80584 2003-09-06  Paul Eggert  <eggert@twinsun.com>
80585
80586         * MODULES.html.sh (func_all_modules): Add time_r.
80587         * modules/time_r: New file.
80588         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
80589         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
80590
80591 2003-09-03  Paul Eggert  <eggert@twinsun.com>
80592
80593         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
80594         Bug reported by Lute Kamstra in
80595         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
80596
80597         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
80598         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
80599         course with correspondingly smaller numbers for tomorrow and
80600         yesterday.  From Tadayoshi Funaba.  Originally installed into
80601         sh-utils on 1999-08-07, but the patch got lost (I guess during the
80602         coreutils merge?).
80603
80604 2003-08-31  Simon Josefsson  <jas@extundo.com>
80605
80606         * modules/timegm: New file.
80607         * MODULES.html.sh (func_all_modules): Add timegm.
80608
80609 2003-08-31  Simon Josefsson  <jas@extundo.com>
80610
80611         * m4/timegm.m4: New file.
80612
80613 2003-08-31  Simon Josefsson  <jas@extundo.com>
80614
80615         * lib/timegm.h: New file.
80616         * lib/timegm.c: New file.  Based on
80617         wget-1.8.2/src/http.c:mktime_from_utc.
80618
80619 2003-08-31  Karl Berry  <karl@gnu.org>
80620
80621         * lib/argp.h: update from libc.
80622
80623 2003-08-28  Bruno Haible  <bruno@clisp.org>
80624
80625         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
80626         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
80627         followed by '#define fnmatch fnmatch_posix' gives an error.
80628
80629 2003-08-28  Bruno Haible  <bruno@clisp.org>
80630
80631         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
80632         warning on QNX, which defines O_BINARY to 000000.
80633
80634 2003-08-27  Jim Meyering  <jim@meyering.net>
80635
80636         * m4/mkstemp.m4: Require that the system mkstemp be able to create
80637         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
80638         would fail after 32.  Reported by Danny Levinson.  Details here:
80639         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
80640
80641 2003-08-24  Bruno Haible  <bruno@clisp.org>
80642
80643         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
80644         MSVC7 <stdio.h> is included later.
80645
80646 2003-08-22  Simon Josefsson  <jas@extundo.com>
80647
80648         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
80649
80650 2003-08-20  Karl Berry  <karl@gnu.org>
80651
80652         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
80653
80654 2003-08-20  Bruno Haible  <bruno@clisp.org>
80655
80656         * modules/progname: New file.
80657         * MODULES.html.sh (func_all_modules): Add progname.
80658
80659 2003-08-20  Bruno Haible  <bruno@clisp.org>
80660
80661         * lib/progname.h: New file, from GNU gettext.
80662         * lib/progname.c: New file, from GNU gettext.
80663         * lib/progreloc.c: New file, from GNU gettext.
80664
80665 2003-08-19  Jim Meyering  <jim@meyering.net>
80666
80667         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
80668         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
80669
80670 2003-08-19  Bruno Haible  <bruno@clisp.org>
80671
80672         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
80673         more.
80674
80675 2003-08-19  Bruno Haible  <bruno@clisp.org>
80676
80677         * lib/xstrdup.c: Assume <string.h> exists.
80678
80679 2003-08-18  Paul Eggert  <eggert@twinsun.com>
80680
80681         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
80682         in makefile rules.
80683
80684 2003-08-18  Jim Meyering  <jim@meyering.net>
80685
80686         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
80687         * m4/lib-ld.m4: Likewise.
80688
80689 2003-08-18  Jim Meyering  <jim@meyering.net>
80690
80691         * lib/setenv.h: Indent nested cpp directive.
80692         * lib/vasnprintf.c: Remove trailing blanks.
80693
80694 2003-08-17  Simon Josefsson  <jas@extundo.com>
80695
80696         * modules/xstrndup: New file.
80697         * MODULES.html.sh (func_all_modules): Add xstrndup.
80698
80699 2003-08-17  Simon Josefsson  <jas@extundo.com>
80700
80701         * modules/argp: Fix autoconf macro name. Add more dependencies.
80702
80703 2003-08-17  Simon Josefsson  <jas@extundo.com>
80704
80705         * m4/xstrndup.m4: New file.
80706
80707 2003-08-17  Simon Josefsson  <jas@extundo.com>
80708
80709         * m4/argp.m4: New file.
80710
80711 2003-08-17  Simon Josefsson  <jas@extundo.com>
80712             Bruno Haible  <bruno@clisp.org>
80713
80714         * lib/xstrndup.h: New file.
80715         * lib/xstrndup.c: New file.
80716
80717 2003-08-17  Bruno Haible  <bruno@clisp.org>
80718
80719         * modules/strndup (Files, Include): Add lib/strndup.h.
80720
80721 2003-08-17  Bruno Haible  <bruno@clisp.org>
80722
80723         * modules/euidaccess (Files): Add lib/euidaccess.h.
80724
80725 2003-08-17  Bruno Haible  <bruno@clisp.org>
80726
80727         * lib/strndup.h: New file.
80728
80729 2003-08-17  Bruno Haible  <bruno@clisp.org>
80730
80731         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
80732         like AC_GNU_SOURCE.
80733         * modules/extensions (configure.ac): Comment out the invocation of
80734         gl_USE_SYSTEM_EXTENSIONS.
80735
80736 2003-08-16  Paul Eggert  <eggert@twinsun.com>
80737
80738         Merges from coreutils, etc.
80739         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
80740         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
80741         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
80742         fixing a typo.
80743         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
80744         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
80745
80746 2003-08-16  Paul Eggert  <eggert@twinsun.com>
80747
80748         Document merge from coreutils.
80749         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
80750         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
80751         * modules/utime: Add m4/utimes-null.m4.
80752
80753 2003-08-16  Paul Eggert  <eggert@twinsun.com>
80754
80755         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
80756         space, undoing this 2003-08-12 change:
80757         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
80758
80759 2003-08-16  Paul Eggert  <eggert@twinsun.com>
80760
80761         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
80762         strtoul.c from libc, undoing this 2003-08-12 change:
80763         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
80764
80765 2003-08-16  Jim Meyering  <jim@meyering.net>
80766
80767         Merges from coreutils.
80768         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
80769         prefix.  Adjust cache variables similarly.  Create 500 rather than
80770         just 300 files, to exercise bug on Darwin6.5, too.
80771         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
80772         $missing_dir.
80773         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
80774         AM_SYS_POSIX_TERMIOS.
80775         Reported by mkc@mathdogs.com.
80776         Also change use of $am_cv_sys_posix_termios
80777         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
80778         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
80779         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
80780         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
80781         in /proc/mounts until it finds one with matching device number.  This
80782         is unnecessary when the FILE argument *is* a mount point.  No stat call
80783         is necessary in that case.  So, disable the statvfs-testing code on
80784         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
80785         as RedHat bug# 84846.
80786         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
80787         to 1MB, so as not to render systems with no stack size limit (e.g.,
80788         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
80789         Include <unistd.h>.  On some systems,
80790         it is required for the definition of _SC_PAGESIZE.
80791
80792 2003-08-16  Jim Meyering  <jim@meyering.net>
80793
80794         Merge from coreutils.
80795         * lib/xstrtoimax.c: #else #if -> #elif.
80796         * lib/xstrtoumax.c: Likewise.
80797
80798 2003-08-16  Jim Meyering  <jim@meyering.net>
80799
80800         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
80801         * m4/utimes.m4: Removed.
80802         * m4/utimes-null.m4: Renamed from utimes.m4.
80803
80804         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
80805         to 1MB, so as not to render systems with no stack size limit (e.g.,
80806         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
80807         Include <unistd.h>.  On some systems,
80808         it is required for the definition of _SC_PAGESIZE.
80809
80810 2003-08-16  Jim Meyering  <jim@meyering.net>
80811         and Paul Eggert  <eggert@cs.ucla.edu>
80812
80813         Merges from coreutils, etc.
80814
80815         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
80816         using the latest version from cvs.  This avoids problems with #line
80817         directives using a vendor (Sun) compiler.
80818         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
80819         Don't set GETGROUPS_LIB here; now it's
80820         done via getgroups.m4's wrapper function.
80821         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
80822         rather than just in sh-util/configure.in, so that the
80823         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
80824         same.
80825         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
80826         AC_FUNC_GETLOADAVG where to find getloadavg.c.
80827         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
80828         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
80829         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
80830         Remove code that is now done by the newly-required macros.
80831         Append $(EXEEXT) to DF_PROG.
80832         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
80833         Do not invoke or require the following here,
80834         since prereq.m4 or some gnulib .m4 now does this for us:
80835         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
80836         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
80837         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
80838         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
80839         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
80840         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
80841         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
80842         AC_FUNC_OBSTACK.
80843         Do not replace the following functions, as this is now the job
80844         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
80845         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
80846         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
80847         atexit getpass, strdup, getpagesize.
80848         Replace 'raise'.
80849         Do not check for the following functions, as this is now the job
80850         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
80851         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
80852         setregid.
80853         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
80854         Check for sys/sysctl.h.
80855         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
80856         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
80857         of checking for ssize_t ourselves.
80858
80859         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
80860         Require every macro that gnulib/modules/* suggests for us.
80861         (jm_PREREQ_ADDEXT): New macro.
80862         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
80863         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
80864
80865         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
80866         (gl_PHYSMEM): Use it.
80867         Also check for `table' function.
80868         Check for new headers and functions.
80869         Add check for sys/sysmp.h.
80870         With suggestions from Kaveh Ghazi.
80871         Ignore headers that are present but cannot be compiled.  This
80872         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
80873         C 5.4.
80874
80875 2003-08-15  Paul Eggert  <eggert@twinsun.com>
80876
80877         Document merge from coreutils.
80878         * modules/userspec: Depend on posixver.
80879         * modules/strftime: Depend on tzset.
80880
80881 2003-08-15  Paul Eggert  <eggert@twinsun.com>
80882
80883         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
80884         rather than tab, after '#' in shell-script copyright notices.
80885         Suggested by Bruno Haible.
80886
80887 2003-08-15  Paul Eggert  <eggert@twinsun.com>
80888
80889         * config/srclist-update: Use three spaces, rather than tab, after '#'
80890         in shell-script copyright notices.  Suggested by Bruno Haible.
80891         Remove unnecessary parenthesization in regular expression.
80892
80893 2003-08-15  Jim Meyering  <jim@meyering.net>
80894
80895         Merge from coreutils.
80896         * lib/xgethostname.c: Include <stdlib.h>.
80897         (xghostname): Don't exit for anything other than memory-related
80898         failure; just return NULL.
80899         * lib/userspec.c: Include "posixver.h".
80900         (parse_user_spec): Accept `.' as a separator only
80901         in pre-POSIX-200112 mode.
80902         * lib/strtoimax.c: Use #elif rather than #else #if.
80903         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
80904         Remove function, now that we can rely on a working tzset function.
80905         [!_LIBC]: Ensure that the required autoconf test has been run.
80906         [!defined _NL_CURRENT && HAVE_STRFTIME]:
80907         Use underlying_strftime for %r.
80908         * lib/sha.c: Merge in some clean-up and optimization changes from
80909         glibc.
80910         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
80911         Ensure that it is a multiple of 64.
80912         Rearrange loop exit tests so as to avoid performing an
80913         additional fread after encountering an error or EOF.
80914         * lib/realloc.c: Update copyright date.
80915
80916 2003-08-15  Jim Meyering  <jim@meyering.net>
80917         and Paul Eggert  <eggert@twinsun.com>
80918
80919         Merge from coreutils.
80920         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
80921         member but strut utmpx does not.  Needed for AIX 4.3.3.
80922         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
80923
80924 2003-08-15  Jim Meyering  <jim@meyering.net>
80925         and Paul Eggert  <eggert@cs.ucla.edu>
80926
80927         Merges from coreutils, etc.
80928         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
80929         Require gl_FUNC_TZSET_CLOBBER.
80930         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
80931         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
80932         members.
80933
80934 2003-08-14  Paul Eggert  <eggert@twinsun.com>
80935
80936         Help the merge from coreutils.
80937         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
80938         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
80939         * m4/tzset.m4: Use it too.
80940
80941 2003-08-14  Paul Eggert  <eggert@twinsun.com>
80942
80943         * modules/tzset: New file.
80944
80945 2003-08-14  Jim Meyering  <jim@meyering.net>
80946
80947         Merges from coreutils.
80948         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
80949         variable names, rather than @FNMATCH_H@.
80950         * modules/alloca: Likewise for $(ALLOCA_H).
80951
80952         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
80953         the three copies of the literal target, `fnmatch.h'.
80954         * modules/alloca (alloca.h): Likewise.
80955
80956 2003-08-14  Jim Meyering  <jim@meyering.net>
80957
80958         Merge from coreutils.
80959         * m4/tzset.m4: New file.
80960         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
80961         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
80962         otherwise, AIX 5.1 systems would end up using the latter.
80963         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
80964         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
80965         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
80966         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
80967
80968 2003-08-14  Jim Meyering  <jim@meyering.net>
80969
80970         Merge from coreutils.
80971         * lib/obstack.h: Whitespace changes.
80972         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
80973         and xcalloc return values.
80974         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
80975         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
80976         hang on OSF/1 5.1 for DIR on both local and remote file systems.
80977         Reported by (and fix confirmed by) Nelson H. F. Beebe.
80978         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
80979         error from mntctl.
80980         Use mntctl's return value to drive the entry-processing loop, since
80981         we can't rely on the value of the vmt_length member in the last
80982         entry.  On some systems doing so could result in exhausting
80983         virtual memory.  Based in part on a patch from Mike Jetzer.
80984
80985 2003-08-14  Jim Meyering  <jim@meyering.net>
80986         and Paul Eggert  <eggert@twinsun.com>
80987
80988         Merges from coreutils, plus other fixes.
80989         * lib/physmem.c: Merge in portability changes from gcc/libiberty
80990         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
80991         for credits and details.  Thanks to Kaveh Ghazi for helping
80992         to keep these files in sync.
80993         (ARRAY_SIZE): Define it.
80994         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
80995         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
80996         (memcasecmp): Don't assume size_t fits in unsigned int.
80997         Remove casts and duplicate code.
80998         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
80999         (memcpy): Remove definition.
81000         Merge in some clean-up and optimization changes from glibc.
81001         [BLOCKSIZE]: Move definition to top of file.
81002         Ensure that it is a multiple of 64.
81003         Rearrange loop exit tests so as to avoid performing an
81004         additional fread after encountering an error or EOF.
81005         * lib/md5.h (md5_uintptr): Define.
81006         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
81007         return to the initial working directory.  Preserve errno
81008         for caller.
81009         * lib/idcache.c: Include "xalloc.h".
81010         (xmalloc, xrealloc): Remove decls.
81011         (getuser): Remove casts no longer required in C89.
81012         * lib/human.c: Include stdio.h, for sprintf.
81013         * lib/group-member.c: Include "xalloc.h".
81014         (xmalloc, xrealloc): Remove decls.
81015         (get_group_info): Remove casts no longer required in C89.
81016         * lib/getusershell.c (readname): Remove casts no longer required in
81017         C89.
81018         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
81019         * lib/getline.c: Whitespace fix, from coreutils.
81020
81021 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81022
81023         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
81024         Check for isascii.
81025
81026         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
81027         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
81028         Undo previous (whitespace-only) change.
81029
81030 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81031
81032         * lib/exclude.c: Include <ctype.h>
81033         (IN_CTYPE_DOMAIN): New macro.
81034         (is_space): New fn.
81035         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
81036         and empty lines.
81037
81038         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
81039         Undo previous (whitespace-only) change.
81040
81041 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81042
81043         * config/srclist-update: Change update back to the old behavior,
81044         leaving whitespace alone.  Use one 'sed' command rather than a
81045         pipeline.
81046         (fixlicense): Now a variable, not a function.
81047         (remove_trailing_blanks): Remove.
81048         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
81049         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
81050         Undo previous (whitespace-only) change.
81051
81052 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81053
81054         Merge from coreutils.
81055         * modules/euidaccess: Add lib_SOURCES, include for new
81056         file euidaccess.h
81057
81058 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81059
81060         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
81061         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
81062         Normalize leading white space and remove trailing white space.
81063
81064         Merge from coreutils
81065         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
81066
81067         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
81068         0.12.1.  These files are now being upgraded automatically by
81069         ../config/srclist-update.
81070
81071 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81072
81073         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
81074         Normalize leading white space and remove trailing white space.
81075         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
81076         notice, as per ../config/srclist-update.
81077
81078         Merge from coreutils.
81079         * lib/euidaccess.h: New file.
81080         * lib/euidaccess.c: Include it.
81081         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
81082         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
81083         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
81084
81085 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81086
81087         * config/srclist-update: Add copyright notice.
81088         (remove_id_lines, remove_trailing_blanks): New constants.
81089         (fixfile): Use them to normalize spacing a bit in copied files.
81090         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
81091         Normalize leading white space and remove trailing white space.
81092
81093         * config/texinfo.tex: Sync with texinfo.
81094
81095         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
81096         strtoul.c from libc, to merge coreutils whitespace changes.
81097
81098         * config/srclist.txt: Get the following m4 files from gettext:
81099         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
81100         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
81101         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
81102         wint_t.m4.
81103
81104 2003-08-12  Karl Berry  <karl@gnu.org>
81105
81106         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
81107         been made.
81108
81109 2003-08-11  Paul Eggert  <eggert@twinsun.com>
81110
81111         * modules/gnu-source, m4/gnu-source.m4:
81112         Remove; we're assuming Autoconf 2.54 or later now.
81113         Suggested by Bruno Haible.
81114         * MODULES.html.sh (func_all_modules): Remove gnu-source.
81115
81116 2003-08-11  Bruno Haible  <bruno@clisp.org>
81117
81118         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
81119
81120 2003-08-11  Bruno Haible  <bruno@clisp.org>
81121
81122         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
81123         (vasnprintf): Use it instead of wcslen.
81124
81125 2003-08-11  Bruno Haible  <bruno@clisp.org>
81126
81127         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
81128         value to ensure that _Bool promotes to int. Use #define for _Bool when
81129         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
81130
81131 2003-08-10  Karl Berry  <karl@gnu.org>
81132
81133         * lib/regex.h: update from libc (whitespace fix).
81134
81135 2003-08-09  Paul Eggert  <eggert@twinsun.com>
81136
81137         Merge some files from coreutils.  These changes were
81138         originally made by Jim Meyering.
81139         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
81140         many older Unixes require this.
81141         * lib/alloca.c (alloca): Remove cast to argument of free;
81142         no longer needed in C89.
81143         * lib/alloca_.h, regex.h: Fix white space to match
81144         what GNU indent does.
81145
81146 2003-08-09  Paul Eggert  <eggert@twinsun.com>
81147
81148         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
81149         apparently Emacs's Unicode mode got confused before my 2003-08-05
81150         checkin.
81151
81152 2003-08-08  Paul Eggert  <eggert@twinsun.com>
81153
81154         * m4/extensions.m4: New file.
81155         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
81156         Require gl_USE_SYSTEM_EXTENSIONS.
81157         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
81158         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
81159
81160 2003-08-08  Paul Eggert  <eggert@twinsun.com>
81161
81162         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
81163         * modules/extensions, modules/gnu-source: New files.
81164         * modules/timespec, modules/unlocked-io: Depend on extensions.
81165
81166 2003-08-07  Paul Eggert  <eggert@twinsun.com>
81167
81168         * modules/restrict: New file.
81169         * MODULES.html.sh (func_all_modules): Add restrict.
81170         * modules/regex: Depend on restrict.
81171
81172 2003-08-07  Paul Eggert  <eggert@twinsun.com>
81173
81174         * m4/restrict.m4: New file.
81175         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
81176
81177 2003-08-07  Bruno Haible  <bruno@clisp.org>
81178
81179         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
81180         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
81181
81182 2003-08-07  Bruno Haible  <bruno@clisp.org>
81183
81184         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
81185         makes the module 'getndelim2' compatible with the module 'getline'.
81186
81187 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81188
81189         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
81190         byte with "\201" to avoid glitches when editing that source file
81191         with multi-gnome-terminal.
81192
81193 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81194
81195         * lib/bumpalloc.h: Remove.
81196
81197 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81198
81199         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
81200         * modules/bumpalloc: Remove.
81201
81202 2003-08-04  Paul Eggert  <eggert@twinsun.com>
81203
81204         * lib/getloadavg.c: Change copyright notice and spacing to conform to
81205         GNU coding style.
81206
81207         Merge from coreutils.
81208         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
81209         1. From glibc.
81210         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
81211         from Karl Berry, implemented by Jim Meyering.
81212         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
81213         from Dmitry V. Levin.
81214         Remove anachronistic cast of xrealloc.
81215         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
81216         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
81217         type. Otherwise, it wouldn't compile with at least /bin/cc on
81218         ymp-cray-unicos9.0.2.X.
81219         Combine two mostly-identical uses of alloca into one.
81220         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
81221
81222 2003-08-04  Dave Love  <d.love@dl.ac.uk>
81223
81224         [From Emacs.]
81225
81226         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
81227         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
81228         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
81229         obsolete NLIST_NAME_UNION.
81230         [__GNU__]: Undef BSD and FSCALE.
81231         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
81232
81233 2003-08-03  Paul Eggert  <eggert@twinsun.com>
81234
81235         * lib/stdbool_.h (_Bool): Make it signed char, instead of
81236         an enum type, so that it's guaranteed to promote to int.  See:
81237         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
81238
81239 2003-08-03  Karl Berry  <karl@gnu.org>
81240
81241         * config/depcomp: update from automake.
81242
81243 2003-07-31  Paul Eggert  <eggert@twinsun.com>
81244
81245         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
81246         (strerror): Don't assume that a printable int fits in 14 bytes.
81247
81248 2003-07-31  Bruno Haible  <bruno@clisp.org>
81249
81250         * modules/getpass-gnu: New file.
81251         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
81252
81253 2003-07-31  Bruno Haible  <bruno@clisp.org>
81254
81255         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
81256
81257 2003-07-24  Karl Berry  <karl@gnu.org>
81258
81259         * config/missing: update from automake.
81260
81261 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
81262             Bruno Haible  <bruno@clisp.org>
81263
81264         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
81265         * lib/getline.c (getline, getdelim): Likewise.
81266         Remove _GNU_SOURCE define; now it's defined in config.h through
81267         m4/getline.m4.
81268
81269 2003-07-23  Karl Berry  <karl@gnu.org>
81270
81271         * config/config.sub: update from prep.
81272
81273 2003-07-22  Paul Eggert  <eggert@twinsun.com>
81274
81275         * modules/xalloc (Depends-on): Add exitfail.
81276         * modules/xmemcoll: Likewise.
81277
81278 2003-07-22  Paul Eggert  <eggert@twinsun.com>
81279
81280         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
81281         over-parenthesization in macros.
81282
81283         Sync with coreutils.
81284
81285         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
81286         required by C99.
81287
81288         Use `exit_failure' for xalloc and xmemcoll instead of their own
81289         private exit-failure variables.
81290         * lib/xalloc.h (xalloc_exit_failure): Remove.
81291         * lib/xmalloc.c: Likewise.  Include exitfail.h.
81292         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
81293         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
81294         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
81295         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
81296
81297 2003-07-20  Jim Meyering  <jim@meyering.net>
81298
81299         * modules/closeout (Depends-on): Add exitfail.
81300         Suggestion from Bruno Haible.
81301
81302 2003-07-19  Karl Berry  <karl@gnu.org>
81303
81304         * config/config.sub: update from prep.
81305
81306 2003-07-18  Paul Eggert  <eggert@twinsun.com>
81307
81308         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
81309         Remove.
81310         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
81311         to test that it can stand by itself.  Include "exitfail.h".
81312         Clients should set exit_failure instead.
81313         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
81314
81315 2003-07-18  Bruno Haible  <bruno@clisp.org>
81316
81317         * modules/getndelim2: New file.
81318         * modules/getline: Share files with module getndelim2.
81319         * modules/getnline: Depend on getndelim2 instead of sharing files with
81320         it. Add getnline.c to lib_SOURCES.
81321         * MODULES.html.sh (func_all_modules): Add getndelim2.
81322
81323 2003-07-18  Bruno Haible  <bruno@clisp.org>
81324
81325         * m4/getndelim2.m4: New file.
81326         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
81327         invoke gl_PREREQ_GETNDELIM2.
81328         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
81329         gl_PREREQ_GETNDELIM2.
81330         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
81331         gl_GETNDELIM2.
81332
81333 2003-07-18  Bruno Haible  <bruno@clisp.org>
81334
81335         * lib/getndelim2.h: New file.
81336         * lib/getndelim2.c: Make into a module of its own. Include config.h,
81337         getndelim2.h.
81338         (getndelim2): Make non-static. Change return type to ssize_t.
81339         * lib/getline.h: Change argument names.
81340         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
81341         * lib/getnline.c: Include getndelim2.h.
81342
81343 2003-07-18  Andreas Schwab  <schwab@suse.de>
81344
81345         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
81346
81347 2003-07-17  Karl Berry  <karl@gnu.org>
81348
81349         * config/config.sub: update from prep.
81350
81351 2003-07-17  Bruno Haible  <bruno@clisp.org>
81352
81353         * modules/getnline: New file.
81354         * modules/getline: Add lib/getndelim2.c to source file list.
81355         * MODULES.html.sh (func_all_modules): Add getnline.
81356
81357 2003-07-17  Bruno Haible  <bruno@clisp.org>
81358
81359         * m4/getnline.m4: New file.
81360
81361 2003-07-17  Bruno Haible  <bruno@clisp.org>
81362
81363         * m4/Makefile.am.in: Remove file.
81364         * m4/Makefile.am: Remove file.
81365         * m4/Makefile.in: Remove file.
81366
81367 2003-07-17  Bruno Haible  <bruno@clisp.org>
81368
81369         * lib/getnline.h: New file.
81370         * lib/getnline.c: New file.
81371         * lib/getndelim2.c: New file, extracted from getline.c.
81372         (getndelim2): Renamed from getdelim2, with added nmax argument.
81373         * lib/getline.c: Include getndelim2.c.
81374         (getdelim2): Moved out to getndelim2.c.
81375         (getline, getdelim): Update.
81376
81377 2003-07-17  Bruno Haible  <bruno@clisp.org>
81378
81379         * lib/Makefile.am: Remove file.
81380         * lib/Makefile.in: Remove file.
81381
81382 2003-07-17  Bruno Haible  <bruno@clisp.org>
81383
81384         * configure.in: Remove file.
81385         * Makefile.in: Remove file.
81386
81387 2003-07-17  Bruno Haible  <bruno@clisp.org>
81388
81389         * MODULES.html.sh: Put the </BODY> right before </HTML>.
81390
81391 2003-07-16  Karl Berry  <karl@gnu.org>
81392
81393         * config/srclist-update: was running fixlicense twice, which caused
81394                 texinfo.tex to be nullified for some reason.  Simplify,
81395                 $gplsrc is no longer needed as far as I can see?
81396
81397 2003-07-16  Jim Meyering  <jim@meyering.net>
81398
81399         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
81400
81401 2003-07-15  Paul Eggert  <eggert@twinsun.com>
81402
81403         * config/srclist.txt: Get the following files from gettext-runtime/intl
81404         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
81405         ref-del.sin.  From Bruno Haible.
81406         * config/srclist-update (fixfile): Change grep pattern again, since the
81407         previous fix didn't work (there was another trailing $).  Use
81408         '[$]' to escape the $s.
81409
81410 2003-07-15  Karl Berry  <karl@gnu.org>
81411
81412         * lib/vasnprintf.c: update from gettext.
81413
81414 2003-07-15  Karl Berry  <karl@gnu.org>
81415
81416         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
81417         gets expanded when surrounded by '$'.
81418
81419 2003-07-15  Jim Meyering  <jim@meyering.net>
81420
81421         * modules/save-cwd: Don't depend on error.  From Derek Price.
81422
81423 2003-07-15  Jim Meyering  <jim@meyering.net>
81424
81425         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
81426
81427 2003-07-14  Simon Josefsson  <jas@extundo.com>
81428
81429         * modules/mempcpy: New file.
81430         * MODULES.html.sh (func_all_modules): Add mempcpy.
81431
81432 2003-07-14  Simon Josefsson  <jas@extundo.com>
81433
81434         * m4/mempcpy.m4: New file.
81435
81436 2003-07-14  Simon Josefsson  <jas@extundo.com>
81437
81438         * lib/mempcpy.h: New file.
81439         * lib/mempcpy.c: New file.
81440
81441 2003-07-14  Paul Eggert  <eggert@twinsun.com>
81442
81443         * modules/getdate, modules/posixtm: Depend on mktime.
81444
81445 2003-07-14  Paul Eggert  <eggert@twinsun.com>
81446
81447         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
81448         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
81449         unicodeio.c, unicodeio.h, unlocked-io.h:
81450         Switch from LGPL to GPL.
81451
81452 2003-07-14  Paul Eggert  <eggert@twinsun.com>
81453
81454         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
81455         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
81456         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
81457         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
81458         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
81459         updated automatically by ../config/srclist-update.  This changes
81460         their license from LPGL to GPL.
81461
81462 2003-07-14  Paul Eggert  <eggert@twinsun.com>
81463
81464         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
81465         assumed to refer to the root of the most recent stable gettext version.
81466         * config/srclistvars.sh: Add defaults for eggert.
81467         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
81468         Match "This program" as well as "The program".  This is needed
81469         for gettext.
81470
81471 2003-07-14  Jim Meyering  <jim@meyering.net>
81472
81473         Don't emit diagnostics.  Let callers do that.
81474         * lib/save-cwd.c: Don't include "error.h".
81475         (save_cwd): Don't call error.  Ensure that errno is valid
81476         when returning nonzero.
81477
81478         * lib/save-cwd.h (restore_cwd): Update prototype.
81479         * lib/save-cwd.c (restore_cwd): Remove two parameters.
81480         Simplify.  Don't call error upon failure.  Let callers do that.
81481         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
81482         when auditing is enabled.  But don't bother updating the #if.
81483
81484 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
81485
81486         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
81487         it breaks C++ compilation.
81488         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
81489
81490 2003-07-10  Simon Josefsson  <jas@extundo.com>
81491
81492         * modules/strchrnul (Makefile.am): Add strchrnul.h.
81493
81494 2003-07-10  Jim Meyering  <jim@meyering.net>
81495
81496         * m4/clock_time.m4: Remove trailing blank.
81497         * m4/intmax_t.m4: Likewise.
81498
81499 2003-07-10  Jim Meyering  <jim@meyering.net>
81500
81501         * lib/vasnprintf.c: Remove trailing blanks.
81502         Make cpp indentation consistent.
81503
81504 2003-07-09  Paul Eggert  <eggert@twinsun.com>
81505
81506         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
81507         posixver.c, strftime.c, strnlen.c, strverscmp.c:
81508         Switch from LGPL to GPL.
81509
81510 2003-07-09  Paul Eggert  <eggert@twinsun.com>
81511
81512         * config/srclist.txt: Sort sublists.  Add
81513         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
81514         that differ from gnulib for one reason or another; we'd like this list
81515         to be smaller but for now let's document what we have.
81516
81517 2003-07-08  Paul Eggert  <eggert@twinsun.com>
81518
81519         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
81520         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
81521         and sweeter "eval x=$x".
81522         * config/srclist.txt: Get lib/argp* from glibc.
81523
81524 2003-07-07  Paul Eggert  <eggert@twinsun.com>
81525
81526         * lib/mktime.c: Fix some boundary cases and remove need for floating
81527         point.
81528
81529         Issue a compile-time diagnostic if time_t is floating point, or if
81530         two's complement arithmetic is not in effect, or if arithmetic
81531         right shift does not propagate the sign.  These assumptions were
81532         all in the original code but they weren't checked.
81533
81534         (TIME_T_MIDPOINT, verify): New macros.
81535         (__isleap): Remove; it has integer overflow problems.
81536         (leapyear): New function, without those problems.
81537         (ydhms_tm_diff): Remove; splitting into two parts.
81538         (ydhms_diff): New function, containing the arithmetic part of
81539         the old ydhms_tm_diff function.  Issue a compile-time
81540         diagnostic if we are not using C99 integer division.
81541         Avoid casts when possible.
81542         (guess_time_tm): New function, containing the checking part of
81543         the old ydhms_tm_diff function.  Return the new value, rather than
81544         the difference between it and the old.  Accept a new argument T
81545         so that *T specifies the old value.  Check for overflow in the result.
81546
81547         (__mktime_internal): Use a time_t offset, not a long int offset.
81548         This undoes the 2003-06-04 change, which is no longer needed now
81549         that we have better overflow checking.
81550         (localtime_offset): Likewise.
81551
81552         (__mktime_internal): Avoid harmful overflow on hosts where time_t
81553         and long are 64-bit but int is only 32-bit.
81554         (ydhms_diff): Use long int to store year1 and yday1.
81555         Issue a compile-time diagnostic if long int is not wide enough.
81556
81557         (__mktime_internal): Use long int to store adjusted year and yday.
81558         Use plain C rather than preprocessor commands, if that doesn't
81559         affect efficiency.
81560         Check for overflow (and try to repair) after each probe
81561         rather than checking only at the very end.  This avoids some bugs
81562         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
81563         does not equal GMT offset at maximum time).
81564         Use integer to check for overflow rather than floating point; this
81565         is more portable to non-IEEE hosts, and is a tad faster.
81566         When we detect that we are oscillating between two values,
81567         don't check whether tm_isdst has the requested value, since
81568         we already know the answer.  When tm_isdst has the wrong value,
81569         use a different heuristic to find the right one, based on the
81570         extreme values actually observed in practice in tz2003a,
81571         rather than the (overly optimistic) "previous 3 calendar quarters".
81572
81573         (not_equal_tm, print_tm, check_result): Use "const T" rather than
81574         "T const" to accommodate glibc style.
81575         (check_result): Use less-confusing report format.  "long" -> "long int.
81576         (main): Likewise.
81577         Don't loop if the iteration overflows time_t.
81578         Allow a negative step in the iteration.
81579
81580 2003-07-06  Karl Berry  <karl@gnu.org>
81581
81582         * config/depcomp: update from automake.
81583         * config/config.sub: update from prep.
81584
81585 2003-07-03  Karl Berry  <karl@gnu.org>
81586
81587         * config/config.guess: update from prep.
81588
81589 2003-07-01  Paul Eggert  <eggert@twinsun.com>
81590
81591         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
81592         xreadlink.c now includes it unconditionally.
81593
81594 2003-07-01  Paul Eggert  <eggert@twinsun.com>
81595
81596         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
81597         having it depend on HAVE_SYS_TYPES_H.
81598
81599 2003-07-01  Bruno Haible  <bruno@clisp.org>
81600
81601         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
81602         <sys/types.h> should be sufficient.
81603         Reported by Paul Eggert.
81604
81605 2003-06-26  Karl Berry  <karl@gnu.org>
81606
81607         * config/depcomp: update from automake.
81608
81609 2003-06-26  Bruno Haible  <bruno@clisp.org>
81610
81611         * modules/human: Depend on module stdbool.
81612
81613 2003-06-25  Bruno Haible  <bruno@clisp.org>
81614
81615         * modules/readlink: New file.
81616         * modules/xreadlink: Depend on it.
81617         * MODULES.html.sh (func_all_modules): Add readlink.
81618
81619 2003-06-25  Bruno Haible  <bruno@clisp.org>
81620
81621         * m4/readlink.m4: New file.
81622
81623 2003-06-25  Bruno Haible  <bruno@clisp.org>
81624
81625         * lib/readlink.c: New file.
81626
81627 2003-06-22  Karl Berry  <karl@gnu.org>
81628
81629         * config/srclist.txt: update mkinstalldirs from automake.
81630         * config/mkinstalldirs: update.
81631
81632 2003-06-22  Bruno Haible  <bruno@clisp.org>
81633
81634         Portability to mingw32.
81635         * m4/ssize_t.m4: New file, from GNU gettext.
81636         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
81637         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
81638
81639 2003-06-22  Bruno Haible  <bruno@clisp.org>
81640
81641         * modules/safe-read: Add m4/ssize_t.m4.
81642         * modules/xreadlink: Add m4/ssize_t.m4.
81643
81644 2003-06-20  Bruno Haible  <bruno@clisp.org>
81645
81646         Assume C89, so PARAMS isn't needed.
81647         * lib/unicodeio.h (PARAMS): Remove.
81648         * lib/unicodeio.c: Don't use PARAMS.
81649
81650 2003-06-18  Karl Berry  <karl@gnu.org>
81651
81652         * config/config.{guess,sub}: update from prep.
81653
81654 2003-06-18  Jim Meyering  <jim@meyering.net>
81655
81656         Merge changes from coreutils.
81657         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
81658         Remove explicit declarations of xmalloc and realloc.
81659         Include xalloc.h.
81660         (read_utmp): Remove anachronistic cast of xmalloc.
81661
81662 2003-06-17  Paul Eggert  <eggert@twinsun.com>
81663
81664         Assume C89, so PARAMS isn't needed.
81665         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
81666         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
81667         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
81668         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
81669         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
81670         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
81671         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
81672         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
81673         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
81674         lib/xstrtod.h, lib/xstrtol.h: Likewise.
81675         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
81676         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
81677         no longer needed. Anyway, config.h should always be included before any
81678         other file.
81679
81680 2003-06-11  Simon Josefsson  <jas@extundo.com>
81681
81682         * modules/sysexits: New file.
81683         * MODULES.html.sh (func_all_modules): Add sysexits.
81684
81685 2003-06-11  Simon Josefsson  <jas@extundo.com>
81686
81687         * lib/sysexit_.h: New file.
81688
81689 2003-06-11  Derek Price  <derek@ximbiot.com>
81690
81691         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
81692         necessary.
81693
81694 2003-06-11  Bruno Haible  <bruno@clisp.org>
81695
81696         * m4/sysexits.m4: New file.
81697
81698 2003-06-10  Simon Josefsson  <jas@extundo.com>
81699
81700         * lib/argp.h: New file, from glibc.
81701         * lib/argp-ba.c: New file, from glibc.
81702         * lib/argp-eexst.c: New file, from glibc.
81703         * lib/argp-fmtstream.c: New file, from glibc.
81704         * lib/argp-fmtstream.h: New file, from glibc.
81705         * lib/argp-fs-xinl.c: New file, from glibc.
81706         * lib/argp-help.c: New file, from glibc.
81707         * lib/argp-namefrob.h: New file, from glibc.
81708         * lib/argp-parse.c: New file, from glibc.
81709         * lib/argp-pv.c: New file, from glibc.
81710         * lib/argp-pvh.c: New file, from glibc.
81711         * lib/argp-xinl.c: New file, from glibc.
81712
81713 2003-06-10  Simon Josefsson  <jas@extundo.com>
81714
81715         * modules/strchrnul: New file.
81716
81717 2003-06-10  Simon Josefsson  <jas@extundo.com>
81718
81719         * modules/argp: New file.
81720
81721 2003-06-10  Simon Josefsson  <jas@extundo.com>
81722
81723         * m4/strchrnul.m4: New file.
81724
81725 2003-06-10  Simon Josefsson  <jas@extundo.com>
81726
81727         * lib/strchrnul.h: New file.
81728         * lib/strchrnul.c: New file.
81729
81730 2003-06-10  Bruno Haible  <bruno@clisp.org>
81731
81732         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
81733
81734 2003-06-07  Karl Berry  <karl@gnu.org>
81735
81736         * config/config.{guess,sub}: update from prep.
81737
81738 2003-06-07  Jim Meyering  <jim@meyering.net>
81739
81740         * modules/strtod: Use $(...) notation, not @...@ for
81741         AC_REPLACE'd variables.
81742         * modules/localcharset: Likewise.
81743
81744 2003-06-07  Jim Meyering  <jim@meyering.net>
81745
81746         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
81747         in place of my name in the copyright comment.
81748         Remove definition and uses of __P.
81749
81750         From coreutils.
81751         * lib/stat.c: Don't declare xmalloc explicitly.
81752         Instead, include "xalloc.h".
81753         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
81754         xrealloc, and xcalloc return values.
81755         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
81756         Improve comment.
81757         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
81758
81759 2003-06-07  Bruno Haible  <bruno@clisp.org>
81760
81761         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
81762         avoid AC_CONFIG_LINKS.
81763         * modules/fnmatch (Makefile.am): Use explicit creation rule for
81764         fnmatch.h, to avoid AC_CONFIG_LINKS.
81765         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
81766
81767 2003-06-07  Bruno Haible  <bruno@clisp.org>
81768
81769         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
81770         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
81771         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
81772         directory.
81773         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
81774         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
81775         directory.
81776
81777 2003-06-06  Jim Meyering  <jim@meyering.net>
81778
81779         Merge from coreutils.
81780         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
81781         Consolidate declarations and initializations of *_base* locals.
81782
81783         Merge from coreutils.
81784         This avoids a core dump on systems without GNU putenv,
81785         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
81786         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
81787         (unsetenv): New static function, from GNU libc.
81788         (rpl_putenv): Use it.
81789
81790         * lib/modechange.c: Remove trailing blanks.
81791
81792         Merge from coreutils.
81793         * lib/fsusage.c: Remove declaration of statfs.
81794         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
81795
81796         * lib/posixtm.c: Include <stdbool.h> unconditionally.
81797
81798 2003-06-06  Jim Meyering  <jim@meyering.net>
81799
81800         * lib/stdbool_.h: Renamed from stdbool.h.in.
81801
81802 2003-06-06  Jim Meyering  <jim@meyering.net>
81803             Bruno Haible  <bruno@clisp.org>
81804
81805         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
81806         Adjust Makefile.am snippet not to redirect directly to target.
81807         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
81808
81809 2003-06-05  Paul Eggert  <eggert@twinsun.com>
81810
81811         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
81812         mismatch, look in future quarters as well as past.  This fixes a
81813         bug when processing fall-backwards gaps immediately after a long
81814         period of daylight-saving time.
81815
81816         * lib/mktime.c: Assume freestanding C89 or better.
81817         (HAVE_LIMITS_H): Remove.  Assume it's 1.
81818         (__P): Remove; not used.
81819         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
81820         (mktime, not_equal_tm, print_tm, check_result,
81821         main): Use prototypes.  Use const * where appropriate.
81822         (main): Fix typo in testing code that uncovered by above changes.
81823         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
81824
81825 2003-06-04  Paul Eggert  <eggert@twinsun.com>
81826
81827         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
81828         locale.h, localeconv.  This merges changes from coreutils.
81829
81830         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
81831         It can be removed after the next Autoconf is released.
81832         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
81833         needed.
81834
81835 2003-06-04  Paul Eggert  <eggert@twinsun.com>
81836
81837         * lib/mktime.c: Fix Debian bug 177940
81838         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
81839         (localtime_offset): Now long int, not time_t, because we want it
81840         to be guaranteed to be signed.  All uses changed.
81841         (__mktime_internal): If overflow would occur when adding offset,
81842         don't add it.
81843
81844         Merge 'human' changes from coreutils.  Rewrite to support
81845         locale-specific notations like thousands separators.
81846         * lib/human.c: Simplify authorship notice.
81847         Include human.h immediately after config.h.
81848         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
81849         <limits.h>: Do not include, since human.h does.
81850         (SIZE_MAX, UINTMAX_MAX): New macros.
81851         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
81852         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
81853         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
81854         (power_letter): Renamed from suffixes.
81855         (generate_suffix_backwards): Remove.
81856         (adjust_value): Now takes int style (because of human.h changes)
81857         and long double value (for greater precision on some platforms).
81858         (group_number): New function.
81859         (human_readable): Use it.  Use integer options, not enum.
81860         Put the options before the sizes in the arg list.
81861         Support all the new options.
81862         The old human_readable function has been removed;
81863         use inttostr.h instead.
81864         (human_readable, default_block_size, humblock):
81865         Use uintmax_t, not int, for block sizes.
81866         (human_readable_inexact, block_size_types): Remove.
81867         (block_size_opts): New constant.
81868         (human_options): Renamed from human_block_size, with new signature
81869         that allows block sizes up to UINTMAX_MAX.  All callers changed.
81870         * lib/human.h: Add copyright and authorship notice.
81871         Include <limits.h> and <stdbool.h> unconditionally.
81872         (PARAMS): Remove.  All uses removed.
81873         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
81874         (enum human_inexact_style): Remove tag; now a nameless enum.
81875         (human_floor, human_ceiling, human_round_to_even): Now have
81876         values 2, 0, 1 rather than -1, 1, 0.
81877         (human_group_digits, human_suppress_point_zero, human_autoscale,
81878         human_base_1024, human_SI, human_B): New constants.
81879         (human_readable_inexact, human_block_size): Remove.
81880         (human_readable): Size args are now uintmax_t, not int.
81881         (human_options): New decl.
81882
81883         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
81884         unnecessary now that we assume C89 or better.  This change
81885         imported from coreutils.
81886
81887         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
81888         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
81889         in the 2003-05-30 sync from glibc.
81890
81891         .h files should stand alone, but we shouldn't include <sys/types.h>
81892         if we can get away with just <stddef.h>.
81893
81894         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
81895         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
81896         rather than <sys/types.h>, as we merely need size_t.
81897         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
81898         to get size_t.
81899         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
81900         Include <stdio.h>, to get FILE.
81901         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
81902         memcasecmp.h has included <stddef.h> and all we need is size_t.
81903         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
81904         our interface, instead of including <sys/types.h>
81905
81906 2003-06-04  Paul Eggert  <eggert@twinsun.com>
81907
81908         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
81909         now, as glibc mktime is buggy on non-glibc systems.
81910
81911 2003-06-03  Karl Berry  <karl@gnu.org>
81912
81913         * config/config.sub: update from prep.
81914
81915 2003-06-02  Paul Eggert  <eggert@twinsun.com>
81916
81917         [from coreutils]
81918         Fix some minor time-related bugs with POSIX time arguments.
81919         Some valid time stamps were being rejected (notably -1, and
81920         time stamps before 1900 on 64-bit hosts).  And some invalid
81921         time stamps were being accepted, e.g. September 31.
81922
81923         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
81924         that we can return (time_t) -1 successfully.
81925         * lib/posixtm.c: Likewise.
81926         [HAVE_STDBOOL_H]: Include <stdbool.h>.
81927         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
81928         (t): Remove static var.
81929         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
81930         of static var.  All uses changed.
81931         (year): Do not reject years before 1900; they can occur with
81932         64-bit time_t.
81933         (posix_time_parse): Do not check for out-of-range components;
81934         that is now the caller's responsibility, since our checks were
81935         only approximations.
81936         (posixtime): Use mktime to check for out-of-range components,
81937         since it knows them exactly.
81938         If mktime returns (time_t) -1, check whether an error actually occurred
81939         by invoking localtime on -1.
81940         (main) [TEST_POSIXTIME]: Check for input data errors, and report
81941         posixtime failures better.
81942         Improve the test data (in comments only).
81943
81944 2003-06-02  Karl Berry  <karl@gnu.org>
81945
81946         * config/mkinstalldirs (version): new variable.
81947         (--version): new option.
81948         (usage): improve message.
81949
81950 2003-05-30  Karl Berry  <karl@gnu.org>
81951
81952         * lib/mktime.c: update from libc.
81953
81954 2003-05-30  Bruno Haible  <bruno@clisp.org>
81955
81956         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
81957         * config/config.rpath: Upgrade to gettext-0.12.1.
81958
81959 2003-05-30  Bruno Haible  <bruno@clisp.org>
81960
81961         * m4/gettext.m4: Upgrade to gettext-0.12.1.
81962         * m4/nls.m4: New file, from gettext-0.12.1.
81963         * m4/po.m4: New file, from gettext-0.12.1.
81964         * m4/progtest.m4: Upgrade to gettext-0.12.1.
81965
81966 2003-05-30  Bruno Haible  <bruno@clisp.org>
81967
81968         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
81969         * lib/localcharset.h: Likewise.
81970         * lib/localcharset.c: Likewise.
81971
81972 2003-05-29  Karl Berry  <karl@gnu.org>
81973
81974         * config/config.rpath: update from gettext.
81975
81976 2003-05-28  Paul Eggert  <eggert@twinsun.com>
81977
81978         Assume the headers required for C89 freestanding compilers.
81979         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
81980         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
81981         * m4/human.m4 (gl_HUMAN): Likewise.
81982         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
81983         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
81984         * m4/userspec.m4 (gl_USERSPEC): Likewise.
81985         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
81986         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
81987         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
81988
81989 2003-05-28  Paul Eggert  <eggert@twinsun.com>
81990
81991         Assume the headers required for C89 freestanding compilers.
81992         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
81993         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
81994         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
81995         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
81996         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
81997         define, since <limits.h> is guaranteed to do that.
81998         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
81999         * lib/exclude.c: Include <stdbool.h> unconditionally.
82000         * lib/tempname.c: Include <stddef.h> unconditionally.
82001         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
82002         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
82003         <stddef.h> does that.
82004         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
82005         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
82006         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
82007         needed.
82008         * lib/xstrtol.c: Likewise.
82009         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
82010         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
82011
82012         * lib/addext.c (addext): Use assignment rather than cast, to avoid
82013         warnings on some platforms.
82014
82015         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
82016         arbitrarily.
82017
82018 2003-05-26  Jim Meyering  <jim@meyering.net>
82019
82020         Merge in a change from coreutils:
82021         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
82022         that is guaranteed to be `no'.  Use `no_such_member' to indicate
82023         that condition, rather than `-1' which is slightly misleading.
82024         Change the name of the cache variable to have the gl_ prefix.
82025         Prompted by a patch from Richard Dawe for DJGPP.
82026
82027 2003-05-24  Karl Berry  <karl@gnu.org>
82028
82029         * config/config.guess: update from prep.
82030
82031 2003-05-22  Karl Berry  <karl@gnu.org>
82032
82033         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
82034
82035 2003-05-20  Karl Berry  <karl@gnu.org>
82036
82037         * config/config.guess: update from prep.
82038
82039 2003-05-18  Karl Berry  <karl@gnu.org>
82040
82041         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
82042         might actually be set by the user.
82043
82044         * config/depcomp, install-sh, mdate-sh: update from automake.
82045
82046 2003-05-17  Bruno Haible  <bruno@clisp.org>
82047
82048         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
82049         invalid expansion for AC_EGREP_CPP.
82050         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
82051         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
82052         Suggested by Akim Demaille <akim@epita.fr> in
82053         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
82054
82055 2003-05-12  Jim Meyering  <jim@meyering.net>
82056
82057         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
82058         the space-padded-by-default conversion specifiers, %e, %k, %l.
82059
82060 2003-05-12  Bruno Haible  <bruno@clisp.org>
82061
82062         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
82063         the string is longer than 4 KB.
82064
82065 2003-05-11  Karl Berry  <karl@gnu.org>
82066
82067         * config/config.{guess,sub}: update from prep.
82068
82069 2003-05-09  Bruno Haible  <bruno@clisp.org>
82070
82071         * modules/error: Add m4/strerror_r.m4 to file list.
82072
82073 2003-05-03  Bruno Haible  <bruno@clisp.org>
82074
82075         Upgrade to Unicode-4.0.
82076         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
82077         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
82078         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
82079         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
82080         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
82081         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
82082         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
82083         Change width of U+E0100..U+E01EF from 1 to 0.
82084
82085 2003-04-25  Jim Meyering  <jim@meyering.net>
82086
82087         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
82088         of type size_t, not int.
82089
82090 2003-04-25  Bruno Haible  <bruno@clisp.org>
82091
82092         * lib/copy-file.c: Include <stddef.h>, for size_t.
82093
82094 2003-04-21  Paul Eggert  <eggert@twinsun.com>
82095
82096         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
82097         code which expansion is under static control.  Patch imported from
82098         Akim Demaille's patch to Bison; see
82099         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
82100
82101 2003-04-14  Bruno Haible  <bruno@clisp.org>
82102
82103         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
82104
82105 2003-04-11  Jim Meyering  <jim@meyering.net>
82106
82107         Merge changes from Coreutils.
82108
82109         2003-03-22  Jim Meyering  <jim@meyering.net>
82110
82111         * lib/strftime.c (widen): Cast alloca return value to proper type.
82112
82113         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
82114
82115         From GNU libc.
82116         * lib/strftime.c (my_strftime): Handle very large width
82117         specifications for numeric values correctly.  Improve checks for
82118         overflow.
82119
82120         2003-01-19  Jim Meyering  <jim@meyering.net>
82121
82122         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
82123         definitions.
82124         (nl_get_alt_digit) [! defined my_strftime]: Define.
82125         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
82126         _nl_get_alt_digit and _nl_get_walt_digit.
82127
82128         * lib/strftime.c (my_strftime): Merge in locale-related changes from
82129         libc. These changes have no effect outside of _LIBC.
82130
82131 2003-04-10  Bruno Haible  <bruno@clisp.org>
82132
82133         * modules/findprog: New file.
82134         * MODULES.html.sh (func_all_modules): Add it.
82135
82136 2003-04-10  Bruno Haible  <bruno@clisp.org>
82137
82138         * m4/findprog.m4: New file.
82139         * m4/eaccess.m4: New file.
82140
82141 2003-04-10  Bruno Haible  <bruno@clisp.org>
82142
82143         * lib/findprog.h: New file, from GNU gettext.
82144         * lib/findprog.c: New file, from GNU gettext.
82145
82146 2003-04-05  Jim Meyering  <jim@meyering.net>
82147
82148         Merge changes from Coreutils.
82149
82150         * lib/exclude.h (PARAMS): Remove definition and uses.
82151         * lib/exclude.c: Remove uses of `PARAMS'.
82152
82153         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
82154         Add test-cases for DOS filenames. Declare program_name.
82155         (main): Set up program_name.  Patch by Rich Dawe.
82156
82157         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82158         error from mntctl.
82159         Use mntctl's return value to drive the entry-processing loop, since
82160         we can't rely on the value of the vmt_length member in the last
82161         entry.  On some systems doing so could result in exhausting
82162         virtual memory.  Based in part on a patch from Mike Jetzer.
82163
82164 2003-04-04  Bruno Haible  <bruno@clisp.org>
82165
82166         * modules/linebreak: New file.
82167         * MODULES.html.sh (func_all_modules): Add it.
82168
82169 2003-04-04  Bruno Haible  <bruno@clisp.org>
82170
82171         * m4/linebreak.m4: New file.
82172
82173 2003-04-04  Bruno Haible  <bruno@clisp.org>
82174
82175         * lib/linebreak.h: New file, from GNU gettext.
82176         * lib/linebreak.c: New file, from GNU gettext with slight
82177         modifications.
82178         * lib/lbrkprop.h: New file, from GNU gettext.
82179
82180 2003-04-03  Bruno Haible  <bruno@clisp.org>
82181
82182         * modules/utf8-ucs4: New file.
82183         * modules/utf16-ucs4: New file.
82184         * modules/ucs4-utf8: New file.
82185         * modules/ucs4-utf16: New file.
82186         * MODULES.html.sh (func_all_modules): Add them.
82187
82188 2003-04-03  Bruno Haible  <bruno@clisp.org>
82189
82190         * m4/utf-ucs4.m4: New file.
82191         * m4/ucs4-utf.m4: New file.
82192
82193 2003-04-03  Bruno Haible  <bruno@clisp.org>
82194
82195         * lib/utf8-ucs4.h: New file, from GNU gettext.
82196         * lib/utf16-ucs4.h: New file, from GNU gettext.
82197         * lib/ucs4-utf8.h: New file, from GNU gettext.
82198         * lib/ucs4-utf16.h: New file, from GNU gettext.
82199
82200 2003-04-02  Bruno Haible  <bruno@clisp.org>
82201
82202         * modules/binary-io: New file.
82203         * MODULES.html.sh (func_all_modules): Add it.
82204
82205 2003-04-02  Bruno Haible  <bruno@clisp.org>
82206
82207         * lib/binary-io.h: New file, from GNU gettext.
82208
82209 2003-04-01  Bruno Haible  <bruno@clisp.org>
82210
82211         * modules/pathname: New file.
82212         * MODULES.html.sh (func_all_modules): Add it.
82213
82214 2003-04-01  Bruno Haible  <bruno@clisp.org>
82215
82216         * lib/pathname.h: New file, from GNU gettext.
82217         * lib/concatpath.c: New file, from GNU gettext.
82218
82219 2003-03-30  Bruno Haible  <bruno@clisp.org>
82220
82221         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
82222
82223 2003-03-30  Bruno Haible  <bruno@clisp.org>
82224
82225         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
82226         function chown() doesn't exist.
82227
82228 2003-03-28  Bruno Haible  <bruno@clisp.org>
82229
82230         * modules/copy-file: New file.
82231         * MODULES.html.sh (func_all_modules): Add it.
82232
82233 2003-03-28  Bruno Haible  <bruno@clisp.org>
82234
82235         * m4/copy-file.m4: New file.
82236
82237 2003-03-28  Bruno Haible  <bruno@clisp.org>
82238
82239         * lib/copy-file.h: New file, from GNU gettext.
82240         * lib/copy-file.c: New file, from GNU gettext.
82241
82242 2003-03-18  Jim Meyering  <jim@meyering.net>
82243
82244         * lib/quote.c (quote_n): Fix typo in comment.
82245
82246 2003-03-18  Bruno Haible  <bruno@clisp.org>
82247
82248         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
82249         checking.
82250         * m4/onceonly_2_57.m4: Likewise.
82251
82252 2003-03-17  Bruno Haible  <bruno@clisp.org>
82253
82254         * m4/onceonly.m4: Require autoconf 2.54 or newer.
82255         (m4_quote): Remove macro.
82256         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
82257
82258 2003-03-14  Jim Meyering  <jim@meyering.net>
82259
82260         Merge changes from Coreutils.
82261         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
82262         to be const, in order to avoid warnings.
82263         (obstack_room): Likewise.
82264         (obstack_empty_p): Likewise.
82265
82266 2003-03-14  Bruno Haible  <bruno@clisp.org>
82267
82268         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
82269         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
82270
82271 2003-03-13  Paul Eggert  <eggert@twinsun.com>
82272
82273         Merge changes from Bison.
82274         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
82275         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
82276         when compiling Bison 1.875's `bitset bset = obstack_alloc
82277         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
82278         * lib/hash.c: Include <stdbool.h> unconditionally.
82279
82280 2003-03-13  Paul Eggert  <eggert@twinsun.com>
82281
82282         * m4/onceonly.m4 (m4_quote): New macro.
82283         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
82284         Quote AC_FOREACH variable-expansions properly.
82285
82286 2003-03-13  Paul Eggert  <eggert@twinsun.com>
82287
82288         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
82289
82290 2003-03-09  Paul Eggert  <eggert@twinsun.com>
82291
82292         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
82293         Reported by Bruce Becker; see:
82294         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
82295
82296 2003-03-03  Paul Eggert  <eggert@twinsun.com>
82297             Bruno Haible  <bruno@clisp.org>
82298
82299         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
82300         Reported by John Hughes, see
82301         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
82302
82303 2003-02-20  Bruno Haible  <bruno@clisp.org>
82304
82305         * MODULES.html.sh (func_all_modules): Add poll.
82306
82307 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
82308
82309         * modules/poll: New file.
82310
82311 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
82312
82313         * lib/poll_.h: New file.
82314         * lib/poll.c: New file.
82315
82316 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
82317
82318         * m4/poll.m4: New file.
82319
82320 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
82321
82322         * modules/mathl: New file.
82323
82324 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
82325
82326         * lib/mathl.h: New file.
82327         * lib/acosl.c: New file.
82328         * lib/asinl.c: New file.
82329         * lib/atanl.c: New file.
82330         * lib/ceill.c: New file.
82331         * lib/cosl.c: New file.
82332         * lib/expl.c: New file.
82333         * lib/floorl.c: New file.
82334         * lib/frexpl.c: New file.
82335         * lib/ldexpl.c: New file.
82336         * lib/logl.c: New file.
82337         * lib/sincosl.c: New file.
82338         * lib/sinl.c: New file.
82339         * lib/sqrtl.c: New file.
82340         * lib/tanl.c: New file.
82341         * lib/trigl.c: New file.
82342         * lib/trigl.h: New file.
82343
82344 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
82345
82346         * m4/mathl.m4: New file.
82347
82348 2003-02-18  Bruno Haible  <bruno@clisp.org>
82349
82350         * MODULES.html.sh (func_all_modules): Add mathl.
82351
82352 2003-02-17  Bruno Haible  <bruno@clisp.org>
82353
82354         * modules/mkdtemp: New module.
82355         * MODULES.html.sh (func_all_modules): Add it.
82356
82357 2003-02-17  Bruno Haible  <bruno@clisp.org>
82358
82359         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
82360
82361 2003-02-17  Bruno Haible  <bruno@clisp.org>
82362
82363         * lib/mkdtemp.h: New file, from GNU gettext.
82364         * lib/mkdtemp.c: New file, from GNU gettext.
82365
82366 2003-02-02  Jim Meyering  <jim@meyering.net>
82367
82368         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
82369         e.g. glibc-2.2.93.
82370
82371 2003-01-31  Bruno Haible  <bruno@clisp.org>
82372
82373         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
82374         'rpl_rename'.
82375         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
82376         'rpl_strnlen'.
82377         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
82378         'rpl_strtod'.
82379         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
82380         'rpl_utime'.
82381
82382 2003-01-31  Bruno Haible  <bruno@clisp.org>
82383
82384         * lib/rename.c: #undef rename before defining rpl_rename.
82385         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
82386
82387 2003-01-30  Bruno Haible  <bruno@clisp.org>
82388
82389         * modules/vasnprintf, modules/vasprintf: New modules.
82390         * MODULES.html.sh (func_all_modules): Add them.
82391
82392 2003-01-30  Bruno Haible  <bruno@clisp.org>
82393
82394         * m4/signed.m4: New file, from GNU gettext.
82395         * m4/longdouble.m4: New file, from GNU gettext.
82396         * m4/wchar_t.m4: New file, from GNU gettext.
82397         * m4/wint_t.m4: New file, from GNU gettext.
82398         * m4/vasnprintf.m4: New file.
82399         * m4/vasprintf.m4: New file.
82400
82401 2003-01-30  Bruno Haible  <bruno@clisp.org>
82402
82403         * lib/printf-args.h: New file, from GNU gettext.
82404         * lib/printf-args.c: New file, from GNU gettext.
82405         * lib/printf-parse.h: New file, from GNU gettext.
82406         * lib/printf-parse.c: New file, from GNU gettext.
82407         * lib/vasnprintf.h: New file, from GNU gettext.
82408         * lib/vasnprintf.c: New file, from GNU gettext.
82409         * lib/asnprintf.c: New file, from GNU gettext.
82410         * lib/vasprintf.h: New file, from GNU gettext with modifications.
82411         * lib/vasprintf.c: New file, from GNU gettext.
82412         * lib/asprintf.c: New file, from GNU gettext.
82413
82414 2003-01-29  Bruno Haible  <bruno@clisp.org>
82415
82416         * modules/stpncpy: New module.
82417         * MODULES.html.sh (func_all_modules): Add it.
82418
82419 2003-01-29  Bruno Haible  <bruno@clisp.org>
82420
82421         * m4/stpncpy.m4: New file.
82422
82423 2003-01-29  Bruno Haible  <bruno@clisp.org>
82424
82425         * lib/stpncpy.h: New file, from GNU gettext with modifications.
82426         * lib/stpncpy.c: New file, from GNU gettext with modifications.
82427
82428 2003-01-28  Bruno Haible  <bruno@clisp.org>
82429
82430         * modules/c-ctype: New module.
82431         * MODULES.html.sh (func_all_modules): Add it.
82432
82433 2003-01-28  Bruno Haible  <bruno@clisp.org>
82434
82435         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
82436         Paul Eggert.
82437         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
82438         Paul Eggert.
82439
82440 2003-01-27  Bruno Haible  <bruno@clisp.org>
82441
82442         * modules/xsetenv: New module.
82443         * MODULES.html.sh (func_all_modules): Add it.
82444
82445 2003-01-27  Bruno Haible  <bruno@clisp.org>
82446
82447         * lib/xsetenv.h: New file, from GNU gettext.
82448         * lib/xsetenv.c: New file, from GNU gettext.
82449
82450 2003-01-23  Jim Meyering  <jim@meyering.net>
82451
82452         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
82453         from working on systems without dirfd (at least Irix and OSF1/Tru64).
82454
82455 2003-01-23  Bruno Haible  <bruno@clisp.org>
82456
82457         * modules/minmax: New module.
82458         * MODULES.html.sh (func_all_modules): Add it.
82459
82460 2003-01-23  Bruno Haible  <bruno@clisp.org>
82461
82462         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
82463         Eggert.
82464
82465 2003-01-22  Bruno Haible  <bruno@clisp.org>
82466
82467         * modules/exit: New module.
82468         * MODULES.html.sh (func_all_modules): Add it.
82469
82470 2003-01-22  Bruno Haible  <bruno@clisp.org>
82471
82472         * lib/exit.h: New file, from GNU gettext.
82473
82474 2003-01-19  Bruno Haible  <bruno@clisp.org>
82475
82476         * gnulib-tool: Recognize option --extract-maintainer.
82477         (func_get_maintainer): New function.
82478         * modules/*: Add Maintainer entry.
82479
82480 2003-01-16  Jim Meyering  <jim@meyering.net>
82481
82482         * m4/regex.m4: The `regex' struct is both input and output.
82483         Initialize it before each use.  Patch by Tim Waugh.
82484
82485 2003-01-16  Bruno Haible  <bruno@clisp.org>
82486
82487         * MODULES.html.sh: Add a table of contents. Add the module name as
82488         leftmost column. Add hyperlinks.
82489
82490 2003-01-15  Bruno Haible  <bruno@clisp.org>
82491
82492         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
82493
82494 2003-01-15  Bruno Haible  <bruno@clisp.org>
82495
82496         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
82497         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
82498         suffix.
82499
82500 2003-01-15  Bruno Haible  <bruno@clisp.org>
82501
82502         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
82503
82504 2003-01-15  Bruno Haible  <bruno@clisp.org>
82505
82506         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
82507         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
82508
82509 2003-01-14  Jim Meyering  <jim@meyering.net>
82510
82511         * lib/same.c (same_name): Tweak a comment.
82512
82513 2003-01-14  Bruno Haible  <bruno@clisp.org>
82514
82515         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
82516         when a string comparison is sufficient.
82517
82518 2003-01-14  Bruno Haible  <bruno@clisp.org>
82519
82520         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
82521         'unsigned int'.
82522
82523 2003-01-14  Bruno Haible  <bruno@clisp.org>
82524
82525         * lib/hash-pjw.c: Add comment about low quality of this function.
82526
82527 2003-01-13  Bruno Haible  <bruno@clisp.org>
82528
82529         * modules/stpcpy: Distribute lib/stpcpy.h.
82530         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
82531
82532 2003-01-13  Bruno Haible  <bruno@clisp.org>
82533
82534         * modules/*: Add a description.
82535         * modules/strpbrk: Fix Makefile.am snippet.
82536         * modules/strtoimax: Fix dependencies.
82537         * modules/strtoumax: Likewise.
82538
82539 2003-01-13  Bruno Haible  <bruno@clisp.org>
82540
82541         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
82542         * modules/alloca (Makefile.am): All object files depend on alloca.h.
82543         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
82544
82545 2003-01-13  Bruno Haible  <bruno@clisp.org>
82546
82547         * gnulib-tool (func_create_testdir): Store config/* files in the main
82548         directory.
82549         * config.rpath: Move to ...
82550         * config/config.rpath: ... here.
82551         * modules/gettext: Contains config/config.rpath, not config.rpath.
82552         * modules/iconv: Likewise.
82553
82554 2003-01-12  Paul Eggert  <eggert@twinsun.com>
82555
82556         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
82557         to avoid collisions with libcurses and libreadline.
82558
82559         * m4/getstr.m4: Remove.
82560         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
82561
82562 2003-01-12  Paul Eggert  <eggert@twinsun.com>
82563
82564         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
82565         to avoid collisions with libcurses and libreadline.
82566
82567         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
82568         * lib/getstr.h, getstr.c: Remove.
82569         * lib/getline.c: Include "getline.h", to check interface.
82570         Move body of old getstr.c here: this defines MIN_CHUNK and
82571         declares getdelim2, which is renamed from getstr.
82572         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
82573
82574         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
82575         All uses changed.
82576         * lib/linebuffer.h: Likewise.
82577         (readline): Remove backward-compatibility macro.
82578
82579 2003-01-12  Paul Eggert  <eggert@twinsun.com>
82580
82581         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
82582         to avoid collisions with libcurses and libreadline.
82583         * getstr: Remove.
82584         * MODULES.html.sh: Remove getstr.
82585         * modules/getline: Depend on unlocked-io, not getstr.
82586
82587 2003-01-12  Jim Meyering  <jim@meyering.net>
82588
82589         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
82590
82591 2003-01-10  Bruno Haible  <bruno@clisp.org>
82592
82593         * modules/alloca: Change Makefile.am requirements. Simplify Include
82594         requirements. Add lib/alloca_.h to file list.
82595
82596 2003-01-10  Bruno Haible  <bruno@clisp.org>
82597
82598         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
82599
82600 2003-01-10  Bruno Haible  <bruno@clisp.org>
82601
82602         * lib/alloca_.h: New file.
82603         * lib/getdate.y: Unconditionally include alloca.h.
82604         * lib/makepath.c: Likewise.
82605         * lib/setenv.c: Likewise.
82606         * lib/userspec.c: Likewise.
82607
82608 2003-01-09  Karl Berry  <karl@gnu.org>
82609
82610         * MODULES.html.sh: include `dirname $0` in PATH, to find
82611         gnulib-tool.
82612
82613 2003-01-09  Bruno Haible  <bruno@clisp.org>
82614
82615         * modules/stdbool: Change configure.ac, Makefile.am requirements.
82616         Simplify Include requirements. Add lib/stdbool.h.in to file list.
82617
82618 2003-01-09  Bruno Haible  <bruno@clisp.org>
82619
82620         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
82621
82622 2003-01-09  Bruno Haible  <bruno@clisp.org>
82623
82624         * lib/stdbool.h.in: New file.
82625
82626 2003-01-09  Bruno Haible  <bruno@clisp.org>
82627
82628         * gnulib-tool (func_all_modules): Ignore files ending in ~.
82629         * MODULES.html.sh: Likewise.
82630
82631 2003-01-08  Jim Meyering  <jim@meyering.net>
82632
82633         * lib/full-write.c: Undefine and define-away `const' after inclusion
82634         of errno.h, not before.  Suggestion from Bruno Haible.
82635
82636 2003-01-08  Bruno Haible  <bruno@clisp.org>
82637
82638         * modules/full-read: Depend on full-write.
82639
82640 2003-01-08  Bruno Haible  <bruno@clisp.org>
82641
82642         * lib/safe-read.c: Include specification header first, to ensure its
82643         selfcontainedness.
82644         * lib/full-write.c: Likewise.
82645
82646 2003-01-07  Jim Meyering  <jim@meyering.net>
82647
82648         * lib/full-write.c: Rework so that it may serve to define full_read,
82649         too.
82650         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
82651
82652 2003-01-07  Bruno Haible  <bruno@clisp.org>
82653
82654         * lib/strtoimax.c: Include <stdint.h> as an alternative to
82655         <inttypes.h>.
82656         * lib/xstrtol.h: Likewise.
82657         * lib/xstrtoimax.c: Likewise.
82658         * lib/xstrtoumax.c: Likewise.
82659         * lib/human.h: Likewise.
82660
82661         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
82662         on systems that have <inttypes.h> but not <stdint.h>.
82663
82664 2003-01-07  Bruno Haible  <bruno@clisp.org>
82665
82666         * MODULES.html.sh: Add copyright notice.
82667         (missed_files): Omit CVS directory entries.
82668         (func_module): Make it work with sed-3.02.
82669         * MODULES.txt: Remove file.
82670
82671 2003-01-06  Jim Meyering  <jim@meyering.net>
82672
82673         * lib/version-etc.c: Update year in translatable copyright string.
82674
82675 2003-01-03  Karl Berry  <karl@gnu.org>
82676
82677         * config/config.{guess,sub}: update from prep.
82678
82679 2003-01-02  Karl Berry  <karl@gnu.org>
82680
82681         * doc/COPYING.DOC: belatedly updated to 1.2.
82682
82683 2003-01-01  Karl Berry  <karl@gnu.org>
82684
82685         * gnulib-tool (func_verify_module): report module name $module in
82686         error message, not $1.
82687         * gnulib-tool (create-testdir): don't complain if destdir couldn't
82688         be created, only if it doesn't exist.
82689         * gnulib-tool (last_checkin_date): don't expand the $Date here.
82690
82691 2002-12-31  Paul Eggert  <eggert@twinsun.com>
82692
82693         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
82694
82695 2002-12-31  Paul Eggert  <eggert@twinsun.com>
82696
82697         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
82698         memcmp if strcoll doesn't work.
82699
82700 2002-12-31  Bruno Haible  <bruno@clisp.org>
82701
82702         * lib/utime.c (utime_null): No need to call ftruncate if the file was
82703         nonempty.
82704
82705 2002-12-31  Bruno Haible  <bruno@clisp.org>
82706
82707         * lib/memcoll.c (STRCOLL): New macro.
82708         (memcoll): Use it.
82709
82710 2002-12-31  Bruno Haible  <bruno@clisp.org>
82711
82712         * lib/localcharset.h: New file.
82713         * lib/localcharset.c: Include it.
82714         * lib/unicodeio.c: Likewise.
82715
82716 2002-12-31  Bruno Haible  <bruno@clisp.org>
82717
82718         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
82719         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
82720
82721 2002-12-31  Bruno Haible  <bruno@clisp.org>
82722
82723         * lib/getline.h: Include <stddef.h>, for size_t.
82724
82725         * lib/unicodeio.h: Include <stddef.h>, for size_t.
82726         * lib/unicodeio.c: Don't include <stddef.h>.
82727
82728 2002-12-31  Bruno Haible  <bruno@clisp.org>
82729
82730         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
82731         HAVE_TM_ZONE.
82732
82733 2002-12-24  Karl Berry  <karl@gnu.org>
82734
82735         * config/config.guess: update from prep.
82736
82737 2002-12-24  Bruno Haible  <bruno@clisp.org>
82738
82739         General infrasructure.
82740         * m4/README: Rewritten.
82741         * m4/onceonly.m4: New file.
82742         * m4/onceonly_2_57.m4: New file.
82743
82744         Module atexit.
82745         * m4/atexit.m4: New file.
82746
82747         Module strtod.
82748         * m4/strtod.m4: New file.
82749
82750         Module strtol.
82751         * m4/strtol.m4: New file.
82752
82753         Module strtoul.
82754         * m4/strtoul.m4: New file.
82755
82756         Module memchr.
82757         * m4/memchr.m4: New file.
82758
82759         Module memcmp.
82760         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
82761         (jm_FUNC_MEMCMP): Invoke it.
82762
82763         Module memcpy.
82764         * m4/memcpy.m4: New file.
82765
82766         Module memmove.
82767         * m4/memmove.m4: New file.
82768
82769         Module memset.
82770         * m4/memset.m4: New file.
82771
82772         Module strcspn.
82773         * m4/strcspn.m4: New file.
82774
82775         Module strpbrk.
82776         * m4/strpbrk.m4: New file.
82777
82778         Module strstr.
82779         * m4/strstr.m4: New file.
82780
82781         Module strerror.
82782         * m4/strerror.m4: New file.
82783
82784         Module mktime.
82785         * m4/mktime.m4: Renamed from jm-mktime.m4.
82786         (gl_PREREQ_MKTIME): New macro.
82787         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
82788
82789         Module malloc.
82790         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
82791         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
82792         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
82793
82794         Module realloc.
82795         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
82796         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
82797         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
82798
82799         Module strftime.
82800         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
82801         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
82802         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
82803         gl_TM_GMTOFF.
82804         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
82805
82806         Module xalloc.
82807         * m4/xalloc.m4: New file.
82808
82809         Module alloca.
82810         * m4/alloca.m4: New file.
82811
82812         Module putenv.
82813         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
82814         (jm_FUNC_PUTENV): Invoke it.
82815
82816         Module setenv.
82817         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
82818         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
82819         when invoked twice.
82820         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
82821         gt_FUNC_SETENV.
82822
82823         Module memrchr.
82824         * m4/memrchr.m4: New file.
82825
82826         Module stpcpy.
82827         * m4/stpcpy.m4: New file.
82828
82829         Module strcase.
82830         * m4/strcase.m4: New file.
82831
82832         Module strdup.
82833         * m4/strdup.m4: New file.
82834
82835         Module strnlen.
82836         * m4/strnlen.m4: New file.
82837
82838         Module strndup.
82839         * m4/strndup.m4: New file.
82840
82841         Module xstrtod.
82842         * m4/xstrtod.m4: New file.
82843
82844         Module xstrtol.
82845         * m4/xstrtol.m4: New file.
82846
82847         Module getdate.
82848         * m4/getdate.m4: New file.
82849
82850         Module unlocked-io.
82851         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
82852         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
82853         * m4/jm-glibc-io.m4n: Remove file.
82854
82855         Module long-options.
82856         * m4/long-options.m4: New file.
82857
82858         Module md5.
82859         * m4/md5.m4: New file.
82860
82861         Module sha.
82862         * m4/sha.m4: New file.
82863
82864         Module getstr.
82865         * m4/getstr.m4: New file.
82866
82867         Module getline.
82868         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
82869         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
82870         <sys/types.h>, for size_t. Use the function name gnu_getline, not
82871         simply getline. Infoke gl_PREREQ_GETLINE.
82872
82873         Module obstack.
82874         * m4/obstack.m4: New file.
82875
82876         Module hash.
82877         * m4/hash.m4: New file.
82878
82879         Module readtokens.
82880         * m4/readtokens.m4: New file.
82881
82882         Module strverscmp.
82883         * m4/strverscmp.m4: New file.
82884
82885         Module stdbool.
82886         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
82887         OSF/1.
82888
82889         Module strtoll.
82890         * m4/strtoll.m4: New file.
82891
82892         Module strtoull.
82893         * m4/strtoull.m4: New file.
82894
82895         Module strtoimax.
82896         * m4/strtoimax.m4: New file.
82897
82898         Module strtoumax.
82899         * m4/strtoumax.m4: New file.
82900
82901         Module xstrtoimax.
82902         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
82903         jm_AC_PREREQ_XSTRTOIMAX.
82904         Moved the strtol prerequisites to strtol.m4.
82905         Moved the strtoll prerequisites to strtoll.m4.
82906         Moved the strtoimax prerequisites to strtoimax.m4.
82907
82908         Module xstrtoumax.
82909         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
82910         jm_AC_PREREQ_XSTRTOUMAX.
82911         Moved the strtoul prerequisites to strtoul.m4.
82912         Moved the strtoull prerequisites to strtoull.m4.
82913         Moved the strtoumax prerequisites to strtoumax.m4.
82914
82915         Module chown.
82916         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
82917         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
82918
82919         Module dup2.
82920         * m4/dup2.m4: New file.
82921
82922         Module ftruncate.
82923         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
82924         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
82925
82926         Module getgroups.
82927         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
82928         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
82929
82930         Module gettimeofday.
82931         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
82932         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
82933         gl_PREREQ_GETTIMEOFDAY.
82934
82935         Module mkdir.
82936         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
82937         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
82938
82939         Module mkstemp.
82940         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
82941         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
82942         jm_AC_TYPE_UINTMAX_T.
82943         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
82944
82945         Module stat.
82946         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
82947         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
82948
82949         Module lstat.
82950         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
82951         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
82952
82953         Module timespec.
82954         * m4/timespec.m4 (gl_TIMESPEC): New macro.
82955         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
82956         * m4/st_mtim.m4: Indentation.
82957
82958         Module nanosleep.
82959         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
82960         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
82961         gl_PREREQ_NANOSLEEP.
82962
82963         Module regex.
82964         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
82965         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
82966         (gl_REGEX): New macro.
82967
82968         Module rename.
82969         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
82970         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
82971
82972         Module rmdir.
82973         * m4/rmdir.m4: New file.
82974
82975         Module utime.
82976         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
82977         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
82978         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
82979
82980         Module dirname.
82981         * m4/dirname.m4: New file.
82982
82983         Module getopt.
82984         * m4/getopt.m4: New file.
82985
82986         Module unistd-safer.
82987         * m4/unistd-safer.m4: New file.
82988
82989         Module fnmatch.
82990         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
82991         declaration.
82992         (gl_PREREQ_FNMATCH_EXTRA): New macro.
82993         (gl_FUNC_FNMATCH_POSIX): New macro.
82994         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
82995         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
82996         simply fnmatch.
82997
82998         Module exclude.
82999         * m4/exclude.m4: New file.
83000
83001         Module human.
83002         * m4/human.m4: New file.
83003
83004         Module acl.
83005         * m4/acl.m4: Nop.
83006
83007         Module backupfile.
83008         * m4/backupfile.m4: New file.
83009         * m4/d-ino.m4: Indentation.
83010
83011         Module fsusage.
83012         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
83013         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
83014         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
83015
83016         Module dirfd.
83017         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
83018         requirements.
83019
83020         Module euidaccess.
83021         * m4/euidaccess.m4: New file.
83022
83023         Module file-type.
83024         * m4/file-type.m4: New file.
83025
83026         Module fileblocks.
83027         * m4/fileblocks.m4: New file.
83028
83029         Module filemode.
83030         * m4/filemode.m4: New file.
83031
83032         Module isdir.
83033         * m4/isdir.m4: New file.
83034
83035         Module lchown.
83036         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
83037         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
83038
83039         Module makepath.
83040         * m4/makepath.m4: New file.
83041
83042         Module modechange.
83043         * m4/modechange.m4: New file.
83044
83045         Module mountlist.
83046         * m4/mountlist.m4: New file.
83047         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
83048         Indentation.
83049
83050         Module path-concat.
83051         * m4/path-concat.m4: New file.
83052
83053         Module pathmax.
83054         * m4/pathmax.m4: New file.
83055
83056         Module same.
83057         * m4/same.m4: New file.
83058
83059         Module save-cwd.
83060         * m4/save-cwd.m4: New file.
83061
83062         Module savedir.
83063         * m4/savedir.m4: New file.
83064
83065         Module xgetcwd.
83066         * m4/xgetcwd.m4: New file.
83067         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
83068
83069         Module xreadlink.
83070         * m4/xreadlink.m4: New file.
83071
83072         Module safe-read.
83073         * m4/safe-read.m4: New file.
83074
83075         Module safe-write.
83076         * m4/safe-write.m4: New file.
83077
83078         Module closeout.
83079         * m4/closeout.m4: New file.
83080
83081         Module stdio-safer.
83082         * m4/stdio-safer.m4: New file.
83083
83084         Module getpass.
83085         * m4/getpass.m4: New file.
83086
83087         Module getugroups.
83088         * m4/getugroups.m4: New file.
83089
83090         Module group-member.
83091         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
83092         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
83093
83094         Module idcache.
83095         * m4/idcache.m4: New file.
83096
83097         Module userspec.
83098         * m4/userspec.m4: New file.
83099
83100         Module gettime.
83101         * m4/clock_time.m4: New file.
83102         * m4/gettime.m4: New file.
83103
83104         Module settime.
83105         * m4/settime.m4: New file.
83106
83107         Module posixtm.
83108         * m4/posixtm.m4: New file.
83109
83110         Module gethostname.
83111         * m4/gethostname.m4: New file.
83112
83113         Module canon-host.
83114         * m4/canon-host.m4: New file.
83115
83116         Module gettext.
83117         * m4/codeset.m4: New file, from gettext-0.11.5.
83118         * m4/gettext.m4: New file, from gettext-0.11.5.
83119         * m4/glibc21.m4: New file, from gettext-0.11.5.
83120         * m4/iconv.m4: New file, from gettext-0.11.5.
83121         * m4/intdiv0.m4: New file, from gettext-0.11.5.
83122         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
83123         * m4/inttypes.m4: New file, from gettext-0.11.5.
83124         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
83125         * m4/isc-posix.m4: New file, from gettext-0.11.5.
83126         * m4/lcmessage.m4: New file, from gettext-0.11.5.
83127         * m4/lib-ld.m4: New file, from gettext-0.11.5.
83128         * m4/lib-link.m4: New file, from gettext-0.11.5.
83129         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
83130         * m4/progtest.m4: New file, from gettext-0.11.5.
83131         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
83132         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
83133         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
83134
83135         Module localcharset.
83136         * m4/localcharset.m4: New file.
83137
83138         Module hard-locale.
83139         * m4/hard-locale.m4: New file.
83140
83141         Module mbswidth.
83142         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
83143         onceonly macros.
83144         * m4/mbrtowc.m4: Add comment.
83145
83146         Module memcasecmp.
83147         * m4/memcasecmp.m4: New file.
83148
83149         Module memcoll.
83150         * m4/memcoll.m4: New file.
83151
83152         Module unicodeio.
83153         * m4/unicodeio.m4: New file.
83154
83155         Module rpmatch.
83156         * m4/rpmatch.m4: New file.
83157
83158         Module yesno.
83159         * m4/yesno.m4: New file.
83160
83161         Module exitfail.
83162         * m4/exitfail.m4: New file.
83163
83164         Module c-stack.
83165         * m4/c-stack.m4 (gl_C_STACK): New macro.
83166         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
83167
83168         Module error.
83169         * m4/error.m4 (gl_ERROR): New macro.
83170         (jm_PREREQ_ERROR): Use onceonly macros.
83171
83172         Module fatal.
83173         * m4/fatal.m4: New file.
83174
83175         Module getloadavg.
83176         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
83177         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
83178
83179         Module getpagesize.
83180         * m4/getpagesize.m4: New file.
83181
83182         Module getusershell.
83183         * m4/getusershell.m4: New file.
83184
83185         Module physmem.
83186         * m4/physmem.m4: New file.
83187
83188         Module posixver.
83189         * m4/posixver.m4: New file.
83190
83191         Module quotearg.
83192         * m4/quotearg.m4: New file.
83193
83194         Module quote.
83195         * m4/quote.m4: New file.
83196
83197         Module readutmp.
83198         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
83199
83200         Module sig2str.
83201         * m4/sig2str.m4: New file.
83202
83203         Other.
83204         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
83205         ulonglong.m4.
83206         * m4/intmax_t.m4: New file.
83207         * m4/d-type.m4: Indentation.
83208         * m4/jm-macros.m4: Update.
83209         * m4/prereq.m4 (jm_PREREQ): Update.
83210         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
83211         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
83212         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
83213         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
83214         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
83215         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
83216         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
83217         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
83218         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
83219         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
83220         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
83221         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
83222         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
83223         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
83224         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
83225         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
83226         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
83227         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
83228         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
83229
83230 2002-12-24  Bruno Haible  <bruno@clisp.org>
83231
83232         * MODULES.txt: Update according to m4/ changes.
83233
83234         Module gettext.
83235         * config.rpath: New file, from gettext-0.11.5.
83236
83237         * modules/*: New module descriptions.
83238         * gnulib-tool: New file.
83239         * MODULES.html.sh: New file.
83240
83241 2002-12-21  Karl Berry  <karl@gnu.org>
83242
83243         * doc/fdl.texi: update to version 1.2.
83244
83245 2002-12-19  Karl Berry  <karl@gnu.org>
83246
83247         * config/config.guess: update from prep.
83248
83249 2002-12-18  Bruno Haible  <bruno@clisp.org>
83250
83251         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
83252         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
83253
83254 2002-12-17  Bruno Haible  <bruno@clisp.org>
83255
83256         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
83257         stdlib.h, string.h.
83258
83259 2002-12-17  Bruno Haible  <bruno@clisp.org>
83260
83261         * lib/canon-host.c (strdup): Remove unused declaration.
83262
83263         * lib/fsusage.c: Include full_read.h.
83264         (get_fs_usage): Use full_read instead of safe_read.
83265
83266         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
83267
83268 2002-12-12  Karl Berry  <karl@gnu.org>
83269
83270         * config/config.guess: update from prep.
83271
83272 2002-12-11  Bruno Haible  <bruno@clisp.org>
83273
83274         * m4/setenv.m4: New file, from gettext-0.11.5.
83275
83276 2002-12-11  Bruno Haible  <bruno@clisp.org>
83277
83278         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
83279         not unsetenv().
83280         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
83281         modifications:
83282
83283         2002-12-11  Bruno Haible  <bruno@clisp.org>
83284
83285                 * setenv.c (alloca): Fall back to malloc.
83286                 (freea): New macro.
83287                 (setenv): Use freea() to free memory allocated with alloca().
83288
83289         2002-11-13  Bruno Haible  <bruno@clisp.org>
83290
83291                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
83292                 function declarations.
83293                 * unsetenv.c (unsetenv): Likewise.
83294
83295         2002-03-04  Bruno Haible  <bruno@clisp.org>
83296
83297                 Portability to AIX 4.3.3.
83298                 * unsetenv.c: New file, extracted from setenv.c.
83299                 * setenv.c: Move the unsetenv() function to unsetenv.c.
83300
83301         2001-12-20  Bruno Haible  <bruno@clisp.org>
83302
83303                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
83304                 use malloc instead. For SunOS 4.
83305
83306         2001-12-11  Bruno Haible  <bruno@clisp.org>
83307
83308                 * setenv.c: Declare alloca.
83309                 (compar_fn_t): New typedef.
83310                 (KNOWN_VALUE, STORE_VALUE): Use it.
83311
83312         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
83313         setenv.h.
83314
83315 2002-12-10  Paul Eggert  <eggert@twinsun.com>
83316
83317         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
83318         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
83319         Choose values that are less likely to collide with system fnmatch
83320         options.
83321         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
83322         defined (e.g., a pure POSIX system).
83323         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
83324         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
83325
83326 2002-12-06  Paul Eggert  <eggert@twinsun.com>
83327
83328         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
83329         a pain in practice to deal with generated m4 files.  This change
83330         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
83331
83332         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
83333         and jm-glibc-io.m4, as they are no longer a special case.
83334         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
83335         kludge and the auto-generation stuff.  Check only whether the
83336         functions are declared, not whether they exist, since older hosts
83337         that don't declare the functions can't use the optimization anyway.
83338
83339 2002-12-06  Jim Meyering  <jim@meyering.net>
83340
83341         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
83342
83343         Merge in changes from libc's misc/error.c, in preparation
83344         for the merge of gnulib's changes back into libc.
83345
83346         * lib/error.c (_): Define only if not already defined.
83347         Move definition to follow all #include directives.
83348         Include unlocked-io.h only if !_LIBC.
83349         [_LIBC]: Include <libio/libioP.h>.
83350         [USE_IN_LIBIO]: Include <libio/iolibio.h>
83351         (fflush): Tweak definition to use INTUSE.
83352         (putc): Define.
83353
83354 2002-12-05  Paul Eggert  <eggert@twinsun.com>
83355
83356         * lib/alloca.c [defined emacs]: Include "lisp.h".
83357         (xalloc_die) [defined emacs]: New macro.
83358         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
83359         [! defined emacs]: Include <xalloc.h>.
83360         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
83361         (pointer): Typedef to POINTER_TYPE *.
83362         (malloc): Remove decl; we now always use xmalloc.
83363         (alloca): Use old-style definition, since Emacs needs this.
83364         Check for arithmetic overflow when computing combined size.
83365
83366 2002-12-04  Paul Eggert  <eggert@twinsun.com>
83367
83368         Do not generate unlocked-io.h automatically, since it's easier to
83369         maintain it by hand.
83370
83371         * lib/unlocked-io.h: New file, from GNU diffutils,
83372         but with proper copyright notice and attribution.
83373         * lib/gen-uio: Remove.
83374         * lib/Makefile.am: Add copyright notice.
83375         (libfetish_a_SOURCES): Add unlocked-io.h.
83376         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
83377         (DISTCLEANFILES, io_functions): Remove macros.
83378         (EXTRA_DIST): Remove gen_uio.
83379         (unlocked-io.h): Remove rule.
83380
83381 2002-12-04  Jim Meyering  <jim@meyering.net>
83382
83383         Reflect the fact that stat.c and lstat.c are no longer generated.
83384         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
83385         (DISTCLEANFILES): Likewise.
83386         (EXTRA_DIST): Likewise.
83387         (all_local): Don't depend on stat.c or lstat.c.
83388         (stat.c, lstat.c): Remove rules.
83389         (EXTRA_DIST): Remove xstat.in.
83390
83391         * lib/xstat.in: Remove file.  Contents moved into stat.c.
83392         * lib/stat.c: New file.  Contents mostly from xstat.in.
83393         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
83394         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
83395
83396         * lib/safe-read.c: Rework so that it may serve to define safe_write,
83397         too.
83398         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
83399
83400 2002-12-03  Jim Meyering  <jim@meyering.net>
83401
83402         * lib/safe-read.c, safe-write.c: Change variable names and comments,
83403         but not semantics, to minimize the differences between these two files.
83404         (safe_read): Change comment to mention SAFE_READ_ERROR.
83405
83406         * lib/safe-read.c (IS_EINTR): Define.
83407         (safe_read): Use IS_EINTR in place of in-function cpp directives.
83408
83409 2002-12-02  Jim Meyering  <jim@meyering.net>
83410
83411         * lib/safe-read.c (EINTR): Define.
83412         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
83413         (INT_MAX): Provide fallback.
83414         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
83415
83416         * lib/safe-read.h (SAFE_READ_ERROR): Define.
83417
83418 2002-12-02  Bruno Haible  <bruno@clisp.org>
83419
83420         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
83421         Define, taken from safe-read.c.
83422         (INT_MAX): Provide fallback.
83423         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
83424         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
83425
83426         * lib/safe-read.c (EINTR): Remove definition.
83427         (safe_read): Don't use EINTR if it is absent.
83428
83429 2002-12-01  Jim Meyering  <jim@meyering.net>
83430
83431         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
83432         zero.
83433         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
83434
83435 2002-11-27  Paul Eggert  <eggert@twinsun.com>
83436
83437         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
83438         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
83439         with `if (! (value < limit)) abort ();', for readability.
83440
83441 2002-11-26  Karl Berry  <karl@gnu.org>
83442
83443         * lib/strdup.c: copy from libc again, with jim's ok.
83444         * lib/.cppi-disable: re-add strdup.c
83445
83446 2002-11-25  Karl Berry  <karl@gnu.org>
83447
83448         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
83449         instead of "strtol.c".
83450
83451 2002-11-25  Karl Berry  <karl@gnu.org>
83452
83453         * config/install-sh: update from automake for variable quoting, $0 in
83454         error msgs, etc.
83455
83456         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
83457         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
83458         entry.
83459
83460 2002-11-25  Jim Meyering  <jim@meyering.net>
83461
83462         * lib/mktime.c: Sync from libc, now that it has the latest fix.
83463
83464 2002-11-24  Karl Berry  <karl@gnu.org>
83465
83466         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
83467         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
83468
83469 2002-11-24  Jim Meyering  <jim@meyering.net>
83470
83471         Update from coreutils:
83472
83473         * lib/mktime.c: Merge in changes from libc.
83474
83475         Avoid a link-time failure on some Linux systems.
83476         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
83477         (otherwise).
83478         (__mon_yday): Declare with the STATIC attribute.
83479         (__mktime_internal): Likewise.
83480         Based on a report from Greg Schafer.
83481
83482 2002-11-23  Jim Meyering  <jim@meyering.net>
83483
83484         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
83485         Use `unsigned', not `int', as type of index.
83486
83487         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
83488
83489         * lib/fsusage.c: Remove unneeded parentheses around operands of
83490         `defined'.
83491
83492 2002-11-22  Paul Eggert  <eggert@twinsun.com>
83493
83494         * lib/quotearg.h: Allow multiple inclusion by surrounding with
83495         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
83496         so that we can be included first.
83497         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
83498         * lib/quotearg.c: Include quotearg.h immediately after config.h.
83499         No need to include stddef.h or sys/types.h any more.
83500         Surround local include files with "", not "<>".
83501         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
83502         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
83503         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
83504         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
83505         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
83506         (ISPRINT): Remove; no longer needed now that we assume C89.
83507
83508         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
83509         Preserve errno.
83510
83511         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
83512         quotearg_char): Use SIZE_MAX rather than
83513         (size_t) -1 when we are talking about "infinity".
83514
83515         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
83516
83517 2002-11-22  Paul Eggert  <eggert@twinsun.com>
83518
83519         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
83520         hint that one should use `if (! x) abort ();' rather than `assert
83521         (x);', and anyway it's one less thing to worry about configuring.
83522         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
83523         hash_rehash, hash_insert): Use abort rather than assert.
83524
83525 2002-11-22  Bruno Haible  <bruno@clisp.org>
83526
83527         * lib/safe-read.h: Assume C89. Add comments.
83528         (safe_read): Change return type to size_t.
83529         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
83530         byte counts > SSIZE_MAX correctly.
83531         * lib/safe-write.h: New file.
83532         * lib/safe-write.c: New file.
83533         * lib/full-read.h: New file.
83534         * lib/full-read.c: New file.
83535         * lib/full-write.h: Assume C89. Add comments.
83536         * lib/full-write.c: Include safe-write.h.
83537         (full_write): Rewritten to use safe_write.
83538         Suggested by Jim Meyering and Paul Eggert.
83539
83540 2002-11-21  Jim Meyering  <jim@meyering.net>
83541
83542         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
83543
83544         Merge in changes from the coreutils.
83545
83546         2002-09-25  Paul Eggert  <eggert@twinsun.com>
83547         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
83548         <stdint.h>.
83549         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
83550         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
83551         int.  Work more efficiently if X is the same width as uintmax_t.
83552         Do not compare X to -1, to avoid bogus compiler warning.
83553         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
83554         Don't assume that f_frsize and f_bsize are the same type.
83555
83556         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
83557         warning on FreeBSD.
83558
83559         * lib/makepath.c (make_path): Restore umask *before* creating the final
83560         component.
83561         (make_path): Minor reformatting.
83562
83563         * lib/xmalloc.c: Adjust to work with new autoconf macros,
83564         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
83565         HAVE_MALLOC/HAVE_REALLOC.
83566
83567         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
83568         dummy ones.  At least on GNU/Linux systems, `auto' means something
83569         else.
83570         From Michael Stone.
83571
83572 2002-11-21  Bruno Haible  <bruno@clisp.org>
83573
83574         Remove case insensitive option matching.
83575         * lib/argmatch.h (argcasematch): Remove declaration.
83576         (ARGCASEMATCH): Remove macro.
83577         (__xargmatch_internal): Remove case_sensitive argument.
83578         (XARGMATCH): Update.
83579         (XARGCASEMATCH): Remove macro.
83580         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
83581         case_sensitive argument.
83582         (argcasematch): Remove function.
83583         (__xargmatch_internal): Remove case_sensitive argument.
83584         (main): Use XARGMATCH instead of XARGCASEMATCH.
83585
83586         * lib/xmalloc.c: Change compile-time error message. Add comment about
83587         required autoconf version.
83588
83589 2002-11-20  Paul Eggert  <eggert@twinsun.com>
83590
83591         Merge argmatch cleanups from Bison.  Assume C89.
83592
83593         * lib/argmatch.c: Include config.h here, not in argmatch.h.
83594         Include stdlib.h, for EXIT_FAILURE.
83595         Always include <string.h>, since we assume C89.
83596         (EXIT_FAILURE): Remove pre-C89 bug workaround.
83597         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
83598         Include <stddef.h> instead, since it's all we need for size_t.
83599         (PARAMS): Remove.  All uses removed.
83600         (ARRAY_CARDINALITY): Do not bother to #undef.
83601         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
83602         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
83603         Remove unnecessary parentheses.
83604         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
83605         Insert necessary parentheses.
83606         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
83607         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
83608
83609 2002-11-19  Bruno Haible  <bruno@clisp.org>
83610
83611         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
83612         * lib/mbswidth.h: Include <stddef.h>, for size_t.
83613
83614         * lib/mbswidth.h (PARAMS): Remove macro.
83615         (mbswidth, mbsnwidth): Use ANSI C function declarations.
83616         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
83617
83618         * lib/gcd.h (PARAMS): Remove macro.
83619         (gcd): Use ANSI C function declarations.
83620         * lib/gcd.c (gcd): Likewise.
83621
83622 2002-11-15  Bruno Haible  <bruno@clisp.org>
83623
83624         * lib/strcspn.c: Include <stddef.h>.
83625         (strcspn): Use ANSI C function declaration. Change return type to
83626         size_t. Use NULL.
83627         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
83628         (strpbrk): Use NULL.
83629         * lib/strpbrk.h (PARAMS): Remove macro.
83630         (strpbrk): Use ANSI C function declaration.
83631         * lib/strstr.c: Don't include <sys/types.h>.
83632         * lib/strstr.h (PARAMS): Remove macro.
83633         (strstr): Use ANSI C function declarations.
83634
83635 2002-11-14  Karl Berry  <karl@gnu.org>
83636
83637         * config/mkinstalldirs: `do' on separate line, instead of
83638         `for var; do'.
83639
83640 2002-11-06  Bruno Haible  <bruno@clisp.org>
83641
83642         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
83643         * lib/gcd.c (gcd): Likewise.
83644
83645 2002-11-05  Bruno Haible  <bruno@clisp.org>
83646
83647         * lib/gcd.h: New file, from gettext-0.11.5.
83648         * lib/gcd.c: New file, from gettext-0.11.5.
83649
83650 2002-11-05  Bruno Haible  <bruno@clisp.org>
83651
83652         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
83653         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
83654         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
83655         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
83656
83657         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
83658         <libintl.h>.
83659         * lib/makepath.c: Include gettext.h instead of <locale.h> and
83660         <libintl.h>.
83661
83662         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
83663         * lib/human.c: Include gettext.h instead of <libintl.h>.
83664         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
83665         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
83666         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
83667         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
83668         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
83669         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
83670         (textdomain): Remove definition.
83671         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
83672
83673         * lib/long-options.c: Remove include of <libintl.h> and definition of
83674         _.
83675         * lib/same.c: Remove include of <libintl.h> and definition of _.
83676
83677 2002-11-04  Owen Taylor  <otaylor@redhat.com>
83678
83679         * lib/config.charset: A few additions for Solaris.
83680
83681 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
83682
83683         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
83684         * lib/localcharset.c (locale_charset): Declare as extern "C".
83685
83686 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
83687
83688         * lib/config.charset: msdos in uk_UA uses CP1125.
83689
83690 2002-11-04  Bruno Haible  <bruno@clisp.org>
83691
83692         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
83693         * lib/strcase.h: New file, from GNU gettext-0.11.5.
83694         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
83695         * lib/strstr.h: New file, from GNU gettext-0.11.5.
83696         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
83697
83698 2002-11-04  Bruno Haible  <bruno@clisp.org>
83699
83700         * lib/localcharset.c (locale_charset): Don't return an empty string.
83701
83702 2002-11-04  Bruno Haible  <bruno@clisp.org>
83703
83704         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
83705         aliases.
83706
83707 2002-11-04  Bruno Haible  <bruno@clisp.org>
83708
83709         * lib/config.charset: Update for newest glibc. Add canonical names
83710         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
83711
83712 2002-11-04  Bruno Haible  <bruno@clisp.org>
83713
83714         * lib/config.charset: Add support for NetBSD.
83715
83716 2002-11-04  Bruno Haible  <bruno@clisp.org>
83717
83718         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
83719
83720 2002-11-01  Bruno Haible  <bruno@clisp.org>
83721
83722         * configure.in: Add AC_CONFIG_AUX_DIR call.
83723         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
83724         test/Makefile.
83725         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
83726
83727 2002-09-28  Karl Berry  <karl@gnu.org>
83728
83729         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
83730         installed automake until the next release, since changes have been
83731         made.
83732
83733 2002-09-25  Karl Berry  <karl@gnu.org>
83734
83735         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
83736         * lib/getopt*: copy from libc/posix.
83737         * lib/gettext.h: copy from gettext.
83738         * lib/.cppi-disable: add strdup.c, gettext.h.
83739
83740 2002-09-25  Karl Berry  <karl@gnu.org>
83741
83742         * config/srclist.txt: enable gettext.h check.
83743         * config/config.{guess,sub}: update from prep.
83744         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
83745                 from automake 1.6.3.
83746         See srclist*.
83747
83748 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
83749
83750         * regex.c (PATFETCH): Remove the translating fetch.
83751         (PATFETCH_RAW): Rename to PATFETCH.
83752         (set_image_of_range): New fun.
83753         (SET_RANGE_TABLE_WORK_AREA): Use it.
83754         (regex_compile): Don't translate the pattern chars so eagerly.
83755         Only do it when inserting an `exactn' bytecode or when handling
83756         a char-range.
83757         (mutually_exclusive_p): Avoid empty statement.
83758
83759 2002-07-06  Jim Meyering  <meyering@lucent.com>
83760
83761         * m4/README: Don't mention Makefile.am.in.
83762         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
83763
83764 2002-07-01  Jim Meyering  <meyering@lucent.com>
83765
83766         * lib/c-stack.c: Include sys/time.h.
83767         From Volker Borchert.
83768
83769 2002-06-26  Paul Eggert  <eggert@twinsun.com>
83770
83771         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
83772
83773 2002-06-26  Paul Eggert  <eggert@twinsun.com>
83774
83775         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
83776         New macro.  Use it uniformly instead of
83777         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
83778         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
83779         reported by Vin Shelton.
83780
83781 2002-06-22  Paul Eggert  <eggert@twinsun.com>
83782
83783         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
83784         Do not assume SA_SIGINFO behavior.
83785         Bug reported by Jim Meyering on NetBSD 1.5.2.
83786
83787 2002-06-22  Jim Meyering  <meyering@lucent.com>
83788
83789         * m4/c-stack.m4: New file, from diffutils-2.8.2.
83790         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
83791
83792         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
83793         now that configure.ac uses AC_GNU_SOURCE.
83794         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
83795         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
83796
83797         Update to latest tools.  Suggestions from Paul Eggert.
83798         * m4/stdbool.m4: New file, from diffutils-2.8.2.
83799         * m4/gnu-source.m4: Update from diffutils-2.8.2.
83800         * m4/fnmatch.m4: Likewise.
83801         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
83802         to AC_HEADER_STDBOOL
83803
83804 2002-06-22  Jim Meyering  <meyering@lucent.com>
83805
83806         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
83807         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
83808
83809 2002-06-22  Jim Meyering  <meyering@lucent.com>
83810
83811         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
83812
83813         * lib/exitfail.c, exitfail.h: Likewise.
83814         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
83815
83816         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
83817         of fnmatch.h.
83818         (EXTRA_DIST): Add fnmatch_loop.c.
83819         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
83820
83821         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
83822         * lib/fnmatch.c: Update from diffutils-2.8.2.
83823         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
83824         * lib/fnmatch.h: Remove file.
83825
83826 2002-06-21  Jim Meyering  <meyering@lucent.com>
83827
83828         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
83829         * m4/mbrtowc.m4: Likewise.
83830
83831         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
83832         * m4/mbswidth.m4: Reflect name change:
83833         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
83834         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
83835
83836         * m4/lib-link.m4: Update from gettext-0.11.2.
83837         * m4/gettext.m4: Likewise.
83838
83839         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
83840         From Alfred M. Szmidt.
83841
83842 2002-06-18  Paul Eggert  <eggert@twinsun.com>
83843
83844         * lib/file-type.h: Report an error if neither S_ISREG nor
83845         S_IFREG is defined, instead of using a test specific to glibc
83846         2.2.  This should be safe, since POSIX requires S_ISREG and
83847         Unix Version 7 had S_IFREG.  We don't need to check for
83848         <sys/types.h> since we don't use any symbols that it defines.
83849
83850 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
83851
83852         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
83853         $@-t, so that each temporary file name is unique and valid in the first
83854         8 characters, for operation under DOS.
83855
83856 2002-06-15  Paul Eggert  <eggert@twinsun.com>
83857
83858         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
83859
83860 2002-06-15  Jim Meyering  <meyering@lucent.com>
83861
83862         Work even with DJGPP 2.03, which lacks support for symlinks.
83863         From Richard Dawe.
83864         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
83865         is defined.
83866         * lib/lchown.c (S_ISLNK): Likewise.
83867
83868 2002-06-15  Jim Meyering  <meyering@lucent.com>
83869
83870         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
83871         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
83872         have been included before this file.
83873
83874 2002-06-14  Jim Meyering  <meyering@lucent.com>
83875
83876         * lib/file-type.h: Use the version from diffutils-2.8.2.
83877         * lib/file-type.c: Likewise.
83878
83879 2002-06-07  Jim Meyering  <meyering@lucent.com>
83880
83881         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
83882         They're needed at least for NetBSD 1.5.2.
83883         ($statxfs_includes): Include those same headers.
83884         ($statxfs_includes): Include sys/vfs.h if available.
83885         ($statxfs_includes): Likewise for sys/statvfs.h.
83886         Check for the following members in both structs statfs and statvfs:
83887         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
83888
83889 2002-06-01  Jim Meyering  <meyering@lucent.com>
83890
83891         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
83892         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
83893
83894 2002-05-28  Jim Meyering  <meyering@lucent.com>
83895
83896         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
83897         Reported by Volker Borchert.
83898
83899 2002-05-27  Jim Meyering  <meyering@lucent.com>
83900
83901         Fix a problem seen only on nonconforming systems whereby ls.c's
83902         use of localtime, and then of gettimeofday would cause trouble:
83903         the localtime call used to initialize rpl_gettimeofday's save
83904         mechanism would clobber ls's current local time information so
83905         that in any long listing the first file would always be listed
83906         with date 1970-01-01.  Analysis by Volker Borchert.
83907
83908         * lib/gettimeofday.c (localtime): Undefine.
83909         (rpl_localtime): New function.
83910
83911 2002-05-27  Jim Meyering  <meyering@lucent.com>
83912
83913         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
83914         localtime.
83915
83916         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
83917         use the replacement function; it wouldn't resolve at link time.
83918         Reported by Volker Borchert.
83919
83920 2002-05-22  Jim Meyering  <meyering@lucent.com>
83921
83922         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
83923         file-type.h.
83924         * lib/file-type.h: New file.
83925         * lib/file-type.c (file_type): New file/function.  Extracted from
83926         diffutils.
83927
83928 2002-04-30  Jim Meyering  <meyering@lucent.com>
83929
83930         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
83931
83932 2002-04-29  Paul Eggert  <eggert@twinsun.com>
83933
83934         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
83935
83936 2002-04-29  Paul Eggert  <eggert@twinsun.com>
83937
83938         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
83939         Do not check for alloca.h (no longer used) or stdbool.h (was never
83940         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
83941
83942 2002-04-29  Paul Eggert  <eggert@twinsun.com>
83943
83944         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
83945
83946 2002-04-29  Jim Meyering  <meyering@lucent.com>
83947
83948         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
83949         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
83950         Use AC_FUNC_STRNLEN here instead.
83951
83952         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
83953         With autoconf-2.53a, it's part of AC_PROG_CC.
83954
83955 2002-04-28  Paul Eggert  <eggert@twinsun.com>
83956
83957         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
83958         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
83959
83960 2002-04-28  Paul Eggert  <eggert@twinsun.com>
83961
83962         * lib/sig2str.h, lib/sig2str.c: New files.
83963         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
83964
83965 2002-04-28  Paul Eggert  <eggert@twinsun.com>
83966
83967         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
83968         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
83969         of 127, since 64 is the largest conceivable number for ancient
83970         nonstandard hosts.
83971         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
83972
83973 2002-04-28  Jim Meyering  <meyering@lucent.com>
83974
83975         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
83976
83977 2002-04-24  Jim Meyering  <meyering@lucent.com>
83978
83979         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
83980         (jm_PREREQ): Use it.
83981
83982         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
83983         mach/mach.h fcntl.h.
83984         Check for this function: setlocale.
83985
83986 2002-04-24  Jim Meyering  <meyering@lucent.com>
83987
83988         * lib/gettext.h: New file, from Gettext.
83989         * lib/Makefile.am (INCLUDES): Remove -I../intl.
83990         (libfetish_a_SOURCES): Add gettext.h.
83991
83992 2002-04-16  Jim Meyering  <meyering@lucent.com>
83993
83994         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
83995         ut_pid, ut_id, ut_exit.
83996
83997 2002-04-16  Jim Meyering  <meyering@lucent.com>
83998
83999         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
84000         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
84001         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
84002
84003 2002-04-12  Jim Meyering  <meyering@lucent.com>
84004
84005         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
84006         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
84007         existence of the getmntinfo function.  Needed for Darwin 5.3.
84008
84009         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
84010         This is necessary at least on Darwin 5.3.
84011
84012         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
84013         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
84014         strnlen.o in the library, and that makes some versions of ranlib
84015         object.
84016
84017 2002-04-12  Jim Meyering  <meyering@lucent.com>
84018
84019         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
84020
84021 2002-04-09  Jim Meyering  <meyering@lucent.com>
84022
84023         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
84024         to be more precise.  Rather than saying we're checking whether the
84025         function `works', say what we're testing.
84026         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
84027         Reported by Bruno Haible.
84028
84029 2002-03-10  Jim Meyering  <meyering@lucent.com>
84030
84031         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
84032         Suggestion from Santiago Vila.
84033
84034 2002-03-08  Jim Meyering  <meyering@lucent.com>
84035
84036         * lib/rename.c: Mention that this wrapper is needed also on
84037         mips-dec-ultrix4.4 systems.
84038
84039 2002-03-02  Jim Meyering  <meyering@lucent.com>
84040
84041         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
84042         not HAVE_CLOCK_SETTIME.
84043
84044 2002-02-27  Paul Eggert  <eggert@twinsun.com>
84045
84046         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
84047         Check for clock_settime.
84048
84049 2002-02-27  Paul Eggert  <eggert@twinsun.com>
84050
84051         * lib/nanosleep.h: Rename to....
84052         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
84053
84054         * lib/gettime.c: New file.
84055         * lib/settime.c: New file.
84056         * lib/stime.c: Remove.
84057
84058         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
84059         timespec.h.  Remove nanosleep.h.
84060
84061 2002-02-25  Paul Eggert  <eggert@twinsun.com>
84062
84063         * m4/acl.m4: New file.
84064         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
84065         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
84066
84067 2002-02-25  Paul Eggert  <eggert@twinsun.com>
84068
84069         * lib/acl.c, lib/acl.h: New files.
84070         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
84071
84072 2002-02-24  Jim Meyering  <meyering@lucent.com>
84073
84074         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
84075         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
84076         cause trouble.  Reported by Nelson Beebe.
84077
84078 2002-02-23  Paul Eggert  <eggert@twinsun.com>
84079
84080         * lib/path-concat.c (xpath_concat): Reorder code to pacify
84081         compilers that don't know that xalloc_die never returns.
84082
84083 2002-02-20  Jim Meyering  <meyering@lucent.com>
84084
84085         * lib/getdate.c: Regenerate using bison-1.33.
84086
84087 2002-02-17  Jim Meyering  <meyering@lucent.com>
84088
84089         * config/config.guess (main): Don't use `head -1'; it's no longer
84090         portable. Use `sed 1q' instead.
84091
84092 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
84093
84094         * m4/codeset.m4: Upgrade to gettext-0.11.
84095         * m4/gettext.m4: Upgrade to gettext-0.11.
84096         * m4/glibc21.m4: Upgrade to gettext-0.11.
84097         * m4/iconv.m4: Upgrade to gettext-0.11.
84098         * m4/isc-posix.m4: Upgrade to gettext-0.11.
84099         * m4/lcmessage.m4: Upgrade to gettext-0.11.
84100         * m4/lib-ld.m4: New file, from gettext-0.11.
84101         * m4/lib-link.m4: New file, from gettext-0.11.
84102         * m4/lib-prefix.m4: New file, from gettext-0.11.
84103         * m4/progtest.m4: Upgrade to gettext-0.11.
84104
84105 2002-02-15  Paul Eggert  <eggert@twinsun.com>
84106
84107         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
84108         (jm_PREREQ): Use it.
84109
84110 2002-02-15  Paul Eggert  <eggert@twinsun.com>
84111
84112         * lib/posixver.c, lib/posixver.h: New files.
84113         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
84114
84115 2002-02-02  Paul Eggert  <eggert@twinsun.com>
84116             Bruno Haible  <bruno@clisp.org>
84117
84118         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
84119         (fwrite_success_callback): New declaration.
84120         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
84121         print_unicode_char. Call failure callback instead of error.
84122         (fwrite_success_callback): New function.
84123         (exit_failure_callback): New function.
84124         (fallback_failure_callback): New function.
84125         (print_unicode_char): Call unicode_to_mb.
84126
84127 2002-01-26  Jim Meyering  <meyering@lucent.com>
84128
84129         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
84130         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
84131
84132 2002-01-26  Jim Meyering  <meyering@lucent.com>
84133
84134         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
84135
84136 2002-01-22  Paul Eggert  <eggert@twinsun.com>
84137
84138         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
84139
84140 2002-01-22  Jim Meyering  <meyering@lucent.com>
84141
84142         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
84143         Otherwise, some versions of automake would omit the rule that makes
84144         Makefile from Makefile.in.
84145
84146 2002-01-21  Paul Eggert  <eggert@twinsun.com>
84147
84148         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
84149         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
84150         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
84151         (memcoll): Set errno to zero if there is no error.
84152
84153         * lib/quotearg.c (quotearg_buffer_restyled):
84154         Fix bug with quoting buffers containing NUL when backslashing escapes.
84155         This bug was exposed by the other changes in this patch.
84156         (quotearg_n_options): New arg ARGSIZE.
84157         All callers changed.
84158         (quoting_options_from_style): New function.
84159         (quotearg_n_style): Use it.
84160         (quotearg_n_style_mem): New function.
84161
84162         * lib/quotearg.h (quotearg_n_style_mem): New function.
84163
84164 2002-01-19  Jim Meyering  <meyering@lucent.com>
84165
84166         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
84167         Remove useless quotes: DF_PROG="df".
84168         * m4/strnlen.m4: New file.
84169
84170 2002-01-16  Paul Eggert  <eggert@twinsun.com>
84171
84172         * lib/backupfile.c (ISDIGIT): Comment fix.
84173         * lib/getdate.y (ISDIGIT): Likewise.
84174         * lib/posixtm.c (ISDIGIT, year): Likewise.
84175         * lib/strverscmp.c (ISDIGIT): Likewise.
84176         * lib/userspec.c (ISDIGIT): Likewise.
84177
84178 2002-01-16  Jim Meyering  <meyering@lucent.com>
84179
84180         * lib/getdate.y: Add three semicolons, each just before a closing
84181         brace. Bison (as of version 1.31) no longer papers over that mistake.
84182
84183 2002-01-05  Jim Meyering  <meyering@lucent.com>
84184
84185         * lib/version-etc.c (version_etc_copyright): Update copyright year.
84186
84187 2001-12-19  Paul Eggert  <eggert@twinsun.com>
84188
84189         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
84190         not silently exit merely because the output buffer happens to
84191         have nothing pending.
84192
84193 2001-12-18  Paul Eggert  <eggert@twinsun.com>
84194
84195         See the big note in ../ChangeLog.
84196         * lib/human.c (suffixes): Prefer K to k for 1024.
84197         (generate_suffix_backwards): New function.
84198         (human_readable_inexact): Use it.
84199         * lib/xstrtol.c (__xstrtol): If there is no number but there
84200         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
84201         Accept 'K' as well as 'k'.
84202
84203 2001-12-15  Jim Meyering  <meyering@lucent.com>
84204
84205         * lib/regex.h (__restrict_arr): Update from libc.
84206
84207         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
84208         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
84209         (STREQ): Define.
84210
84211 2001-12-14  Jim Meyering  <meyering@lucent.com>
84212
84213         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
84214         Suggestion from Bruno Haible.
84215
84216 2001-12-10  Jim Meyering  <meyering@lucent.com>
84217
84218         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
84219         xrealloc, Instead, include "xalloc.h".
84220         (initbuffer): Don't cast xmalloc return value to char*.
84221         (readline): Reword comment.
84222         Don't cast xrealloc return value to char*
84223         Return NULL, not 0.
84224
84225 2001-12-09  Jim Meyering  <meyering@lucent.com>
84226
84227         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
84228         about `signed and unsigned type in conditional expression'.
84229         * lib/posixtm.c (posix_time_parse): Likewise.
84230
84231         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
84232
84233         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
84234         to avoid a pedantic warning.
84235
84236         * lib/getstr.c: Don't include assert.h.
84237         (getstr): Remove warning-evoking assertions.
84238         Return -1 if offset parameter is out of bounds.
84239         Change the type of a local from int to size_t.
84240
84241         * lib/strftime.c (my_strftime_localtime_r): Include this function
84242         definition in the `#if ! HAVE_TM_GMTOFF' block.
84243
84244         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
84245         Include xalloc.h instead.
84246
84247 2001-12-02  Jim Meyering  <meyering@lucent.com>
84248
84249         * lib/tempname.c: Don't declare getenv, thus reverting the change of
84250         2001-11-18.  It's no longer necessary, now that stdlib.h is always
84251         included.
84252
84253         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
84254         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
84255
84256 2001-11-30  Akim Demaille  <akim@epita.fr>
84257
84258         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
84259         before being defined.
84260
84261 2001-11-27  Paul Eggert  <eggert@twinsun.com>
84262
84263         * lib/quotearg.h (quotearg_n, quotearg_n_style):
84264         First arg is int, not unsigned.
84265         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
84266         (SIZE_MAX, UINT_MAX): New macros.
84267         (quotearg_n_options): Abort if N is negative.
84268         Avoid overflow check on hosts where size_t is 64 bits and int
84269         is 32 bits, as overflow is impossible there.
84270         Fix off-by-one typo that caused unnecessary reallocation.
84271
84272 2001-11-27  Jim Meyering  <meyering@lucent.com>
84273
84274         * lib/tempname.c: Merge with version from libc.
84275         * lib/regex.c: Likewise.
84276
84277         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
84278         systems for which STDC_HEADERS is 0, it was not included, resulting in
84279         a warning about an integer-to-pointer conversion problem with getenv.
84280         Reported by Volker Borchert.
84281
84282 2001-11-26  Jim Meyering  <meyering@lucent.com>
84283
84284         * lib/gtod.h: Remove file.
84285         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
84286         * lib/gettimeofday.c: Don't include gtod.h.
84287         (GTOD_init): Remove function.
84288         (rpl_gettimeofday): Do its job here instead, rather than aborting.
84289         Suggestion from Volker Borchert.
84290
84291 2001-11-23  Jim Meyering  <meyering@lucent.com>
84292
84293         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
84294         it.
84295         * lib/hash.c (struct hash_table): Define it here instead.
84296
84297 2001-11-22  Jim Meyering  <meyering@lucent.com>
84298
84299         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
84300
84301 2001-11-20  Jim Meyering  <meyering@lucent.com>
84302
84303         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
84304         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
84305
84306 2001-11-19  Jim Meyering  <meyering@lucent.com>
84307
84308         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
84309         directory.  Use "conftestXXXXXX" as the template.
84310         Suggestion from Paul Eggert.
84311
84312         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
84313         immediately, so the test doesn't mistakenly hit the max-open-files
84314         limit.
84315
84316 2001-11-18  Paul Eggert  <eggert@twinsun.com>
84317
84318         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
84319         (TEMPORARIES): New macro.
84320         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
84321         removes an artificial limitation (e.g. HP-UX 10.20, where
84322         TMP_MAX is 17576).
84323
84324 2001-11-18  Jim Meyering  <meyering@lucent.com>
84325
84326         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
84327
84328 2001-11-18  Jim Meyering  <meyering@lucent.com>
84329
84330         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
84331         on SunOS 4.
84332
84333         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
84334         files will be created before anything else.
84335
84336 2001-11-17  Paul Eggert  <eggert@twinsun.com>
84337
84338         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
84339         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
84340
84341 2001-11-17  Jim Meyering  <meyering@lucent.com>
84342
84343         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
84344         Prompted by a report from Bob Proulx.
84345
84346         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
84347         Instead, require UTILS_FUNC_MKSTEMP.
84348
84349 2001-11-17  Jim Meyering  <meyering@lucent.com>
84350
84351         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
84352         Now, that's done as part of AC_FUNC_STRTOD.
84353
84354 2001-11-17  Jim Meyering  <meyering@lucent.com>
84355
84356         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
84357         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
84358         rather than group writable.  Patch by Juan F. Codagnone.
84359
84360         * lib/readtokens.c: Remove explicit declarations of xmalloc and
84361         xrealloc, Instead, include "xalloc.h".
84362
84363         * lib/mountlist.c: Include unlocked-io.h after all system headers.
84364         Remove explicit declarations of xmalloc, xrealloc,
84365         and xstrdup.  Instead, include "xalloc.h".
84366
84367         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
84368         unlocked-io.h.
84369         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
84370         Likewise.
84371         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
84372
84373         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
84374         Reported by Padraig Brady.
84375
84376         * lib/mkstemp.c: #undef mkstemp.
84377         Include config.h.
84378         (rpl_mkstemp): Rename from mkstemp.
84379         Protoize.
84380
84381 2001-11-16  Jim Meyering  <meyering@lucent.com>
84382
84383         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
84384         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
84385         determine the amount of total physical memory, use pstat_getstatic.
84386         HPUX-11 doesn't define _SC_PHYS_PAGES.
84387         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
84388         If sysconf couldn't be used to determine the amount of available
84389         physical memory, use both pstat_getstatic and pstat_getdynamic.
84390         Based on a patch from Bob Proulx.
84391
84392 2001-11-10  Jim Meyering  <meyering@lucent.com>
84393
84394         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
84395         (jm_PREREQ): Use it.
84396
84397 2001-11-09  Jim Meyering  <meyering@lucent.com>
84398
84399         * m4/jm-macros.m4: Require autoconf-2.52f.
84400         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
84401         Use these AC_-prefixed names, not the AM_-prefixed ones.
84402
84403         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
84404
84405 2001-11-05  Jim Meyering  <meyering@lucent.com>
84406
84407         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
84408
84409 2001-11-04  Jim Meyering  <meyering@lucent.com>
84410
84411         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
84412         $DEFS.
84413
84414 2001-11-03  Jim Meyering  <meyering@lucent.com>
84415
84416         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
84417         of AC_DEFUN.
84418
84419         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
84420         know the name of the variable in the macro definition.
84421
84422 2001-11-03  Jim Meyering  <meyering@lucent.com>
84423
84424         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
84425         in argmatch_to_argument call.
84426
84427         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
84428         argument.
84429
84430         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
84431         e.g., a fault due to an attempt to free a NULL pointer.
84432
84433 2001-11-01  Jim Meyering  <meyering@lucent.com>
84434
84435         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
84436         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
84437
84438 2001-11-01  Jim Meyering  <meyering@lucent.com>
84439
84440         * lib/dirfd.c, lib/dirfd.h: New files.
84441         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
84442
84443         * lib/hash.c (hash_print) [TESTING]: Clean up.
84444
84445 2001-10-22  Paul Eggert  <eggert@twinsun.com>
84446
84447         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
84448         to avoid a warning if -Wall.
84449
84450 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
84451
84452         * README: New file
84453         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
84454         (per RMS's instructions, this is now the canonical source)
84455         * lgpl/, gpl/: New directories.
84456
84457 2001-10-21  Paul Eggert  <eggert@twinsun.com>
84458
84459         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
84460
84461 2001-10-21  Jim Meyering  <meyering@lucent.com>
84462
84463         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
84464         this code would end up calling gettext even in packages built
84465         with --disable-nls.
84466         * lib/getopt.c (_): Likewise.
84467         * lib/regex.c (_): Likewise.
84468
84469 2001-10-20  Paul Eggert  <eggert@twinsun.com>
84470
84471         * m4/error.m4 (jm_PREREQ_ERROR):
84472         Do not invoke AC_CHECK_FUNCS with strerror_r, as
84473         AC_FUNC_STRERROR_R does that.
84474         Check for strerror declaration.
84475
84476         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
84477         are supposed to have them these days.
84478         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
84479         Merge changes from latest Autoconf CVS.
84480         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
84481         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
84482         POSIX decided to standardize on the int flavor of strerror_r.
84483
84484 2001-10-20  Paul Eggert  <eggert@twinsun.com>
84485
84486         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
84487         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
84488         Use strerror_r that is only a macro, even if it is not a function.
84489         (strerror): Check for HAVE_DECL_STRERROR before declaring.
84490         (private_strerror): Use prototypes, not old-style function definition.
84491         (print_errno_message): New function.
84492         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
84493         char*-flavored one.
84494         (error_tail, error, error_at_line): Use it.
84495
84496 2001-10-11  Jim Meyering  <meyering@lucent.com>
84497
84498         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
84499         and quote_n (1, ... to avoid clobbering a buffer.
84500
84501 2001-10-05  Jim Meyering  <meyering@lucent.com>
84502
84503         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
84504         hash-pjw.h.
84505         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
84506         * lib/hash-pjw.h: New file.
84507
84508 2001-09-30  Jim Meyering  <meyering@lucent.com>
84509
84510         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
84511         `struct fsstat' has the `f_fstypename' member.
84512         Use that to define FS_TYPE, which is now used to make
84513         the getfsstat link test tighter.
84514
84515 2001-09-30  Jim Meyering  <meyering@lucent.com>
84516
84517         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
84518         Include <sys/ucred.h>, for Apple Darwin.
84519         Include sys/mount.h and sys/fs_types.h only if available.
84520         (FS_TYPE): Define.
84521         (read_filesystem_list): Use FS_TYPE.
84522
84523 2001-09-29  Paul Eggert  <eggert@twinsun.com>
84524
84525         * lib/exclude.c (excluded_filename): 0 -> false, since it's
84526         a boolean context.
84527
84528 2001-09-29  Jim Meyering  <meyering@lucent.com>
84529
84530         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
84531         [one-argument getmntent function]): Include stdio.h before mntent.h.
84532         SunOS 4.1.x needs it for the declaration of `FILE'.
84533         Patch by Volker Borchert.
84534
84535         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
84536         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
84537         sys/fs_types.h, and make the link-test for getfsstat guard #include
84538         directives with appropriate #if HAVE_*_H tests so that we can
84539         detect getfsstat on Apple Darwin1.3.7 systems.
84540         Reported by Nelson Beebe.
84541         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
84542
84543 2001-09-28  Paul Eggert  <eggert@twinsun.com>
84544
84545         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
84546         #defines strtoimax.  Also treat the other strto* functions
84547         like strtoimax.
84548
84549         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
84550         Check for strtoul and strtoumax,
84551         as those declarations are made even in the signed case.
84552         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
84553         Likewise, for strtol and strtoimax.
84554
84555 2001-09-28  Paul Eggert  <eggert@twinsun.com>
84556
84557         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
84558         #defines strtoimax.  Also treat the other strto* functions
84559         like strtoimax.
84560
84561         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
84562         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
84563         (strtoimax, strtoumax): Do not declare if already defined as a macro.
84564
84565 2001-09-26  Jim Meyering  <meyering@lucent.com>
84566
84567         Most macros in unlocked-io.h had the wrong number of arguments.
84568         * lib/gen-uio: New script.
84569         (USE_UNLOCKED_IO): Define to 1 if not already defined.
84570         * lib/unlocked-io.hin: Remove file.
84571         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
84572         rather than trying to embed it here.
84573         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
84574         Reported by Padraig Brady.
84575
84576 2001-09-25  Volker Borchert  <bt@teknon.de>
84577
84578         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
84579         `result'.
84580
84581 2001-09-24  Jim Meyering  <meyering@lucent.com>
84582
84583         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
84584
84585 2001-09-23  Jim Meyering  <meyering@lucent.com>
84586
84587         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
84588         instead of the mere test for existence of mntent.h.  The latter
84589         would get a false-positive on AIX 3.4 systems.
84590         In the outer getmntent if-block, don't die if neither of the getmntent
84591         tests succeeds.  Instead, just fall through and continue with the
84592         remaining tests.
84593
84594 2001-09-23  Jim Meyering  <meyering@lucent.com>
84595
84596         * lib/mountlist.c: Remove useless parentheses in #if directives.
84597         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
84598         the deprecated MOUNTED symbol is no longer defined in mntent.h.
84599
84600 2001-09-22  Jim Meyering  <meyering@lucent.com>
84601
84602         * m4/gettext.m4: New file.  From gettext.
84603         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
84604         * m4/progtest.m4: Likewise
84605         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
84606         * m4/glibc21.m4: Likewise.
84607
84608         * m4/libintl.m4: Remove.  No longer used.
84609
84610 2001-09-22  Jim Meyering  <meyering@lucent.com>
84611
84612         * lib/localcharset.c: Update from latest gettext.
84613         * lib/config.charset: Likewise.
84614
84615 2001-09-20  Jim Meyering  <meyering@lucent.com>
84616
84617         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
84618         strtoimax.
84619         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
84620         strtoumax.
84621
84622 2001-09-20  Jim Meyering  <meyering@lucent.com>
84623
84624         * lib/xstrtol.c (strtoimax): Guard declaration with
84625         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
84626         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
84627         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
84628         (strtoumax): Likewise, for completeness (it wasn't necessary).
84629
84630 2001-09-17  Paul Eggert  <eggert@twinsun.com>
84631
84632         * lib/strtoimax.c (HAVE_LONG_LONG):
84633         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
84634         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
84635         to work around bug in IBM C compiler.
84636
84637 2001-09-17  Jim Meyering  <meyering@lucent.com>
84638
84639         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
84640         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
84641         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
84642         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
84643         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
84644         whenever the right hand side need not be expanded by the shell.
84645
84646 2001-09-16  Paul Eggert  <eggert@twinsun.com>
84647
84648         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
84649         library.  It's not correct, as some older glibcs are buggy.
84650         fnmatch wasn't fixed until glibc 2.2.
84651
84652         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
84653         special shell magic here.
84654
84655 2001-09-16  Jim Meyering  <meyering@lucent.com>
84656
84657         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
84658         * m4/jm-macros.m4: Require it.
84659
84660 2001-09-16  Jim Meyering  <meyering@lucent.com>
84661
84662         * lib/mkdir.c: New file.
84663
84664 2001-09-15  Jim Meyering  <meyering@lucent.com>
84665
84666         * m4/jm-macros.m4: Check for help2man.
84667
84668 2001-09-11  Jim Meyering  <meyering@lucent.com>
84669
84670         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
84671         The body, by Paul Eggert, was moved here from configure.in.
84672         * m4/jm-macros.m4: Require UTILS_HOST_OS.
84673
84674 2001-09-04  Paul Eggert  <eggert@twinsun.com>
84675
84676         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
84677         (jm_PREREQ): Use it.
84678
84679 2001-09-04  Paul Eggert  <eggert@twinsun.com>
84680
84681         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
84682         Use ssize_t, not int, to store result of readlink.
84683         Check for ssize_t overflow as well as size_t overflow,
84684         as POSIX says the result of readlink is implementation-defined
84685         when ssize_t overflows.
84686         Remove unnecessary cast to char*.
84687         Use free+malloc instead of realloc, as the storage doesn't need
84688         to be preserved and it's clearer and can be more efficient that way.
84689         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
84690         * lib/xreadlink.h (xreadlink): Update prototype.
84691
84692 2001-09-04  Paul Eggert  <eggert@twinsun.com>
84693
84694         * lib/xgetcwd.c: Revert some of the previous change; intead,
84695         fix the HAVE_GETCWD_NULL code to behave more like the
84696         !HAVE_GETCWD_NULL code used to.
84697
84698         Include "xalloc.h".
84699         (xgetcwd): Do not return NULL when memory is exhausted; instead,
84700         invoke xalloc_die.
84701
84702 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84703
84704         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
84705         sys/param.h, as pathmax.h includes them.
84706
84707 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84708
84709         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
84710         (jm_PREREQ_XGETCWD): New macro.
84711
84712         * m4/getcwd.m4: New file.
84713
84714 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84715
84716         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
84717         like the HAVE_GETCWD_NULL code.
84718         Include pathmax.h if not HAVE_GETCWD.
84719         Do not include xalloc.h.
84720         (INITIAL_BUFFER_SIZE): New symbol.
84721         Do not use xmalloc / xrealloc, since the caller is responsible for
84722         handling errors.  Preserve errno around `free' during failure.
84723         Do not overrun buffer when using getwd.
84724
84725 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84726
84727         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
84728         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
84729         getcwd (NULL, 0).
84730
84731 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84732
84733         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
84734         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
84735         spotted by Jim Meyering.
84736
84737 2001-09-03  Jim Meyering  <meyering@lucent.com>
84738
84739         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
84740         failure.
84741
84742 2001-09-02  Jim Meyering  <meyering@lucent.com>
84743
84744         * lib/error.c: Update from GNU libc.
84745
84746 2001-09-01  Jim Meyering  <meyering@lucent.com>
84747
84748         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
84749         Used by df.
84750
84751 2001-09-01  Jim Meyering  <meyering@lucent.com>
84752
84753         * lib/xreadlink.c: New file.
84754         * lib/xreadlink.h: New file.
84755         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
84756         xreadlink.h.
84757
84758         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
84759         doesn't conflict with sparc Solaris 7's definition in
84760         /usr/include/sys/int_types.h.
84761
84762         * lib/exclude.c: Use `""', not `<>' to #include non-system header
84763         files.
84764         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
84765         and strncasecmp as r-values.  Unixware didn't have declarations.
84766
84767 2001-08-31  Paul Eggert  <eggert@twinsun.com>
84768
84769         * lib/xstrtol.h: Add copyright notice.
84770         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
84771         LONGINT_INVALID_SUFFIX_CHAR.
84772
84773 2001-08-31  Paul Eggert  <eggert@twinsun.com>
84774
84775         * lib/xstrtol.c (strtoimax): New decl.
84776
84777 2001-08-31  Paul Eggert  <eggert@twinsun.com>
84778
84779         * lib/xgetcwd.c: Don't include pathmax.h.
84780         Include stdlib.h and unistd.h if available.
84781         Include xalloc.h.
84782         (xmalloc, xstrdup, free): Remove decls.
84783         (xgetcwd): Don't assume sizes fit in unsigned.
84784         Check for overflow when computing sizes.
84785         Simplify reallocation code.
84786
84787 2001-08-31  Paul Eggert  <eggert@twinsun.com>
84788
84789         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
84790         a directory's st_size can have an arbitrary value, so the old
84791         usage could waste an arbitrary amount of memory.  All uses
84792         changed.
84793         * lib/savedir.h: Update prototype.
84794
84795 2001-08-31  Paul Eggert  <eggert@twinsun.com>
84796
84797         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
84798
84799         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
84800         old strtoimax.c.
84801
84802         Also, make the following further changes to make this file's
84803         configuration more similar to that of strtol.c:
84804         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
84805         (strtoumax, uintmax_t, strtoull, strtol): Remove.
84806         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
84807         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
84808         changed to signed values.
84809
84810         And make the following changes as well:
84811         Fix copyright notice, as 1999 was missing.
84812         (verify): New macro.
84813         (strtoimax): Check sizes at compile-time, not run-time.
84814         Prefer strtol to strtoll if both work.
84815         (main): Remove; it was not that useful and was a pain to maintain.
84816
84817         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
84818
84819 2001-08-31  Jim Meyering  <meyering@lucent.com>
84820
84821         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
84822         Use an initial, malloc'd, buffer of length 128 rather than
84823         a statically allocated one of length 1024.
84824
84825 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84826
84827         Simplify code, partly by assuming autoconf 2.52 semantics.
84828
84829         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
84830
84831         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
84832         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
84833         All uses removed.
84834         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
84835         Move AC_REQUIRE to next-to-top level, to avoid confusion.
84836         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
84837         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
84838         jm_AC_HEADER_INTTYPES_H.
84839         * m4/jm-macros.m4 (jm_MACROS): Likewise.
84840
84841         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
84842
84843         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
84844         Quote first arg of AC_DEFUN.
84845         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
84846         since they are needed to parse the include file even if we need
84847         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
84848         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
84849         but with opposite signedness.
84850
84851 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84852
84853         Merge 'exclude' changes from tar 1.13.22.
84854         This fixes one or two unlikely storage allocation overflow bugs,
84855         but doesn't change user-visible behavior otherwise.
84856
84857 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84858
84859         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
84860         (jm_PREREQ_EXCLUDE): New macro.
84861
84862 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84863
84864         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
84865         tm to be declared.
84866
84867 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84868
84869         * lib/hash.c: Remove '2001' from copyright notice.
84870
84871 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84872
84873         * lib/full-write.h: New file.
84874         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
84875         * lib/full-write.c: Correct credits, as cccp.c no longer
84876         exists and anyway it was so heavily changed from the old cccp
84877         code as to be unrecognizable.  Include full-write.h.
84878         (full_write): Return size_t, with short writes meaning failure.
84879         All callers changed.  This fixes a bug with large buffers
84880         on 64-bit hosts.
84881         * lib/utime.c: Include full-write.h.
84882
84883 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84884
84885         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
84886         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
84887         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
84888         Include if available.
84889         (<xalloc.h>): Include
84890         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
84891         (verify): New macro.  Use it to verify that EXCLUDE macros do not
84892         collide with FNM macros.
84893         (struct patopts): New struct.
84894         (struct exclude): Use it, as exclude patterns now come with options.
84895         (new_exclude): Support above changes.
84896         (new_exclude, add_exclude_file):
84897         Initial size must now be a power of two to simplify overflow checking.
84898         (free_exclude, fnmatch_no_wildcards): New function.
84899         (excluded_filename): No longer requires options arg, as the options
84900         are determined by add_exclude.  Now returns bool, not int.
84901         (excluded_filename, add_exclude):
84902         Add support for the fancy new exclusion options.
84903         (add_exclude, add_exclude_file): Now takes int options arg.
84904         Check for arithmetic overflow when computing sizes.
84905         (add_exclude_file): xrealloc might modify errno, so don't
84906         realloc until after errno might be used.
84907
84908         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
84909         New macros.
84910         (free_exclude): New decl.
84911         (add_exclude, add_exclude_file): Now takes int options arg.
84912         (excluded_filename): No longer requires options arg, as the options
84913         are determined by add_exclude.  Now returns bool, not int.
84914
84915 2001-08-30  Paul Eggert  <eggert@twinsun.com>
84916
84917         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
84918
84919 2001-08-27  Jim Meyering  <meyering@lucent.com>
84920
84921         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
84922
84923         * lib/version-etc.c (N_): Remove definition.
84924         Revert most of last change.
84925         Instead, simply don't mark the `Copyright...' string for translation.
84926         Based on advice from Paul Eggert.
84927
84928         * lib/strtoxmax.c: Tweak comment.
84929
84930 2001-08-26  Jim Meyering  <meyering@lucent.com>
84931
84932         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
84933
84934         * m4/xstrtoimax.m4: New file.
84935         * m4/xstrtoumax.m4: Add comments explaining why we
84936         AC_REPLACE_FUNCS(strtol).
84937
84938 2001-08-26  Jim Meyering  <meyering@lucent.com>
84939
84940         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
84941         of copyright with `%s' so translators don't get an untranslated
84942         message in 2002.
84943         (COPYRIGHT_YEAR): Define.
84944         (version_etc): Use fprintf rather than fputs.
84945         Suggestion from Ulrich Drepper.
84946
84947         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
84948
84949         * lib/strtoll.c: New file, from GNU libc.
84950         * lib/xstrtoimax.c: New file.
84951
84952         * lib/xstrtol.h: Add xstrtoimax.
84953         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
84954         * lib/strtoimax.c: New file.  Likewise, but first define
84955         STRTOUXMAX_SIGNED.
84956
84957         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
84958         ...
84959         * lib/strtoxmax.c: ... then renamed to this.
84960
84961 2001-08-18  Paul Eggert  <eggert@twinsun.com>
84962
84963         * m4/inttypes.m4: Add AC_PREREQ(2.13).
84964         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
84965         (jm_AC_TYPE_INTMAX_T): New macro.
84966         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
84967
84968         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
84969
84970         * m4/longlong.m4: Renamed from ulonglong.m4.
84971         * m4/inttypes.m4: Renamed from inttypes_h.m4.
84972         * m4/uintmax_t.m4: Removed.
84973
84974 2001-08-13  Paul Eggert  <eggert@twinsun.com>
84975
84976         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
84977         Port to Solaris 8, where 'sed' requires a space after the 'r'
84978         command, and where sh dislikes "$/".  Clean up the spacing a bit.
84979         Redirect output to $tmp just once.
84980
84981 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
84982
84983         * lib/addext.c (<errno.h>): Include.
84984         (errno): Declare if not defined.
84985         (addext): Work correctly when pathconf returns -1 and leaves
84986         errno alone because there is no limit.  Also, work even if
84987         pathconf returns a value greater than SIZE_MAX.
84988
84989 2001-08-12  Jim Meyering  <meyering@lucent.com>
84990
84991         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
84992         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
84993         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
84994         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
84995         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
84996         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
84997         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
84998         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
84999         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
85000         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
85001         utime.m4, utimes.m4, xstrtoumax.m4:
85002         Quote the first argument in each use of AC_DEFUN.
85003
85004 2001-08-12  Jim Meyering  <meyering@lucent.com>
85005
85006         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
85007         Simply `return getcwd (NULL, 0);'.
85008         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
85009         Use 1300 as initial value for length, not PATH_MAX.
85010
85011         * lib/pathmax.h: Clean up cpp syntax.
85012
85013 2001-08-12  Jim Meyering  <meyering@lucent.com>
85014
85015         * lib/gettimeofday.c: New file.
85016         * lib/gtod.h: New file.
85017         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
85018
85019 2001-08-05  Jim Meyering  <meyering@lucent.com>
85020
85021         * m4/jm-macros.m4: Require autoconf-2.52.
85022
85023 2001-08-04  Jim Meyering  <meyering@lucent.com>
85024
85025         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
85026         stmt, to get in sync with glibc.
85027
85028 2001-08-03  Paul Eggert  <eggert@twinsun.com>
85029
85030         The following changes are from gettext 0.10.39 as maintained by
85031         Bruno Haible.
85032
85033         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
85034         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
85035         with inverted sense.  All uses changed.
85036
85037         * lib/mbswidth.c: Don't include <limits.h>.
85038         Include <stdlib.h> and <string.h> unconditionally.
85039         (iswcntrl, mbsinit, ISCNTRL): New macros.
85040         (mbsnwidth): Use K&R style function declarations.
85041         Don't bother checking for MB_LEN_MAX == 1, since the compiler
85042         can optimize it when MB_CUR_MAX == 1.
85043         The width of control characters is zero, not 1.
85044
85045 2001-08-03  Paul Eggert  <eggert@twinsun.com>
85046
85047         The following changes are from gettext 0.10.39 as maintained by
85048         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
85049
85050         * m4/codeset.m4: Upgrade to serial AM1.
85051         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
85052         all uses changed.  Quote first arg of AC_DEFUN.
85053         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
85054
85055         * m4/iconv.m4: Upgrade to serial AM2.
85056         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
85057         Add --with-libconv-prefix.
85058         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
85059         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
85060         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
85061         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
85062         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
85063
85064         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
85065         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
85066         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
85067         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
85068         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
85069         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
85070         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
85071         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
85072         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
85073
85074         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
85075         string.h any more.
85076
85077         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
85078         not the default value.
85079
85080         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
85081         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
85082         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
85083         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
85084         Also check for iswcntrl, used for wcwidth fallback.
85085         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
85086         to Autoconf 2.13.
85087
85088 2001-08-03  Jim Meyering  <meyering@lucent.com>
85089
85090         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
85091         as it was in the original.  Reported by Paul Eggert.
85092
85093 2001-07-16  Jim Meyering  <meyering@lucent.com>
85094
85095         * m4/gettimeofday.m4: New file.
85096         Prompted by a report from Bernhard Baehr.
85097
85098 2001-07-15  Jim Meyering  <meyering@lucent.com>
85099
85100         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
85101         stuff. Now it's in ../Makefile.cfg.
85102
85103 2001-07-15  Jim Meyering  <meyering@lucent.com>
85104
85105         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
85106         (BUILT_SOURCES): Add unlocked-io.h.
85107         (io_functions): Define.
85108         (unlocked-io.h): New rule.
85109         (DISTCLEANFILES): Add unlocked-io.h.
85110         (all-local): Depend on unlocked-io.h, to ensure it is created.
85111
85112         * lib/unlocked-io.hin: New file
85113
85114         * lib/regex.c: Update from glibc.
85115
85116 2001-07-05  Jim Meyering  <meyering@lucent.com>
85117
85118         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
85119         recommendation.
85120         (libfetish_a_SOURCES): Put all .h files here instead.
85121         Remove a thus-exposed (better checks in automake) duplicate and
85122         two unnecessary .h files.
85123
85124 2001-07-04  Jim Meyering  <meyering@lucent.com>
85125
85126         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
85127         that generates jm-glibc-io.m4 so that it doesn't trigger any make
85128         distcheck failure.
85129
85130 2001-07-02  Jim Meyering  <meyering@lucent.com>
85131
85132         The following changes were prompted by suggestions from Bruno Haible.
85133
85134         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
85135         is now generated.
85136         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
85137         definition of EXTRA_DIST.
85138         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
85139         ensure that the generated file is created/updated whenever the list
85140         of $(unlocked_functions) is changed.
85141         (jm-glibc-io.m4): New rule.
85142         (unlocked-io.h): New rule -- currently unused.
85143
85144 2001-06-24  Jim Meyering  <meyering@lucent.com>
85145
85146         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
85147         unmatched right bracket, rather than kludging it with an extra,
85148         falsely-matching quote in a comment.  Patch by Akim Demaille.
85149
85150 2001-06-11  Jim Meyering  <meyering@lucent.com>
85151
85152         * lib/regex.c: Update from GNU libc.
85153
85154 2001-05-27  Jim Meyering  <meyering@lucent.com>
85155
85156         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
85157         Check for ut_type in struct utmp.
85158
85159 2001-05-27  Jim Meyering  <meyering@lucent.com>
85160
85161         * lib/readutmp.h (UT_TYPE): Define.
85162
85163 2001-05-24  Jim Meyering  <meyering@lucent.com>
85164
85165         * lib/argmatch.c: Include "quote.h".
85166         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
85167         quote function.  Reported by Göran Uddeborg.
85168
85169 2001-05-22  Jim Meyering  <meyering@lucent.com>
85170
85171         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
85172         now that we use the package-supplied version unconditionally.
85173         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
85174
85175 2001-05-21  Jim Meyering  <meyering@lucent.com>
85176
85177         * m4/regex.m4: Change a couple backticks to single quotes to avoid
85178         shell syntax errors.
85179
85180 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
85181
85182         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
85183
85184 2001-05-20  Paul Eggert  <eggert@twinsun.com>
85185
85186         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
85187         Don't bother to check library strftime, since
85188         we'll be using our own my_strftime function anyway.
85189         Define my_strftime instead of strftime.
85190
85191 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
85192
85193         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
85194         which is not yet declared.
85195
85196 2001-05-15  Jim Meyering  <meyering@lucent.com>
85197
85198         * m4/regex.m4: Use proper quoting so brackets appear in the test
85199         program.
85200         Reported by, and with help from, Bruno Haible.
85201
85202 2001-05-13  Jim Meyering  <meyering@lucent.com>
85203
85204         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
85205         undefined.
85206
85207 2001-05-11  Paul Eggert  <eggert@twinsun.com>
85208
85209         dirname code cleanup.  base_name now behaves more compatibly
85210         with POSIX basename when given file names that have trailing
85211         slashes, and similarly for dir_name.  Add new primitives
85212         base_len and dir_len.  Put the directory-name-related decls
85213         into dirname.h.
85214
85215         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
85216         * lib/backupfile.c (base_name): Likewise.
85217         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
85218         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
85219         * lib/makepath.c (strip_trailing_slashes): Likewise.
85220         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
85221         ISSLASH): Likewise.
85222         * lib/rename.c (strip_trailing_slashes): Likewise.
85223         * lib/same.c (base_name): Likewise.
85224         * lib/stripslash.c (ISSLASH): Likewise.
85225
85226         * lib/addext.c: Include <dirname.h> after size_t is defined.
85227         * lib/backupfile.c: Likewise.
85228
85229         * lib/addext.c (addext): Use base_len to trim redundant
85230         trailing slashes instead of doing it ourselves.
85231         But do not trim the last slash if it is not redundant.
85232
85233         * lib/backupfile.c (find_backup_file_name,
85234         max_backup_version): Use base_len instead of rolling it ourselves.
85235         Handle the case of "" and (on DOS) "C:" correctly.
85236
85237         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
85238         needed. Include <string.h>, <dirname.h>.
85239         (base_name): Allow file names ending in slashes, other than names
85240         that are all slashes.  In this case, return the basename followed
85241         by the slashes.  This is more general, and can be used in places
85242         where the original base_name purposely had an assertion failure.
85243         (base_len): New function.
85244
85245         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
85246         Do not include <assert.h>; no longer needed.
85247         Include xalloc.h.
85248         (memrchr): Remove decl.
85249         (dir_name_r): Remove.
85250         (dir_len): Renamed from dirlen.  All callers changed.
85251         Rewrite in terms of base_name, for simplicity and consistency.
85252         (dir_name): Never return NULL.  All callers changed.
85253         Do not include <stdlib.h> in test program; no longer needed.
85254         return 0; is fine for test program.
85255
85256         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
85257         New macros.
85258         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
85259
85260         * lib/path-concat.c (path_concat): Use base_len to compute
85261         base length, not strlen; this means we cannot rely on memcpy
85262         to null-terminate.
85263
85264         * lib/same.c (STREQ): Remove.
85265         (same_name): Handle the case where the basename ends in trailing '/'.
85266
85267         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
85268         a slash was stripped.  Do not strip the last slash after a
85269         file system prefix.
85270
85271 2001-05-11  Paul Eggert  <eggert@twinsun.com>
85272
85273         * lib/Makefile.am (libfetish_a_SOURCES):
85274         Add strftime.c, since we now compile it on all hosts.
85275
85276         * lib/strftime.c (my_strftime):
85277         Define to nstrftime if emacs, but only if my_strftime is not defined.
85278         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
85279         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
85280         Add one more extra argument: a nanoseconds value.
85281         All uses changed.
85282         (ns): New macro.
85283         (my_strftime function): Add %N format.
85284         (emacs_strftimeu): Renamed from emacs_strftime,
85285         with extra ut argument.
85286
85287 2001-05-09  Paul Eggert  <eggert@twinsun.com>
85288
85289         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
85290
85291 2001-04-21  Jim Meyering  <meyering@lucent.com>
85292
85293         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
85294         doesn't interfere.
85295
85296 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
85297
85298         * m4/ftruncate.m4: Check for chsize.
85299         Link with ftruncate.o unconditionally if ftruncate is missing.
85300         This was required when cross-compiling to i586-mingw32msvc.
85301
85302 2001-04-08  Jim Meyering  <meyering@lucent.com>
85303
85304         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
85305         recomputed; that's necessary when the offset spans a DST transition.
85306         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
85307
85308 2001-04-02  Jim Meyering  <meyering@lucent.com>
85309
85310         * lib/regex.h, regex.c: Update from GNU libc.
85311
85312 2001-03-24  Jim Meyering  <meyering@lucent.com>
85313
85314         * m4/jm-macros.m4: Require autoconf-2.49d.
85315
85316 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
85317
85318         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
85319
85320 2001-03-19  Paul Eggert  <eggert@twinsun.com>
85321
85322         * lib/version-etc.c (version_etc_copyright): Update to 2001.
85323
85324 2001-03-17  Jim Meyering  <meyering@lucent.com>
85325
85326         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
85327         now that the version in autoconf is equivalent.
85328         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
85329
85330         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
85331         Suggestion from Akim Demaille.
85332
85333         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
85334         (jm_PREREQ_TEMPNAME): New function.
85335
85336 2001-03-16  Paul Eggert  <eggert@twinsun.com>
85337
85338         * lib/tempname.c (uint64_t): Define to uintmax_t if
85339         not defined, and if UINT64_MAX is not defined.
85340         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
85341         Reported by John David Anglin.
85342
85343 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
85344
85345         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
85346         resolve alias if codeset is empty.
85347         * lib/config.charset (BeOS): Use wildcard syntax.
85348
85349 2001-03-13  Jim Meyering  <meyering@lucent.com>
85350
85351         * lib/path-concat.c (path_concat)
85352         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
85353         concatenating e.g., `C:' and `foo'.
85354         From Bruno Haible.
85355
85356 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
85357
85358         * lib/localcharset.c (locale_charset): Don't use
85359         setlocale(LC_CTYPE,NULL). Don't return NULL.
85360         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
85361
85362 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
85363
85364         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
85365         support for DOS/DJGPP.
85366
85367 2001-03-01  Paul Eggert  <eggert@twinsun.com>
85368
85369         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
85370         lacks mkstemp.  Compile our own tempname.c if we compile our own
85371         mkstemp.c, as mkstemp relies on tempname.
85372
85373 2001-03-01  Jim Meyering  <meyering@lucent.com>
85374
85375         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
85376         AH_VERBATIM really does output its argument verbatim.
85377
85378 2001-02-28  Paul Eggert  <eggert@twinsun.com>
85379
85380         * lib/Makefile.am (libfetish_a_SOURCES):
85381         Add dup-safer.c, fopen-safer.c.
85382         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
85383
85384         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
85385         * lib/unistd-safer.h: New files.
85386
85387 2001-02-25  Paul Eggert  <eggert@twinsun.com>
85388
85389         The mkstemp replacement is taken from glibc 2.2.2, with some
85390         portability fixes for use outside glibc, as follows:
85391
85392         * lib/tempname.c (struct_stat64): New macro.
85393         (direxists, __gen_tempname): Use it.
85394         This avoids a portability problem with Solaris 8.
85395
85396         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
85397         (<stddef.h>, <stdint.h>, <string.h>):
85398         Include only if STDC_HEADERS || _LIBC.
85399         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
85400         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
85401         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
85402         (__set_errno): Define this macro if <errno.h> doesn't.
85403         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
85404         Define these macros if <stdio.h> doesn't.
85405         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
85406         Define these macros if <sys/stat.h>
85407         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
85408         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
85409         __xstat64): Define if not _LIBC.
85410         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
85411         (__gen_tempname): Invoke gettimeofday only if
85412         HAVE_GETTIMEOFDAY || _LIBC;
85413         otherwise, fall back on plain "time".
85414         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
85415
85416         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
85417
85418         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
85419
85420 2001-02-18  Paul Eggert  <eggert@twinsun.com>
85421
85422         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
85423
85424 2001-02-17  Paul Eggert  <eggert@twinsun.com>
85425
85426         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
85427         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
85428         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
85429         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85430
85431 2001-02-17  Paul Eggert  <eggert@twinsun.com>
85432
85433         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
85434         Remove workaround macros for hosts that have mbrtowc but not
85435         mbstate_t, as we now insist on proper declarations for both
85436         before using mbrtowc.
85437
85438 2001-02-17  Jim Meyering  <meyering@lucent.com>
85439
85440         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
85441         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
85442         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
85443         UnixWare 7.1.1.
85444
85445         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
85446         rather than AC_CACHE_VAL.
85447
85448 2001-02-17  Jim Meyering  <meyering@lucent.com>
85449
85450         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
85451         around included file name.
85452
85453         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
85454
85455         * lib/strftime.c: Update from GNU libc (the only changes were to
85456         comments).
85457
85458 2001-02-17  Jim Meyering  <meyering@lucent.com>
85459
85460         * lib/regex.c: Update from libc.
85461
85462 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
85463
85464         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
85465         clash.
85466
85467 2001-02-16  Paul Eggert  <eggert@twinsun.com>
85468
85469         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
85470         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
85471         Reported by Mark Hounschell via Paul Eggert.
85472
85473 2001-02-07  Jim Meyering  <meyering@lucent.com>
85474
85475         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
85476
85477 2001-02-05  Jim Meyering  <meyering@lucent.com>
85478
85479         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
85480         it includes the patch required for `large file' support with at least
85481         HP-UX's 10.20 /bin/cc.
85482
85483 2001-02-03  Jim Meyering  <meyering@lucent.com>
85484
85485         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
85486         AS_IF, now that it works once again (mysteriously).
85487         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
85488
85489 2001-01-30  Jim Meyering  <meyering@lucent.com>
85490
85491         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
85492         * m4/chown.m4: Rename conftestchown to conftest.chown.
85493         * m4/rename.m4: s/conftestdir/conftest.d1/ and
85494         s/conftestdir2/conftest.d2/.
85495         * m4/utimes.m4: s/conftestdata/conftest.data/
85496         Inspired by Pavel Roskin's change in autoconf.
85497
85498 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
85499
85500         * lib/config.charset: Update for FreeBSD 4.2.
85501
85502 2001-01-27  Jim Meyering  <meyering@lucent.com>
85503
85504         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
85505         a use of AS_IF.
85506         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
85507
85508 2001-01-26  Jim Meyering  <meyering@lucent.com>
85509
85510         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
85511         quotearg.c includes it.
85512
85513 2001-01-26  Jim Meyering  <meyering@lucent.com>
85514
85515         * lib/quotearg.c: Include stddef.h.
85516         * lib/quote.c: Include stddef.h.
85517         Reported by Axel Kittenberger.
85518
85519         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
85520         line in double quotes so that it evokes a better diagnostic.
85521         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
85522         Reported by Axel Kittenberger.
85523
85524 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
85525
85526         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
85527         as if it was a `charset'.
85528
85529 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
85530
85531         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
85532         has const.
85533
85534 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
85535
85536         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
85537         to avoid a warning.  Add back 'const' to inptr.
85538
85539 2001-01-20  Jim Meyering  <meyering@lucent.com>
85540
85541         Be sure that headers are checked before used in code compiled
85542         for the type checks.
85543         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
85544         In place of that, invoke jm_CHECK_ALL_TYPES.
85545         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
85546         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
85547         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
85548         The check for ssize_t was mistakenly run before the test for unistd.h.
85549
85550         The configure-time check for stdbool.h was missing.
85551         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
85552         (jm_PREREQ_HASH): New function.
85553
85554 2001-01-17  Jim Meyering  <meyering@lucent.com>
85555
85556         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
85557         for autoconf-2.49c.
85558         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
85559
85560 2001-01-16  Jim Meyering  <meyering@lucent.com>
85561
85562         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
85563         From Bruno Haible.
85564
85565 2001-01-14  Jim Meyering  <meyering@lucent.com>
85566
85567         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
85568         foo and bar.  Create conftestdir/ in the script, not in the C code.
85569         Remove directories in the script, not in the C code.
85570         Remove conftestdir{,2} before trying to create the directory.
85571         Make the entire configure script fail if the mkdir fails.
85572
85573 2001-01-14  Jim Meyering  <meyering@lucent.com>
85574
85575         * lib/rename.c: New file.  From Volker Borchert.
85576         Include stdlib.h, string.h or strings.h, and xalloc.h.
85577         Use strip_trailing_slashes rather than open-coding it.
85578
85579 2001-01-03  Paul Eggert  <eggert@twinsun.com>
85580
85581         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
85582
85583 2001-01-03  Jim Meyering  <meyering@lucent.com>
85584
85585         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
85586         of local `inptr' to avoid warning with some system declarations of
85587         iconv.
85588
85589 2001-01-02  Volker Borchert  <bt@teknon.de>
85590
85591         * m4/rename.m4: New file.
85592         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
85593
85594 2001-01-01  Jim Meyering  <meyering@lucent.com>
85595
85596         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
85597         even on systems with utmpx.h.  It's necessary for the declaration of
85598         utmp's ut_user member.  Reported by Andreas Jaeger.
85599
85600         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
85601         available. They are required for the declarations of getgrgid and
85602         getpwuid resp.
85603         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
85604         Reported by Andreas Jaeger.
85605
85606 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
85607
85608         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
85609         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
85610         so `make install' also works in VPATH builds.
85611
85612 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
85613
85614         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
85615         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
85616         can be used in subdirectories.
85617
85618 2000-12-29  Paul Eggert  <eggert@twinsun.com>
85619
85620         * lib/modechange.c: Do not assume that mode_t uses the
85621         traditional octal encoding.  E.g. "chmod 1 FOO" should set
85622         the other-execute bit of FOO even if S_IXOTH != 1.
85623
85624         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
85625         WOTH, XOTH, ALLM): New macros.
85626         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
85627          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
85628         Use them.
85629         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
85630         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
85631         (mode_compile):
85632         No need to use uintmax_t; unsigned long is long enough.
85633         Don't bother to get suffix since we don't use it.
85634
85635 2000-12-26  Jim Meyering  <meyering@lucent.com>
85636
85637         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
85638         better with autoheader.
85639
85640 2000-12-24  Jim Meyering  <meyering@lucent.com>
85641
85642         * lib/hash.c (is_prime): Return explicit boolean values.
85643         (hash_get_first): Return NULL to appease Irix5.6's 89.
85644         Reported by Nelson Beebe.
85645
85646 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
85647
85648         * lib/localcharset.c (locale_charset): Add support for Win32.
85649
85650 2000-12-18  Paul Eggert  <eggert@twinsun.com>
85651
85652         * lib/physmem.h, lib/physmem.c: New files.
85653
85654         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
85655         (noinst_HEADERS): Add physmem.h.
85656
85657         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
85658         't' for compatibility with Solaris 8 sort.
85659
85660 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
85661
85662         * lib/config.charset: Add support for BeOS.
85663
85664 2000-12-17  Jim Meyering  <meyering@lucent.com>
85665
85666         * m4/dos.m4 (jm_AC_DOS): New file and macro.
85667         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
85668
85669 2000-12-16  Jim Meyering  <meyering@lucent.com>
85670
85671         This bug had a serious impact on chown: `chown N:M FILE' (for integer
85672         N and M) would have treated it like `chown N:N FILE'.
85673
85674         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
85675
85676 2000-12-16  Jim Meyering  <meyering@lucent.com>
85677
85678         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
85679         SHELLS_FILE to a file name that's useful on djgpp systems.
85680         Include stdlib.h.
85681         (ADDITIONAL_DEFAULT_SHELLS): Define.
85682         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
85683         Based mostly on a patch from Prashant TR.
85684
85685 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
85686
85687         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
85688         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
85689         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
85690
85691 2000-12-08  Andreas Schwab  <schwab@suse.de>
85692
85693         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
85694         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
85695
85696 2000-12-07  Jim Meyering  <meyering@lucent.com>
85697
85698         * lib/stripslash.c (ISSLASH): Define.
85699         (strip_trailing_slashes): Use ISSLASH rather than comparing against
85700         `/'.
85701         From Prashant TR.
85702
85703         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
85704         (dir_name_r): Declare this function as static.
85705         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
85706         manifest itself on a name containing a mix of slashes and
85707         backslashes.
85708         Make this function work with names starting with a DOS-style
85709         drive letter and colon prefix.
85710         (dir_name): Append `.' if necessary.
85711         Based mostly on patches from Prashant TR and Eli Zaretskii.
85712
85713         * lib/dirname.h (dir_name_r): Remove prototype.
85714
85715 2000-12-06  Paul Eggert  <eggert@twinsun.com>
85716
85717         * m4/off_t-format.m4: Remove this file.
85718         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
85719
85720 2000-12-06  Jim Meyering  <meyering@lucent.com>
85721
85722         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
85723         replacement strtoull, we may well need the replacement strtoul, too.
85724         Check for declarations of strtoul and strtoull.
85725         Check for strtol.  Mainly as a cue to cause automake to include
85726         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
85727         Check for limits.h -- strtol.c needs it.
85728
85729 2000-12-05  Jim Meyering  <meyering@lucent.com>
85730
85731         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
85732
85733 2000-12-04  Jim Meyering  <meyering@lucent.com>
85734
85735         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
85736         Also include memory.h, stdlib.h, unistd.h if appropriate.
85737         Reported by Andreas Jaeger (conflicting declaration of malloc).
85738
85739 2000-12-02  Jim Meyering  <meyering@lucent.com>
85740
85741         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
85742         * m4/jm-macros.m4 (jm_MACROS): require it.
85743
85744 2000-12-02  Jim Meyering  <meyering@lucent.com>
85745
85746         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
85747
85748 2000-12-01  Paul Eggert  <eggert@twinsun.com>
85749
85750         * lib/memrchr.c: Include <config.h> before any system include file.
85751
85752 2000-11-30  Jim Meyering  <meyering@lucent.com>
85753
85754         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
85755
85756 2000-11-30  Jim Meyering  <meyering@lucent.com>
85757
85758         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
85759
85760 2000-11-29  Paul Eggert  <eggert@twinsun.com>
85761
85762         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
85763
85764 2000-11-26  Jim Meyering  <meyering@lucent.com>
85765
85766         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
85767
85768 2000-11-22  Paul Eggert  <eggert@twinsun.com>
85769
85770         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
85771         size of (size_t) -1; it's not portable.
85772
85773 2000-11-17  Jim Meyering  <meyering@lucent.com>
85774
85775         * lib/strstr.c: Update from GNU libc.
85776
85777 2000-11-17  Akim Demaille  <akim@epita.fr>
85778
85779         * lib/obstack.h: Formatting changes.
85780         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
85781         prevent type checking.
85782         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
85783         cast the value to (void *): assigning a `foo *' to a `void *'
85784         variable is valid.
85785         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
85786
85787 2000-11-16  Jim Meyering  <meyering@lucent.com>
85788
85789         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
85790
85791 2000-11-11  Jim Meyering  <meyering@lucent.com>
85792
85793         * lib/error.c: Add a couple #includes, merging from GNU libc version.
85794
85795 2000-11-10  Jim Meyering  <meyering@lucent.com>
85796
85797         * lib/obstack.h: Update from GNU libc.
85798         * lib/obstack.c: Likewise.
85799
85800 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
85801
85802         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
85803
85804 2000-11-06  Paul Eggert  <eggert@twinsun.com>
85805
85806         * lib/getusershell.c (setusershell): Use rewind rather than
85807         fseek/fseeko, to avoid configuration hassles with fseeko.
85808         Don't bother opening SHELLS_FILE if shellstream is NULL;
85809         it's not necessary.
85810
85811 2000-11-05  Jim Meyering  <meyering@lucent.com>
85812
85813         * lib/makepath.h (make_dir): Declare.
85814         * lib/makepath.c (make_dir): Remove `static' attribute.
85815         Tweak a comment.
85816
85817 2000-11-04  Jim Meyering  <meyering@lucent.com>
85818
85819         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
85820
85821 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
85822
85823         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
85824         last one in a bucket, advance to the next bucket.
85825
85826 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
85827
85828         * lib/fnmatch.c: Do not comment out all the code if we are using
85829         the GNU C library, because in some cases we are replacing buggy
85830         code in the GNU C library itself.
85831
85832 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
85833
85834         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
85835         (regex_compile): Catch bogus \(\1\).
85836
85837 2000-10-30  Paul Eggert  <eggert@twinsun.com>
85838
85839         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
85840         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
85841         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
85842
85843 2000-10-30  Paul Eggert  <eggert@twinsun.com>
85844
85845         * lib/error.h, getline.h, modechange.h:
85846         Remove "2000" from Copyright line, as the file hasn't been
85847         changed this year other than in the copyright notice.
85848
85849         * lib/xalloc.h: Add "2000" to Copyright line, as this file
85850         was changed this year.
85851
85852 2000-10-29  Jim Meyering  <meyering@lucent.com>
85853
85854         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
85855         renaming.
85856         * m4/ls-mntd-fs.m4: Likewise
85857
85858 2000-10-29  Jim Meyering  <meyering@lucent.com>
85859
85860         * lib/xstat.in: Fix grammar in comment.
85861
85862 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
85863
85864         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
85865         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
85866         doesn't define __restrict_arr.
85867
85868 2000-10-28  Jim Meyering  <meyering@lucent.com>
85869
85870         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
85871         (jm_PREREQ_MEMCHR): New function.
85872
85873 2000-10-28  Jim Meyering  <meyering@lucent.com>
85874
85875         * lib/memchr.c: Update from libc.
85876         Adjust for portability:
85877         [HAVE_STDLIB_H]: Include stdlib.h.
85878         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
85879         Undef __memchr, too.
85880         [!weak_alias]: Define __memchr to memchr.
85881
85882         * lib/regex.c: Update from libc.
85883         * lib/regex.h: Likewise.
85884         * lib/getopt1.c: Likewise.
85885         * lib/memcmp.c: Likewise.
85886
85887         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
85888         Avoid using fseek, when possible -- it's broken by design.
85889         Patch by Ulrich Drepper.
85890
85891 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
85892
85893         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
85894         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
85895         Giving in to popular pressure to shut up the compiler with casts.
85896
85897 2000-10-26  Jim Meyering  <meyering@lucent.com>
85898
85899         * lib/strftime.c: Update from libc.
85900
85901 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
85902
85903         * regex.c: More `unsigned char' -> `re_char' changes.
85904         Also change several `int' into `re_wchar_t'.
85905         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
85906         (PUSH_FAILURE_POINTER): Don't cast any more.
85907         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
85908         We want GCC to complain, since this piece of code makes
85909         re_match non-reentrant, which *should* be fixed.
85910         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
85911         (EXTEND_BUFFER): Use RETALLOC.
85912         (SET_LIST_BIT): Don't cast.
85913         (re_wchar_t): New type.
85914         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
85915         that those two functions will always properly return.
85916         (IMMEDIATE_QUIT_CHECK): Cast to void.
85917         (analyse_first): Use recursion rather than an explicit stack.
85918         (re_compile_fastmap): Can't fail anymore.
85919         (re_search_2): Don't check re_compile_fastmap for failure.
85920         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
85921         Now also sets the new value (passed in a new argument).
85922         (re_match_2_internal): Use it.
85923         Also, use a new var `reg' of type size_t when looping through regs
85924         rather than reuse the inappropriate `mcnt'.
85925
85926 2000-10-25  Jim Meyering  <meyering@lucent.com>
85927
85928         * lib/obstack.c: Update from libc.
85929
85930 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
85931
85932         * regex.c (regex_compile): Change the way of handling a range from
85933         a char less than 256 to a char not less than 256.
85934
85935 2000-10-24  Andrew Innes  <andrewi@gnu.org>
85936
85937         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
85938         NT-Emacs only.
85939         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
85940         so that re_search functions only quit when callers expect them to.
85941
85942 2000-10-23  Jim Meyering  <meyering@lucent.com>
85943
85944         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
85945         wrong.  That set_locale call must not have any side effects.
85946         From Paul Eggert.
85947
85948 2000-10-22  Jim Meyering  <meyering@lucent.com>
85949
85950         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
85951         [CYCLIC]: Remove now-unused definition.
85952
85953         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
85954         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
85955         Suggestion from Ulrich Drepper.
85956
85957 2000-10-21  Jim Meyering  <meyering@lucent.com>
85958
85959         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
85960         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
85961         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
85962
85963 2000-10-21  Jim Meyering  <meyering@lucent.com>
85964
85965         * lib/dirname.c (memrchr): Declare if necessary.
85966         (dir_name): Remove the restriction that there be no
85967         trailing slashes.  Now, this code skips past them, effectively
85968         ignoring them.
85969         [TEST_DIRNAME] (main): New unit tests.
85970
85971         * lib/memrchr.c: New file from GNU libc.
85972         Undef __memrchr, too.
85973         [!weak_alias]: Define __memrchr to memrchr.
85974         Guard weak_alias use with `#ifdef weak_alias'.
85975
85976 2000-10-21  Jim Meyering  <meyering@lucent.com>
85977
85978         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
85979         (dir_name): Use dir_name_r.
85980         * lib/dirname.h (dir_name_r): Declare it.
85981
85982 2000-10-17  Jim Meyering  <meyering@lucent.com>
85983
85984         * lib/quote.h (PARAMS): Define and use.
85985         Reported by Akim Demaille.
85986
85987         * lib/getopt.c: Update from libc.
85988
85989 2000-10-16  Jim Meyering  <meyering@lucent.com>
85990
85991         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
85992         setlocale.
85993         From Jan Fedak.
85994
85995 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
85996
85997         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
85998
85999 2000-09-25  Jim Meyering  <meyering@lucent.com>
86000
86001         * lib/md5.h (rol): Define (from GnuPG).
86002
86003         * lib/sha.c: Give credit (GnuPG) where due.
86004         (M): Use rol rather than open-coding it.
86005         Add a FIXME comment.
86006
86007 2000-09-21  Jim Meyering  <meyering@lucent.com>
86008
86009         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
86010         Reported by Michael Stone.
86011
86012 2000-09-20  Jim Meyering  <meyering@lucent.com>
86013
86014         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
86015         (noinst_HEADERS): Add sha.h.
86016         Based on code from Scott G. Miller and from GnuPG.
86017
86018 2000-09-18  Jim Meyering  <meyering@lucent.com>
86019
86020         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
86021         LIBS. Otherwise, everyone ends up linking with -lelf for some
86022         configurations.
86023         Reported by Mike Stone.
86024
86025 2000-09-15  Jim Meyering  <meyering@lucent.com>
86026
86027         * lib/regex.c: Update from libc.
86028
86029 2000-09-10  Jim Meyering  <meyering@lucent.com>
86030
86031         * lib/getopt.c (_getopt_internal): Update from glibc.
86032
86033 2000-09-09  Jim Meyering  <meyering@lucent.com>
86034
86035         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
86036         think it should be used as a general replacement for isascii.
86037         * lib/fnmatch.c: Likewise.
86038         * lib/mbswidth.c: Likewise
86039         * lib/regex.c: Likewise.
86040
86041         Don't use atoi.
86042         * lib/userspec.c: Include sys/param.h and limits.h.
86043         Include xstrtol.h.
86044         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
86045         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
86046         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
86047         UID, GID.  Check range.
86048
86049 2000-09-06  Jim Meyering  <meyering@lucent.com>
86050
86051         * lib/getopt.c (_getopt_internal): Update from glibc.
86052
86053 2000-08-30  Jim Meyering  <meyering@lucent.com>
86054
86055         * lib/strftime.c: Merge in changes from GNU libc.
86056
86057 2000-08-26  Jim Meyering  <meyering@lucent.com>
86058
86059         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
86060         * m4/fpending.m4: New file.
86061
86062 2000-08-26  Jim Meyering  <meyering@lucent.com>
86063
86064         * lib/closeout.c: Include "__fpending.h".
86065         (close_stdout_status): Return right away if there's nothing to flush.
86066
86067         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
86068         * lib/__fpending.c: New file.
86069         * lib/__fpending.h: New file.
86070
86071 2000-08-20  Jim Meyering  <meyering@lucent.com>
86072
86073         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
86074         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
86075         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
86076
86077 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
86078
86079         Improve fileutils installation on systems where running
86080         programs (like install) can't be unlinked.
86081         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
86082         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
86083
86084 2000-08-07  Paul Eggert  <eggert@twinsun.com>
86085
86086         Standardize on "memory exhausted" instead of "Memory exhausted"
86087         or "virtual memory exhausted".
86088         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
86089         "virtual memory exhausted".
86090         * lib/same.c (same_name): Invoke xalloc_die instead of printing
86091         our own message.
86092         * lib/userspec.c (parse_user_spec): Likewise.
86093         * lib/bumpalloc.h: comment fix
86094         * lib/same.c, userspec.c: Include xalloc.h.
86095
86096         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
86097         not char *const and pointing to a constant array.
86098         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
86099         (xrealloc): Comment fix.
86100
86101         * lib/userspec.c (parse_user_spec):
86102         Don't translate a message until just before returning,
86103         to avoid unnecessary translation.
86104
86105 2000-08-07  Jim Meyering  <meyering@lucent.com>
86106
86107         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
86108         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
86109         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
86110         getgroups.c, gethostname.c, getopt.h, group-member.c,
86111         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
86112         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
86113         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
86114         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
86115         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
86116         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
86117         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
86118         yesno.c: Back out Copyright date changes for each file with no change
86119         this year.  This eases coordination with other programs using the same
86120         source code modules.  From Paul Eggert.
86121
86122 2000-08-06  Paul Eggert  <eggert@twinsun.com>
86123
86124         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
86125         not char, for compatibility with glibc 2.1.3 strftime.c.
86126
86127 2000-08-03  Greg McGary  <greg@mcgary.org>
86128
86129         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
86130         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
86131         (EXTEND_BUFFER): Use them.
86132
86133 2000-08-01  Jim Meyering  <meyering@lucent.com>
86134
86135         * lib/dirname.c (ISSLASH): Define.
86136         (BACKSLASH_IS_PATH_SEPARATOR): Define.
86137         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
86138         both `\' and `/' may be use as path separators.
86139         Based on a patch from Prashant TR.
86140
86141 2000-07-31  Paul Eggert  <eggert@twinsun.com>
86142
86143         * lib/quotearg.c (quotearg_n_options): Don't make the initial
86144         slot vector a constant, since it might get modified.
86145
86146 2000-07-31  Jim Meyering  <meyering@lucent.com>
86147
86148         * lib/xmalloc.c: Use `virtual memory exhausted', not
86149         `Memory exhausted'.
86150         * lib/obstack.c (print_and_abort): Likewise.
86151
86152 2000-07-30  Paul Eggert  <eggert@twinsun.com>
86153
86154         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
86155         buffer, so that the caller can always quote one small
86156         component of a "memory exhausted" message in slot 0.
86157         From a suggestion by Jim Meyering.
86158
86159 2000-07-30  Jim Meyering  <meyering@lucent.com>
86160
86161         * lib/makepath.c (make_path): Quote the other instance, too.
86162
86163         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
86164         (STATIC_BUF_SIZE): Define.
86165         (quotearg_n_options): Use only statically allocated storage when
86166         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
86167         than STATIC_BUF_SIZE.
86168
86169 2000-07-29  Jim Meyering  <meyering@lucent.com>
86170
86171         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
86172         * lib/dirname.c (dir_name): Likewise.
86173
86174         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
86175         `/'.
86176
86177         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
86178         (dir_name): Assert that there are no trailing slashes.
86179
86180 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
86181
86182         * lib/mbswidth.h (mbswidth): Add a flags argument.
86183         (mbswidth): New declaration.
86184         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
86185         * lib/mbswidth.c (mbswidth): Add a flags argument.
86186         (mbsnwidth): New function.
86187
86188 2000-07-24  Jim Meyering  <meyering@lucent.com>
86189
86190         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
86191
86192 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86193
86194         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
86195
86196 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86197
86198         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
86199         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
86200         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
86201         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
86202         invoke multibyte primitives.
86203
86204 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86205
86206         * lib/quotearg.c:
86207         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
86208         so that mbstate_t is always defined.
86209
86210         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
86211         be 1 in at least one GCC installation, and this configuration
86212         error is likely to be common.  Ignoring MB_LEN_MAX hurts
86213         performance on hosts that have mbrtowc but have only unibyte
86214         locales, but I assume these hosts are rare.
86215
86216 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86217
86218         * lib/mbswidth.c (_XOPEN_SOURCE):
86219         Don't define; this causes problems on Solaris 7.
86220         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
86221
86222 2000-07-23  Jim Meyering  <meyering@lucent.com>
86223
86224         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
86225         too: getgrgid, getpwuid, getuid.
86226
86227 2000-07-23  Jim Meyering  <meyering@lucent.com>
86228
86229         * lib/basename.c (base_name): Add an assertion.
86230
86231 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
86232
86233         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
86234         shadow its mbsinit function.
86235
86236 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
86237
86238         * lib/mbswidth.h: New file.
86239         * lib/mbswidth.c: New file.
86240         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
86241         (noinst_HEADERS): Add mbswidth.h.
86242
86243 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
86244
86245         * lib/config.charset: Add support for FreeBSD. Improve support for
86246         HP-UX and IRIX 6.
86247
86248 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
86249
86250         * m4/mbswidth.m4: New file.
86251         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
86252
86253 2000-07-15  Jim Meyering  <meyering@lucent.com>
86254
86255         * lib/makepath.c: Include quote.h.
86256         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
86257         corresponding argument in a `quote (...)' call.
86258         Give better diagnostics.
86259
86260         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
86261         (noinst_HEADERS): Add quote.h.
86262
86263         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
86264         from tar's src/misc.c.
86265         * lib/quote.h: New file.  Prototypes for same.
86266
86267 2000-07-14  Paul Eggert  <eggert@twinsun.com>
86268
86269         From a suggestion by Bruno Haible.
86270         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
86271         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
86272         to decide whether to define the BeOS workaround macro;
86273         this adjusts to the change to AC_MBSTATE_T.
86274
86275 2000-07-14  Jim Meyering  <meyering@lucent.com>
86276
86277         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
86278         jm_AC_TYPE_UINTMAX_T.
86279
86280 2000-07-13  Paul Eggert  <eggert@twinsun.com>
86281
86282         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
86283
86284         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
86285         quotearg_buffer_restyled): Add support for
86286         clocale_quoting_style.  Undo previous change to
86287         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
86288         and "{RIGHT QUOTATION MARK}" msgids.
86289
86290 2000-07-10  Paul Eggert  <eggert@twinsun.com>
86291
86292         From a suggestion by Bruno Haible.
86293         * m4/mbstate_t.m4 (AC_MBSTATE_T):
86294         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
86295         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
86296         and mbstate_t, to a single-part test that simply defines mbstate_t.
86297         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
86298         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
86299
86300 2000-07-10  Jim Meyering  <meyering@lucent.com>
86301
86302         * m4/strerror_r.m4: Mirror the correction made in autoconf.
86303
86304         * m4/gnu-source.m4: Output to confdefs.h directly.
86305         Suggestion from Akim Demaille.
86306
86307 2000-07-09  Paul Eggert  <eggert@twinsun.com>
86308
86309         The old behavior of quoting `like this' doesn't look good with
86310         newer, ISO-style fonts.  See:
86311         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
86312
86313         Instead, quote "like this" by default.  Let the translator
86314         tailor the locale-specific quoting behavior by providing
86315         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
86316
86317         * lib/quotearg.c (N_): New macro.
86318         (gettext_default): New function.
86319         (quotearg_buffer_restyled): Use
86320         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
86321         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
86322
86323 2000-07-09  Jim Meyering  <meyering@lucent.com>
86324
86325         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
86326         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
86327
86328         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
86329         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
86330
86331 2000-07-09  Jim Meyering  <meyering@lucent.com>
86332
86333         * lib/Most files: Update copyright dates to include 2000.
86334
86335 2000-07-08  Jim Meyering  <meyering@lucent.com>
86336
86337         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
86338         if not defined.
86339         (xgethostname): Remove now-unnecessary #ifdef.
86340         Move declaration of `err' into loop where it's used.
86341
86342 2000-07-05  Paul Eggert  <eggert@twinsun.com>
86343         and Bruno Haible  <haible@clisp.cons.org>
86344
86345         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
86346         only if the test for an object-type mbstate_t fails.  This
86347         prevents us from mistakenly reporting that mbstate_t is a
86348         system object type after we "#define mbstate_t int" to work
86349         around its lack.
86350
86351 2000-07-05  Paul Eggert  <eggert@twinsun.com>
86352         and Bruno Haible  <haible@clisp.cons.org>
86353
86354         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
86355
86356 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
86357
86358         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
86359         to strerror_r.
86360         Include <ctype.h> for use of isalpha.
86361
86362 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
86363
86364         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
86365         by allocating a larger buffer. Test the gethostname return value for
86366         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
86367         returns an error and ENAMETOOLONG isn't defined.
86368
86369 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
86370
86371         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
86372         dimension.
86373
86374 2000-07-04  Jim Meyering  <meyering@lucent.com>
86375
86376         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
86377         of the deprecated AC_CHECKING.
86378
86379 2000-07-04  Jim Meyering  <meyering@lucent.com>
86380
86381         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
86382         Reported by Bruno Haible.
86383
86384 2000-07-04  Jim Meyering  <meyering@lucent.com>
86385
86386         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
86387         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
86388         lacks mbrtowc.
86389
86390 2000-07-03  Paul Eggert  <eggert@twinsun.com>
86391
86392         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
86393         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
86394
86395 2000-07-03  Paul Eggert  <eggert@twinsun.com>
86396         and Bruno Haible  <haible@clisp.cons.org>
86397
86398         * lib/quotearg.c (mbrtowc):
86399         Assign to *pwc, and return 1 only if result is nonzero.
86400         (iswprint): Use ISPRINT when substituting our own mbrtowc.
86401
86402 2000-07-03  Jim Meyering  <meyering@lucent.com>
86403
86404         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
86405
86406 2000-07-03  Jim Meyering  <meyering@lucent.com>
86407
86408         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
86409         This is necessary to get a definition of e.g., UTMP_FILE on
86410         HP-UX 10.20.
86411         From Bob Proulx.
86412
86413 2000-07-02  Jim Meyering  <meyering@lucent.com>
86414
86415         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
86416
86417         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
86418         AC_LIBOBJ(function_name).
86419         * m4/chown.m4: Likewise.
86420         * m4/fnmatch.m4: Likewise.
86421         * m4/ftruncate.m4: Likewise.
86422         * m4/getgroups.m4: Likewise.
86423         * m4/getline.m4: Likewise.
86424         * m4/group-member.m4: Likewise.
86425         * m4/jm-macros.m4: Likewise.
86426         * m4/lstat.m4: Likewise.
86427         * m4/malloc.m4: Likewise.
86428         * m4/memcmp.m4: Likewise.
86429         * m4/nanosleep.m4: Likewise.
86430         * m4/putenv.m4: Likewise.
86431         * m4/realloc.m4: Likewise.
86432         * m4/regex.m4: Likewise.
86433         * m4/stat.m4: Likewise.
86434         * m4/strftime.m4: Likewise.
86435
86436 2000-07-02  Jim Meyering  <meyering@lucent.com>
86437
86438         * lib/quotearg.c (mbstate_t): Don't define here.
86439
86440 2000-07-02  Jim Meyering  <meyering@lucent.com>
86441
86442         * lib/nanosleep.c (SIGCONT): Define if not already defined.
86443
86444 2000-07-01  Jim Meyering  <meyering@lucent.com>
86445
86446         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
86447
86448 2000-07-01  Jim Meyering  <meyering@lucent.com>
86449
86450         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
86451         problem.
86452
86453 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
86454
86455         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
86456         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
86457
86458 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
86459
86460         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
86461         per change in ../m4/ls-mntd-fs.m4.
86462         (read_filesystem_list): Ignore symbolic links.
86463
86464 2000-06-29  Jim Meyering  <meyering@lucent.com>
86465
86466         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
86467         for declaration of strcmp.
86468
86469         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
86470
86471         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
86472         Avoid warning by casting result to `char *' to remove `const'.
86473
86474 2000-06-28  Jim Meyering  <meyering@lucent.com>
86475
86476         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
86477         included by quotearg.c, for which we perform this test.  From
86478         Bruno Haible.
86479
86480 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
86481
86482         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
86483         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
86484         <utmpx.h> exists, put readutmp.o into LIBOBJS.
86485
86486 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
86487
86488         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
86489
86490 2000-06-26  Paul Eggert  <eggert@twinsun.com>
86491
86492         savedir now sets errno on failure and invokes xmalloc to get memory.
86493         Fix a couple of other minor bugs while we're at it.
86494
86495         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
86496         (NAMLEN): Remove macro.
86497         (malloc, realloc): Remove decls.
86498         (stpcpy): Likewise.
86499         ("xalloc.h"): Include.
86500         (NAME_SIZE_DEFAULT): New macro.
86501         (savedir): Use xmalloc / xrealloc to allocate memory.
86502         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
86503         Skip "" directory entries.
86504         Use strlen to calculate directory entry length, since the old method
86505         is rarely used these days and isn't worth supporting.
86506         Don't use a pointer after freeing it.
86507         Check for integer overflow when calculating allocation size.
86508         Use memcpy to copy entries, instead of stpcpy.
86509         Set errno properly when returning NULL.
86510         Check for readdir error.
86511
86512 2000-06-26  Jim Meyering  <meyering@lucent.com>
86513
86514         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
86515
86516 2000-06-25  Jim Meyering  <meyering@lucent.com>
86517
86518         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
86519         Linux header bug when _XOPEN_SOURCE is defined to 500.
86520
86521 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
86522
86523         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
86524         deficiency.
86525
86526 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
86527
86528         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
86529         Include xalloc.h.
86530         Don't include <stdlib.h>.  Don't declare malloc, realloc.
86531
86532 2000-06-24  Jim Meyering  <meyering@lucent.com>
86533
86534         * m4/strerror_r.m4: Revive this file -- to try out an experimental
86535         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
86536         for which strerror does return char*, but which lacks a conveniently
86537         accessible declaration of the function.  If the compile-test says
86538         strerror_r doesn't work, then resort to a `run'-test that works on
86539         BeOS and segfaults on DEC Unix.
86540
86541 2000-06-24  Jim Meyering  <meyering@lucent.com>
86542
86543         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
86544
86545 2000-06-23  Paul Eggert  <eggert@twinsun.com>
86546
86547         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
86548         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
86549
86550 2000-06-23  Paul Eggert  <eggert@twinsun.com>
86551
86552         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
86553         (mbrtowc, mbstate_t): Define substitutes if
86554         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
86555         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
86556         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
86557
86558 2000-06-23  Jim Meyering  <meyering@lucent.com>
86559
86560         * m4/afs.m4: Add missing AC_MSG_RESULT.
86561         Reported by Bruno Haible.
86562
86563         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
86564         Suggestion from Bruno Haible.
86565
86566 2000-06-23  Jim Meyering  <meyering@lucent.com>
86567
86568         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
86569
86570 2000-06-21  Jim Meyering  <meyering@lucent.com>
86571
86572         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
86573
86574 2000-06-21  Jim Meyering  <meyering@lucent.com>
86575
86576         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
86577         (noinst_HEADERS): Add getstr.h.
86578
86579         * lib/getline.c (getstr): Move into a separate file.
86580         * lib/getstr.c (getstr): New file, extracted from getline.c, with
86581         the following changes: new parameter, delim2; both delim[12]
86582         parameters have type `int', not `char'.  The latter would lose
86583         with 8-bit delimiters.
86584         * lib/getstr.h: New file.
86585
86586 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
86587
86588         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
86589         than 1024, return a memory chunk of least possible size, instead
86590         of size PATH_MAX + 2. In the loop, increment the size proportionally.
86591         Use free/xmalloc instead of xrealloc to avoid copying for very long
86592         paths.
86593
86594 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
86595
86596         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
86597         the empty string.
86598
86599 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
86600
86601         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
86602         address, not strdup.  Include <stdlib.h> and don't declare free().
86603
86604 2000-06-19  Jim Meyering  <meyering@lucent.com>
86605
86606         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
86607
86608 2000-06-18  Jim Meyering  <meyering@lucent.com>
86609
86610         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
86611
86612         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
86613         `checking whether...' message to be consistent with that of the
86614         lstat test.
86615
86616 2000-06-18  Jim Meyering  <meyering@lucent.com>
86617
86618         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
86619         Besides, these days every porting target provides a mkdir function.
86620
86621         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
86622         needed. (this snippet comes from src/system.h).
86623
86624 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
86625
86626         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
86627
86628 2000-06-15  Paul Eggert  <eggert@twinsun.com>
86629
86630         * lib/human.c (adjust_value): New function.
86631         (human_readable_inexact): Apply rounding style even when
86632         printing approximate values.
86633
86634 2000-06-14  Paul Eggert  <eggert@twinsun.com>
86635
86636         * lib/human.c (human_readable_inexact): Allow an input block
86637         size that is not a multiple of the output block size, and vice versa.
86638         Reported by Piergiorgio Sartor.
86639
86640 2000-06-14  Paul Eggert  <eggert@twinsun.com>
86641
86642         * lib/getdate.y (get_date): Apply relative times after time
86643         zone indicator, not before.  Reported by Todd A. Jacobs.
86644
86645 2000-06-13  Jim Meyering  <meyering@lucent.com>
86646
86647         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
86648
86649         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
86650
86651 2000-06-12  Paul Eggert  <eggert@twinsun.com>
86652
86653         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
86654
86655 2000-06-12  Jim Meyering  <meyering@lucent.com>
86656
86657         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
86658         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
86659         optional argument.
86660         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
86661         the optional argument, `lib'.
86662
86663 2000-06-08  Jim Meyering  <meyering@lucent.com>
86664
86665         * m4/largefile.m4: Remove file (now that it's part of autoconf).
86666
86667 2000-06-04  Paul Eggert  <eggert@twinsun.com>
86668
86669         Rewrite largefile configuration so that we don't need to run
86670         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
86671         AC_CANONICAL_HOST in configure.in -- jmm]
86672
86673         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
86674         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
86675         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
86676         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
86677         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
86678         All uses changed.
86679         Instead of inspecting the output of getconf, try to compile the
86680         test program without and with the macro definition.
86681         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
86682         for getconf.  Instead, check for the needed flags by compiling
86683         test programs.
86684
86685 2000-06-04  Paul Eggert  <eggert@twinsun.com>
86686
86687         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
86688
86689 2000-06-04  Jim Meyering  <meyering@lucent.com>
86690
86691         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
86692         SunOS 4.1.4 for which gid_t is an unsigned type.
86693
86694 2000-06-03  Jim Meyering  <meyering@lucent.com>
86695
86696         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
86697         now that autoconf requires that.
86698
86699         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
86700         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
86701         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
86702
86703 2000-06-03  Jim Meyering  <meyering@lucent.com>
86704
86705         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
86706
86707 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
86708
86709         * m4/glibc21.m4: New file.
86710         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
86711
86712 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
86713
86714         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
86715         newer, don't install charset.alias.
86716         * lib/config.charset: Change the Linux/glibc rules so they become empty
86717         on glibc-2.1 or newer.
86718
86719 2000-06-02  Jim Meyering  <meyering@lucent.com>
86720
86721         * lib/mountlist.c: Back out last change.  Instead, do this...
86722         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
86723         me_dummy member using the same `ignore'-testing code.
86724         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
86725         fs_type strings.
86726         From Mark D. Roth.
86727
86728 2000-05-29  Jim Meyering  <meyering@lucent.com>
86729
86730         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
86731         mounts with the `ignore' attribute.  Based on a patch from
86732         Mark D. Roth.
86733
86734 2000-05-28  Jim Meyering  <meyering@lucent.com>
86735
86736         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
86737         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86738         * m4/stat.m4: Likewise.
86739         * m4/lstat.m4: Likewise.
86740         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
86741
86742         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
86743         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
86744
86745 2000-05-26  Jim Meyering  <meyering@lucent.com>
86746
86747         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
86748
86749 2000-05-24  Jim Meyering  <meyering@lucent.com>
86750
86751         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
86752         autoconf requires that.
86753         * m4/lib-check.m4: Likewise.
86754         * m4/jm-macros.m4: Likewise.
86755         * m4/strftime.m4: Likewise.
86756
86757         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
86758         AC_CHECK_DECLS, now that autoconf requires that.
86759
86760 2000-05-22  Jim Meyering  <meyering@lucent.com>
86761
86762         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86763         * m4/lstat.m4: Likewise.
86764
86765 2000-05-22  Jim Meyering  <meyering@lucent.com>
86766
86767         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
86768
86769 2000-05-20  Jim Meyering  <meyering@lucent.com>
86770
86771         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
86772         (jm_PREREQ): Use it.
86773
86774 2000-05-18  Jim Meyering  <meyering@lucent.com>
86775
86776         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
86777         back, too, since it may have been modified by allocate_entry.
86778         (hash_delete): Rewrite to use neither the assignment operator
86779         nor the comma operator in an if-expression.
86780
86781 2000-05-15  Paul Eggert  <eggert@twinsun.com>
86782
86783         * lib/closeout.c:
86784         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
86785         Remove; no longer needed.
86786         "quotearg.h": Add include.
86787         (file_name): Do not bother to explicitly initialize to NULL; it's less
86788         efficient on some hosts.
86789         (close_stdout_status): Remove test as to whether stdout was already
86790         closed; it breaks for the case "echo x | sort >&-".
86791         Quote file name colons.
86792         Do not assume that _("write error") lacks format strings.
86793
86794 2000-05-15  Jim Meyering  <meyering@lucent.com>
86795
86796         * lib/version-etc.c (version_etc_copyright): Update the copyright
86797         string used in all --version output.
86798
86799 2000-05-14  Jim Meyering  <meyering@lucent.com>
86800
86801         * lib/closeout.c (close_stdout_set_file_name): New function.
86802         (close_stdout_status): Use new file-scoped global.
86803         Return right away if fstat says the stdout file descriptor is invalid.
86804         * lib/closeout.h (close_stdout_set_file_name): Declare.
86805
86806 2000-05-10  Jim Meyering  <meyering@lucent.com>
86807
86808         * lib/closeout.c [default_exit_status]: New file-scoped variable.
86809         (close_stdout_set_status): New function.
86810         * lib/closeout.h (close_stdout_set_status): Declare.
86811
86812 2000-05-09  Jim Meyering  <meyering@lucent.com>
86813
86814         * m4/gettext.m4: Rename this...
86815         * m4/libintl.m4: ...to this.
86816
86817 2000-05-08  Jim Meyering  <meyering@lucent.com>
86818
86819         * lib/long-options.c: Don't include closeout.h.
86820         (parse_long_options): Don't call close_stdout for --version.
86821
86822 2000-05-06  Paul Eggert  <eggert@twinsun.com>
86823
86824         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
86825         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
86826         2.1.3 bug.  This avoids a clash when files like regex.c define
86827         _GNU_SOURCE.
86828
86829 2000-05-06  Jim Meyering  <meyering@lucent.com>
86830
86831         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
86832         (AC_REPLACE_FUNCS): Add strnlen.
86833
86834         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
86835         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
86836
86837         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
86838         AC_SEARCH_LIBS call for nanosleep.
86839         (LIB_NANOSLEEP): Set and AC_SUBST.
86840
86841 2000-05-06  Jim Meyering  <meyering@lucent.com>
86842
86843         * lib/strnlen.c: Undefine __strnlen and strnlen.
86844         [!weak_alias]: Define __strnlen to strnlen.
86845
86846         * lib/atexit.c: New file, from libiberty.
86847
86848 2000-05-06  Jim Meyering  <meyering@lucent.com>
86849
86850         * lib/closeout.c (close_stdout_status): Also check for errors on the
86851         stderr stream.
86852
86853 2000-05-05  Jim Meyering  <meyering@lucent.com>
86854
86855         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
86856         AC_SEARCH_LIBS call for clock_gettime.
86857         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
86858
86859         * m4/search-libs.m4: Update from autoconf.
86860
86861         su doesn't work on Solaris 2.6.
86862         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
86863         <shadow.h>.  Reported by Dragos Harabor.
86864
86865 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
86866
86867         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
86868         memcpy instead of xmalloc, xrealloc, path_concat.
86869         (locale_charset): Treat empty environment variables as absent.
86870         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
86871
86872 2000-05-04  Jim Meyering  <meyering@lucent.com>
86873
86874         * lib/getopt.c: Update from glibc.
86875         * lib/obstack.c: Likewise.
86876         * lib/obstack.h: Likewise.
86877         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
86878         file
86879
86880         * lib/regex.h: Likewise.
86881         * lib/strndup.c: Likewise.
86882         * lib/strnlen.c: New file, from glibc.
86883
86884 2000-05-03  Jim Meyering  <meyering@lucent.com>
86885
86886         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
86887
86888 2000-05-02  Paul Eggert  <eggert@twinsun.com>
86889
86890         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
86891         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
86892         compile-time test, rather than inspecting host and OS, to
86893         decide whether to define _LARGEFILE_SOURCE.
86894
86895 2000-05-01  Jim Meyering  <meyering@lucent.com>
86896
86897         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
86898
86899         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
86900         Based on a patch from Bruno Haible.
86901
86902 2000-05-01  Jim Meyering  <meyering@lucent.com>
86903
86904         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
86905
86906 2000-04-29  Jim Meyering  <meyering@lucent.com>
86907
86908         * lib/path-concat.c: Declare strdup only if it's not defined.
86909         * lib/canon-host.c: Likewise.
86910
86911 2000-04-28  Jim Meyering  <meyering@lucent.com>
86912
86913         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
86914         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
86915         is included first, then limits.h is included by locale.h by libintl.h.
86916         From John David Anglin.
86917
86918 2000-04-25  Jim Meyering  <meyering@lucent.com>
86919
86920         * lib/makepath.c (S_IRWXUGO): Define.
86921         (make_path): Always perform explicit chmod if MODE specifies any
86922         of the `special' permission bits.  Prompted by a bug report against
86923         install from Mate Wierdl and Joost van Baal.
86924
86925 2000-04-18  Jim Meyering  <meyering@lucent.com>
86926
86927         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
86928         (jm_PREREQ): Use it.
86929
86930 2000-04-18  Jim Meyering  <meyering@lucent.com>
86931
86932         * lib/README: New file.
86933
86934         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
86935         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
86936
86937 2000-04-17  Jim Meyering  <meyering@lucent.com>
86938
86939         Get it right :-)
86940         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
86941         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
86942         Suggestion from Akim Demaille.
86943
86944 2000-04-17  Jim Meyering  <meyering@lucent.com>
86945
86946         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
86947         the definition of it to rpl_strftime also defined-away the system's
86948         declaration.
86949
86950 2000-04-15  Jim Meyering  <meyering@lucent.com>
86951
86952         Use `C' to denote so-called `contiguous' files, the same way
86953         that tar does.
86954         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
86955         (ftypelet): Use S_ISCTG.
86956         From Michael Deutschmann.
86957
86958 2000-04-14  Jim Meyering  <meyering@lucent.com>
86959
86960         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
86961         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
86962         clobbered.
86963
86964 2000-04-14  Jim Meyering  <meyering@lucent.com>
86965
86966         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
86967
86968 2000-04-13  Jim Meyering  <meyering@lucent.com>
86969
86970         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
86971         AH_VERBATIM to insert required #ifndef into config.h.in.
86972         Suggestion from Akim Demaille.
86973
86974 2000-04-12  Jim Meyering  <meyering@lucent.com>
86975
86976         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
86977         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
86978         Christian Krackowizer.
86979
86980         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
86981         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
86982         (AC_SYS_LARGEFILE): Require.
86983         (AM_C_PROTOTYPES): Require.
86984
86985 2000-04-08  Jim Meyering  <meyering@lucent.com>
86986
86987         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
86988         names don't conflict.  Reported by Eli Zaretskii.
86989
86990 2000-04-07  Jim Meyering  <meyering@lucent.com>
86991
86992         * lib/putenv.c: Move inclusion of errno.h so it follows that of
86993         sys/types.h, to work around system header problems on AIX 3.2.5.
86994         From Bruno Haible.
86995
86996 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
86997
86998         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
86999         bug.  Deal with the different error behavior of Irix iconv.
87000
87001 2000-04-05  Paul Eggert  <eggert@twinsun.com>
87002
87003         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
87004         IRIX if the installer said otherwise.
87005
87006 2000-04-05  Jim Meyering  <meyering@lucent.com>
87007
87008         Portability tweaks required for ultrix4.3.
87009         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
87010         (jm_CHECK_DECLS): Add getutent to the list of functions.
87011         (_jm_DECL_HEADERS): Add utmpx.h.
87012         From John David Anglin.
87013
87014         * m4/strftime.m4: Back out the 2000-04-02 change.
87015         Instead of that change, simply undefine putenv in the test program.
87016
87017 2000-04-05  Jim Meyering  <meyering@lucent.com>
87018
87019         Portability tweaks required for ultrix4.3.
87020         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
87021         getutent.
87022         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
87023         * lib/canon-host.c: Declare strdup.
87024         * lib/path-concat.c: Likewise.
87025         From John David Anglin.
87026
87027 2000-04-04  Jim Meyering  <meyering@lucent.com>
87028
87029         Be more DOS 8.3-friendly.
87030         * lib/ref-add.sin: Renamed from ref-add.sed.in.
87031         * lib/ref-del.sin: Renamed from ref-del.sed.in.
87032         * lib/Makefile.am: Reflect renaming.
87033         Reported by Eli Zaretskii.
87034
87035         Use a temporary file name that won't clash with `charset.alias'
87036         in the DOS 8.3 name space.
87037         * lib/Makefile.am (charset_tmp): Define.
87038         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
87039         (uninstall-local): Likewise.
87040         Reported by Eli Zaretskii.
87041
87042 2000-04-03  Jim Meyering  <meyering@lucent.com>
87043
87044         * m4/gettext.m4: Fix typo in comment.
87045
87046         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
87047         textutils/configure.in).  Suggestion from Paul Eggert.
87048         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
87049
87050 2000-04-02  Paul Eggert  <eggert@twinsun.com>
87051
87052         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
87053         variable in the shell rather than using putenv, which isn't
87054         portable.  This avoids the configure-time inter-test dependency
87055         on the potentially-renamed putenv function.
87056
87057 2000-03-30  Paul Eggert  <eggert@twinsun.com>
87058
87059         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
87060         before checking struct stat.st_blksize, so that
87061         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
87062
87063 2000-03-29  Paul Eggert  <eggert@twinsun.com>
87064
87065         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
87066         since strftime.c uses HAVE_STRFTIME to decide whether to use
87067         the underlying strftime.
87068
87069 2000-03-29  Paul Eggert  <eggert@twinsun.com>
87070
87071         * lib/time/strftime.c (my_strftime): Make sure we call the system
87072         strftime, not ourselves, when invoking the underlying strftime.
87073
87074 2000-03-24  Jim Meyering  <meyering@lucent.com>
87075
87076         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
87077         (charset_alias): Define.
87078         (install-exec-local): Factor out common code.
87079         (uninstall-local): Split lines longer than 80.
87080         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
87081         (SUFFIXES): Define.
87082         (.sed.in.sed): New rule.  Don't redirect directly to $@.
87083         (CLEANFILES): Add ref-add.sed and ref-del.sed.
87084
87085 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
87086
87087         * lib/config.charset: Output a line containing "Packages using this
87088         file".
87089         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
87090         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
87091         ref-del.sed): New rules.
87092
87093 2000-03-17  Jim Meyering  <meyering@lucent.com>
87094
87095         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
87096         Otherwise, include <strings.h>
87097
87098 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
87099
87100         * lib/unicodeio.c (utf8_wctomb): New function.
87101         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
87102         format instead of in UCS-4 with platform dependent endianness.
87103
87104 2000-03-10  Jim Meyering  <meyering@lucent.com>
87105
87106         * m4/lib-check.m4: Look for getspnam in -lgen, too.
87107         From Marco Franzen.
87108
87109 2000-03-07  Paul Eggert  <eggert@twinsun.com>
87110
87111         * lib/savedir.c (savedir): Work even if directory size is
87112         negative; this can happen with some screwy NFS configurations.
87113
87114 2000-03-06  Jim Meyering  <meyering@lucent.com>
87115
87116         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
87117         if it's NULL (because we ran out of memory).  From Bruno Haible.
87118
87119 2000-03-05  Jim Meyering  <meyering@lucent.com>
87120
87121         * lib/localcharset.c ("path-concat.h"): Include.
87122         (get_charset_aliases): Use path_concat instead of ANSI string
87123         concatenation.
87124
87125         * lib/unicodeio.h (PARAMS): Define.
87126         Use it to guard prototype.
87127
87128 2000-03-04  Jim Meyering  <meyering@lucent.com>
87129
87130         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
87131         for lib/localcharset.c.
87132
87133 2000-03-04  Jim Meyering  <meyering@lucent.com>
87134
87135         * lib/Makefile.am (install-exec-local): Create $(libdir) before
87136         installing into it.
87137         (uninstall-local): Uncomment this rule so `make distcheck' works
87138         once again.
87139
87140         * lib/unicodeio.c (<errno.h>): Include it.
87141         (errno): Declare if not defined.
87142
87143         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
87144
87145         * lib/config.charset: New version, incorporating remarks from a linux
87146         i18n mailing list.  From Bruno Haible.
87147
87148 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
87149
87150         * m4/codeset.m4: New file.
87151         * m4/iconv.m4: New file.
87152         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
87153
87154 2000-03-03  Jim Meyering  <meyering@lucent.com>
87155
87156         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
87157
87158 2000-03-02  Jim Meyering  <meyering@lucent.com>
87159
87160         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
87161         the messages come out on separate lines.
87162
87163         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
87164         rather than jm_CHECK_DECLARATIONS.
87165         * m4/decl.m4: Remove now-unused file.
87166
87167         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
87168         geteuid.
87169
87170 2000-03-02  Jim Meyering  <meyering@lucent.com>
87171
87172         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
87173
87174 2000-03-01  Jim Meyering  <meyering@lucent.com>
87175
87176         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
87177         * lib/unicodeio.c: Likewise.
87178
87179 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
87180
87181         * lib/config.charset: New file.
87182         * lib/localcharset.c: New file.
87183         * lib/unicodeio.h, lib/unicodeio.c: New files.
87184         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
87185         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
87186         (noinst_HEADERS): Add unicodeio.h.
87187         (all-local, install-exec-local, charset.alias): New targets.
87188
87189 2000-02-28  Paul Eggert  <eggert@twinsun.com>
87190
87191         * lib/quotearg.c (ALERT_CHAR): New macro.
87192         (quotearg_buffer_restyled): Use it.
87193
87194 2000-02-27  Jim Meyering  <meyering@lucent.com>
87195
87196         * m4/check-decl.m4: Add getenv to the list.
87197
87198 2000-02-27  Jim Meyering  <meyering@lucent.com>
87199
87200         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
87201         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
87202
87203         * lib/backupfile.c: Guard inclusion of stdlib.h with
87204         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
87205         Declare malloc if needed.
87206
87207         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
87208         `#ifndef HAVE_DECL..'
87209         now that autoconf always defines the HAVE_DECL_ symbols.
87210         * lib/human.c: Likewise.
87211         * lib/same.c: Likewise.
87212         * lib/strtoumax.c: Likewise.
87213
87214         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
87215         declaration check was not run.
87216         * lib/hash.c: Likewise.
87217         * lib/human.c: Likewise.
87218         * lib/same.c: Likewise.
87219         * lib/strtoumax.c: Likewise.
87220
87221         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
87222         `.', then first look up the entire `.'-containing string as a login
87223         name.
87224
87225 2000-02-23  Jim Meyering  <meyering@lucent.com>
87226
87227         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
87228         in place of my hack.
87229
87230 2000-02-18  Paul Eggert  <eggert@twinsun.com>
87231
87232         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
87233         (textint): New typedef.
87234         (parser_control): Member year changed from int to textint.
87235         All uses changed.
87236         (YYSTYPE): Removed; replaced by %union with int and textint members.
87237         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
87238         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
87239         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
87240         (tSNUMBER, tUNUMBER): Now of type <textintval>.
87241         (date, number, to_year): Use width of number in digits, not its value,
87242         to determine whether it's a 2-digit year, or a 2-digit time.
87243         (yylex): Store number of digits of numeric tokens.
87244         Reported by John Kendall.
87245
87246         (parser_control): Changed from struct parser_control to typedef (for
87247         consistency).  All uses changed.
87248
87249         (tID): Removed; not used.
87250         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
87251
87252 2000-02-14  Paul Eggert  <eggert@twinsun.com>
87253
87254         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
87255         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
87256
87257 2000-02-12  Jim Meyering  <meyering@lucent.com>
87258
87259         * lib/userspec.c (ISDIGIT): Define it.
87260         (isdigit): Remove definition.
87261         (is_number): Use ISDIGIT, not isdigit.
87262         <libintl.h>: Include.
87263         (_ and N_): Define.
87264         (parse_user_spec): Mark translatable strings.
87265
87266 2000-02-10  Jim Meyering  <meyering@lucent.com>
87267
87268         With these changes, nanosleep.[ch] are finally enough like the other
87269         lib/* replacement files to compile on a few more losing systems.
87270
87271         * lib/nanosleep.h: Don't include config.h.
87272         Remove prototype from declaration of nanosleep.
87273         (PARAMS): Remove now-unneeded definition.
87274         * lib/nanosleep.c: #undef nanosleep.
87275         (rpl_nanosleep): Rename from nanosleep.
87276
87277 2000-02-10  Jim Meyering  <meyering@lucent.com>
87278
87279         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
87280         gnu_nanosleep to rpl_nanosleep.
87281
87282 2000-02-09  Jim Meyering  <meyering@lucent.com>
87283
87284         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
87285         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
87286
87287 2000-02-08  Akim Demaille  <akim@epita.fr>
87288
87289         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
87290         `[' and `]' and remove uses of `changequote'.
87291         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
87292         (AC_SYS_LARGEFILE): Likewise.
87293         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
87294         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
87295         of changequote.
87296         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
87297         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
87298         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
87299         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
87300
87301 2000-02-05  Jim Meyering  <meyering@lucent.com>
87302
87303         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
87304         Remove explicit use of AC_HEADER_TIME.  It is required by
87305         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
87306         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
87307         in autoconf whereby the expansion of the latter ended up preceding
87308         the expansion of its prerequisite, AC_HEADER_TIME.
87309         Reported by Volker Borchert.
87310
87311 2000-02-03  Jim Meyering  <meyering@lucent.com>
87312
87313         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
87314
87315 2000-02-03  Jim Meyering  <meyering@lucent.com>
87316
87317         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
87318         rather than with `#if HAVE_UTMPNAME'.
87319
87320 2000-02-02  Jim Meyering  <meyering@lucent.com>
87321
87322         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
87323         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
87324         Reported by Eli Zaretskii.
87325
87326 2000-02-01  Jim Meyering  <meyering@lucent.com>
87327
87328         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
87329
87330 2000-01-31  Jim Meyering  <meyering@lucent.com>
87331
87332         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
87333         functions.  Add the time.h and sys/time.h headers along with the
87334         AC_REQUIRE'ment of AC_HEADER_TIME.
87335
87336 2000-01-31  Jim Meyering  <meyering@lucent.com>
87337
87338         * lib/nanosleep.h (nanosleep): Guard declaration with
87339         `#if ! HAVE_DECL_NANOSLEEP'.
87340         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
87341         the declaration in that vendor's sys/timers.h.
87342         Reported by Christian Krackowizer.
87343
87344         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
87345         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
87346         (ISPRINT): Likewise.
87347         Reported by Tom Tromey.
87348
87349 2000-01-30  Jim Meyering  <meyering@lucent.com>
87350
87351         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
87352
87353         * m4/prereq.m4 (utmp_includes): Define.
87354         Check for ut_user and ut_name members in both struct utmpx
87355         and struct utmp.
87356
87357 2000-01-30  Jim Meyering  <meyering@lucent.com>
87358
87359         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
87360         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
87361         header files where only utmpx.ut_user is declared.
87362
87363         * lib/readutmp.h (UT_USER): Define.
87364
87365 2000-01-29  Jim Meyering  <meyering@lucent.com>
87366
87367         * m4/lib-check.m4: New file containing library-related checks from
87368         fileutils and sh-utils (textutils had none).
87369
87370 2000-01-28  Jim Meyering  <meyering@lucent.com>
87371
87372         * m4/perl.m4: Change format of warning message to look more like that
87373         from the missing script.  Suggestion from François Pinard.
87374
87375 2000-01-25  Jim Meyering  <meyering@lucent.com>
87376
87377         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
87378         well as time.h in the compile check.
87379         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
87380         Fix typo in cross-compiling case: s/yes/no/.
87381
87382 2000-01-23  Jim Meyering  <meyering@lucent.com>
87383
87384         * m4/jm-macros.m4: Move df-related tests here from
87385         fileutils/configure.in
87386
87387         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
87388         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
87389
87390         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
87391         s/space/ac_fsusage_space/.
87392         (jm_FILE_SYSTEM_USAGE): Take two parameters.
87393
87394         * m4/ftruncate.m4: New file (derived from part of
87395         fileutils/configure.in).
87396         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
87397         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
87398
87399         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
87400         AC_SUBST these here, rather than just in sh-util/configure.in, so
87401         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
87402         all the same.
87403         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
87404         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
87405         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
87406         (AC_SUBST(POW_LIBM)): Likewise.
87407         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
87408
87409 2000-01-23  Jim Meyering  <meyering@lucent.com>
87410
87411         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
87412         obstack.c.
87413
87414 2000-01-22  Jim Meyering  <meyering@lucent.com>
87415
87416         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
87417
87418         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
87419
87420         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
87421         configure.in
87422         (AC_CHECK_HEADERS): Likewise for sh-utils.
87423         (AC_CHECK_HEADERS): Likewise for textutils.
87424         Merge the three lists of headers.
87425
87426         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
87427         from fileutils' configure.in.
87428
87429         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
87430         code. Moved tests into their own function (_jm_DECL_HEADERS) in
87431         check-decl.m4.
87432
87433         * m4/check-decl.m4: Use #if rather than #ifdef.
87434         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
87435         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
87436         (_jm_DECL_HEADERS): Define new function.
87437         (jm_CHECK_DECLARATIONS): Require it.
87438
87439 2000-01-22  Jim Meyering  <meyering@lucent.com>
87440
87441         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
87442         [! HAVE_DECL_STRTOULL]: Declare strtoull.
87443         Required for some AIX systems.  Reported by Christian Krackowizer.
87444         [TESTING] (main): New function.
87445
87446         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
87447         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
87448         letters.
87449
87450         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
87451         iswprint.
87452
87453         * lib/strverscmp.c (ISDIGIT): Define.
87454         (strverscmp): Use ISDIGIT, not isdigit.
87455
87456 2000-01-19  Jim Meyering  <meyering@lucent.com>
87457
87458         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
87459         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
87460         defines `struct timespec' in <sys/time.h>
87461
87462         * m4/c-bs-a.m4: Remove uses of changequote altogether.
87463         Thanks to Akim for explaining.
87464
87465 2000-01-17  Paul Eggert  <eggert@twinsun.com>
87466
87467         * lib/nanosleep.c (nanosleep):
87468         Don't use SA_INTERRUPT to decide whether to call sigaction, as
87469         POSIX.1 doesn't require SA_INTERRUPT and some systems
87470         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
87471         it's been part of POSIX.1 since day 1 (in 1988).
87472
87473 2000-01-17  Jim Meyering  <meyering@lucent.com>
87474
87475         * lib/interlock: Remove unused file.  Reported by François Pinard.
87476
87477 2000-01-16  Paul Eggert  <eggert@twinsun.com>
87478
87479         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
87480         alert, backslash, formfeed, and vertical tab unnecessarily in
87481         shell quoting style.
87482
87483 2000-01-16  Jim Meyering  <meyering@lucent.com>
87484
87485         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
87486         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
87487         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
87488         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
87489
87490 2000-01-16  Jim Meyering  <meyering@lucent.com>
87491
87492         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
87493         because the latter didn't work.
87494
87495 2000-01-15  Jim Meyering  <meyering@lucent.com>
87496
87497         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
87498         (AC_REPLACE_FUNCS): Add memcpy and memset.
87499         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
87500         Add strpbrk.
87501         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
87502
87503 2000-01-12  Jim Meyering  <meyering@lucent.com>
87504
87505         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
87506         (jm_PREREQ): Use it.
87507         (jm_PREREQ_READUTMP): New macro.
87508         (jm_PREREQ): Use it.
87509
87510 2000-01-11  Paul Eggert  <eggert@twinsun.com>
87511
87512         Quote multibyte characters correctly.
87513         * m4/c-bs-a.m4: New file.
87514         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
87515         (jm_PREREQ): Use it.
87516
87517 2000-01-11  Paul Eggert  <eggert@twinsun.com>
87518
87519         * m4/uintmax_t.m4: Port to autoconf 2.13.
87520
87521 2000-01-08  Jim Meyering  <meyering@ascend.com>
87522
87523         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
87524         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
87525
87526 2000-01-04  Jim Meyering  <meyering@ascend.com>
87527
87528         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
87529         jm_STRUCT_DIRENT_D_TYPE.
87530         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
87531         jm_STRUCT_DIRENT_D_INO.
87532         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
87533         jm_STRUCT_UTIMBUF.
87534         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
87535         renamings.
87536         * m4/utime.m4: Likewise.
87537
87538         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
87539         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
87540
87541 2000-01-03  Paul Eggert  <eggert@twinsun.com>
87542
87543         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
87544         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
87545
87546 2000-01-02  Jim Meyering  <meyering@ascend.com>
87547
87548         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
87549         remember if this is necessary.
87550
87551 1999-12-26  Jim Meyering  <meyering@ascend.com>
87552
87553         * m4/jm-macros.m4: Use it here.
87554         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
87555
87556 1999-12-23  Jim Meyering  <meyering@ascend.com>
87557
87558         * m4/jm-macros.m4: Check for clock_gettime (moved from
87559         fileutils/configure.in)
87560         Check for gettimeofday.
87561
87562 1999-12-20  Jim Meyering  <meyering@ascend.com>
87563
87564         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
87565         autoconf-2.14a-1999-12-20.
87566
87567 1999-12-19  Jim Meyering  <meyering@ascend.com>
87568
87569         * m4/lstat-slash.m4: New file.
87570         * m4/jm-macros.m4: Use the new macro:
87571         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87572
87573 1999-12-07  Jim Meyering  <meyering@ascend.com>
87574
87575         * m4/perl.m4: Require that File::Compare be available, too.
87576         Too many systems seem to lack it.
87577
87578         * m4/strftime.m4: Add checks for most of the cpp macros tested in
87579         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
87580
87581 1999-11-18  Paul Eggert  <eggert@twinsun.com>
87582
87583         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
87584         problem with the QNX 4.25 shell, which doesn't propagate exit
87585         status of failed commands inside shell assignments.
87586
87587 1999-11-17  Jim Meyering  <meyering@ascend.com>
87588
87589         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
87590
87591 1999-11-07  Jim Meyering  <meyering@ascend.com>
87592
87593         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
87594
87595 1999-11-06  Jim Meyering  <meyering@ascend.com>
87596
87597         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
87598         * m4/jm-macros.m4 (jm_MACROS): Use it here.
87599
87600 1999-11-05  Jim Meyering  <meyering@ascend.com>
87601
87602         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
87603         configure.in of textutils, fileutils, and sh-utils into this one
87604         (shared between those packages) file.
87605         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
87606         AC_STRUCT_ST_BLKSIZE.
87607
87608 1999-11-03  Jim Meyering  <meyering@ascend.com>
87609
87610         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
87611         of AC_CHECK_TYPE checks includes unistd.h.
87612         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
87613         Suggestion from Akim Demaille.
87614
87615 1999-10-30  Jim Meyering  <meyering@ascend.com>
87616
87617         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
87618         m4-quoted string.
87619         * m4/ls-mntd-fs.m4: Likewise.
87620         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
87621         * m4/jm-winsz1.m4: Likewise.
87622
87623         * m4/const.m4: Remove file, since the fix made it into the experimental
87624         version of autoconf.
87625         * m4/mktime.m4: Likewise.
87626
87627         * m4/check-type.m4: Remove file, now that the latest version of
87628         AC_CHECK_TYPE takes a third arg to specify additional #includes.
87629
87630         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
87631         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
87632         AC_CHECK_TYPE.
87633
87634 1999-10-04  Jim Meyering  <meyering@ascend.com>
87635
87636         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
87637
87638 1999-09-22  Paul Eggert  <eggert@twinsun.com>
87639
87640         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
87641         2.95.1 bug with HP-UX 10.20.
87642
87643 1999-09-17  Jim Meyering  <meyering@ascend.com>
87644
87645         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
87646         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
87647         due to missing strdup (against sh-utils-2.0).
87648
87649 1999-08-29  Jim Meyering  <meyering@ascend.com>
87650
87651         * m4/jm-macros.m4: Require jm_BISON.
87652         * m4/bison.m4: New file.
87653
87654 1999-08-17  Paul Eggert  <eggert@twinsun.com>
87655
87656         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
87657         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
87658
87659 1999-08-05  Jim Meyering  <meyering@ascend.com>
87660
87661         * m4/getline.m4: Rename test file from conftestdata to conftest.data
87662         to avoid conflicts with `conftest' on 8+3 filesystems.
87663         Suggestion from Eli Zaretskii.
87664
87665 1999-08-04  Jim Meyering  <meyering@ascend.com>
87666
87667         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
87668         fileutils and sh-utils (textutils's getline test was inadequate).
87669         (AM_FUNC_GETLINE): Run this test.
87670         (AC_CHECK_FUNCS): Check for getdelim.
87671         Reported by Bob Proulx.
87672
87673 1999-08-02  Jim Meyering  <meyering@ascend.com>
87674
87675         * m4/jm-macros.m4: Add a comment.
87676
87677 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87678
87679         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
87680         <inttypes.h> defines strtoumax as a macro (and not as a
87681         function).
87682
87683 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87684
87685         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
87686         that we can shift, multiply and divide unsigned long long
87687         values; Ultrix cc can't do it.
87688
87689 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87690
87691         * m4/mktime.m4: New file, which is a preview of what should appear
87692         in the next public autoconf release.
87693
87694 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87695
87696         * m4/lfs.m4: Remove this file.
87697         * m4/largefile.m4: New file.  It contains the old contents of
87698         lfs.m4, except that all names with prefix AC_LFS have been
87699         changed to use the prefix AC_SYS_LARGEFILE instead, to be
87700         compatible with future autoconf versions.  Also, some minor m4
87701         quoting problems have been fixed.
87702
87703 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87704
87705         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
87706         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
87707         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
87708         and simplify the shell code.
87709
87710 1999-08-01  Jim Meyering  <meyering@ascend.com>
87711
87712         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
87713         m4.
87714
87715 1999-07-20  Jim Meyering  <meyering@ascend.com>
87716
87717         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
87718
87719 1999-07-15  Jim Meyering  <meyering@ascend.com>
87720
87721         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
87722
87723 1999-05-22  Jim Meyering  <meyering@ascend.com>
87724
87725         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
87726
87727 1999-05-20  Jim Meyering  <meyering@ascend.com>
87728
87729         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
87730         Add a colon after each `then' in case $4 is empty.
87731
87732 1999-05-16  Jim Meyering  <meyering@ascend.com>
87733
87734         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
87735
87736 1999-05-10  Jim Meyering  <meyering@ascend.com>
87737
87738         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
87739
87740         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
87741         AC_FUNC_MKTIME.
87742
87743 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
87744
87745         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
87746
87747 1999-05-04  Paul Eggert  <eggert@twinsun.com>
87748
87749         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
87750         not CPPFLAGS, so that linking works correctly in IRIX.
87751
87752 1999-04-30  Paul Eggert  <eggert@twinsun.com>
87753
87754         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
87755
87756 1999-04-20  Paul Eggert  <eggert@twinsun.com>
87757
87758         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
87759         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
87760         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
87761         jm_AC_TYPE_UNSIGNED_LONG_LONG.
87762         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
87763
87764         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
87765
87766 1999-04-20  Jim Meyering  <meyering@ascend.com>
87767
87768         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
87769         AC_REPLACE xstroull if necessary.  From Paul Eggert.
87770         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
87771
87772 1999-04-18  Jim Meyering  <meyering@ascend.com>
87773
87774         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
87775         * m4/jm-macros.m4: Use it.
87776
87777 1999-04-06  Jim Meyering  <meyering@ascend.com>
87778
87779         * m4/strftime.m4: Remove test for %f.
87780
87781 1999-03-29  Jim Meyering  <meyering@ascend.com>
87782
87783         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
87784         superset of the AC_TYPE_* checks in the textutils, fileutils,
87785         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
87786         AC_TYPE_PID_T.
87787
87788 1999-03-28  Jim Meyering  <meyering@ascend.com>
87789
87790         * m4/jm-macros.m4: Define GNU_PACKAGE here.
87791         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
87792         replaced e.g., in the *.sh files of the sh-utils.
87793
87794 1999-03-20  Jim Meyering  <meyering@ascend.com>
87795
87796         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
87797         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
87798         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
87799
87800 1999-03-19  Jim Meyering  <meyering@ascend.com>
87801
87802         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
87803
87804 1999-03-12  Jim Meyering  <meyering@ascend.com>
87805
87806         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
87807
87808 1999-03-07  Jim Meyering  <meyering@ascend.com>
87809
87810         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
87811         declared.
87812
87813 1999-02-17  Jim Meyering  <meyering@ascend.com>
87814
87815         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
87816         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
87817
87818 1999-02-07  Jim Meyering  <meyering@ascend.com>
87819
87820         * m4/group-member.m4: New file -- extracted from sh-utils'
87821         configure.in.
87822
87823         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
87824         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
87825
87826 1999-02-06  Jim Meyering  <meyering@ascend.com>
87827
87828         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
87829         * m4/fnmatch.m4: Likewise.
87830         * m4/getgroups.m4: Likewise.
87831         * m4/lstat.m4: Likewise.
87832         * m4/malloc.m4: Likewise.
87833         * m4/putenv.m4: Likewise.
87834         * m4/realloc.m4: Likewise.
87835         * m4/regex.m4: Likewise.
87836         * m4/stat.m4: Likewise.
87837         * m4/strftime.m4: Likewise.
87838         Suggestion from Alain Magloire.
87839
87840         * m4/chown.m4: Use `.$ac_objext', not `.o'.
87841         * m4/fnmatch.m4: Likewise.
87842         * m4/getgroups.m4: Likewise.
87843         * m4/getline.m4: Likewise.
87844         * m4/lstat.m4: Likewise.
87845         * m4/malloc.m4: Likewise.
87846         * m4/memcmp.m4: Likewise.
87847         * m4/putenv.m4: Likewise.
87848         * m4/realloc.m4: Likewise.
87849         * m4/regex.m4: Likewise.
87850         * m4/stat.m4: Likewise.
87851         * m4/strftime.m4: Likewise.
87852         Suggestion from Alain Magloire.
87853
87854         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
87855         an argument.
87856
87857         * m4/regex.m4: Add a run-time Test for proper operation of
87858         re_compile_pattern.
87859
87860 1999-01-31  Jim Meyering  <meyering@ascend.com>
87861
87862         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
87863
87864 1999-01-30  Jim Meyering  <meyering@ascend.com>
87865
87866         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
87867
87868         * m4/jm-mktime.m4: Make this a wrapper around the official
87869         AM_FUNC_MKTIME rather than my private copy, now that the official one
87870         is up to date.
87871         * m4/mktime.m4: Remove file.
87872
87873         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
87874         * m4/uptime.m4: Likewise.
87875         * m4/uintmax_t.m4: Likewise.
87876
87877 1999-01-28  Jim Meyering  <meyering@ascend.com>
87878
87879         * m4/jm-macros.m4: Use jm_AFS.
87880         * m4/afs.m4: New file (from fileutils' configure.in).
87881
87882         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
87883         * m4/chown.m4: Likewise.
87884         * m4/d-ino.m4: Likewise.
87885         * m4/d-type.m4: Likewise.
87886         * m4/fnmatch.m4: Likewise.
87887         * m4/getgroups.m4: Likewise.
87888         * m4/gettext.m4: Likewise.
87889         * m4/jm-mktime.m4: Likewise.
87890         * m4/jm-winsz2.m4: Likewise.
87891         * m4/lcmessage.m4: Likewise.
87892         * m4/ls-mntd-fs.m4: Likewise.
87893         * m4/malloc.m4: Likewise.
87894         * m4/memcmp.m4: Likewise.
87895         * m4/putenv.m4: Likewise.
87896         * m4/realloc.m4: Likewise.
87897         * m4/st_mtim.m4: Likewise.
87898         * m4/strftime.m4: Likewise.
87899
87900 1999-01-16  Jim Meyering  <meyering@ascend.com>
87901
87902         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
87903         (ARGMATCH_DIE_DECL): Define.
87904
87905 1999-01-12  Jim Meyering  <meyering@ascend.com>
87906
87907         * m4/Makefile.am.in: Rewrite to avoid using fmt.
87908         Reported by Lars Hecking.
87909
87910 1999-01-10  Jim Meyering  <meyering@ascend.com>
87911
87912         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
87913         gross kludge.
87914         * m4/inttypes_h.m4: Likewise.
87915         * m4/lstat.m4: Likewise.
87916         * m4/malloc.m4: Likewise.
87917         * m4/readdir.m4: Likewise.
87918         * m4/realloc.m4: Likewise.
87919         * m4/st_dm_mode.m4: Likewise.
87920         * m4/stat.m4: Likewise.
87921         * m4/utimbuf.m4: Likewise.
87922         * m4/utimes.m4: Likewise.
87923
87924         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
87925         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
87926         comments in config.h.in are meaningful.
87927
87928         * m4/jm-macros.m4: Require autoconf-2.13 here.
87929
87930         * m4/regex.m4: By default, don't use the included regex.c on systems
87931         with glibc 2.  Suggestion from Uli Drepper.
87932
87933 1999-01-02  Jim Meyering  <meyering@ascend.com>
87934
87935         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
87936
87937 1998-12-18  Jim Meyering  <meyering@ascend.com>
87938
87939         * m4/Makefile.am.in (Makefile.am): Simplify rule.
87940         Based on a suggestion from Lars Hecking.
87941
87942 1998-11-16  Paul Eggert  <eggert@twinsun.com>
87943
87944         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
87945
87946 1998-11-16  Jim Meyering  <meyering@ascend.com>
87947
87948         * m4/lfs.m4: Double-quote the `uname...` expression.
87949
87950 1998-11-14  Jim Meyering  <meyering@ascend.com>
87951
87952         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
87953         * m4/stat.m4: Likewise.
87954
87955 1998-11-03  Jim Meyering  <meyering@ascend.com>
87956
87957         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
87958         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
87959
87960 1998-10-18  Jim Meyering  <meyering@ascend.com>
87961
87962         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
87963
87964 1998-10-17  Jim Meyering  <meyering@ascend.com>
87965
87966         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
87967         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
87968         calls for those previously hard-coded headers.  Instead, take a new
87969         parameter.
87970         (jm_CHECK_DECLARATIONS): Reflect interface change.
87971         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
87972         (jm_CHECK_DECL_LOCALTIME_R): New macro.
87973
87974         * m4/mktime.m4: Test for spring-forward gap before long-running test.
87975
87976 1998-10-14  Jim Meyering  <meyering@ascend.com>
87977
87978         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
87979         instead of "TZ=America/Vancouver".  From Paul Eggert.
87980
87981 1998-10-11  Jim Meyering  <meyering@ascend.com>
87982
87983         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
87984         This adds a test for a recently added compatibility fix for mktime.c.
87985         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
87986
87987 1998-09-27  Jim Meyering  <meyering@ascend.com>
87988
87989         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
87990
87991         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
87992         ../configure.in, including a change from Gordon Matzigkeit to allow
87993         cross-compiling for the Hurd.
87994
87995         * m4/glibc.m4: New file/macro to test for the GNU C Library
87996         versions 1 and 2.  From Gordon Matzigkeit.
87997         Indent.
87998
87999 1998-09-21  Jim Meyering  <meyering@ascend.com>
88000
88001         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
88002
88003 1998-08-18  Paul Eggert  <eggert@twinsun.com>
88004
88005         Port nanosecond-resolution times to UnixWare 2.1.2 and
88006         pedantic Solaris 2.6.
88007
88008         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
88009         AC_STRUCT_ST_MTIM.
88010         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
88011         Generate name of ns member, instead of just 1 or undef.
88012         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
88013
88014 1998-08-15  Jim Meyering  <meyering@ascend.com>
88015
88016         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
88017         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
88018         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
88019         instead of jm_TYPE_SSIZE_T.
88020
88021 1998-08-12  Jim Meyering  <meyering@ascend.com>
88022
88023         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
88024
88025 1998-08-02  Jim Meyering  <meyering@ascend.com>
88026
88027         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
88028         in acconfig.h manually.
88029
88030 1998-07-31  Paul Eggert  <eggert@twinsun.com>
88031
88032         * m4/st_mtim.m4: New file.
88033
88034 1998-07-28  Jim Meyering  <meyering@ascend.com>
88035
88036         * m4/utimes.m4: Undef stat.
88037
88038 1998-07-25  Jim Meyering  <meyering@ascend.com>
88039
88040         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
88041         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
88042
88043 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
88044
88045         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
88046         uid and gid actually remain unchanged.
88047
88048 1998-07-07  Jim Meyering  <meyering@ascend.com>
88049
88050         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
88051
88052 1998-07-04  Jim Meyering  <meyering@ascend.com>
88053
88054         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
88055         to prove that this macro can be used in packages without regex.c.
88056
88057 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
88058
88059         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
88060         is to be used.
88061
88062 1998-07-03  Jim Meyering  <meyering@ascend.com>
88063
88064         * m4/gettext.m4: Add -lintl if it's found to be necessary.
88065
88066         * m4/gettext.m4: New file -- from gettext-0.10.35.
88067         * m4/lcmessage.m4: Likewise.
88068         * m4/progtest.m4: Likewise.
88069
88070         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
88071         * m4/jm-macros.m4: Require the new macro.
88072
88073 1998-06-29  Jim Meyering  <meyering@ascend.com>
88074
88075         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
88076         for the definition of NGROUPS (used in a system header included
88077         by sys/mount.h).
88078
88079 1998-06-28  Jim Meyering  <meyering@ascend.com>
88080
88081         * m4/ls-mntd-fs.m4: New file.
88082         * m4/fstypename.m4: New file.
88083
88084         * m4/jm-macros.m4: Require the new macro.
88085         * m4/jm-glibc-io.m4: New file.
88086
88087 1998-05-19  Jim Meyering  <meyering@ascend.com>
88088
88089         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
88090         * m4/lchown.m4: New file.
88091
88092         * m4/Makefile.am.in: New file.
88093         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
88094
88095 1998-05-14  Jim Meyering  <meyering@ascend.com>
88096
88097         * m4/Makefile.am (EXTRA_DIST): Add them.
88098         * m4/jm-macros.m4: New file.
88099         * m4/utimbuf.m4: New file.
88100
88101 1998-05-12  Jim Meyering  <meyering@ascend.com>
88102
88103         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
88104
88105 1998-05-11  Jim Meyering  <meyering@ascend.com>
88106
88107         * m4/isc-posix.m4: New file.
88108
88109 1998-05-10  Jim Meyering  <meyering@ascend.com>
88110
88111         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
88112
88113 1998-05-09  Jim Meyering  <meyering@ascend.com>
88114
88115         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
88116         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
88117         with automake.
88118
88119         * m4/ssize_t.m4: New file.
88120         * m4/mktime.m4: Remove file -- the new automake has this now.
88121
88122 1998-04-26  Jim Meyering  <meyering@ascend.com>
88123
88124         * m4/assert.m4: New file.
88125         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
88126
88127 1998-04-05  Jim Meyering  <meyering@ascend.com>
88128
88129         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
88130         (jm_PREREQ): Use it here.
88131
88132 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
88133
88134         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
88135         in acconfig.h.
88136
88137 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
88138
88139         * m4/prereq.m4: New file.
88140         * m4/error.m4: New file.
88141         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
88142
88143 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
88144
88145         * m4/getline.m4: Don't set am_cv_func_working_getline before the
88146         cache-check for the same variable -- that defeated the purpose of
88147         the test; the test program was never run.  This was a problem only
88148         on systems with losing getline functions -- HP-UX 10.20 is one.
88149         Reported by Bjorn Helgaas.
88150
88151 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
88152
88153         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
88154
88155 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
88156
88157         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
88158
88159         * m4/const.m4: New file.  Use an initializer in this declaration
88160         typedef int charset[2]; const charset x;
88161         Reported by Bob Glickstein.
88162
88163 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
88164
88165         * m4/chown.m4: Fix reversed types on -1 args to chown.
88166         From Kaveh Ghazi.
88167
88168 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
88169
88170         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
88171         Add lseek and memchr.
88172
88173         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
88174         T.E.Dickey <dickey@clark.net> said that some older preprocessors
88175         have a 20-character limit on names.
88176
88177 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
88178
88179         * m4/inttypes_h.m4: New file.
88180         * m4/uintmax_t.m4: New file.
88181         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
88182
88183
88184         -----
88185
88186         Local Variables:
88187         coding: utf-8
88188         End:
88189
88190         Copyright (C) 1997-2011 Free Software Foundation, Inc.
88191
88192         Copying and distribution of this file, with or without
88193         modification, are permitted provided the copyright notice
88194         and this notice are preserved.