mathfunc.m4: Refactor.
[gnulib.git] / ChangeLog
1 2011-10-09  Bruno Haible  <bruno@clisp.org>
2
3         mathfunc.m4: Refactor.
4         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
5         m4 variable.
6
7 2011-10-09  Bruno Haible  <bruno@clisp.org>
8
9         rintl: Simplify for platforms where 'long double' == 'double'.
10         * lib/rintl.c: Include <config.h>.
11         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
13         time.
14         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
15         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
16         * modules/rintl (Depends-on): Add rint. Update conditions.
17
18 2011-10-09  Bruno Haible  <bruno@clisp.org>
19
20         roundl: Simplify for platforms where 'long double' == 'double'.
21         * lib/roundl.c: Include <config.h>.
22         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
23         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
24         time.
25         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
27         * modules/roundl (Depends-on): Add round. Update conditions.
28
29 2011-10-09  Bruno Haible  <bruno@clisp.org>
30
31         truncl: Simplify for platforms where 'long double' == 'double'.
32         * lib/truncl.c: Include <config.h>.
33         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
34         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
35         time.
36         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
37         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
38         * modules/truncl (Depends-on): Add trunc. Update conditions.
39
40 2011-10-09  Bruno Haible  <bruno@clisp.org>
41
42         ceill: Simplify for platforms where 'long double' == 'double'.
43         * lib/ceill.c: Include <config.h>.
44         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46         time.
47         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
48         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
49         * modules/ceill (Depends-on): Add ceil. Update conditions.
50
51 2011-10-09  Bruno Haible  <bruno@clisp.org>
52
53         floorl: Simplify for platforms where 'long double' == 'double'.
54         * lib/floorl.c: Include <config.h>.
55         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
56         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
57         time.
58         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
59         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
60         * modules/floorl (Depends-on): Add floor. Update conditions.
61
62 2011-10-09  Bruno Haible  <bruno@clisp.org>
63
64         rint: Fix ordering constraints.
65         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
66         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
67         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
68
69 2011-10-09  Bruno Haible  <bruno@clisp.org>
70
71         copysignl: Simplify for platforms where 'long double' == 'double'.
72         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
73         alternative.
74         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
75         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
76         * modules/copysignl (Depends-on): Add copysign. Update conditions.
77
78 2011-10-09  Bruno Haible  <bruno@clisp.org>
79
80         Tests for module 'rintl'.
81         * modules/rintl-tests: New file.
82         * tests/test-rintl.c: New file.
83
84         New module 'rintl'.
85         * lib/math.in.h (rintl): New declaration.
86         * lib/rintl.c: New file.
87         * m4/rintl.m4: New file.
88         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
89         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
90         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
91         * modules/rintl: New file.
92         * tests/test-math-c++.cc: Check the declaration of rintl.
93         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
94         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
95         * doc/posix-functions/rintl.texi: Mention the new module.
96
97 2011-10-09  Bruno Haible  <bruno@clisp.org>
98
99         Tests for module 'rintf'.
100         * modules/rintf-tests: New file.
101         * tests/test-rintf.c: New file.
102
103         New module 'rintf'.
104         * lib/math.in.h (rintf): New declaration.
105         * lib/rintf.c: New file.
106         * m4/rintf.m4: New file.
107         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
108         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
109         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
110         * modules/rintf: New file.
111         * tests/test-math-c++.cc: Check the declaration of rintf.
112         * doc/posix-functions/rintf.texi: Mention the new module.
113
114 2011-10-09  Bruno Haible  <bruno@clisp.org>
115
116         rint: Support for MSVC.
117         * lib/math.in.h (rint): New declaration.
118         * lib/rint.c: New file.
119         * m4/rint.m4: New file.
120         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
121         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
122         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
123         * modules/rint (Description): Fix.
124         (Files): Add lib/rint.c, m4/rint.m4.
125         (Depends-on): Add math.
126         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
127         gl_MATH_MODULE_INDICATOR.
128         * tests/test-math-c++.cc: Check the declaration of rint.
129         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
130         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
131         * doc/posix-functions/rint.texi: Mention the replacement provided by
132         the module.
133
134         rint tests: More tests.
135         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
136         minus-zero.h, infinity.h, nan.h.
137         (main): Skip the test if the current rounding mode is not standard. Add
138         tests for negative numbers, minus zero, infinity, NaN.
139         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
140         tests/nan.h.
141         (Depends-on): Add isnand-nolibm.
142
143 2011-10-09  Bruno Haible  <bruno@clisp.org>
144
145         Tests for module 'copysignl'.
146         * modules/copysignl-tests: New file.
147         * tests/test-copysignl.c: New file.
148
149         New module 'copysignl'.
150         * lib/math.in.h (copysignl): New declaration.
151         * lib/copysignl.c: New file.
152         * m4/copysignl.m4: New file.
153         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
154         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
155         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
156         HAVE_COPYSIGNL.
157         * modules/copysignl: New file.
158         * tests/test-math-c++.cc: Check the declaration of copysignl.
159         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
160         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
161         * doc/posix-functions/copysignl.texi: Mention the new module.
162
163 2011-10-09  Bruno Haible  <bruno@clisp.org>
164
165         Tests for module 'copysignf'.
166         * modules/copysignf-tests: New file.
167         * tests/test-copysignf.c: New file.
168
169         New module 'copysignf'.
170         * lib/math.in.h (copysignf): New declaration.
171         * lib/copysignf.c: New file.
172         * m4/copysignf.m4: New file.
173         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
174         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
175         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
176         HAVE_COPYSIGNF.
177         * modules/copysignf: New file.
178         * tests/test-math-c++.cc: Check the declaration of copysignf.
179         * doc/posix-functions/copysignf.texi: Mention the new module.
180
181 2011-10-09  Bruno Haible  <bruno@clisp.org>
182
183         Ensure that HAVE_* variables are set to 1 before they are set to 0.
184         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
185         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
186         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
187         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
188         gl_SIGNAL_H_DEFAULTS.
189
190 2011-10-09  Bruno Haible  <bruno@clisp.org>
191
192         poll: Make macro safer.
193         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
194         ac_cv_header_poll_h is not set.
195
196 2011-10-09  Bruno Haible  <bruno@clisp.org>
197
198         copysign: Provide replacement.
199         * lib/math.in.h (copysign): New declaration.
200         * lib/copysign.c: New file.
201         * m4/copysign.m4: New file.
202         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
203         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
204         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
205         HAVE_COPYSIGN.
206         * modules/copysign (Description): Clarify.
207         (Files): Add lib/copysign.c, m4/copysign.m4.
208         (Depends-on): Add math, signbit.
209         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
210         gl_MATH_MODULE_INDICATOR.
211         * tests/test-math-c++.cc: Check the declaration of copysign.
212         * doc/posix-functions/copysign.texi: Mention the effects of the module
213         on Minix and MSVC.
214
215 2011-10-09  Bruno Haible  <bruno@clisp.org>
216
217         isinf: Ensure macro on AIX 5.1.
218         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
219         macro.
220         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
221
222 2011-10-09  Bruno Haible  <bruno@clisp.org>
223
224         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
225         * modules/snprintf-posix-tests (configure.ac): Require
226         gl_LONG_DOUBLE_VS_DOUBLE.
227         * modules/sprintf-posix-tests (configure.ac): Likewise.
228         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
229         * modules/vasprintf-posix-tests (configure.ac): Likewise.
230         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
231         * modules/vsprintf-posix-tests (configure.ac): Likewise.
232         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
233         tests on platforms where 'long double' is the same as 'double'.
234         * tests/test-sprintf-posix.h (test_function): Likewise.
235         * tests/test-vasnprintf-posix.c (test_function): Likewise.
236         * tests/test-vasprintf-posix.c (test_function): Likewise.
237
238         *printf: Fix for platforms where 'long double' == 'double'.
239         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
240         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
241         * modules/dprintf-posix (Files): Add m4/math_h.m4.
242         * modules/fprintf-posix (Files): Likewise.
243         * modules/obstack-printf-posix (Files): Likewise.
244         * modules/snprintf-posix (Files): Likewise.
245         * modules/sprintf-posix (Files): Likewise.
246         * modules/vasnprintf (Files): Likewise.
247         * modules/vasnprintf-posix (Files): Likewise.
248         * modules/vasprintf-posix (Files): Likewise.
249         * modules/vdprintf-posix (Files): Likewise.
250         * modules/vfprintf-posix (Files): Likewise.
251         * modules/vsnprintf-posix (Files): Likewise.
252         * modules/vsprintf-posix (Files): Likewise.
253         * modules/unistdio/u8-vasnprintf (Files): Likewise.
254         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
255         * modules/unistdio/u16-vasnprintf (Files): Likewise.
256         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
257         * modules/unistdio/u32-vasnprintf (Files): Likewise.
258         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
259         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
260
261         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
262         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
263         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
264         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
265         'long double'.
266         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
267
268         isinf: Fix for platforms where 'long double' == 'double'.
269         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
270         Don't blindly assume 80-bit 'long double'.
271
272         isfinite: Fix for platforms where 'long double' == 'double'.
273         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
274         Don't blindly assume 80-bit 'long double'.
275
276         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
277         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
278         * modules/isfinite-tests (configure.ac): Require
279         gl_LONG_DOUBLE_VS_DOUBLE.
280         * modules/isinf-tests (configure.ac): Likewise.
281         * modules/isnan-tests (configure.ac): Likewise.
282         * modules/isnanl-tests (configure.ac): Likewise.
283         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
284         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
285         tests on platforms where 'long double' is the same as 'double'.
286         * tests/test-isinf.c (test_isinfl): Likewise.
287         * tests/test-isnan.c (test_long_double): Likewise.
288         * tests/test-isnanl.h (main): Likewise.
289
290 2011-10-08  Bruno Haible  <bruno@clisp.org>
291
292         Tests for module 'tanhf'.
293         * modules/tanhf-tests: New file.
294         * tests/test-tanhf.c: New file.
295
296         New module 'tanhf'.
297         * lib/math.in.h (tanhf): New declaration.
298         * lib/tanhf.c: New file.
299         * m4/tanhf.m4: New file.
300         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
301         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
302         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
303         * modules/tanhf: New file.
304         * tests/test-math-c++.cc: Check the declaration of tanhf.
305         * doc/posix-functions/tanhf.texi: Mention the new module.
306
307         tanh: Use a .m4 file.
308         * m4/tanh.m4: New file.
309         * modules/tanh (Files): Add it.
310         (configure.ac): Just invoke gl_FUNC_TANH.
311
312 2011-10-08  Bruno Haible  <bruno@clisp.org>
313
314         Tests for module 'coshf'.
315         * modules/coshf-tests: New file.
316         * tests/test-coshf.c: New file.
317
318         New module 'coshf'.
319         * lib/math.in.h (coshf): New declaration.
320         * lib/coshf.c: New file.
321         * m4/coshf.m4: New file.
322         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
323         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
324         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
325         * modules/coshf: New file.
326         * tests/test-math-c++.cc: Check the declaration of coshf.
327         * doc/posix-functions/coshf.texi: Mention the new module.
328
329         cosh: Use a .m4 file.
330         * m4/cosh.m4: New file.
331         * modules/cosh (Files): Add it.
332         (configure.ac): Just invoke gl_FUNC_COSH.
333
334 2011-10-08  Bruno Haible  <bruno@clisp.org>
335
336         Tests for module 'sinhf'.
337         * modules/sinhf-tests: New file.
338         * tests/test-sinhf.c: New file.
339
340         New module 'sinhf'.
341         * lib/math.in.h (sinhf): New declaration.
342         * lib/sinhf.c: New file.
343         * m4/sinhf.m4: New file.
344         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
345         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
346         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
347         * modules/sinhf: New file.
348         * tests/test-math-c++.cc: Check the declaration of sinhf.
349         * doc/posix-functions/sinhf.texi: Mention the new module.
350
351         sinh: Use a .m4 file.
352         * m4/sinh.m4: New file.
353         * modules/sinh (Files): Add it.
354         (configure.ac): Just invoke gl_FUNC_SINH.
355
356 2011-10-08  Bruno Haible  <bruno@clisp.org>
357
358         Tests for module 'atan2f'.
359         * modules/atan2f-tests: New file.
360         * tests/test-atan2f.c: New file.
361
362         New module 'atan2f'.
363         * lib/math.in.h (atan2f): New declaration.
364         * lib/atan2f.c: New file.
365         * m4/atan2f.m4: New file.
366         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
367         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
368         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
369         * modules/atan2f: New file.
370         * tests/test-math-c++.cc: Check the declaration of atan2f.
371         * doc/posix-functions/atan2f.texi: Mention the new module.
372
373         atan2: Use a .m4 file.
374         * m4/atan2.m4: New file.
375         * modules/atan2 (Files): Add it.
376         (configure.ac): Just invoke gl_FUNC_ATAN2.
377
378 2011-10-08  Bruno Haible  <bruno@clisp.org>
379
380         Tests for module 'atanf'.
381         * modules/atanf-tests: New file.
382         * tests/test-atanf.c: New file.
383
384         New module 'atanf'.
385         * lib/math.in.h (atanf): New declaration.
386         * lib/atanf.c: New file.
387         * m4/atanf.m4: New file.
388         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
389         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
390         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
391         * modules/atanf: New file.
392         * tests/test-math-c++.cc: Check the declaration of atanf.
393         * doc/posix-functions/atanf.texi: Mention the new module.
394
395         atan: Use a .m4 file.
396         * m4/atan.m4: New file.
397         * modules/atan (Files): Add it.
398         (configure.ac): Just invoke gl_FUNC_ATAN.
399
400 2011-10-08  Bruno Haible  <bruno@clisp.org>
401
402         Tests for module 'acosf'.
403         * modules/acosf-tests: New file.
404         * tests/test-acosf.c: New file.
405
406         New module 'acosf'.
407         * lib/math.in.h (acosf): New declaration.
408         * lib/acosf.c: New file.
409         * m4/acosf.m4: New file.
410         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
411         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
412         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
413         * modules/acosf: New file.
414         * tests/test-math-c++.cc: Check the declaration of acosf.
415         * doc/posix-functions/acosf.texi: Mention the new module.
416
417         acos: Use a .m4 file.
418         * m4/acos.m4: New file.
419         * modules/acos (Files): Add it.
420         (configure.ac): Just invoke gl_FUNC_ACOS.
421
422 2011-10-08  Bruno Haible  <bruno@clisp.org>
423
424         Tests for module 'asinf'.
425         * modules/asinf-tests: New file.
426         * tests/test-asinf.c: New file.
427
428         New module 'asinf'.
429         * lib/math.in.h (asinf): New declaration.
430         * lib/asinf.c: New file.
431         * m4/asinf.m4: New file.
432         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
433         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
434         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
435         * modules/asinf: New file.
436         * tests/test-math-c++.cc: Check the declaration of asinf.
437         * doc/posix-functions/asinf.texi: Mention the new module.
438
439         asin: Use a .m4 file.
440         * m4/asin.m4: New file.
441         * modules/asin (Files): Add it.
442         (configure.ac): Just invoke gl_FUNC_ASIN.
443
444 2011-10-08  Bruno Haible  <bruno@clisp.org>
445
446         Tests for module 'tanf'.
447         * modules/tanf-tests: New file.
448         * tests/test-tanf.c: New file.
449
450         New module 'tanf'.
451         * lib/math.in.h (tanf): New declaration.
452         * lib/tanf.c: New file.
453         * m4/tanf.m4: New file.
454         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
455         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
456         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
457         * modules/tanf: New file.
458         * tests/test-math-c++.cc: Check the declaration of tanf.
459         * doc/posix-functions/tanf.texi: Mention the new module.
460
461         tan: Use a .m4 file.
462         * m4/tan.m4: New file.
463         * modules/tan (Files): Add it.
464         (configure.ac): Just invoke gl_FUNC_TAN.
465
466 2011-10-08  Bruno Haible  <bruno@clisp.org>
467
468         Tests for module 'cosf'.
469         * modules/cosf-tests: New file.
470         * tests/test-cosf.c: New file.
471
472         New module 'cosf'.
473         * lib/math.in.h (cosf): New declaration.
474         * lib/cosf.c: New file.
475         * m4/cosf.m4: New file.
476         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
477         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
478         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
479         * modules/cosf: New file.
480         * tests/test-math-c++.cc: Check the declaration of cosf.
481         * doc/posix-functions/cosf.texi: Mention the new module.
482
483         cos: Use a .m4 file.
484         * m4/cos.m4: New file.
485         * modules/cos (Files): Add it.
486         (configure.ac): Just invoke gl_FUNC_COS.
487
488 2011-10-08  Bruno Haible  <bruno@clisp.org>
489
490         Tests for module 'sinf'.
491         * modules/sinf-tests: New file.
492         * tests/test-sinf.c: New file.
493
494         New module 'sinf'.
495         * lib/math.in.h (sinf): New declaration.
496         * lib/sinf.c: New file.
497         * m4/sinf.m4: New file.
498         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
499         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
500         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
501         * modules/sinf: New file.
502         * tests/test-math-c++.cc: Check the declaration of sinf.
503         * doc/posix-functions/sinf.texi: Mention the new module.
504
505         sin: Use a .m4 file.
506         * m4/sin.m4: New file.
507         * modules/sin (Files): Add it.
508         (configure.ac): Just invoke gl_FUNC_SIN.
509
510 2011-10-08  Bruno Haible  <bruno@clisp.org>
511
512         Tests for module 'powf'.
513         * modules/powf-tests: New file.
514         * tests/test-powf.c: New file.
515
516         New module 'powf'.
517         * lib/math.in.h (powf): New declaration.
518         * lib/powf.c: New file.
519         * m4/powf.m4: New file.
520         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
521         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
522         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
523         * modules/powf: New file.
524         * tests/test-math-c++.cc: Check the declaration of powf.
525         * doc/posix-functions/powf.texi: Mention the new module.
526
527         pow: Use a .m4 file.
528         * m4/pow.m4: New file.
529         * modules/pow (Files): Add it.
530         (configure.ac): Just invoke gl_FUNC_POW.
531
532 2011-10-08  Bruno Haible  <bruno@clisp.org>
533
534         Tests for module 'log10f'.
535         * modules/log10f-tests: New file.
536         * tests/test-log10f.c: New file.
537
538         New module 'log10f'.
539         * lib/math.in.h (log10f): New declaration.
540         * lib/log10f.c: New file.
541         * m4/log10f.m4: New file.
542         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
543         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
544         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
545         * modules/log10f: New file.
546         * tests/test-math-c++.cc: Check the declaration of log10f.
547         * doc/posix-functions/log10f.texi: Mention the new module.
548
549         log10: Use a .m4 file.
550         * m4/log10.m4: New file.
551         * modules/log10 (Files): Add it.
552         (configure.ac): Just invoke gl_FUNC_LOG10.
553
554 2011-10-08  Bruno Haible  <bruno@clisp.org>
555
556         Tests for module 'logf'.
557         * modules/logf-tests: New file.
558         * tests/test-logf.c: New file.
559
560         New module 'logf'.
561         * lib/math.in.h (logf): New declaration.
562         * lib/logf.c: New file.
563         * m4/logf.m4: New file.
564         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
565         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
566         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
567         * modules/logf: New file.
568         * tests/test-math-c++.cc: Check the declaration of logf.
569         * doc/posix-functions/logf.texi: Mention the new module.
570
571         log: Use a .m4 file.
572         * m4/log.m4: New file.
573         * modules/log (Files): Add it.
574         (configure.ac): Just invoke gl_FUNC_LOG.
575
576 2011-10-08  Bruno Haible  <bruno@clisp.org>
577
578         Tests for module 'expf'.
579         * modules/expf-tests: New file.
580         * tests/test-expf.c: New file.
581
582         New module 'expf'.
583         * lib/math.in.h (expf): New declaration.
584         * lib/expf.c: New file.
585         * m4/expf.m4: New file.
586         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
587         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
588         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
589         * modules/expf: New file.
590         * tests/test-math-c++.cc: Check the declaration of expf.
591         * doc/posix-functions/expf.texi: Mention the new module.
592
593         exp: Use a .m4 file.
594         * m4/exp.m4: New file.
595         * modules/exp (Files): Add it.
596         (configure.ac): Just invoke gl_FUNC_EXP.
597
598 2011-10-08  Bruno Haible  <bruno@clisp.org>
599
600         Tests for module 'sqrtf'.
601         * modules/sqrtf-tests: New file.
602         * tests/test-sqrtf.c: New file.
603
604         New module 'sqrtf'.
605         * lib/math.in.h (sqrtf): New declaration.
606         * lib/sqrtf.c: New file.
607         * m4/sqrtf.m4: New file.
608         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
609         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
610         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
611         * modules/sqrtf: New file.
612         * tests/test-math-c++.cc: Check the declaration of sqrtf.
613         * doc/posix-functions/sqrtf.texi: Mention the new module.
614
615 2011-10-08  Bruno Haible  <bruno@clisp.org>
616
617         Tests: Avoid link failures w.r.t. libintl.
618         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
619         $(LIBINTL).
620         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
621         $(LIBINTL).
622         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
623         against $(LIBINTL).
624         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
625         $(LIBINTL).
626         * modules/openat-tests (Makefile.am): Link test-fchmodat against
627         $(LIBINTL).
628         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
629
630 2011-10-08  Bruno Haible  <bruno@clisp.org>
631
632         pow tests: Defeat compiler optimizations.
633         * tests/test-pow.c (main): Assign arguments to x and y before use.
634
635 2011-10-08  Bruno Haible  <bruno@clisp.org>
636
637         gnulib-tool: Improve last commit.
638         * gnulib-tool (func_modules_transitive_closure): Simplify code.
639         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
640         ignore dependencies that are not among the modules list.
641
642 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
643
644         gnulib-tool: don't follow dependencies to avoided modules
645         This fixes a bug that is related to the previous one.
646         * gnulib-tool (func_modules_transitive_closure)
647         (func_emit_autoconf_snippets):
648         Check whether a dependency is acceptable before using it.
649         (--extract-dependencies): Report an error if --avoid is also used,
650         since this combination of options is not yet supported.
651
652         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
653         Problem reported by Peter Dyballa in
654         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
655         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
656         when echoing "$condition".
657
658 2011-10-07  Bruno Haible  <bruno@clisp.org>
659
660         Fix documentation about math functions on MacOS X.
661         * doc/posix-functions/exp2.texi: Don't say the function is missing on
662         MacOS X 10.5.
663         * doc/posix-functions/fdim.texi: Likewise.
664         * doc/posix-functions/feclearexcept.texi: Likewise.
665         * doc/posix-functions/fegetenv.texi: Likewise.
666         * doc/posix-functions/fegetround.texi: Likewise.
667         * doc/posix-functions/feholdexcept.texi: Likewise.
668         * doc/posix-functions/feraiseexcept.texi: Likewise.
669         * doc/posix-functions/fesetenv.texi: Likewise.
670         * doc/posix-functions/fesetround.texi: Likewise.
671         * doc/posix-functions/fetestexcept.texi: Likewise.
672         * doc/posix-functions/feupdateenv.texi: Likewise.
673         * doc/posix-functions/fmax.texi: Likewise.
674         * doc/posix-functions/fmin.texi: Likewise.
675         * doc/posix-functions/log2.texi: Likewise.
676         * doc/posix-functions/modff.texi: Likewise.
677         * doc/posix-functions/nan.texi: Likewise.
678         * doc/posix-functions/nanf.texi: Likewise.
679         * doc/posix-functions/nextafterf.texi: Likewise.
680         * doc/posix-functions/remquo.texi: Likewise.
681
682 2011-10-07  Bruno Haible  <bruno@clisp.org>
683
684         modff: Drop assumption about library that defines modff.
685         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
686         AC_CHECK_FUNCS.
687         * modules/modff (Files): Add m4/mathfunc.m4.
688
689 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
690
691         raise tests: Avoid a GCC warning.
692         * tests/test-raise.c (handler): Use _Noreturn.
693
694 2011-10-07  Bruno Haible  <bruno@clisp.org>
695
696         Tests for module 'ldexpf'.
697         * modules/ldexpf-tests: New file.
698         * tests/test-ldexpf.c: New file.
699
700         New module 'ldexpf'.
701         * lib/math.in.h (ldexpf): New declaration.
702         * lib/ldexpf.c: New file.
703         * m4/ldexpf.m4: New file.
704         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
705         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
706         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
707         * modules/ldexpf: New file.
708         * tests/test-math-c++.cc: Check the declaration of ldexpf.
709         * doc/posix-functions/ldexpf.texi: Mention the new module.
710
711 2011-10-06  Bruno Haible  <bruno@clisp.org>
712
713         frexpf: Work around problems on IRIX and mingw.
714         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
715         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
716         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
717         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
718         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
719         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
720         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
721
722 2011-10-06  Bruno Haible  <bruno@clisp.org>
723
724         fabsf: Drop assumption about library that defines fabsf.
725         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
726         AC_CHECK_FUNCS.
727         * modules/fabsf (Files): Add m4/mathfunc.m4.
728
729 2011-10-06  Bruno Haible  <bruno@clisp.org>
730
731         frexpf: Drop assumption about library that defines frexpf.
732         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
733         'int *', 'float *', 'long double *', 'float', 'long double'.
734         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
735         AC_CHECK_FUNCS.
736         * modules/frexpf (Files): Add m4/mathfunc.m4.
737
738         Tests for module 'frexpf'.
739         * modules/frexpf-tests: New file.
740         * tests/test-frexpf.c: New file.
741
742         New module 'frexpf'.
743         * lib/math.in.h (frexpf): New declaration.
744         * lib/frexpf.c: New file.
745         * m4/frexpf.m4: New file.
746         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
747         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
748         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
749         * modules/frexpf: New file.
750         * tests/test-math-c++.cc: Check the declaration of frexpf.
751         * doc/posix-functions/frexpf.texi: Mention the new module.
752
753 2011-10-06  Bruno Haible  <bruno@clisp.org>
754
755         math: Sort function declarations of math.in.h.
756         * lib/math.in.h (frexp, logb): Move declarations.
757
758 2011-10-05  Bruno Haible  <bruno@clisp.org>
759
760         Tests for module 'modff'.
761         * modules/modff-tests: New file.
762         * tests/test-modff.c: New file.
763
764         New module 'modff'.
765         * lib/math.in.h (modff): New declaration.
766         * lib/modff.c: New file.
767         * m4/modff.m4: New file.
768         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
769         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
770         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
771         * modules/modff: New file.
772         * tests/test-math-c++.cc: Check the declaration of modff.
773         * doc/posix-functions/modff.texi: Mention the new module.
774
775         modf tests: Make test sharper.
776         * tests/test-modf.c (main): Strengthen upper bound.
777
778         modf: Use a .m4 file.
779         * m4/modf.m4: New file.
780         * modules/modf (Files): Add it.
781         (configure.ac): Just invoke gl_FUNC_MODF.
782
783 2011-10-05  Bruno Haible  <bruno@clisp.org>
784
785         Tests for module 'fmodf'.
786         * modules/fmodf-tests: New file.
787         * tests/test-fmodf.c: New file.
788
789         New module 'fmodf'.
790         * lib/math.in.h (fmodf): New declaration.
791         * lib/fmodf.c: New file.
792         * m4/fmodf.m4: New file.
793         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
794         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
795         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
796         * modules/fmodf: New file.
797         * tests/test-math-c++.cc: Check the declaration of fmodf.
798         * doc/posix-functions/fmodf.texi: Mention the new module.
799
800         fmod: Use a .m4 file.
801         * m4/fmod.m4: New file.
802         * modules/fmod (Files): Add it.
803         (configure.ac): Just invoke gl_FUNC_FMOD.
804
805 2011-10-05  Bruno Haible  <bruno@clisp.org>
806
807         Tests for module 'fabsf'.
808         * modules/fabsf-tests: New file.
809         * tests/test-fabsf.c: New file.
810
811         New module 'fabsf'.
812         * lib/math.in.h (fabsf): New declaration.
813         * lib/fabsf.c: New file.
814         * m4/fabsf.m4: New file.
815         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
816         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
817         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
818         * modules/fabsf: New file.
819         * tests/test-math-c++.cc: Check the declaration of fabsf.
820         * doc/posix-functions/fabsf.texi: Mention the new module.
821
822         fabs: Use a .m4 file.
823         * m4/fabs.m4: New file.
824         * modules/fabs (Files): Add it.
825         (configure.ac): Just invoke gl_FUNC_FABS.
826
827 2011-10-05  Jim Meyering  <meyering@redhat.com>
828
829         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
830         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
831         ls -lL regression introduced in coreutils-8.12, it does so at the
832         cost of an additional stat call in the common case.  Besides, now
833         that the kernel change that prompted commit 95f7c57f has been reverted
834         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
835         we have no use for commit 95f7c57f, "file-has-acl: use
836         acl_extended_file_nofollow if available".
837
838 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
839
840         file-has-acl: revert unintended change in behavior of ls -L
841         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
842         derived from...
843         (file_has_acl): ...code here.  Call it.
844         This problem was introduced with 2011-07-22 commit 95f7c57f,
845         "file-has-acl: use acl_extended_file_nofollow if available".
846         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
847
848 2011-10-03  Bruno Haible  <bruno@clisp.org>
849
850         poll: Avoid link errors on MSVC.
851         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
852         * modules/poll (Depends-on): Add sockets.
853         (Link): New section.
854         * NEWS: Mention the change.
855         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
856         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
857         $(LIB_POLL) instead of $(LIBSOCKET).
858
859 2011-10-03  Bruno Haible  <bruno@clisp.org>
860
861         sys_select tests: Fix link error on MSVC 9.
862         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
863         with $(LIB_SELECT) instead of $(LIBSOCKET).
864
865 2011-10-03  Bruno Haible  <bruno@clisp.org>
866
867         sys_select: Fix compilation error on mingw.
868         * lib/sys_select.in.h: On native Windows, include <io.h>.
869
870 2011-10-03  Bruno Haible  <bruno@clisp.org>
871
872         wmemset: Support for MSVC.
873         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
874         whether wmemset() exists.
875
876 2011-10-03  Bruno Haible  <bruno@clisp.org>
877
878         wmemmove: Support for MSVC.
879         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
880         whether wmemmove() exists.
881
882 2011-10-03  Bruno Haible  <bruno@clisp.org>
883
884         wmemcpy: Support for MSVC.
885         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
886         whether wmemcpy() exists.
887
888 2011-10-03  Bruno Haible  <bruno@clisp.org>
889
890         wmemcmp: Support for MSVC.
891         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
892         whether wmemcmp() exists.
893
894 2011-10-03  Bruno Haible  <bruno@clisp.org>
895
896         wmemchr: Support for MSVC.
897         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
898         whether wmemchr() exists.
899
900 2011-10-03  Bruno Haible  <bruno@clisp.org>
901
902         glthread/*, strsignal: Support for MSVC.
903         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
904         including <winsock.h> on MSVC 9.
905         * lib/glthread/lock.h: Likewise.
906         * lib/glthread/thread.h: Likewise.
907         * lib/glthread/tls.h: Likewise.
908         * lib/glthread/yield.h: Likewise.
909         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
910         if HAVE_UNISTD_H is false.
911         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
912
913 2011-10-03  Bruno Haible  <bruno@clisp.org>
914
915         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
916         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
917         Set to 100000.
918
919 2011-10-03  Bruno Haible  <bruno@clisp.org>
920
921         acl: Fix specification.
922         * lib/file-has-acl.c (file_has_acl): Fix specification.
923
924 2011-10-03  Bruno Haible  <bruno@clisp.org>
925
926         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
927         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
928         (compute_curr_prefix, shared_library_fullname,
929         find_shared_library_fullname, get_shared_library_fullname, relocate):
930         Use it together with PIC && INSTALLDIR.
931         Reported by <jojelino@gmail.com>
932         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
933
934 2011-10-01  Jim Meyering  <meyering@redhat.com>
935
936         maint.mk: adjust a release-related rule not to require use of gzip
937         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
938         Instead, check each file in $(DIST_ARCHIVES).  This is better for
939         projects that build only .tar.xz files.  Also fix an erroneous test.
940
941         test-linkat: don't leave behind a temporary file
942         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
943         Otherwise, coreutils' "make distcheck" would fail with this:
944           Only in /c/cu/tests/torture/coreutils/test/\
945             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
946           make[2]: *** [my-distcheck] Error 1
947
948         float, math: add omitted file
949         * lib/itold.c: Add file, required for yesterday's float change.
950
951 2011-10-01  Bruno Haible  <bruno@clisp.org>
952
953         isinf: Fix for OpenBSD/x86.
954         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
955         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
956         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
957
958 2011-10-01  Bruno Haible  <bruno@clisp.org>
959
960         isfinite: Fix syntax error in configure test.
961         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
962
963         isfinite: Fix typo.
964         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
965         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
966
967 2011-10-01  Bruno Haible  <bruno@clisp.org>
968
969         nonblocking tests: Fix test failure on Linux/IA-64.
970         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
971         Set to 270000.
972
973 2011-10-01  Bruno Haible  <bruno@clisp.org>
974
975         mkfifoat tests: Fix a test failure on mingw.
976         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
977         with error ENOSYS.
978
979 2011-09-30  Bruno Haible  <bruno@clisp.org>
980
981         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
982         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
983         'long double'. Set REPLACE_ITOLD.
984         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
985         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
986         * lib/itold.c: New file.
987         * modules/float (Files): Add lib/itold.c.
988         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
989         (Makefile.am): Substitute REPLACE_ITOLD.
990         * modules/math (Depends-on): Add float.
991         (Makefile.am): Substitute REPLACE_ITOLD.
992         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
993         * doc/posix-headers/math.texi: Likewise.
994         * doc/posix-functions/logl.texi: Likewise.
995
996 2011-09-30  Bruno Haible  <bruno@clisp.org>
997
998         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
999         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
1000         Set to 140000.
1001
1002 2011-09-30  Bruno Haible  <bruno@clisp.org>
1003
1004         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
1005         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
1006         invocation, say "right after AC_PROG_CC_STDC", not "right after
1007         AC_PROG_CC".
1008         Reported by Gary V. Vaughan <gary@gnu.org>.
1009
1010 2011-09-30  Bruno Haible  <bruno@clisp.org>
1011
1012         Centralize C99 requirement.
1013         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
1014         * modules/stdarg (configure.ac-early): Invoke it instead of
1015         AC_PROG_CC_STDC.
1016         Reported by Gary V. Vaughan and Paul Eggert.
1017
1018 2011-09-29  Bruno Haible  <bruno@clisp.org>
1019
1020         float: Fix LDBL_MAX value on Linux/PowerPC.
1021         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
1022         on Linux/PowerPC.
1023         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
1024         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
1025         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
1026         platform.
1027         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
1028
1029 2011-09-29  Bruno Haible  <bruno@clisp.org>
1030
1031         doc: Improve doc about gl_EARLY.
1032         * doc/gnulib-tool.texi (Initial import): Mention where to place an
1033         AC_PROG_CC_STDC invocation.
1034         Reported by Gary V. Vaughan <gary@gnu.org>.
1035
1036 2011-09-28  Bruno Haible  <bruno@clisp.org>
1037
1038         fgetc, fputc, fread, fwrite tests: Fix link error.
1039         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
1040         on non-MSVC platforms.
1041         * tests/test-fputc.c (main): Likewise.
1042         * tests/test-fread.c (main): Likewise.
1043         * tests/test-fwrite.c (main): Likewise.
1044         Reported by Jim Meyering.
1045
1046 2011-09-27  Bruno Haible  <bruno@clisp.org>
1047
1048         fputc, fwrite tests: Avoid test failure on MSVC.
1049         * tests/test-fgetc.c: Include msvc-inval.h.
1050         (main): Invoke gl_msvc_inval_ensure_handler.
1051         * tests/test-fputc.c: Include msvc-inval.h.
1052         (main): Invoke gl_msvc_inval_ensure_handler.
1053         * tests/test-fread.c: Include msvc-inval.h.
1054         (main): Invoke gl_msvc_inval_ensure_handler.
1055         * tests/test-fwrite.c: Include msvc-inval.h.
1056         (main): Invoke gl_msvc_inval_ensure_handler.
1057         * modules/fgetc-tests (Depends-on): Add msvc-inval.
1058         * modules/fputc-tests (Depends-on): Likewise.
1059         * modules/fread-tests (Depends-on): Likewise.
1060         * modules/fwrite-tests (Depends-on): Likewise.
1061
1062 2011-09-27  Bruno Haible  <bruno@clisp.org>
1063
1064         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
1065         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
1066         (raise): Remove older, duplicated declaration.
1067         (_gl_raise_SIGPIPE): New declaration.
1068         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
1069         (rpl_raise): Remove function.
1070         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
1071         a gnulib-defined SIGPIPE here.
1072         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
1073         'sigprocmask' has detected missing signal-blocking and the module
1074         'sigpipe' is enabled.
1075         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1076
1077 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
1078
1079         base64-tests: avoid memory leak
1080         * tests/test-base64.c (main): Plug memory leak.
1081
1082         base32: new module
1083         * modules/base32: New module.
1084         * lib/base32.c: New file.
1085         * lib/base32.h: Likewise.
1086         * m4/base32.m4: Likewise.
1087         * modules/base32-tests: New test.
1088         * tests/test-base32.c: Likewise.
1089         * MODULES.html.sh (Misc): Mention it.
1090
1091 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1092
1093         gnulib: use more-standard license notice wording
1094         * gnulib-tool (func_emit_copyright_notice): When emitting a
1095         license notice into a file, use the standard wording as suggested
1096         by the current information for GNU maintainers, except say "file"
1097         rather than "program".  The new wording gives a license version
1098         number, which addresses an issue raised by Glenn Morris in
1099         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
1100         * m4/onceonly.m4: Use that same wording here, too.
1101
1102         dup2: minor simplification
1103         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
1104         as lib/dup2.c no longer uses 'inline'.
1105
1106 2011-09-25  Bruno Haible  <bruno@clisp.org>
1107
1108         strings: Fix compilation error on MSVC.
1109         * lib/strings.in.h: Include <stddef.h> for size_t.
1110
1111 2011-09-25  Bruno Haible  <bruno@clisp.org>
1112
1113         fflush et al.: Document limitation on MSVC.
1114         * doc/posix-functions/fflush.texi: Document possible crash in handling
1115         mode other than DEFAULT_HANDLING.
1116         * doc/posix-functions/fgetc.texi: Likewise.
1117         * doc/posix-functions/fputc.texi: Likewise.
1118         * doc/posix-functions/fread.texi: Likewise.
1119         * doc/posix-functions/fwrite.texi: Likewise.
1120
1121 2011-09-25  Bruno Haible  <bruno@clisp.org>
1122
1123         msvc-inval: Allow three invalid parameter handling modes.
1124         * lib/msvc-inval.h: Don't include <stdlib.h> here.
1125         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
1126         macros.
1127         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
1128         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
1129         SANE_LIBRARY_HANDLING as a no-op.
1130         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
1131         <stdlib.h>.
1132         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
1133
1134 2011-09-25  Bruno Haible  <bruno@clisp.org>
1135
1136         msvc-inval: Make handler multithread-safe.
1137         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
1138         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
1139         declarations.
1140         (gl_msvc_inval_current): New declaration.
1141         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
1142         Operate on the structure returned by gl_msvc_inval_current().
1143         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
1144         Remove varaiables.
1145         (tls_index, tls_initialized): New variables.
1146         (not_per_thread): New variable.
1147         (gl_msvc_inval_current): New function.
1148         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
1149         returned by gl_msvc_inval_current().
1150
1151 2011-09-25  Bruno Haible  <bruno@clisp.org>
1152
1153         msvc-inval: Install handler globally.
1154         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
1155         !_MSC_VER.
1156         (gl_msvc_invalid_parameter_handler): Remove declaration.
1157         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
1158         declarations.
1159         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
1160         Install the handler globally, don't uninstall it.
1161         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
1162         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
1163         currently valid, call RaiseException instead.
1164         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
1165         for !_MSC_VER.
1166
1167 2011-09-25  Bruno Haible  <bruno@clisp.org>
1168
1169         strerror_r-posix: Fix for MSVC 9.
1170         * lib/strerror_r.c (local_snprintf): New function.
1171         (snprintf): Define to local_snprintf, not to _snprintf.
1172
1173 2011-09-25  Bruno Haible  <bruno@clisp.org>
1174
1175         ftruncate: Support for MSVC 9.
1176         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
1177         (chsize_nothrow): New function.
1178         (chsize): Redefine as a macro.
1179         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
1180         * modules/ftruncate (Depends-on): Add msvc-inval.
1181
1182 2011-09-25  Bruno Haible  <bruno@clisp.org>
1183
1184         New module 'fstat'.
1185         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
1186         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
1187         * lib/fchdir.c (rpl_fstat): Remove function.
1188         * m4/fstat.m4: New file.
1189         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
1190         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
1191         declared.
1192         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
1193         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
1194         * modules/fstat: New file.
1195         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
1196         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
1197         is set.
1198         * doc/posix-functions/fstat.texi: Mention the new module and the
1199         problem on MSVC.
1200         * NEWS: Mention the change.
1201         * modules/acl (Depends-on): Add fstat.
1202         * modules/chdir-safer (Depends-on): Likewise.
1203         * modules/chown (Depends-on): Likewise.
1204         * modules/copy-file (Depends-on): Likewise.
1205         * modules/fchdir (Depends-on): Likewise.
1206         * modules/fdopendir (Depends-on): Likewise.
1207         * modules/fopen (Depends-on): Likewise.
1208         * modules/fts (Depends-on): Likewise.
1209         * modules/getcwd (Depends-on): Likewise.
1210         * modules/isapipe (Depends-on): Likewise.
1211         * modules/linkat (Depends-on): Likewise.
1212         * modules/lseek (Depends-on): Likewise.
1213         * modules/mkdir-p (Depends-on): Likewise.
1214         * modules/open (Depends-on): Likewise.
1215         * modules/openat (Depends-on): Likewise.
1216         * modules/read-file (Depends-on): Likewise.
1217         * modules/renameat (Depends-on): Likewise.
1218         * modules/utimens (Depends-on): Likewise.
1219
1220 2011-09-25  Bruno Haible  <bruno@clisp.org>
1221
1222         linkat: Fix compilation on MSVC 9.
1223         * lib/linkat.c: Don't include <stdint.h>.
1224
1225 2011-09-25  Bruno Haible  <bruno@clisp.org>
1226
1227         fclose: Support for MSVC 9.
1228         * lib/fclose.c: Include msvc-inval.h.
1229         (fclose_nothrow): New function.
1230         (rpl_fclose): Use it.
1231         * modules/fclose (Depends-on): Add msvc-inval.
1232         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
1233
1234 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
1235
1236         dup2: minor simplifications
1237         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
1238         that it's a performance win.
1239         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
1240         ! defined __CYGWIN__)" to "ifdef F_GETFL".
1241
1242 2011-09-24  Jim Meyering  <meyering@redhat.com>
1243
1244         test-futimens: avoid a warning from gcc -Wshadow
1245         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
1246         to avoid a shadowing warning.
1247
1248 2011-09-24  Bruno Haible  <bruno@clisp.org>
1249
1250         fdopen: Support for MSVC 9.
1251         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
1252         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
1253         * lib/fdopen.c: Include msvc-inval.h.
1254         (fdopen_nothrow): New function.
1255         (rpl_fdopen): Use it.
1256         * modules/fdopen (Depends-on): Add msvc-inval.
1257         * modules/fclose-tests (Depends-on): Add fdopen.
1258         * modules/fflush-tests (Depends-on): Likewise.
1259         * modules/fgetc-tests (Depends-on): Likewise.
1260         * modules/fputc-tests (Depends-on): Likewise.
1261         * modules/fread-tests (Depends-on): Likewise.
1262         * modules/freopen-tests (Depends-on): Likewise.
1263         * modules/fseeko-tests (Depends-on): Likewise.
1264         * modules/ftello-tests (Depends-on): Likewise.
1265         * modules/fwrite-tests  (Depends-on): Likewise.
1266         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
1267
1268 2011-09-24  Bruno Haible  <bruno@clisp.org>
1269
1270         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
1271         * modules/fgetc-tests (Depends-on): Add unistd.
1272         * modules/fputc-tests (Depends-on): Likewise.
1273         * modules/fread-tests (Depends-on): Likewise.
1274         * modules/fwrite-tests (Depends-on): Likewise.
1275
1276 2011-09-24  Bruno Haible  <bruno@clisp.org>
1277
1278         dup: Simplify autoconf test.
1279         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
1280         on gl_MSVC_INVAL's result.
1281
1282 2011-09-24  Bruno Haible  <bruno@clisp.org>
1283
1284         Tests for function fwrite().
1285         * modules/fwrite-tests: New file.
1286         * tests/test-fwrite.c: New file.
1287         * modules/stdio-tests (Depends-on): Add fwrite-tests.
1288
1289         Tests for function fread().
1290         * modules/fread-tests: New file.
1291         * tests/test-fread.c: New file.
1292         * modules/stdio-tests (Depends-on): Add fread-tests.
1293
1294         Activate fputc tests.
1295         * modules/stdio-tests (Depends-on): Add fputc-tests.
1296
1297         Enhance fgetc, fputc tests.
1298         * tests/test-fgetc.c (main): Also test the stream's error indicator.
1299         * tests/test-fputc.c (main): Likewise.
1300
1301 2011-09-24  Bruno Haible  <bruno@clisp.org>
1302
1303         write: Support for MSVC 9.
1304         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
1305         is not 1.
1306         * lib/write.c (write_nothrow): New function.
1307         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
1308         not 1. Use write_nothrow.
1309         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
1310         invalid parameter handler.
1311         (gl_PREREQ_WRITE): New macro.
1312         * modules/write (Depends-on): Add msvc-inval.
1313         (configure.ac): Invoke gl_PREREQ_WRITE.
1314         * doc/posix-functions/write.texi: Mention the problem on MSVC.
1315
1316 2011-09-24  Bruno Haible  <bruno@clisp.org>
1317
1318         read: Fix last commit.
1319         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
1320
1321 2011-09-24  Bruno Haible  <bruno@clisp.org>
1322
1323         dup2: Fix last commit.
1324         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
1325         (rpl_dup2): Disable fcntl workaround on native Windows.
1326
1327         sigprocmask: Make code safer.
1328         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
1329         section that changes macro definitions for this compilation unit.
1330
1331 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
1332
1333         dup2: clarify by coalescing Windows-specific material
1334         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
1335         "msvc-nothrow.h"' to the Windows-specific section, so that the
1336         Emacs source need not contain these include files.
1337         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
1338         Windows-specific fixes into this function rather than just the
1339         nothrow fix, as this shortens and clarifies the code.  Always
1340         define as a function, as that's a bit cleaner than having it be
1341         sometimes a function and sometimes a macro.
1342         (rpl_dup2): Move the Windows-specific stuff out of here and into
1343         ms_windows_dup2.  Don't protect the Haiku-related fix with
1344         "#if !defined __linux__", as the same code also works around
1345         a Linux kernel bug, and it doesn't add any system calls on any
1346         platform.  Add comment about FreeBSD 6.1.
1347
1348         sigprocmask: move #include directive
1349         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
1350         Windows-specific section, so that the Emacs source need not
1351         contain msvc-inval.h.
1352
1353 2011-09-23  Bruno Haible  <bruno@clisp.org>
1354
1355         read: Support for MSVC 9.
1356         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
1357         is not 1.
1358         * lib/read.c (read_nothrow): New function.
1359         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
1360         read_nothrow.
1361         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
1362         invalid parameter handler.
1363         (gl_PREREQ_READ): New macro.
1364         * modules/read (Depends-on): Add msvc-inval.
1365         (configure.ac): Invoke gl_PREREQ_READ.
1366         * doc/posix-functions/read.texi: Mention the problem on MSVC.
1367
1368 2011-09-23  Bruno Haible  <bruno@clisp.org>
1369
1370         close: Support for MSVC 9.
1371         * lib/close.c: Include <errno.h>, msvc-inval.h.
1372         (close_nothrow): New function.
1373         (rpl_close): Use it.
1374         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
1375         invalid parameter handler.
1376         * modules/close (Depends-on): Add msvc-inval.
1377         * modules/dup2-tests (Depends-on): Add close.
1378         * modules/dup3-tests (Depends-on): Likewise.
1379         * modules/fcntl-tests (Depends-on): Likewise.
1380         * modules/spawn-pipe-tests (Depends-on): Likewise.
1381         * modules/unistd-safer-tests (Depends-on): Likewise.
1382         * doc/posix-functions/close.texi: Mention the problem on MSVC.
1383
1384 2011-09-23  Bruno Haible  <bruno@clisp.org>
1385
1386         New module 'dup'.
1387         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
1388         Allow replacement.
1389         * lib/dup.c: New file.
1390         * lib/fchdir.c (rpl_dup): Remove function.
1391         * m4/dup.m4: New file.
1392         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
1393         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
1394         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
1395         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
1396         * modules/dup: New file.
1397         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
1398         'dup' module is in use.
1399         * modules/fdopendir (Depends-on): Add dup.
1400         * modules/fdutimensat-tests (Depends-on): Likewise.
1401         * modules/fts (Depends-on): Likewise.
1402         * modules/futimens-tests (Depends-on): Likewise.
1403         * modules/posix_spawnp-tests (Depends-on): Likewise.
1404         * modules/unistd-safer-tests (Depends-on): Likewise.
1405         * modules/utimens-tests (Depends-on): Likewise.
1406         * doc/posix-functions/dup.texi: Mention the new module and the problem
1407         on MSVC.
1408
1409 2011-09-23  Bruno Haible  <bruno@clisp.org>
1410
1411         getdtablesize: Support for MSVC 9.
1412         * lib/getdtablesize.c: Include msvc-inval.h.
1413         (_setmaxstdio_nothrow): New function.
1414         (_setmaxstdio): Redefine it.
1415         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
1416         * modules/getdtablesize (Depends-on): Add msvc-inval.
1417         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
1418
1419 2011-09-23  Bruno Haible  <bruno@clisp.org>
1420
1421         signal-h: Rename from signal.
1422         * modules/signal-h: Renamed from modules/signal.
1423         * modules/pthread_sigmask (Depends-on): Update.
1424         * modules/raise (Depends-on): Likewise.
1425         * modules/sigaction (Depends-on): Likewise.
1426         * modules/sigpipe (Depends-on): Likewise.
1427         * modules/sigprocmask (Depends-on): Likewise.
1428         * modules/sys_select (Depends-on): Likewise.
1429         * modules/signal-h-tests: Renamed from modules/signal-tests.
1430         (Files, Depends-on, Makefile.am): Update.
1431         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
1432         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
1433         (Files, Makefile.am): Update.
1434         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
1435         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
1436         * modules/signal: New placeholder file.
1437         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
1438         * doc/posix-headers/signal.texi: Update.
1439         * NEWS: Mention the change.
1440
1441 2011-09-23  Bruno Haible  <bruno@clisp.org>
1442
1443         sigprocmask: Avoid crashes through signal() on MSVC 9.
1444         * lib/sigprocmask.c: Include msvc-inval.h.
1445         (signal_nothrow): New function.
1446         (signal): Redefine it.
1447         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
1448         * modules/sigprocmask (Depends-on): Add msvc-inval.
1449         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
1450
1451 2011-09-23  Bruno Haible  <bruno@clisp.org>
1452
1453         Tests for module 'raise'.
1454         * modules/raise-tests: New file.
1455         * tests/test-raise.c: New file.
1456
1457         raise: Support for MSVC.
1458         * lib/signal.in.h (raise): New declaration.
1459         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
1460         for native Windows platforms.
1461         * m4/raise.m4: New file.
1462         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
1463         HAVE_RAISE, REPLACE_RAISE.
1464         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
1465         REPLACE_RAISE.
1466         * modules/raise (Status, Notice): Remove fields.
1467         (Files): Add m4/raise.m4.
1468         (Depends-on): Add signal, msvc-inval.
1469         (configure.ac): Use the common idioms.
1470         (Maintainer): Add me.
1471         * tests/test-signal-c++.cc: Check the signature of raise.
1472         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
1473
1474 2011-09-23  Bruno Haible  <bruno@clisp.org>
1475
1476         pipe2: Fix compilation on pre-C99 compilers.
1477         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
1478
1479 2011-09-23  Bruno Haible  <bruno@clisp.org>
1480
1481         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
1482         * lib/msvc-nothrow.h: New file.
1483         * lib/msvc-nothrow.c: New file.
1484         * m4/msvc-nothrow.m4: New file.
1485         * modules/msvc-nothrow: New file.
1486         * lib/dup2.c: Include msvc-nothrow.h.
1487         (rpl_dup2): No need to protect _get_osfhandle call here.
1488         * lib/accept4.c: Include msvc-nothrow.h.
1489         * lib/error.c: Likewise.
1490         * lib/fcntl.c: Likewise.
1491         * lib/lseek.c: Likewise.
1492         * lib/nonblocking.c: Likewise.
1493         * lib/poll.c: Likewise.
1494         * lib/read.c: Likewise.
1495         * lib/select.c: Likewise.
1496         * lib/sockets.h: Likewise.
1497         * lib/sockets.c: Likewise.
1498         * lib/stdio-read.c: Likewise.
1499         * lib/stdio-write.c: Likewise.
1500         * lib/write.c: Likewise.
1501         * lib/w32sock.h: Likewise.
1502         * lib/w32spawn.h: Likewise.
1503         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
1504         * lib/fsync.c: Likewise.
1505         * lib/isapipe.c: Likewise.
1506         * modules/dup2 (Depends-on): Add msvc-nothrow.
1507         * modules/accept4 (Depends-on): Likewise.
1508         * modules/error (Depends-on): Likewise.
1509         * modules/fcntl (Depends-on): Likewise.
1510         * modules/lseek (Depends-on): Likewise.
1511         * modules/nonblocking (Depends-on): Likewise.
1512         * modules/poll (Depends-on): Likewise.
1513         * modules/read (Depends-on): Likewise.
1514         * modules/select (Depends-on): Likewise.
1515         * modules/sockets (Depends-on): Likewise.
1516         * modules/sigpipe (Depends-on): Likewise.
1517         * modules/write (Depends-on): Likewise.
1518         * modules/accept (Depends-on): Likewise.
1519         * modules/bind (Depends-on): Likewise.
1520         * modules/connect (Depends-on): Likewise.
1521         * modules/gethostname (Depends-on): Likewise.
1522         * modules/getpeername (Depends-on): Likewise.
1523         * modules/getsockname (Depends-on): Likewise.
1524         * modules/getsockopt (Depends-on): Likewise.
1525         * modules/ioctl (Depends-on): Likewise.
1526         * modules/listen (Depends-on): Likewise.
1527         * modules/recv (Depends-on): Likewise.
1528         * modules/recvfrom (Depends-on): Likewise.
1529         * modules/send (Depends-on): Likewise.
1530         * modules/sendto (Depends-on): Likewise.
1531         * modules/setsockopt (Depends-on): Likewise.
1532         * modules/shutdown (Depends-on): Likewise.
1533         * modules/socket (Depends-on): Likewise.
1534         * modules/execute (Depends-on): Likewise.
1535         * modules/spawn-pipe (Depends-on): Likewise.
1536         * modules/flock (Depends-on): Likewise.
1537         * modules/fsync (Depends-on): Likewise.
1538         * modules/isapipe (Depends-on): Likewise.
1539         * tests/test-cloexec.c: Include msvc-nothrow.h.
1540         * tests/test-dup-safer.c: Likewise.
1541         * tests/test-dup2.c: Likewise.
1542         * tests/test-dup3.c: Likewise.
1543         * tests/test-fcntl.c: Likewise.
1544         * tests/test-pipe.c: Likewise.
1545         * tests/test-pipe2.c: Likewise.
1546         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
1547         * modules/unistd-safer-tests (Depends-on): Likewise.
1548         * modules/dup2-tests (Depends-on): Likewise.
1549         * modules/dup3-tests (Depends-on): Likewise.
1550         * modules/fcntl-tests (Depends-on): Likewise.
1551         * modules/pipe-posix-tests (Depends-on): Likewise.
1552         * modules/pipe2-tests (Depends-on): Likewise.
1553
1554 2011-09-23  Bruno Haible  <bruno@clisp.org>
1555
1556         dup2: Make code more maintainable.
1557         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
1558         (rpl_dup2): Use it.
1559         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
1560         * modules/dup2 (configure.ac): Invoke it.
1561         Reported by Paul Eggert.
1562
1563 2011-09-23  Bruno Haible  <bruno@clisp.org>
1564
1565         msvc-inval: Fix compilation error.
1566         * lib/msvc-inval.h: Include <excpt.h>.
1567
1568 2011-09-23  Bruno Haible  <bruno@clisp.org>
1569
1570         mkdir: Tweak for MSVC 9.
1571         * lib/sys_stat.in.h: Update comments.
1572         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
1573
1574         Tests for module 'chdir'.
1575         * modules/chdir-tests: New file.
1576         * tests/test-chdir.c: New file.
1577
1578         New module 'chdir'.
1579         * modules/chdir: New file.
1580         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
1581         (chdir): New declaration.
1582         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
1583         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
1584         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
1585         * tests/test-unistd-c++.cc: Check signature of chdir.
1586         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
1587         * modules/chdir-long (Depends-on): Add chdir.
1588         * modules/fchdir (Depends-on): Likewise.
1589         * modules/rename (Depends-on): Likewise.
1590         * modules/savewd (Depends-on): Likewise.
1591
1592         rmdir: Support for mingw, MSVC 9.
1593         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
1594         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
1595
1596         getcwd: Tweak for MSVC 9.
1597         * lib/unistd.in.h: Update comments.
1598         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
1599
1600 2011-09-22  Bruno Haible  <bruno@clisp.org>
1601
1602         strerror_r-posix: Avoid a link error on MSVC.
1603         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
1604         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
1605
1606 2011-09-22  Bruno Haible  <bruno@clisp.org>
1607
1608         select: Avoid link errors on MSVC.
1609         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
1610         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
1611         * modules/pselect (Link): Likewise.
1612         * NEWS: Mention the change.
1613         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
1614         test-select-stdin against $(LIB_SELECT).
1615         * modules/pselect-tests (Makefile.am): Link test-pselect against
1616         $(LIB_SELECT).
1617
1618 2011-09-22  Bruno Haible  <bruno@clisp.org>
1619
1620         select: Avoid compilation error on MSVC.
1621         * lib/select.c: Don't include <stdbool.h>.
1622
1623 2011-09-21  Bruno Haible  <bruno@clisp.org>
1624
1625         Consolidate all uses of PATH_MAX in *.m4 files.
1626         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
1627         macros.
1628         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
1629         and gl_PATHMAX_SNIPPET.
1630         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
1631         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
1632         * modules/chdir-long (Files): Add m4/pathmax.m4.
1633         * modules/getcwd (Files): Likewise.
1634
1635 2011-09-21  Bruno Haible  <bruno@clisp.org>
1636
1637         ftruncate: Un-deprecate, concentrate on Win32 support.
1638         * modules/ftruncate (Status, Notice): Remove sections.
1639         (Depends-on): Add largefile.
1640         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
1641         non-mingw platforms.
1642         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
1643         include <io.h>.
1644         * modules/perror-tests (Depends-on): Add ftruncate.
1645         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
1646         'ftruncate' module.
1647
1648 2011-09-21  Bruno Haible  <bruno@clisp.org>
1649
1650         Add dependencies to new dirent related modules.
1651         * modules/opendir (Depends-on): Add closedir.
1652         * modules/getcwd (Depends-on): Add opendir, closedir.
1653         * modules/dirent-safer-tests (Depends-on): Likewise.
1654         * modules/fdopendir-tests (Depends-on): Likewise.
1655         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
1656         * modules/renameat-tests (Depends-on): Likewise.
1657
1658 2011-09-21  Bruno Haible  <bruno@clisp.org>
1659
1660         opendir: Avoid compilation error on mingw.
1661         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
1662         * modules/opendir (Depends-on): Add unistd.
1663
1664 2011-09-21  Bruno Haible  <bruno@clisp.org>
1665
1666         ftruncate tests: Avoid a test failure on mingw.
1667         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
1668
1669 2011-09-21  Bruno Haible  <bruno@clisp.org>
1670
1671         select tests: Avoid test failures on OSF/1 5.1 and mingw.
1672         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
1673         native Windows.
1674
1675 2011-09-21  Bruno Haible  <bruno@clisp.org>
1676
1677         New module 'fdopen'.
1678         * lib/stdio.in.h (fdopen): New declaration.
1679         * lib/fdopen.c: New file.
1680         * m4/fdopen.m4: New file.
1681         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
1682         REPLACE_FDOPEN.
1683         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
1684         REPLACE_FDOPEN.
1685         * modules/fdopen: New file.
1686         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
1687         * tests/test-stdio-c++.cc: Check signature of fdopen.
1688         * doc/posix-functions/fdopen.texi: Mention the new module.
1689
1690 2011-09-21  Bruno Haible  <bruno@clisp.org>
1691
1692         unlockpt tests: Avoid test failure on NetBSD 5.1.
1693         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
1694         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
1695
1696 2011-09-21  Bruno Haible  <bruno@clisp.org>
1697
1698         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
1699         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
1700         * tests/test-getlogin_r.c (main): Likewise.
1701
1702 2011-09-20  Bruno Haible  <bruno@clisp.org>
1703
1704         time tests: Don't require pid_t.
1705         * doc/posix-headers/time.texi: Revert last change.
1706         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
1707         * tests/test-time.c: Comment out the check for pid_t.
1708
1709 2011-09-20  Bruno Haible  <bruno@clisp.org>
1710
1711         fsync tests: Avoid a test failure on mingw.
1712         * tests/test-fsync.c (main): Allow a failure with EIO.
1713
1714 2011-09-20  Bruno Haible  <bruno@clisp.org>
1715
1716         euidaccess: Update comments.
1717         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
1718
1719 2011-09-20  Bruno Haible  <bruno@clisp.org>
1720
1721         Ensure EBADF returns for socket functions on mingw.
1722         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
1723         descriptor is invalid.
1724         * lib/bind.c (rpl_bind): Likewise.
1725         * lib/connect.c (rpl_connect): Likewise.
1726         * lib/getpeername.c (rpl_getpeername): Likewise.
1727         * lib/getsockname.c (rpl_getsockname): Likewise.
1728         * lib/getsockopt.c (rpl_getsockopt): Likewise.
1729         * lib/listen.c (rpl_listen): Likewise.
1730         * lib/recv.c (rpl_recv): Likewise.
1731         * lib/recvfrom.c (rpl_recvfrom): Likewise.
1732         * lib/send.c (rpl_send): Likewise.
1733         * lib/sendto.c (rpl_sendto): Likewise.
1734         * lib/setsockopt.c (rpl_setsockopt): Likewise.
1735         * lib/shutdown.c (rpl_shutdown): Likewise.
1736
1737 2011-09-20  Bruno Haible  <bruno@clisp.org>
1738
1739         select tests: EBADF tests.
1740         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
1741         test_bad_fd): New functions.
1742         (test_function): Invoke also test_bad_fd.
1743
1744 2011-09-20  Bruno Haible  <bruno@clisp.org>
1745
1746         Tests for module 'posix_spawn_file_actions_addopen.
1747         * modules/posix_spawn_file_actions_addopen-tests: New file.
1748         * tests/test-posix_spawn_file_actions_addopen.c: New file.
1749
1750         Tests for module 'posix_spawn_file_actions_adddup2'.
1751         * modules/posix_spawn_file_actions_adddup2-tests: New file.
1752         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
1753
1754         Tests for module 'posix_spawn_file_actions_addclose'.
1755         * modules/posix_spawn_file_actions_addclose-tests: New file.
1756         * tests/test-posix_spawn_file_actions_addclose.c: New file.
1757
1758 2011-09-20  Bruno Haible  <bruno@clisp.org>
1759
1760         Tests for module 'unlockpt'.
1761         * modules/unlockpt-tests: New file.
1762         * tests/test-unlockpt.c: New file.
1763         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
1764
1765         Tests for module 'grantpt'.
1766         * modules/grantpt-tests: New file.
1767         * tests/test-grantpt.c: New file.
1768         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
1769
1770 2011-09-20  Bruno Haible  <bruno@clisp.org>
1771
1772         freopen tests: EBADF tests.
1773         * tests/test-freopen.c: Include errno.h, unistd.h.
1774         (main): Add tests for EBADF, commented out for the moment.
1775
1776         fclose tests: EBADF tests.
1777         * tests/test-fclose.c (main): Add tests for EBADF.
1778
1779         fflush tests: EBADF tests.
1780         * tests/test-fflush.c: Include errno.h, macros.h.
1781         (main): Add tests for EBADF.
1782
1783         ftello tests: EBADF tests.
1784         * tests/test-ftello4.sh: New file.
1785         * tests/test-ftello4.c: New file.
1786         * modules/ftello-tests (Files): Add them.
1787         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
1788
1789         fseeko tests: EBADF tests.
1790         * tests/test-fseeko4.sh: New file.
1791         * tests/test-fseeko4.c: New file.
1792         * modules/fseeko-tests (Files): Add them.
1793         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
1794
1795         Tests for function fputc().
1796         * modules/fputc-tests: New file.
1797         * tests/test-fputc.c: New file.
1798         * modules/stdio-tests (Depends-on): Add fputc-tests.
1799
1800         Tests for function fgetc().
1801         * modules/fgetc-tests: New file.
1802         * tests/test-fgetc.c: New file.
1803         * modules/stdio-tests (Depends-on): Add fgetc-tests.
1804
1805         Tests for function fdopen().
1806         * modules/fdopen-tests: New file.
1807         * tests/test-fdopen.c: New file.
1808         * modules/stdio-tests (Depends-on): Add fdopen-tests.
1809
1810         Tests for module 'vdprintf'.
1811         * modules/vdprintf-tests: New file.
1812         * tests/test-vdprintf.c: New file.
1813
1814         Tests for module 'dprintf'.
1815         * modules/dprintf-tests: New file.
1816         * tests/test-dprintf.c: New file.
1817
1818 2011-09-20  Bruno Haible  <bruno@clisp.org>
1819
1820         Tests for module 'ioctl'.
1821         * modules/ioctl-tests: New file.
1822         * tests/test-ioctl.c: New file.
1823
1824 2011-09-20  Bruno Haible  <bruno@clisp.org>
1825
1826         fcntl tests: EBADF tests.
1827         * tests/test-fcntl.c (main): Add more tests for EBADF.
1828
1829 2011-09-20  Bruno Haible  <bruno@clisp.org>
1830
1831         utimensat tests: EBADF tests.
1832         * tests/test-utimensat.c (main): Add tests for EBADF.
1833
1834         renameat tests: EBADF tests.
1835         * tests/test-renameat.c (main): Add tests for EBADF.
1836
1837         mkfifoat tests: EBADF tests.
1838         * tests/test-mkfifoat.c (main): Add tests for EBADF.
1839
1840         readlinkat tests: EBADF tests.
1841         * tests/test-readlinkat.c (main): Add tests for EBADF.
1842
1843         symlinkat tests: EBADF tests.
1844         * tests/test-symlinkat.c (main): Add tests for EBADF.
1845
1846         linkat tests: EBADF tests.
1847         * tests/test-linkat.c (main): Add tests for EBADF.
1848
1849         Tests for module 'faccessat'.
1850         * modules/faccessat-tests: New file.
1851         * tests/test-faccessat.c: New file.
1852
1853         fdopendir tests: EBADF tests.
1854         * tests/test-fdopendir.c (main): Add more tests for EBADF.
1855
1856         openat tests: EBADF tests.
1857         * tests/test-fchownat.c (main): Add tests for EBADF.
1858         * tests/test-fstatat.c (main): Likewise.
1859         * tests/test-mkdirat.c (main): Likewise.
1860         * tests/test-openat.c (main): Likewise.
1861         * tests/test-unlinkat.c (main): Likewise.
1862         * tests/test-fchmodat.c: New file.
1863         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
1864         (Makefile.am): Also run 'test-fchmodat'.
1865
1866 2011-09-20  Bruno Haible  <bruno@clisp.org>
1867
1868         utimens, futimens, fdutimensat tests: EBADF tests.
1869         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
1870
1871         Tests for function fstat().
1872         * modules/fstat-tests: New file.
1873         * tests/test-fstat.c: New file.
1874         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
1875
1876 2011-09-20  Bruno Haible  <bruno@clisp.org>
1877
1878         test-ttyname_r tests: EBADF tests.
1879         * tests/test-ttyname_r.c (main): Add tests for EBADF.
1880
1881         Tests for module 'isatty'.
1882         * modules/isatty-tests: New file.
1883         * tests/test-isatty.c: New file.
1884
1885         Tests for module 'write'.
1886         * modules/write-tests: New file.
1887         * tests/test-write.c: New file.
1888
1889         Tests for module 'read'.
1890         * modules/read-tests: New file.
1891         * tests/test-read.c: New file.
1892
1893         pwrite tests: EBADF tests.
1894         * tests/test-pwrite.c (main): Add tests for EBADF.
1895
1896         pread tests: EBADF tests.
1897         * tests/test-pread.c (main): Add tests for EBADF.
1898
1899         lseek tests: EBADF tests.
1900         * tests/test-lseek.c (main): Add more tests for EBADF.
1901
1902         Tests for module 'ftruncate'.
1903         * modules/ftruncate-tests: New file.
1904         * tests/test-ftruncate.sh: New file.
1905         * tests/test-ftruncate.c: New file.
1906
1907         fsync tests: EBADF tests.
1908         * tests/test-fsync.c (main): Add more tests for EBADF.
1909
1910         fdatasync tests: EBADF tests.
1911         * tests/test-fdatasync.c (main): Add more tests for EBADF.
1912
1913         Tests for module 'fchown'.
1914         * modules/fchown-tests: New file.
1915         * tests/test-fchown.c: New file.
1916
1917         Tests for module 'fchmod'.
1918         * modules/fchmod-tests: New file.
1919         * tests/test-fchmod.c: New file.
1920
1921         fchdir tests: EBADF tests.
1922         * tests/test-fchdir.c (main): Add more tests for EBADF.
1923
1924         dup2 tests: EBADF tests.
1925         * tests/test-dup2.c (main): Add more tests for EBADF.
1926
1927         Tests for module 'dup'.
1928         * modules/dup-tests: New file.
1929         * tests/test-dup.c: New file.
1930
1931         Tests for module 'close'.
1932         * modules/close-tests: New file.
1933         * tests/test-close.c: New file.
1934
1935 2011-09-20  Bruno Haible  <bruno@clisp.org>
1936
1937         Tests for module 'shutdown'.
1938         * modules/shutdown-tests: New file.
1939         * tests/test-shutdown.c: New file.
1940
1941         Tests for module 'setsockopt'.
1942         * modules/setsockopt-tests: New file.
1943         * tests/test-setsockopt.c: New file.
1944
1945         Tests for module 'sendto'.
1946         * modules/sendto-tests: New file.
1947         * tests/test-sendto.c: New file.
1948
1949         Tests for module 'send'.
1950         * modules/send-tests: New file.
1951         * tests/test-send.c: New file.
1952
1953         Tests for module 'recvfrom'.
1954         * modules/recvfrom-tests: New file.
1955         * tests/test-recvfrom.c: New file.
1956
1957         Tests for module 'recv'.
1958         * modules/recv-tests: New file.
1959         * tests/test-recv.c: New file.
1960
1961         Tests for module 'listen'.
1962         * modules/listen-tests: New file.
1963         * tests/test-listen.c: New file.
1964
1965         Tests for module 'getsockopt'.
1966         * modules/getsockopt-tests: New file.
1967         * tests/test-getsockopt.c: New file.
1968
1969         Tests for module 'getsockname'.
1970         * modules/getsockname-tests: New file.
1971         * tests/test-getsockname.c: New file.
1972
1973         Tests for module 'getpeername'.
1974         * modules/getpeername-tests: New file.
1975         * tests/test-getpeername.c: New file.
1976
1977         Tests for module 'connect'.
1978         * modules/connect-tests: New file.
1979         * tests/test-connect.c: New file.
1980
1981         Tests for module 'bind'.
1982         * modules/bind-tests: New file.
1983         * tests/test-bind.c: New file.
1984
1985         accept4 tests: Fix for native Windows.
1986         * tests/test-accept4.c: Include sockets.h.
1987         (main): Invoke gl_sockets_startup.
1988         * modules/accept4-tests (Depends-on): Add sockets.
1989
1990         accept tests: Fix for native Windows.
1991         * tests/test-accept.c: Include sockets.h.
1992         (main): Invoke gl_sockets_startup.
1993         * modules/accept-tests (Depends-on): Add sockets.
1994
1995 2011-09-19  Bruno Haible  <bruno@clisp.org>
1996
1997         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
1998         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
1999         do...while(0).
2000         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
2001         Suggested by Paul Eggert.
2002
2003 2011-09-19  Bruno Haible  <bruno@clisp.org>
2004
2005         sched: Ensure pid_t is defined.
2006         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
2007         not define pid_t.
2008         * lib/sched.in.h: Include <sys/types.h>.
2009         * doc/posix-headers/sched.texi: Mention the pid_t problem.
2010         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2011
2012 2011-09-19  Bruno Haible  <bruno@clisp.org>
2013
2014         msvc-inval: Ensure the entire expansion is a single statement.
2015         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
2016         of braces.
2017
2018 2011-09-19  Jim Meyering  <meyering@redhat.com>
2019
2020         tests: use printf, not echo in init.sh's warn_ function
2021         * tests/init.sh (warn_): Use printf, not echo.  The latter would
2022         misbehave when given strings containing a backslash or starting
2023         with e.g., -n.  James Youngman suggested setting IFS.
2024
2025 2011-09-19  Eric Blake  <eblake@redhat.com>
2026
2027         futimens: enhance test
2028         * tests/test-futimens.h (test_futimens): Also check for EBADF on
2029         closed non-negative fd.
2030
2031         date: accept 'hence' as opposite of 'ago'
2032         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
2033         * tests/test-parse-datetime.c (main): Enhance test.
2034         Suggested by Jesse Wilson.
2035
2036 2011-09-19  Jim Meyering  <meyering@redhat.com>
2037
2038         getcwd: don't fail in a deep directory on a system without openat
2039         Before this change, getcwd would fail when called from a directory
2040         of depth PATH_MAX / 3 or greater.  That was due to the fact that
2041         the non-openat implementation used "..", "../..", "../../..", etc.
2042         to access ancestor directories.  With too many, that string would
2043         be longer than PATH_MAX.
2044         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
2045         using gnulib's openat replacement.
2046         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
2047         we're using the replacement function.
2048
2049 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
2050
2051         maint.mk: avoid warnings from perl about missing files
2052         * top/maint.mk (def_sym_regex): Ignore files listed in
2053         $(gl_other_headers_) that do not exist, say because a project
2054         does not use a corresponding module.
2055
2056 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2057
2058         stat: use pathmax.h only if needed
2059         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
2060         This is better for Emacs, which does not have a mingw port and
2061         therefore can avoid the pathmax module.
2062
2063         utimens: remove dependency on dup2
2064         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
2065         to work around the Linux kernel bug.
2066         * modules/utimens (Depends-on): Remove dup2.
2067
2068 2011-09-18  Bruno Haible  <bruno@clisp.org>
2069
2070         inet_ntop, inet_pton: Look for it also in libresolv.
2071         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
2072         libnsl, search for it in libresolv.
2073         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2074         Needed on Solaris 7.
2075
2076 2011-09-18  Bruno Haible  <bruno@clisp.org>
2077
2078         accept, accept4 tests: Avoid link error on Solaris.
2079         * modules/accept-tests (Makefile.am): Link test-accept against
2080         $(LIBSOCKET).
2081         * modules/accept4-tests (Makefile.am): Link test-accept4 against
2082         $(LIBSOCKET).
2083
2084         accept4: Avoid link error on Solaris.
2085         * modules/accept4 (Link): New section.
2086
2087         socket functions: Avoid link errors on Solaris.
2088         * modules/accept (Depends-on): Add socketlib.
2089         (Link): New section.
2090         * modules/bind (Depends-on): Add socketlib.
2091         (Link): New section.
2092         * modules/connect (Depends-on): Add socketlib.
2093         (Link): New section.
2094         * modules/getpeername (Depends-on): Add socketlib.
2095         (Link): New section.
2096         * modules/getsockname (Depends-on): Add socketlib.
2097         (Link): New section.
2098         * modules/getsockopt (Depends-on): Add socketlib.
2099         (Link): New section.
2100         * modules/listen (Depends-on): Add socketlib.
2101         (Link): New section.
2102         * modules/recv (Depends-on): Add socketlib.
2103         (Link): New section.
2104         * modules/recvfrom (Depends-on): Add socketlib.
2105         (Link): New section.
2106         * modules/send (Depends-on): Add socketlib.
2107         (Link): New section.
2108         * modules/sendto (Depends-on): Add socketlib.
2109         (Link): New section.
2110         * modules/setsockopt (Depends-on): Add socketlib.
2111         (Link): New section.
2112         * modules/shutdown (Depends-on): Add socketlib.
2113         (Link): New section.
2114         * modules/socket (Depends-on): Add socketlib.
2115         (Link): New section.
2116
2117 2011-09-18  Bruno Haible  <bruno@clisp.org>
2118
2119         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
2120         * tests/test-ptsname.c (main): Terminate the test if it takes longer
2121         than 5 seconds.
2122         * modules/ptsname-tests (configure.ac): Test for alarm.
2123
2124 2011-09-18  Bruno Haible  <bruno@clisp.org>
2125
2126         posix_spawn_file_actions_add*: Fix module dependencies.
2127         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
2128         posix_spawn_file_actions_init.
2129         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
2130         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
2131
2132 2011-09-18  Bruno Haible  <bruno@clisp.org>
2133
2134         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
2135         * tests/test-rename.h (test_rename): Allow error code EEXIST.
2136         * tests/test-renameat.c (main): Likewise.
2137
2138 2011-09-18  Bruno Haible  <bruno@clisp.org>
2139
2140         Tests for module 'accept4'.
2141         * modules/accept4-tests: New file.
2142         * tests/test-accept4.c: New file.
2143
2144 2011-09-18  Bruno Haible  <bruno@clisp.org>
2145
2146         Tests for module 'accept'.
2147         * modules/accept-tests: New file.
2148         * tests/test-accept.c: New file.
2149
2150 2011-09-18  Bruno Haible  <bruno@clisp.org>
2151
2152         dup2: Support for MSVC.
2153         * lib/dup2.c: Include msvc-inval.h.
2154         (rpl_dup2): Handle invalid parameter notifications during dup2 and
2155         _get_osfhandle calls.
2156         * modules/dup2 (Depends-on): Add msvc-inval.
2157         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
2158
2159         New module 'msvc-inval'.
2160         * lib/msvc-inval.h: New file.
2161         * lib/msvc-inval.c: New file.
2162         * m4/msvc-inval.m4: New file.
2163         * modules/msvc-inval: New file.
2164
2165 2011-09-17  Bruno Haible  <bruno@clisp.org>
2166
2167         Tests for module 'pclose'.
2168         * modules/pclose-tests: New file.
2169
2170         New module 'pclose'.
2171         * lib/stdio.in.h (pclose): New declaration.
2172         * lib/pclose.c: New file.
2173         * m4/pclose.m4: New file.
2174         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
2175         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
2176         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
2177         * modules/pclose: New file.
2178         * modules/popen-tests (Depends-on): Add pclose.
2179         * modules/popen-safer-tests (Depends-on): Likewise.
2180         * doc/posix-functions/pclose.texi: Mention the new module.
2181
2182 2011-09-17  Bruno Haible  <bruno@clisp.org>
2183
2184         popen: Support for MSVC.
2185         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
2186         * lib/popen.c (popen): Provide alternate definition for native Windows.
2187         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
2188         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
2189         * modules/popen (Depends-on, configure.ac): Update condition.
2190         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
2191         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
2192         fixed.
2193
2194 2011-09-17  Bruno Haible  <bruno@clisp.org>
2195
2196         isnanl, isnand, isnanf: Work around MSVC bug.
2197         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
2198
2199 2011-09-17  Bruno Haible  <bruno@clisp.org>
2200
2201         sys_socket tests: Fix recent mistake.
2202         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
2203
2204 2011-09-17  Bruno Haible  <bruno@clisp.org>
2205
2206         putenv: Support for MSVC.
2207         * modules/putenv (Depends-on): Add environ.
2208         * lib/putenv.c (environ): Disable declaration.
2209         * lib/unistd.in.h: Update comment.
2210
2211 2011-09-17  Bruno Haible  <bruno@clisp.org>
2212
2213         math: Avoid macro redefinition warnings on MSVC.
2214         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
2215         Undefine before redefining.
2216
2217 2011-09-17  Bruno Haible  <bruno@clisp.org>
2218
2219         doc: Mention functions which are declared as macros.
2220         * doc/posix-functions/*[fl].texi: Mention that some functions are
2221         defined as macros with arguments only.
2222
2223 2011-09-17  Bruno Haible  <bruno@clisp.org>
2224
2225         Add dependencies to new dirent related modules.
2226         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
2227         * modules/fts (Depends-on): Likewise.
2228         * modules/glob (Depends-on): Likewise.
2229         * modules/savedir (Depends-on): Likewise.
2230         * modules/scandir (Depends-on): Likewise.
2231         * modules/dirent-safer (Depends-on): Add opendir, closedir.
2232         * modules/fdopendir (Depends-on): Add opendir.
2233
2234 2011-09-17  Bruno Haible  <bruno@clisp.org>
2235
2236         inet_pton: Support for MSVC on Windows Vista or newer.
2237         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
2238         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
2239         HAVE_DECL_INET_PTON is defined.
2240         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
2241         On platforms with <winsock2.h>, test whether inet_pton is declared in
2242         <ws2tcpip.h>. If so, arrange to replace it.
2243         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
2244         REPLACE_INET_PTON.
2245         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
2246         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
2247         (Depends-on, configure.ac): Update condition.
2248         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
2249
2250 2011-09-17  Bruno Haible  <bruno@clisp.org>
2251
2252         inet_ntop: Support for MSVC on Windows Vista or newer.
2253         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
2254         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
2255         HAVE_DECL_INET_NTOP is defined.
2256         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
2257         On platforms with <winsock2.h>, test whether inet_ntop is declared in
2258         <ws2tcpip.h>. If so, arrange to replace it.
2259         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
2260         REPLACE_INET_NTOP.
2261         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
2262         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
2263         (Depends-on, configure.ac): Update condition.
2264         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
2265
2266 2011-09-16  Eric Blake  <eblake@redhat.com>
2267
2268         test-fsync: yet another enhancement
2269         * tests/test-fsync.c (main): Also test behavior on read-only text
2270         file.
2271
2272 2011-09-16  Bruno Haible  <bruno@clisp.org>
2273
2274         Enhance fsync, fdatasync tests.
2275         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
2276         * tests/test-fdatasync.c (main): Likewise.
2277
2278 2011-09-16  Bruno Haible  <bruno@clisp.org>
2279
2280         Support for MSVC compiler: Ensure mode_t gets defined.
2281         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
2282         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2283         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
2284         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
2285         * tests/test-fcntl-h.c: Check that mode_t is defined.
2286         * tests/test-sys_stat.c: Likewise.
2287         * tests/test-sys_types.c: Likewise.
2288         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
2289         * doc/posix-headers/sys_stat.texi: Likewise.
2290         * doc/posix-headers/sys_types.texi: Likewise.
2291
2292 2011-09-16  Bruno Haible  <bruno@clisp.org>
2293
2294         sys_stat: Support for MSVC.
2295         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
2296         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
2297         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
2298         MSVC.
2299
2300 2011-09-16  Bruno Haible  <bruno@clisp.org>
2301
2302         Support for MSVC compiler: Ensure off_t gets defined.
2303         * lib/unistd.in.h: Include <sys/types.h>.
2304         * tests/test-fcntl-h.c: Check that off_t is defined.
2305         * tests/test-sys_stat.c: Likewise.
2306         * tests/test-sys_types.c: Likewise.
2307
2308 2011-09-16  Eric Blake  <eblake@redhat.com>
2309
2310         fdatasync: port to Solaris
2311         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
2312         * modules/fdatasync (Link): Document it.
2313         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
2314
2315         fdatasync: port to MacOS X 10.7
2316         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
2317         declared.
2318         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
2319         * modules/unistd (Makefile.am): Substitute it.
2320         * lib/unistd.in.h (fdatasync): Declare on MacOS.
2321         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
2322
2323         fdatasync: minor improvements
2324         * modules/fdatasync (Depends-on): Add condition for fsync.
2325         * lib/fdatasync.c (fdatasync): Add comment.
2326         * tests/test-unistd-c++.cc: Test fdatasync.
2327
2328         unistd: update refs to newer POSIX
2329         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
2330         Suggested by Bruno Haible.
2331
2332         fdatasync: new module
2333         * modules/fsync (Description): Document difference to fdatasync.
2334         * modules/fdatasync: New module.
2335         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
2336         * lib/fdatasync.c (fdatasync): Likewise.
2337         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
2338         defaults.
2339         * modules/unistd (Makefile.am): Set witnesses.
2340         * lib/unistd.in.h (fdatasync): Declare.
2341         * MODULES.html.sh: Document it.
2342         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
2343         * modules/fdatasync-tests: New test.
2344         * tests/test-fdatasync.c: Likewise.
2345
2346 2011-09-16  Eric Blake  <eblake@redhat.com>
2347
2348         test-fsync: enhance tests
2349         * modules/fsync-tests (Depends-on): Add errno, for mingw.
2350         * tests/test-fsync.c (main): Enhance test.
2351
2352 2011-09-15  Bruno Haible  <bruno@clisp.org>
2353
2354         Support for MSVC compiler: Ensure ssize_t gets defined.
2355         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
2356         * doc/posix-headers/stdio.texi: Likewise.
2357         * modules/stdio (Depends-on): Add ssize_t.
2358         * modules/sys_socket (Depends-on): Likewise.
2359         * modules/sys_types (Depends-on): Likewise.
2360         * modules/sys_uio (Depends-on): Likewise.
2361         * modules/unistd (Depends-on): Likewise.
2362         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
2363         * tests/test-sys_types.c: Check that ssize_t is defined.
2364
2365 2011-09-14  Bruno Haible  <bruno@clisp.org>
2366
2367         Avoid using #, the m4 comment starter character, near brackets.
2368         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
2369         delimiter character in sed expressions.
2370         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2371         Suggested by Eric Blake.
2372
2373         Properly quote AC_CHECK_DECLS' 4th argument.
2374         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
2375         argument.
2376         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2377         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2378         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
2379         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
2380         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
2381         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
2382         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
2383         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
2384         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
2385         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
2386         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
2387         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2388         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
2389         * m4/isinf.m4 (gl_ISINF): Likewise.
2390         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2391         * m4/readutmp.m4 (gl_READUTMP): Likewise.
2392         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2393         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2394         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2395         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2396         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
2397         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
2398         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
2399         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2400         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2401         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2402         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
2403         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2404         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2405         Reported by Eric Blake.
2406
2407         Properly quote AC_CHECK_DECL's 4th argument.
2408         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
2409         argument.
2410         * m4/argp.m4 (gl_ARGP): Likewise.
2411         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
2412         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2413         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
2414         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2415         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
2416         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
2417         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2418         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
2419         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
2420         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
2421         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
2422         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
2423         Reported by Eric Blake.
2424
2425 2011-09-14  Eric Blake  <eblake@redhat.com>
2426
2427         opendir: avoid compile warning
2428         * lib/opendir.c (includes): Always include errno.h.
2429         Reported by Tatsuro MATSUOKA.
2430
2431 2011-09-14  Jim Meyering  <meyering@redhat.com>
2432
2433         maint.mk: sc_tight_scope: propagate failure from sub-make
2434         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
2435         Reported by Martin von Gagern.
2436
2437 2011-09-13  Bruno Haible  <bruno@clisp.org>
2438
2439         tempname: Support for MSVC.
2440         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
2441         MSVC.
2442         * modules/tempname (Depends-on): Add fcntl-h.
2443
2444 2011-09-13  Bruno Haible  <bruno@clisp.org>
2445
2446         sys_time: Support for MSVC.
2447         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
2448         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
2449         include <winsock2.h>.
2450         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
2451         function declarations that collide with POSIX.
2452         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
2453         (Makefile.am): Substitute HAVE_WINSOCK2_H.
2454
2455 2011-09-13  Bruno Haible  <bruno@clisp.org>
2456
2457         stat: Support for MSVC.
2458         * lib/stat.c: Include pathmax.h.
2459         * modules/stat (Depends-on): Add pathmax.
2460
2461         pathmax: Support for native Windows.
2462         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
2463
2464 2011-09-12  Bruno Haible  <bruno@clisp.org>
2465
2466         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
2467         * lib/dirent.in.h (struct dirent): New type.
2468         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
2469         DT_WHT): New macros.
2470         (DIR): New type.
2471         (opendir, closedir): Declare only if the module 'opendir' is enabled.
2472         (readdir, rewinddir): New declarations.
2473         * lib/dirent-private.h: New file.
2474         * lib/opendir.c: New file.
2475         * lib/readdir.c: New file.
2476         * lib/rewinddir.c: New file.
2477         * lib/closedir.c: New file.
2478         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
2479         * m4/opendir.m4: New file.
2480         * m4/readdir.m4: New file.
2481         * m4/rewinddir.m4: New file.
2482         * m4/closedir.m4: New file.
2483         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
2484         REPLACE_CLOSEDIR here.
2485         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
2486         readdir, rewinddir are declared.
2487         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
2488         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
2489         HAVE_REWINDDIR, HAVE_CLOSEDIR.
2490         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
2491         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
2492         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
2493         * modules/opendir: New file.
2494         * modules/readdir: New file.
2495         * modules/rewinddir: New file.
2496         * modules/closedir: New file.
2497         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
2498         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
2499         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
2500         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
2501         * NEWS: Mention the 'fchdir' change.
2502
2503 2011-09-11  Bruno Haible  <bruno@clisp.org>
2504
2505         asm-underscore.m4: Support for MSVC.
2506         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
2507         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
2508
2509 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
2510
2511         Doc about crypt functions.
2512         * doc/posix-functions/crypt.texi: Expand range of glibc versions
2513         needing for _GNU_SOURCE to get crypt.
2514         * doc/posix-functions/encrypt.texi: Likewise.
2515         * doc/posix-functions/setkey.texi: Likewise.
2516
2517 2011-09-11  Bruno Haible  <bruno@clisp.org>
2518
2519         doc: Update regarding MSVC 9.
2520         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
2521         tested".
2522         * doc/posix-functions/*.texi: Update with info about MSVC 9.
2523         * doc/posix-headers/*.texi: Likewise.
2524         * doc/pastposix-functions/*.texi: Likewise.
2525         * doc/glibc-functions/*.texi: Likewise.
2526         * doc/glibc-headers/*.texi: Likewise.
2527
2528 2011-09-11  Bruno Haible  <bruno@clisp.org>
2529
2530         unistd et al.: Don't assume <unistd.h> exists.
2531         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
2532         does not exist.
2533         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
2534         exist. But include <stdlib.h>.
2535         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
2536         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
2537         symlink() does not exist.
2538         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
2539         include <io.h> instead.
2540         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
2541         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
2542         include <direct.h> instead.
2543         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
2544         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2545         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
2546         <io.h> instead.
2547         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
2548         correctly if the system does not have hard links.
2549         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
2550         <direct.h> instead.
2551         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
2552         it when looking for function declarations.
2553         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
2554         <direct.h> and <io.h> instead.
2555         * doc/posix-headers/unistd.texi: More details about MSVC problem.
2556
2557 2011-09-11  Bruno Haible  <bruno@clisp.org>
2558
2559         strcase: Support for MSVC.
2560         * modules/strcase (Status, Notice): Remove obsoletion mark.
2561         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
2562         * doc/posix-functions/strncasecmp.texi: Likewise.
2563
2564         strings: Don't assume <strings.h> exists.
2565         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
2566         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
2567         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
2568         * doc/posix-headers/strings.texi: Mention the MSVC problem.
2569
2570 2011-09-11  Bruno Haible  <bruno@clisp.org>
2571
2572         dirent: Don't assume <dirent.h> exists.
2573         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
2574         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
2575         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
2576         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
2577
2578 2011-09-11  Bruno Haible  <bruno@clisp.org>
2579
2580         Fix wint_t on MSVC.
2581         * lib/wchar.in.h (wint_t): On MSVC, override it.
2582         * lib/wctype.in.h (wint_t): Likewise.
2583         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
2584         MSVC.
2585         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
2586         * doc/posix-headers/wctype.texi: Likewise.
2587
2588 2011-09-11  Bruno Haible  <bruno@clisp.org>
2589
2590         sys_types: Fix typo.
2591         * lib/sys_types.in.h: Fix typo in comment.
2592         Reported by Paul Eggert.
2593
2594         Support for MSVC compiler: Ensure size_t gets defined.
2595         * modules/strings (Depends-on): Add 'sys_types'.
2596         * modules/sys_uio (Depends-on): Likewise.
2597         * lib/sys_uio.in.h: Update comment.
2598
2599         C++ tests for module 'sys_types'.
2600         * modules/sys_types-c++-tests: New file.
2601         * tests/test-sys_types-c++.cc: New file.
2602
2603         Tests for module 'sys_types'.
2604         * modules/sys_types-tests: New file.
2605         * tests/test-sys_types.c: New file.
2606
2607         New module 'sys_types'.
2608         * lib/sys_types.in.h: New file.
2609         * m4/sys_types_h.m4: New file.
2610         * modules/sys_types: New file.
2611         * doc/posix-headers/sys_types.texi: Mention the new module and the
2612         size_t problem on MSVC 9.
2613
2614 2011-09-11  Bruno Haible  <bruno@clisp.org>
2615
2616         Support for MSVC compiler: Avoid division by a literal 0.
2617         * lib/math.in.h (NAN): Define through a function call also on MSVC.
2618         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
2619         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
2620         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
2621         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
2622         * tests/infinity.h: New file.
2623         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
2624         on MSVC.
2625         * tests/test-ceilf1.c: Include infinity.h.
2626         (main): Use Infinityf.
2627         * tests/test-ceil1.c: Include infinity.h.
2628         (main): Use Infinityd.
2629         * tests/test-ceill.c: Include infinity.h.
2630         (main): Use Infinityl.
2631         * tests/test-dprintf-posix.c: Include infinity.h.
2632         (test_function): Use Infinityd.
2633         * tests/test-floorf1.c: Include infinity.h.
2634         (main): Use Infinityf.
2635         * tests/test-floor1.c: Include infinity.h.
2636         (main): Use Infinityd.
2637         * tests/test-floorl.c: Include infinity.h.
2638         (main): Use Infinityl.
2639         * tests/test-fprintf-posix.c: Include infinity.h.
2640         (test_function): Use Infinityd.
2641         * tests/test-frexp.c: Include infinity.h.
2642         (main): Use Infinityd.
2643         * tests/test-frexpl.c: Include infinity.h.
2644         (main): Use Infinityl.
2645         * tests/test-isfinite.c: Include infinity.h.
2646         (test_isfinitef): Use Infinityf.
2647         (test_isfinited): Use Infinityd.
2648         (test_isfinitel): Use Infinityl.
2649         * tests/test-isinf.c: Include infinity.h.
2650         (test_isinff): Use Infinityf.
2651         (test_isinfd): Use Infinityd.
2652         (test_isinfl): Use Infinityl.
2653         * tests/test-isnan.c: Include infinity.h.
2654         (test_float): Use Infinityf.
2655         (test_double): Use Infinityd.
2656         (test_long_double): Use Infinityl.
2657         * tests/test-isnanf.h: Include infinity.h.
2658         (main): Use Infinityf.
2659         * tests/test-isnand.h: Include infinity.h.
2660         (main): Use Infinityd.
2661         * tests/test-isnanl.h: Include infinity.h.
2662         (main): Use Infinityl.
2663         * tests/test-ldexpl.c: Include infinity.h.
2664         (main): Use Infinityl.
2665         * tests/test-printf-posix.h: Include infinity.h.
2666         (test_function): Use Infinityd.
2667         * tests/test-roundf1.c: Include infinity.h.
2668         (main): Use Infinityf.
2669         * tests/test-round1.c: Include infinity.h.
2670         (main): Use Infinityd.
2671         * tests/test-roundl.c: Include infinity.h.
2672         (main): Use Infinityl.
2673         * tests/test-signbit.c: Include infinity.h.
2674         (test_signbitf): Use Infinityf.
2675         (test_signbitd): Use Infinityd.
2676         (test_signbitl): Use Infinityl.
2677         * tests/test-snprintf-posix.h: Include infinity.h.
2678         (test_function): Use Infinityd, Infinityl.
2679         * tests/test-sprintf-posix.h: Include infinity.h.
2680         (test_function): Use Infinityd, Infinityl.
2681         * tests/test-truncf1.c: Include infinity.h.
2682         (main): Use Infinityf.
2683         * tests/test-trunc1.c: Include infinity.h.
2684         (main): Use Infinityd.
2685         * tests/test-truncl.c: Include infinity.h.
2686         (main): Use Infinityl.
2687         * tests/test-vasnprintf-posix.c: Include infinity.h.
2688         (test_function): Use Infinityd, Infinityl.
2689         * tests/test-vasprintf-posix.c: Include infinity.h.
2690         (test_function): Use Infinityd, Infinityl.
2691         * modules/ceilf-tests (Files): Add tests/infinity.h.
2692         * modules/ceil-tests (Files): Likewise.
2693         * modules/ceill-tests (Files): Likewise.
2694         * modules/dprintf-posix-tests (Files): Likewise.
2695         * modules/floorf-tests (Files): Likewise.
2696         * modules/floor-tests (Files): Likewise.
2697         * modules/floorl-tests (Files): Likewise.
2698         * modules/fprintf-posix-tests (Files): Likewise.
2699         * modules/frexp-tests (Files): Likewise.
2700         * modules/frexp-nolibm-tests (Files): Likewise.
2701         * modules/frexpl-tests (Files): Likewise.
2702         * modules/frexpl-nolibm-tests (Files): Likewise.
2703         * modules/isfinite-tests (Files): Likewise.
2704         * modules/isinf-tests (Files): Likewise.
2705         * modules/isnan-tests (Files): Likewise.
2706         * modules/isnanf-tests (Files): Likewise.
2707         * modules/isnanf-nolibm-tests (Files): Likewise.
2708         * modules/isnand-tests (Files): Likewise.
2709         * modules/isnand-nolibm-tests (Files): Likewise.
2710         * modules/isnanl-tests (Files): Likewise.
2711         * modules/isnanl-nolibm-tests (Files): Likewise.
2712         * modules/ldexpl-tests (Files): Likewise.
2713         * modules/printf-posix-tests (Files): Likewise.
2714         * modules/roundf-tests (Files): Likewise.
2715         * modules/round-tests (Files): Likewise.
2716         * modules/roundl-tests (Files): Likewise.
2717         * modules/signbit-tests (Files): Likewise.
2718         * modules/snprintf-posix-tests (Files): Likewise.
2719         * modules/sprintf-posix-tests (Files): Likewise.
2720         * modules/truncf-tests (Files): Likewise.
2721         * modules/trunc-tests (Files): Likewise.
2722         * modules/truncl-tests (Files): Likewise.
2723         * modules/vasnprintf-posix-tests (Files): Likewise.
2724         * modules/vasprintf-posix-tests (Files): Likewise.
2725         * modules/vdprintf-posix-tests (Files): Likewise.
2726         * modules/vfprintf-posix-tests (Files): Likewise.
2727         * modules/vprintf-posix-tests (Files): Likewise.
2728         * modules/vsnprintf-posix-tests (Files): Likewise.
2729         * modules/vsprintf-posix-tests (Files): Likewise.
2730         * modules/xprintf-posix-tests (Files): Likewise.
2731
2732 2011-09-11  Bruno Haible  <bruno@clisp.org>
2733
2734         Ensure pid_t gets defined.
2735         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
2736         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
2737         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
2738         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2739         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
2740         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
2741         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
2742         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2743         * tests/test-fcntl-h.c: Check that pid_t is defined.
2744         * tests/test-sched.c: Likewise.
2745         * tests/test-termios.c: Likewise.
2746         * tests/test-time.c: Likewise.
2747         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
2748         * doc/posix-headers/signal.texi: Likewise.
2749         * doc/posix-headers/sys_types.texi: Likewise.
2750         * doc/posix-headers/time.texi: Likewise.
2751
2752 2011-09-11  Bruno Haible  <bruno@clisp.org>
2753
2754         acl: Fix compilation on Solaris 10 (older version).
2755         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
2756         of ACE_EVERYONE.
2757         * lib/set-mode-acl.c (qset_acl): Likewise.
2758         Reported by Christian Jullien <eligis@orange.fr>.
2759
2760 2011-09-10  Bruno Haible  <bruno@clisp.org>
2761
2762         iconv, unsetenv: Add support for MSVC compiler.
2763         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
2764         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
2765
2766 2011-09-10  Bruno Haible  <bruno@clisp.org>
2767
2768         *printf: Add support for MSVC compiler.
2769         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
2770         handles the exception caused by the %n directive. When cross-compiling,
2771         guess no on native Windows.
2772         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
2773         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
2774         emulate it through vsnprintf.
2775         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
2776         * doc/posix-functions/dprintf.texi: Update documentation regarding
2777         MSVC 9.
2778         * doc/posix-functions/fprintf.texi: Likewise.
2779         * doc/posix-functions/printf.texi: Likewise.
2780         * doc/posix-functions/snprintf.texi: Likewise.
2781         * doc/posix-functions/sprintf.texi: Likewise.
2782         * doc/posix-functions/swprintf.texi: Likewise.
2783         * doc/posix-functions/vdprintf.texi: Likewise.
2784         * doc/posix-functions/vfprintf.texi: Likewise.
2785         * doc/posix-functions/vprintf.texi: Likewise.
2786         * doc/posix-functions/vsnprintf.texi: Likewise.
2787         * doc/posix-functions/vsprintf.texi: Likewise.
2788         * doc/glibc-functions/asprintf.texi: Likewise.
2789         * doc/glibc-functions/obstack_printf.texi: Likewise.
2790         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
2791         * doc/glibc-functions/vasprintf.texi: Likewise.
2792
2793 2011-09-10  Bruno Haible  <bruno@clisp.org>
2794
2795         nocrash: Add support for native Windows.
2796         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
2797
2798 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
2799             Bruno Haible  <bruno@clisp.org>
2800
2801         absolute-header, include-next: Add support for MSVC compiler.
2802         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
2803         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
2804         directory separator in #line directives.
2805         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
2806         recognize also backslash as directory separator in #line directives.
2807
2808 2011-09-08  Jim Meyering  <meyering@redhat.com>
2809
2810         maint.mk: mark the post-release commit log with "maint: " prefix
2811         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
2812         one-line commit-log summary.
2813
2814 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
2815             Bruno Haible  <bruno@clisp.org>
2816
2817         Doc about crypt functions.
2818         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
2819         systems.
2820         * doc/posix-functions/encrypt.texi: Likewise.
2821         * doc/posix-functions/setkey.texi: Likewise.
2822
2823 2011-09-08  Simon Josefsson  <simon@josefsson.org>
2824
2825         * lib/gc.h: Fix copyright header.
2826
2827 2011-09-07  Bruno Haible  <bruno@clisp.org>
2828
2829         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
2830         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
2831         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
2832
2833 2011-09-07  Bruno Haible  <bruno@clisp.org>
2834
2835         openat: Work around compilation error with OSF/1 5.1 DTK cc.
2836         * lib/fopen.c: Use different syntax for include of <stdio.h>.
2837         * lib/freopen.c: Likewise.
2838         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
2839         * lib/lstat.c: Likewise.
2840         * lib/stat.c: Likewise.
2841         * lib/open.c: Use different syntax for include of <fcntl.h>.
2842         * lib/openat.c: Include fcntl.h again, explicitly.
2843
2844 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
2845
2846         parse-datetime: document the newly accepted format
2847         * doc/parse-datetime.texi (Combined date and time of day items):
2848         New section.
2849
2850 2011-09-06  Bruno Haible  <bruno@clisp.org>
2851
2852         acl: Fix a test failure on newer Solaris 10 with ZFS.
2853         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
2854         ENOSYS as no ACL.
2855         Reported by Jim Meyering.
2856
2857 2011-09-06  Bruno Haible  <bruno@clisp.org>
2858
2859         acl: Update for AIX >= 5.3 with NFS.
2860         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
2861         ENOSYS as no ACL.
2862
2863         acl: Fix a test failure on AIX >= 5.3 with NFS.
2864         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
2865         as no ACL.
2866
2867 2011-09-06  Bruno Haible  <bruno@clisp.org>
2868
2869         acl: Fix a test failure on IRIX 6.5 with NFS.
2870         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
2871         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
2872         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
2873         * lib/copy-acl.c (qcopy_acl): Likewise.
2874
2875 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
2876
2877         openat: port to AIX 7.1 with large files
2878         AIX 7.1 does a "#define openat open64at" if large files are in use,
2879         so we can't simply #undef openat.  Use the orig_openat trick (similar
2880         to orig_open in lib/open.c) to work around the problem.  Problem
2881         reported by Kevin Brott for GNU tar, in the thread containing
2882         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
2883         * lib/openat.c (__need_system_fcntl_h): Define first.
2884         Include <fcntl.h> and <sys/types.h> before undefining.
2885         (orig_openat) [HAVE_OPENAT]: New inline function.
2886         (openat) [HAVE_OPENAT]: Do not undef.
2887         (rpl_openat): Use orig_openat, not openat.
2888
2889 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
2890             Bruno Haible  <bruno@clisp.org>
2891
2892         acl: Avoid errors on NonStop Kernel.
2893         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
2894         ENOTSUP errors.
2895
2896 2011-09-05  Bruno Haible  <bruno@clisp.org>
2897
2898         acl: Clean up Solaris code.
2899         * lib/acl-internal.h: Remove no-op #if.
2900         * lib/file-has-acl.c: Likewise.
2901         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
2902         * lib/copy-acl.c (qcopy_acl): Likewise.
2903
2904 2011-09-05  Bruno Haible  <bruno@clisp.org>
2905
2906         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
2907         binaries built on the original Solaris 10.
2908         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
2909         trivial.
2910
2911 2011-09-05  Bruno Haible  <bruno@clisp.org>
2912
2913         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
2914         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
2915         10.
2916         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
2917         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
2918         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
2919         instead of acl_get, facl_get, acl_set, facl_set.
2920
2921 2011-09-05  Bruno Haible  <bruno@clisp.org>
2922
2923         copy-file: Try unit tests on more file systems.
2924         * tests/test-copy-file-1.sh: New file.
2925         * tests/test-copy-file-2.sh: New file.
2926         * modules/copy-file-tests (Files): Add them.
2927         (Makefile.am): Add them to TESTS.
2928
2929         acl: Try unit tests on more file systems.
2930         * tests/test-file-has-acl-1.sh: New file.
2931         * tests/test-file-has-acl-2.sh: New file.
2932         * tests/test-set-mode-acl-1.sh: New file.
2933         * tests/test-set-mode-acl-2.sh: New file.
2934         * tests/test-copy-acl-1.sh: New file.
2935         * tests/test-copy-acl-2.sh: New file.
2936         * modules/acl-tests (Files): Add them.
2937         (Makefile.am): Add them to TESTS.
2938
2939 2011-09-04  Bruno Haible  <bruno@clisp.org>
2940
2941         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
2942         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
2943         10.
2944         (OLD_ALLOW, OLD_DENY): New macros.
2945         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
2946         ACE_ACCESS_ALLOWED_ACE_TYPE.
2947         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
2948         ACE_ACCESS_DENIED_ACE_TYPE.
2949         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
2950         (NEW_ACE_EXECUTE): Fix value.
2951         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
2952         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
2953         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
2954         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
2955         NEW_ACE_SYNCHRONIZE): New macros.
2956         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
2957         instead of acl_fromtext, acl_set, facl_set.
2958         Fixes a coreutils/tests/cp/perm failure.
2959
2960 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
2961
2962         openat: test for fstatat (..., 0) bug
2963         Further testing with tar suggests that fstatat (..., 0)
2964         does not work in general, on AIX 7.1; see
2965         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
2966         So, give up entirely on AIX 7.1's fstatat, and fall back on our
2967         replacement fstatat (which is what older AIX releases were using
2968         anyway).
2969         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
2970         use is now changed to orig_fstatat.  This was probably the right
2971         thing to do anyway.
2972         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
2973         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
2974         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
2975         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
2976         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
2977         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
2978         if the bug is found.
2979
2980         openat: test for fstatat (AT_FDCWD, ..., 0) bug
2981         This tests for another fstatat bug on AIX 7.1:
2982         fstatat (AT_FDCWD, ..., 0) does not work.  See
2983         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
2984         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
2985         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
2986         (rpl_fstatat): Adjust so that it works around either (or both)
2987         bugs if present.
2988         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
2989
2990 2011-09-03  Karl Berry  <karl@gnu.org>
2991
2992         * doc/regex.texi (Character Class Operators): Avoid literal ":"
2993         in index entries.
2994
2995 2011-09-02  Bruno Haible  <bruno@clisp.org>
2996
2997         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
2998         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
2999         values of AR, ARFLAGS, RANLIB.
3000         Reported by John W. Eaton <jwe@gnu.org> for Octave.
3001
3002 2011-09-02  Bruno Haible  <bruno@clisp.org>
3003
3004         Find 'ar' program that fits with --host argument.
3005         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
3006
3007 2011-09-02  Bruno Haible  <bruno@clisp.org>
3008
3009         tests: init.sh: Support any non-GNU diff.
3010         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
3011         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
3012         Solaris 8.
3013
3014 2011-09-02  Bruno Haible  <bruno@clisp.org>
3015
3016         tests: init.sh: work also with any non-GNU diff that supports -u
3017         * tests/init.sh: Relax check for diff -u support.
3018         Rather than checking for GNU diff via --version, simply check
3019         for support for -u itself.  Useful at least on OpenBSD 4.9,
3020         AIX 7.1, IRIX 6.5, and Solaris 10.
3021
3022 2011-09-01  Bruno Haible  <bruno@clisp.org>
3023
3024         strtoimax, strtoumax: Document problem on HP-UX 11.
3025         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
3026         * doc/posix-functions/strtoumax.texi: Likewise.
3027
3028 2011-09-01  Bruno Haible  <bruno@clisp.org>
3029
3030         strtoumax: Avoid link error on OSF/1 with DTK cc.
3031         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
3032         defined as a function.
3033         * modules/strtoumax (Depends-on, configure.ac): Test only whether
3034         strtoumax is defined, not whether it is declared.
3035
3036 2011-09-01  Bruno Haible  <bruno@clisp.org>
3037
3038         strtoimax: Avoid link error on OSF/1 with DTK cc.
3039         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
3040         defined as a function.
3041         * modules/strtoimax (Depends-on, configure.ac): Test only whether
3042         strtoimax is defined, not whether it is declared.
3043
3044 2011-09-01  Bruno Haible  <bruno@clisp.org>
3045
3046         imaxdiv: Avoid link error on OSF/1 with DTK cc.
3047         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
3048         as a function.
3049         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
3050         whether it is declared.
3051
3052 2011-09-01  Bruno Haible  <bruno@clisp.org>
3053
3054         imaxabs: Avoid link error on OSF/1 with DTK cc.
3055         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
3056         as a function.
3057         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
3058         whether it is declared.
3059
3060 2011-09-01  Bruno Haible  <bruno@clisp.org>
3061
3062         Tests for module 'strtoumax'.
3063         * modules/strtoumax-tests: New file.
3064         * tests/test-strtoumax.c: New file.
3065
3066         Tests for module 'strtoimax'.
3067         * modules/strtoimax-tests: New file.
3068         * tests/test-strtoimax.c: New file.
3069
3070         Tests for module 'imaxdiv'.
3071         * modules/imaxdiv-tests: New file.
3072         * tests/test-imaxdiv.c: New file.
3073
3074         Tests for module 'imaxabs'.
3075         * modules/imaxabs-tests: New file.
3076         * tests/test-imaxabs.c: New file.
3077
3078 2011-09-01  Bruno Haible  <bruno@clisp.org>
3079
3080         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
3081         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
3082         pthread_create.
3083
3084 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3085
3086         openat: work around AIX 7.1 fstatat issue
3087         This should fix the problem that was not properly fixed
3088         in the previous change, dated 2011-08-30.
3089         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
3090         __need_system_stat_h defined.
3091         (orig_fstatat) [HAVE_FSTATAT]: New function.
3092         (rpl_fstatat): Go back to the old way of doing things,
3093         except call orig_fstatat instead of fstatat.
3094         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
3095         Remove unnecessary check whether fstatat fills in st_size etc.
3096
3097 2011-09-01  Bruno Haible  <bruno@clisp.org>
3098
3099         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
3100         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
3101         just include the system's header.
3102
3103 2011-08-31  Jim Meyering  <meyering@redhat.com>
3104
3105         tests: avoid spurious assertion failure in test-float.c on ppc64
3106         * tests/test-float.c (test_long_double): Comment out an assertion,
3107         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
3108         with gcc-4.4.4.
3109
3110         maint: indent with spaces, not TABs
3111         I need to get in the habit of running gnulib's "make check".
3112         Both of these would have been caught.
3113         * m4/largefile.m4: Indent with spaces, not TABs.
3114         * lib/parse-datetime.y (iso_8601_time): Likewise.
3115         Spotted by Pádraig Brady.
3116
3117         test-parse-datetime.c: accommodate a relatively strict gcc warning
3118         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
3119         to avoid a warning from gcc's -Werror=missing-declarations.
3120         Insert a few spaces-before-funcall-parenthesis.
3121
3122 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
3123
3124         parse-datetime: accept ISO 8601 date and time rep with "T" separator
3125         The parser now accepts ISO 8601 date-time strings with "T" as the
3126         separator.  It has long parsed dates like "2004-02-29 16:21:42"
3127         with a space between the date and time strings.  Now it also parses
3128         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
3129         variants like "2004-02-29T16:21:42.333-07:00"
3130         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
3131         of day representation using the 'T' separator character.
3132         * doc/parse-datetime.texi (General date syntax): replace use of
3133         deprecated --iso-8601 option with --rfc-3339 in example of date
3134         command output formats that can be parsed.
3135         * tests/test-parse-datetime.c (tm_diff): New function, taken from
3136         lib/parse-datetime.y.
3137         (gmt_offset): New function.
3138         (main): Add additional test cases to validate ISO8601 extended
3139         date and time of day parsing.
3140
3141 2011-08-31  Bruno Haible  <bruno@clisp.org>
3142
3143         freopen: Documentation.
3144         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
3145         name.
3146         Reported by Claudio Bley <claudio.bley@gmail.com>.
3147
3148 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
3149
3150         freopen: Don't crash if the filename argument is NULL.
3151         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
3152         NULL.
3153
3154 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
3155
3156         openat: work around AIX 7.1 fstatat bug
3157         Problem reported by Kevin Brott for GNU tar, in the thread containing
3158         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
3159         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
3160         FSTATAT_ST_SIZE_ETC_BROKEN.
3161         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
3162         rpl_fstatat.
3163         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
3164         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
3165         AC_CHECK_FUNCS_ONCE for fstatat.
3166         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
3167         fchmodat, mkdirat, openat and unlinkat.
3168
3169 2011-08-30  Bruno Haible  <bruno@clisp.org>
3170
3171         Avoid endless recursions if config.h includes some header files.
3172         * lib/fopen.c (__need_FILE): Define already before including config.h.
3173         * lib/freopen.c (__need_FILE): Likewise.
3174         * lib/open.c (__need_system_fcntl_h): Likewise.
3175         * lib/stat.c (__need_system_sys_stat_h): Likewise.
3176         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
3177         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3178
3179 2011-08-25  Karl Berry  <karl@gnu.org>
3180
3181         * config/srclist.txt (ylwrap): new try.
3182         * build-aux/ylwrap: new file.
3183
3184 2011-08-23  Bruno Haible  <bruno@clisp.org>
3185
3186         tmpdir: Use a good default directory on native Windows.
3187         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
3188         (P_tmpdir): Default to _P_tmpdir on native Windows.
3189         (path_search): On native Windows, try the value returned by GetTempPath
3190         before trying P_tmpdir.
3191         * modules/tmpdir (Depends-on): Add pathmax.
3192         Suggested by John Darrington <john@darrington.wattle.id.au>.
3193
3194 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
3195
3196         doc: fix typo in README-release
3197         * top/README-release: Capitalize first word of a sentence.
3198
3199 2011-08-19  Jim Meyering  <meyering@redhat.com>
3200
3201         fts: do not exhaust memory when processing million-entry directories
3202         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
3203         directory would require about 256*N bytes of memory.  Thus, it was
3204         easy to construct a directory too large to be processed by any of
3205         those tools.  With this change, fts' maximum memory utilization is
3206         now limited to around 30MB.
3207         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
3208         (fts_read): When we've processed the final entry (i.e., when
3209         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
3210         using the parent entry to read any remaining entries.  Dispatch
3211         depending on what fts_build returns:
3212         - NULL+stop, aka failure: stop
3213         - NULL otherwise: move up in the dir hierarchy
3214         - non-NULL: handle this new entry
3215         (fts_build): Declare and use new local, continue_readdir.
3216         Prepare to be called from fts_read, when the entries
3217         from a partially-read directory have just been exhausted.
3218         In that case, we'll skip the opendir and instead use the parent's
3219         fts_dirp and derive dir_fd from that.
3220         Finally, in the readdir loop, if we read max_entries entries,
3221         exit the loop ensuring *not* to call closedir.  This is required
3222         so that fts_dirp can be reused on a subsequent call.
3223         Prompted by Ben England's report of memory exhaustion in find
3224         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
3225
3226         maint: fts: move decl of `dp' down into while loop; split a long line
3227         * lib/fts.c (fts_build): No semantic change.
3228
3229         fts: add/use new struct member, fts_dirp
3230         We are about to use this to manage any directory with
3231         too many entries to read all of them into memory at once.
3232         To do that, we'll need to save the DIR* pointer in each
3233         affected FTSENT struct.
3234         * lib/fts_.h: Include <dirent.h>.
3235         (struct FTSENT) [fts_dirp]: New member.
3236         * lib/fts.c (closedir_and_clear): Define.
3237         Use it in place of closedir so that we are sure to
3238         clear the new fts_dirp member when done with it.
3239         (fts_alloc): Initialize the new member.
3240         (fts_lfree): Free, if needed.
3241
3242         maint: fts: give __opendir2 a new parameter and rename
3243         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
3244         than surreptitiously using sole caller's "dir_fd".
3245         (fts_opendir): Rename from __opendir2.
3246
3247         maint: fts.c: remove __opendir2's now-unused parameter, oflag
3248         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
3249
3250         maint: fts.c: correct off-by-one indentation
3251         * lib/fts.c (fts_build): Correct indentation, change style
3252         of a couple of block comments, and bracing style.
3253
3254         maint: fts.c: move __opendir2 #define "up" out of function body
3255         * lib/fts.c (__opendir2): Move "up".  No semantic change.
3256
3257         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
3258         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
3259         out for a long time and besides was useful only on BSD systems.
3260
3261 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
3262
3263         regex: port to Stratus OpenVOS
3264         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
3265         define to empty, rather than attempting nonportable optimizations.
3266         Problem reported by Paul Green in:
3267         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
3268         and fix suggested by Eric Blake in:
3269         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
3270
3271 2011-08-17  Eric Blake  <eblake@redhat.com>
3272
3273         getcwd: fix test failures on mingw
3274         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
3275         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
3276         test if long directory cannot be created, and allow mingw errno.
3277
3278         getcwd-lgpl: fix m4 to match relaxed test for BSD
3279         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
3280         (gl_FUNC_GETCWD_SIGNATURE): New macro.
3281         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
3282         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
3283         signature problem.
3284
3285         getcwd: fix compilation on mingw64
3286         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
3287         getcwd.
3288         Reported by Marc-André Lureau.
3289
3290         pipe2: silence compiler warning
3291         * lib/pipe2.c (pipe2): Hide label if it is not used.
3292
3293 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
3294
3295         relocatable-prog: fix link error
3296         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
3297         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
3298         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
3299         into modules/relocatable-lib without noticing that
3300         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
3301         also needs to build relocatable.c.
3302
3303 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
3304
3305         getaddrinfo: fix sh typo in gai_strerrorA decl checking
3306         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
3307         shell code: it contained a 'break' that was not in a loop.
3308         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
3309         via a shell-language loop; this may have been true in old Autoconf
3310         versions, but it's not true in Autoconf 2.68.  I found this bug
3311         when testing coreutils git on Solaris 8, whose shell complains
3312         about the syntax error.
3313
3314 2011-08-12  Simon Josefsson  <simon@josefsson.org>
3315
3316         * lib/base64.c: Fix comment to reference RFC 4648.
3317         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
3318         <gvtulder@gmail.com>.
3319
3320 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
3321
3322         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
3323
3324         po/Makefile.in.in: fix make -q problem
3325         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
3326         rule, since there's no file named 'check-macro-version' and its
3327         use as a file breaks make -q.
3328         (all): Don't depend on check-macro-version.
3329         (CHECK_MACRO_VERSION): New macro.
3330         (stamp-po): Use it.
3331
3332         configmake: fix make -q problem
3333         * modules/configmake (configmake.h): Update configmake.h's time stamp
3334         even if the file does not change.  Otherwise, 'make -q' fails.
3335         Problem reported by Simon Josefsson in
3336         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
3337
3338 2011-08-11  Jim Meyering  <meyering@redhat.com>
3339
3340         git-version-gen: correct the advice in a comment
3341         * build-aux/git-version-gen: Correct comment.
3342         Don't recommend to list .tarball-version in .gitignore.
3343
3344 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3345
3346         base64: fix off-by-one buffer size bug
3347         Problem and (trivial) fix reported by Gijs van Tulder in
3348         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
3349         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
3350         * tests/test-base64.c (main): Catch the bug.
3351
3352 2011-08-10  Eric Blake  <eblake@redhat.com>
3353
3354         closein: correct comments
3355         * lib/closein.c (close_stdin): Improve comments.
3356
3357 2011-08-09  Bruno Haible  <bruno@clisp.org>
3358
3359         More tests for 'fseeko'.
3360         * tests/test-fseeko3.c: New file, from Eric Blake.
3361         * tests/test-fseeko3.sh: New file.
3362         * modules/fseeko-tests (Files): Add them.
3363         (TESTS): Add test-fseeko3.sh.
3364         (check_PROGRAMS): Add test-fseeko3.
3365
3366 2011-08-09  Eric Blake  <eblake@redhat.com>
3367
3368         fseeko: remove unneeded hack
3369         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
3370
3371         fseeko: fix bug on glibc
3372         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
3373         Reported by John W. Eaton.
3374
3375 2011-08-08  Bruno Haible  <bruno@clisp.org>
3376
3377         unictype/base: Fix interoperability with preinstalled libunistring.
3378         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
3379         Reported by Simon Josefsson.
3380
3381 2011-08-08  Bruno Haible  <bruno@clisp.org>
3382
3383         iswblank: Detect declaration correctly.
3384         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
3385         AC_CHECK_DECLS invocation.
3386
3387 2011-08-08  Bruno Haible  <bruno@clisp.org>
3388
3389         tcgetsid: Detect declaration correctly.
3390         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
3391         AC_CHECK_DECLS invocation.
3392         Reported by Simon Josefsson.
3393
3394 2011-08-08  Eric Blake  <eblake@redhat.com>
3395
3396         largefile: fix typo that regressed large file support
3397         * modules/largefile (configure.ac-early): Fix section name.
3398
3399 2011-08-06  Karl Berry  <karl@gnu.org>
3400
3401         * MODULES.html.sh (func_all_files): _Noreturn is no longer
3402         a separate module.
3403
3404 2011-08-05  Simon Josefsson  <simon@josefsson.org>
3405
3406         openat: Fix warnings and commens when building unlinkat.c on Hurd.
3407         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
3408         get prototype for free.
3409
3410 2011-08-04  Bruno Haible  <bruno@clisp.org>
3411
3412         Tests for module 'pathmax'.
3413         * modules/pathmax-tests: New file.
3414         * tests/test-pathmax.c: New file.
3415
3416         canonicalize-lgpl: Support larger filenames on the Hurd.
3417         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
3418         Reported by Paul Eggert.
3419
3420         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
3421         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
3422         * lib/chdir-long.h: Include pathmax.h.
3423         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
3424         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
3425         (PATH_MAX): Remove code that is done by pathmax.h.
3426         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
3427         * lib/tmpfile.c: Add a comment.
3428         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
3429         * modules/chdir-long (Depends-on): Add pathmax.
3430         * modules/getcwd (Depends-on): Add pathmax.
3431         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
3432         is not defined.
3433         * doc/posix-headers/limits.texi: Mention the pathmax module.
3434         * NEWS: Mention the change.
3435
3436 2011-08-02  Bruno Haible  <bruno@clisp.org>
3437
3438         pthread_sigmask: Actually use results of gl_THREADLIB.
3439         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
3440         gl_THREADLIB, not gl_[]THREADLIB.
3441         Reported by Eric Blake.
3442
3443 2011-08-02  Jim Meyering  <meyering@redhat.com>
3444
3445         maint.mk: relax the default _gl_TS_function_match regexp
3446         * top/maint.mk (_gl_TS_function_match): Don't require at least one
3447         space between function name and "(" in an "extern" declaration.
3448         That would fail to match a decl with no space there: extern void foo();
3449
3450 2011-07-31  Iain Nicol  <iain@thenicols.net>
3451
3452         git-version-gen: document that EXTRA_DIST must include .version
3453         * build-aux/git-version-gen: In the how-to-use comment, document
3454         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
3455         will fail when run from an unpacked distribution tarball.
3456
3457 2011-08-01  Bruno Haible  <bruno@clisp.org>
3458
3459         wctype-h: Fix last change.
3460         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
3461         REPLACE_TOWLOWER to 0.
3462         Reported by Sam Steingold <sds@gnu.org>.
3463
3464 2011-07-31  Bruno Haible  <bruno@clisp.org>
3465
3466         frexpl: Update autoconf test.
3467         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
3468         according to changes of 2011-06-20.
3469
3470 2011-07-31  Bruno Haible  <bruno@clisp.org>
3471
3472         sys_utsname: Add support for Minix.
3473         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
3474         <sys/utsname.h>.
3475         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
3476         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
3477
3478 2011-07-31  Bruno Haible  <bruno@clisp.org>
3479
3480         strings: Add support for Minix.
3481         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
3482         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
3483         * doc/posix-headers/strings.texi: Document the Minix problem.
3484
3485 2011-07-31  Bruno Haible  <bruno@clisp.org>
3486
3487         wctype-h: Add support for Minix.
3488         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
3489         REPLACE_TOWLOWER.
3490         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
3491         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
3492         REPLACE_ISWCNTRL.
3493
3494 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
3495
3496         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
3497         This is a performance improvement for 64-bit hosts: it causes the
3498         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
3499
3500 2011-07-31  Bruno Haible  <bruno@clisp.org>
3501
3502         stdioext: Add support for Minix.
3503         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
3504         * lib/fpurge.c (fpurge): Likewise.
3505         * lib/freadahead.c (freadahead): Likewise.
3506         * lib/freadable.c (freadable): Likewise.
3507         * lib/freading.c (freading): Likewise.
3508         * lib/freadptr.c (freadptr): Likewise.
3509         * lib/freadseek.c (freadptrinc): Likewise.
3510         * lib/fseeko.c (rpl_fseeko): Likewise.
3511         * lib/fseterr.c (fseterr): Likewise.
3512         * lib/fwritable.c (fwritable): Likewise.
3513         * lib/fwriting.c (fwriting): Likewise.
3514         * lib/fflush.c (clear_ungetc_buffer): Update comment.
3515         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
3516
3517 2011-07-31  Bruno Haible  <bruno@clisp.org>
3518
3519         errno: Port to Minix.
3520         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
3521         ECONNABORTED are defined.
3522         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
3523         GNULIB_defined_ECONNABORTED): New macros.
3524         * lib/strerror-override.h (strerror_override): Test also
3525         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
3526         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
3527         ECONNABORTED.
3528         * doc/posix-headers/errno.texi: Mention the Minix problem.
3529
3530 2011-07-31  Bruno Haible  <bruno@clisp.org>
3531
3532         Work around declaration collisions on Minix.
3533         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
3534         defined, set REPLACE_MBSINIT.
3535         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
3536         defined, set REPLACE_MBRTOWC.
3537         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
3538         set REPLACE_MBRLEN.
3539         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
3540         defined, set REPLACE_MBSRTOWCS.
3541         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
3542         defined, set REPLACE_WCRTOMB.
3543         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
3544         defined, set REPLACE_WCSRTOMBS.
3545
3546 2011-07-31  Bruno Haible  <bruno@clisp.org>
3547
3548         Add support for Minix with ACK compiler.
3549         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
3550         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
3551         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
3552
3553 2011-07-31  Bruno Haible  <bruno@clisp.org>
3554
3555         Documentation about Minix.
3556         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
3557         * doc/glibc-headers/*.texi: Likewise.
3558         * doc/posix-functions/*.texi: Likewise.
3559         * doc/glibc-functions/*.texi: Likewise.
3560
3561 2011-07-31  Bruno Haible  <bruno@clisp.org>
3562
3563         snippet/warn-on-use: Fix indentation.
3564         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
3565
3566 2011-07-25  Jim Meyering  <meyering@redhat.com>
3567
3568         tests: test-update-copyright.sh: remove unnecessary "rm" commands
3569         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
3570         commands.
3571
3572 2011-07-27  Jim Meyering  <meyering@redhat.com>
3573
3574         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
3575         * top/maint.mk (gl_extract_significant_defines_): Now that
3576         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
3577         gnulib/lib/signal.in.h, and now that we recommend to
3578         define-if-undefined those two symbols in application code,
3579         we must filter them out of the "significant" list.
3580         This avoids a "make syntax-check" failure in coreutils.
3581
3582 2011-07-26  Eric Blake  <eblake@redhat.com>
3583
3584         warnings: add comments about previous patch
3585         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
3586         * m4/include_next.m4: Likewise.
3587         * m4/warn-on-use.m4: Likewise.
3588         * m4/warnings.m4: Likewise, and simplify use.
3589         Suggested by Stefano Lattarini.
3590
3591         include-next, warnings: support older autoconf
3592         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
3593         AS_VAR_PUSHDEF in a way that works with older autoconf.
3594         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
3595         Reported by Daniel P. Berrange.
3596
3597 2011-07-25  Bruno Haible  <bruno@clisp.org>
3598
3599         fseek, ftell: Fix doc.
3600         * doc/posix-functions/fseek.texi: Reword statement about
3601         AC_SYS_LARGEFILE.
3602         * doc/posix-functions/ftell.texi: Likewise.
3603
3604 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
3605             Bruno Haible  <bruno@clisp.org>
3606
3607         Add dependencies to the 'largefile' module.
3608         * modules/fopen (Depends-on): Add 'largefile'.
3609         * modules/freopen (Depends-on): Likewise.
3610         * modules/fseeko (Depends-on): Likewise.
3611         * modules/ftello (Depends-on): Likewise.
3612         * modules/glob (Depends-on): Likewise.
3613         * modules/lseek (Depends-on): Likewise.
3614         * modules/lstat (Depends-on): Likewise.
3615         * modules/mkostemp (Depends-on): Likewise.
3616         * modules/mkostemps (Depends-on): Likewise.
3617         * modules/mkstemp (Depends-on): Likewise.
3618         * modules/mkstemps (Depends-on): Likewise.
3619         * modules/open (Depends-on): Likewise.
3620         * modules/openat (Depends-on): Likewise.
3621         * modules/pread (Depends-on): Likewise.
3622         * modules/pwrite (Depends-on): Likewise.
3623         * modules/scandir (Depends-on): Likewise.
3624         * modules/stat (Depends-on): Likewise.
3625         * modules/tmpfile (Depends-on): Likewise.
3626         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
3627         since the containing module now depends on the largefile module.
3628         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
3629         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
3630         off_t is fixed by gnulib.
3631         * doc/posix-functions/freopen.texi: Likewise.
3632         * doc/posix-functions/fseeko.texi: Likewise.
3633         * doc/posix-functions/fstatat.texi: Likewise.
3634         * doc/posix-functions/ftello.texi: Likewise.
3635         * doc/posix-functions/glob.texi: Likewise.
3636         * doc/posix-functions/lseek.texi: Likewise.
3637         * doc/posix-functions/lstat.texi: Likewise.
3638         * doc/posix-functions/mkstemp.texi: Likewise.
3639         * doc/posix-functions/open.texi: Likewise.
3640         * doc/posix-functions/openat.texi: Likewise.
3641         * doc/posix-functions/pread.texi: Likewise.
3642         * doc/posix-functions/pwrite.texi: Likewise.
3643         * doc/posix-functions/scandir.texi: Likewise.
3644         * doc/posix-functions/stat.texi: Likewise.
3645         * doc/posix-functions/tmpfile.texi: Likewise.
3646         * doc/glibc-functions/mkostemp.texi: Likewise.
3647         * doc/glibc-functions/mkostemps.texi: Likewise.
3648         * doc/glibc-functions/mkstemps.texi: Likewise.
3649
3650 2011-07-25  Bruno Haible  <bruno@clisp.org>
3651
3652         fcntl: Move AC_LIBOBJ invocation to module description.
3653         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
3654         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
3655
3656         fcntl: Remove call-in from fchdir.m4.
3657         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
3658         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
3659
3660         dup3: Remove potential call-in from fchdir.m4.
3661         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
3662         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
3663
3664         dup2: Move AC_LIBOBJ invocation to module description.
3665         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
3666         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
3667         Don't invoke AC_LIBOBJ.
3668         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
3669
3670         dup2: Remove call-in from fchdir.m4.
3671         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
3672         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
3673
3674         fclose: Move AC_LIBOBJ invocation to module description.
3675         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
3676         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
3677         to 1.
3678         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
3679
3680         fclose: Remove call-in from close.m4.
3681         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
3682         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
3683
3684         close: Move AC_LIBOBJ invocation to module description.
3685         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
3686         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
3687         1.
3688         * modules/close (configure.ac): Invoke AC_LIBOBJ.
3689
3690         close: Remove call-in from fchdir.m4.
3691         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
3692         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
3693
3694         open: Move AC_LIBOBJ invocation to module description.
3695         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
3696         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
3697         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
3698
3699         open: Remove call-in from fchdir.m4.
3700         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
3701         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
3702
3703         fchdir: Start to remove gl_REPLACE_* idiom.
3704         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
3705         (gl_FUNC_FCHDIR): Invoke it.
3706
3707 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
3708
3709         * lib/ftell.c (ftell): Comment out cast.
3710
3711         close: use gl_REPLACE_FCLOSE only if defined
3712         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
3713         is defined.  The close module doesn't depend on the fclose module
3714         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
3715         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
3716         I reproduced the problem with "./gnulib-tool --test close sys_socket".
3717
3718 2011-07-24  Jim Meyering  <meyering@redhat.com>
3719
3720         test-select.h: avoid warning when using gcc's -Wmissing-declarations
3721         * tests/test-select.h (test_function): Declare as "static".
3722
3723 2011-07-24  Bruno Haible  <bruno@clisp.org>
3724
3725         doc: Mention the effects of AC_SYS_LARGEFILE.
3726         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
3727         on this function.
3728         * doc/posix-functions/aio_error.texi: Likewise.
3729         * doc/posix-functions/aio_fsync.texi: Likewise.
3730         * doc/posix-functions/aio_read.texi: Likewise.
3731         * doc/posix-functions/aio_return.texi: Likewise.
3732         * doc/posix-functions/aio_suspend.texi: Likewise.
3733         * doc/posix-functions/aio_write.texi: Likewise.
3734         * doc/posix-functions/fgetpos.texi: Likewise.
3735         * doc/posix-functions/fopen.texi: Likewise.
3736         * doc/posix-functions/freopen.texi: Likewise.
3737         * doc/posix-functions/fsetpos.texi: Likewise.
3738         * doc/posix-functions/fstatvfs.texi: Likewise.
3739         * doc/posix-functions/ftruncate.texi: Likewise.
3740         * doc/posix-functions/ftw.texi: Likewise.
3741         * doc/posix-functions/getrlimit.texi: Likewise.
3742         * doc/posix-functions/glob.texi: Likewise.
3743         * doc/posix-functions/lio_listio.texi: Likewise.
3744         * doc/posix-functions/lockf.texi: Likewise.
3745         * doc/posix-functions/mkstemp.texi: Likewise.
3746         * doc/posix-functions/mmap.texi: Likewise.
3747         * doc/posix-functions/nftw.texi: Likewise.
3748         * doc/posix-functions/openat.texi: Likewise.
3749         * doc/posix-functions/opendir.texi: Likewise.
3750         * doc/posix-functions/posix_fadvise.texi: Likewise.
3751         * doc/posix-functions/posix_fallocate.texi: Likewise.
3752         * doc/posix-functions/pread.texi: Likewise.
3753         * doc/posix-functions/pwrite.texi: Likewise.
3754         * doc/posix-functions/readdir.texi: Likewise.
3755         * doc/posix-functions/readdir_r.texi: Likewise.
3756         * doc/posix-functions/rewinddir.texi: Likewise.
3757         * doc/posix-functions/scandir.texi: Likewise.
3758         * doc/posix-functions/seekdir.texi: Likewise.
3759         * doc/posix-functions/setrlimit.texi: Likewise.
3760         * doc/posix-functions/statvfs.texi: Likewise.
3761         * doc/posix-functions/telldir.texi: Likewise.
3762         * doc/posix-functions/tmpfile.texi: Likewise.
3763         * doc/posix-functions/truncate.texi: Likewise.
3764         * doc/glibc-functions/fallocate.texi: Likewise.
3765         * doc/glibc-functions/fstatfs.texi: Likewise.
3766         * doc/glibc-functions/fts_children.texi: Likewise.
3767         * doc/glibc-functions/fts_read.texi: Likewise.
3768         * doc/glibc-functions/getdirentries.texi: Likewise.
3769         * doc/glibc-functions/mkostemp.texi: Likewise.
3770         * doc/glibc-functions/mkostemps.texi: Likewise.
3771         * doc/glibc-functions/mkstemps.texi: Likewise.
3772         * doc/glibc-functions/preadv.texi: Likewise.
3773         * doc/glibc-functions/pwritev.texi: Likewise.
3774         * doc/glibc-functions/sendfile.texi: Likewise.
3775         * doc/glibc-functions/statfs.texi: Likewise.
3776
3777 2011-07-24  Bruno Haible  <bruno@clisp.org>
3778
3779         doc: Fix typo.
3780         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
3781
3782 2011-07-24  Bruno Haible  <bruno@clisp.org>
3783
3784         doc: Mention fsusage.
3785         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
3786
3787 2011-07-24  Bruno Haible  <bruno@clisp.org>
3788
3789         doc: Mention new glibc headers and functions.
3790         * doc/glibc-headers/gshadow.texi: New file.
3791         * doc/glibc-functions/endsgent.texi: New file.
3792         * doc/glibc-functions/fgetsgent.texi: New file.
3793         * doc/glibc-functions/fgetsgent_r.texi: New file.
3794         * doc/glibc-functions/getsgent.texi: New file.
3795         * doc/glibc-functions/getsgent_r.texi: New file.
3796         * doc/glibc-functions/getsgnam.texi: New file.
3797         * doc/glibc-functions/getsgnam_r.texi: New file.
3798         * doc/glibc-functions/putsgent.texi: New file.
3799         * doc/glibc-functions/setsgent.texi: New file.
3800         * doc/glibc-functions/sgetsgent.texi: New file.
3801         * doc/glibc-functions/sgetsgent_r.texi: New file.
3802         * doc/glibc-functions/malloc_info.texi: New file.
3803         * doc/glibc-functions/preadv.texi: New file.
3804         * doc/glibc-functions/pwritev.texi: New file.
3805         * doc/glibc-functions/register_printf_modifier.texi: New file.
3806         * doc/glibc-functions/register_printf_specifier.texi: New file.
3807         * doc/glibc-functions/register_printf_type.texi: New file.
3808         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
3809         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
3810         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
3811         * doc/glibc-functions/pthread_getname_np.texi: New file.
3812         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
3813         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
3814         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
3815         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
3816         * doc/glibc-functions/pthread_setname_np.texi: New file.
3817         * doc/glibc-functions/pthread_sigqueue.texi: New file.
3818         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
3819         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
3820         * doc/glibc-functions/qsort_r.texi: New file.
3821         * doc/glibc-functions/quick_exit.texi: New file.
3822         * doc/glibc-functions/syncfs.texi: New file.
3823         * doc/gnulib.texi: Include them.
3824         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
3825         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
3826         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
3827         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
3828         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
3829         * doc/glibc-functions/execvpe.texi: Likewise.
3830
3831 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
3832
3833         ftell: don't include <unistd.h>
3834         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
3835         guaranteed to define off_t, and the ftell module depends on the
3836         stdio module.
3837
3838         ftell: do not assume wraparound signed arithmetic
3839         * lib/ftell.c: Include <limits.h>.
3840         (ftell): Don't assume wraparound signed arithmetic.
3841
3842 2011-07-24  Bruno Haible  <bruno@clisp.org>
3843
3844         close: No longer depend on module 'fclose'.
3845         * modules/close (Depends-on): Remove fclose.
3846         * NEWS: Mention the change.
3847         Suggested by Sam Steingold <sds@gnu.org>.
3848
3849 2011-07-24  Bruno Haible  <bruno@clisp.org>
3850
3851         fsusage: Enable large volume support on AIX >= 5.2.
3852         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
3853         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
3854         instead of STAT_STATVFS.
3855         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
3856
3857         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
3858         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
3859         f_blocks field only on MacOS X.
3860
3861         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
3862         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
3863         * modules/fsusage (Depends-on): Add largefile.
3864
3865 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
3866
3867         * README: Modernize discussion of signed integers.
3868         Assuming overflow wraparound is no longer safe.
3869         Mention ones' complement and signed magnitude.
3870
3871 2011-07-22  Bruno Haible  <bruno@clisp.org>
3872
3873         select tests, pselect tests: Refactor.
3874         * tests/test-select.h: New file, extracted from tests/test-select.c.
3875         (select_fn): New type.
3876         (test, do_select, do_select_nowait, do_select_wait, test_tty,
3877         test_connect_first, test_accept_first, test_pair, test_socket_pair,
3878         test_pipe): Add my_select argument.
3879         (test_function): Renamed from main. Add my_select argument.
3880         * tests/test-select.c: Move most code to tests/test-select.h. Include
3881         test-select.h.
3882         * modules/select-tests (Files): Add tests/test-select.h.
3883         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
3884         (my_select, main): New functions.
3885         * modules/pselect-tests (Files): Add tests/test-select.h,
3886         tests/macros.h, tests/signature.h.
3887         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
3888         (configure.ac): Check for <sys/wait.h>.
3889
3890 2011-07-22  Bruno Haible  <bruno@clisp.org>
3891
3892         sys_select tests: Check the signature of FD_*.
3893         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
3894         signature tests from here...
3895         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
3896         here.
3897         * modules/sys_select-tests (Files): Add tests/signature.h.
3898
3899 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
3900
3901         largefile: new module, replacing large-inode
3902         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
3903         * MODULES.html.sh: Add largefile, remove large-inode.
3904         * modules/largefile, m4/largefile.m4: New files.
3905         * modules/large-inode, m4/large-inode.m4: Remove.
3906
3907         fsusage: port to MacOS X 10.7 with 4 TiB file systems
3908         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
3909         implementations that use only 32 bits to count blocks.
3910         On typical hosts with 1024-byte blocks, this fails with file
3911         systems as small as 4 TiB.  Problem reported by Herb Wartens
3912         <http://debbugs.gnu.org/9140> and this should also fix a similar
3913         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
3914
3915         large-inode: New module
3916         * MODULES.html.sh: Add it.
3917         * modules/large-inode, m4/large-inode.m4: New files.
3918
3919         extensions: Enable extensions on MacOS X 10.5 and later.
3920         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
3921
3922 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
3923
3924         file-has-acl: use acl_extended_file_nofollow if available
3925         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
3926         (acl_extended_file): New macro.
3927         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
3928         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
3929
3930 2011-07-21  Bruno Haible  <bruno@clisp.org>
3931
3932         Declare system functions in a way that works with C++.
3933         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
3934         declare fdopendir as extern "C".
3935         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
3936         declare frexpl as extern "C".
3937         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
3938         declare gai_strerror as extern "C".
3939         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
3940         programs, declare gai_strerror as extern "C".
3941         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
3942         declare getlogin_r as extern "C".
3943         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
3944         as extern "C".
3945         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
3946         declare ldexpl as extern "C".
3947         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
3948         as extern "C".
3949         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
3950         program, declare getmntinfo as extern "C".
3951         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
3952         stpncpy as extern "C".
3953         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
3954         program, declare __xpg_strerror_r as extern "C".
3955         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
3956         strndup as extern "C".
3957         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
3958         declare memset and bzero as extern "C".
3959         Reported by Sam Steingold <sds@gnu.org>.
3960
3961 2011-07-12  Jim Meyering  <meyering@redhat.com>
3962
3963         maint.mk: prohibit inclusion of "verify.h" without use
3964         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
3965
3966 2011-07-19  Pádraig Brady  <P@draigBrady.com>
3967
3968         timer-time: A new module to check for timer_settime()
3969         * m4/timer_time.m4: Check for the posix function.
3970         * modules/timer-time: Add the new module.
3971         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
3972         Mention it.
3973
3974 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
3975             Bruno Haible  <bruno@clisp.org>
3976
3977         pthread_sigmask: assume POSIX threads if --avoid=threadlib
3978         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
3979         not defined, assume POSIX threads and look for pthread_sigmask in
3980         $LIBS, without changing $CPPFLAGS.
3981
3982 2011-07-19  Bruno Haible  <bruno@clisp.org>
3983
3984         strstr: Update cross-compilation guess.
3985         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
3986         CPUs, guess no, in view of glibc
3987         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
3988         Suggested by Eric Blake. Reported by Reuben Thomas.
3989
3990 2011-07-19  Pádraig Brady  <P@draigBrady.com>
3991
3992         getopt-gnu: suppress core dumps from detection code
3993         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
3994         to suppress core dumps that may well occur on glibc systems.
3995         * modules/getopt-gnu: Depend on nocrash.
3996
3997 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
3998
3999         pthread_sigmask: ensure usleep is declared
4000         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
4001         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
4002
4003 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4004
4005         doc: Document NonStop portability issues.
4006         * doc/posix-functions/sigaction.texi (sigaction):
4007         * doc/posix-headers/signal.texi (signal.h):
4008         Document NonStop.  See Joachim Schmitz in
4009         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
4010
4011 2011-07-15  Bruno Haible  <bruno@clisp.org>
4012
4013         ffsl, ffsll: Avoid unportable behaviour.
4014         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
4015
4016 2011-07-15  Bruno Haible  <bruno@clisp.org>
4017
4018         ffs: More tests.
4019         * tests/test-ffs.c (NBITS): New macro.
4020         (main): Add more tests.
4021         * tests/test-ffsl.c (NBITS): New macro.
4022         (main): Add more tests.
4023         * tests/test-ffsll.c (NBITS): New macro.
4024         (main): Add more tests.
4025
4026 2011-07-15  Eric Blake  <eblake@redhat.com>
4027
4028         ffsl, ffsll: new modules
4029         * modules/ffsl: New file.
4030         * modules/ffsll: Likewise.
4031         * m4/ffsl.m4: Likewise.
4032         * m4/ffsll.m4: Likewise.
4033         * lib/ffsl.c: Likewise.
4034         * lib/ffsl.h: Likewise.
4035         * lib/ffsll.c: Likewise.
4036         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
4037         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
4038         * modules/string (Makefile.am): Substitute witnesses.
4039         * lib/strings.in.h (ffsl, ffsll): Declare.
4040         * modules/ffsl-tests: New test file.
4041         * modules/ffsll-tests: Likewise.
4042         * tests/test-ffsl.c: Likewise.
4043         * tests/test-ffsll.c: Likewise.
4044         * MODULES.html.sh (Integer arithmetic functions): Mention it.
4045         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
4046         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
4047
4048         ffs: fix m4 prerequisite
4049         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
4050
4051         ffs: avoid undefined behavior
4052         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
4053         * tests/test-ffs.c (naive, main): Avoid signed shifts.
4054         Reported by Bruno Haible.
4055
4056 2011-07-12  Bruno Haible  <bruno@clisp.org>
4057
4058         pthread_sigmask: Rely on module 'threadlib'.
4059         * modules/pthread_sigmask (Depends-on): Add threadlib.
4060         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
4061         is defined.
4062
4063 2011-07-12  Bruno Haible  <bruno@clisp.org>
4064
4065         regex: Depend on module 'strcase'.
4066         * modules/regex (Depends-on): Add strcase, for strcasecmp().
4067
4068 2011-07-12  Jim Meyering  <meyering@redhat.com>
4069
4070         warn-on-use: fix typo in file name
4071         * modules/snippet/warn-on-use (Files): Correct file name:
4072         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
4073
4074 2011-07-12  Bruno Haible  <bruno@clisp.org>
4075
4076         strings: Document module.
4077         * doc/posix-headers/strings.texi: Mention module 'strings'.
4078
4079 2011-07-12  Bruno Haible  <bruno@clisp.org>
4080
4081         Rename module '_Noreturn' to 'snippet/_Noreturn'.
4082         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
4083         (Files, Makefile.am): Update.
4084         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
4085         * modules/stdlib (Depends-on): Update.
4086
4087 2011-07-12  Bruno Haible  <bruno@clisp.org>
4088
4089         * NEWS: Mention the changes.
4090
4091         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
4092         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
4093         (Files, Makefile.am): Update.
4094         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
4095         * modules/arpa_inet (Depends-on): Update.
4096         * modules/ctype (Depends-on): Update.
4097         * modules/dirent (Depends-on): Update.
4098         * modules/fcntl-h (Depends-on): Update.
4099         * modules/glob (Depends-on): Update.
4100         * modules/iconv-h (Depends-on): Update.
4101         * modules/inttypes-incomplete (Depends-on): Update.
4102         * modules/langinfo (Depends-on): Update.
4103         * modules/locale (Depends-on): Update.
4104         * modules/math (Depends-on): Update.
4105         * modules/netdb (Depends-on): Update.
4106         * modules/poll-h (Depends-on): Update.
4107         * modules/pty (Depends-on): Update.
4108         * modules/search (Depends-on): Update.
4109         * modules/signal (Depends-on): Update.
4110         * modules/spawn (Depends-on): Update.
4111         * modules/stdio (Depends-on): Update.
4112         * modules/stdlib (Depends-on): Update.
4113         * modules/string (Depends-on): Update.
4114         * modules/strings (Depends-on): Update.
4115         * modules/sys_file (Depends-on): Update.
4116         * modules/sys_ioctl (Depends-on): Update.
4117         * modules/sys_select (Depends-on): Update.
4118         * modules/sys_socket (Depends-on): Update.
4119         * modules/sys_stat (Depends-on): Update.
4120         * modules/sys_time (Depends-on): Update.
4121         * modules/sys_times (Depends-on): Update.
4122         * modules/sys_utsname (Depends-on): Update.
4123         * modules/sys_wait (Depends-on): Update.
4124         * modules/termios (Depends-on): Update.
4125         * modules/time (Depends-on): Update.
4126         * modules/unistd (Depends-on): Update.
4127         * modules/wchar (Depends-on): Update.
4128         * modules/wctype-h (Depends-on): Update.
4129         * MODULES.html.sh (Support for building libraries and executables):
4130         Update.
4131
4132         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
4133         * modules/snippet/unused-parameter: Renamed from
4134         modules/unused-parameter.
4135         (Files, Makefile.am): Update.
4136         * build-aux/snippet/unused-parameter.h: Renamed from
4137         build-aux/unused-parameter.h.
4138         * modules/selinux-h (Depends-on): Update.
4139         * modules/unistr/base (Depends-on): Update.
4140         * MODULES.html.sh (Core language properties): Update.
4141
4142         Rename module 'link-warning' to 'snippet/link-warning'.
4143         * modules/snippet/link-warning: Renamed from modules/link-warning.
4144         (Files, Makefile.am): Update.
4145         * build-aux/snippet/link-warning.h: Renamed from
4146         build-aux/link-warning.h.
4147         * MODULES.html.sh (Support for building libraries and executables):
4148         Update.
4149
4150         Rename module 'c++defs' to 'snippet/c++defs'.
4151         * modules/snippet/c++defs: Renamed from modules/c++defs.
4152         (Files, Makefile.am): Update.
4153         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
4154         * modules/arpa_inet (Depends-on): Update.
4155         * modules/ctype (Depends-on): Update.
4156         * modules/dirent (Depends-on): Update.
4157         * modules/fcntl-h (Depends-on): Update.
4158         * modules/glob (Depends-on): Update.
4159         * modules/iconv-h (Depends-on): Update.
4160         * modules/langinfo (Depends-on): Update.
4161         * modules/locale (Depends-on): Update.
4162         * modules/math (Depends-on): Update.
4163         * modules/netdb (Depends-on): Update.
4164         * modules/poll-h (Depends-on): Update.
4165         * modules/pty (Depends-on): Update.
4166         * modules/search (Depends-on): Update.
4167         * modules/signal (Depends-on): Update.
4168         * modules/spawn (Depends-on): Update.
4169         * modules/stdio (Depends-on): Update.
4170         * modules/stdlib (Depends-on): Update.
4171         * modules/string (Depends-on): Update.
4172         * modules/strings (Depends-on): Update.
4173         * modules/sys_ioctl (Depends-on): Update.
4174         * modules/sys_select (Depends-on): Update.
4175         * modules/sys_socket (Depends-on): Update.
4176         * modules/sys_stat (Depends-on): Update.
4177         * modules/sys_time (Depends-on): Update.
4178         * modules/sys_wait (Depends-on): Update.
4179         * modules/termios (Depends-on): Update.
4180         * modules/time (Depends-on): Update.
4181         * modules/unistd (Depends-on): Update.
4182         * modules/wchar (Depends-on): Update.
4183         * modules/wctype-h (Depends-on): Update.
4184
4185         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
4186         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
4187         (Files, Makefile.am): Update.
4188         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
4189         * modules/argv-iter (Depends-on): Update.
4190         * modules/arpa_inet (Depends-on): Update.
4191         * modules/dirent (Depends-on): Update.
4192         * modules/fcntl-h (Depends-on): Update.
4193         * modules/fnmatch (Depends-on): Update.
4194         * modules/getopt-posix (Depends-on): Update.
4195         * modules/glob (Depends-on): Update.
4196         * modules/iconv-h (Depends-on): Update.
4197         * modules/inttypes-incomplete (Depends-on): Update.
4198         * modules/locale (Depends-on): Update.
4199         * modules/math (Depends-on): Update.
4200         * modules/netdb (Depends-on): Update.
4201         * modules/search (Depends-on): Update.
4202         * modules/signal (Depends-on): Update.
4203         * modules/spawn (Depends-on): Update.
4204         * modules/stdio (Depends-on): Update.
4205         * modules/stdlib (Depends-on): Update.
4206         * modules/string (Depends-on): Update.
4207         * modules/strings (Depends-on): Update.
4208         * modules/sys_socket (Depends-on): Update.
4209         * modules/sys_stat (Depends-on): Update.
4210         * modules/sys_time (Depends-on): Update.
4211         * modules/sys_times (Depends-on): Update.
4212         * modules/sys_utsname (Depends-on): Update.
4213         * modules/time (Depends-on): Update.
4214         * modules/unistd (Depends-on): Update.
4215         * modules/wchar (Depends-on): Update.
4216         * MODULES.html.sh (Support for building libraries and executables):
4217         Update.
4218
4219 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
4220
4221         Improvements on _Noreturn and related modules.
4222
4223         modules/_Exit-tests: test _Noreturn too
4224         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
4225         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
4226         (main): Use them.
4227
4228         stdnoreturn, stdnoreturn-tests: remove modules
4229         They're not needed here and a bit premature for use elsewhere.  See
4230         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
4231         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
4232         * tests/test-stdnoreturn.c: Remove files.
4233         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
4234         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
4235         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
4236         and using noreturn.
4237         * modules/openat, modules/sigpipe-die, modules/xalloc:
4238         * modules/xmemdup0, modules/xstrtol:
4239         Remove dependency on stdnoreturn.
4240
4241         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
4242         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
4243         Reparenthesize to avoid GCC warning.
4244         Support Microsoft's syntax.
4245         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
4246
4247         _Noreturn-tests: remove module
4248         * modules/_Noreturn-tests: Remove.
4249         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
4250         * tests/test-_Noreturn.c: Remove.
4251         * tests/test-stdnoreturn.c: Merge from the old
4252         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
4253
4254 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
4255
4256         _Noreturn, stdnoreturn, and related modules.
4257
4258         * top/maint.mk: Adjust to new noreturn support.
4259         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
4260         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
4261
4262         xalloc: use stdnoreturn.h
4263         * lib/xalloc.h: Include <stdnoreturn.h>.
4264         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4265         * modules/xalloc (Depends-on): Add stdnoreturn.
4266
4267         xstrtol: use stdnoreturn.h
4268         * lib/xstrtol.h: Include <stdnoreturn.h>.
4269         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4270         * modules/xstrtol (Depends-on): Add stdnoreturn.
4271
4272         xmemdup0: use stdnoreturn.h
4273         * lib/xmemdup0.h: Include <stdnoreturn.h>.
4274         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4275         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
4276
4277         sigpipe-die: use stdnoreturn.h
4278         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
4279         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4280         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
4281
4282         openat: use stdnoreturn.h
4283         * lib/openat.h: Include <stdnoreturn.h>.
4284         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
4285         * modules/openat (Depends-on): Add stdnoreturn.
4286
4287         * lib/openat-die.c (openat_save_fail): Modernize comment.
4288
4289         * lib/xalloc-die.c (xalloc_die): Modernize comment.
4290
4291         * lib/glthread/thread.h: Modernize comment.
4292
4293         obstack: use _Noreturn
4294         * lib/obstack.c (__attribute__): Remove macro.
4295         (print_and_abort): Use _Noreturn.
4296
4297         c-stack: use _Noreturn
4298         * lib/c-stack.c (die, overflow_handler, segv_handler):
4299         Use _Noreturn rather than __attribute__((noreturn)).
4300
4301         argmatch-tests, exclude_tests: use _Noreturn
4302         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
4303         Remove.
4304         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
4305
4306         stdlib: use _Noreturn
4307         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
4308         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
4309         * modules/stdlib (Depends-on): Add _Noreturn.
4310         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
4311
4312         stdnoreturn-tests: new module
4313         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
4314
4315         stdnoreturn: new module
4316         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
4317         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
4318
4319         _Noreturn-tests: new module
4320         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
4321
4322         _Noreturn: new module
4323         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
4324         New section, mentioning it.
4325         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
4326
4327         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
4328
4329 2011-07-11  Eric Blake  <eblake@redhat.com>
4330
4331         ffs: new module
4332         * modules/ffs: New file.
4333         * m4/ffs.m4: Likewise.
4334         * lib/ffs.c: Likewise.
4335         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
4336         * modules/strings (Makefile.am): Substitute witness.
4337         (Depends-on): Add c++defs.
4338         * lib/strings.in.h (ffs): Declare.
4339         * modules/ffs-tests: New test file.
4340         * tests/test-ffs.c: Test new module.
4341         * MODULES.html.sh (Integer arithmetic functions): Mention it.
4342         * doc/posix-functions/ffs.texi (ffs): Likewise.
4343
4344         regex: avoid compiler warning
4345         * lib/regex.c (includes): Include <strings.h>, for use of
4346         strcasecmp in regcomp.c.
4347         Reported by Joachim Schmitz.
4348
4349 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4350
4351         stdint: respect system's intmax_t if INTMAX_MAX
4352         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
4353         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
4354         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
4355         long but int64_t is long long, and where we will clash with the
4356         system intmax_t if we override it.  See
4357         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
4358         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
4359         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
4360         similarly for UINTMAX_C.
4361
4362 2011-07-08  Bruno Haible  <bruno@clisp.org>
4363
4364         pthread_sigmask tests: Avoid a compiler warning.
4365         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
4366         non-zero.
4367
4368         sigprocmask tests: A better way to avoid a compiler warning.
4369         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
4370         (main): Complain if system() returns non-zero.
4371         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
4372
4373 2011-07-08  Bruno Haible  <bruno@clisp.org>
4374
4375         pthread_sigmask: Work around IRIX bug.
4376         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
4377         bug.
4378         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
4379         there may be unblocked pending signals.
4380         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
4381
4382 2011-07-08  Bruno Haible  <bruno@clisp.org>
4383
4384         pthread_sigmask: Work around Cygwin bug.
4385         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
4386         bug.
4387         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
4388         the system's pthread_sigmask function.
4389         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
4390
4391 2011-07-08  Bruno Haible  <bruno@clisp.org>
4392
4393         pthread_sigmask: Work around bug in single-threaded implementation.
4394         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
4395         FreeBSD, HP-UX, Solaris bug.
4396         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
4397         * lib/pthread_sigmask.c: Include <stddef.h>.
4398         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
4399         the system's pthread_sigmask function.
4400         * modules/pthread_sigmask (configure.ac): Invoke
4401         gl_PREREQ_PTHREAD_SIGMASK.
4402         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
4403         HP-UX, Solaris.
4404
4405 2011-07-08  Eric Blake  <eblake@redhat.com>
4406
4407         test-sigprocmask: avoid compiler warning
4408         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
4409         * tests/test-sigprocmask.c (main): Use it to silence warning.
4410         Reported by Jim Meyering.
4411
4412         test-snprintf: avoid compiler warning
4413         * tests/test-snprintf.c (main): Avoid shadowed declaration.
4414         * tests/test-vsnprintf.c (main): Likewise.
4415         Reported by Jim Meyering.
4416
4417 2011-07-08  Bruno Haible  <bruno@clisp.org>
4418
4419         Tests for module 'pthread_sigmask'.
4420         * modules/pthread_sigmask-tests: New file.
4421         * tests/test-pthread_sigmask1.c: New file, based on
4422         tests/test-sigprocmask.c.
4423         * tests/test-pthread_sigmask2.c: New file.
4424
4425 2011-07-08  Jim Meyering  <meyering@redhat.com>
4426
4427         test-getopt.h: avoid warning about an unused variable
4428         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
4429
4430 2011-07-07  Jim Meyering  <meyering@redhat.com>
4431
4432         maint: reduce list of files exempt from sc_prohibit_leading_TABs
4433         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
4434         now that it no longer contains leading TABs.
4435         Remove unused "url=FIXME" statement.
4436
4437 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
4438
4439         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
4440         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
4441         When gl_THREADLIB is not in use, assume that the POSIX sematics
4442         are desired.  This is better for Emacs, which uses POSIX semantics
4443         on GNUish and/or POSIXish platforms, and does not use threads at
4444         all otherwise.
4445
4446         pthread_sigmask: fix typo when testing for libraries
4447         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
4448         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
4449
4450 2011-07-08  Eric Blake  <eblake@redhat.com>
4451
4452         fts: introduce FTS_NOATIME
4453         * lib/fts_.h (FTS_NOATIME): New bit flag.
4454         (FTS_OPTIONMASK): Adjust.
4455         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
4456         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
4457
4458 2011-07-08  Bruno Haible  <bruno@clisp.org>
4459
4460         Tests for module 'thread'.
4461         * modules/thread-tests: New file.
4462         * tests/test-thread_self.c: New file.
4463         * tests/test-thread_create.cc: New file.
4464
4465 2011-07-08  Bruno Haible  <bruno@clisp.org>
4466
4467         thread: Avoid gcc warnings when using gl_thread_self().
4468         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
4469         'void *'.
4470         (gl_thread_self_pointer): Update.
4471
4472 2011-07-07  Bruno Haible  <bruno@clisp.org>
4473
4474         signal-c++-tests: Check declaration of pthread_sigmask.
4475         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
4476         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
4477         $(LIB_PTHREAD_SIGMASK).
4478
4479 2011-07-07  Bruno Haible  <bruno@clisp.org>
4480
4481         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
4482         * lib/signal.in.h (pthread_sigmask): Override if
4483         REPLACE_PTHREAD_SIGMASK is 1.
4484         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
4485         REPLACE_PTHREAD_SIGMASK.
4486         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
4487         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
4488         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
4489         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
4490         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
4491
4492 2011-07-07  Bruno Haible  <bruno@clisp.org>
4493
4494         pthread_sigmask: Ensure declaration in <signal.h>.
4495         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
4496         include <pthread.h>.
4497         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
4498         problem.
4499
4500 2011-07-07  Bruno Haible  <bruno@clisp.org>
4501
4502         pthread_sigmask: Document the module.
4503         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
4504
4505 2011-07-07  Bruno Haible  <bruno@clisp.org>
4506
4507         pthread_sigmask: Follow gnulib conventions.
4508         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
4509         gl_PTHREAD_SIGMASK.
4510         * modules/pthread_sigmask (configure.ac): Update.
4511
4512 2011-07-07  Bruno Haible  <bruno@clisp.org>
4513
4514         pthread_sigmask: Make declaration C++ safe.
4515         * lib/signal.in.h: In two special conditions, just do an #include_next.
4516         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
4517         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
4518         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
4519         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
4520         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
4521         not REPLACE_PTHREAD_MASK.
4522         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
4523         not REPLACE_PTHREAD_MASK.
4524         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
4525
4526 2011-07-07  Bruno Haible  <bruno@clisp.org>
4527
4528         pthread_sigmask: Fix return value.
4529         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
4530         * lib/pthread_sigmask.c: New file.
4531         * modules/pthread_sigmask (Files): Add it.
4532         (configure.ac): Invoke AC_LIBOBJ.
4533
4534 2011-07-07  Eric Blake  <eblake@redhat.com>
4535
4536         getopt: more portable argv creation
4537         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
4538         const, use char arrays rather than strings.
4539         Suggested by Paul Eggert.
4540
4541 2011-07-07  Bruno Haible  <bruno@clisp.org>
4542
4543         Tests for module 'sigprocmask'.
4544         * modules/sigprocmask-tests: New file.
4545         * tests/test-sigprocmask.c: New file.
4546
4547 2011-07-07  Bruno Haible  <bruno@clisp.org>
4548
4549         float tests: Tweak.
4550         * tests/test-float.c (main): Tweak skip message.
4551
4552 2011-07-07  Eric Blake  <eblake@redhat.com>
4553
4554         getopt: avoid compiler warning during configure
4555         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
4556         assigning string literals to non-const pointer.
4557
4558         getopt-gnu: avoid crash in glibc getopt
4559         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
4560         * tests/test-getopt.h (test_getopt): Enhance test.
4561         * tests/test-getopt_long.h (test_getopt_long): Likewise.
4562         * doc/posix-functions/getopt.texi (getopt): Document it.
4563         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4564         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4565         Likewise.
4566
4567 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
4568
4569         getopt: handle W; without long options in getopt [BZ #12922]
4570         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
4571         but no long options are defined, just return 'W'.
4572
4573 2011-07-07  Bruno Haible  <bruno@clisp.org>
4574
4575         Avoid literal tabs.
4576         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
4577         variable containing a tab instead of a literal tab.
4578         Reported by Jim Meyering.
4579
4580 2011-07-07  Bruno Haible  <bruno@clisp.org>
4581
4582         Comments.
4583         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
4584
4585 2011-07-06  Bruno Haible  <bruno@clisp.org>
4586
4587         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
4588         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
4589         <winsock2.h>.
4590         (rpl_fd_isset, FD_ISSET): New definitions, copied from
4591         lib/sys_socket.in.h.
4592         (close, gethostname): Hide declarations from <winsock2.h>.
4593         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
4594         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
4595         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
4596         (select): Don't override if gnulib's <sys/select.h> was already
4597         included.
4598         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
4599         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
4600         setsockopt, shutdown, select): Tweak indentation.
4601
4602 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4603
4604         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
4605         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
4606         in an application that does not use the sys_select module.
4607
4608 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
4609
4610         poll: do not return 0 on timeout=-1
4611         * lib/poll.c: Loop with yield if no events occured
4612
4613 2011-07-06  Eric Blake  <eblake@redhat.com>
4614
4615         pthread_sigmask: always replace when not using pthread
4616         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
4617         replacement when using some threading other than pthread.  Fix
4618         logic bug.
4619
4620 2011-07-06  Bruno Haible  <bruno@clisp.org>
4621
4622         Comments.
4623         * m4/printf.m4: Update comments about mingw.
4624
4625 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4626
4627         sys_select: define sigset_t more portably
4628         * lib/sys_select.in.h: Always include <sys/types.h>, since
4629         we now need sigset_t and mingw defines it there.
4630         Include <signal.h> before split inclusion guard, to avoid
4631         mishaps on Solaris, whose <signal.h> eventually includes us.
4632         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
4633         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
4634         which come from ...
4635         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
4636         gl_CHECK_TYPE_SIGSET_T.
4637         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
4638         does the real work.
4639         * modules/sys_select (Depends-on): Add 'signal'.
4640
4641         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
4642         Suggested by Bruno Haible.
4643
4644         pselect: Use pthread_sigmask, not sigprocmask.
4645         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
4646         multithreaded apps better than sigprocmask does.
4647         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
4648         sigprocmask directly.
4649
4650 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
4651
4652         * lib/pselect.c (pselect): Use plain name, without "rpl_".
4653         Don't #undef,  since we don't need any underlying pselect.
4654         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
4655         (Depends-on): Add select.
4656         (Link): Add $(LIBSOCKET).
4657         These changes suggested by Bruno Haible.
4658
4659         pselect: document better
4660         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
4661         * doc/posix-functions/pselect.texi (pselect): Document new module.
4662
4663         pthread_sigmask: new module
4664         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
4665         * doc/posix-functions/pthread_sigmask.texi: Document new module.
4666         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
4667         This is done only as a macro; I don't know how well that'll
4668         work for C++.  Move <sys/types.h> include before the include_next,
4669         to avoid mishap on Solaris.
4670         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
4671         * modules/signal (Makefile.am): Substitute the check's results.
4672         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
4673
4674         test-pselect: new module
4675         * modules/pselect-tests, tests/test-pselect.c: New files.
4676         * tests/test-select.c, tests/test-sys_select-c++.cc:
4677         If TEST_PSELECT is defined, test pselect instead of testing select.
4678
4679         * tests/test-sys_select.c (sigset_t): Test for it, too.
4680         Suggested by Bruno Haible.
4681
4682 2011-07-05  Eric Blake  <eblake@redhat.com>
4683
4684         snprintf: guarantee %1$d, for libintl
4685         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
4686         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
4687         * doc/posix-functions/snprintf.texi (snprintf): Update.
4688         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
4689         * tests/test-snprintf.c (main): Enhance test.
4690         * tests/test-vsnprintf.c (main): Likewise.
4691
4692 2011-07-05  Jim Meyering  <meyering@redhat.com>
4693
4694         maint: exempt stdio-read.c and stdio-write.c from the cppi check
4695         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
4696         per Bruno's request, to accommodate this idiom (no space after "#")
4697         even when the function is inside an #if block:
4698         char *
4699         gets (char *s)
4700         #undef gets
4701         {
4702           ...
4703         }
4704
4705 2011-07-04  Jim Meyering  <meyering@redhat.com>
4706
4707         maint: indent with spaces, not TABs, and add a rule to check this
4708         * tests/test-userspec.c: Indent with spaces, not TABs.
4709         * tests/test-argp.c: Likewise.
4710         * tests/test-c-stack2.sh: Likewise.
4711         * tests/test-parse-duration.sh: Likewise
4712         * m4/strtod.m4: Likewise.
4713         * m4/alloca.m4: Likewise.
4714         * m4/pselect.m4: Likewise.
4715         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
4716
4717 2011-07-03  Jim Meyering  <meyering@redhat.com>
4718
4719         maint.mk: correct omissions in prohibit_argmatch_without_use check
4720         This rule would mistakenly report that argmatch.h is included without
4721         use even when both the argmatch and invalid_arg macro were used.
4722         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
4723         of argmatch and invalid_arg.
4724
4725 2011-07-03  Bruno Haible  <bruno@clisp.org>
4726
4727         Comments about EINTR.
4728         * lib/safe-read.h: Explain the purpose of this module.
4729         * lib/safe-write.h: Likewise.
4730         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
4731         module.
4732         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
4733         module.
4734         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4735
4736 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
4737
4738         xnanosleep: Rewrite to use new dtotimespec module.
4739         It has the conversion code that used to be in xnanosleep.
4740         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
4741         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
4742         (TIME_T_MAX): Remove.
4743         (xnanosleep): Rewrite in terms of dtotimespec.
4744         * modules/xnanosleep (Depends-on): Add dtotimespec.
4745         Remove intprops, stdbool.
4746
4747         timespec-add, timespec-sub: new modules
4748         * lib/timespec.h (timespec_add, timespec_sub): New decls.
4749         * lib/timespec-add.c, lib/timespec-sub.c:
4750         * modules/timespec-add, modules/timespec-sub: New files.
4751
4752         dtotimespec: new module
4753         * lib/timespec.h (dtotimespec): New decl.
4754         * lib/dtotimespec.c, modules/dtotimespec: New files.
4755
4756         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
4757
4758         pselect: new module
4759         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
4760         (pselect): New decls.
4761         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
4762         since the standard pselect decl uses 'restrict'.
4763         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
4764         HAVE_PSELECT, REPLACE_PSELECT.
4765         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
4766         HAVE_PSELECT, REPLACE_PSELECT.
4767         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
4768
4769         sys_select: don't depend on sys_socket
4770         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
4771         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
4772         This fix works on GNU and GNU-like platforms, but has not been tested
4773         on native Windows.
4774         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
4775         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
4776         gl_HEADER_SYS_SOCKET.
4777         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
4778         gl_PREREQ_SYS_H_WINSOCK2.
4779
4780 2011-06-29  Eric Blake  <eblake@redhat.com>
4781
4782         pipe2: fix C89 compile problem
4783         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
4784         Reported by Bruno Haible.
4785
4786         pipe, pipe2: don't corrupt fd on error
4787         * lib/pipe.c (pipe): Leave fd unchanged on error.
4788         * lib/pipe2.c (pipe2): Likewise.
4789         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
4790         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
4791
4792 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
4793
4794         mmap-anon: do not use regular expressions inadvertently
4795         * m4/mmap-anon.m4: Remove trailing period from strings sought
4796         in the output.
4797
4798 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
4799
4800         nanosleep: fix integer overflow problem
4801         * lib/nanosleep.c (my_usleep): Don't assume signed integer
4802         arithmetic wraps around on overflow.
4803
4804         nanosleep: simplify carrying
4805         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
4806         first call to the underyling nanosleep, not for the last one.
4807         This doesn't fix any bugs, but it simplifies the computation of
4808         the remaining delay.  Found while auditing integer overflow issues.
4809
4810         dup2: remove test for existence of fcntl
4811         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
4812         "#if HAVE_FCNTL", in the configure-time test program.
4813         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
4814         and therefore speeds up "configure" a bit.  Found while
4815         adding the dup2 module to Emacs.
4816
4817 2011-06-24  Eric Blake  <eblake@redhat.com>
4818
4819         maint.mk: enhance useless header checks
4820         * top/maint.mk (_sc_header_without_use): Check both include
4821         styles.
4822         (sc_prohibit_assert_without_use)
4823         (sc_prohibit_close_stream_without_use)
4824         (sc_prohibit_getopt_without_use)
4825         (sc_prohibit_quotearg_without_use)
4826         (sc_prohibit_quote_without_use)
4827         (sc_prohibit_long_options_without_use)
4828         (sc_prohibit_inttostr_without_use)
4829         (sc_prohibit_ignore_value_without_use)
4830         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
4831         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
4832         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
4833         (sc_prohibit_hash_pjw_without_use)
4834         (sc_prohibit_safe_read_without_use)
4835         (sc_prohibit_argmatch_without_use)
4836         (sc_prohibit_canonicalize_without_use)
4837         (sc_prohibit_root_dev_ino_without_use)
4838         (sc_prohibit_openat_without_use)
4839         (sc_prohibit_c_ctype_without_use)
4840         (sc_prohibit_signal_without_use)
4841         (sc_prohibit_stdio--_without_use)
4842         (sc_prohibit_stdio-safer_without_use)
4843         (sc_prohibit_strings_without_use)
4844         (sc_prohibit_intprops_without_use)
4845         (sc_prohibit_stddef_without_use)
4846         (sc_prohibit_xfreopen_without_use): Update clients.
4847
4848 2011-06-24  Jim Meyering  <meyering@redhat.com>
4849
4850         syntax-check: keep one maint.mk rule in sync with its header
4851         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
4852         of the bug Eric has just fixed, with today's commit 25e4c2ec.
4853         I prefer to avoid temporary files here, so use <(...), but that
4854         is not supported by /bin/sh, so...
4855         (SHELL): Define to /bin/bash.
4856
4857 2011-06-24  Eric Blake  <eblake@redhat.com>
4858
4859         maint.mk: update sc_prohibit_intprops_without_use
4860         * top/maint.mk (_intprops_names): Match recent changes.
4861
4862 2011-06-24  Bruno Haible  <bruno@clisp.org>
4863
4864         strerror-override: No-op tweak.
4865         * lib/strerror-override.h (strerror_override): Reorder conditions,
4866         for consistency with lib/strerror-override.c.
4867
4868 2011-06-23  Eric Blake  <eblake@redhat.com>
4869
4870         maint.mk: test further PATH_MAX issues
4871         * top/maint.mk (sc_prohibit_path_max_array): Rename...
4872         (sc_prohibit_path_max_allocation): ...and also test alloca.
4873         Suggested by Jim Meyering.
4874
4875 2011-06-22  Eric Blake  <eblake@redhat.com>
4876
4877         maint.mk: add syntax-check to avoid char[PATH_MAX]
4878         * top/maint.mk (sc_prohibit_path_max_array): New rule.
4879
4880         stat: be robust to PATH_MAX definition
4881         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
4882         * modules/stat (Depends-on): Add verify.
4883
4884         link: work around IRIX bug
4885         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
4886         * lib/link.c (rpl_link): Work around it.
4887         * tests/test-link.h (test_link): Enhance test.
4888         * doc/posix-functions/link.texi (link): Document the bug.
4889
4890         getopt: silence clang warning
4891         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
4892         dereference.
4893         Reported by Gustavo Martin Domato.
4894
4895 2011-06-22  Jim Meyering  <meyering@redhat.com>
4896
4897         bootstrap: do not insert a blank line into each .gitignore file
4898         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
4899
4900 2011-06-21  Eric Blake  <eblake@redhat.com>
4901
4902         perror: test for output mismatch
4903         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
4904         perror on IRIX.
4905
4906         strerror_r: fix OpenBSD behavior on out-of-range
4907         * lib/strerror_r.c (strerror_r): Always use maximal string.
4908         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
4909
4910         strerror_r: fix OpenBSD behavior on 0
4911         * lib/strerror-override.c (strerror_override): Also override 0
4912         when needed.
4913         * lib/strerror-override.h (strerror_override): Likewise.
4914         * lib/strerror.c (strerror): Simplify, now that 0 override is done
4915         earlier.
4916         * lib/strerror_r.c (strerror_r): Likewise.
4917         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
4918         behavior...
4919         (gl_FUNC_STRERROR_0): ...into new macro.
4920         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
4921         is overridden.
4922         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
4923         * modules/strerror-override (Files): Add strerror.m4.
4924         (configure.ac): Also provide override for 0 when needed.
4925         * doc/posix-functions/strerror.texi (strerror): Document this.
4926         * doc/posix-functions/perror.texi (perror): Likewise.
4927
4928         perror: adjust array size
4929         * modules/perror (Depends-on): Add strerror-override.
4930         * lib/perror.c (perror): Use it to avoid magic number.
4931
4932         strerror-override: reduce size
4933         * lib/strerror-override.c (strerror_override): Use fewer lines.
4934
4935 2011-06-20  Bruno Haible  <bruno@clisp.org>
4936
4937         pathmax: Ensure correct value for PATH_MAX on HP-UX.
4938         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
4939
4940 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
4941
4942         alloca: port to compilers that can optimize like GCC 4.6.0
4943         * lib/alloca.c (find_stack_direction): New signature, taken from
4944         Autoconf git.  This works with GCC 4.6.0.  This code should never
4945         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
4946         be used with other compilers that optimize as well as GCC 4.6.0 does.
4947         (alloca): Adjust to new signature.
4948         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
4949         New macro, which patches Autoconf in a similar way.
4950
4951         c-stack: stop worrying about stack direction
4952         * lib/c-stack.c (find_stack_direction): Remove.
4953         (segv_handler): Don't worry about stack direction growth, as it's
4954         too much of a pain to configure this correctly, given how compilers
4955         are optimizing-away our stack-growth detection code.  Instead, assume
4956         that any access to just before or just after the stack is OK.
4957         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
4958         Don't require AC_FUNC_ALLOCA; no longer needed.
4959
4960 2011-06-20  Eric Blake  <eblake@redhat.com>
4961
4962         test-stat: don't allocate PATH_MAX bytes
4963         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
4964         PATH_MAX-sized buffer.
4965         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
4966         * modules/stat-tests (Depends-on): Likewise.
4967         * tests/test-fstatat.c (includes): Drop pathmax.h.
4968         * tests/test-stat.c (includes): Likewise.
4969         Reported by Bruno Haible.
4970
4971 2011-06-20  Bruno Haible  <bruno@clisp.org>
4972
4973         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
4974         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
4975         * lib/float.c: New file.
4976         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
4977         REPLACE_FLOAT_LDBL.
4978         * modules/float (Files): Add lib/float.c.
4979         (configure.ac): Invoke AC_LIBOBJ.
4980         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
4981
4982 2011-06-20  Bruno Haible  <bruno@clisp.org>
4983
4984         Tests for module 'float'.
4985         * modules/float-tests: New file.
4986         * tests/test-float.c: New file.
4987
4988 2011-06-19  Bruno Haible  <bruno@clisp.org>
4989
4990         isinf: Coding style.
4991         * lib/isinf.c: Use GNU coding style.
4992
4993 2011-06-19  Bruno Haible  <bruno@clisp.org>
4994
4995         linkat test: Avoid test failure on AIX 7.1.
4996         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
4997         * tests/test-link.h (test_link): Likewise.
4998
4999 2011-06-19  Bruno Haible  <bruno@clisp.org>
5000
5001         pread test: Avoid test failure on OpenBSD 4.9.
5002         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
5003
5004 2011-06-19  Bruno Haible  <bruno@clisp.org>
5005
5006         sprintf-posix: Fix test failure on AIX 7.1.
5007         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
5008         * doc/posix-functions/dprintf.texi: Mention limited precision problem
5009         on AIX.
5010         * doc/posix-functions/fprintf.texi: Likewise.
5011         * doc/posix-functions/printf.texi: Likewise.
5012         * doc/posix-functions/snprintf.texi: Likewise.
5013         * doc/posix-functions/sprintf.texi: Likewise.
5014         * doc/posix-functions/vdprintf.texi: Likewise.
5015         * doc/posix-functions/vfprintf.texi: Likewise.
5016         * doc/posix-functions/vprintf.texi: Likewise.
5017         * doc/posix-functions/vsnprintf.texi: Likewise.
5018         * doc/posix-functions/vsprintf.texi: Likewise.
5019
5020 2011-06-19  Bruno Haible  <bruno@clisp.org>
5021
5022         roundl-ieee: Fix test failure on AIX 7.1.
5023         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
5024         * doc/posix-functions/roundl.texi: Mention problem with negative
5025         arguments.
5026
5027 2011-06-19  Bruno Haible  <bruno@clisp.org>
5028
5029         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
5030         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
5031         * doc/posix-functions/round.texi: Mention problem with negative
5032         arguments.
5033         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
5034
5035 2011-06-19  Bruno Haible  <bruno@clisp.org>
5036
5037         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
5038         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
5039         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
5040         * doc/posix-functions/roundf.texi: Mention problem with negative
5041         arguments.
5042         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
5043
5044 2011-06-19  Bruno Haible  <bruno@clisp.org>
5045
5046         ceilf-ieee: Work around bug on MacOS X 10.5.
5047         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
5048
5049         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
5050         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
5051         IEEE compliant, avoid compiler optimizations.
5052         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
5053         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5054         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
5055         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5056         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5057         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5058         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5059         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5060         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5061         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5062
5063 2011-06-19  Bruno Haible  <bruno@clisp.org>
5064
5065         ceilf-ieee: Work around bug on AIX 7.1.
5066         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
5067         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
5068
5069 2011-06-19  Bruno Haible  <bruno@clisp.org>
5070
5071         ceil-ieee: Work around bug on AIX 7.1.
5072         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
5073         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
5074
5075 2011-06-18  Bruno Haible  <bruno@clisp.org>
5076
5077         fsync test: Avoid test failure on MacOS X and AIX.
5078         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
5079         EINVAL.
5080
5081 2011-06-18  Bruno Haible  <bruno@clisp.org>
5082
5083         openat, fdopendir tests: Fix link errors.
5084         * modules/openat-tests (Depends-on): Add progname.
5085         * modules/fdopendir-tests (Depends-on): Likewise.
5086         * tests/test-fchownat.c: Include progname.h.
5087         (main): Call set_program_name.
5088         * tests/test-fstatat.c: Include progname.h.
5089         (main): Call set_program_name.
5090         * tests/test-mkdirat.c: Include progname.h.
5091         (main): Call set_program_name.
5092         * tests/test-openat.c: Include progname.h.
5093         (main): Call set_program_name.
5094         * tests/test-unlinkat.c: Include progname.h.
5095         (main): Call set_program_name.
5096         * tests/test-fdopendir.c: Include progname.h.
5097         (main): Call set_program_name.
5098
5099 2011-06-18  Bruno Haible  <bruno@clisp.org>
5100
5101         Doc update.
5102         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
5103         HP-UX.
5104         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
5105
5106 2011-06-18  Bruno Haible  <bruno@clisp.org>
5107
5108         getcwd tests: Avoid compilation error on HP-UX 11.31.
5109         * modules/getcwd-tests (Depends-on): Add pathmax.
5110         * tests/test-getcwd.c: Include pathmax.h.
5111
5112 2011-06-18  Bruno Haible  <bruno@clisp.org>
5113
5114         isfinite, isinf: Fix link error on AIX 6 and 7.
5115         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
5116         needed, also test the macro with a 'float' argument.
5117         * m4/isinf.m4 (gl_ISINF): Likewise.
5118
5119 2011-06-18  Bruno Haible  <bruno@clisp.org>
5120
5121         getloadavg: Don't clobber LIBS. Regression from previous commit.
5122         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
5123         AC_CHECK_LIB from here...
5124         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
5125         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
5126         gl_func_getloadavg_done.
5127         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5128
5129 2011-06-18  Bruno Haible  <bruno@clisp.org>
5130
5131         clean-temp: Improve documentation.
5132         * lib/clean-temp.h: Explain better how to use this module.
5133         Reported by John Darrington <john@darrington.wattle.id.au>.
5134
5135 2011-06-17  Bruno Haible  <bruno@clisp.org>
5136
5137         pread, pwrite: Avoid cc warning on AIX.
5138         * lib/unistd.in.h (pread): Undefine before defining as a macro.
5139         (pwrite): Likewise.
5140
5141 2011-06-17  Bruno Haible  <bruno@clisp.org>
5142
5143         spawn-pipe tests: Fix link error.
5144         * tests/test-spawn-pipe-child.c: Undefine fprintf.
5145         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5146
5147 2011-06-17  Bruno Haible  <bruno@clisp.org>
5148
5149         Tests: Remove unnecessary dependency.
5150         * modules/canonicalize-tests (Depends-on): Remove progname.
5151         * modules/chown-tests (Depends-on): Likewise.
5152         * modules/dirname-tests (Depends-on): Likewise.
5153         * modules/fdopendir-tests (Depends-on): Likewise.
5154         * modules/fdutimensat-tests (Depends-on): Likewise.
5155         * modules/hash-tests (Depends-on): Likewise.
5156         * modules/lchown-tests (Depends-on): Likewise.
5157         * modules/linkat-tests (Depends-on): Likewise.
5158         * modules/renameat-tests (Depends-on): Likewise.
5159         * modules/spawn-pipe-tests (Depends-on): Likewise.
5160         * modules/utimensat-tests (Depends-on): Likewise.
5161
5162 2011-06-17  Bruno Haible  <bruno@clisp.org>
5163
5164         spawn-pipe tests: Fix link error.
5165         * tests/test-spawn-pipe-child.c: Undefine fflush.
5166
5167 2011-06-17  Bruno Haible  <bruno@clisp.org>
5168
5169         Fix tests link errors.
5170         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
5171         * modules/chown-tests (Makefile.am): Don't link test-chown with
5172         LIBINTL.
5173         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
5174         LIBINTL.
5175         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
5176         LIBINTL.
5177         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
5178         LIBINTL.
5179
5180 2011-06-16  Bruno Haible  <bruno@clisp.org>
5181
5182         crypto/gc-sha1: Fix recent regression.
5183         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
5184         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
5185
5186         crypto/gc-md5: Fix recent regression.
5187         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
5188
5189         crypto/gc-md4: Fix recent regression.
5190         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
5191         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
5192
5193         crypto/gc-arctwo: Fix recent regression.
5194         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
5195         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
5196
5197         crypto/gc-rijndael: Fix recent regression.
5198         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
5199         (configure.ac): Invoke AC_LIBOBJ here.
5200         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
5201         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5202
5203         crypto/gc-hmac-sha1: Fix recent regression.
5204         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
5205         (configure.ac): Invoke AC_LIBOBJ here.
5206         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
5207         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5208
5209         crypto/gc-hmac-md5: Fix recent regression.
5210         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
5211         (configure.ac): Invoke AC_LIBOBJ here.
5212         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
5213         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5214
5215         crypto/gc-des: Fix recent regression.
5216         * modules/crypto/gc-des (Files): Remove m4/des.m4.
5217         (configure.ac): Invoke AC_LIBOBJ here.
5218         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
5219         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5220
5221         crypto/gc-arcfour: Fix recent regression.
5222         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
5223         (configure.ac): Invoke AC_LIBOBJ here.
5224         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
5225         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5226
5227 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
5228
5229         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
5230         After the 2011-05-21 change, this macro requires
5231         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
5232         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
5233
5234 2011-06-16  Bruno Haible  <bruno@clisp.org>
5235
5236         fprintftime: Move AC_LIBOBJ invocations to module description.
5237         * m4/fprintftime.m4: Remove file.
5238         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
5239         (configure.ac): Remove gl_FPRINTFTIME call.
5240         (Makefile.am): Augment lib_SOURCES.
5241         Reported by Jim Meyering.
5242
5243 2011-06-16  Bruno Haible  <bruno@clisp.org>
5244
5245         tmpfile-safer: Finish 2011-05-23 commit.
5246         * m4/stdio-safer.m4: Really remove file.
5247         Reported by Jim Meyering.
5248
5249 2011-06-16  Bruno Haible  <bruno@clisp.org>
5250
5251         syntax-check: Fix typo.
5252         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
5253         printf-posix.m4.
5254         Reported by Jim Meyering.
5255
5256 2011-06-13  Jim Meyering  <meyering@redhat.com>
5257
5258         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
5259         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
5260
5261 2011-05-23  Bruno Haible  <bruno@clisp.org>
5262
5263         yesno: Move AC_LIBOBJ invocations to module description.
5264         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
5265         * modules/yesno (Makefile.am): Augment lib_SOURCES.
5266
5267 2011-05-23  Bruno Haible  <bruno@clisp.org>
5268
5269         xstrtol: Move AC_LIBOBJ invocations to module description.
5270         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
5271         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
5272
5273 2011-05-23  Bruno Haible  <bruno@clisp.org>
5274
5275         xstrtold: Move AC_LIBOBJ invocations to module description.
5276         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
5277         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
5278
5279 2011-05-23  Bruno Haible  <bruno@clisp.org>
5280
5281         xstrtod: Move AC_LIBOBJ invocations to module description.
5282         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
5283         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
5284
5285 2011-05-23  Bruno Haible  <bruno@clisp.org>
5286
5287         xnanosleep: Move AC_LIBOBJ invocations to module description.
5288         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
5289         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
5290
5291 2011-05-23  Bruno Haible  <bruno@clisp.org>
5292
5293         xgetcwd: Move AC_LIBOBJ invocations to module description.
5294         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
5295         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
5296
5297 2011-05-23  Bruno Haible  <bruno@clisp.org>
5298
5299         xalloc: Move AC_LIBOBJ invocations to module description.
5300         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
5301         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
5302
5303 2011-05-23  Bruno Haible  <bruno@clisp.org>
5304
5305         write-any-file: Move AC_LIBOBJ invocations to module description.
5306         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
5307         invocation.
5308         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
5309
5310 2011-05-23  Bruno Haible  <bruno@clisp.org>
5311
5312         utimens: Move AC_LIBOBJ invocations to module description.
5313         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
5314         * modules/utimens (Makefile.am): Augment lib_SOURCES.
5315
5316 2011-05-23  Bruno Haible  <bruno@clisp.org>
5317
5318         utimecmp: Move AC_LIBOBJ invocations to module description.
5319         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
5320         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
5321
5322 2011-05-23  Bruno Haible  <bruno@clisp.org>
5323
5324         userspec: Move AC_LIBOBJ invocations to module description.
5325         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
5326         * modules/userspec (Makefile.am): Augment lib_SOURCES.
5327
5328 2011-05-23  Bruno Haible  <bruno@clisp.org>
5329
5330         unlinkdir: Move AC_LIBOBJ invocations to module description.
5331         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
5332         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
5333
5334 2011-05-23  Bruno Haible  <bruno@clisp.org>
5335
5336         unistd-safer: Move AC_LIBOBJ invocations to module description.
5337         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
5338         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
5339
5340 2011-05-23  Bruno Haible  <bruno@clisp.org>
5341
5342         tempname: Move AC_LIBOBJ invocations to module description.
5343         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
5344         * modules/tempname (Makefile.am): Augment lib_SOURCES.
5345
5346 2011-05-23  Bruno Haible  <bruno@clisp.org>
5347
5348         strftime: Move AC_LIBOBJ invocations to module description.
5349         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
5350         * modules/strftime (Makefile.am): Augment lib_SOURCES.
5351
5352 2011-05-23  Bruno Haible  <bruno@clisp.org>
5353
5354         stdlib-safer: Move AC_LIBOBJ invocations to module description.
5355         * m4/stdlib-safer.m4: Remove file.
5356         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
5357         (configure.ac): Remove gl_STDLIB_SAFER call.
5358         (Makefile.am): Augment lib_SOURCES.
5359
5360 2011-05-23  Bruno Haible  <bruno@clisp.org>
5361
5362         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
5363         * m4/stdio-safer.m4: Remove file.
5364         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
5365         (configure.ac): Remove gl_TMPFILE_SAFER call.
5366         (Makefile.am): Augment lib_SOURCES.
5367
5368 2011-05-23  Bruno Haible  <bruno@clisp.org>
5369
5370         popen-safer: Move AC_LIBOBJ invocations to module description.
5371         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
5372         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
5373         (configure.ac): Remove gl_POPEN_SAFER call.
5374         (Makefile.am): Augment lib_SOURCES.
5375
5376 2011-05-23  Bruno Haible  <bruno@clisp.org>
5377
5378         freopen-safer: Move AC_LIBOBJ invocations to module description.
5379         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
5380         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
5381         (configure.ac): Remove gl_FREOPEN_SAFER call.
5382         (Makefile.am): Augment lib_SOURCES.
5383
5384 2011-05-23  Bruno Haible  <bruno@clisp.org>
5385
5386         fopen-safer: Move AC_LIBOBJ invocations to module description.
5387         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
5388         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
5389         (configure.ac): Remove gl_FOPEN_SAFER call.
5390         (Makefile.am): Augment lib_SOURCES.
5391
5392 2011-05-23  Bruno Haible  <bruno@clisp.org>
5393
5394         crypto/sha512: Move AC_LIBOBJ invocations to module description.
5395         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
5396         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
5397
5398 2011-05-23  Bruno Haible  <bruno@clisp.org>
5399
5400         crypto/sha256: Move AC_LIBOBJ invocations to module description.
5401         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
5402         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
5403
5404 2011-05-23  Bruno Haible  <bruno@clisp.org>
5405
5406         crypto/sha1: Move AC_LIBOBJ invocations to module description.
5407         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
5408         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
5409
5410 2011-05-23  Bruno Haible  <bruno@clisp.org>
5411
5412         settime: Move AC_LIBOBJ invocations to module description.
5413         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
5414         * modules/settime (Makefile.am): Augment lib_SOURCES.
5415
5416 2011-05-23  Bruno Haible  <bruno@clisp.org>
5417
5418         savedir: Move AC_LIBOBJ invocations to module description.
5419         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
5420         * modules/savedir (Makefile.am): Augment lib_SOURCES.
5421
5422 2011-05-23  Bruno Haible  <bruno@clisp.org>
5423
5424         save-cwd: Move AC_LIBOBJ invocations to module description.
5425         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
5426         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
5427
5428 2011-05-23  Bruno Haible  <bruno@clisp.org>
5429
5430         same: Move AC_LIBOBJ invocations to module description.
5431         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
5432         * modules/same (Makefile.am): Augment lib_SOURCES.
5433
5434 2011-05-23  Bruno Haible  <bruno@clisp.org>
5435
5436         safe-write: Move AC_LIBOBJ invocations to module description.
5437         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
5438         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
5439         instead of gl_SAFE_WRITE.
5440         (Makefile.am): Augment lib_SOURCES.
5441
5442 2011-05-23  Bruno Haible  <bruno@clisp.org>
5443
5444         safe-read: Move AC_LIBOBJ invocations to module description.
5445         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
5446         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
5447         of gl_SAFE_READ.
5448         (Makefile.am): Augment lib_SOURCES.
5449
5450 2011-05-23  Bruno Haible  <bruno@clisp.org>
5451
5452         safe-alloc: Move AC_LIBOBJ invocations to module description.
5453         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
5454         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
5455
5456 2011-05-23  Bruno Haible  <bruno@clisp.org>
5457
5458         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
5459         * m4/rijndael.m4: Remove file.
5460         * modules/crypto/rijndael (Files): Remove it.
5461         (configure.ac): Remove gl_RIJNDAEL call.
5462         (Makefile.am): Augment lib_SOURCES.
5463
5464 2011-05-23  Bruno Haible  <bruno@clisp.org>
5465
5466         readtokens: Move AC_LIBOBJ invocations to module description.
5467         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
5468         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
5469
5470 2011-05-23  Bruno Haible  <bruno@clisp.org>
5471
5472         read-file: Move AC_LIBOBJ invocations to module description.
5473         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
5474         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
5475         of gl_FUNC_READ_FILE.
5476         (Makefile.am): Augment lib_SOURCES.
5477
5478 2011-05-23  Bruno Haible  <bruno@clisp.org>
5479
5480         quotearg: Move AC_LIBOBJ invocations to module description.
5481         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
5482         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
5483
5484 2011-05-23  Bruno Haible  <bruno@clisp.org>
5485
5486         quote: Move AC_LIBOBJ invocations to module description.
5487         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
5488         * modules/quote (Makefile.am): Augment lib_SOURCES.
5489
5490 2011-05-23  Bruno Haible  <bruno@clisp.org>
5491
5492         posixver: Move AC_LIBOBJ invocations to module description.
5493         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
5494         * modules/posixver (Makefile.am): Augment lib_SOURCES.
5495
5496 2011-05-23  Bruno Haible  <bruno@clisp.org>
5497
5498         posixtm: Move AC_LIBOBJ invocations to module description.
5499         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
5500         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
5501
5502 2011-05-23  Bruno Haible  <bruno@clisp.org>
5503
5504         physmem: Move AC_LIBOBJ invocations to module description.
5505         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
5506         * modules/physmem (Makefile.am): Augment lib_SOURCES.
5507
5508 2011-05-23  Bruno Haible  <bruno@clisp.org>
5509
5510         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
5511         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
5512         invocation.
5513         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
5514
5515 2011-05-23  Bruno Haible  <bruno@clisp.org>
5516
5517         mpsort: Move AC_LIBOBJ invocations to module description.
5518         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
5519         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
5520
5521 2011-05-23  Bruno Haible  <bruno@clisp.org>
5522
5523         modechange: Move AC_LIBOBJ invocations to module description.
5524         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
5525         * modules/modechange (Makefile.am): Augment lib_SOURCES.
5526
5527 2011-05-23  Bruno Haible  <bruno@clisp.org>
5528
5529         mkdir-p: Move AC_LIBOBJ invocations to module description.
5530         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
5531         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
5532
5533 2011-05-23  Bruno Haible  <bruno@clisp.org>
5534
5535         mkancesdirs: Move AC_LIBOBJ invocations to module description.
5536         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
5537         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
5538
5539 2011-05-23  Bruno Haible  <bruno@clisp.org>
5540
5541         mgetgroups: Move AC_LIBOBJ invocations to module description.
5542         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
5543         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
5544
5545 2011-05-23  Bruno Haible  <bruno@clisp.org>
5546
5547         memxor: Move AC_LIBOBJ invocations to module description.
5548         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
5549         * modules/memxor (Makefile.am): Augment lib_SOURCES.
5550
5551 2011-05-23  Bruno Haible  <bruno@clisp.org>
5552
5553         memcoll: Move AC_LIBOBJ invocations to module description.
5554         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
5555         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
5556
5557 2011-05-23  Bruno Haible  <bruno@clisp.org>
5558
5559         memcasecmp: Move AC_LIBOBJ invocations to module description.
5560         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
5561         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
5562
5563 2011-05-23  Bruno Haible  <bruno@clisp.org>
5564
5565         crypto/md5: Move AC_LIBOBJ invocations to module description.
5566         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
5567         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
5568
5569 2011-05-23  Bruno Haible  <bruno@clisp.org>
5570
5571         crypto/md4: Move AC_LIBOBJ invocations to module description.
5572         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
5573         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
5574
5575 2011-05-23  Bruno Haible  <bruno@clisp.org>
5576
5577         crypto/md2: Move AC_LIBOBJ invocations to module description.
5578         * m4/md2.m4: Remove file.
5579         * modules/crypto/md2 (Files): Remove it.
5580         (configure.ac): Remove gl_MD2 call.
5581         (Makefile.am): Augment lib_SOURCES.
5582
5583 2011-05-23  Bruno Haible  <bruno@clisp.org>
5584
5585         long-options: Move AC_LIBOBJ invocations to module description.
5586         * m4/long-options.m4: Remove file.
5587         * modules/long-options (Files): Remove it.
5588         (configure.ac): Remove gl_LONG_OPTIONS call.
5589         (Makefile.am): Augment lib_SOURCES.
5590
5591 2011-05-23  Bruno Haible  <bruno@clisp.org>
5592
5593         i-ring: Move AC_LIBOBJ invocations to module description.
5594         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
5595         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
5596
5597 2011-05-23  Bruno Haible  <bruno@clisp.org>
5598
5599         idcache: Move AC_LIBOBJ invocations to module description.
5600         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
5601         * modules/idcache (Makefile.am): Augment lib_SOURCES.
5602
5603 2011-05-23  Bruno Haible  <bruno@clisp.org>
5604
5605         human: Move AC_LIBOBJ invocations to module description.
5606         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
5607         * modules/human (Makefile.am): Augment lib_SOURCES.
5608
5609 2011-05-23  Bruno Haible  <bruno@clisp.org>
5610
5611         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
5612         * m4/hmac-sha1.m4: Remove file.
5613         * modules/crypto/hmac-sha1 (Files): Remove it.
5614         (configure.ac): Remove gl_HMAC_SHA1 call.
5615         (Makefile.am): Augment lib_SOURCES.
5616
5617 2011-05-23  Bruno Haible  <bruno@clisp.org>
5618
5619         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
5620         * m4/hmac-md5.m4: Remove file.
5621         * modules/crypto/hmac-md5 (Files): Remove it.
5622         (configure.ac): Remove gl_HMAC_MD5 call.
5623         (Makefile.am): Augment lib_SOURCES.
5624
5625 2011-05-23  Bruno Haible  <bruno@clisp.org>
5626
5627         hash: Move AC_LIBOBJ invocations to module description.
5628         * m4/hash.m4: Remove file.
5629         * modules/hash (Files): Remove it.
5630         (configure.ac): Remove gl_HASH call.
5631         (Makefile.am): Augment lib_SOURCES.
5632
5633 2011-05-23  Bruno Haible  <bruno@clisp.org>
5634
5635         hard-locale: Move AC_LIBOBJ invocations to module description.
5636         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
5637         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
5638
5639 2011-05-23  Bruno Haible  <bruno@clisp.org>
5640
5641         getugroups: Move AC_LIBOBJ invocations to module description.
5642         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
5643         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
5644
5645 2011-05-23  Bruno Haible  <bruno@clisp.org>
5646
5647         gettime: Move AC_LIBOBJ invocations to module description.
5648         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
5649         * modules/gettime (Makefile.am): Augment lib_SOURCES.
5650
5651 2011-05-23  Bruno Haible  <bruno@clisp.org>
5652
5653         getndelim2: Move AC_LIBOBJ invocations to module description.
5654         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
5655         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
5656
5657 2011-05-23  Bruno Haible  <bruno@clisp.org>
5658
5659         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
5660         * m4/gc-pbkdf2-sha1.m4: Remove file.
5661         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
5662         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
5663         (Makefile.am): Augment lib_SOURCES.
5664
5665 2011-05-23  Bruno Haible  <bruno@clisp.org>
5666
5667         fts: Move AC_LIBOBJ invocations to module description.
5668         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
5669         * modules/fts (configure.ac): ... to here.
5670
5671 2011-05-23  Bruno Haible  <bruno@clisp.org>
5672
5673         file-type: Move AC_LIBOBJ invocations to module description.
5674         * m4/file-type.m4: Remove file.
5675         * modules/file-type (Files): Remove it.
5676         (configure.ac): Remove gl_FILE_TYPE call.
5677         (Makefile.am): Augment lib_SOURCES.
5678
5679 2011-05-23  Bruno Haible  <bruno@clisp.org>
5680
5681         filenamecat*: Respect rules for use of AC_LIBOBJ.
5682         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
5683         Remove AC_LIBOBJ invocation.
5684         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
5685         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
5686
5687 2011-05-23  Bruno Haible  <bruno@clisp.org>
5688
5689         filemode: Move AC_LIBOBJ invocations to module description.
5690         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
5691         * modules/filemode (Makefile.am): Augment lib_SOURCES.
5692
5693 2011-05-23  Bruno Haible  <bruno@clisp.org>
5694
5695         openat-safer: Move AC_LIBOBJ invocations to module description.
5696         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
5697         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
5698
5699 2011-05-23  Bruno Haible  <bruno@clisp.org>
5700
5701         fcntl-safer: Move AC_LIBOBJ invocations to module description.
5702         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
5703         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
5704
5705 2011-05-23  Bruno Haible  <bruno@clisp.org>
5706
5707         exclude: Move AC_LIBOBJ invocations to module description.
5708         * m4/exclude.m4: Remove file.
5709         * modules/exclude (Files): Remove it.
5710         (configure.ac): Remove gl_EXCLUDE call.
5711         (Makefile.am): Augment lib_SOURCES.
5712
5713 2011-05-23  Bruno Haible  <bruno@clisp.org>
5714
5715         dirname*: Respect rules for use of AC_LIBOBJ.
5716         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
5717         invocations.
5718         * modules/dirname (Makefile.am): Augment lib_SOURCES.
5719         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
5720
5721 2011-05-23  Bruno Haible  <bruno@clisp.org>
5722
5723         dirent-safer: Move AC_LIBOBJ invocations to module description.
5724         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
5725         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
5726
5727 2011-05-23  Bruno Haible  <bruno@clisp.org>
5728
5729         crypto/des: Move AC_LIBOBJ invocations to module description.
5730         * m4/des.m4: Remove file.
5731         * modules/crypto/des (Files): Remove it.
5732         (configure.ac): Remove gl_DES call.
5733         (Makefile.am): Augment lib_SOURCES.
5734
5735 2011-05-23  Bruno Haible  <bruno@clisp.org>
5736
5737         cycle-check: Move AC_LIBOBJ invocations to module description.
5738         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
5739         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
5740
5741 2011-05-23  Bruno Haible  <bruno@clisp.org>
5742
5743         c-strtold: Move AC_LIBOBJ invocations to module description.
5744         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
5745         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
5746
5747 2011-05-23  Bruno Haible  <bruno@clisp.org>
5748
5749         c-strtod: Move AC_LIBOBJ invocations to module description.
5750         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
5751         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
5752
5753 2011-05-23  Bruno Haible  <bruno@clisp.org>
5754
5755         crc: Move AC_LIBOBJ invocations to module description.
5756         * m4/crc.m4: Remove file.
5757         * modules/crc (Files): Remove it.
5758         (configure.ac): Remove gl_CRC call.
5759         (Makefile.am): Augment lib_SOURCES.
5760
5761 2011-05-23  Bruno Haible  <bruno@clisp.org>
5762
5763         close-stream: Move AC_LIBOBJ invocations to module description.
5764         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
5765         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
5766
5767 2011-05-23  Bruno Haible  <bruno@clisp.org>
5768
5769         closeout: Move AC_LIBOBJ invocations to module description.
5770         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
5771         * modules/closeout (Makefile.am): Augment lib_SOURCES.
5772
5773 2011-05-23  Bruno Haible  <bruno@clisp.org>
5774
5775         closein: Move AC_LIBOBJ invocations to module description.
5776         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
5777         * modules/closein (Makefile.am): Augment lib_SOURCES.
5778
5779 2011-05-23  Bruno Haible  <bruno@clisp.org>
5780
5781         cloexec: Move AC_LIBOBJ invocations to module description.
5782         * m4/cloexec.m4: Remove file.
5783         * modules/cloexec (Files): Remove it.
5784         (configure.ac): Remove gl_CLOEXEC call.
5785         (Makefile.am): Augment lib_SOURCES.
5786
5787 2011-05-23  Bruno Haible  <bruno@clisp.org>
5788
5789         check-version: Move AC_LIBOBJ invocations to module description.
5790         * m4/check-version.m4: Remove file.
5791         * modules/check-version (Files): Remove it.
5792         (configure.ac): Remove gl_CHECK_VERSION call.
5793         (Makefile.am): Augment lib_SOURCES.
5794
5795 2011-05-23  Bruno Haible  <bruno@clisp.org>
5796
5797         chdir-safer: Move AC_LIBOBJ invocations to module description.
5798         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
5799         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
5800
5801 2011-05-23  Bruno Haible  <bruno@clisp.org>
5802
5803         canonicalize: Move AC_LIBOBJ invocations to module description.
5804         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
5805         AC_LIBOBJ invocation.
5806         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
5807
5808 2011-05-23  Bruno Haible  <bruno@clisp.org>
5809
5810         canon-host: Move AC_LIBOBJ invocations to module description.
5811         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
5812         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
5813         instead of gl_CANON_HOST.
5814         (Makefile.am): Augment lib_SOURCES.
5815
5816 2011-05-23  Bruno Haible  <bruno@clisp.org>
5817
5818         backupfile: Move AC_LIBOBJ invocations to module description.
5819         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
5820         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
5821
5822 2011-05-23  Bruno Haible  <bruno@clisp.org>
5823
5824         argmatch: Move AC_LIBOBJ invocations to module description.
5825         * m4/argmatch.m4: Remove file.
5826         * modules/argmatch (Files): Remove it.
5827         (configure.ac): Remove gl_ARGMATCH call.
5828         (Makefile.am): Augment lib_SOURCES.
5829
5830 2011-05-23  Bruno Haible  <bruno@clisp.org>
5831
5832         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
5833         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
5834         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
5835
5836 2011-05-23  Bruno Haible  <bruno@clisp.org>
5837
5838         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
5839         * m4/arcfour.m4: Remove file.
5840         * modules/crypto/arcfour (Files): Remove it.
5841         (configure.ac): Remove gl_ARCFOUR call.
5842         (Makefile.am): Augment lib_SOURCES.
5843
5844 2011-05-22  Bruno Haible  <bruno@clisp.org>
5845
5846         write: Move AC_LIBOBJ invocations to module description.
5847         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
5848         * modules/write (configure.ac): ... to here.
5849
5850 2011-05-22  Bruno Haible  <bruno@clisp.org>
5851
5852         wmemset: Move AC_LIBOBJ invocations to module description.
5853         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
5854         here...
5855         * modules/wmemset (configure.ac): ... to here.
5856
5857 2011-05-22  Bruno Haible  <bruno@clisp.org>
5858
5859         wmemmove: Move AC_LIBOBJ invocations to module description.
5860         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
5861         here...
5862         * modules/wmemmove (configure.ac): ... to here.
5863
5864 2011-05-22  Bruno Haible  <bruno@clisp.org>
5865
5866         wmemcpy: Move AC_LIBOBJ invocations to module description.
5867         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
5868         here...
5869         * modules/wmemcpy (configure.ac): ... to here.
5870
5871 2011-05-22  Bruno Haible  <bruno@clisp.org>
5872
5873         wmemcmp: Move AC_LIBOBJ invocations to module description.
5874         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
5875         here...
5876         * modules/wmemcmp (configure.ac): ... to here.
5877
5878 2011-05-22  Bruno Haible  <bruno@clisp.org>
5879
5880         wmemchr: Move AC_LIBOBJ invocations to module description.
5881         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
5882         here...
5883         * modules/wmemchr (configure.ac): ... to here.
5884
5885 2011-05-22  Bruno Haible  <bruno@clisp.org>
5886
5887         wcswidth: Move AC_LIBOBJ invocations to module description.
5888         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
5889         here...
5890         * modules/wcswidth (configure.ac): ... to here.
5891
5892 2011-05-22  Bruno Haible  <bruno@clisp.org>
5893
5894         wcwidth: Respect rules for use of AC_LIBOBJ.
5895         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
5896         invocation from here...
5897         * modules/wcwidth (configure.ac): ... to here.
5898         (Depends-on): Update conditions.
5899
5900 2011-05-22  Bruno Haible  <bruno@clisp.org>
5901
5902         wctype: Move AC_LIBOBJ invocations to module description.
5903         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
5904         invocation from here...
5905         * modules/wctype (configure.ac): ... to here.
5906         (Depends-on): Update conditions.
5907
5908 2011-05-22  Bruno Haible  <bruno@clisp.org>
5909
5910         wctrans: Move AC_LIBOBJ invocations to module description.
5911         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
5912         invocation from here...
5913         * modules/wctrans (configure.ac): ... to here.
5914
5915 2011-05-22  Bruno Haible  <bruno@clisp.org>
5916
5917         wctomb: Move AC_LIBOBJ invocations to module description.
5918         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
5919         invocations from here...
5920         * modules/wctomb (configure.ac): ... to here.
5921
5922 2011-05-22  Bruno Haible  <bruno@clisp.org>
5923
5924         wctob: Move AC_LIBOBJ invocations to module description.
5925         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
5926         gl_PREREQ_WCTOB invocations from here...
5927         * modules/wctob (configure.ac): ... to here.
5928         (Depends-on): Update conditions.
5929
5930 2011-05-22  Bruno Haible  <bruno@clisp.org>
5931
5932         wcsxfrm: Move AC_LIBOBJ invocations to module description.
5933         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
5934         here...
5935         * modules/wcsxfrm (configure.ac): ... to here.
5936
5937 2011-05-22  Bruno Haible  <bruno@clisp.org>
5938
5939         wcstok: Move AC_LIBOBJ invocations to module description.
5940         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
5941         * modules/wcstok (configure.ac): ... to here.
5942
5943 2011-05-22  Bruno Haible  <bruno@clisp.org>
5944
5945         wcsstr: Move AC_LIBOBJ invocations to module description.
5946         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
5947         * modules/wcsstr (configure.ac): ... to here.
5948
5949 2011-05-22  Bruno Haible  <bruno@clisp.org>
5950
5951         wcsspn: Move AC_LIBOBJ invocations to module description.
5952         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
5953         * modules/wcsspn (configure.ac): ... to here.
5954
5955 2011-05-22  Bruno Haible  <bruno@clisp.org>
5956
5957         wcsrtombs: Move AC_LIBOBJ invocations to module description.
5958         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
5959         gl_PREREQ_WCSRTOMBS invocations from here...
5960         * modules/wcsrtombs (configure.ac): ... to here.
5961
5962 2011-05-22  Bruno Haible  <bruno@clisp.org>
5963
5964         wcsrchr: Move AC_LIBOBJ invocations to module description.
5965         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
5966         here...
5967         * modules/wcsrchr (configure.ac): ... to here.
5968
5969 2011-05-22  Bruno Haible  <bruno@clisp.org>
5970
5971         wcspbrk: Move AC_LIBOBJ invocations to module description.
5972         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
5973         here...
5974         * modules/wcspbrk (configure.ac): ... to here.
5975
5976 2011-05-22  Bruno Haible  <bruno@clisp.org>
5977
5978         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
5979         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
5980         gl_PREREQ_WCSNRTOMBS invocations from here...
5981         * modules/wcsnrtombs (configure.ac): ... to here.
5982
5983 2011-05-22  Bruno Haible  <bruno@clisp.org>
5984
5985         wcsnlen: Move AC_LIBOBJ invocations to module description.
5986         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
5987         here...
5988         * modules/wcsnlen (configure.ac): ... to here.
5989
5990 2011-05-22  Bruno Haible  <bruno@clisp.org>
5991
5992         wcsncpy: Move AC_LIBOBJ invocations to module description.
5993         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
5994         here...
5995         * modules/wcsncpy (configure.ac): ... to here.
5996
5997 2011-05-22  Bruno Haible  <bruno@clisp.org>
5998
5999         wcsncmp: Move AC_LIBOBJ invocations to module description.
6000         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
6001         here...
6002         * modules/wcsncmp (configure.ac): ... to here.
6003
6004 2011-05-22  Bruno Haible  <bruno@clisp.org>
6005
6006         wcsncat: Move AC_LIBOBJ invocations to module description.
6007         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
6008         here...
6009         * modules/wcsncat (configure.ac): ... to here.
6010
6011 2011-05-22  Bruno Haible  <bruno@clisp.org>
6012
6013         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
6014         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
6015         from here...
6016         * modules/wcsncasecmp (configure.ac): ... to here.
6017
6018 2011-05-22  Bruno Haible  <bruno@clisp.org>
6019
6020         wcslen: Move AC_LIBOBJ invocations to module description.
6021         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
6022         * modules/wcslen (configure.ac): ... to here.
6023
6024 2011-05-22  Bruno Haible  <bruno@clisp.org>
6025
6026         wcsdup: Move AC_LIBOBJ invocations to module description.
6027         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
6028         * modules/wcsdup (configure.ac): ... to here.
6029
6030 2011-05-22  Bruno Haible  <bruno@clisp.org>
6031
6032         wcscspn: Move AC_LIBOBJ invocations to module description.
6033         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
6034         here...
6035         * modules/wcscspn (configure.ac): ... to here.
6036
6037 2011-05-22  Bruno Haible  <bruno@clisp.org>
6038
6039         wcscpy: Move AC_LIBOBJ invocations to module description.
6040         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
6041         * modules/wcscpy (configure.ac): ... to here.
6042
6043 2011-05-22  Bruno Haible  <bruno@clisp.org>
6044
6045         wcscoll: Move AC_LIBOBJ invocations to module description.
6046         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
6047         here...
6048         * modules/wcscoll (configure.ac): ... to here.
6049
6050 2011-05-22  Bruno Haible  <bruno@clisp.org>
6051
6052         wcscmp: Move AC_LIBOBJ invocations to module description.
6053         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
6054         * modules/wcscmp (configure.ac): ... to here.
6055
6056 2011-05-22  Bruno Haible  <bruno@clisp.org>
6057
6058         wcschr: Move AC_LIBOBJ invocations to module description.
6059         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
6060         * modules/wcschr (configure.ac): ... to here.
6061
6062 2011-05-22  Bruno Haible  <bruno@clisp.org>
6063
6064         wcscat: Move AC_LIBOBJ invocations to module description.
6065         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
6066         * modules/wcscat (configure.ac): ... to here.
6067
6068 2011-05-22  Bruno Haible  <bruno@clisp.org>
6069
6070         wcscasecmp: Move AC_LIBOBJ invocations to module description.
6071         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
6072         here...
6073         * modules/wcscasecmp (configure.ac): ... to here.
6074
6075 2011-05-22  Bruno Haible  <bruno@clisp.org>
6076
6077         wcrtomb: Move AC_LIBOBJ invocations to module description.
6078         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
6079         invocations from here...
6080         * modules/wcrtomb (configure.ac): ... to here.
6081
6082 2011-05-22  Bruno Haible  <bruno@clisp.org>
6083
6084         wcpncpy: Move AC_LIBOBJ invocations to module description.
6085         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
6086         here...
6087         * modules/wcpncpy (configure.ac): ... to here.
6088
6089 2011-05-22  Bruno Haible  <bruno@clisp.org>
6090
6091         wcpcpy: Move AC_LIBOBJ invocations to module description.
6092         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
6093         * modules/wcpcpy (configure.ac): ... to here.
6094
6095 2011-05-22  Bruno Haible  <bruno@clisp.org>
6096
6097         waitpid: Move AC_LIBOBJ invocations to module description.
6098         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
6099         invocation from here...
6100         * modules/waitpid (configure.ac): ... to here.
6101
6102 2011-05-22  Bruno Haible  <bruno@clisp.org>
6103
6104         utimensat: Move AC_LIBOBJ invocations to module description.
6105         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
6106         here...
6107         * modules/utimensat (configure.ac): ... to here.
6108
6109 2011-05-22  Bruno Haible  <bruno@clisp.org>
6110
6111         usleep: Move AC_LIBOBJ invocations to module description.
6112         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
6113         here...
6114         * modules/usleep (configure.ac): ... to here.
6115
6116 2011-05-22  Bruno Haible  <bruno@clisp.org>
6117
6118         unlockpt: Move AC_LIBOBJ invocations to module description.
6119         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
6120         gl_PREREQ_UNLOCKPT invocations from here...
6121         * modules/unlockpt (configure.ac): ... to here.
6122
6123 2011-05-22  Bruno Haible  <bruno@clisp.org>
6124
6125         unlink: Respect rules for use of AC_LIBOBJ.
6126         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
6127         * modules/unlink (configure.ac): ... to here.
6128
6129 2011-05-22  Bruno Haible  <bruno@clisp.org>
6130
6131         uname: Move AC_LIBOBJ invocations to module description.
6132         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
6133         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
6134         here...
6135         * modules/uname (configure.ac): ... to here.
6136
6137 2011-05-22  Bruno Haible  <bruno@clisp.org>
6138
6139         ttyname_r: Move AC_LIBOBJ invocations to module description.
6140         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
6141         gl_PREREQ_TTYNAME_R invocations from here...
6142         * modules/ttyname_r (configure.ac): ... to here.
6143
6144 2011-05-22  Bruno Haible  <bruno@clisp.org>
6145
6146         tsearch: Move AC_LIBOBJ invocations to module description.
6147         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
6148         invocations from here...
6149         * modules/tsearch (configure.ac): ... to here.
6150
6151 2011-05-22  Bruno Haible  <bruno@clisp.org>
6152
6153         towctrans: Move AC_LIBOBJ invocations to module description.
6154         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
6155         AC_LIBOBJ invocation from here...
6156         * modules/towctrans (configure.ac): ... to here.
6157
6158 2011-05-22  Bruno Haible  <bruno@clisp.org>
6159
6160         tmpfile: Move AC_LIBOBJ invocations to module description.
6161         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
6162         invocations from here...
6163         * modules/tmpfile (configure.ac): ... to here.
6164
6165 2011-05-22  Bruno Haible  <bruno@clisp.org>
6166
6167         times: Move AC_LIBOBJ invocations to module description.
6168         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
6169         * modules/times (configure.ac): ... to here.
6170
6171 2011-05-22  Bruno Haible  <bruno@clisp.org>
6172
6173         time_r: Move AC_LIBOBJ invocations to module description.
6174         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
6175         invocations from here...
6176         * modules/time_r (configure.ac): ... to here.
6177
6178 2011-05-22  Bruno Haible  <bruno@clisp.org>
6179
6180         timegm: Move AC_LIBOBJ invocations to module description.
6181         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
6182         invocations from here...
6183         * modules/timegm (configure.ac): ... to here.
6184
6185 2011-05-22  Bruno Haible  <bruno@clisp.org>
6186
6187         tcgetsid: Move AC_LIBOBJ invocations to module description.
6188         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
6189         and gl_PREREQ_TCGETSID invocations from here...
6190         * modules/tcgetsid (configure.ac): ... to here.
6191         (Depends-on): Update conditions.
6192
6193 2011-05-22  Bruno Haible  <bruno@clisp.org>
6194
6195         symlinkat: Move AC_LIBOBJ invocations to module description.
6196         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
6197         here...
6198         * modules/symlinkat (configure.ac): ... to here.
6199
6200 2011-05-22  Bruno Haible  <bruno@clisp.org>
6201
6202         symlink: Move AC_LIBOBJ invocations to module description.
6203         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
6204         here...
6205         * modules/symlink (configure.ac): ... to here.
6206
6207 2011-05-22  Bruno Haible  <bruno@clisp.org>
6208
6209         strverscmp: Move AC_LIBOBJ invocations to module description.
6210         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
6211         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
6212         from here...
6213         * modules/strverscmp (configure.ac): ... to here.
6214
6215 2011-05-22  Bruno Haible  <bruno@clisp.org>
6216
6217         strtok_r: Move AC_LIBOBJ invocations to module description.
6218         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
6219         and gl_PREREQ_STRTOK_R invocations from here...
6220         * modules/strtok_r (configure.ac): ... to here.
6221         (Depends-on): Update conditions.
6222
6223 2011-05-22  Bruno Haible  <bruno@clisp.org>
6224
6225         strtoumax: Move AC_LIBOBJ invocations to module description.
6226         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
6227         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
6228         from here...
6229         * modules/strtoumax (configure.ac): ... to here.
6230
6231 2011-05-22  Bruno Haible  <bruno@clisp.org>
6232
6233         strtoimax: Move AC_LIBOBJ invocations to module description.
6234         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
6235         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
6236         from here...
6237         * modules/strtoimax (configure.ac): ... to here.
6238
6239 2011-05-22  Bruno Haible  <bruno@clisp.org>
6240
6241         strtoull: Move AC_LIBOBJ invocations to module description.
6242         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
6243         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
6244         from here...
6245         * modules/strtoull (configure.ac): ... to here.
6246
6247 2011-05-22  Bruno Haible  <bruno@clisp.org>
6248
6249         strtoll: Move AC_LIBOBJ invocations to module description.
6250         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
6251         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
6252         here...
6253         * modules/strtoll (configure.ac): ... to here.
6254
6255 2011-05-22  Bruno Haible  <bruno@clisp.org>
6256
6257         strtoul: Move AC_LIBOBJ invocations to module description.
6258         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
6259         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
6260         * modules/strtoul (configure.ac): ... to here.
6261
6262 2011-05-22  Bruno Haible  <bruno@clisp.org>
6263
6264         strtol: Move AC_LIBOBJ invocations to module description.
6265         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
6266         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
6267         * modules/strtol (configure.ac): ... to here.
6268
6269 2011-05-22  Bruno Haible  <bruno@clisp.org>
6270
6271         strtod: Move AC_LIBOBJ invocations to module description.
6272         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
6273         invocations from here...
6274         * modules/strtod (configure.ac): ... to here.
6275
6276 2011-05-22  Bruno Haible  <bruno@clisp.org>
6277
6278         strstr*: Move AC_LIBOBJ invocations to module description.
6279         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
6280         invocations from here...
6281         * modules/strstr-simple (configure.ac): ... to here.
6282         * modules/strstr (configure.ac): ... and here.
6283
6284 2011-05-22  Bruno Haible  <bruno@clisp.org>
6285
6286         strsignal: Move AC_LIBOBJ invocations to module description.
6287         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
6288         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
6289         * modules/strsignal (configure.ac): ... to here.
6290         (Depends-on): Update conditions.
6291
6292 2011-05-22  Bruno Haible  <bruno@clisp.org>
6293
6294         strsep: Move AC_LIBOBJ invocations to module description.
6295         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
6296         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
6297         here...
6298         * modules/strsep (configure.ac): ... to here.
6299
6300 2011-05-22  Bruno Haible  <bruno@clisp.org>
6301
6302         strptime: Move AC_LIBOBJ invocations to module description.
6303         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
6304         gl_PREREQ_STRPTIME invocations from here...
6305         * modules/strptime (configure.ac): ... to here.
6306
6307 2011-05-22  Bruno Haible  <bruno@clisp.org>
6308
6309         strpbrk: Move AC_LIBOBJ invocations to module description.
6310         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
6311         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
6312         here...
6313         * modules/strpbrk (configure.ac): ... to here.
6314
6315 2011-05-22  Bruno Haible  <bruno@clisp.org>
6316
6317         strnlen: Move AC_LIBOBJ invocations to module description.
6318         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
6319         invocations from here...
6320         * modules/strnlen (configure.ac): ... to here.
6321
6322 2011-05-22  Bruno Haible  <bruno@clisp.org>
6323
6324         strndup: Move AC_LIBOBJ invocations to module description.
6325         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
6326         invocations from here...
6327         * modules/strndup (configure.ac): ... to here.
6328         (Depends-on): Update conditions.
6329
6330 2011-05-22  Bruno Haible  <bruno@clisp.org>
6331
6332         strncat: Move AC_LIBOBJ invocations to module description.
6333         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
6334         invocations from here...
6335         * modules/strncat (configure.ac): ... to here.
6336
6337 2011-05-22  Bruno Haible  <bruno@clisp.org>
6338
6339         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
6340         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
6341         invocations from here...
6342         * modules/strdup (configure.ac): ... to here.
6343         * modules/strdup-posix (configure.ac): ... and here.
6344
6345 2011-05-22  Bruno Haible  <bruno@clisp.org>
6346
6347         strcspn: Move AC_LIBOBJ invocations to module description.
6348         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
6349         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
6350         here...
6351         * modules/strcspn (configure.ac): ... to here.
6352
6353 2011-05-22  Bruno Haible  <bruno@clisp.org>
6354
6355         strchrnul: Move AC_LIBOBJ invocations to module description.
6356         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
6357         gl_PREREQ_STRCHRNUL invocations from here...
6358         * modules/strchrnul (configure.ac): ... to here.
6359
6360 2011-05-22  Bruno Haible  <bruno@clisp.org>
6361
6362         strcasestr*: Move AC_LIBOBJ invocations to module description.
6363         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
6364         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
6365         * modules/strcasestr-simple (configure.ac): ... to here.
6366         * modules/strcasestr (configure.ac): ... and here.
6367
6368 2011-05-22  Bruno Haible  <bruno@clisp.org>
6369
6370         strcase: Move AC_LIBOBJ invocations to module description.
6371         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
6372         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
6373         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
6374         gl_PREREQ_STRNCASECMP invocations from here...
6375         * modules/strcase (configure.ac): ... to here.
6376
6377 2011-05-22  Bruno Haible  <bruno@clisp.org>
6378
6379         stpncpy: Move AC_LIBOBJ invocations to module description.
6380         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
6381         here...
6382         * modules/stpncpy (configure.ac): ... to here.
6383
6384 2011-05-22  Bruno Haible  <bruno@clisp.org>
6385
6386         stpcpy: Move AC_LIBOBJ invocations to module description.
6387         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
6388         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
6389         here...
6390         * modules/stpcpy (configure.ac): ... to here.
6391
6392 2011-05-21  Bruno Haible  <bruno@clisp.org>
6393
6394         stat: Move AC_LIBOBJ invocations to module description.
6395         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
6396         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
6397         here...
6398         * modules/stat (configure.ac): ... to here.
6399
6400 2011-05-21  Bruno Haible  <bruno@clisp.org>
6401
6402         sleep: Move AC_LIBOBJ invocations to module description.
6403         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
6404         * modules/sleep (configure.ac): ... to here.
6405
6406 2011-05-21  Bruno Haible  <bruno@clisp.org>
6407
6408         signbit: Move AC_LIBOBJ invocations to module description.
6409         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
6410         * modules/signbit (configure.ac): ... to here.
6411
6412 2011-05-21  Bruno Haible  <bruno@clisp.org>
6413
6414         sigprocmask: Move AC_LIBOBJ invocations to module description.
6415         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
6416         gl_PREREQ_SIGPROMASK invocations from here...
6417         * modules/sigprocmask (configure.ac): ... to here.
6418
6419 2011-05-21  Bruno Haible  <bruno@clisp.org>
6420
6421         sigaction: Move AC_LIBOBJ invocations to module description.
6422         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
6423         gl_PREREQ_SIGACTION invocations from here...
6424         * modules/sigaction (configure.ac): ... to here.
6425
6426 2011-05-21  Bruno Haible  <bruno@clisp.org>
6427
6428         sig2str: Move AC_LIBOBJ invocations to module description.
6429         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
6430         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
6431         here...
6432         * modules/sig2str (configure.ac): ... to here.
6433
6434 2011-05-21  Bruno Haible  <bruno@clisp.org>
6435
6436         setlocale: Move AC_LIBOBJ invocations to module description.
6437         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
6438         gl_PREREQ_SETLOCALE invocations from here...
6439         * modules/setlocale (configure.ac): ... to here.
6440
6441 2011-05-21  Bruno Haible  <bruno@clisp.org>
6442
6443         unsetenv: Move AC_LIBOBJ invocations to module description.
6444         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
6445         and gl_PREREQ_UNSETENV invocations from here...
6446         * modules/unsetenv (configure.ac): ... to here.
6447         (Depends-on): Update.
6448
6449 2011-05-21  Bruno Haible  <bruno@clisp.org>
6450
6451         setenv: Move AC_LIBOBJ invocations to module description.
6452         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
6453         here...
6454         * modules/setenv (configure.ac): ... to here.
6455
6456 2011-05-21  Bruno Haible  <bruno@clisp.org>
6457
6458         selinux-h: Move AC_LIBOBJ invocations to module description.
6459         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
6460         AC_LIBOBJ invocation from here...
6461         * modules/selinux-h (configure.ac): ... to here.
6462
6463 2011-05-21  Bruno Haible  <bruno@clisp.org>
6464
6465         select: Respect rules for use of AC_LIBOBJ.
6466         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
6467         here...
6468         * modules/select (configure.ac): ... to here.
6469
6470 2011-05-21  Bruno Haible  <bruno@clisp.org>
6471
6472         scandir: Move AC_LIBOBJ invocations to module description.
6473         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
6474         invocations from here...
6475         * modules/scandir (configure.ac): ... to here.
6476
6477 2011-05-21  Bruno Haible  <bruno@clisp.org>
6478
6479         rpmatch: Move AC_LIBOBJ invocations to module description.
6480         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
6481         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
6482         here...
6483         * modules/rpmatch (configure.ac): ... to here.
6484
6485 2011-05-21  Bruno Haible  <bruno@clisp.org>
6486
6487         rmdir: Respect rules for use of AC_LIBOBJ.
6488         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
6489         * modules/rmdir (configure.ac): ... to here.
6490
6491 2011-05-21  Bruno Haible  <bruno@clisp.org>
6492
6493         renameat: Move AC_LIBOBJ invocations to module description.
6494         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
6495         here...
6496         * modules/renameat (configure.ac): ... to here.
6497
6498 2011-05-21  Bruno Haible  <bruno@clisp.org>
6499
6500         rename: Respect rules for use of AC_LIBOBJ.
6501         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
6502         here...
6503         * modules/rename (configure.ac): ... to here.
6504
6505 2011-05-21  Bruno Haible  <bruno@clisp.org>
6506
6507         remove: Move AC_LIBOBJ invocations to module description.
6508         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
6509         here...
6510         * modules/remove (configure.ac): ... to here.
6511
6512 2011-05-21  Bruno Haible  <bruno@clisp.org>
6513
6514         relocatable-lib: Move AC_LIBOBJ invocations to module description.
6515         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
6516         macro.
6517         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
6518         * modules/relocatable-lib (configure.ac): ... to here.
6519         * modules/relocatable-prog-wrapper (configure.ac): Invoke
6520         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
6521
6522 2011-05-21  Bruno Haible  <bruno@clisp.org>
6523
6524         relocatable-prog: Move AC_LIBOBJ invocations to module description.
6525         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
6526         here...
6527         * modules/relocatable-prog (configure.ac): ... to here.
6528
6529 2011-05-21  Bruno Haible  <bruno@clisp.org>
6530
6531         regex: Move AC_LIBOBJ invocations to module description.
6532         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
6533         invocations from here...
6534         * modules/regex (configure.ac): ... to here.
6535
6536 2011-05-21  Bruno Haible  <bruno@clisp.org>
6537
6538         realloc-*: Move AC_LIBOBJ invocations to module description.
6539         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
6540         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
6541         AC_LIBOBJ invocations from here...
6542         * modules/realloc-gnu (configure.ac): ... to here.
6543         * modules/realloc-posix (configure.ac): ... and here.
6544
6545 2011-05-21  Bruno Haible  <bruno@clisp.org>
6546
6547         readutmp: Move AC_LIBOBJ invocations to module description.
6548         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
6549         * modules/readutmp (configure.ac): ... to here.
6550
6551 2011-05-21  Bruno Haible  <bruno@clisp.org>
6552
6553         readlinkat: Move AC_LIBOBJ invocations to module description.
6554         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
6555         here...
6556         * modules/readlinkat (configure.ac): ... to here.
6557
6558 2011-05-21  Bruno Haible  <bruno@clisp.org>
6559
6560         readlink: Move AC_LIBOBJ invocations to module description.
6561         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
6562         gl_PREREQ_READLINK invocations from here...
6563         * modules/readlink (configure.ac): ... to here.
6564
6565 2011-05-21  Bruno Haible  <bruno@clisp.org>
6566
6567         readline: Move AC_LIBOBJ invocations to module description.
6568         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
6569         gl_PREREQ_READLINE invocations from here...
6570         * modules/readline (configure.ac): ... to here.
6571
6572 2011-05-21  Bruno Haible  <bruno@clisp.org>
6573
6574         read: Move AC_LIBOBJ invocations to module description.
6575         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
6576         * modules/read (configure.ac): ... to here.
6577
6578 2011-05-21  Bruno Haible  <bruno@clisp.org>
6579
6580         rawmemchr: Move AC_LIBOBJ invocations to module description.
6581         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
6582         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
6583         from here...
6584         * modules/rawmemchr (configure.ac): ... to here.
6585
6586 2011-05-21  Bruno Haible  <bruno@clisp.org>
6587
6588         random_r: Move AC_LIBOBJ invocations to module description.
6589         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
6590         gl_PREREQ_RANDOM_R invocations from here...
6591         * modules/random_r (configure.ac): ... to here.
6592
6593 2011-05-21  Bruno Haible  <bruno@clisp.org>
6594
6595         pwrite: Move AC_LIBOBJ invocations to module description.
6596         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
6597         * modules/pwrite (configure.ac): ... to here.
6598
6599 2011-05-21  Bruno Haible  <bruno@clisp.org>
6600
6601         putenv: Move AC_LIBOBJ invocations to module description.
6602         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
6603         * modules/putenv (configure.ac): ... to here.
6604
6605 2011-05-21  Bruno Haible  <bruno@clisp.org>
6606
6607         login_tty: Move AC_LIBOBJ invocations to module description.
6608         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
6609         * modules/login_tty (configure.ac): ... to here.
6610
6611 2011-05-21  Bruno Haible  <bruno@clisp.org>
6612
6613         openpty: Move AC_LIBOBJ invocations to module description.
6614         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
6615         * modules/openpty (configure.ac): ... to here.
6616
6617 2011-05-21  Bruno Haible  <bruno@clisp.org>
6618
6619         forkpty: Move AC_LIBOBJ invocations to module description.
6620         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
6621         * modules/forkpty (configure.ac): ... to here.
6622
6623 2011-05-21  Bruno Haible  <bruno@clisp.org>
6624
6625         ptsname: Move AC_LIBOBJ invocations to module description.
6626         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
6627         invocations from here...
6628         * modules/ptsname (configure.ac): ... to here.
6629
6630 2011-05-21  Bruno Haible  <bruno@clisp.org>
6631
6632         pread: Move AC_LIBOBJ invocations to module description.
6633         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
6634         * modules/pread (configure.ac): ... to here.
6635
6636 2011-05-21  Bruno Haible  <bruno@clisp.org>
6637
6638         posix_spawn*: Move AC_LIBOBJ invocations to module description.
6639         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
6640         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
6641         * modules/posix_spawn (configure.ac): ... to here.
6642         * modules/posix_spawnp (configure.ac): ... and here.
6643
6644 2011-05-21  Bruno Haible  <bruno@clisp.org>
6645
6646         popen: Move AC_LIBOBJ invocations to module description.
6647         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
6648         invocations from here...
6649         * modules/popen (configure.ac): ... to here.
6650
6651 2011-05-21  Bruno Haible  <bruno@clisp.org>
6652
6653         poll: Move AC_LIBOBJ invocations to module description.
6654         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
6655         invocations from here...
6656         * modules/poll (configure.ac): ... to here.
6657
6658 2011-05-21  Bruno Haible  <bruno@clisp.org>
6659
6660         pipe-posix: Move AC_LIBOBJ invocations to module description.
6661         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
6662         * modules/pipe-posix (configure.ac): ... to here.
6663
6664 2011-05-21  Bruno Haible  <bruno@clisp.org>
6665
6666         openat: Respect rules for use of AC_LIBOBJ.
6667         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
6668         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
6669         * modules/openat (configure.ac): ... to here.
6670
6671 2011-05-21  Bruno Haible  <bruno@clisp.org>
6672
6673         obstack-printf*: Move AC_LIBOBJ invocations to module description.
6674         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
6675         invocation from here...
6676         * modules/obstack-printf (configure.ac): ... to here.
6677         * modules/obstack-printf-posix (configure.ac): ... and here.
6678
6679 2011-05-21  Bruno Haible  <bruno@clisp.org>
6680
6681         nl_langinfo: Move AC_LIBOBJ invocations to module description.
6682         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
6683         from here...
6684         * modules/nl_langinfo (configure.ac): ... to here.
6685
6686 2011-05-21  Bruno Haible  <bruno@clisp.org>
6687
6688         nanosleep: Move AC_LIBOBJ invocations to module description.
6689         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
6690         gl_PREREQ_NANOSLEEP invocations from here...
6691         * modules/nanosleep (configure.ac): ... to here.
6692
6693 2011-05-21  Bruno Haible  <bruno@clisp.org>
6694
6695         mountlist: Move AC_LIBOBJ invocations to module description.
6696         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
6697         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
6698         * modules/mountlist (configure.ac): ... to here.
6699
6700 2011-05-21  Bruno Haible  <bruno@clisp.org>
6701
6702         mktime: Respect rules for use of AC_LIBOBJ.
6703         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
6704         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
6705         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
6706         (gl_FUNC_MKTIME_INTERNAL): ... and here...
6707         * modules/mktime (configure.ac): ... to here.
6708         * modules/mktime-internal (configure.ac): ... and here.
6709         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
6710
6711 2011-05-21  Bruno Haible  <bruno@clisp.org>
6712
6713         mkstemps: Move AC_LIBOBJ invocations to module description.
6714         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
6715         here...
6716         * modules/mkstemps (configure.ac): ... to here.
6717
6718 2011-05-21  Bruno Haible  <bruno@clisp.org>
6719
6720         mkstemp: Move AC_LIBOBJ invocations to module description.
6721         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
6722         gl_PREREQ_MKSTEMP invocations from here...
6723         * modules/mkstemp (configure.ac): ... to here.
6724
6725 2011-05-21  Bruno Haible  <bruno@clisp.org>
6726
6727         mkostemps: Move AC_LIBOBJ invocations to module description.
6728         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
6729         here...
6730         * modules/mkostemps (configure.ac): ... to here.
6731
6732 2011-05-21  Bruno Haible  <bruno@clisp.org>
6733
6734         mkostemp: Move AC_LIBOBJ invocations to module description.
6735         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
6736         gl_PREREQ_MKOSTEMP invocations from here...
6737         * modules/mkostemp (configure.ac): ... to here.
6738
6739 2011-05-21  Bruno Haible  <bruno@clisp.org>
6740
6741         mknod: Move AC_LIBOBJ invocations to module description.
6742         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
6743         * modules/mknod (configure.ac): ... to here.
6744
6745 2011-05-21  Bruno Haible  <bruno@clisp.org>
6746
6747         mkfifoat: Move AC_LIBOBJ invocations to module description.
6748         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
6749         here...
6750         * modules/mkfifoat (configure.ac): ... to here.
6751
6752 2011-05-21  Bruno Haible  <bruno@clisp.org>
6753
6754         mkfifo: Respect rules for use of AC_LIBOBJ.
6755         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
6756         here...
6757         * modules/mkfifo (configure.ac): ... to here.
6758
6759 2011-05-21  Bruno Haible  <bruno@clisp.org>
6760
6761         mkdtemp: Move AC_LIBOBJ invocations to module description.
6762         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
6763         invocations from here...
6764         * modules/mkdtemp (configure.ac): ... to here.
6765
6766 2011-05-21  Bruno Haible  <bruno@clisp.org>
6767
6768         mkdir: Move AC_LIBOBJ invocations to module description.
6769         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
6770         * modules/mkdir (configure.ac): ... to here.
6771
6772 2011-05-21  Bruno Haible  <bruno@clisp.org>
6773
6774         memset: Move AC_LIBOBJ invocations to module description.
6775         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
6776         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
6777         here...
6778         * modules/memset (configure.ac): ... to here.
6779
6780 2011-05-21  Bruno Haible  <bruno@clisp.org>
6781
6782         memrchr: Move AC_LIBOBJ invocations to module description.
6783         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
6784         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
6785         here...
6786         * modules/memrchr (configure.ac): ... to here.
6787
6788 2011-05-21  Bruno Haible  <bruno@clisp.org>
6789
6790         mempcpy: Move AC_LIBOBJ invocations to module description.
6791         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
6792         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
6793         here...
6794         * modules/mempcpy (configure.ac): ... to here.
6795
6796 2011-05-21  Bruno Haible  <bruno@clisp.org>
6797
6798         memmove: Move AC_LIBOBJ invocations to module description.
6799         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
6800         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
6801         here...
6802         * modules/memmove (configure.ac): ... to here.
6803
6804 2011-05-21  Bruno Haible  <bruno@clisp.org>
6805
6806         memmem*: Move AC_LIBOBJ invocations to module description.
6807         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
6808         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
6809         here...
6810         (gl_FUNC_MEMMEM): ... and here...
6811         * modules/memmem-simple (configure.ac): ... to here.
6812         * modules/memmem (configure.ac): ... and here.
6813
6814 2011-05-21  Bruno Haible  <bruno@clisp.org>
6815
6816         memcpy: Move AC_LIBOBJ invocations to module description.
6817         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
6818         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
6819         here...
6820         * modules/memcpy (configure.ac): ... to here.
6821
6822 2011-05-21  Bruno Haible  <bruno@clisp.org>
6823
6824         memcmp: Simplify autoconf macro.
6825         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
6826         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
6827         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
6828
6829 2011-05-21  Bruno Haible  <bruno@clisp.org>
6830
6831         memcmp: Move AC_LIBOBJ invocations to module description.
6832         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
6833         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
6834         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
6835         * modules/memcmp (configure.ac): ... to here.
6836         (Depends-on): Update conditions.
6837
6838 2011-05-21  Bruno Haible  <bruno@clisp.org>
6839
6840         memchr: Respect rules for use of AC_LIBOBJ.
6841         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
6842         invocations from here...
6843         * modules/memchr (configure.ac): ... to here.
6844
6845 2011-05-21  Bruno Haible  <bruno@clisp.org>
6846
6847         mbtowc: Move AC_LIBOBJ invocations to module description.
6848         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
6849         invocations from here...
6850         * modules/mbtowc (configure.ac): ... to here.
6851
6852 2011-05-21  Bruno Haible  <bruno@clisp.org>
6853
6854         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
6855         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
6856         gl_PREREQ_MBSRTOWCS invocations from here...
6857         * modules/mbsrtowcs (configure.ac): ... to here.
6858
6859 2011-05-21  Bruno Haible  <bruno@clisp.org>
6860
6861         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
6862         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
6863         gl_PREREQ_MBSNRTOWCS invocations from here...
6864         * modules/mbsnrtowcs (configure.ac): ... to here.
6865
6866 2011-05-21  Bruno Haible  <bruno@clisp.org>
6867
6868         mbsinit: Move AC_LIBOBJ invocations to module description.
6869         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
6870         invocations from here...
6871         * modules/mbsinit (configure.ac): ... to here.
6872
6873 2011-05-21  Bruno Haible  <bruno@clisp.org>
6874
6875         mbrlen: Move AC_LIBOBJ invocations to module description.
6876         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
6877         invocations from here...
6878         * modules/mbrlen (configure.ac): ... to here.
6879
6880 2011-05-21  Bruno Haible  <bruno@clisp.org>
6881
6882         mbrtowc: Respect rules for use of AC_LIBOBJ.
6883         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
6884         invocations from here...
6885         * modules/mbrtowc (configure.ac): ... to here.
6886
6887 2011-05-21  Bruno Haible  <bruno@clisp.org>
6888
6889         malloc-*: Move AC_LIBOBJ invocations to module description.
6890         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
6891         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
6892         AC_LIBOBJ invocations from here...
6893         * modules/malloc-gnu (configure.ac): ... to here.
6894         * modules/malloc-posix (configure.ac): ... and here.
6895
6896 2011-05-21  Bruno Haible  <bruno@clisp.org>
6897
6898         lstat, openat: Respect rules for use of AC_LIBOBJ.
6899         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
6900         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
6901         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
6902         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
6903         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
6904         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
6905         here.
6906         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
6907
6908 2011-05-21  Bruno Haible  <bruno@clisp.org>
6909
6910         lseek: Move AC_LIBOBJ invocations to module description.
6911         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
6912         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
6913         * modules/lseek (configure.ac): ... to here.
6914
6915 2011-05-21  Bruno Haible  <bruno@clisp.org>
6916
6917         linkat: Move AC_LIBOBJ invocations to module description.
6918         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
6919         here...
6920         * modules/linkat (configure.ac): ... to here.
6921
6922 2011-05-21  Bruno Haible  <bruno@clisp.org>
6923
6924         link: Respect rules for use of AC_LIBOBJ.
6925         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
6926         * modules/link (configure.ac): ... to here.
6927
6928 2011-05-21  Bruno Haible  <bruno@clisp.org>
6929
6930         lchown: Move AC_LIBOBJ invocations to module description.
6931         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
6932         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
6933         * modules/lchown (configure.ac): ... to here.
6934
6935 2011-05-21  Bruno Haible  <bruno@clisp.org>
6936
6937         iswctype: Move AC_LIBOBJ invocations to module description.
6938         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
6939         here...
6940         * modules/iswctype (configure.ac): ... to here.
6941
6942 2011-05-21  Bruno Haible  <bruno@clisp.org>
6943
6944         iswblank: Move AC_LIBOBJ invocations to module description.
6945         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
6946         here...
6947         * modules/iswblank (configure.ac): ... to here.
6948
6949 2011-05-21  Bruno Haible  <bruno@clisp.org>
6950
6951         atanl: Move AC_LIBOBJ invocations to module description.
6952         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
6953         * modules/atanl (configure.ac): ... to here.
6954
6955 2011-05-21  Bruno Haible  <bruno@clisp.org>
6956
6957         acosl: Move AC_LIBOBJ invocations to module description.
6958         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
6959         * modules/acosl (configure.ac): ... to here.
6960
6961 2011-05-21  Bruno Haible  <bruno@clisp.org>
6962
6963         asinl: Respect rules for use of AC_LIBOBJ.
6964         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
6965         * modules/asinl (configure.ac): ... to here.
6966
6967 2011-05-21  Bruno Haible  <bruno@clisp.org>
6968
6969         tanl: Move AC_LIBOBJ invocations to module description.
6970         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
6971         * modules/tanl (configure.ac): ... to here.
6972
6973 2011-05-21  Bruno Haible  <bruno@clisp.org>
6974
6975         cosl: Move AC_LIBOBJ invocations to module description.
6976         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
6977         * modules/cosl (configure.ac): ... to here.
6978
6979 2011-05-21  Bruno Haible  <bruno@clisp.org>
6980
6981         sinl: Move AC_LIBOBJ invocations to module description.
6982         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
6983         * modules/sinl (configure.ac): ... to here.
6984
6985 2011-05-21  Bruno Haible  <bruno@clisp.org>
6986
6987         logl: Move AC_LIBOBJ invocations to module description.
6988         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
6989         * modules/logl (configure.ac): ... to here.
6990
6991 2011-05-21  Bruno Haible  <bruno@clisp.org>
6992
6993         expl: Move AC_LIBOBJ invocations to module description.
6994         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
6995         * modules/expl (configure.ac): ... to here.
6996
6997 2011-05-21  Bruno Haible  <bruno@clisp.org>
6998
6999         roundl: Move AC_LIBOBJ invocations to module description.
7000         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
7001         * modules/roundl (configure.ac): ... to here.
7002
7003 2011-05-21  Bruno Haible  <bruno@clisp.org>
7004
7005         round: Move AC_LIBOBJ invocations to module description.
7006         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
7007         * modules/round (configure.ac): ... to here.
7008
7009 2011-05-21  Bruno Haible  <bruno@clisp.org>
7010
7011         roundf: Move AC_LIBOBJ invocations to module description.
7012         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
7013         * modules/roundf (configure.ac): ... to here.
7014
7015 2011-05-21  Bruno Haible  <bruno@clisp.org>
7016
7017         truncl: Move AC_LIBOBJ invocations to module description.
7018         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
7019         * modules/truncl (configure.ac): ... to here.
7020
7021 2011-05-21  Bruno Haible  <bruno@clisp.org>
7022
7023         trunc: Move AC_LIBOBJ invocations to module description.
7024         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
7025         * modules/trunc (configure.ac): ... to here.
7026
7027 2011-05-21  Bruno Haible  <bruno@clisp.org>
7028
7029         truncf: Move AC_LIBOBJ invocations to module description.
7030         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
7031         * modules/truncf (configure.ac): ... to here.
7032
7033 2011-05-21  Bruno Haible  <bruno@clisp.org>
7034
7035         ceill: Move AC_LIBOBJ invocations to module description.
7036         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
7037         * modules/ceill (configure.ac): ... to here.
7038
7039 2011-05-21  Bruno Haible  <bruno@clisp.org>
7040
7041         ceil: Move AC_LIBOBJ invocations to module description.
7042         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
7043         * modules/ceil (configure.ac): ... to here.
7044
7045 2011-05-21  Bruno Haible  <bruno@clisp.org>
7046
7047         ceilf: Move AC_LIBOBJ invocations to module description.
7048         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
7049         * modules/ceilf (configure.ac): ... to here.
7050
7051 2011-05-21  Bruno Haible  <bruno@clisp.org>
7052
7053         floorl: Respect rules for use of AC_LIBOBJ.
7054         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
7055         * modules/floorl (configure.ac): ... to here.
7056
7057 2011-05-21  Bruno Haible  <bruno@clisp.org>
7058
7059         floor: Respect rules for use of AC_LIBOBJ.
7060         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
7061         * modules/floor (configure.ac): ... to here.
7062
7063 2011-05-21  Bruno Haible  <bruno@clisp.org>
7064
7065         floorf: Move AC_LIBOBJ invocations to module description.
7066         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
7067         * modules/floorf (configure.ac): ... to here.
7068
7069 2011-05-20  Bruno Haible  <bruno@clisp.org>
7070
7071         sqrtl: Respect rules for use of AC_LIBOBJ.
7072         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
7073         * modules/sqrtl (configure.ac): ... to here.
7074
7075 2011-05-20  Bruno Haible  <bruno@clisp.org>
7076
7077         ldexpl: Respect rules for use of AC_LIBOBJ.
7078         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
7079         * modules/ldexpl (configure.ac): ... to here.
7080
7081 2011-05-20  Bruno Haible  <bruno@clisp.org>
7082
7083         frexpl*: Respect rules for use of AC_LIBOBJ.
7084         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
7085         invocation from here...
7086         * modules/frexpl (configure.ac): ... to here.
7087         * modules/frexpl-nolibm (configure.ac): ... and here.
7088
7089 2011-05-20  Bruno Haible  <bruno@clisp.org>
7090
7091         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
7092         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
7093         invocation from here...
7094         * modules/frexp (configure.ac): ... to here.
7095         * modules/frexp-nolibm (configure.ac): ... and here.
7096
7097 2011-05-20  Bruno Haible  <bruno@clisp.org>
7098
7099         isnan: Respect rules for use of AC_LIBOBJ.
7100         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
7101         invocations here.
7102         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
7103         REPLACE_ISNAN.
7104         * modules/isnand (configure.ac): Likewise.
7105         * modules/isnanl (configure.ac): Likewise.
7106
7107 2011-05-20  Bruno Haible  <bruno@clisp.org>
7108
7109         isnanl*: Respect rules for use of AC_LIBOBJ.
7110         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
7111         invocation from here...
7112         * modules/isnanl (configure.ac): ... to here.
7113         * modules/isnanl-nolibm (configure.ac): ... and here.
7114
7115 2011-05-20  Bruno Haible  <bruno@clisp.org>
7116
7117         isnand*: Move AC_LIBOBJ invocations to module description.
7118         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
7119         invocation from here...
7120         * modules/isnand (configure.ac): ... to here.
7121         * modules/isnand-nolibm (configure.ac): ... and here.
7122
7123 2011-05-20  Bruno Haible  <bruno@clisp.org>
7124
7125         isnanf*: Move AC_LIBOBJ invocations to module description.
7126         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
7127         invocation from here...
7128         * modules/isnanf (configure.ac): ... to here.
7129         * modules/isnanf-nolibm (configure.ac): ... and here.
7130
7131 2011-05-20  Bruno Haible  <bruno@clisp.org>
7132
7133         isnan*: Separate the AC_LIBOBJ invocations.
7134         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
7135         AC_LIBOBJ invocation.
7136         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
7137         here.
7138         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
7139         AC_LIBOBJ invocation.
7140         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
7141         here.
7142         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
7143         AC_LIBOBJ invocation.
7144         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
7145         here.
7146         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
7147
7148 2011-05-08  Bruno Haible  <bruno@clisp.org>
7149
7150         isinf: Move AC_LIBOBJ invocations to module description.
7151         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
7152         * modules/isinf (configure.ac): ... to here.
7153
7154 2011-05-08  Bruno Haible  <bruno@clisp.org>
7155
7156         isfinite: Move AC_LIBOBJ invocations to module description.
7157         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
7158         * modules/isfinite (configure.ac): ... to here.
7159
7160 2011-05-08  Bruno Haible  <bruno@clisp.org>
7161
7162         isblank: Move AC_LIBOBJ invocations to module description.
7163         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
7164         here...
7165         * modules/isblank (configure.ac): ... to here.
7166
7167 2011-05-08  Bruno Haible  <bruno@clisp.org>
7168
7169         isapipe: Move AC_LIBOBJ invocations to module description.
7170         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
7171         gl_PREREQ_ISAPIPE invocations from here...
7172         * modules/isapipe (configure.ac): ... to here.
7173         (Depends-on): Update condition.
7174
7175 2011-05-08  Bruno Haible  <bruno@clisp.org>
7176
7177         ioctl: Move AC_LIBOBJ invocations to module description.
7178         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
7179         invocations from here...
7180         * modules/ioctl (configure.ac): ... to here.
7181         (Depends-on): Update condition.
7182
7183 2011-05-08  Bruno Haible  <bruno@clisp.org>
7184
7185         imaxdiv: Move AC_LIBOBJ invocations to module description.
7186         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
7187         invocations from here...
7188         * modules/imaxdiv (configure.ac): ... to here.
7189
7190 2011-05-08  Bruno Haible  <bruno@clisp.org>
7191
7192         imaxabs: Move AC_LIBOBJ invocations to module description.
7193         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
7194         invocations from here...
7195         * modules/imaxabs (configure.ac): ... to here.
7196
7197 2011-05-08  Bruno Haible  <bruno@clisp.org>
7198
7199         getaddrinfo: Move AC_LIBOBJ invocations to module description.
7200         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
7201         AC_LIBOBJ invocations from here...
7202         * modules/getaddrinfo (configure.ac): ... to here.
7203         (Depends-on): Add conditions.
7204
7205 2011-05-08  Bruno Haible  <bruno@clisp.org>
7206
7207         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
7208         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
7209         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
7210         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
7211         (gl_PREREQ_INET_PTON): ... from here.
7212         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
7213         gl_PREREQ_INET_PTON here.
7214         (Depends-on): Update condition.
7215
7216 2011-05-08  Bruno Haible  <bruno@clisp.org>
7217
7218         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
7219         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
7220         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
7221         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
7222         (gl_PREREQ_INET_NTOP): ... from here.
7223         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
7224         gl_PREREQ_INET_NTOP here.
7225         (Depends-on): Update condition.
7226
7227 2011-05-08  Bruno Haible  <bruno@clisp.org>
7228
7229         iconv_open: Move AC_LIBOBJ invocations to module description.
7230         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
7231         AC_LIBOBJ invocations from here...
7232         * modules/iconv_open (configure.ac): ... to here.
7233
7234 2011-05-08  Bruno Haible  <bruno@clisp.org>
7235
7236         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
7237         If module 'iconv_open' is among the main modules and module
7238         'iconv_open-utf' is among the tests dependencies, then
7239         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
7240         return the special iconv_t values. Therefore iconv() and iconv_close()
7241         must support these special iconv_t values, already in lib, not only in
7242         tests.
7243         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
7244         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
7245         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
7246         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
7247         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
7248         (Depends-on): Add the dependencies of iconv_open-utf.
7249         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
7250         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
7251         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
7252
7253 2011-05-08  Bruno Haible  <bruno@clisp.org>
7254
7255         group-member: Move AC_LIBOBJ invocations to module description.
7256         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
7257         gl_PREREQ_GROUP_MEMBER invocations from here...
7258         * modules/group-member (configure.ac): ... to here.
7259
7260 2011-05-08  Bruno Haible  <bruno@clisp.org>
7261
7262         grantpt: Move AC_LIBOBJ invocations to module description.
7263         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
7264         invocations from here...
7265         * modules/grantpt (configure.ac): ... to here.
7266
7267 2011-05-08  Bruno Haible  <bruno@clisp.org>
7268
7269         glob: Move AC_LIBOBJ invocations to module description.
7270         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
7271         from here...
7272         * modules/glob (configure.ac): ... to here.
7273
7274 2011-05-08  Bruno Haible  <bruno@clisp.org>
7275
7276         getusershell: Move AC_LIBOBJ invocations to module description.
7277         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
7278         Move AC_LIBOBJ invocation from here...
7279         * modules/getusershell (configure.ac): ... to here.
7280         (Depends-on): Update condition.
7281
7282 2011-05-08  Bruno Haible  <bruno@clisp.org>
7283
7284         gettimeofday: Move AC_LIBOBJ invocations to module description.
7285         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
7286         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
7287         gl_PREREQ_GETTIMEOFDAY invocations from here...
7288         * modules/gettimeofday (configure.ac): ... to here.
7289
7290 2011-05-08  Bruno Haible  <bruno@clisp.org>
7291
7292         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
7293         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
7294         just gl_FUNC_TZSET.
7295         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
7296         (gl_FUNC_TZSET_CLOBBER): Remove actions.
7297         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
7298         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
7299
7300 2011-05-08  Bruno Haible  <bruno@clisp.org>
7301
7302         getsubopt: Move AC_LIBOBJ invocations to module description.
7303         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
7304         gl_PREREQ_GETSUBOPT invocations from here...
7305         * modules/getsubopt (configure.ac): ... to here.
7306
7307 2011-05-08  Bruno Haible  <bruno@clisp.org>
7308
7309         getpass-gnu: Move AC_LIBOBJ invocations to module description.
7310         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
7311         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
7312         * modules/getpass-gnu (configure.ac): ... to here.
7313
7314 2011-05-08  Bruno Haible  <bruno@clisp.org>
7315
7316         getpass: Move AC_LIBOBJ invocations to module description.
7317         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
7318         gl_PREREQ_GETPASS invocations from here...
7319         * modules/getpass (configure.ac): ... to here.
7320
7321 2011-05-08  Bruno Haible  <bruno@clisp.org>
7322
7323         getpagesize: Move AC_LIBOBJ invocations to module description.
7324         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
7325         from here...
7326         * modules/getpagesize (configure.ac): ... to here.
7327
7328 2011-05-08  Bruno Haible  <bruno@clisp.org>
7329
7330         getopt: Move AC_LIBOBJ invocations to module description.
7331         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
7332         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
7333         invocations from here...
7334         * modules/getopt-gnu (configure.ac): ... to here.
7335         * modules/getopt-posix (configure.ac): ... and here.
7336         (Depends-on): Update condition.
7337
7338 2011-05-08  Bruno Haible  <bruno@clisp.org>
7339
7340         getopt, argp: Respect rules for use of AC_LIBOBJ.
7341         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
7342         (gl_REPLACE_GETOPT_ALWAYS): New macro.
7343         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
7344         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
7345
7346 2011-05-08  Bruno Haible  <bruno@clisp.org>
7347
7348         getlogin_r: Move AC_LIBOBJ invocations to module description.
7349         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
7350         gl_PREREQ_GETLOGIN_R invocations from here...
7351         * modules/getlogin_r (configure.ac): ... to here.
7352
7353 2011-05-08  Bruno Haible  <bruno@clisp.org>
7354
7355         getlogin: Move AC_LIBOBJ invocations to module description.
7356         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
7357         here...
7358         * modules/getlogin (configure.ac): ... to here.
7359
7360 2011-05-08  Bruno Haible  <bruno@clisp.org>
7361
7362         getloadavg: Move AC_LIBOBJ invocations to module description.
7363         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
7364         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
7365         * modules/getloadavg (configure.ac): ... to here.
7366
7367 2011-05-08  Bruno Haible  <bruno@clisp.org>
7368
7369         gethrxtime: Move AC_LIBOBJ invocations to module description.
7370         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
7371         LIB_GETHRXTIME from here...
7372         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
7373         invocations from here...
7374         * modules/gethrxtime (configure.ac): ... to here.
7375
7376 2011-05-08  Bruno Haible  <bruno@clisp.org>
7377
7378         gethostname: Move AC_LIBOBJ invocations to module description.
7379         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
7380         gl_PREREQ_GETHOSTNAME invocations from here...
7381         * modules/gethostname (configure.ac): ... to here.
7382
7383 2011-05-08  Bruno Haible  <bruno@clisp.org>
7384
7385         getgroups: Move AC_LIBOBJ invocations to module description.
7386         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
7387         here...
7388         * modules/getgroups (configure.ac): ... to here.
7389
7390 2011-05-08  Bruno Haible  <bruno@clisp.org>
7391
7392         getdtablesize: Move AC_LIBOBJ invocations to module description.
7393         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
7394         invocation from here...
7395         * modules/getdtablesize (configure.ac): ... to here.
7396
7397 2011-05-08  Bruno Haible  <bruno@clisp.org>
7398
7399         getdomainname: Move AC_LIBOBJ invocations to module description.
7400         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
7401         gl_PREREQ_GETDOMAINNAME invocations from here...
7402         * modules/getdomainname (configure.ac): ... to here.
7403
7404 2011-05-08  Bruno Haible  <bruno@clisp.org>
7405
7406         getline: Move AC_LIBOBJ invocations to module description.
7407         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
7408         invocations from here...
7409         * modules/getline (configure.ac): ... to here.
7410
7411 2011-05-08  Bruno Haible  <bruno@clisp.org>
7412
7413         getline: Simplify.
7414         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
7415         It's already handled through the module dependency.
7416
7417 2011-05-08  Bruno Haible  <bruno@clisp.org>
7418
7419         getdelim: Move AC_LIBOBJ invocations to module description.
7420         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
7421         and gl_PREREQ_GETDELIM invocations from here...
7422         * modules/getdelim (configure.ac): ... to here.
7423         (Depends-on): Fix condition.
7424
7425 2011-05-08  Bruno Haible  <bruno@clisp.org>
7426
7427         getcwd: Move AC_LIBOBJ invocations to module description.
7428         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
7429         invocations from here...
7430         * modules/getcwd (configure.ac): ... to here.
7431
7432 2011-05-08  Bruno Haible  <bruno@clisp.org>
7433
7434         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
7435         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
7436         here...
7437         * modules/getcwd-lgpl (configure.ac): ... to here.
7438
7439 2011-05-07  Bruno Haible  <bruno@clisp.org>
7440
7441         crypto/gc: Move AC_LIBOBJ invocations to module description.
7442         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
7443         * modules/crypto/gc (configure.ac): ... to here.
7444
7445 2011-05-07  Bruno Haible  <bruno@clisp.org>
7446
7447         fwriting: Move AC_LIBOBJ invocations to module description.
7448         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
7449         here...
7450         * modules/fwriting (configure.ac): ... to here.
7451
7452 2011-05-07  Bruno Haible  <bruno@clisp.org>
7453
7454         fwritable: Move AC_LIBOBJ invocations to module description.
7455         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
7456         here...
7457         * modules/fwritable (configure.ac): ... to here.
7458
7459 2011-05-07  Bruno Haible  <bruno@clisp.org>
7460
7461         futimens: Move AC_LIBOBJ invocations to module description.
7462         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
7463         here...
7464         * modules/futimens (configure.ac): ... to here.
7465
7466 2011-05-07  Bruno Haible  <bruno@clisp.org>
7467
7468         ftruncate: Move AC_LIBOBJ invocations to module description.
7469         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
7470         gl_PREREQ_FTRUNCATE invocations from here...
7471         * modules/ftruncate (configure.ac): ... to here.
7472
7473 2011-05-07  Bruno Haible  <bruno@clisp.org>
7474
7475         fsync: Move AC_LIBOBJ invocations to module description.
7476         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
7477         invocations from here...
7478         * modules/fsync (configure.ac): ... to here.
7479
7480 2011-05-07  Bruno Haible  <bruno@clisp.org>
7481
7482         fsusage: Move AC_LIBOBJ invocations to module description.
7483         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
7484         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
7485         * modules/fsusage (configure.ac): ... to here.
7486
7487 2011-05-07  Bruno Haible  <bruno@clisp.org>
7488
7489         freopen: Move AC_LIBOBJ invocations to module description.
7490         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
7491         invocations from here...
7492         * modules/freopen (configure.ac): ... to here.
7493
7494 2011-05-07  Bruno Haible  <bruno@clisp.org>
7495
7496         free: Move AC_LIBOBJ invocations to module description.
7497         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
7498         invocations from here...
7499         * modules/free (configure.ac): ... to here.
7500
7501 2011-05-07  Bruno Haible  <bruno@clisp.org>
7502
7503         freadable: Move AC_LIBOBJ invocations to module description.
7504         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
7505         here...
7506         * modules/freadable (configure.ac): ... to here.
7507
7508 2011-05-07  Bruno Haible  <bruno@clisp.org>
7509
7510         fpurge: Move AC_LIBOBJ invocations to module description.
7511         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
7512         invocations from here...
7513         * modules/fpurge (configure.ac): ... to here.
7514
7515 2011-05-07  Bruno Haible  <bruno@clisp.org>
7516
7517         fpending: Move AC_LIBOBJ invocations to module description.
7518         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
7519         gl_FUNC_FPENDING.
7520         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
7521         invocations from here...
7522         * modules/fpending (configure.ac): ... to here.
7523
7524 2011-05-07  Bruno Haible  <bruno@clisp.org>
7525
7526         fopen: Move AC_LIBOBJ invocations to module description.
7527         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
7528         invocations from here...
7529         * modules/fopen (configure.ac): ... to here.
7530
7531 2011-05-07  Bruno Haible  <bruno@clisp.org>
7532
7533         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
7534         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
7535         gl_FUNC_FNMATCH_POSIX.
7536         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
7537         invocations from here...
7538         * modules/fnmatch (configure.ac): ... to here.
7539         * modules/fnmatch-gnu (configure.ac): ... and here.
7540
7541 2011-05-07  Bruno Haible  <bruno@clisp.org>
7542
7543         flock: Move AC_LIBOBJ invocations to module description.
7544         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
7545         invocations from here...
7546         * modules/flock (configure.ac): ... to here.
7547
7548 2011-05-07  Bruno Haible  <bruno@clisp.org>
7549
7550         fileblocks: Move AC_LIBOBJ invocations to module description.
7551         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
7552         gl_PREREQ_FILEBLOCKS invocations from here...
7553         * modules/fileblocks (configure.ac): ... to here.
7554
7555 2011-05-06  Bruno Haible  <bruno@clisp.org>
7556
7557         fflush: Move AC_LIBOBJ invocations to module description.
7558         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
7559         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
7560         invocations from here...
7561         * modules/fflush (configure.ac): ... to here.
7562
7563 2011-05-06  Bruno Haible  <bruno@clisp.org>
7564
7565         fdopendir: Move AC_LIBOBJ invocations to module description.
7566         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
7567         here...
7568         * modules/fdopendir (configure.ac): ... to here.
7569         (Depends-on): Improve conditions.
7570
7571 2011-05-06  Bruno Haible  <bruno@clisp.org>
7572
7573         _Exit: Move AC_LIBOBJ invocations to module description.
7574         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
7575         invocations from here...
7576         * modules/_Exit (configure.ac): ... to here.
7577
7578 2011-05-21  Bruno Haible  <bruno@clisp.org>
7579
7580         euidaccess: Respect rules for use of AC_LIBOBJ.
7581         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
7582         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
7583         from here...
7584         * modules/euidaccess (configure.ac): ... to here.
7585
7586 2011-05-06  Bruno Haible  <bruno@clisp.org>
7587
7588         error: Move AC_LIBOBJ invocations to module description.
7589         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
7590         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
7591         invocations from here...
7592         * modules/error (configure.ac): ... to here.
7593
7594 2011-05-06  Bruno Haible  <bruno@clisp.org>
7595
7596         duplocale: Move AC_LIBOBJ invocations to module description.
7597         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
7598         gl_PREREQ_DUPLOCALE invocations from here...
7599         * modules/duplocale (configure.ac): ... to here.
7600
7601 2011-05-05  Bruno Haible  <bruno@clisp.org>
7602
7603         dirfd: Move AC_LIBOBJ invocations to module description.
7604         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
7605         gl_FUNC_DIRFD.
7606         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
7607         here...
7608         * modules/dirfd (configure.ac): ... to here.
7609         (Depends-on): Fix condition.
7610
7611 2011-05-05  Bruno Haible  <bruno@clisp.org>
7612
7613         chown: Respect rules for use of AC_LIBOBJ.
7614         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
7615         * modules/chown (configure.ac): ... to here.
7616
7617 2011-05-05  Bruno Haible  <bruno@clisp.org>
7618
7619         chdir-long: Move AC_LIBOBJ invocations to module description.
7620         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
7621         gl_PREREQ_CHDIR_LONG invocations from here...
7622         * modules/chdir-long (configure.ac): ... to here.
7623
7624 2011-05-05  Bruno Haible  <bruno@clisp.org>
7625
7626         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
7627         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
7628         from here...
7629         * modules/canonicalize-lgpl (configure.ac): ... to here.
7630
7631 2011-05-05  Bruno Haible  <bruno@clisp.org>
7632
7633         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
7634         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
7635         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
7636         REPLACE_CALLOC.
7637         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
7638         * modules/calloc-gnu (configure.ac): Likewise.
7639
7640 2011-05-05  Bruno Haible  <bruno@clisp.org>
7641
7642         btowc: Move AC_LIBOBJ invocations to module description.
7643         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
7644         invocations from here...
7645         * modules/btowc (configure.ac): ... to here.
7646
7647 2011-05-21  Bruno Haible  <bruno@clisp.org>
7648
7649         atexit: Move AC_LIBOBJ invocations to module description.
7650         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
7651         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
7652         here...
7653         * modules/atexit (configure.ac): ... to here.
7654
7655 2011-05-05  Bruno Haible  <bruno@clisp.org>
7656
7657         atoll: Move AC_LIBOBJ invocations to module description.
7658         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
7659         invocations from here...
7660         * modules/atoll (configure.ac): ... to here.
7661
7662 2011-05-05  Bruno Haible  <bruno@clisp.org>
7663
7664         argz: Move AC_LIBOBJ invocations to module description.
7665         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
7666         * modules/argz (configure.ac): ... to here.
7667
7668 2011-05-05  Bruno Haible  <bruno@clisp.org>
7669
7670         alphasort: Move AC_LIBOBJ invocations to module description.
7671         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
7672         gl_PREREQ_ALPHASORT invocations from here...
7673         * modules/alphasort (configure.ac): ... to here.
7674
7675 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
7676
7677         verify: new macro verify_expr; verify_true deprecated
7678         * NEWS: Mention this.
7679         * doc/verify.texi (Compile-time Assertions): Document this.
7680         * lib/verify.h (verify_true): Deprecate.
7681         (verify_expr): New macro.
7682         * tests/test-verify.c (function): Test verify_expr.
7683
7684 2011-06-14  Jim Meyering  <meyering@redhat.com>
7685
7686         init.sh: give more portable redirection-related advice in a comment
7687         * tests/init.sh (stderr_fileno_): Update the advice in comments.
7688         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
7689         for lots of discussion.  Stefano Lattarini suggested the solution
7690         of putting "9>&2" after the command.  Reported by Bruno Haible.
7691
7692 2011-06-13  Bruno Haible  <bruno@clisp.org>
7693
7694         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
7695         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
7696         'none'.
7697
7698 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
7699
7700         ftoastr: use strtof only if HAVE_STRTOF
7701         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
7702         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
7703         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
7704         * modules/ftoastr (configure.ac): Check for strtof.
7705
7706 2011-06-13  Bruno Haible  <bruno@clisp.org>
7707
7708         gnulib-tool: Addendum to 2011-06-08 commit.
7709         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
7710         and --witness-c-macro have been given, augment AM_CPPFLAGS.
7711
7712 2011-06-13  Bruno Haible  <bruno@clisp.org>
7713
7714         fseeko: Provide a non-inline replacement of fseek().
7715         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
7716         * modules/fseeko (Depends-on): Add fseek.
7717         * modules/fseek (License): Change to LGPLv2+.
7718
7719 2011-06-13  Bruno Haible  <bruno@clisp.org>
7720
7721         ftello: Provide a non-inline replacement of ftell().
7722         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
7723         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
7724         not have ftello() (such as on mingw).
7725         * modules/ftello (Depends-on): Add ftell.
7726         * modules/ftell (License): Change to LGPLv2+.
7727
7728 2011-05-07  Bruno Haible  <bruno@clisp.org>
7729
7730         ftell: Move AC_LIBOBJ invocations to module description.
7731         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
7732         * modules/ftell (configure.ac): ... to here.
7733
7734 2011-05-07  Bruno Haible  <bruno@clisp.org>
7735
7736         ftello: Respect rules for use of AC_LIBOBJ.
7737         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
7738         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
7739         here...
7740         * modules/ftello (configure.ac): ... to here.
7741
7742 2011-05-07  Bruno Haible  <bruno@clisp.org>
7743
7744         fseeko: Simplify.
7745         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
7746         (gl_FUNC_FSEEKO): Inline it here.
7747
7748 2011-05-07  Bruno Haible  <bruno@clisp.org>
7749
7750         fseek: Move AC_LIBOBJ invocations to module description.
7751         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
7752         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
7753         * modules/fseek (configure.ac): ... to here.
7754
7755 2011-05-07  Bruno Haible  <bruno@clisp.org>
7756
7757         fseek: Respect rules for use of AC_LIBOBJ.
7758         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
7759         here...
7760         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
7761
7762 2011-05-07  Bruno Haible  <bruno@clisp.org>
7763
7764         fseeko: Respect rules for use of AC_LIBOBJ.
7765         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
7766         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
7767         here...
7768         * modules/fseeko (configure.ac): ... to here.
7769
7770 2011-06-13  Bruno Haible  <bruno@clisp.org>
7771
7772         gnulib-tool: Allow comments in the 'Depends-on' section.
7773         * doc/gnulib.texi (Module description): Mention comment syntax in the
7774         Depends-on section.
7775         * gnulib-tool (func_get_dependencies): Filter out comment lines.
7776
7777 2011-06-13  Bruno Haible  <bruno@clisp.org>
7778
7779         file-set.h: guard __attibute__ use, now that it's not always defined
7780         * lib/file-set.h (record_file): Use __attribute__ only with compiler
7781         versions that support it.  This fixes a coreutils build failure with
7782         the vendor cc on HP-UX 11.31.
7783
7784 2011-06-12  Bruno Haible  <bruno@clisp.org>
7785
7786         acl: Add support for HP-UX >= 11.11 JFS ACLs.
7787         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
7788         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
7789         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
7790         (acl, aclsort): New declarations.
7791         (aclv_nontrivial): New declaration.
7792         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
7793         (file_has_acl): Read also the second kind of HP-UX ACLs.
7794         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
7795         kind of HP-UX ACLs if the first kind fails.
7796         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
7797         second kind of HP-UX ACLs.
7798         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
7799         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
7800         agree.
7801         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
7802         hpuxjfs.
7803         Handle hpuxjfs.
7804         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
7805         hpuxjfs.
7806         Handle hpuxjfs.
7807         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
7808         (func_test_same_acls): Use both lsacl and getacl.
7809         Handle hpuxjfs.
7810         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
7811         (func_test_same_acls): Use both lsacl and getacl.
7812         Handle hpuxjfs.
7813
7814 2011-06-12  Bruno Haible  <bruno@clisp.org>
7815
7816         acl: Complete the 2010-08-10 fix.
7817         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
7818         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
7819         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
7820         explicitly.
7821         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
7822         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
7823
7824 2011-06-12  Bruno Haible  <bruno@clisp.org>
7825
7826         spawn-pipe tests: Comments.
7827         * tests/test-spawn-pipe-child.c (main): Update comment.
7828         Reported by James Youngman <jay@gnu.org>.
7829
7830 2011-06-11  James Youngman  <jay@gnu.org>
7831
7832         New module 'stat-size'.
7833         * modules/stat-size: New module.  Provides macros for accessing
7834         file size information in instances of struct stat.  Depends on the
7835         fileblocks module because it calls st_blocks.
7836         * lib/stat-size.h: New file, adapted from coreutils' system.h.
7837         * doc/gnulib.texi: Include stat-size.texi.
7838         * doc/stat-size.texi: Documentation for this module.
7839         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
7840         * m4/fileblocks.m4: Mention that stat-size depends on the call to
7841         AC_STRUCT_ST_BLOCKS.
7842
7843 2011-06-09  Bruno Haible  <bruno@clisp.org>
7844
7845         thread: Support pthreads-win32.
7846         * lib/glthread/thread.h (gl_thread_self): Define differently on
7847         pthreads-win32.
7848         (gl_null_thread): New declaration.
7849         (gl_thread_self_pointer): New macro.
7850         * lib/glthread/thread.c (gl_null_thread): New constant.
7851         * tests/test-lock.c: Use gl_thread_self_pointer instead of
7852         gl_thread_self.
7853         * tests/test-tls.c: Likewise.
7854         Suggested by Paul Eggert. Reported by Eric Blake.
7855
7856 2011-06-09  Bruno Haible  <bruno@clisp.org>
7857
7858         thread: Fix confusion between NULL and 0.
7859         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
7860         Reported by Paul Eggert.
7861
7862 2011-06-09  Bruno Haible  <bruno@clisp.org>
7863
7864         spawn-pipe tests: Avoid test failure on HP-UX 11.
7865         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
7866         is closed.
7867
7868 2011-06-09  Bruno Haible  <bruno@clisp.org>
7869
7870         acl tests: Fix compilation error on HP-UX 11.
7871         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
7872
7873 2011-06-09  Bruno Haible  <bruno@clisp.org>
7874
7875         rmdir: Avoid test failure on HP-UX 10.20.
7876         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
7877         EEXIST.
7878
7879 2011-06-08  Eric Blake  <eblake@redhat.com>
7880
7881         perror: fix test on mingw
7882         * modules/perror-tests (Depends-on): Add dup2.
7883
7884         strerror_r-posix: fix on MacOS
7885         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
7886         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
7887         logic bug.
7888         * lib/strerror_r.c (strerror_r): Fix the bug.
7889         * lib/strerror.c (strerror): Likewise.
7890         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
7891         problem.
7892         * doc/posix-functions/strerror.texi (strerror): Likewise.
7893         * doc/posix-functions/perror.texi (perror): Likewise.
7894         * tests/test-strerror.c (main): Enhance test.
7895         * tests/test-strerror_r.c (main): Likewise.
7896
7897 2011-06-08  Bruno Haible  <bruno@clisp.org>
7898
7899         gnulib-tool: Better isolation between different gnulib-tool invocations.
7900         * gnulib-tool: New option --witness-c-macro.
7901         (witness_c_macro): New variable.
7902         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
7903         AM_CPPFLAGS define it as a C macro.
7904         (func_emit_tests_Makefile_am): Likewise.
7905         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
7906         read it from there.
7907         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
7908         m4_define, not AC_DEFUN.
7909         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
7910         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
7911         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
7912         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
7913         s|...|...|, to substitute the values of the GNULIB_* module indicator
7914         variables.
7915         * modules/dirent (Makefile.am): Likewise.
7916         * modules/fcntl-h (Makefile.am): Likewise.
7917         * modules/iconv-h (Makefile.am): Likewise.
7918         * modules/langinfo (Makefile.am): Likewise.
7919         * modules/locale (Makefile.am): Likewise.
7920         * modules/math (Makefile.am): Likewise.
7921         * modules/netdb (Makefile.am): Likewise.
7922         * modules/poll-h (Makefile.am): Likewise.
7923         * modules/pty (Makefile.am): Likewise.
7924         * modules/search (Makefile.am): Likewise.
7925         * modules/signal (Makefile.am): Likewise.
7926         * modules/spawn (Makefile.am): Likewise.
7927         * modules/stdio (Makefile.am): Likewise.
7928         * modules/stdlib (Makefile.am): Likewise.
7929         * modules/string (Makefile.am): Likewise.
7930         * modules/sys_ioctl (Makefile.am): Likewise.
7931         * modules/sys_select (Makefile.am): Likewise.
7932         * modules/sys_socket (Makefile.am): Likewise.
7933         * modules/sys_stat (Makefile.am): Likewise.
7934         * modules/sys_times (Makefile.am): Likewise.
7935         * modules/sys_utsname (Makefile.am): Likewise.
7936         * modules/sys_wait (Makefile.am): Likewise.
7937         * modules/termios (Makefile.am): Likewise.
7938         * modules/time (Makefile.am): Likewise.
7939         * modules/unistd (Makefile.am): Likewise.
7940         * modules/wchar (Makefile.am): Likewise.
7941
7942 2011-06-08  Eric Blake  <eblake@redhat.com>
7943
7944         strerror: simplify replacement
7945         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
7946         * modules/strerror (configure.ac): No prereqs needed here...
7947         * modules/strerror-override (configure.ac): ...but this needs it.
7948         (Files): Add file for needed prereq macro.
7949
7950 2011-06-08  Bruno Haible  <bruno@clisp.org>
7951
7952         strerror_r-posix: Tweaks.
7953         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
7954         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
7955         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
7956         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
7957         (gl_FUNC_STRERROR_R): ... to here.
7958         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
7959
7960 2011-06-07  Eric Blake  <eblake@redhat.com>
7961
7962         perror: document fixed bugs
7963         * doc/posix-functions/perror.texi (perror): Document recent
7964         patches.
7965
7966 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
7967
7968         stat-time: get_stat_birthtime failure is better-defined
7969         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
7970         return a timestamp whose tv_sec and tv_nsec values are both -1.
7971         Previously, the spec said only that the tv_nsec value was negative.
7972         This upward-compatible change simplifies GNU tar a bit.
7973
7974 2011-06-07  Eric Blake  <eblake@redhat.com>
7975
7976         strerror_r-posix: work around cygwin 1.7.9
7977         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
7978         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
7979         bug without replacing strerror_r.
7980         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
7981         strerror_r is buggy, but without requiring strerror_r compilation.
7982         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
7983
7984         test-perror: relax test to ignore cygwin bug
7985         * tests/test-perror2.c (main): Relax test on requiring detection
7986         of stream errors, and use unbuffered stream.
7987         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
7988         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
7989         * doc/posix-functions/fputc.texi (fputc): Likewise.
7990         * doc/posix-functions/fputs.texi (fputs): Likewise.
7991         * doc/posix-functions/fputws.texi (fputws): Likewise.
7992         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
7993         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
7994         * doc/posix-functions/getopt.texi (getopt): Likewise.
7995         * doc/posix-functions/perror.texi (perror): Likewise.
7996         * doc/posix-functions/printf.texi (printf): Likewise.
7997         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
7998         * doc/posix-functions/psignal.texi (psignal): Likewise.
7999         * doc/posix-functions/putc.texi (putc): Likewise.
8000         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
8001         Likewise.
8002         * doc/posix-functions/putchar.texi (putchar): Likewise.
8003         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
8004         Likewise.
8005         * doc/posix-functions/puts.texi (puts): Likewise.
8006         * doc/posix-functions/putwc.texi (putwc): Likewise.
8007         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
8008         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
8009         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
8010         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
8011         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
8012         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
8013         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
8014         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
8015
8016 2011-05-22  Bruno Haible  <bruno@clisp.org>
8017
8018         strerror: Move AC_LIBOBJ invocations to module description.
8019         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
8020         gl_PREREQ_STRERROR invocations from here...
8021         * modules/strerror (configure.ac): ... to here.
8022
8023 2011-05-21  Bruno Haible  <bruno@clisp.org>
8024
8025         perror: Use common idiom.
8026         * modules/perror (configure.ac): Reorder statements.
8027
8028 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
8029
8030         tests: fix usage message in 'mktempd_'
8031         * tests/init.sh (mktempd_): In the usage message, use literal
8032         'mktempd_', not '$ME' (which is even undefined), as the name of
8033         the subroutine.
8034
8035 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
8036
8037         tests init: new function 'fatal_', for hard errors
8038         Before this patch, the only way offered by tests/init.sh to
8039         properly signal a hard error was the `framework_failure_'
8040         function.  But the error message issued by that function,
8041         as its name would suggest, refers to a set-up failure in the
8042         testsuite, while hard errors can obviously also be due to
8043         other reasons.  The best way to fix this inconsistency is to
8044         introduce a new function with a more general error message.
8045         * tests/init.sh (fatal_): New function.
8046
8047 2011-06-06  Eric Blake  <eblake@redhat.com>
8048
8049         canonicalize-lgpl: use common idiom
8050         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
8051         over newer POSIX -Rf.
8052         Reported by Bruno Haible.
8053
8054         canonicalize-lgpl: work around AIX realpath bug
8055         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
8056         * doc/posix-functions/realpath.texi (realpath): Document it.
8057         Reported by Bruno Haible.
8058
8059         strerror: work around FreeBSD bug
8060         * lib/strerror.c (strerror): Special case 0.
8061         Reported by Bruno Haible.
8062
8063         strerror-override: avoid bloating errno module
8064         * modules/errno (Files, configure.ac): Move replacement strings...
8065         * modules/strerror-override: ...to new module.
8066         * modules/strerror (Depends-on): Add strerror-override.
8067         * modules/strerror_r-posix (Depends-on): Likewise.
8068         * MODULES.html.sh: Document new module.
8069         Reported by Bruno Haible.
8070
8071 2011-06-06  Bruno Haible  <bruno@clisp.org>
8072
8073         spawn-pipe tests: Rename program.
8074         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
8075         * tests/test-spawn-pipe-child.c: Update comment.
8076         * tests/test-spawn-pipe.sh: Update.
8077         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
8078
8079         spawn-pipe tests: Link the child program only against libc.
8080         * tests/test-spawn-pipe-child.c: New file, extracted from
8081         tests/test-spawn-pipe.c.
8082         (main): Expect only one argument.
8083         (is_open): New function, copied from tests/test-pipe.c.
8084         * tests/test-spawn-pipe.c: Don't include <errno.h>.
8085         (child_main): Remove function.
8086         (test_pipe): Pass only one argument to the child program.
8087         (main): Remove child process code. Expect the child program's name as
8088         first argument.
8089         * tests/test-spawn-pipe.sh: Pass the child program's name as first
8090         argument.
8091         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
8092         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
8093         test-spawn-pipe-child against no libraries.
8094
8095 2011-06-06  Bruno Haible  <bruno@clisp.org>
8096
8097         careadlinkat: Avoid mismatch between ssize_t and int.
8098         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
8099         * lib/careadlinkat.c (careadlinkatcwd): Define always.
8100
8101 2011-06-06  Jim Meyering  <meyering@redhat.com>
8102
8103         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
8104         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
8105         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
8106
8107 2011-06-05  Bruno Haible  <bruno@clisp.org>
8108
8109         ansi-c++-opt: Interoperability with libtool.
8110         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
8111         set the variable to "no", not to ":".
8112         * NEWS: Mention the change.
8113
8114 2011-06-05  Bruno Haible  <bruno@clisp.org>
8115
8116         acl: Fix test failure on AIX 7.
8117         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
8118         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
8119
8120 2011-06-05  Bruno Haible  <bruno@clisp.org>
8121
8122         pipe-filter-ii: Fix test failure on AIX and IRIX.
8123         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
8124         with EAGAIN, retry with a smaller buffer size.
8125
8126 2011-06-05  Bruno Haible  <bruno@clisp.org>
8127
8128         localename: Fix link dependencies.
8129         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
8130         * modules/localename-tests (Makefile.am): Link test-localename with
8131         $(LIBTHREAD).
8132
8133 2011-06-05  Bruno Haible  <bruno@clisp.org>
8134
8135         error: Avoid gcc warning.
8136         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
8137
8138 2011-06-05  Bruno Haible  <bruno@clisp.org>
8139
8140         unsetenv: Avoid gcc warning.
8141         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
8142
8143 2011-06-05  Bruno Haible  <bruno@clisp.org>
8144
8145         setenv: Avoid gcc warning.
8146         * lib/setenv.c (setenv): Provide declaration if system lacks it.
8147
8148 2011-06-05  Bruno Haible  <bruno@clisp.org>
8149
8150         sys_select: Ensure memset is declared also on AIX 7.
8151         * lib/sys_select.in.h: Include <string.h> also on AIX.
8152         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
8153         self-contained also on AIX 7.1.
8154
8155 2011-06-04  Jim Meyering  <meyering@redhat.com>
8156
8157         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
8158         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
8159         function name, "error".
8160         (_gl_translatable_diag_func_re): New configurable variable.
8161
8162 2011-06-04  Bruno Haible  <bruno@clisp.org>
8163
8164         getopt: Avoid gcc warning.
8165         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
8166
8167 2011-06-04  Bruno Haible  <bruno@clisp.org>
8168
8169         strerror_r: Fix comments.
8170         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
8171         commit.
8172
8173 2011-06-04  Bruno Haible  <bruno@clisp.org>
8174
8175         perror: Fix compilation error.
8176         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
8177         Undefine fprintf, not sprintf.
8178         * modules/perror (Depends-on): Remove intprops, verify.
8179
8180 2011-06-04  Bruno Haible  <bruno@clisp.org>
8181
8182         setlocale: Enable replacement on Cygwin 1.5.
8183         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
8184         Cygwin 1.5.x.
8185         * doc/posix-functions/setlocale.texi: Mention that the problem with the
8186         LC_CTYPE category also exists on Cygwin 1.5.x.
8187
8188 2011-06-04  Bruno Haible  <bruno@clisp.org>
8189
8190         strerror-override: Don't disable symbol renamings.
8191         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
8192         * lib/strerror-override.c: Include config.h.
8193         (strerror_override): Don't undefine.
8194
8195 2011-06-03  Bruno Haible  <bruno@clisp.org>
8196
8197         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
8198         * lib/localename.h: Update copyright header.
8199         * lib/localename.c: Likewise.
8200         * lib/relocatable.h: Likewise.
8201         * lib/relocatable.c: Likewise.
8202
8203 2011-06-02  Bruno Haible  <bruno@clisp.org>
8204
8205         doc: Fix a module name.
8206         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
8207
8208 2011-06-02  Bruno Haible  <bruno@clisp.org>
8209
8210         pipe2: Remove dependency on 'nonblocking' module.
8211         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
8212         O_NONBLOCK is defined by gnulib.
8213         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
8214         is zero.
8215         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
8216         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
8217         defined by gnulib.
8218         (get_nonblocking_flag): New function.
8219         (main): Test O_NONBLOCK flag only if it is nonzero.
8220         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
8221
8222 2011-06-03  Jim Meyering  <meyering@redhat.com>
8223
8224         maint: three new prohibit-header-without-use rules
8225         Prohibit use of cloexec.h, posixver.h, same.h without use.
8226         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
8227         (sc_prohibit_posixver_without_use): Likewise.
8228         (sc_prohibit_same_without_use): Likewise.
8229
8230 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
8231
8232         allocator: 'die' routine is now given requested size
8233         * lib/allocator.h (struct allocator.die): New size arg.
8234         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
8235         If the actual problem is an ssize_t limitation, not a size_t or
8236         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
8237
8238 2011-06-01  Eric Blake  <eblake@redhat.com>
8239
8240         strerror: drop strerror_r dependency
8241         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
8242         * lib/strerror-override.c (strerror_override): ...to new file.
8243         * lib/strerror-override.h: Add prototype.
8244         * lib/strerror-impl.h: Delete.
8245         * lib/strerror.c (strerror): New implementation.
8246         * modules/errno (Files): Add new files.
8247         (configure.ac): Compile new file as appropriate.
8248         * modules/strerror (Files): Drop unused file.
8249         (Depends-on): Drop strerror_r-posix.
8250         * MODULES.html.sh: Document strerror_r-posix.
8251         Requested by Sam Steingold.
8252
8253         perror: call strerror_r directly
8254         * modules/perror (Files): Drop strerror-impl.h.
8255         * lib/perror.c (perror): Use our own stack buffer, rather than
8256         calling a wrapper that uses static storage.
8257         * doc/posix-functions/perror.texi (perror): Document a limitation
8258         of our replacement.
8259
8260         strerror_r: fix includes for FreeBSD
8261         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
8262         since we use abort on some platforms.
8263         Reported by Matthias Bolte.
8264
8265 2011-05-31  Bruno Haible  <bruno@clisp.org>
8266
8267         Fix link errors in tests: openat-die uses gettext-h.
8268         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
8269         against $(LIBINTL).
8270         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
8271         against $(LIBINTL).
8272         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
8273         $(LIBINTL).
8274         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
8275         against $(LIBINTL).
8276         * modules/linkat-tests (Makefile.am): Link test-linkat against
8277         $(LIBINTL).
8278         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
8279         $(LIBINTL).
8280         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
8281         against $(LIBINTL).
8282         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
8283         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
8284         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
8285         $(LIBINTL).
8286         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
8287         $(LIBINTL).
8288         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
8289         $(LIBINTL).
8290         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8291
8292 2011-05-31  Bruno Haible  <bruno@clisp.org>
8293
8294         Fix link errors in tests: wait-process uses gettext-h.
8295         * modules/nonblocking-pipe-tests (Makefile.am): Set
8296         test_nonblocking_pipe_main_LDADD.
8297         * modules/nonblocking-socket-tests (Makefile.am): Link
8298         test-nonblocking-socket-main against $(LIBINTL).
8299         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8300
8301 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
8302
8303         assert-h: work around 'verify' incompatibility
8304         * lib/verify.h: Use @...@ directives, not ifdef.
8305         * modules/assert-h (assert.h): Implement the directives.
8306         (assert.h): Substitute the symbol-prefix more consistently.
8307
8308 2011-05-29  Jim Meyering  <meyering@redhat.com>
8309
8310         trim: remove three superfluous assignments
8311         * lib/trim.c (trim2): Remove three superfluous assignments
8312         and correct brace positioning.
8313
8314 2011-05-29  Bruno Haible  <bruno@clisp.org>
8315
8316         wctype-h: Avoid namespace pollution on Solaris 2.6.
8317         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
8318         identifiers.
8319         * doc/posix-headers/wctype.texi: Mention the problem.
8320         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8321
8322 2011-05-28  Jim Meyering  <meyering@redhat.com>
8323
8324         parse-datetime.y: accommodate -Wstrict-overflow
8325         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
8326         placate -Wstrict-overflow.
8327
8328         trim: avoid a warning from -O2 -Wstrict-overflow
8329         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
8330
8331 2011-05-29  Bruno Haible  <bruno@clisp.org>
8332
8333         gnulib-tool: Fix bug in yesterday's commit.
8334         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
8335         twice.
8336
8337 2011-05-29  Bruno Haible  <bruno@clisp.org>
8338
8339         Allow multiple gnulib generated include files to be combined.
8340         * gnulib-tool (func_compute_include_guard_prefix): New function.
8341         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
8342         ${gl_include_guard_prefix} references.
8343         (func_import, func_create_testdir): Invoke
8344         func_compute_include_guard_prefix.
8345         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
8346         * lib/ctype.in.h: Likewise.
8347         * lib/dirent.in.h: Likewise.
8348         * lib/errno.in.h: Likewise.
8349         * lib/fcntl.in.h: Likewise.
8350         * lib/float.in.h: Likewise.
8351         * lib/getopt.in.h: Likewise.
8352         * lib/iconv.in.h: Likewise.
8353         * lib/langinfo.in.h: Likewise.
8354         * lib/locale.in.h: Likewise.
8355         * lib/math.in.h: Likewise.
8356         * lib/netdb.in.h: Likewise.
8357         * lib/netinet_in.in.h: Likewise.
8358         * lib/poll.in.h: Likewise.
8359         * lib/pthread.in.h: Likewise.
8360         * lib/pty.in.h: Likewise.
8361         * lib/sched.in.h: Likewise.
8362         * lib/se-selinux.in.h: Likewise.
8363         * lib/search.in.h: Likewise.
8364         * lib/signal.in.h: Likewise.
8365         * lib/spawn.in.h: Likewise.
8366         * lib/stdarg.in.h: Likewise.
8367         * lib/stddef.in.h: Likewise.
8368         * lib/stdint.in.h: Likewise.
8369         * lib/stdio.in.h: Likewise.
8370         * lib/stdlib.in.h: Likewise.
8371         * lib/string.in.h: Likewise.
8372         * lib/strings.in.h: Likewise.
8373         * lib/sys_file.in.h: Likewise.
8374         * lib/sys_ioctl.in.h: Likewise.
8375         * lib/sys_select.in.h: Likewise.
8376         * lib/sys_socket.in.h: Likewise.
8377         * lib/sys_stat.in.h: Likewise.
8378         * lib/sys_time.in.h: Likewise.
8379         * lib/sys_times.in.h: Likewise.
8380         * lib/sys_uio.in.h: Likewise.
8381         * lib/sys_utsname.in.h: Likewise.
8382         * lib/sys_wait.in.h: Likewise.
8383         * lib/sysexits.in.h: Likewise.
8384         * lib/termios.in.h: Likewise.
8385         * lib/time.in.h: Likewise.
8386         * lib/unistd.in.h: Likewise.
8387         * lib/wchar.in.h: Likewise.
8388         * lib/wctype.in.h: Likewise.
8389         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
8390         * modules/ctype (Makefile.am): Likewise.
8391         * modules/dirent (Makefile.am): Likewise.
8392         * modules/errno (Makefile.am): Likewise.
8393         * modules/fcntl-h (Makefile.am): Likewise.
8394         * modules/float (Makefile.am): Likewise.
8395         * modules/getopt-posix (Makefile.am): Likewise.
8396         * modules/iconv-h (Makefile.am): Likewise.
8397         * modules/langinfo (Makefile.am): Likewise.
8398         * modules/locale (Makefile.am): Likewise.
8399         * modules/math (Makefile.am): Likewise.
8400         * modules/netdb (Makefile.am): Likewise.
8401         * modules/netinet_in (Makefile.am): Likewise.
8402         * modules/poll-h (Makefile.am): Likewise.
8403         * modules/pthread (Makefile.am): Likewise.
8404         * modules/pty (Makefile.am): Likewise.
8405         * modules/sched (Makefile.am): Likewise.
8406         * modules/search (Makefile.am): Likewise.
8407         * modules/selinux-h (Makefile.am): Likewise.
8408         * modules/signal (Makefile.am): Likewise.
8409         * modules/spawn (Makefile.am): Likewise.
8410         * modules/stdarg (Makefile.am): Likewise.
8411         * modules/stddef (Makefile.am): Likewise.
8412         * modules/stdint (Makefile.am): Likewise.
8413         * modules/stdio (Makefile.am): Likewise.
8414         * modules/stdlib (Makefile.am): Likewise.
8415         * modules/string (Makefile.am): Likewise.
8416         * modules/strings (Makefile.am): Likewise.
8417         * modules/sys_file (Makefile.am): Likewise.
8418         * modules/sys_ioctl (Makefile.am): Likewise.
8419         * modules/sys_select (Makefile.am): Likewise.
8420         * modules/sys_socket (Makefile.am): Likewise.
8421         * modules/sys_stat (Makefile.am): Likewise.
8422         * modules/sys_time (Makefile.am): Likewise.
8423         * modules/sys_times (Makefile.am): Likewise.
8424         * modules/sys_uio (Makefile.am): Likewise.
8425         * modules/sys_utsname (Makefile.am): Likewise.
8426         * modules/sys_wait (Makefile.am): Likewise.
8427         * modules/sysexits (Makefile.am): Likewise.
8428         * modules/termios (Makefile.am): Likewise.
8429         * modules/time (Makefile.am): Likewise.
8430         * modules/unistd (Makefile.am): Likewise.
8431         * modules/wchar (Makefile.am): Likewise.
8432         * modules/wctype-h (Makefile.am): Likewise.
8433         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
8434
8435 2011-05-29  Bruno Haible  <bruno@clisp.org>
8436
8437         assert-h: Allow multiple gnulib generated replacements to coexist.
8438         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
8439
8440 2011-05-29  Bruno Haible  <bruno@clisp.org>
8441
8442         argp: Allow coexistence with strerror_r-posix module.
8443         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
8444         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
8445         by gnulib's <string.h> replacement), assume it has the POSIX signature,
8446         not the glibc signature.
8447
8448 2011-05-28  Bruno Haible  <bruno@clisp.org>
8449
8450         gnulib-tool: Alternative structure of testdirs, similar to --import.
8451         * gnulib-tool: New option --single-configure.
8452         (func_usage): Document it.
8453         (single_configure): New variable.
8454         (func_modules_transitive_closure_separately,
8455         func_modules_transitive_closure_separately,
8456         func_determine_use_libtests, func_modules_add_dummy_separately,
8457         func_modules_to_filelist_separately): New functions, extracted from
8458         func_import.
8459         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
8460         (func_import): Use the new functions.
8461         (func_create_testdir): Set final_modules. Handle $single_configure =
8462         true case.
8463
8464 2011-05-28  Bruno Haible  <bruno@clisp.org>
8465
8466         getloadavg: Remove an unreliable safety check.
8467         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
8468         getloadavg.c is in place.
8469         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
8470         Reported by Sam Steingold <sds@gnu.org>.
8471
8472 2011-05-28  Bruno Haible  <bruno@clisp.org>
8473
8474         doc: Cleanup yet another file produced by texinfo.tex.
8475         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
8476
8477 2011-05-28  Bruno Haible  <bruno@clisp.org>
8478
8479         Finish the conditional dependencies mechanism.
8480         * gnulib-tool: New option --no-conditional-dependencies.
8481         (func_usage): Document it. Don't mark --conditional-dependencies as
8482         experimental.
8483         (cond_dependencies): The possible values can now be true, false, empty.
8484         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
8485         (func_import): Store setting in gnulib-cache.m4 and read it from there.
8486         * doc/gnulib-tool.texi (Conditional dependencies): New section.
8487
8488 2011-05-28  Bruno Haible  <bruno@clisp.org>
8489
8490         doc: Use a recent texinfo.tex.
8491         * doc/Makefile (tex_opts): New variable.
8492         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
8493
8494 2011-05-28  Jim Meyering  <meyering@redhat.com>
8495
8496         intprops.h: adjust comment to match code change
8497         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
8498         only once, it *may* have side effects.  Also fix an unrelated typo.
8499         (_GL_INT_SIGNED): Likewise.
8500
8501 2011-05-26  Simon Josefsson  <simon@josefsson.org>
8502
8503         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
8504
8505 2011-05-26  Bruno Haible  <bruno@clisp.org>
8506
8507         mbsrchr: Avoid collision with system function on Interix.
8508         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
8509         Reported by Markus Duft <mduft@gentoo.org>.
8510
8511 2011-05-15  James Youngman  <jay@gnu.org>
8512
8513         getopt: for ambiguous options, enumerate the possibilities.
8514         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
8515         the ambiguous options when an ambiguous prefix is given. This was
8516         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
8517         glibc change was
8518         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
8519
8520 2011-05-25  Eric Blake  <eblake@redhat.com>
8521
8522         getcwd: work around mingw bug
8523         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
8524         * doc/posix-functions/getcwd.texi (getcwd): Document it.
8525         Reported by Matthias Bolte.
8526
8527 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
8528
8529         test-intprops: disable -Wtype-limits diagnostics
8530         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
8531         diagnostics.  Otherwise, the integer overflow macros generate many
8532         diagnostics.  Reported by Jim Meyering in
8533         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
8534
8535         intprops: shorten, to pacify gcc -Woverlength-strings
8536         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
8537         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
8538         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
8539         likely to run afoul of C compiler limits for string constant lengths.
8540         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
8541
8542 2011-05-24  Eric Blake  <eblake@redhat.com>
8543
8544         docs: document recently fixed glibc printf bug
8545         * doc/posix-functions/fprintf.texi (fprintf): Document it.
8546         * doc/posix-functions/printf.texi (printf): Likewise.
8547         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
8548         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
8549
8550         closein-tests: convert to init.sh
8551         * modules/closein-tests (Files): Add init.sh
8552         * tests/test-closein.sh Use it.
8553
8554         yesno-tests: convert to init.sh
8555         * modules/yesno-tests (Files): Add init.sh.
8556         * tests/test-yesno.sh: Use it.
8557
8558         atexit-tests: ensure reliable exit status
8559         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
8560         Reported by Bruno Haible.
8561
8562 2011-05-24  Bruno Haible  <bruno@clisp.org>
8563
8564         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
8565         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
8566         gl_PREREQ_STRERROR_R invocations from here...
8567         * modules/strerror_r-posix (configure.ac): ... to here.
8568
8569 2011-05-24  Eric Blake  <eblake@redhat.com>
8570
8571         strerror_r: fix missing header
8572         * lib/strerror_r.c: Avoid compiler warning about snprintf.
8573
8574         strerror_r: fix AIX test failures
8575         * lib/strerror_r.c (strerror_r): Convert silent truncation to
8576         ERANGE failure.
8577
8578         strerror_r: fix Solaris test failures
8579         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
8580         failures.
8581         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
8582
8583         strerror_r: enforce POSIX recommendations
8584         * lib/strerror_r.c (safe_copy): New helper method.
8585         (strerror_r): Guarantee a non-empty string.
8586         * tests/test-strerror_r.c (main): Enhance tests to incorporate
8587         recent POSIX rulings and to match our strerror guarantees.
8588         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
8589
8590 2011-05-24  Jim Meyering  <meyering@redhat.com>
8591
8592         test-perror2.c: avoid warning about unused variable
8593         * tests/test-perror2.c (main): Remove declaration of unused "fp".
8594
8595 2011-05-24  Eric Blake  <eblake@redhat.com>
8596
8597         perror: avoid spurious test failure on HP-UX
8598         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
8599
8600         tests: fix logic bug in init.sh
8601         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
8602         shell.
8603
8604 2011-05-24  Jim Meyering  <meyering@redhat.com>
8605
8606         utimensat: do not reference an out-of-scope buffer
8607         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
8608         declared in an inner scope, yet "times" would be dereferenced outside
8609         the scope in which "ts" was valid.
8610         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
8611         of ts[2] "out/up", so that the use of aliased "times" (via
8612         "times = ts;") does not end up referencing an out-of-scope "ts"
8613
8614         opendir-safer.c: don't clobber errno; don't close negative FD
8615         * lib/opendir-safer.c (opendir_safer):
8616         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
8617         file descriptor, and more importantly, don't clobber the
8618         offending errno value with EINVAL.  Before, upon failure
8619         of dup_safer, we would pass the negative file descriptor to
8620         fdopendir, which would clobber errno.
8621
8622 2011-05-23  Bruno Haible  <bruno@clisp.org>
8623
8624         idcache: Fix module description.
8625         * modules/idcache (Include): Set to "idcache.h".
8626
8627 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
8628
8629         gnulib-tool: fix portability problem with MacOS sed
8630         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
8631         before the "}".  Problem reported by Leo in
8632         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
8633         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
8634         sed_extract_condition1, sed_extract_condition2.
8635
8636 2011-05-23  Bruno Haible  <bruno@clisp.org>
8637
8638         hash: Simplify autoconf macro.
8639         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
8640
8641 2011-05-23  Bruno Haible  <bruno@clisp.org>
8642
8643         getugroups: Fix module description.
8644         * modules/getugroups (Include): Set to "getugroups.h".
8645
8646 2011-05-23  Bruno Haible  <bruno@clisp.org>
8647
8648         linkat: Simplify autoconf macro.
8649         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
8650
8651 2011-05-23  Bruno Haible  <bruno@clisp.org>
8652             Eric Blake  <eblake@redhat.com>
8653
8654         linkat, renameat: Update dependencies.
8655         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
8656         * modules/linkat (Depends-on): Likewise. Remove also readlink,
8657         symlinkat.
8658
8659 2011-05-23  Jim Meyering  <meyering@redhat.com>
8660
8661         maint.mk: more tight_scope improvements
8662         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
8663         (_gl_TS_headers): Define only in if-0'd block.
8664         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
8665         sometimes we must *not* use it.  Adjust uses accordingly.
8666         (sc_tight_scope): Use much simpler grep-based test to determine
8667         whether we skip this rule.
8668
8669         maint.mk: generalize/improve the tight-scope rule
8670         * top/maint.mk: Emit a warning when the test is skipped.
8671         (_gl_TS_dir): Add $(srcdir)/ prefix.
8672         (_gl_TS_function_match): Simplify, rather than trying
8673         to enumerate common types.  Otherwise, it would fail to match an
8674         "extern unsigned char const *" declaration in idutils.
8675         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
8676         a way to support use of that type of macro.
8677         (_gl_TS_var_match): Simplify regexp.
8678         (_gl_TS_obj_files): New configurable variable.
8679         (_gl_TS_headers): Likewise.
8680
8681 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
8682
8683         verify: fix bug when gnulib <assert.h> is also included
8684         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
8685         is defined, not if _GL_STATIC_ASSERT_H is not defined.
8686         Perhaps there's a better way, but this fixes the immediate problem.
8687         Problem reported by Bruno Haible in
8688         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
8689
8690 2011-05-22  Bruno Haible  <bruno@clisp.org>
8691
8692         xgetcwd: Simplify autoconf macro.
8693         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
8694
8695 2011-05-22  Bruno Haible  <bruno@clisp.org>
8696
8697         New module 'mktime-internal'.
8698         * modules/mktime-internal: New file.
8699         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
8700         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
8701         mktime_internal as a C macro if libc has __mktime_internal.
8702         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
8703         conditions.
8704         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
8705
8706 2011-05-22  Bruno Haible  <bruno@clisp.org>
8707
8708         timegm: Correct mktime replacement statements.
8709         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
8710         defining mktime as a C macro. This completes a 2009-07-28 commit.
8711
8712 2011-05-22  Bruno Haible  <bruno@clisp.org>
8713
8714         timegm: Simplify autoconf macro.
8715         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
8716
8717 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
8718
8719         clock-time: change to LGPLv2+.
8720         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
8721         BSD-like but we have no mark for that; this is good enough for now.
8722
8723 2011-05-21  Bruno Haible  <bruno@clisp.org>
8724
8725         strerror_r: Fix comments.
8726         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
8727
8728 2011-05-21  Bruno Haible  <bruno@clisp.org>
8729
8730         relocatable-prog-wrapper: Fix possible link error.
8731         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
8732         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
8733         (gl_FUNC_SETENV): ... to here.
8734         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
8735         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
8736
8737 2011-05-21  Bruno Haible  <bruno@clisp.org>
8738
8739         relocatable-prog-wrapper: Assume strerror() exists.
8740         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
8741         m4/strerror.m4.
8742         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
8743         * lib/relocwrapper.c: Remove mention of strerror module.
8744         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
8745         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
8746         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
8747         C macro.
8748
8749 2011-05-21  Bruno Haible  <bruno@clisp.org>
8750
8751         select: Simplify replacement idiom.
8752         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
8753         Win32 platforms.
8754         * lib/sys_select.in.h (select): Simplify accordingly.
8755         * modules/select (Depends-on): Likewise.
8756
8757 2011-05-21  Bruno Haible  <bruno@clisp.org>
8758
8759         mkdir-p: Simplify autoconf macro.
8760         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
8761         gl_FUNC_LCHOWN.
8762
8763 2011-05-21  Eric Blake  <eblake@redhat.com>
8764
8765         strerror_r: avoid clobbering strerror on cygwin
8766         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
8767         fall back instead to sys_errlist.
8768         * modules/strerror (configure.ac): Add witness.
8769         * tests/test-strerror_r.c (main): Enhance test.
8770         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
8771         * tests/test-perror2.c (main): Free memory before exit.
8772
8773 2011-05-21  Bruno Haible  <bruno@clisp.org>
8774
8775         mkdtemp: Use gnulib naming conventions.
8776         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
8777         * modules/mkdtemp (configure.ac): Update.
8778
8779 2011-05-20  Eric Blake  <eblake@redhat.com>
8780
8781         strerror_r: avoid corrupting errno on Solaris
8782         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
8783         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
8784
8785         strerror_r: avoid compiler warning
8786         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
8787
8788         strerror_r: simplify AIX code
8789         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
8790
8791         test-perror: avoid spurious failure on FreeBSD
8792         * modules/perror-tests (Depends-on): Add strerror, now that
8793         strerror_r no longer pulls it in.
8794
8795 2011-05-20  Bruno Haible  <bruno@clisp.org>
8796
8797         strerror_r-posix: Remove unused dependencies.
8798         * modules/strerror_r-posix (Depends-on): Remove strerror.
8799         Reported by Eric Blake.
8800
8801 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
8802
8803         intprops: remove assumption about A|B representation
8804         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
8805         is a valid integer if both A and B are.  Although this is true for
8806         all known practical hosts, the C standard doesn't guarantee it,
8807         and the code need not assume it.  Also, this change may work around
8808         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
8809         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
8810
8811 2011-05-20  Eric Blake  <eblake@redhat.com>
8812
8813         perror: work around FreeBSD bug
8814         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
8815         is broken.  Move AC_LIBOBJ...
8816         * modules/perror (configure.ac): Here.
8817         * doc/posix-functions/perror.texi (perror): Document this.
8818         * tests/test-perror2.c (main): Enhance test.
8819
8820         test-perror: check for strerror interactions
8821         * tests/macros.h (STREQ): Add macro.
8822         * modules/perror-tests (Files): Add second test.
8823         * tests/test-perror2.c (main): New file.
8824         * doc/posix-functions/perror.texi (perror): Document glibc bug.
8825
8826         test-perror: rewrite to use init script
8827         * modules/perror-tests (Files): Add init.sh.
8828         * tests/test-perror.sh: Use temporary directory.
8829
8830 2011-05-20  Jim Meyering  <meyering@redhat.com>
8831
8832         maint: replace misused "a" with "an"
8833         * doc/intprops.texi: "a integer"
8834         * doc/regex.texi: "a explanation"
8835         * lib/alignof.h: "a object"
8836         * lib/argmatch.h: "a explanation"
8837         * lib/argp-help.c: "a option" and "a OPTION_DOC"
8838         * lib/stdint.in.h: "a integer"
8839         * lib/userspec.c: "a owner"
8840         * doc/gnulib.texi: Fix "a idea", and reword.
8841
8842 2011-05-19  Jim Meyering  <meyering@redhat.com>
8843
8844         maint: correct misuse of "a" and "an"
8845         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
8846         * lib/argp-help.c: "an docum...": s/an/a/
8847         * lib/argp-parse.c: "An vector": s/An/A/
8848         * lib/execute.c: "an native": s/an/a/
8849         * lib/spawn-pipe.c: Likewise.
8850         * lib/gc.h: "an Gc_rc": s/an/a/
8851         * lib/unigbrk.in.h: "an grapheme": s/an/a/
8852         * lib/fts.c: "an stat.st_dev": s/an/a/
8853
8854 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
8855
8856         intprops-tests: work around HP-UX 11.23 cc bug with constants
8857         * tests/test-intprops.c (VERIFY): New macro.
8858         (main): Use it, instead of verify, to work around the compiler bug; see
8859         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
8860
8861         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
8862         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
8863         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
8864         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
8865         (_GL_REMAINDER_OVERFLOW): Use it.
8866
8867         intprops-tests: revert unsigned part of previous change
8868         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
8869         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
8870         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
8871         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
8872
8873 2011-05-19  Bruno Haible  <bruno@clisp.org>
8874
8875         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
8876         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
8877         strerror_r() returned without filling the buffer.
8878         Reported by Eric Blake.
8879
8880 2011-05-19  Eric Blake  <eblake@redhat.com>
8881
8882         strerror_r: guarantee unchanged errno
8883         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
8884         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
8885         failure.
8886         * tests/test-strerror_r.c (main): Enhance test.
8887
8888 2011-05-19  Bruno Haible  <bruno@clisp.org>
8889
8890         strerror_r: Reorder #if blocks.
8891         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
8892         for consistency with the previous commit.
8893
8894 2011-05-19  Bruno Haible  <bruno@clisp.org>
8895
8896         perror: Avoid clobbering the strerror buffer when possible.
8897         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
8898         * lib/strerror.c: Include it.
8899         * modules/strerror (Files): Add lib/strerror-impl.h.
8900         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
8901         (my_strerror): New function, defined through lib/strerror-impl.h.
8902         (perror): Use it instead of strerror.
8903         * modules/perror (Files): Add lib/strerror-impl.h.
8904         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
8905
8906 2011-05-19  Eric Blake  <eblake@redhat.com>
8907
8908         strerror_r: fix on newer cygwin
8909         * lib/strerror_r.c (strerror_r): Cygwin now has
8910         __xpg_strerror_r, use it.
8911
8912 2011-05-19  Bruno Haible  <bruno@clisp.org>
8913
8914         strerror_r: Avoid clobbering the strerror buffer when possible.
8915         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
8916         (sys_nerr, sys_errlist): New declarations.
8917         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
8918         HP-UX, native Win32, IRIX, and 32-bit Solaris.
8919         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
8920
8921 2011-05-19  Bruno Haible  <bruno@clisp.org>
8922
8923         strerror_r: Fix test failure on mingw.
8924         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
8925         EXTEND_STRERROR_R.
8926         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
8927         macros from errno.in.h instead.
8928
8929 2011-05-19  Eric Blake  <eblake@redhat.com>
8930
8931         strerror: relax test for Solaris
8932         * tests/test-strerror.c (main): Permit Solaris behavior.
8933         * tests/test-strerror_r.c (main): Likewise.
8934
8935         strerror: enforce POSIX ruling on strerror(0)
8936         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
8937         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
8938         * lib/strerror_r.c (rpl_strerror_r): Work around it.
8939         * doc/posix-functions/strerror.texi (strerror): Document it.
8940         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
8941         * tests/test-strerror.c (main): Strengthen test.
8942         * tests/test-strerror_r.c (main): Likewise.
8943
8944 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
8945
8946         intprop-tests: port to older and more-pedantic compilers
8947         * modules/intprops-tests (Files): Add tests/macros.h.
8948         * tests/test-intprops.c: Include macros.h.
8949         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
8950         it's no longer documented to expand to an integer constant expression.
8951         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
8952         argument is floating point, as it's no longer documented to expand
8953         to an integer constant expression in that case.
8954         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
8955         compiler bugs reported by Bruno Haible.  See
8956         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
8957         (U0, U1): New constants, to work around the same bugs.  Also,
8958         in tests, use e.g., "(unsigned int) 39" rather than "39u".
8959
8960         intprops: work around C compiler bugs
8961         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
8962         bug in Sun C 5.11 2010/08/13 and other compilers; see
8963         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
8964
8965         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
8966         * doc/intprops.texi (Integer Type Determination): Fix
8967         documentation for TYPE_IS_INTEGER: it returns an constant
8968         expression, not an integer constant expression.  Fix doc for
8969         TYPE_SIGNED: it returns an integer constant expression only if its
8970         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
8971         hardly worth documented that way....)
8972
8973 2011-05-18  Bruno Haible  <bruno@clisp.org>
8974
8975         strerror_r: Avoid clobbering the strerror buffer when possible.
8976         * lib/strerror_r.c (strerror_r): Merge the three implementations.
8977         Handle gnulib defined errno values here. When strerror() returns NULL
8978         or an empty string, return EINVAL.
8979         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
8980         gnulib defined errno values here.
8981         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
8982
8983 2011-05-18  Eric Blake  <eblake@redhat.com>
8984
8985         fnmatch: avoid compiler warning
8986         * lib/fnmatch_loop.c (FCT): Use correct type.
8987         Reported by Matthias Bolte.
8988
8989 2011-05-13  Jim Meyering  <meyering@redhat.com>
8990
8991         maint.mk: three new prohibit_<HDR>_without_use rules
8992         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
8993         (sc_prohibit_stdio-safer_without_use): Likewise.
8994         (sc_prohibit_xfreopen_without_use): Likewise.
8995
8996 2011-05-17  Jim Meyering  <meyering@redhat.com>
8997
8998         announce-gen: fail if the NEWS delta is empty
8999         If there's nothing noteworthy in NEWS, then either you forgot
9000         or you shouldn't be releasing.
9001         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
9002
9003 2011-05-17  Pádraig Brady <P@draigBrady.com>
9004
9005         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
9006         reserved symbols starting with double underscore from the check.
9007
9008 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
9009
9010         intprops: add doc
9011         * doc/intprops.texi: New file, documenting intprops.
9012         * doc/gnulib.texi (Particular Modules): Include it.
9013
9014         verify: add doc to gnulib manual and fix example
9015         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
9016         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
9017         (Compile-time Assertions): Fix example so it can't overflow.
9018
9019 2011-05-17  Jim Meyering  <meyering@redhat.com>
9020
9021         warnings.m4: don't usurp save_CPPFLAGS variable name
9022         * m4/warnings.m4: Prefix local temporary variable name with gl_.
9023
9024         doc: fix typo
9025         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
9026
9027 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9028             Bruno Haible  <bruno@clisp.org>
9029
9030         doc: Tweak recent change.
9031         * README (Portability guidelines): Tweak new text.
9032         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
9033         Interix 6.1.
9034
9035 2011-05-16  Eric Blake  <eblake@redhat.com>
9036
9037         inttypes: avoid autoconf warning
9038         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
9039         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9040
9041 2011-05-16  Sam Steingold <sds@gnu.org>
9042         and Eric Blake  <eblake@redhat.com>
9043
9044         vc-list-files: accept multiple directory operands
9045         * build-aux/vc-list-files: Iterate over all remaining operands.
9046
9047 2011-05-16  Bruno Haible  <bruno@clisp.org>
9048
9049         Fix confusion regarding deprecated modules.
9050         * modules/calloc (Status, Notice): Mark module as deprecated, not
9051         obsolete.
9052         * modules/fnmatch-posix (Status, Notice): Likewise.
9053         * modules/getdate (Status, Notice): Likewise.
9054         * modules/getopt (Status, Notice): Likewise.
9055         * modules/malloc (Status, Notice): Likewise.
9056         * modules/pipe (Status, Notice): Likewise.
9057         * modules/realloc (Status, Notice): Likewise.
9058         * modules/rename-dest-slash (Status, Notice): Likewise.
9059         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
9060         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
9061         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
9062         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
9063         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
9064
9065 2011-05-16  Bruno Haible  <bruno@clisp.org>
9066
9067         doc: List the target platforms.
9068         * doc/gnulib-intro.texi (Target Platforms): New section.
9069         * doc/gnulib.texi (Introduction): Update menu.
9070         * README (Portability guidelines): Refer to the new section. Update
9071         statement about oldest supported environment. Remove rationale why
9072         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
9073         unportable C89 function.
9074         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
9075         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
9076
9077 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9078
9079         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
9080
9081 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
9082
9083         intprops-tests: new module
9084         * modules/intprops-tests, tests/test-intprops.c: New files.
9085
9086         intprops: add safe, portable integer overflow checking
9087         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
9088         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
9089         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
9090         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
9091         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
9092         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
9093         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
9094         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
9095         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
9096         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
9097         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
9098
9099 2011-05-12  James Youngman  <jay@gnu.org>
9100
9101         Add a test for glibc's Bugzilla bug #12378.
9102         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
9103         doesn't allow the literal matching of a lone "[" (which is
9104         required by POSIX).
9105         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
9106
9107 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
9108
9109         Sync glibc change fixing Bugzilla bug #12378.
9110         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
9111         beginning and fall back to matching as normal character if the
9112         string ends before the matching ']' is found.  This is what POSIX
9113         requires.
9114
9115 2011-05-13  Eric Blake  <eblake@redhat.com>
9116
9117         getcwd-lgpl: relax test for FreeBSD
9118         * doc/posix-functions/getcwd.texi (getcwd): Document portability
9119         issue.
9120         * tests/test-getcwd-lgpl.c (main): Relax test.
9121         Reported by Matthias Bolte.
9122
9123 2011-05-11  Eric Blake  <eblake@redhat.com>
9124
9125         test-fflush: silence compiler warning
9126         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
9127
9128 2011-05-11  Bruno Haible  <bruno@clisp.org>
9129
9130         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
9131         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
9132         * modules/canonicalize (Depends-on): Add 'nocrash'.
9133         * modules/canonicalize-lgpl (Depends-on): Likewise.
9134         * doc/posix-functions/realpath.texi: Update platforms list.
9135         Reported by Ryan Schmidt <ryandesign@macports.org>.
9136
9137 2011-05-11  Bruno Haible  <bruno@clisp.org>
9138
9139         group-member: Declare function in <unistd.h>.
9140         * lib/unistd.in.h (group_member): New declaration.
9141         * lib/group-member.h: Remove file.
9142         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
9143         * tests/test-unistd-c++.cc: Check signature of group_member.
9144         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
9145         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
9146         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
9147         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
9148         HAVE_GROUP_MEMBER.
9149         * modules/group-member (Files): Remove lib/group-member.h.
9150         (Depends-on): Add unistd. Specify conditions.
9151         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9152         (Include): Change to <unistd.h>.
9153         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
9154         HAVE_GROUP_MEMBER.
9155         * NEWS: Mention the change.
9156         * lib/euidaccess.c: Don't include group-member.h.
9157
9158 2011-05-11  Bruno Haible  <bruno@clisp.org>
9159
9160         group-member: Document module.
9161         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
9162         module.
9163
9164 2011-05-11  Bruno Haible  <bruno@clisp.org>
9165
9166         fclose: Fix mistake earlier today.
9167         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
9168
9169 2011-05-11  Eric Blake  <eblake@redhat.com>
9170
9171         fclose: preserve fflush errors
9172         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
9173         Reported by Jim Meyering.
9174
9175         bootstrap: support a prereq of 'rpcgen -' on RHEL5
9176         * build-aux/bootstrap (check_versions): When no specific version
9177         is required, merely check that the app produces an exit status
9178         that indicates its existence.
9179
9180         maint.mk: drop redundant check
9181         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
9182         the same but better.
9183
9184 2011-05-11  Bruno Haible  <bruno@clisp.org>
9185
9186         fclose: Fix possible link error.
9187         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
9188         unregister_shadow_fd. Improve comments.
9189         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
9190         Eric Blake.
9191
9192 2011-05-11  Jim Meyering  <meyering@redhat.com>
9193
9194         maint.mk: improve "can not" detection and generalize rule name
9195         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
9196         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
9197         Use the same technique as in sc_prohibit_doubled_word, so that
9198         we recognize "can not" also when the words are separated by a newline.
9199         Suggested by Eric Blake.
9200         (perl_filename_lineno_text_): Define.  Factored out of...
9201         (prohibit_doubled_word_): ...here.  Use the new definition.
9202         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
9203         (prohibit_undesirable_word_seq_RE_): New overridable variable.
9204         (ignore_undesirable_word_sequence_RE_): New overridable variable.
9205
9206 2011-05-10  Eric Blake  <eblake@redhat.com>
9207
9208         fclose: avoid double close race when possible
9209         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
9210         all but WINDOWS_SOCKETS.
9211
9212 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
9213
9214         openat: correct new comment
9215         * lib/openat-proc.c (openat_proc_name): Correct the comment.
9216
9217 2011-05-10  Jim Meyering  <meyering@redhat.com>
9218
9219         openat: add comments
9220         * lib/openat-proc.c (openat_proc_name): Add comments,
9221         mostly from Eric Blake.
9222
9223 2011-05-09  Eric Blake  <eblake@redhat.com>
9224
9225         openat: reduce syscalls in first probe of /proc
9226         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
9227         be a directory.  Simplify the probe for .. bugs.
9228         * modules/openat (Depends-on): Drop same-inode.
9229         Reported by Bastien ROUCARIES.
9230
9231 2011-05-09  Jim Meyering  <meyering@redhat.com>
9232
9233         maint.mk: change semantics/name of tight_scope variables
9234         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
9235         Rename variables to align with semantics that make them more useful.
9236
9237         maint.mk: tweak new rule's name not to impinge
9238         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
9239         (sc_tight_scope): Use new rule name rather than $@-0.
9240
9241         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
9242         * top/maint.mk (sc_tight_scope): New rule.
9243         (sc_tight_scope-0): New rule, ifdef'd out.
9244         (_gl_TS_dir): Default.
9245         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
9246         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
9247
9248 2011-05-09  Simon Josefsson  <simon@josefsson.org>
9249
9250         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
9251         Haible <bruno@clisp.org>.
9252
9253 2011-05-08  Bruno Haible  <bruno@clisp.org>
9254
9255         Comments.
9256         * m4/isnanf.m4: Add comment.
9257         * m4/isnanl.m4: Likewise.
9258
9259 2011-05-08  Bruno Haible  <bruno@clisp.org>
9260
9261         glob: Remove obsolete macro.
9262         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
9263
9264 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
9265
9266         intprops: Sun C 5.11 supports __typeof__
9267         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
9268         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
9269         which is new.
9270         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
9271
9272         intprops: switch to usual gnulib indenting and naming
9273         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
9274         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
9275
9276         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
9277
9278 2011-05-08  Jim Meyering  <meyering@redhat.com>
9279
9280         maint.mk: suppress "Entering/Leaving directory" diag in announcement
9281         * top/maint.mk (release-prep): Use make's --no-print-directory
9282         option when generating the announcement.  This eliminates the
9283         pesky "make[2]: Entering/Leaving directory" diagnostics in the
9284         generated announcement template.
9285
9286 2011-05-08  Bruno Haible  <bruno@clisp.org>
9287
9288         tzset: Fix gettimeofday wrapper on Solaris 2.6.
9289         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
9290         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
9291
9292 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
9293
9294         ignore-value, verify: Omit include files from lib_SOURCES.
9295         * modules/ignore-value, modules/verify (Makefile.am):
9296         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
9297         that leads Automake to duplicate use of am__objects_... variables
9298         in Makefile.in.  See
9299         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
9300
9301 2011-05-07  Bruno Haible  <bruno@clisp.org>
9302
9303         fclose: Simplify autoconf macro.
9304         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
9305         defined.
9306
9307 2011-05-07  Bruno Haible  <bruno@clisp.org>
9308
9309         canonicalize-lgpl: Fix autoconf macro ordering bug.
9310         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
9311         gl_STDLIB_H_DEFAULTS.
9312
9313 2011-05-06  Eric Blake  <eblake@redhat.com>
9314
9315         maintainer-makefile: make sc_po_check easier to tune
9316         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
9317         to probe for strings, such as an alternate location for gnulib.
9318
9319         fclose: guarantee behavior on seekable stdin
9320         * modules/fclose (Depends-on): Add fflush.
9321         * doc/posix-functions/fclose.texi (fclose): Document this.
9322         * tests/test-fclose.c (main): Make test for this unconditional.
9323
9324 2011-05-06  Bruno Haible  <bruno@clisp.org>
9325
9326         fflush, fpurge: Relicense under LGPLv2+.
9327         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
9328         * modules/fpurge (License): Likewise.
9329         With permission from Eric Blake and Jim Meyering.
9330         Suggested by Eric Blake.
9331
9332 2011-05-06  Karl Berry  <karl@gnu.org>
9333
9334         * MODULES.html.sh (func_all_modules): remove exit.
9335
9336 2011-05-06  Jim Meyering  <meyering@redhat.com>
9337
9338         maint.mk: use info-gnu@ as the default only for a stable release
9339         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
9340         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
9341         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
9342         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
9343
9344 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
9345
9346         assert-h: new module, which supports C1X-style static_assert
9347         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
9348         * lib/verify.h: Revamp so that this can be copied into assert.h,
9349         while retaining the ability to use it standalone as before.
9350         Rename private identifiers so as not to encroach on the
9351         standard C namespace, since this is now used by assert.h.
9352         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
9353         the old verify_true.
9354         (_GL_VERIFY_TRUE): New macro, with much of the contents of
9355         the old verify_true.  Use _GL_VERIFY_TYPE.
9356         (_GL_VERIFY): New macro, with much of the contents of the old verify.
9357         (static_assert): New macro, if _GL_STATIC_ASSERT_H
9358         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
9359         defined when this file is copied into the replacement assert.h.
9360         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
9361         and _Static_assert is not built in.
9362         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
9363         defined, and use the new macros mentioned above.
9364         * doc/posix-headers/assert.texi: Document this.
9365
9366 2011-05-05  Bruno Haible  <bruno@clisp.org>
9367
9368         fclose, fflush: Respect rules for use of AC_LIBOBJ.
9369         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
9370         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
9371         gl_REPLACE_FCLOSE here.
9372         * modules/fflush (Depends-on): Remove fclose.
9373         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
9374         combination with module 'fclose'.
9375
9376 2011-05-05  Bruno Haible  <bruno@clisp.org>
9377
9378         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
9379         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
9380         gl_FUNC_FFLUSH.
9381         (gl_FUNC_FFLUSH): Use it.
9382         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
9383         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
9384         gl_REPLACE_FSEEKO here.
9385
9386 2011-05-05  Bruno Haible  <bruno@clisp.org>
9387
9388         tzset: Relicense under LGPL.
9389         * modules/tzset (License): Change to LGPL.
9390         No agreement needed; it's a no-op.
9391
9392         strtoimax, strtoumax: Relicense under LGPL.
9393         * modules/strtoimax (License): Change to LGPL.
9394         * modules/strtoumax (License): Likewise.
9395         With permission from Jim Meyering, Paul Eggert:
9396         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
9397         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
9398
9399         getgroups: Relicense under LGPL.
9400         * modules/getgroups (License): Change to LGPL.
9401         With permission from Jim Meyering, Paul Eggert, Eric Blake:
9402         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
9403         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
9404         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9405
9406         nanosleep: Relicense under LGPL.
9407         * modules/nanosleep (License): Change to LGPL.
9408         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
9409         Haible:
9410         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
9411         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
9412         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9413         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
9414
9415         futimens: Relicense under LGPL.
9416         * modules/futimens (License): Change to LGPL.
9417         With permission from Eric Blake:
9418         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9419
9420         fflush: Relicense under LGPL.
9421         * modules/fflush (License): Change to LGPL.
9422         With permission from Eric Blake, Bruno Haible, Jim Meyering:
9423         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
9424         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
9425         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
9426
9427         tmpfile: Relicense under LGPL.
9428         * modules/tmpfile (License): Change to LGPL.
9429         With permission from Ben Pfaff:
9430         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
9431
9432         isfinite: Relicense under LGPL.
9433         * modules/isfinite (License): Change to LGPL.
9434         With permission from Ben Pfaff, Bruno Haible:
9435         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
9436         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
9437
9438         acosl..tanl: Relicense under LGPL.
9439         * modules/acosl (License): Change to LGPL.
9440         * modules/asinl (License): Likewise.
9441         * modules/atanl (License): Likewise.
9442         * modules/cosl (License): Likewise.
9443         * modules/expl (License): Likewise.
9444         * modules/logl (License): Likewise.
9445         * modules/sinl (License): Likewise.
9446         * modules/sqrtl (License): Likewise.
9447         * modules/tanl (License): Likewise.
9448         Source code originally from glibc and Paolo Bonzini. Agreements:
9449         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
9450         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
9451
9452 2011-05-05  Bruno Haible  <bruno@clisp.org>
9453
9454         signal: Define sighandler_t.
9455         * lib/signal.in.h (sighandler_t): New type.
9456         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
9457         whether sighandler_t is defined.
9458         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
9459         * modules/signal (Depends-on): Add extensions.
9460         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
9461         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
9462         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
9463
9464 2011-05-05  Eric Blake  <eblake@redhat.com>
9465
9466         maint: remove useless REPLACE_*_H macros
9467         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
9468         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
9469         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
9470         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
9471         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
9472         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
9473         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
9474         * m4/btowc.m4: Update callers.
9475         * m4/dirfd.m4: Likewise.
9476         * m4/duplocale.m4: Likewise.
9477         * m4/fchdir.m4: Likewise.
9478         * m4/fdopendir.m4: Likewise.
9479         * m4/inet_ntop.m4: Likewise.
9480         * m4/inet_pton.m4: Likewise.
9481         * m4/ioctl.m4: Likewise.
9482         * m4/mbrlen.m4: Likewise.
9483         * m4/mbrtowc.m4: Likewise.
9484         * m4/mbsinit.m4: Likewise.
9485         * m4/mbsnrtowcs.m4: Likewise.
9486         * m4/mbsrtowcs.m4: Likewise.
9487         * m4/poll.m4: Likewise.
9488         * m4/setlocale.m4: Likewise.
9489         * m4/wcrtomb.m4: Likewise.
9490         * m4/wcsnrtombs.m4: Likewise.
9491         * m4/wcsrtombs.m4: Likewise.
9492         * m4/wctob.m4: Likewise.
9493         * m4/wcwidth.m4: Likewise.
9494         * modules/posix_spawn: Likewise.
9495         * modules/posix_spawn_file_actions_addclose: Likewise.
9496         * modules/posix_spawn_file_actions_adddup2: Likewise.
9497         * modules/posix_spawn_file_actions_addopen: Likewise.
9498         * modules/posix_spawn_file_actions_destroy: Likewise.
9499         * modules/posix_spawn_file_actions_init: Likewise.
9500         * modules/posix_spawnattr_destroy: Likewise.
9501         * modules/posix_spawnattr_getflags: Likewise.
9502         * modules/posix_spawnattr_getpgroup: Likewise.
9503         * modules/posix_spawnattr_getschedparam: Likewise.
9504         * modules/posix_spawnattr_getschedpolicy: Likewise.
9505         * modules/posix_spawnattr_getsigdefault: Likewise.
9506         * modules/posix_spawnattr_getsigmask: Likewise.
9507         * modules/posix_spawnattr_init: Likewise.
9508         * modules/posix_spawnattr_setflags: Likewise.
9509         * modules/posix_spawnattr_setpgroup: Likewise.
9510         * modules/posix_spawnattr_setschedparam: Likewise.
9511         * modules/posix_spawnattr_setschedpolicy: Likewise.
9512         * modules/posix_spawnattr_setsigdefault: Likewise.
9513         * modules/posix_spawnattr_setsigmask: Likewise.
9514         * modules/posix_spawnp: Likewise.
9515
9516 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
9517
9518         Add option to do-release-commit-and-tag to specify branch.
9519         * build-aux/do-release-commit-and-tag: Add --branch.
9520
9521 2011-05-03  Bruno Haible  <bruno@clisp.org>
9522
9523         Avoid unnecessary compilation units, through conditional dependencies.
9524         * modules/accept (Depends-on): Add conditions to the dependencies.
9525         * modules/acosl (Depends-on): Likewise.
9526         * modules/argz (Depends-on): Likewise.
9527         * modules/asinl (Depends-on): Likewise.
9528         * modules/atanl (Depends-on): Likewise.
9529         * modules/atoll (Depends-on): Likewise.
9530         * modules/bind (Depends-on): Likewise.
9531         * modules/btowc (Depends-on): Likewise.
9532         * modules/canonicalize-lgpl (Depends-on): Likewise.
9533         * modules/ceil (Depends-on): Likewise.
9534         * modules/ceilf (Depends-on): Likewise.
9535         * modules/ceill (Depends-on): Likewise.
9536         * modules/chdir-long (Depends-on): Likewise.
9537         * modules/chown (Depends-on): Likewise.
9538         * modules/close (Depends-on): Likewise.
9539         * modules/connect (Depends-on): Likewise.
9540         * modules/cosl (Depends-on): Likewise.
9541         * modules/dirfd (Depends-on): Likewise.
9542         * modules/dprintf (Depends-on): Likewise.
9543         * modules/dprintf-posix (Depends-on): Likewise.
9544         * modules/error (Depends-on): Likewise.
9545         * modules/euidaccess (Depends-on): Likewise.
9546         * modules/expl (Depends-on): Likewise.
9547         * modules/faccessat (Depends-on): Likewise.
9548         * modules/fchdir (Depends-on): Likewise.
9549         * modules/fclose (Depends-on): Likewise.
9550         * modules/fcntl (Depends-on): Likewise.
9551         * modules/fdopendir (Depends-on): Likewise.
9552         * modules/fflush (Depends-on): Likewise.
9553         * modules/floor (Depends-on): Likewise.
9554         * modules/floorf (Depends-on): Likewise.
9555         * modules/floorl (Depends-on): Likewise.
9556         * modules/fnmatch (Depends-on): Likewise.
9557         * modules/fopen (Depends-on): Likewise.
9558         * modules/fprintf-posix (Depends-on): Likewise.
9559         * modules/frexp (Depends-on): Likewise.
9560         * modules/frexp-nolibm (Depends-on): Likewise.
9561         * modules/frexpl (Depends-on): Likewise.
9562         * modules/frexpl-nolibm (Depends-on): Likewise.
9563         * modules/fseek (Depends-on): Likewise.
9564         * modules/fsusage (Depends-on): Likewise.
9565         * modules/ftell (Depends-on): Likewise.
9566         * modules/ftello (Depends-on): Likewise.
9567         * modules/futimens (Depends-on): Likewise.
9568         * modules/getcwd (Depends-on): Likewise.
9569         * modules/getcwd-lgpl (Depends-on): Likewise.
9570         * modules/getdelim (Depends-on): Likewise.
9571         * modules/getdomainname (Depends-on): Likewise.
9572         * modules/getgroups (Depends-on): Likewise.
9573         * modules/gethostname (Depends-on): Likewise.
9574         * modules/getline (Depends-on): Likewise.
9575         * modules/getlogin_r (Depends-on): Likewise.
9576         * modules/getopt-posix (Depends-on): Likewise.
9577         * modules/getpeername (Depends-on): Likewise.
9578         * modules/getsockname (Depends-on): Likewise.
9579         * modules/getsockopt (Depends-on): Likewise.
9580         * modules/getsubopt (Depends-on): Likewise.
9581         * modules/getusershell (Depends-on): Likewise.
9582         * modules/glob (Depends-on): Likewise.
9583         * modules/grantpt (Depends-on): Likewise.
9584         * modules/iconv_open (Depends-on): Likewise.
9585         * modules/iconv_open-utf (Depends-on): Likewise.
9586         * modules/inet_ntop (Depends-on): Likewise.
9587         * modules/inet_pton (Depends-on): Likewise.
9588         * modules/ioctl (Depends-on): Likewise.
9589         * modules/isapipe (Depends-on): Likewise.
9590         * modules/isfinite (Depends-on): Likewise.
9591         * modules/isinf (Depends-on): Likewise.
9592         * modules/lchown (Depends-on): Likewise.
9593         * modules/ldexpl (Depends-on): Likewise.
9594         * modules/link (Depends-on): Likewise.
9595         * modules/linkat (Depends-on): Likewise.
9596         * modules/listen (Depends-on): Likewise.
9597         * modules/logl (Depends-on): Likewise.
9598         * modules/lstat (Depends-on): Likewise.
9599         * modules/mbrlen (Depends-on): Likewise.
9600         * modules/mbrtowc (Depends-on): Likewise.
9601         * modules/mbsinit (Depends-on): Likewise.
9602         * modules/mbsnrtowcs (Depends-on): Likewise.
9603         * modules/mbsrtowcs (Depends-on): Likewise.
9604         * modules/mbtowc (Depends-on): Likewise.
9605         * modules/memcmp (Depends-on): Likewise.
9606         * modules/mkdir (Depends-on): Likewise.
9607         * modules/mkdtemp (Depends-on): Likewise.
9608         * modules/mkfifo (Depends-on): Likewise.
9609         * modules/mkfifoat (Depends-on): Likewise.
9610         * modules/mknod (Depends-on): Likewise.
9611         * modules/mkostemp (Depends-on): Likewise.
9612         * modules/mkostemps (Depends-on): Likewise.
9613         * modules/mkstemp (Depends-on): Likewise.
9614         * modules/mkstemps (Depends-on): Likewise.
9615         * modules/mktime (Depends-on): Likewise.
9616         * modules/nanosleep (Depends-on): Likewise.
9617         * modules/open (Depends-on): Likewise.
9618         * modules/openat (Depends-on): Likewise.
9619         * modules/perror (Depends-on): Likewise.
9620         * modules/poll (Depends-on): Likewise.
9621         * modules/popen (Depends-on): Likewise.
9622         * modules/posix_spawn (Depends-on): Likewise.
9623         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
9624         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
9625         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
9626         * modules/posix_spawnp (Depends-on): Likewise.
9627         * modules/pread (Depends-on): Likewise.
9628         * modules/printf-posix (Depends-on): Likewise.
9629         * modules/ptsname (Depends-on): Likewise.
9630         * modules/putenv (Depends-on): Likewise.
9631         * modules/pwrite (Depends-on): Likewise.
9632         * modules/readline (Depends-on): Likewise.
9633         * modules/readlink (Depends-on): Likewise.
9634         * modules/readlinkat (Depends-on): Likewise.
9635         * modules/recv (Depends-on): Likewise.
9636         * modules/recvfrom (Depends-on): Likewise.
9637         * modules/regex (Depends-on): Likewise.
9638         * modules/remove (Depends-on): Likewise.
9639         * modules/rename (Depends-on): Likewise.
9640         * modules/renameat (Depends-on): Likewise.
9641         * modules/rmdir (Depends-on): Likewise.
9642         * modules/round (Depends-on): Likewise.
9643         * modules/roundf (Depends-on): Likewise.
9644         * modules/roundl (Depends-on): Likewise.
9645         * modules/rpmatch (Depends-on): Likewise.
9646         * modules/select (Depends-on): Likewise.
9647         * modules/send (Depends-on): Likewise.
9648         * modules/sendto (Depends-on): Likewise.
9649         * modules/setenv (Depends-on): Likewise.
9650         * modules/setlocale (Depends-on): Likewise.
9651         * modules/setsockopt (Depends-on): Likewise.
9652         * modules/shutdown (Depends-on): Likewise.
9653         * modules/sigaction (Depends-on): Likewise.
9654         * modules/signbit (Depends-on): Likewise.
9655         * modules/sigprocmask (Depends-on): Likewise.
9656         * modules/sinl (Depends-on): Likewise.
9657         * modules/sleep (Depends-on): Likewise.
9658         * modules/snprintf (Depends-on): Likewise.
9659         * modules/snprintf-posix (Depends-on): Likewise.
9660         * modules/socket (Depends-on): Likewise.
9661         * modules/sprintf-posix (Depends-on): Likewise.
9662         * modules/sqrtl (Depends-on): Likewise.
9663         * modules/stat (Depends-on): Likewise.
9664         * modules/strchrnul (Depends-on): Likewise.
9665         * modules/strdup-posix (Depends-on): Likewise.
9666         * modules/strerror (Depends-on): Likewise.
9667         * modules/strerror_r-posix (Depends-on): Likewise.
9668         * modules/strndup (Depends-on): Likewise.
9669         * modules/strnlen (Depends-on): Likewise.
9670         * modules/strptime (Depends-on): Likewise.
9671         * modules/strsep (Depends-on): Likewise.
9672         * modules/strsignal (Depends-on): Likewise.
9673         * modules/strstr-simple (Depends-on): Likewise.
9674         * modules/strtod (Depends-on): Likewise.
9675         * modules/strtoimax (Depends-on): Likewise.
9676         * modules/strtok_r (Depends-on): Likewise.
9677         * modules/strtoumax (Depends-on): Likewise.
9678         * modules/symlink (Depends-on): Likewise.
9679         * modules/symlinkat (Depends-on): Likewise.
9680         * modules/tanl (Depends-on): Likewise.
9681         * modules/tcgetsid (Depends-on): Likewise.
9682         * modules/tmpfile (Depends-on): Likewise.
9683         * modules/trunc (Depends-on): Likewise.
9684         * modules/truncf (Depends-on): Likewise.
9685         * modules/truncl (Depends-on): Likewise.
9686         * modules/uname (Depends-on): Likewise.
9687         * modules/unlink (Depends-on): Likewise.
9688         * modules/unlockpt (Depends-on): Likewise.
9689         * modules/unsetenv (Depends-on): Likewise.
9690         * modules/usleep (Depends-on): Likewise.
9691         * modules/utimensat (Depends-on): Likewise.
9692         * modules/vasprintf (Depends-on): Likewise.
9693         * modules/vdprintf (Depends-on): Likewise.
9694         * modules/vdprintf-posix (Depends-on): Likewise.
9695         * modules/vfprintf-posix (Depends-on): Likewise.
9696         * modules/vprintf-posix (Depends-on): Likewise.
9697         * modules/vsnprintf (Depends-on): Likewise.
9698         * modules/vsnprintf-posix (Depends-on): Likewise.
9699         * modules/vsprintf-posix (Depends-on): Likewise.
9700         * modules/wcrtomb (Depends-on): Likewise.
9701         * modules/wcscasecmp (Depends-on): Likewise.
9702         * modules/wcscspn (Depends-on): Likewise.
9703         * modules/wcsdup (Depends-on): Likewise.
9704         * modules/wcsncasecmp (Depends-on): Likewise.
9705         * modules/wcsnrtombs (Depends-on): Likewise.
9706         * modules/wcspbrk (Depends-on): Likewise.
9707         * modules/wcsrtombs (Depends-on): Likewise.
9708         * modules/wcsspn (Depends-on): Likewise.
9709         * modules/wcsstr (Depends-on): Likewise.
9710         * modules/wcstok (Depends-on): Likewise.
9711         * modules/wcswidth (Depends-on): Likewise.
9712         * modules/wctob (Depends-on): Likewise.
9713         * modules/wctomb (Depends-on): Likewise.
9714         * modules/wctype (Depends-on): Likewise.
9715         * modules/wcwidth (Depends-on): Likewise.
9716         * modules/write (Depends-on): Likewise.
9717
9718 2011-05-03  Bruno Haible  <bruno@clisp.org>
9719
9720         Support for conditional dependencies.
9721         * doc/gnulib.texi (Module description): Document the syntax of
9722         conditional dependencies.
9723         * gnulib-tool: New option --conditional-dependencies.
9724         (func_usage): Document it.
9725         (cond_dependencies): New variable.
9726         (func_get_automake_snippet_conditional,
9727         func_get_automake_snippet_unconditional): New functions, extracted from
9728         func_get_automake_snippet.
9729         (func_get_automake_snippet): Use them.
9730         (sed_first_32_chars): New variable.
9731         (func_module_shellfunc_name): New function.
9732         (func_module_shellvar_name): New function.
9733         (func_module_conditional_name): New function.
9734         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
9735         func_cond_module_condition): New functions.
9736         (func_modules_transitive_closure): Add support for conditional
9737         dependencies.
9738         (func_emit_lib_Makefile_am): For a conditional module, enclose the
9739         conditional automake snippet in an automake conditional.
9740         (func_emit_autoconf_snippets): Emit shell functions that contain the
9741         code for conditional modules.
9742         (func_import, func_create_testdir): Update specification.
9743
9744 2011-05-03  Eric Blake  <eblake@redhat.com>
9745
9746         test-getaddrinfo: report error information
9747         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
9748
9749 2011-05-03  Jim Meyering  <meyering@redhat.com>
9750
9751         bootstrap: avoid build failure when $GZIP is set
9752         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
9753         program name.  If defined at all, it is supposed to list gzip options.
9754         Reported by Alan Curry in http://debbugs.gnu.org/8609
9755
9756 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
9757
9758         readme-release: new module with release instructions
9759         * modules/readme-release: New module.
9760         * top/README-release: New file, from coreutils, grep, diffutils.
9761         * MODULES.html.sh (Support for maintaining and releasing): Add it.
9762
9763 2011-05-02  Eric Blake  <eblake@redhat.com>
9764
9765         fflush: also replace fclose when fixing fflush
9766         * modules/fflush (Depends-on): Add fclose.
9767         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
9768         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
9769         memstreams with no backing fd.
9770         * doc/posix-functions/fclose.texi (fclose): Document the use of
9771         fflush module to fix the bug.
9772         * tests/test-fclose.c (main): Relax test when fclose is used in
9773         isolation.
9774
9775         fclose: add some tests
9776         * modules/fclose-tests: New test module.
9777         * tests/test-fclose.c: New file.
9778         * doc/posix-functions/fclose.texi (fclose): Document the bug.
9779
9780         fclose: reduced dependencies
9781         * modules/fclose (Depends-on): Switch from fflush/fseeko to
9782         simpler lseek.
9783         * lib/fclose.c (rpl_fclose): Likewise.
9784         Reported by Simon Josefsson.
9785
9786         exit: drop remaining clients
9787         * modules/argmatch (Depends-on): Replace exit with stdlib.
9788         * modules/copy-file (Depends-on): Likewise.
9789         * modules/execute (Depends-on): Likewise.
9790         * modules/exitfail (Depends-on): Likewise.
9791         * modules/obstack (Depends-on): Likewise.
9792         * modules/pagealign_alloc (Depends-on): Likewise.
9793         * modules/pipe-filter-gi (Depends-on): Likewise.
9794         * modules/pipe-filter-ii (Depends-on): Likewise.
9795         * modules/savewd (Depends-on): Likewise.
9796         * modules/spawn-pipe (Depends-on): Likewise.
9797         * modules/wait-process (Depends-on): Likewise.
9798         * modules/xsetenv (Depends-on): Likewise.
9799         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
9800         * modules/git-merge-changelog (Depends-on): Likewise.
9801         * modules/long-options (Depends-on): Likewise.
9802         * modules/pt_chown (Depends-on): Likewise.
9803         * modules/sysexits (Depends-on): Likewise.
9804
9805         freading: relax license from LGPLv3+ to LGPLv2+
9806         * modules/freading (License): Relax LGPL version.
9807
9808 2011-05-02  Bruno Haible  <bruno@clisp.org>
9809
9810         fchdir: Remove unused dependencies.
9811         * modules/fchdir (Depends-on): Remove include_next.
9812
9813 2011-05-02  Bruno Haible  <bruno@clisp.org>
9814
9815         gnulib-tool: Refactor.
9816         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
9817         from func_emit_autoconf_snippets.
9818         (func_emit_autoconf_snippets): Use it.
9819
9820 2011-05-02  Simon Josefsson  <simon@josefsson.org>
9821
9822         * NEWS: Document removal of 'exit'.
9823         * modules/exit: Remove file.
9824
9825 2011-05-01  Bruno Haible  <bruno@clisp.org>
9826
9827         Update DEPENDENCIES.
9828         * DEPENDENCIES (gettext): Recommend the newest release.
9829         Reported by Simon Josefsson.
9830
9831 2011-05-01  Bruno Haible  <bruno@clisp.org>
9832
9833         gnulib-tool: Reduce code duplication.
9834         * gnulib-tool (func_emit_autoconf_snippets): New function.
9835         (func_import, func_create_testdir): Use it.
9836
9837 2011-04-30  Eric Blake  <eblake@redhat.com>
9838
9839         fclose: don't fail on non-seekable input stream
9840         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
9841         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
9842         since fflush is allowed to fail in that case.
9843
9844 2011-04-30  Bruno Haible  <bruno@clisp.org>
9845
9846         dup3: cleanup
9847         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
9848
9849 2011-04-30  Bruno Haible  <bruno@clisp.org>
9850
9851         netdb: Make it work in C++ mode.
9852         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
9853         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
9854         module.
9855         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
9856         gl_MODULE_INDICATOR_FOR_TESTS.
9857         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
9858         * modules/netdb-c++-tests: New file.
9859         * tests/test-netdb-c++.cc: New file.
9860
9861 2011-04-30  Bruno Haible  <bruno@clisp.org>
9862
9863         New modules 'vfscanf', 'vscanf'.
9864         * modules/vfscanf: New file.
9865         * modules/vscanf: New file.
9866         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
9867         here.
9868         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
9869         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
9870
9871 2011-04-30  Bruno Haible  <bruno@clisp.org>
9872
9873         passfd: Add comments.
9874         * lib/passfd.c: Add comments about platforms.
9875
9876 2011-04-30  Bruno Haible  <bruno@clisp.org>
9877
9878         sys_uio: Make <sys/uio.h> self-contained.
9879         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
9880         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
9881
9882 2011-04-30  Bruno Haible  <bruno@clisp.org>
9883
9884         sys_socket: Ensure 'struct iovec' definition.
9885         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
9886         <sys/socket.h>.
9887         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
9888
9889 2011-04-30  Bruno Haible  <bruno@clisp.org>
9890
9891         sys_uio: Protect definition of 'struct iovec'.
9892         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
9893         it as a C struct.
9894
9895 2011-04-30  Bruno Haible  <bruno@clisp.org>
9896
9897         manywarnings: fix indentation
9898         * m4/manywarnings.m4: Indent by 2 spaces consistently.
9899
9900 2011-04-30  Pádraig Brady <P@draigBrady.com>
9901
9902         manywarnings: add -Wno-missing-field-initializers if needed.
9903         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
9904         option if it's needed to allow initialization with { 0, }
9905
9906 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
9907
9908         announce-gen: cosmetic improvement
9909         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
9910
9911 2011-04-29  Jim Meyering  <meyering@redhat.com>
9912
9913         vc-list-files: indent with spaces, not TABs
9914         * build-aux/vc-list-files: Convert leading TABs to spaces,
9915         to match the style of most other files in gnulib.
9916
9917         announce-gen: indent with spaces, not TABs
9918         * build-aux/announce-gen: Convert all TABs to spaces, to match
9919         the style of most other files in gnulib.
9920
9921 2011-04-29  Eric Blake  <eblake@redhat.com>
9922
9923         quotearg: avoid uninitialized variable use
9924         * lib/quotearg.c (quoting_options_from_style): Initialize
9925         remaining fields, and ensure that custom styles are only used via
9926         quoting_options rather than quoting_style.
9927
9928 2011-04-29  Jim Meyering  <meyering@redhat.com>
9929
9930         maint.mk: remove unused VC-tag variable
9931         * top/maint.mk (VC-tag): Remove unused variable.
9932
9933 2011-04-29  Bruno Haible  <bruno@clisp.org>
9934
9935         netdb: fix gai_strerror replacements
9936         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
9937         * modules/netdb: Substitute it.
9938
9939 2011-04-29  Jim Meyering  <meyering@redhat.com>
9940
9941         test-getcwd.c: avoid new set-but-not-used warning
9942         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
9943         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
9944         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
9945         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
9946
9947         test-hash.c: avoid a new shadowing warning
9948         * tests/test-hash.c (main): Don't shadow "dup".
9949
9950 2011-04-28  Eric Blake  <eblake@redhat.com>
9951
9952         getaddrinfo: fix gai_strerror signature
9953         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
9954         and work around mingw with UNICODE defined.
9955         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
9956         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
9957         * modules/netdb (Makefile.am): Substitute it.
9958         * lib/netdb.in.h (gai_strerror): Declare replacement.
9959         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
9960         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
9961         the fix.
9962
9963         getsockopt: avoid compiler warning
9964         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
9965         Reported by Matthias Bolte.
9966
9967         tests: drop unused link dependency
9968         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
9969         * modules/dirent-safer-tests (Makefile.am): Likewise.
9970         * modules/fdopendir-tests (Makefile.am): Likewise.
9971         * modules/mkfifoat-tests (Makefile.am): Likewise.
9972         * modules/openat-safer-tests (Makefile.am): Likewise.
9973         * modules/openat-tests (Makefile.am): Likewise.
9974         * modules/readlinkat-tests (Makefile.am): Likewise.
9975         * modules/symlinkat-tests (Makefile.am): Likewise.
9976         * modules/linkat-tests (Makefile.am): Likewise.
9977         (Depends-on): Switch to filenamecat-lgpl.
9978         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
9979         LIBINTL.
9980         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
9981         * tests/test-linkat.c (main): Don't require xalloc.
9982
9983         hash, mgetgroups: drop xalloc dependency
9984         * lib/hash.c (includes): Adjust includes.
9985         * lib/mgetgroups.c (includes): Likewise.
9986         (xgetgroups): Move...
9987         * lib/xgetgroups.c: ...to new file.
9988         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
9989         * modules/xgetgroups: New file, split from...
9990         * modules/mgetgroups: ...here.
9991         (Depends-on): Add xalloc-oversized.
9992         * modules/hash (Depends-on): Likewise.
9993         * modules/hash-tests (Depends-on): Drop xalloc.
9994         (test_hash_LDADD): Drop unused library.
9995         * tests/test-hash.c (main): Break xalloc dependency.
9996         (includes): Drop unused include.
9997
9998         xalloc-oversized: new module
9999         * modules/xalloc-oversized: New module.
10000         * modules/xalloc (Depends-on): Add it.
10001         * lib/xalloc.h (xalloc_oversized): Move...
10002         * lib/xalloc-oversized.h: ...into new file.
10003
10004         utimecmp: drop dependency on xmalloc
10005         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
10006         due to memory pressure.
10007         * modules/utimecmp (Depends-on): Drop xalloc.
10008
10009 2011-04-27  Eric Blake  <eblake@redhat.com>
10010
10011         getcwd: fix mingw bugs
10012         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
10013         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
10014         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
10015
10016 2011-04-27  Bruno Haible  <bruno@clisp.org>
10017
10018         mkstemps: Ensure declaration on MacOS X 10.5.
10019         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
10020         * doc/glibc-functions/mkstemps.texi: Document header file problem on
10021         MacOS X.
10022
10023 2011-04-27  Bruno Haible  <bruno@clisp.org>
10024
10025         mkstemp: More documentation.
10026         * doc/posix-functions/mkstemp.texi: Document header file problem on
10027         MacOS X.
10028
10029 2011-04-27  Bruno Haible  <bruno@clisp.org>
10030
10031         mkstemp: Tweak configure message when cross-compiling.
10032         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
10033         result as a guess.
10034
10035 2011-04-27  Bruno Haible  <bruno@clisp.org>
10036
10037         clean-temp: Clarify what it does.
10038         * lib/clean-temp.h: Add more comments.
10039         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
10040         module.
10041         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
10042         * doc/glibc-functions/mkstemps.texi: Likewise.
10043         * doc/glibc-functions/mkostemps.texi: Likewise.
10044
10045 2011-04-27  Eric Blake  <eblake@redhat.com>
10046
10047         fchdir: avoid extra chdir and fix test
10048         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
10049         getcwd-lgpl.
10050         * lib/fchdir.c (get_name): Any absolute name will do; it does not
10051         have to be canonical.
10052         (canonicalize_file_name): Drop unused macro.
10053         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
10054
10055         filenamecat-lgpl: fix licence
10056         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
10057         when it was first created.
10058
10059         linkat, renameat: add missing dependency
10060         * modules/linkat (Depends-on): Require getcwd-lgpl.
10061         * modules/renameat (Depends-on): Likewise.
10062
10063         tests: reduce dependencies
10064         * tests/test-linkat.c (main): Use lighter-weight getcwd.
10065         * tests/test-renameat.c (main): Likewise.
10066         * modules/linkat-tests (Depends-on): Relax dependency.
10067         * modules/renameat-tests (Depends-on): Likewise.
10068         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
10069         dependency explicit.
10070
10071         save-cwd: reduce default dependency
10072         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
10073         * lib/save-cwd.c: Update comments.
10074         * NEWS: Document the semantic change.
10075
10076         getcwd: enhance tests
10077         * tests/test-getcwd-lgpl.c: New file, taken from...
10078         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
10079         repeat long path stress tests from m4 probe.
10080         * modules/getcwd-lgpl-tests: New module.
10081         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
10082         * m4/getcwd-abort-bug.m4: Update comment.
10083         * m4/getcwd-path-max.m4: Likewise.
10084
10085         getcwd-lgpl: new module
10086         * modules/getcwd-lgpl: New module.
10087         * lib/getcwd-lgpl.c: New file.
10088         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10089         * MODULES.html.sh (lacking POSIX:2008): Likewise.
10090         * modules/getcwd (configure.ac): Set C witness.
10091         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
10092
10093         getcwd: tweak comments
10094         * m4/getcwd-abort-bug.m4: Fix comments.
10095         * m4/getcwd-path-max.m4: Likewise.
10096         * m4/getcwd.m4: Likewise.
10097
10098 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
10099         and Eric Blake  <eblake@redhat.com>
10100
10101         mkstemp: replace if system version uses wrong permissions
10102         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
10103         read/write mode bits set in file created by mkstemp.
10104         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
10105
10106 2011-04-27  Eric Blake  <eblake@redhat.com>
10107
10108         passfd: avoid compiler warning
10109         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
10110         Reported by Laine Stump.
10111
10112 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
10113
10114         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
10115         required by the NetBSD (and perhaps other 4.4BSD derived) join.
10116
10117 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
10118         and Eric Blake  <eblake@redhat.com>
10119
10120         mkstemp: mention clean-temp module
10121         * lib/mkstemp.c: Add comment.
10122         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
10123
10124 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
10125
10126         inttypes: also provide default values for 32-bit tests
10127         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
10128         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
10129
10130 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
10131
10132         strtoumax: remove dependency on strtoimax
10133         This is like the strtoull change of yesterday.
10134         * modules/strtoumax (Files): Add lib/strtoimax.c.
10135         (Depends-on): Remove strtoimax and add verify.
10136
10137         inttypes-incomplete: new module
10138         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
10139         all but the PRI* and SCN* parts of gl_INTTYPES_H.
10140         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
10141         of gl_INTTYPES_H.
10142         (gl_INTTYPES_H): Rewrite in terms of these new macros.
10143         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
10144         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
10145         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
10146         * modules/strtoumax, modules/xstrtol (Depends-on):
10147         Depend on inttypes-incomplete, not inttypes.
10148         * modules/inttypes-incomplete: New module, containing the contents
10149         of the old modules/inttypes module, except that the Files: section
10150         omits m4/inttypes-pri.m4, and the configure.ac section invokes
10151         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
10152         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
10153         (Depends-on): Depend only on inttypes-incomplete.
10154         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
10155
10156         inttypes: omit now-redundant strtoimax and strtoumax work
10157         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
10158         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
10159
10160         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
10161         This supports apps that need pointers to strtoimax and strtoumax,
10162         and ports to HP-UX 11.00 64.bit, which has macros that expand to
10163         nonexistent functions.  See
10164         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
10165         et seq.
10166         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
10167         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
10168         a macro.
10169         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
10170
10171 2011-04-25  Simon Josefsson  <simon@josefsson.org>
10172
10173         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
10174
10175 2011-04-25  Bruno Haible  <bruno@clisp.org>
10176
10177         strtol, strtoul: Mark modules as obsolete.
10178         * modules/strtol (Status, Notice): New sections.
10179         * modules/strtoul (Status, Notice): New sections.
10180
10181 2011-04-25  Bruno Haible  <bruno@clisp.org>
10182
10183         strtod: Remove check for strtod, unless supporting old platforms.
10184         * modules/strtod-obsolete: New file.
10185         * m4/strtod-obsolete.m4: New file.
10186         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
10187         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
10188         * modules/strtod (Depends-on): Add strtod-obsolete.
10189         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
10190
10191 2011-04-25  Bruno Haible  <bruno@clisp.org>
10192
10193         strcase: Make module obsolete.
10194         * modules/strcase (Status, Notice): New sections.
10195
10196 2011-04-25  Bruno Haible  <bruno@clisp.org>
10197
10198         dup2: Remove check for dup2, unless supporting old obsolete platforms.
10199         * modules/dup2-obsolete: New file.
10200         * m4/dup2-obsolete.m4: New file.
10201         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
10202         gl_FUNC_DUP2_OBSOLETE is not also defined.
10203         * modules/dup2 (Depends-on): Add dup2-obsolete.
10204         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
10205
10206 2011-04-25  Bruno Haible  <bruno@clisp.org>
10207
10208         strnlen: Avoid memchr related link error on old obsolete platforms.
10209         * modules/memchr-obsolete: New file.
10210         * m4/memchr-obsolete.m4: New file.
10211         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
10212         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
10213         * modules/memchr (Depends-on): Add memchr-obsolete.
10214         * modules/strnlen (Depends-on): Likewise.
10215         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
10216
10217 2011-04-25  Jim Meyering  <meyering@redhat.com>
10218
10219         maint.mk: makefile_at_at_check extend and clean up
10220         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
10221         in addition to */Makefile.am.
10222         Exempt legitimate uses of @VAR@ notation, e.g.,
10223         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
10224         Remove obsolete coreutils-specific comment.
10225         Prompted by discussion here:
10226         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
10227
10228 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
10229
10230         strtoul: remove dependency on strtol
10231         This is so that 'configure' need not check for strtol merely because
10232         the application needs strtoul.
10233         * modules/strtoul (Files): Add lib/strtol.c.
10234         (Depends-on): Remove strtol.
10235
10236         strtoull: remove dependency on strtoul
10237         This is like the strtoll change.
10238         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
10239         (Depends-on): Remove strtoul.
10240
10241         strtoll: remove dependency on strtol
10242         This is so that 'configure' need not check for strtol merely because
10243         the application needs strtoll.
10244         * modules/strtoll (Files): Add lib/strtol.c.
10245         (Depends-on): Remove strtol.
10246
10247 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10248
10249         inttypes: Move some configure check to module 'imaxdiv'.
10250         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
10251         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
10252         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
10253
10254 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10255
10256         inttypes: Move some configure check to module 'imaxabs'.
10257         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
10258         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
10259         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
10260
10261 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10262
10263         inttypes: Remove configure tests that are not needed since 2009-12-31.
10264         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
10265         gl_cv_header_working_inttypes_h.
10266
10267 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
10268
10269         * modules/strnlen (Depends-on): Remove memchr.
10270         The strnlen implementation doesn't need the memchr module's fixes; see
10271         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
10272
10273         strtol: remove dependency on wchar
10274         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
10275         * modules/strtol (Depends-on): Remove wchar.
10276
10277 2011-04-21  Eric Blake  <eblake@redhat.com>
10278
10279         passfd: fix test regression on Linux
10280         * modules/passfd-tests (configure.ac): Correct socketpair check.
10281
10282         passfd: speed up configure and drop unused code
10283         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
10284         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
10285         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
10286         Instead of probing at configure for unix_scm_rights_bsd44_way,
10287         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
10288         check to a struct member probe.
10289         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
10290         (sendfd, recvfd): Update preprocessor checks.
10291         * modules/passfd (Files): Reflect rename, and drop unused file.
10292         (Depends-on): Drop unused dependency.
10293
10294         passfd: allow compilation on mingw
10295         * modules/sys_socket (Depends-on): Add sys_uio.
10296         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
10297         iovec and a minimal struct msghdr.
10298         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
10299         * tests/test-sys_socket.c (main): Enhance test.
10300         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
10301         guaranteed to provide what we need.
10302         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
10303         * modules/passfd-tests (Depends-on): Add sys_wait.
10304         * tests/test-passfd.c (main): Skip test on mingw, for now.
10305         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
10306         partial 'struct msghdr' implementation.
10307
10308         sys_uio: new module
10309         * modules/sys_uio: New module.
10310         * modules/sys_uio-tests: Likewise.
10311         * lib/sys_uio.in.h: New file.
10312         * m4/sys_uio_h.m4: Likewise.
10313         * tests/test-sys_uio.c: Likewise.
10314         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
10315         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
10316
10317 2011-04-20  Jim Meyering  <meyering@redhat.com>
10318
10319         useless-if-before-free: avoid false-positive
10320         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
10321         disjunct so that it too requires a terminating ";".  Without that,
10322         this script would identify as useless one statement from gcc that
10323         was not:
10324           if (aligned_ptr)
10325             free (((void **) aligned_ptr) [-1]);
10326
10327 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
10328
10329         doc: update users.txt.
10330         * users.txt: Add barcode.
10331
10332 2011-04-19  Bruno Haible  <bruno@clisp.org>
10333
10334         ioctl: Remove link dependency on native Windows.
10335         * lib/fd-hook.h: Renamed from lib/close-hook.h.
10336         (gl_close_fn, gl_ioctl_fn): New types.
10337         (struct fd_hook): Renamed from struct close_hook. Change type of
10338         private_close_fn field. Add private_ioctl_fn field.
10339         (close_hook_fn): Add parameter for primary close method.
10340         (execute_close_hooks, execute_all_close_hooks): Likewise.
10341         (ioctl_hook_fn): New type.
10342         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
10343         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
10344         argument.
10345         (unregister_fd_hook): Renamed from unregister_close_hook.
10346         * lib/fd-hook.c: Renamed from lib/close-hook.c.
10347         Don't include <unistd.h>.
10348         (close): Remove undef.
10349         (anchor): Update.
10350         (execute_close_hooks): Add argument for primary close method.
10351         (execute_all_close_hooks): Likewise.
10352         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
10353         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
10354         argument. Allow each argument to be NULL.
10355         (unregister_fd_hook): Renamed from unregister_close_hook.
10356         * lib/close.c (rpl_close): Pass 'close' function pointer to
10357         execute_all_close_hooks.
10358         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
10359         (primary_ioctl): New function.
10360         (ioctl): Don't call ioctlsocket here. Instead, call
10361         execute_all_ioctl_hooks.
10362         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
10363         close method.
10364         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
10365         (fd_sockets_hook): Renamed from close_sockets_hook.
10366         (gl_sockets_startup, gl_sockets_cleanup): Update.
10367         * modules/fd-hook: Renamed from modules/close-hook. Update.
10368         * modules/close (Depends-on): Add fd-hook, remove close-hook.
10369         * modules/sockets (Depends-on): Likewise.
10370         * modules/ioctl (Depends-on): Add fd-hook.
10371         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
10372         GNULIB_SOCKET.
10373
10374 2011-04-19  Bruno Haible  <bruno@clisp.org>
10375
10376         Move the support of O_NONBLOCK in open() to the 'open' module.
10377         * modules/nonblocking (Depends-on): Remove 'open'.
10378         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
10379         gl_cv_have_open_O_NONBLOCK.
10380         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
10381         O_NONBLOCK support.
10382         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
10383
10384 2011-04-17  Bruno Haible  <bruno@clisp.org>
10385
10386         pipe2: Simplify code.
10387         * lib/pipe2.c (pipe2): Reduce code duplication.
10388
10389 2011-04-17  Bruno Haible  <bruno@clisp.org>
10390
10391         nonblocking: Add comment.
10392         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
10393
10394 2011-04-17  Bruno Haible  <bruno@clisp.org>
10395
10396         nonblocking: Add tests for sockets.
10397         * tests/test-nonblocking-socket.sh: New file.
10398         * tests/test-nonblocking-socket-main.c: New file.
10399         * tests/test-nonblocking-socket-child.c: New file.
10400         * tests/test-nonblocking-socket.h: New file.
10401         * tests/socket-server.h: New file.
10402         * tests/socket-client.h: New file.
10403         * modules/nonblocking-socket-tests: New file.
10404         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
10405
10406 2011-04-17  Bruno Haible  <bruno@clisp.org>
10407
10408         nonblocking: Add tests for pipes.
10409         * tests/test-nonblocking-pipe.sh: New file.
10410         * tests/test-nonblocking-pipe-main.c: New file.
10411         * tests/test-nonblocking-pipe-child.c: New file.
10412         * tests/test-nonblocking-pipe.h: New file.
10413         * tests/test-nonblocking-writer.h: New file.
10414         * tests/test-nonblocking-reader.h: New file.
10415         * tests/test-nonblocking-misc.h: New file.
10416         * modules/nonblocking-pipe-tests: New file.
10417         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
10418
10419 2011-04-16  Bruno Haible  <bruno@clisp.org>
10420
10421         gettext: Clarify the needed programmer actions.
10422         * modules/gettext (Notice): New field.
10423         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
10424
10425 2011-04-16  Bruno Haible  <bruno@clisp.org>
10426
10427         strchrnul: Tweak last commit.
10428         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
10429         bug.
10430         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
10431         as in _GL_FUNCDECL_SYS.
10432         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
10433         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
10434
10435 2011-04-15  Eric Blake  <eblake@redhat.com>
10436
10437         strchrnul: work around cygwin bug
10438         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
10439         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
10440         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
10441         * modules/string (Makefile.am): Substitute it.
10442         * lib/string.in.h (strchrnul): Use it.
10443
10444 2011-04-15  Bruno Haible  <bruno@clisp.org>
10445
10446         Don't require lib/stdio-write.c when only module 'stdio' is used.
10447         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
10448         invocation.
10449         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
10450
10451 2011-04-14  Bruno Haible  <bruno@clisp.org>
10452
10453         Support non-blocking pipe I/O in read() on native Windows.
10454         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
10455         (read): New declaration.
10456         * lib/read.c: New file.
10457         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
10458         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
10459         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
10460         vscanf): New declarations.
10461         * lib/stdio-read.c: New file.
10462         * m4/read.m4: New file.
10463         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
10464         REPLACE_READ.
10465         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
10466         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10467         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
10468         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
10469         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
10470         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10471         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
10472         * modules/read: New file.
10473         * modules/nonblocking (Files): Add lib/stdio-read.c.
10474         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
10475         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
10476         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
10477         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
10478         * modules/pread (Depends-on): Add read.
10479         * modules/safe-read (Depends-on): Likewise.
10480         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
10481         gets, scanf, vfscanf, vscanf): Verify signatures.
10482         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
10483         problem with non-blocking pipes.
10484         * doc/posix-functions/fgetc.texi: Likewise.
10485         * doc/posix-functions/fgets.texi: Likewise.
10486         * doc/posix-functions/fread.texi: Likewise.
10487         * doc/posix-functions/fscanf.texi: Likewise.
10488         * doc/posix-functions/getc.texi: Likewise.
10489         * doc/posix-functions/getchar.texi: Likewise.
10490         * doc/posix-functions/gets.texi: Likewise.
10491         * doc/posix-functions/scanf.texi: Likewise.
10492         * doc/posix-functions/vfscanf.texi: Likewise.
10493         * doc/posix-functions/vscanf.texi: Likewise.
10494
10495 2011-04-14  Bruno Haible  <bruno@clisp.org>
10496
10497         Support non-blocking pipe I/O in write() on native Windows.
10498         * lib/write.c (rpl_write): Split a write request that failed merely
10499         because the byte count was larger than the pipe buffer's size.
10500         * doc/posix-functions/write.texi: Mention the problem with large byte
10501         counts.
10502
10503 2011-04-14  Bruno Haible  <bruno@clisp.org>
10504
10505         wchar: Ensure that wchar_t gets defined on uClibc.
10506         * lib/wchar.in.h: On uClibc, include <stddef.h>.
10507         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
10508
10509 2011-04-13  Bruno Haible  <bruno@clisp.org>
10510
10511         safe-write, full-read: Avoid unnecessary compilation units.
10512         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
10513         (Depends-on): Remove safe-read. Add ssize_t.
10514         * modules/full-read (Files): Add lib/full-write.c.
10515         (Depends-on): Add full-write.
10516
10517 2011-04-13  Bruno Haible  <bruno@clisp.org>
10518
10519         Support non-blocking pipe I/O and SIGPIPE in pwrite().
10520         * modules/pwrite (Depends-on): Add 'write'.
10521
10522 2011-04-13  Bruno Haible  <bruno@clisp.org>
10523
10524         Support non-blocking pipe I/O in write() on native Windows.
10525         * lib/unistd.in.h (write): Enable replacement also if
10526         GNULIB_UNISTD_H_NONBLOCKING is 1.
10527         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
10528         (rpl_write): When failing to write on a non-blocking pipe, change
10529         errno from ENOSPC to EAGAIN.
10530         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
10531         putchar, puts, vfprintf, vprintf): Enable replacement also if
10532         GNULIB_STDIO_H_NONBLOCKING is 1.
10533         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
10534         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
10535         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
10536         CALL_WITH_SIGPIPE_EMULATION.
10537         (CALL_WITH_SIGPIPE_EMULATION): Use them.
10538         * m4/nonblocking.m4: New file.
10539         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
10540         for non-blocking I/O support.
10541         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10542         GNULIB_UNISTD_H_NONBLOCKING.
10543         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
10544         required for non-blocking I/O support.
10545         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
10546         * modules/nonblocking (Files): Add m4/nonblocking.m4,
10547         lib/stdio-write.c, m4/asm-underscore.m4.
10548         (Depends-on): Add stdio, unistd.
10549         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
10550         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
10551         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
10552         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
10553         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
10554         problem with non-blocking pipes.
10555         * doc/posix-functions/fputc.texi: Likewise.
10556         * doc/posix-functions/fputs.texi: Likewise.
10557         * doc/posix-functions/fwrite.texi: Likewise.
10558         * doc/posix-functions/printf.texi: Likewise.
10559         * doc/posix-functions/putc.texi: Likewise.
10560         * doc/posix-functions/putchar.texi: Likewise.
10561         * doc/posix-functions/puts.texi: Likewise.
10562         * doc/posix-functions/vfprintf.texi: Likewise.
10563         * doc/posix-functions/vprintf.texi: Likewise.
10564         * doc/posix-functions/write.texi: Likewise.
10565
10566 2011-04-10  Jim Meyering  <meyering@redhat.com>
10567
10568         maint.mk: prohibit doubled words
10569         Detect them also when they're separated by a newline.
10570         There are 3 ways to customize it:
10571           - disable the test on a per file basis, as usual with rules using
10572             $(VC_LIST_EXCEPT)
10573           - replace the default doubled-word-selecting regexp (affects all files)
10574           - ignore a particular file-vs-doubled-word match
10575         I nearly used that last one to ignore the "is is" match in
10576         coreutils' NEWS file, since the text was "ls -is is ..."
10577         To do that, I would have added this line to cfg.mk:
10578           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
10579         but it would have ignored any "is is" match in NEWS.
10580         Low probability, but still...
10581         Instead, I changed the text, slightly:
10582           -  ls -is is now consistent with ls -lis in ignoring values returned
10583           +  "ls -is" is now consistent with ls -lis in ignoring values returned
10584         * top/maint.mk (prohibit_double_word_RE_): Provide default.
10585         (prohibit_doubled_word_): Define.
10586         (sc_prohibit_doubled_word): New rule.
10587         (sc_prohibit_the_the): Remove.  Subsumed by the above.
10588
10589 2011-04-10  Jim Meyering  <meyering@redhat.com>
10590
10591         maint: fix doubled-word typo in comment
10592         * m4/gethostname.m4: s/is is/it is/
10593         * m4/getdomainname.m4: Likewise.
10594
10595 2011-04-10  Jim Meyering  <meyering@redhat.com>
10596
10597         maint: remove doubled word: s/it it/it/
10598         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
10599
10600 2011-04-10  Jim Meyering  <meyering@redhat.com>
10601
10602         maint.mk: remove useless semicolon and backslash
10603         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
10604         semicolon and backslash.
10605
10606 2011-04-10  Bruno Haible  <bruno@clisp.org>
10607
10608         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
10609         * modules/stdint-tests (Depends-on): Add wchar.
10610
10611 2011-04-10  Jim Meyering  <meyering@redhat.com>
10612
10613         maint: remove doubled words in comments, e.g., s/a a/a/
10614         * lib/strptime.c (day_of_the_week): s/the the/the/
10615         * tests/test-chown.h (test_chown): s/a a/a/
10616
10617         test-chown.h: correct a cast
10618         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
10619         when the destination is a stat.st_gid.
10620
10621 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
10622
10623         getaddrinfo: Fix test for sa_len member.
10624         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
10625         include <sys/types.h> before <sys/socket.h>.
10626
10627 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
10628
10629         maint: change "can not" to "cannot"
10630         * doc/posix-functions/iconv.texi (iconv): This one crossed line
10631         boundaries.
10632
10633 2011-04-09  Jim Meyering  <meyering@redhat.com>
10634
10635         maint: change "a a" to "a"
10636         * tests/test-lchown.h (test_lchown): s/a a/a/
10637
10638         maint.mk: prohibit \<the the\>
10639         * top/maint.mk (sc_prohibit_the_the): New rule.
10640
10641         maint: fix "the the" in comment
10642         * lib/count-one-bits.h: s/the the/the/
10643
10644         maint: change "can not" to "cannot"
10645         But do not change the occurrences in maintain.texi or in
10646         build-aux/po/Makefile.in.in, which I presume comes from gettext.
10647         * doc/gnulib-tool.texi: s/can not/cannot/
10648         * doc/posix-functions/accept.texi (accept): Likewise.
10649         * doc/posix-functions/socket.texi (socket): Likewise.
10650         * lib/mbrtowc.c: Likewise.
10651
10652         maint.mk: prohibit use of "can not"
10653         * top/maint.mk (sc_prohibit_can_not): New rule.
10654         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
10655
10656 2011-04-09  Bruno Haible  <bruno@clisp.org>
10657
10658         careadlinkat: Guard against misuse of careadlinkatcwd.
10659         * lib/careadlinkat.c: Include <stdlib.h>.
10660         (careadlinkatcwd): Check that the fd argument is as expected.
10661
10662 2011-04-09  Bruno Haible  <bruno@clisp.org>
10663
10664         careadlinkat: Use common coding style.
10665         * lib/careadlinkat.c: Move gnulib includes after system includes.
10666
10667 2011-04-09  Bruno Haible  <bruno@clisp.org>
10668
10669         careadlinkat: Clarify specification.
10670         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
10671         (careadlinkatcwd): Add comment.
10672         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
10673
10674 2011-04-09  Bruno Haible  <bruno@clisp.org>
10675
10676         areadlinkat: Avoid link error on many platforms.
10677         * modules/areadlinkat (Depends-on): Add areadlink.
10678
10679 2011-04-09  Bruno Haible  <bruno@clisp.org>
10680
10681         allocator, careadlinkat: Fix double-inclusion guard.
10682         * lib/allocator.h: Fix double-inclusion guard.
10683         * lib/careadlinkat.h: Likewise.
10684
10685 2011-04-09  Bruno Haible  <bruno@clisp.org>
10686
10687         relocatable-prog-wrapper: Update after module 'areadlink' changed.
10688         * lib/relocwrapper.c: Update dependencies hierarchy.
10689         * build-aux/install-reloc: Update list of files to be compiled.
10690         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
10691         lib/allocator.[hc].
10692
10693 2011-04-08  Eric Blake  <eblake@redhat.com>
10694
10695         strftime: silence gnulib-tool warning
10696         * modules/strftime-tests (Depends-on): Drop automatic dependency.
10697
10698 2011-04-08  Bruno Haible  <bruno@clisp.org>
10699
10700         verify: Fix syntax error with GCC 4.6 in C++ mode.
10701         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
10702         (HAVE_STATIC_ASSERT): New macro.
10703         (verify_true, verify): Use 'static_assert' if it is supported and
10704         '_Static_assert' is not supported.
10705
10706 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
10707
10708         allocator: New module.
10709         * modules/allocator, lib/allocator.c: New files.
10710         * lib/allocator.h (stdlib_allocator): New decl.
10711         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
10712         Remove.  Do not include <stdlib.h>.
10713         (careadlinkat): Use stdlib_allocator instead of rolling our own.
10714         * modules/careadlinkat (Files): Remove lib/allocator.h.
10715         (Depends-on): Add allocator.
10716
10717         stdlib: let modules use system malloc, realloc
10718         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
10719         if !_GL_USE_STDLIB_ALLOC.
10720         (malloc, realloc): Limit this change to a smaller scope.
10721
10722         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
10723         (malloc, realloc): Don't #undef; no longer needed.
10724         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10725         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10726         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
10727         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10728         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10729         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10730         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
10731         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
10732
10733         careadlinkat: rename members to avoid problem
10734         * lib/allocator.h (struct allocator): Rename members from
10735         malloc/realloc to allocate/reallocate, to avoid problems if malloc
10736         and realloc are #define'd.  Reported by Eric Blake in
10737         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
10738         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
10739
10740 2011-04-08  Eric Blake  <eblake@redhat.com>
10741
10742         nonblocking: reduce dependency
10743         * tests/test-nonblocking.c: Only test sockets when in use.
10744         * modules/nonblocking-tests (Depends-on): Drop socket.
10745         (Makefile.am): Link even if sockets are not present.
10746         * modules/pipe2-tests (Makefile.am): Likewise.
10747         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
10748
10749         pipe2: fix O_NONBLOCK support on mingw
10750         * modules/pipe2 (Depends-on): Add nonblocking.
10751         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
10752         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
10753         * tests/test-nonblocking.c (main): Likewise.
10754         * modules/pipe2-tests (Makefile.am): Avoid link failure.
10755
10756         fcntl-h: fix O_ACCMODE on cygwin
10757         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
10758         * lib/fcntl.in.h (O_ACCMODE): Fix it.
10759
10760         pipe-filter: drop O_NONBLOCK workarounds
10761         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
10762         * modules/pipe-filter-ii (Depends-on): Likewise.
10763         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
10764
10765         nonblocking: provide O_NONBLOCK for mingw
10766         * modules/nonblocking (Depends-on): Add open.
10767         (configure.ac): Set new witness macro.
10768         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
10769         * modules/fcntl-h (Makefile.am): Substitute it.
10770         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
10771         nonblocking module is in use.
10772         * lib/nonblocking.c: Adjust portability test.
10773         * lib/open.c (open): Don't let native open see gnulib flag.
10774         * tests/test-fcntl-h.c (main): Enhance test.
10775         * tests/test-open.h (test_open): Likewise.
10776         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
10777
10778         careadlinkat: fix compilation error on mingw
10779         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
10780         within struct allocator.
10781
10782 2011-04-06  Eric Blake  <eblake@redhat.com>
10783
10784         binary-io: relicense under LGPLv2+
10785         * modules/binary-io (License): Relax to LGPLv2+.
10786         Requested for libvirt, and required by pipe2.
10787
10788 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
10789
10790         verify: use _Static_assert if available
10791         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
10792         (verify_true, verify): Use it if available.  This generates better
10793         diagnostics with GCC 4.6.0 and later.
10794
10795 2011-04-05  Bruno Haible  <bruno@clisp.org>
10796
10797         Remove leftover generated .h files after config.status changed.
10798
10799         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
10800         GL_GENERATE_ALLOCA_H.
10801         * modules/alloca-opt (Makefile.am): Remove alloca.h if
10802         GL_GENERATE_ALLOCA_H evaluates to false.
10803
10804         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
10805         GL_GENERATE_ARGZ_H.
10806         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
10807         evaluates to false.
10808
10809         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
10810         GL_GENERATE_BYTESWAP_H.
10811         * modules/byteswap (Makefile.am): Remove byteswap.h if
10812         GL_GENERATE_BYTESWAP_H evaluates to false.
10813
10814         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
10815         GL_GENERATE_ERRNO_H.
10816         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
10817         evaluates to false.
10818
10819         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
10820         GL_GENERATE_FLOAT_H.
10821         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
10822         evaluates to false.
10823
10824         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
10825         GL_GENERATE_FNMATCH_H.
10826         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
10827         GL_GENERATE_FNMATCH_H evaluates to false.
10828
10829         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
10830         GL_GENERATE_GLOB_H.
10831         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
10832         evaluates to false.
10833
10834         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
10835         automake conditional GL_GENERATE_ICONV_H.
10836         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
10837         evaluates to false.
10838
10839         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
10840         GL_GENERATE_NETINET_IN_H.
10841         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
10842         GL_GENERATE_NETINET_IN_H evaluates to false.
10843
10844         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
10845         conditional GL_GENERATE_PTHREAD_H.
10846         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
10847         * modules/pthread (Makefile.am): Remove pthread.h if
10848         GL_GENERATE_PTHREAD_H evaluates to false.
10849
10850         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
10851         GL_GENERATE_SCHED_H.
10852         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
10853         evaluates to false.
10854
10855         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
10856         conditional GL_GENERATE_SELINUX_CONTEXT_H.
10857         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
10858         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
10859
10860         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
10861         GL_GENERATE_STDARG_H.
10862         * modules/stdarg (Makefile.am): Remove stdarg.h if
10863         GL_GENERATE_STDARG_H evaluates to false.
10864
10865         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
10866         GL_GENERATE_STDBOOL_H.
10867         * modules/stdbool (Makefile.am): Remove stdbool.h if
10868         GL_GENERATE_STDBOOL_H evaluates to false.
10869
10870         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
10871         conditional GL_GENERATE_STDDEF_H.
10872         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
10873         * modules/stddef (Makefile.am): Remove stddef.h if
10874         GL_GENERATE_STDDEF_H evaluates to false.
10875
10876         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
10877         GL_GENERATE_STDINT_H.
10878         * modules/stdint (Makefile.am): Remove stdint.h if
10879         GL_GENERATE_STDINT_H evaluates to false.
10880
10881         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
10882         GL_GENERATE_SYSEXITS_H.
10883         * modules/sysexits (Makefile.am): Remove sysexits.h if
10884         GL_GENERATE_SYSEXITS_H evaluates to false.
10885
10886         Reported by Karl Berry and Ralf Wildenhues.
10887
10888 2011-04-05  Bruno Haible  <bruno@clisp.org>
10889
10890         Ensure to rebuild generated .h files when config.status has changed.
10891         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
10892         config.status.
10893         * modules/ctype (Makefile.am): Likewise.
10894         * modules/dirent (Makefile.am): Likewise.
10895         * modules/errno (Makefile.am): Likewise.
10896         * modules/fcntl-h (Makefile.am): Likewise.
10897         * modules/float (Makefile.am): Likewise.
10898         * modules/getopt-posix (Makefile.am): Likewise.
10899         * modules/glob (Makefile.am): Likewise.
10900         * modules/iconv-h (Makefile.am): Likewise.
10901         * modules/inttypes (Makefile.am): Likewise.
10902         * modules/langinfo (Makefile.am): Likewise.
10903         * modules/locale (Makefile.am): Likewise.
10904         * modules/math (Makefile.am): Likewise.
10905         * modules/netdb (Makefile.am): Likewise.
10906         * modules/netinet_in (Makefile.am): Likewise.
10907         * modules/poll-h (Makefile.am): Likewise.
10908         * modules/pthread (Makefile.am): Likewise.
10909         * modules/pty (Makefile.am): Likewise.
10910         * modules/sched (Makefile.am): Likewise.
10911         * modules/search (Makefile.am): Likewise.
10912         * modules/selinux-h (Makefile.am): Likewise.
10913         * modules/signal (Makefile.am): Likewise.
10914         * modules/spawn (Makefile.am): Likewise.
10915         * modules/stdarg (Makefile.am): Likewise.
10916         * modules/stdbool (Makefile.am): Likewise.
10917         * modules/stddef (Makefile.am): Likewise.
10918         * modules/stdint (Makefile.am): Likewise.
10919         * modules/stdio (Makefile.am): Likewise.
10920         * modules/stdlib (Makefile.am): Likewise.
10921         * modules/string (Makefile.am): Likewise.
10922         * modules/strings (Makefile.am): Likewise.
10923         * modules/sys_file (Makefile.am): Likewise.
10924         * modules/sys_ioctl (Makefile.am): Likewise.
10925         * modules/sys_select (Makefile.am): Likewise.
10926         * modules/sys_socket (Makefile.am): Likewise.
10927         * modules/sys_stat (Makefile.am): Likewise.
10928         * modules/sys_time (Makefile.am): Likewise.
10929         * modules/sys_times (Makefile.am): Likewise.
10930         * modules/sys_utsname (Makefile.am): Likewise.
10931         * modules/sys_wait (Makefile.am): Likewise.
10932         * modules/sysexits (Makefile.am): Likewise.
10933         * modules/termios (Makefile.am): Likewise.
10934         * modules/time (Makefile.am): Likewise.
10935         * modules/unistd (Makefile.am): Likewise.
10936         * modules/wchar (Makefile.am): Likewise.
10937         * modules/wctype-h (Makefile.am): Likewise.
10938         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
10939
10940 2011-04-05  Bruno Haible  <bruno@clisp.org>
10941
10942         pipe2: Relicense under LGPLv2+.
10943         * modules/pipe2 (License): Change to LGPLv2+.
10944         Requested by Eric Blake, for libvirt.
10945
10946 2011-04-05  Bruce Korb  <bkorb@gnu.org>
10947
10948         bootstrap: compute gnulib_extra_files after updating build_aux
10949         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
10950         change build_aux or also supply gnulib_extra_files.  Handle correctly.
10951
10952 2011-04-05  Eric Blake  <eblake@redhat.com>
10953
10954         bootstrap: preserve git whitelist item sorting
10955         * build-aux/bootstrap (sort_patterns): New function.
10956         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
10957
10958 2011-04-05  Simon Josefsson  <simon@josefsson.org>
10959
10960         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
10961         sc_space_tab check.
10962
10963 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
10964
10965         areadlink, areadlinkat: rewrite in terms of careadlinkat
10966         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
10967         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
10968         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
10969         (malloc, realloc): Remove #undefs.
10970         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
10971         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
10972         readlink, ssize_t, stdint, unistd.
10973         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
10974         areadlink, stdint.
10975
10976         careadlinkat: new module
10977         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
10978         * modules/careadlinkat: New files, written by me with
10979         a review and feedback from Ben Pfaff in
10980         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
10981
10982 2011-04-01  Bruno Haible  <bruno@clisp.org>
10983
10984         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
10985         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
10986         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
10987         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
10988         Reported by Bruce Korb <bruce.korb@gmail.com>.
10989
10990 2011-04-01  Bruno Haible  <bruno@clisp.org>
10991
10992         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
10993         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
10994         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
10995         * modules/wcpcpy (Depends-on): Add extensions.
10996         * modules/wcpncpy (Depends-on): Likewise.
10997         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
10998         systems.
10999         * doc/posix-functions/wcpncpy.texi: Likewise.
11000         * doc/posix-functions/wcwidth.texi: Likewise.
11001
11002 2011-03-31  Eric Blake  <eblake@redhat.com>
11003
11004         nonblocking: fix mingw test failures
11005         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
11006         non-blocking flag on regular file.
11007         (get_nonblocking_flag): Set errno on invalid fd.
11008         * tests/test-nonblocking.c (main): Avoid test failure on
11009         directories if fchdir is not active.
11010         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
11011
11012 2011-03-31  Bruno Haible  <bruno@clisp.org>
11013
11014         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
11015         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
11016         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
11017         Reported by Simon Josefsson <simon@josefsson.org>.
11018
11019 2011-03-31  Bruno Haible  <bruno@clisp.org>
11020         and Eric Blake  <eblake@redhat.com>
11021
11022         nonblocking: new module
11023         * modules/nonblocking: New module.
11024         * modules/nonblocking-tests: Likewise.
11025         * lib/nonblocking.h: New file.
11026         * lib/nonblocking.c: Likewise.
11027         * tests/test-nonblocking.c: New test.
11028         * lib/ioctl.c (ioctl) [mingw]: Update comment.
11029
11030 2011-03-30  Bruno Haible  <bruno@clisp.org>
11031
11032         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
11033         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
11034         instead of 'printf' format for GCC >= 4.4.
11035         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
11036         (fprintf, printf, vfprintf, vprintf): Declare with
11037         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
11038         the system's vfprintf() function.
11039         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
11040
11041 2011-03-30  Eric Blake  <eblake@redhat.com>
11042
11043         passfd: fix scoping bug
11044         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
11045         before sendmsg/recvmsg.
11046
11047         passfd: standardize coding conventions
11048         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
11049         can be learned at compile time.
11050         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
11051         ifdefs.
11052         (sendfd, recvfd): Follow gnulib code conventions.
11053
11054         passfd: fix incorrect sendmsg arguments
11055         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
11056         incorrect msg_controllen value.
11057         * modules/passfd-tests (Depends-on): Check for alarm.
11058         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
11059         Reported by Bastien ROUCARIES.
11060
11061 2011-03-30  Bruno Haible  <bruno@clisp.org>
11062
11063         c-strcasestr: Relicense under LGPLv2+.
11064         * modules/c-strcasestr (License): Change to LGPLv2+.
11065         Requested by Eric Blake, for libvirt.
11066
11067 2011-03-30  Simon Josefsson  <simon@josefsson.org>
11068
11069         * users.txt: Add libidn2.  Fix libtasn1 link.
11070
11071 2011-03-30  Jim Meyering  <meyering@redhat.com>
11072
11073         tests: readlink* ("",... fails with EINVAL on newer kernels
11074         readlink and readlinkat have typically failed with ENOENT for
11075         the invalid, empty file name,  "".  However, with the advent
11076         of linux-2.6.39, they fail with EINVAL.
11077         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
11078         when operating on the empty file name.
11079         * tests/test-readlink.h (test_readlink): Likewise.
11080
11081 2011-03-29  Bruno Haible  <bruno@clisp.org>
11082
11083         Relicense some modules under LGPLv2+, for libidn2.
11084         * modules/array-mergesort (License): Change to LGPLv2+.
11085         * modules/c-strcaseeq (License): Likewise.
11086         * modules/striconveh (License): Likewise.
11087         * modules/striconveha (License): Likewise.
11088         * modules/uniconv/base (License): Likewise.
11089         * modules/uniconv/u8-conv-from-enc (License): Likewise.
11090         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
11091         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
11092         * modules/unictype/base (License): Likewise.
11093         * modules/unictype/bidiclass-of (License): Likewise.
11094         * modules/unictype/category-M (License): Likewise.
11095         * modules/unictype/category-none (License): Likewise.
11096         * modules/unictype/category-of (License): Likewise.
11097         * modules/unictype/category-test (License): Likewise.
11098         * modules/unictype/category-test-withtable (License): Likewise.
11099         * modules/unictype/combining-class (License): Likewise.
11100         * modules/unictype/joiningtype-of (License): Likewise.
11101         * modules/unictype/scripts (License): Likewise.
11102         * modules/uninorm/base (License): Likewise.
11103         * modules/uninorm/canonical-decomposition (License): Likewise.
11104         * modules/uninorm/composition (License): Likewise.
11105         * modules/uninorm/decompose-internal (License): Likewise.
11106         * modules/uninorm/decomposition-table (License): Likewise.
11107         * modules/uninorm/nfc (License): Likewise.
11108         * modules/uninorm/nfd (License): Likewise.
11109         * modules/uninorm/u32-normalize (License): Likewise.
11110         * modules/unistr/base (License): Likewise.
11111         * modules/unistr/u32-cpy (License): Likewise.
11112         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
11113         * modules/unistr/u32-to-u8 (License): Likewise.
11114         * modules/unistr/u32-uctomb (License): Likewise.
11115         * modules/unistr/u8-check (License): Likewise.
11116         * modules/unistr/u8-mblen (License): Likewise.
11117         * modules/unistr/u8-mbtouc (License): Likewise.
11118         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
11119         * modules/unistr/u8-mbtoucr (License): Likewise.
11120         * modules/unistr/u8-prev (License): Likewise.
11121         * modules/unistr/u8-strlen (License): Likewise.
11122         * modules/unistr/u8-to-u32 (License): Likewise.
11123         * modules/unistr/u8-uctomb (License): Likewise.
11124         * modules/unitypes (License): Likewise.
11125         Requested by Simon Josefsson.
11126
11127 2011-03-29  Simon Josefsson  <simon@josefsson.org>
11128
11129         lib-symbol-visibility: Add a notice.
11130         * modules/lib-symbol-visibility (Notice): New field.
11131
11132 2011-03-29  Bruno Haible  <bruno@clisp.org>
11133
11134         getaddrinfo: Doc fix.
11135         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
11136         section "fixed in Gnulib".
11137
11138 2011-03-28  Simon Josefsson  <simon@josefsson.org>
11139
11140         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
11141         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
11142
11143 2011-03-26  Bruno Haible  <bruno@clisp.org>
11144
11145         unictype/property-byname: Reduce the number of load-time relocations.
11146         * lib/unictype/pr_byname.c: Include <stdlib.h>.
11147         (UC_PROPERTY_INDEX_*): New enumeration values.
11148         (uc_property_byname): Convert an index from the lookup table to an
11149         uc_property_t.
11150         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
11151         values.
11152
11153 2011-03-26  Bruno Haible  <bruno@clisp.org>
11154
11155         unictype/property-byname: Allow omitted word separators and aliases.
11156         * lib/unictype/pr_byname.gperf: Add property names without word
11157         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
11158         for 'space'.
11159
11160 2011-03-26  Bruno Haible  <bruno@clisp.org>
11161
11162         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
11163         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
11164         also hyphens to space.
11165         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
11166         without spaces.
11167         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
11168
11169 2011-03-26  Bruno Haible  <bruno@clisp.org>
11170
11171         unictype/joiningtype-byname: Recognize long names as well.
11172         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
11173         a long name.
11174         * lib/unictype/joiningtype_byname.c: Include <string.h>,
11175         unictype/joiningtype_byname.h.
11176         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
11177         * lib/unictype/joiningtype_byname.gperf: New file.
11178         * modules/unictype/joiningtype-byname (Files): Add
11179         lib/unictype/joiningtype_byname.gperf.
11180         (Depends-on): Add gperf.
11181         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
11182         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
11183         long names.
11184
11185         Tests for module 'unictype/joiningtype-longname'.
11186         * modules/unictype/joiningtype-longname-tests: New file.
11187         * tests/unictype/test-joiningtype_longname.c: New file.
11188
11189         New module 'unictype/joiningtype-longname'.
11190         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
11191         * lib/unictype/joiningtype_longname.c: New file.
11192         * modules/unictype/joiningtype-longname: New file.
11193         * modules/unictype/joiningtype-all (Depends-on): Add
11194         unictype/joiningtype-longname.
11195
11196 2011-03-26  Bruno Haible  <bruno@clisp.org>
11197
11198         unictype/bidiclass-byname: Recognize long names as well.
11199         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
11200         name.
11201         * lib/unictype/bidi_byname.c: Include <string.h>,
11202         unictype/bidi_byname.h.
11203         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
11204         * lib/unictype/bidi_byname.gperf: New file.
11205         * modules/unictype/bidiclass-byname (Files): Add
11206         lib/unictype/bidi_byname.gperf.
11207         (Depends-on): Add gperf.
11208         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
11209         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
11210         long names.
11211
11212         Tests for module 'unictype/bidiclass-longname'.
11213         * modules/unictype/bidiclass-longname-tests: New file.
11214         * tests/unictype/test-bidi_longname.c: New file.
11215
11216         New module 'unictype/bidiclass-longname'.
11217         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
11218         * lib/unictype/bidi_longname.c: New file.
11219         * modules/unictype/bidiclass-longname: New file.
11220         * modules/unictype/bidiclass-all (Depends-on): Add
11221         unictype/bidiclass-longname.
11222
11223 2011-03-26  Bruno Haible  <bruno@clisp.org>
11224
11225         unictype/bidi*: Rename modules.
11226         * modules/unictype/bidiclass-all: Renamed from
11227         modules/unictype/bidicategory-all.
11228         * modules/unictype/bidiclass-name: Renamed from
11229         modules/unictype/bidiclass-name.
11230         (Description): Update.
11231         * modules/unictype/bidiclass-name-tests: Renamed from
11232         modules/unictype/bidicategory-name-tests.
11233         * modules/unictype/bidiclass-byname: Renamed from
11234         modules/unictype/bidicategory-byname.
11235         (Description): Update.
11236         * modules/unictype/bidiclass-byname-tests: Renamed from
11237         modules/unictype/bidicategory-byname-tests.
11238         * modules/unictype/bidiclass-of: Renamed from
11239         modules/unictype/bidicategory-of.
11240         (Description): Update.
11241         * modules/unictype/bidiclass-of-tests: Renamed from
11242         modules/unictype/bidicategory-of-tests.
11243         * modules/unictype/bidiclass-test: Renamed from
11244         modules/unictype/bidicategory-test.
11245         (Description): Update.
11246         * modules/unictype/bidiclass-test-tests: Renamed from
11247         modules/unictype/bidicategory-test-tests.
11248         * modules/unictype/bidicategory-all: New file, a simple redirection.
11249         * modules/unictype/bidicategory-name: Likewise.
11250         * modules/unictype/bidicategory-byname: Likewise.
11251         * modules/unictype/bidicategory-of: Likewise.
11252         * modules/unictype/bidicategory-test: Likewise.
11253         * modules/unictype/property-bidi-* (Dependencies): Update.
11254         * lib/unictype/bidi_*.c: Update comment.
11255
11256 2011-03-26  Bruno Haible  <bruno@clisp.org>
11257
11258         unictype/bidi*: Rename functions, part 2.
11259         * modules/unictype/bidicategory-name (configure.ac): Update required
11260         libunistring version.
11261         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
11262
11263 2011-03-25  Bruno Haible  <bruno@clisp.org>
11264
11265         New module 'unictype/combining-class-all'.
11266         * modules/unictype/combining-class-all: New file.
11267
11268         Tests for module 'unictype/combining-class-byname'.
11269         * modules/unictype/combining-class-byname-tests: New file.
11270         * tests/unictype/test-combiningclass_byname.c: New file.
11271
11272         New module 'unictype/combining-class-byname'.
11273         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
11274         * lib/unictype/combiningclass_byname.c: New file.
11275         * lib/unictype/combiningclass_byname.gperf: New file.
11276         * modules/unictype/combining-class-byname: New file.
11277
11278         Tests for module 'unictype/combining-class-longname'.
11279         * modules/unictype/combining-class-longname-tests: New file.
11280         * tests/unictype/test-combiningclass_longname.c: New file.
11281
11282         New module 'unictype/combining-class-longname'.
11283         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
11284         * lib/unictype/combiningclass_longname.c: New file.
11285         * modules/unictype/combining-class-longname: New file.
11286
11287         Tests for module 'unictype/combining-class-name'.
11288         * modules/unictype/combining-class-name-tests: New file.
11289         * tests/unictype/test-combiningclass_name.c: New file.
11290
11291         New module 'unictype/combining-class-name'.
11292         * lib/unictype.in.h (uc_combining_class_name): New declaration.
11293         * lib/unictype/combiningclass_name.c: New file.
11294         * modules/unictype/combining-class-name: New file.
11295
11296 2011-03-25  Bruno Haible  <bruno@clisp.org>
11297
11298         unictype/combining-class: Rename source files.
11299         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
11300         of unictype/combining.h.
11301         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
11302         Update.
11303         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
11304         * modules/unictype/combining-class (Description): Fix.
11305         (Files, Makefile.am): Update.
11306         * tests/unictype/test-combiningclass.c: Renamed from
11307         tests/unictype/test-combining.c.
11308         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
11309
11310 2011-03-25  Bruno Haible  <bruno@clisp.org>
11311
11312         unictype: Update list of canonical combining classes.
11313         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
11314
11315 2011-03-25  Bruno Haible  <bruno@clisp.org>
11316
11317         unictype/category-byname: Recognize long names as well.
11318         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
11319         a long name.
11320         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
11321         unictype/categ_byname.h.
11322         (UC_CATEGORY_INDEX_*): New enumeration values.
11323         (uc_general_category_byname): Use uc_general_category_lookup and
11324         convert from index to value.
11325         * lib/unictype/categ_byname.gperf: New file.
11326         * modules/unictype/category-byname (Files): Add
11327         lib/unictype/categ_byname.gperf.
11328         (Depends-on): Add gperf.
11329         (Makefile.am): Add rule for generating unictype/categ_byname.h.
11330         * tests/unictype/test-categ_byname.c (main): Test the recognition of
11331         long names.
11332
11333         Tests for module 'unictype/category-longname'.
11334         * modules/unictype/category-longname-tests: New file.
11335         * tests/unictype/test-categ_longname.c: New file.
11336
11337         New module 'unictype/category-longname'.
11338         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
11339         * lib/unictype/categ_longname.c: New file.
11340         * modules/unictype/category-longname: New file.
11341         * modules/unictype/category-all (Depends-on): Add it.
11342
11343 2011-03-25  Bruno Haible  <bruno@clisp.org>
11344
11345         Tests for module 'unictype/category-LC'.
11346         * modules/unictype/category-LC-tests: New file.
11347         * tests/unictype/test-categ_LC.c: New file, automatically generated.
11348
11349         New module 'unictype/category-LC'.
11350         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
11351         (UC_CATEGORY_LC): New declaration.
11352         (UC_CASED_LETTER): New macro.
11353         * lib/gen-uni-tables.c (is_category_LC): New function.
11354         (output_categories): Also handle category LC.
11355         (UC_CATEGORY_MASK_LC): New enumeration value.
11356         (general_category_byname): Also handle category LC.
11357         * lib/unictype/categ_LC.c: New file.
11358         * lib/unictype/categ_LC.h: New file, automatically generated.
11359         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
11360         category LC.
11361         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
11362         * modules/unictype/category-LC: New file.
11363         * modules/unictype/category-byname (Depends-on): Add
11364         unictype/category-LC.
11365         * modules/unictype/category-all (Depends-on): Likewise.
11366
11367 2011-03-25  Eric Blake  <eblake@redhat.com>
11368
11369         xmalloc: revert yesterday's regression
11370         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
11371         realloc's underlying behavior (allowing allocation of zero-size
11372         objects, especially if malloc-gnu is also in use).
11373
11374 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
11375
11376         maint.mk: add missing version to VC-tag
11377         * top/maint.mk: git tag was missing actual tag name; add it.
11378
11379         valgrind: do leak checking, and exit with code 1 on error (not 0)
11380         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
11381         to VALGRIND.
11382
11383 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
11384
11385         posix-modules: say what it does.
11386         * posix-modules: Add a line to the --help output saying what it does.
11387
11388 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
11389
11390         xmalloc: Do not leak if underlying realloc is C99 compatible.
11391         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
11392         This avoids a leak on C99-based systems.  See
11393         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
11394
11395 2011-03-24  Eric Blake  <eblake@redhat.com>
11396
11397         realloc: document portability problem
11398         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
11399         passing 0 size to realloc.
11400
11401 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
11402
11403         doc: update users.txt
11404         * users.txt: Add cvsps, tmpwatch
11405
11406 2011-03-23  Matt Rice  <ratmice@gmail.com>
11407
11408         doc: update users.txt
11409         * users.txt: Add gdb.
11410
11411 2011-03-23  Jim Meyering  <meyering@redhat.com>
11412
11413         doc: update users.txt
11414         Looking through matches up to the following URL (there are still
11415         several more pages), I found several projects that use gnulib:
11416         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
11417         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
11418         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
11419
11420 2011-03-22  Bruno Haible  <bruno@clisp.org>
11421
11422         unictype/bidi*: Rename functions.
11423         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
11424         uc_bidi_class, uc_is_bidi_class): New declarations.
11425         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
11426         uc_bidi_category_byname.
11427         (uc_bidi_category_byname): New function.
11428         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
11429         u_bidi_category_name.
11430         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
11431         (uc_bidi_category_name): New function.
11432         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
11433         uc_bidi_category.
11434         (uc_bidi_category): New function.
11435         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
11436         uc_is_bidi_category. Invoke uc_bidi_class.
11437         (uc_is_bidi_category): New function.
11438         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
11439         instead of uc_bidi_category_byname.
11440         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
11441         instead of uc_bidi_category_name.
11442         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
11443         uc_bidi_category.
11444         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
11445         instead of uc_is_bidi_category.
11446
11447 2011-03-21  Bruno Haible  <bruno@clisp.org>
11448
11449         New module 'unictype/joininggroup-all'.
11450         * modules/unictype/joininggroup-all: New file.
11451
11452         Tests for module 'unictype/joininggroup-of'.
11453         * modules/unictype/joininggroup-of-tests: New file.
11454         * tests/unictype/test-joininggroup_of.c: New file.
11455         * tests/unictype/test-joininggroup_of.h: New file, automatically
11456         generated by gen-uni-tables.
11457
11458         New module 'unictype/joininggroup-of'.
11459         * modules/unictype/joininggroup-of: New file.
11460         * lib/unictype/joininggroup_of.c: New file.
11461         * lib/unictype/joininggroup_of.h: New file, automatically generated by
11462         gen-uni-tables.
11463
11464         Tests for module 'unictype/joininggroup-byname'.
11465         * modules/unictype/joininggroup-byname-tests: New file.
11466         * tests/unictype/test-joininggroup_byname.c: New file.
11467
11468         New module 'unictype/joininggroup-byname'.
11469         * modules/unictype/joininggroup-byname: New file.
11470         * lib/unictype/joininggroup_byname.c: New file.
11471         * lib/unictype/joininggroup_byname.gperf: New file.
11472
11473         Tests for module 'unictype/joininggroup-name'.
11474         * modules/unictype/joininggroup-name-tests: New file.
11475         * tests/unictype/test-joininggroup_name.c: New file.
11476
11477         New module 'unictype/joininggroup-name'.
11478         * modules/unictype/joininggroup-name: New file.
11479         * lib/unictype/joininggroup_name.c: New file.
11480         * lib/unictype/joininggroup_name.h: New file.
11481
11482         New module 'unictype/joiningtype-all'.
11483         * modules/unictype/joiningtype-all: New file.
11484
11485         Tests for module 'unictype/joiningtype-of'.
11486         * modules/unictype/joiningtype-of-tests: New file.
11487         * tests/unictype/test-joiningtype_of.c: New file.
11488         * tests/unictype/test-joiningtype_of.h: New file, automatically
11489         generated by gen-uni-tables.
11490
11491         New module 'unictype/joiningtype-of'.
11492         * modules/unictype/joiningtype-of: New file.
11493         * lib/unictype/joiningtype_of.c: New file.
11494         * lib/unictype/joiningtype_of.h: New file, automatically generated by
11495         gen-uni-tables.
11496
11497         Tests for module 'unictype/joiningtype-byname'.
11498         * modules/unictype/joiningtype-byname-tests: New file.
11499         * tests/unictype/test-joiningtype_byname.c: New file.
11500
11501         New module 'unictype/joiningtype-byname'.
11502         * modules/unictype/joiningtype-byname: New file.
11503         * lib/unictype/joiningtype_byname.c: New file.
11504
11505         Tests for module 'unictype/joiningtype-name'.
11506         * modules/unictype/joiningtype-name-tests: New file.
11507         * tests/unictype/test-joiningtype_name.c: New file.
11508
11509         New module 'unictype/joiningtype-name'.
11510         * modules/unictype/joiningtype-name: New file.
11511         * lib/unictype/joiningtype_name.c: New file.
11512
11513         unictype: Add support for Arabic shaping properties.
11514         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
11515         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
11516         declarations.
11517         (UC_JOINING_GROUP_*): New enumeration values.
11518         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
11519         declarations.
11520         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
11521         (unicode_joining_type): New variable.
11522         (UC_JOINING_GROUP_*): New enumeration values.
11523         (unicode_joining_group): New variable.
11524         (fill_arabicshaping, joining_type_as_c_identifier,
11525         output_joining_type_test, output_joining_type,
11526         joining_group_as_c_identifier, output_joining_group_test,
11527         output_joining_group): New functions.
11528         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
11529         fill_arabicshaping and output_joining_type_test, output_joining_type,
11530         output_joining_group_test, output_joining_group.
11531         Reported by Simon Josefsson.
11532
11533 2011-03-21  Jim Meyering  <meyering@redhat.com>
11534
11535         strftime: fix a bug in yesterday's change
11536         * lib/strftime.c (add): Accommodate width's initial value of -1.
11537         Otherwise, nstrftime would copy uninitialized data into
11538         the result buffer.
11539
11540 2011-03-21  Jim Meyering  <meyering@redhat.com>
11541
11542         tests: add strftime-tests module
11543         * tests/test-strftime.c: New file.
11544         * modules/strftime-tests: New module.
11545
11546 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
11547
11548         strftime: don't assume a byte count fits in 'int'
11549         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
11550         found this problem by static analysis, using gcc -Wstrict-overflow
11551         (GCC 4.5.2, x86-64).  This reported an optimization that depended
11552         on an integer overflow having undefined behavior, but it turns out
11553         that the argument is a size, which might not fit in 'int' anyway,
11554
11555 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
11556
11557         stdio: don't require ignore_value around fwrite
11558
11559         This patch works around libc bug 11959
11560         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
11561         Without this patch, applications must often write
11562         ignore_value (fwrite (...)) even though the ignore_value is
11563         not helpful here.  It's common to write many objects, using
11564         fwrite/printf/etc., and then use ferror to detect output error.
11565
11566         I considered making this patch optional, but decided against it,
11567         because libc is obviously being inconsistent here: there is no
11568         reason libc should insist that user code must inspect fwrite
11569         return's value without also insisting that it inspect printf's,
11570         putchar's, etc.  If user code wants to have a strict style where
11571         all these functions' values are checked (so that ferror need not
11572         be checked), we could add support for that style in a new gnulib
11573         module, but in the meantime it's better to be consistent and to
11574         support common usage.
11575
11576         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
11577         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
11578         that we are compiling in checking mode, and if not C++, and
11579         if not already wrapping fwrite for some other reason.
11580         (fwrite): #define to rpl_fwrite if the latter is defined.
11581
11582 2011-03-20  Bruno Haible  <bruno@clisp.org>
11583
11584         verror: Fix compilation error introduced on 2011-02-13.
11585         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
11586         instead of __attribute__.
11587         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11588
11589 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
11590             Bruno Haible  <bruno@clisp.org>
11591
11592         socklen: do not depend on sys_socket
11593         While trying to modify Emacs to use gnulib's socklen module,
11594         I discovered a circular dependency: socklen depends on sys_socket
11595         and vice versa.  Emacs can use socklen, but it does not need
11596         sys_socket because it has its own substitute for sys/socket.h.
11597         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
11598         gl_TYPE_SOCKLEN_T.
11599         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
11600         gl_PREREQ_SYS_H_SOCKET.
11601         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
11602         gl_PREREQ_SYS_H_SOCKET.
11603         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
11604         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
11605         * modules/socklen (Depends-on): Do not depend on sys_socket.
11606         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
11607
11608 2011-03-20  Jim Meyering  <meyering@redhat.com>
11609
11610         maint.mk: sort file names *after* new transformation
11611         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
11612         prefix would have led to an unwarranted failure in GNU parted.
11613         Sort after that transformation.
11614
11615 2011-03-19  Jim Meyering  <meyering@redhat.com>
11616
11617         maint.mk: fix po-file syntax-check rule
11618         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
11619         Patch by Bruno Haible.
11620
11621 2011-03-19  Bruno Haible  <bruno@clisp.org>
11622
11623         socklen: Update comment.
11624         * m4/socklen.m4: Update comment about platforms.
11625
11626 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11627             Bruno Haible  <bruno@clisp.org>
11628
11629         inet_ntop, inet_pton: Simplify.
11630         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
11631         documented to provide socklen_t and we already depend on sys_socket.
11632         * modules/inet_pton (Depends-on): Likewise.
11633         * lib/arpa_inet.in.h: Adjust comment.
11634
11635 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11636             Bruno Haible  <bruno@clisp.org>
11637
11638         netdb: Simplify.
11639         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
11640         documented to provide socklen_t and we already depend on sys_socket.
11641         * lib/netdb.in.h: Adjust comment.
11642
11643 2011-03-19  Bruno Haible  <bruno@clisp.org>
11644
11645         sys_socket, netdb: Document problem with socklen_t.
11646         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
11647         platforms.
11648         * doc/posix-headers/netdb.texi: Likewise.
11649
11650 2011-03-18  Eric Blake  <eblake@redhat.com>
11651
11652         maint.mk: let po check work in VPATH build
11653         * top/maint.mk (po_file): Allow cfg.mk override.
11654         (sc_po_check): Allow VPATH use.
11655         Reported by Jiri Denemark.
11656
11657 2011-03-16  Jim Meyering  <meyering@redhat.com>
11658
11659         maint.mk: allow fine-grained syntax-check exclusion via Make variables
11660         Before, you would have had to create one .x-sc_ file per rule in order
11661         to exempt offending files.  Now, you may instead use a Make variable --
11662         usually defined in cfg.mk -- whose name identifies the affected rule.
11663         * top/maint.mk (_sc_excl): Define.
11664         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
11665         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
11666
11667 2011-03-13  Bruno Haible  <bruno@clisp.org>
11668
11669         ignore-value tests: Avoid warnings.
11670         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
11671         empty for gcc < 3.4.
11672
11673 2011-03-13  Bruno Haible  <bruno@clisp.org>
11674
11675         passfd: Fix link error on Solaris.
11676         * modules/passfd (Description): Correct.
11677         (Depends-on): Add socketlib.
11678         (Link): New section.
11679         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
11680
11681 2011-03-13  Bruno Haible  <bruno@clisp.org>
11682
11683         passfd: Fix link error on AIX 5.2.
11684         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
11685
11686 2011-03-13  Bruno Haible  <bruno@clisp.org>
11687
11688         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
11689         * lib/sys_socket.in.h: Include <stddef.h>.
11690         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
11691         CMSG_FIRSTHDR. Remove unused variable.
11692
11693 2011-03-13  Bruno Haible  <bruno@clisp.org>
11694
11695         passfd: Fix compilation error on OpenBSD.
11696         * lib/passfd.c: Include <sys/uio.h>.
11697
11698 2011-03-13  Bruno Haible  <bruno@clisp.org>
11699
11700         passfd test: Fix warnings.
11701         * tests/test-passfd.c: Include <sys/wait.h>.
11702         (main): Fix typo.
11703
11704 2011-03-13  Bruno Haible  <bruno@clisp.org>
11705
11706         passfd module, part 4, tweaks.
11707         * tests/test-passfd.c: Reorder includes.
11708         (main): Fix perror and printf calls.
11709
11710 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
11711
11712         passfd module, part 4.
11713         * modules/passfd-tests: New file.
11714         * tests/test-passfd.c: New file.
11715
11716 2011-03-13  Jim Meyering  <meyering@redhat.com>
11717
11718         Makefile: rely on GNU make; derive syntax-check rule names
11719         Rather than requiring that each sc_ rule be listed as a dependent
11720         of "check", use features of GNU make to derive the list.
11721         * Makefile (syntax-check-rules): Define.
11722         (check): Depend on the new variable, not the hard-coded list.
11723
11724 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
11725             Bruno Haible  <bruno@clisp.org>
11726
11727         passfd module, part 3.
11728         * lib/passfd.h (recvfd): Add a flags argument.
11729         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
11730         (recvfd): Add a flags argument.
11731         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
11732         exists.
11733         * modules/passfd (Depends-on): Add cloexec.
11734         Suggested by Eric Blake.
11735
11736 2011-03-13  Bruno Haible  <bruno@clisp.org>
11737
11738         passfd module, part 2, tweaks.
11739         * modules/passfd (Files): Reorder.
11740         (Depends-on): Remove errno.
11741         (Include): Remove <sys/socket.h>, <sys/un.h>.
11742         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
11743         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
11744         specification header. Include <sys/socket.h> always. Don't include
11745         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
11746         (sendfd): Clarify that it sets errno when it fails.
11747         (recvfd): Fix specification.
11748
11749 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
11750
11751         passfd module, part 2.
11752         * modules/passfd: New file.
11753         * lib/passfd.h: New file.
11754         * lib/passfd.c: New file.
11755
11756 2011-03-12  Bruno Haible  <bruno@clisp.org>
11757
11758         wcswidth, mbswidth: Avoid integer overflow.
11759         * lib/wcswidth.c: Include <limits.h>.
11760         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
11761         * lib/mbswidth.c: Include <limits.h>.
11762         (mbsnwidth): Avoid 'int' overflow.
11763         Reported by Jim Meyering.
11764
11765 2011-03-12  Bruno Haible  <bruno@clisp.org>
11766
11767         futimens, utimensat: Avoid endless recursion on Solaris 10.
11768         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
11769         Solaris.
11770         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
11771         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
11772
11773 2011-03-11  Jim Meyering  <meyering@redhat.com>
11774
11775         maint.mk: relax a regexp to accommodate other formatting styles
11776         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
11777         between "ngettext" and the following "(".
11778
11779 2011-03-11  Pádraig Brady <P@draigBrady.com>
11780
11781         maint.mk: suppress a false positive warning
11782         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
11783         diagnostics are marked with ngettext.
11784
11785 2011-03-10  Eric Blake  <eblake@redhat.com>
11786
11787         wchar: add explicit dependencies, for Tru64
11788         * modules/mbmemcasecoll (Depends-on): Add wchar.
11789         * modules/mbtowc (Depends-on): Likewise.
11790         * modules/vasnprintf (Depends-on): Likewise.
11791         * modules/unistdio/u-printf-args (Depends-on): Likewise.
11792         * modules/wctomb (Depends-on): Likewise.
11793         Reported by Peter O'Gorman.
11794
11795 2011-03-08  Bruno Haible  <bruno@clisp.org>
11796
11797         passfd module, part 1, tweaks.
11798         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
11799         Improve indentation. Improve AC_MSG_CHECKING messages.
11800         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
11801         gl_SOCKET_FAMILIES.
11802
11803 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
11804
11805         passfd module, part 1.
11806         * m4/afunix.m4: New file.
11807         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
11808         sockets.
11809
11810 2011-03-08  Bruno Haible  <bruno@clisp.org>
11811
11812         regex-quote: New API.
11813         * lib/regex-quote.h: Include <stdbool.h>.
11814         (struct regex_quote_spec): New type.
11815         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
11816         New declarations.
11817         (regex_quote_length, regex_quote_copy, regex_quote): Take a
11818         'const struct regex_quote_spec *' argument.
11819         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
11820         (pcre_special): New constant.
11821         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
11822         New functions.
11823         (regex_quote_length, regex_quote_copy, regex_quote): Take a
11824         'const struct regex_quote_spec *' argument.
11825         * modules/regex-quote (Depends-on): Add stdbool.
11826         * tests/test-regex-quote.c (check): Update for new API. Add test for
11827         anchored results.
11828         * NEWS: Mention the API change.
11829         Reported by Reuben Thomas and Eric Blake.
11830
11831 2011-03-06  Bruno Haible  <bruno@clisp.org>
11832
11833         regex-quote: Fix creation of POSIX extended regular expressions.
11834         * lib/regex-quote.c (ere_special): Add grouping and alternation
11835         operators.
11836
11837 2011-03-05  Bruno Haible  <bruno@clisp.org>
11838
11839         doc: Improve doc regarding autopoint vs. gnulib.
11840         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
11841         disable autopoint while running autoreconf.
11842         Suggested by Ralf Wildenhues.
11843
11844 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11845
11846         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
11847         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
11848
11849 2011-03-03  Bruce Korb  <bkorb@gnu.org>
11850
11851         parse-duration: remove xalloc.h dependency
11852         * lib/parse-duration.c (parse_period): handle NULL return from
11853         strdup instead of calling xstrdup().
11854         * modules/parse-duration: remove "xalloc" dependency
11855
11856 2011-03-03  Matthew Booth  <mbooth@redhat.com>
11857
11858         bootstrap: honor m4_base when running aclocal
11859         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
11860
11861 2011-03-02  Jim Meyering  <meyering@redhat.com>
11862
11863         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
11864         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
11865         on request from Matt Booth.
11866
11867 2011-03-01  Eric Blake  <eblake@redhat.com>
11868
11869         test-link: work on Hurd
11870         * tests/test-link.h (test_link): Hurd rejects linking directories
11871         with EISDIR instead of the POSIX-mandated EPERM.
11872
11873 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
11874
11875         stdio: simplify by moving files to printf-posix, sigpipe
11876         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
11877         since this symbol is needed only if printf is replaced.
11878         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
11879         Require gl_ASM_SYMBOL_PREFIX.
11880         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
11881         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
11882         (Depends-on): Add 'raise'.
11883         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
11884         * modules/stdio (Files): Remove lib/stdio-write.c,
11885         m4/asm-underscore.m4.
11886         (Depends-on): Remove 'raise'.
11887
11888         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
11889         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
11890         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
11891         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
11892
11893 2011-02-28  Bruno Haible  <bruno@clisp.org>
11894
11895         localcharset: Assume ANSI C behaviour of free().
11896         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
11897         calling free().
11898         Suggested by Simon Josefsson <simon@josefsson.org>.
11899
11900 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
11901             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
11902             Bruno Haible  <bruno@clisp.org>  (tiny change)
11903
11904         On Cygwin, use /proc file system instead of win32 API.
11905         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
11906         Win32 file names.
11907         (DllMain): Simplify by removing Cygwin specific code.
11908         (find_shared_library_fullname): Use Linux specific implementation also
11909         for Cygwin.
11910         (get_shared_library_fullname): Update accordingly.
11911         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
11912         Win32 file names.
11913         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
11914         Cygwin specific code.
11915
11916 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
11917             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
11918
11919         Fix OpenMP flag detection for various Fortran compilers.
11920         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
11921         OpenMP-conditional compilation construct, to force compile
11922         failure with missing OpenMP flag.
11923         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
11924
11925 2011-02-25  Eric Blake  <eblake@redhat.com>
11926
11927         strstr: expand test coverage
11928         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
11929         compilation.
11930         * tests/test-memmem.c (main): Duplicate tests.
11931         * tests/test-strcasestr.c (main): Likewise.
11932         * tests/test-c-strcasestr.c (main): Likewise.
11933
11934 2011-02-25  Jim Meyering  <meyering@redhat.com>
11935
11936         maint.mk: detect missing-NL-at-EOF, too
11937         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
11938         it also detects when a file lacks a newline at EOF.
11939         (require_exactly_one_NL_at_EOF_): Renamed from
11940         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
11941         since people may well have .x-sc_... file names tied to the
11942         existing name.  Suggested by Eric Blake.
11943
11944 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
11945
11946         dirname: move m4/dos.m4 functionality into lib/dosname.h
11947
11948         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
11949         extracts symbols from it, puts them into config.h; but it's much
11950         easier to use the symbols directly.  filename.h already does this,
11951         but it disagrees with dos.m4 in some respects.  This patch
11952         introduces a different include file dosname.h that packages up
11953         dos.m4, and then later we can work on merging filename.h and
11954         dosname.h.  Applications that need only the easy-to-configure
11955         symbols should consider including dosname.h rather than dirname.h.
11956         * NEWS: Mention incompatible changes.
11957         * m4/dos.m4: Remove.
11958         * lib/dosname.h, modules/dosname: New files.
11959         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
11960         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
11961         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
11962         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
11963         Include dosname.h, not dirname.h.
11964         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
11965         Include dosname.h, for definitions of symbols like ISSLASH
11966         that used to be in config.h.
11967         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
11968         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
11969         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
11970         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
11971         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
11972         * modules/rmdir (Files): Likewise.
11973         * modules/stat (Files): Likewise.
11974         * modules/unlink (Files): Likewise.
11975         * modules/dirname-lgpl (Depends-on): Add dosname.
11976         * modules/lstat (Depends-on): Likewise.
11977         * modules/openat (Depends-on): Likewise.
11978         * modules/rmdir (Depends-on): Likewise.
11979         * modules/savewd (Depends-on): Likewise.
11980         * modules/stat (Depends-on): Likewise.
11981         * modules/unlink (Depends-on): Likewise.
11982         * modules/openat (Depends-on): Remove dirname-lgpl.
11983         * modules/savewd (Depends-on): Likewise.
11984         * tests/test-dirname.c: Do not use removed symbols like
11985         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
11986         the remaining symbols, e.g., ISSLASH ('\\').
11987
11988 2011-02-25  Eric Blake  <eblake@redhat.com>
11989
11990         strstr: revert patches that introduced bug and pessimization
11991         * lib/str-two-way.h: Add another reference.
11992         (two_way_short_needle, two_way_long_needle): Revert changes from
11993         2011-02-24; they pessimize search speed.
11994         (critical_factorization): Partially revert changes from
11995         2010-06-22; they violate the requirement that the left half of the
11996         needle be smaller than the period of the needle.
11997
11998 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
11999
12000         filenamecat: remove unnecessary dependency on dirname-lgpl
12001         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
12002         is no direct dependency, just an indirect one via filenamecat-lgpl.
12003
12004         remove: remove unnecessary use of m4/dos.m4
12005         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
12006         * modules/remove (FILES): Remove m4/dos.m4.
12007
12008         * lib/openat-proc.c: Don't include dirname.h; not needed.
12009
12010         backupfile: remove unnecessary use of m4/dos.m4
12011         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
12012         of its symbols are used by the backupfile code.  backupfile.c does
12013         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
12014         for the rare case of programs that want all their backup file
12015         names to live within 8+3 limits, and dos.m4 doesn't address that.
12016         * modules/backupfile (Files): Remove m4/dos.m4.
12017
12018 2011-02-24  Jim Meyering  <meyering@redhat.com>
12019
12020         strstr: fix a bug whereby strstr would mistakenly return NULL
12021         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
12022         in period calculation.
12023         (two_way_long_needle): Likewise.
12024         The original problem was reported by Mike Stump in
12025         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
12026         Ralf Wildenhues provided the short needle and haystack.
12027         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
12028         Add a more involved test to trigger the bug in two_way_long_needle.
12029
12030 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
12031
12032         gnulib-tool: remove use of bold display in help screen
12033         * gnulib-tool (func_usage): Do not use bold display anymore in the
12034         help screen.  That was just meant to be a temporary emphasis for a
12035         backward-incompatible change.
12036
12037 2011-02-23  Bruno Haible  <bruno@clisp.org>
12038
12039         Fix misindentation of preprocessor directives.
12040         * lib/argp-namefrob.h: Reindent preprocessor directives.
12041         * lib/getopt_int.h (struct _getopt_data): Likewise.
12042         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
12043         * lib/vasnprintf.c (decode_long_double): Likewise.
12044         * tests/test-argmatch.c: Insert blank lines, for clarity.
12045         * tests/test-exclude.c: Likewise.
12046
12047 2011-02-22  Bruno Haible  <bruno@clisp.org>
12048
12049         ioctl: Fix for MacOS X in 64-bit mode.
12050         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
12051         value.
12052         Suggested by Eric Blake.
12053         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
12054
12055 2011-02-22  Jim Meyering  <meyering@redhat.com>
12056
12057         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
12058         * Makefile (sc_cpp_indent_check): Don't limit the check to files
12059         in lib/.
12060
12061 2011-02-22  Eric Blake  <eblake@redhat.com>
12062
12063         maint: avoid any CDPATH issue
12064         * Makefile (sc_cpp_indent_check): Anchor cd argument.
12065
12066         maint: adjust cpp indentation for my modules, as well
12067         * Makefile (sc_cpp_indent_check): Add my name.
12068         * lib/fbufmode.c: Filter through cppi.
12069         * lib/fpurge.c: Likewise.
12070         * lib/freadable.c: Likewise.
12071         * lib/freading.c: Likewise.
12072         * lib/fwritable.c: Likewise.
12073         * lib/fwriting.c: Likewise.
12074         * lib/sigaction.c: Likewise.
12075
12076 2011-02-22  Jim Meyering  <meyering@redhat.com>
12077
12078         maint: adjust cpp indentation to reflect nesting depth
12079         I.e., in a block of code that begins with an unnested "#if",
12080         put one space between the "#" in column 1 and following token.
12081         For example,
12082         -#include <sys/vfs.h>
12083         +# include <sys/vfs.h>
12084         Do this only in .c files that are part of a module I maintain.
12085         * lib/linkat.c: Filter through cppi.
12086         * lib/nanosleep.c: Likewise.
12087         * lib/openat.c: Likewise.
12088         * lib/openat-die.c: Likewise.
12089         * lib/dup3.c: Likewise.
12090         * lib/fchownat.c: Likewise.
12091         * lib/flock.c: Likewise.
12092         * lib/fsync.c: Likewise.
12093         * lib/fts.c: Likewise.
12094         * lib/getpass.c: Likewise.
12095         * lib/gettimeofday.c: Likewise.
12096         * lib/userspec.c: Likewise.
12097         * Makefile (sc_cpp_indent_check): New rule, to check this.
12098
12099 2011-02-22  Bruno Haible  <bruno@clisp.org>
12100
12101         New module 'wctomb'.
12102         * lib/stdlib.in.h (wctomb): New declaration.
12103         * lib/wctomb.c: New file.
12104         * lib/wctomb-impl.h: New file.
12105         * m4/wctomb.m4: New file.
12106         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
12107         REPLACE_WCTOMB.
12108         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
12109         REPLACE_WCTOMB.
12110         * modules/wctomb: New file.
12111         * tests/test-stdlib-c++.cc: Test signature of wctomb.
12112         * doc/posix-functions/wctomb.texi: Mention the new module.
12113         * modules/wctob (Depends-on): Add wctomb.
12114
12115 2011-02-22  Bruno Haible  <bruno@clisp.org>
12116
12117         New module 'mbtowc'.
12118         * lib/stdlib.in.h (mbtowc): New declaration.
12119         * lib/mbtowc.c: New file.
12120         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
12121         * m4/mbtowc.m4: New file.
12122         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
12123         REPLACE_MBTOWC.
12124         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
12125         REPLACE_MBTOWC.
12126         * modules/mbtowc: New file.
12127         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
12128         * doc/posix-functions/mbtowc.texi: Mention the new module.
12129         * modules/btowc (Depends-on): Add mbtowc.
12130
12131 2011-02-22  Bruno Haible  <bruno@clisp.org>
12132
12133         wcrtomb: Add more tests for native Windows platforms.
12134         * tests/test-wcrtomb-w32-1.sh: New file.
12135         * tests/test-wcrtomb-w32-2.sh: New file.
12136         * tests/test-wcrtomb-w32-3.sh: New file.
12137         * tests/test-wcrtomb-w32-4.sh: New file.
12138         * tests/test-wcrtomb-w32-5.sh: New file.
12139         * tests/test-wcrtomb-w32.c: New file.
12140         * modules/wcrtomb-tests (Files): Add them.
12141         (Makefile.am): Arrange to run these tests.
12142         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
12143         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
12144
12145 2011-02-20  Bruno Haible  <bruno@clisp.org>
12146
12147         wcrtomb: Enhance test.
12148         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
12149
12150 2011-02-20  Bruno Haible  <bruno@clisp.org>
12151
12152         mbrtowc: Tiny optimization.
12153         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
12154
12155 2011-02-20  Jim Meyering  <meyering@redhat.com>
12156
12157         test-exclude.c: remove unmatched #endif
12158         * tests/test-exclude.c: Remove stray #endif, left over from
12159         the change of a week ago.
12160
12161 2011-02-19  Jim Meyering  <meyering@redhat.com>
12162
12163         git-version-gen: skip "-dirty" check when appropriate
12164         * build-aux/git-version-gen: Don't run any git commands when the
12165         version string comes from .tarball-version.  Prior to this, we
12166         would run git update-index --refresh even from a just-unpacked
12167         tarball directory, and that could affect a .git/ directory in a
12168         parent of the build directory.  Reported by Mike Frysinger.
12169
12170 2011-02-19  Bruno Haible  <bruno@clisp.org>
12171
12172         unictype/property-byname: Reduce the size of the 'data' segment.
12173         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
12174
12175 2011-02-19  Bruno Haible  <bruno@clisp.org>
12176
12177         unictype/scripts: Reduce the size of the 'data' segment.
12178         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
12179         '%pic'.
12180         * lib/unictype/scripts_byname.gperf: Regenerated.
12181
12182 2011-02-19  Bruno Haible  <bruno@clisp.org>
12183
12184         stdint: Update documentation.
12185         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
12186
12187 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
12188
12189         stdint: omit redundant check for wchar.h
12190         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
12191         always tests whether wchar.h exists, so remove the now-redundant test.
12192
12193 2011-02-18  Bruno Haible  <bruno@clisp.org>
12194
12195         stdint: Cut dependency to module 'wchar'.
12196         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
12197         include the necessary prerequisites.
12198         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
12199         * modules/stdint (Depends-on): Remove wchar.
12200         (Makefile.am): Substitute HAVE_WCHAR_H.
12201         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
12202
12203 2011-02-18  Eric Blake  <eblake@redhat.com>
12204
12205         longlong: skip, rather than fail, on cross-compilation
12206         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
12207         when cross-compiling; regression from 2011-02-16.
12208
12209 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
12210
12211         * NEWS: Mention 2011-02-08 change to stdlib.
12212
12213 2011-02-17  Bruno Haible  <bruno@clisp.org>
12214
12215         getloadavg: Add comments about platforms.
12216         * m4/getloadavg.m4: Add comment.
12217         * lib/getloadavg.c: Likewise.
12218
12219 2011-02-17  Bruno Haible  <bruno@clisp.org>
12220
12221         getloadavg: Fix link error on Solaris 2.6.
12222         * modules/getloadavg (Link): New section.
12223         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
12224         linking test-getloadavg.
12225         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
12226         getloadavg.
12227
12228 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
12229
12230         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
12231         It was 'int', but this doesn't match the IRIX 6.5 manual.
12232         Suggested by Bruno Haible in
12233         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
12234
12235 2011-02-17  Bruno Haible  <bruno@clisp.org>
12236
12237         havelib: Fix comments.
12238         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
12239         change.
12240
12241 2011-02-17  Bruno Haible  <bruno@clisp.org>
12242
12243         havelib: Update config.rpath.
12244         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
12245
12246 2011-02-17  Bruno Haible  <bruno@clisp.org>
12247
12248         getloadavg test: Add some plausibility checks.
12249         * tests/test-getloadavg.c (check_avg): Print a warning when the value
12250         is improbable.
12251
12252 2011-02-16  Eric Blake  <eblake@redhat.com>
12253
12254         maintainer-makefile: make syntax-check a no-op from tarballs
12255         * top/maint.mk (no-vc-detected): New rule.
12256         (local-checks-available): Use it to avoid hanging if someone tries
12257         'make syntax-check' from a tarball.  Also append to any non-syntax
12258         checks already defined in cfg.mk.
12259
12260 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
12261
12262         longlong: tune, particularly for common case of c99
12263
12264         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
12265         or running anything if c99, or if unsigned long long int does not
12266         work.  In either case, we know the answer without further tests.
12267         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
12268         it at most once, and use its results for both long long int and
12269         unsigned long long int.  This is more likely to be efficient in
12270         the common case where the program wants to check for both long
12271         long int and unsigned long long int.
12272         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
12273         since the answer is already known.
12274
12275 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
12276
12277         getloadavg: set errno
12278         * lib/getloadavg.c: Set errno when returning -1.  If no other
12279         error number looks appropriate, set it to ENOSYS if the getloadavg
12280         looks like it can't possibly ever work, ENOTSUP otherwise.
12281         Suggested by Bruno Haible in
12282         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
12283
12284         getloadavg: trim unused parts and speed up 'configure'
12285         * NEWS: Document this.
12286         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
12287         always compiled if getloadavg is absent.
12288         Move test code to ...
12289         * tests/test-getloadavg.c: New file, containing previous
12290         contents of test from lib/getloadavg.c.  It also contains
12291         suggestions by Bruno Haible in
12292         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
12293         * modules/getloadavg-tests: New file.
12294         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
12295         Do tests in the same order as they're needed for getloadavg.c.
12296         Omit setgid-related tests that generate symbols KMEM_GROUP,
12297         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
12298         Do only the tests that are needed to see whether the system has
12299         getloadavg, moving the other tests into ...
12300         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
12301         NLIST_NAME_UNION; nobody should be using it.  Do not define
12302         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
12303         relevant, as the user of this module shouldn't care how getloadavg
12304         is implemented.
12305
12306         getloadavg: omit unused var
12307         * lib/getloadavg.c (getloadavg): Omit unused local variable.
12308
12309 2011-02-15  Jim Meyering  <meyering@redhat.com>
12310
12311         doc: update users.txt
12312         * users.txt: Update iwhd's URL.
12313
12314 2011-02-13  Bruno Haible  <bruno@clisp.org>
12315
12316         Consistent macro naming for macros that use GCC __attribute__.
12317         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
12318         _ATTRIBUTE_NONNULL_.
12319         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
12320         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
12321         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
12322         ATTRIBUTE_DEPRECATED.
12323         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
12324         ATTRIBUTE_NORETURN.
12325         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12326         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12327         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12328         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
12329         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
12330         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
12331         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
12332         ATTRIBUTE_SENTINEL.
12333         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
12334         ATTRIBUTE_RETURN_CHECK.
12335         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
12336         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
12337         ATTRIBUTE_NORETURN.
12338         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
12339         Reported by Paul Eggert.
12340
12341 2011-02-13  Bruno Haible  <bruno@clisp.org>
12342
12343         Don't interfere with a program's definition of __attribute__.
12344         * lib/argp.h (__attribute__): Remove definition.
12345         (_GL_ATTRIBUTE_FORMAT): New macro.
12346         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
12347         * lib/argp-fmtstream.h (__attribute__): Remove definition.
12348         (_GL_ATTRIBUTE_FORMAT): New macro.
12349         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
12350         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
12351         GCC 3 or newer.
12352         * lib/error.h (__attribute__): Remove definition.
12353         (_GL_ATTRIBUTE_FORMAT): New macro.
12354         (error, error_at_line): Use it.
12355         * lib/hash.h (__attribute__): Remove definition.
12356         (ATTRIBUTE_WUR): Update definition. Define always.
12357         * lib/openat.h (__attribute__): Remove definition.
12358         (ATTRIBUTE_NORETURN): Update definition. Define always.
12359         * lib/sigpipe-die.h (__attribute__): Remove definition.
12360         (ATTRIBUTE_NORETURN): Update definition. Define always.
12361         * lib/vasnprintf.h (__attribute__): Remove definition.
12362         (_GL_ATTRIBUTE_FORMAT): New macro.
12363         (asnprintf, vasnprintf): Use it.
12364         * lib/xalloc.h (__attribute__): Remove definition.
12365         (ATTRIBUTE_NORETURN): Update definition. Define always.
12366         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
12367         * lib/xmemdup0.h (__attribute__): Remove definition.
12368         (ATTRIBUTE_NORETURN): Update definition. Define always.
12369         * lib/xprintf.h (__attribute__): Remove definition.
12370         (_GL_ATTRIBUTE_FORMAT): New macro.
12371         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
12372         * lib/xstrtol.h (__attribute__): Remove definition.
12373         (ATTRIBUTE_NORETURN): Update definition. Define always.
12374         * lib/xvasprintf.h (__attribute__): Remove definition.
12375         (_GL_ATTRIBUTE_FORMAT): New macro.
12376         (xasprintf, xvasprintf): Use it.
12377         * tests/test-argmatch.c (__attribute__): Remove definition.
12378         (ATTRIBUTE_NORETURN): Update definition. Define always.
12379         * tests/test-exclude.c (__attribute__): Remove definition.
12380         (ATTRIBUTE_NORETURN): Update definition. Define always.
12381         Reported by Paul Eggert.
12382
12383 2011-02-13  Bruno Haible  <bruno@clisp.org>
12384
12385         mbrtowc: Add more tests for native Windows platforms.
12386         * tests/test-mbrtowc-w32-1.sh: New file.
12387         * tests/test-mbrtowc-w32-2.sh: New file.
12388         * tests/test-mbrtowc-w32-3.sh: New file.
12389         * tests/test-mbrtowc-w32-4.sh: New file.
12390         * tests/test-mbrtowc-w32-5.sh: New file.
12391         * tests/test-mbrtowc-w32.c: New file.
12392         * modules/mbrtowc-tests (Files): Add them.
12393         (Makefile.am): Arrange to run these tests.
12394         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
12395         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
12396
12397 2011-02-13  Bruno Haible  <bruno@clisp.org>
12398
12399         mbrtowc: Work around native Windows bug.
12400         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
12401         guess when no suitable locale for testing was found.
12402         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
12403
12404 2011-02-13  Bruno Haible  <bruno@clisp.org>
12405
12406         mbsinit: Work around mingw bug.
12407         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
12408         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
12409         Windows.
12410         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
12411
12412 2011-02-13  Bruno Haible  <bruno@clisp.org>
12413
12414         mbsinit: Don't crash for a NULL argument.
12415         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
12416         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
12417
12418 2011-02-13  Bruno Haible  <bruno@clisp.org>
12419
12420         Don't interfere with a program's definition of __attribute__.
12421         * lib/stdio.in.h (__attribute__): Remove definition.
12422         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
12423         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
12424         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
12425         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
12426         * lib/string.in.h (__attribute__): Remove definition.
12427         Reported by Paul Eggert.
12428
12429 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12430
12431         stdlib: don't get in the way of non-GCC __attribute__
12432         See thread starting at
12433         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
12434         Revert previous stdlib change, installing the following instead:
12435         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
12436         to get in the way of a non-GCC compiler that supports __attribute__.
12437         (_GL_ATTRIBUTE_RETURN): New macro.
12438         (_Exit): Use it instead of __attribute__.
12439
12440 2011-02-12  Bruno Haible  <bruno@clisp.org>
12441
12442         quotearg test: Avoid test failure on mingw.
12443         * tests/test-quotearg.sh: Convert the locale identifier from native
12444         Windows syntax to Unix syntax.
12445
12446 2011-02-12  Bruno Haible  <bruno@clisp.org>
12447
12448         setlocale: Prefer gnulib's override over libintl's override.
12449         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
12450         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
12451         GNULIB_defined_setlocale is set.
12452
12453 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
12454
12455         stdlib: support non-GCC __attribute__
12456
12457         Fix a serious and tricky problem encountered when attempting to
12458         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
12459         5.5, but it crashed due to memory corruption on Solaris 10 with
12460         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
12461         bits that are otherwise zero.  This tagging is optional inside
12462         Emacs but is preferred and is used when __attribute__ ((__aligned
12463         (8))) works, as it does with both recent-enough GCC and with Sun C
12464         5.11.  However, Sun C 5.11 is not GCC and does not #define
12465         __GNUC__ and __GNUC_MINOR__.
12466
12467         When I added the getloadavg module to Emacs, it brought in
12468         stdlib.in.h, which contained this fragment:
12469
12470            #ifndef __attribute__
12471            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
12472            #  define __attribute__(Spec)   /* empty */
12473            # endif
12474            #endif
12475
12476         When files that include <stdlib.h> were compiled with Sun C 5.11,
12477         the above code disabled __attribute__ ((__aligned (8))), which
12478         caused variables to not be properly aligned, which eventually led
12479         to the pointer corruption mentioned above.  (This was a bit hard
12480         to diagnose, unfortunately.)
12481
12482         Several "#define __attribute__(X) /* empty */" code snippets need
12483         to be eradicated from Gnulib to work with non-GCC compilers that
12484         support __attribute__.  The Autoconf way to do this is to test for
12485         each kind of attribute that we want support for, and selectively
12486         enable that in source code.
12487
12488         Fix this problem just for stdlib.h, by adding a test for the
12489         __noreturn__ attribute, and change stdlib.in.h to use that test
12490         when needed.  This technique can be easily generalized to the
12491         other *.in.h files and attributes, and a similar technique can be
12492         used for *.h and *.c files.  This patch is enough to solve the
12493         problem for Emacs + getloadavg, and I thought I'd publish it for
12494         feedback before undertaking further, similar fixes in other
12495         modules.
12496
12497         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
12498         because it's not needed for stdlib.h.  It merely substitutes the
12499         value directly into stdlib.h.  We may well need to #define it, or
12500         similar symbols, for other modules, but it's nice to also have an
12501         option to not #define it for applications like Emacs that do not
12502         need it.
12503
12504         * lib/stdlib.in.h (__attribute__): Do not #define.
12505         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
12506         be defined only if the _Exit module is also used.
12507         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
12508         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
12509         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
12510         platforms.
12511         * modules/_Exit (Files): Add m4/attribute.m4.
12512         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
12513         * m4/attribute.m4: New file.
12514
12515 2011-02-12  Bruno Haible  <bruno@clisp.org>
12516
12517         wcsrtombs: Work around bug on native Windows.
12518         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
12519         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
12520         instead of len.
12521         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
12522
12523 2011-02-12  Bruno Haible  <bruno@clisp.org>
12524
12525         mbsrtowcs: Work around bug on native Windows.
12526         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
12527         against mingw bug.
12528         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
12529
12530 2011-02-12  Bruno Haible  <bruno@clisp.org>
12531
12532         Avoid setlocale bugs in tests.
12533         * modules/btowc (Dependencies): Add setlocale.
12534         * modules/c-strcase (Dependencies): Likewise.
12535         * modules/mbmemcasecmp (Dependencies): Likewise.
12536         * modules/mbmemcasecoll (Dependencies): Likewise.
12537         * modules/mbrtowc (Dependencies): Likewise.
12538         * modules/mbscasecmp (Dependencies): Likewise.
12539         * modules/mbscasestr (Dependencies): Likewise.
12540         * modules/mbschr (Dependencies): Likewise.
12541         * modules/mbscspn (Dependencies): Likewise.
12542         * modules/mbsinit (Dependencies): Likewise.
12543         * modules/mbsncasecmp (Dependencies): Likewise.
12544         * modules/mbsnrtowcs (Dependencies): Likewise.
12545         * modules/mbspbrk (Dependencies): Likewise.
12546         * modules/mbspcasecmp (Dependencies): Likewise.
12547         * modules/mbsrchr (Dependencies): Likewise.
12548         * modules/mbsrtowcs (Dependencies): Likewise.
12549         * modules/mbsspn (Dependencies): Likewise.
12550         * modules/mbsstr (Dependencies): Likewise.
12551         * modules/nl_langinfo (Dependencies): Likewise.
12552         * modules/quotearg (Dependencies): Likewise.
12553         * modules/unicase/locale-language (Dependencies): Likewise.
12554         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
12555         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
12556         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
12557         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
12558         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
12559         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
12560         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
12561         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
12562         * modules/vasnprintf-posix (Dependencies): Likewise.
12563         * modules/wcrtomb (Dependencies): Likewise.
12564         * modules/wcsnrtombs (Dependencies): Likewise.
12565         * modules/wcsrtombs (Dependencies): Likewise.
12566
12567 2011-02-12  Bruno Haible  <bruno@clisp.org>
12568
12569         setlocale: Workaround native Windows bug.
12570         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
12571         succeeds but sets LC_CTYPE to "C", report a failure.
12572         * tests/test-setlocale2.sh: New file.
12573         * tests/test-setlocale2.c: New file.
12574         * modules/setlocale-tests (Files): Add the new files.
12575         (Makefile.am): Enable test-setlocale2.sh test.
12576         * doc/posix-functions/setlocale.texi: Mention workaround.
12577
12578 2011-02-11  Bruno Haible  <bruno@clisp.org>
12579
12580         Tests for module 'setlocale'.
12581         * modules/setlocale-tests: New file.
12582         * tests/test-setlocale1.sh: New file.
12583         * tests/test-setlocale1.c: New file.
12584
12585         New module 'setlocale'.
12586         * lib/locale.in.h (setlocale): New declaration.
12587         * lib/setlocale.c: New file, based on
12588         gettext/gettext-runtime/intl/setlocale.c.
12589         * m4/setlocale.m4: New file.
12590         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
12591         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
12592         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
12593         REPLACE_SETLOCALE.
12594         * modules/setlocale: New file.
12595         * tests/test-locale-c++.cc: Test the declaration of setlocale.
12596         * doc/posix-functions/setlocale.texi: Mention the new module.
12597
12598 2011-02-11  Bruno Haible  <bruno@clisp.org>
12599
12600         Prepare for locale dependent tests on mingw.
12601         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
12602         because it has the wrong locale encoding.
12603         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
12604         French_France.1252 instead of "fr".
12605         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
12606         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
12607         because it has the wrong locale encoding.
12608         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
12609         native Windows, try Turkish_Turkey.65001.
12610         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
12611         Chinese_China.54936.
12612
12613         Prepare for locale dependent tests on mingw.
12614         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
12615         differently.
12616         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
12617         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
12618         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
12619         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
12620
12621 2011-02-11  Eric Blake  <eblake@redhat.com>
12622
12623         strptime: avoid compiler warnings
12624         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
12625         compiler warnings about dead code.
12626         Reported by Daniel P. Berrange.
12627
12628 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
12629
12630         doc: update users.txt
12631         * users.txt: Add rcs.
12632
12633 2011-02-10  John W. Eaton  <jwe@gnu.org>
12634
12635         doc: update users.txt
12636         * users.txt: Add octave.
12637
12638 2011-02-10  Jim Meyering  <meyering@redhat.com>
12639
12640         doc: update users.txt
12641         * users.txt: Add iwhd.
12642
12643 2011-02-09  Bruno Haible  <bruno@clisp.org>
12644
12645         gnulib-tool: Make copyright notice adjustment more robust.
12646         * gnulib-tool (func_import): In sed_transform_main_lib_file,
12647         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
12648         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
12649         License".
12650         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
12651
12652 2011-02-06  Bruno Haible  <bruno@clisp.org>
12653
12654         New module 'towctrans'.
12655         * modules/towctrans: New file.
12656         * lib/wctype.in.h (towctrans): New declaration.
12657         * lib/towctrans.c: New file.
12658         * lib/towctrans-impl.h: New file.
12659         * m4/towctrans.m4: New file.
12660         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
12661         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
12662         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
12663         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
12664         * doc/posix-functions/towctrans.texi: Mention the new module.
12665
12666 2011-02-06  Bruno Haible  <bruno@clisp.org>
12667
12668         New module 'wctrans'.
12669         * modules/wctrans: New file.
12670         * lib/wctype.in.h (wctrans): New declaration.
12671         * lib/wctrans.c: New file.
12672         * lib/wctrans-impl.h: New file.
12673         * m4/wctrans.m4: New file.
12674         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
12675         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
12676         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
12677         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
12678         * doc/posix-functions/wctrans.texi: Mention the new module.
12679
12680 2011-02-06  Bruno Haible  <bruno@clisp.org>
12681
12682         New module 'iswctype'.
12683         * modules/iswctype: New file.
12684         * lib/wctype.in.h (iswctype): New declaration.
12685         * lib/iswctype.c: New file.
12686         * lib/iswctype-impl.h: New file.
12687         * m4/iswctype.m4: New file.
12688         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
12689         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
12690         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
12691         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
12692         * doc/posix-functions/iswctype.texi: Mention the new module and the
12693         HP-UX 11.00 problem.
12694
12695 2011-02-06  Bruno Haible  <bruno@clisp.org>
12696
12697         New module 'wctype'.
12698         * modules/wctype: Change to represent the wctype() substitute.
12699         * lib/wctype.in.h (wctype): New declaration.
12700         * lib/wctype.c: New file.
12701         * lib/wctype-impl.h: New file.
12702         * m4/wctype.m4: New file.
12703         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
12704         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
12705         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
12706         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
12707         * doc/posix-functions/wctype.texi: Mention the new module and the
12708         HP-UX 11.00 problem.
12709
12710 2011-02-06  Bruno Haible  <bruno@clisp.org>
12711
12712         wctype-h: Ensure wctype_t and wctrans_t are defined.
12713         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
12714         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
12715         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
12716         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
12717         HAVE_WCTRANS_T.
12718         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
12719
12720 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12721
12722         flock: fix license typo
12723
12724         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
12725         omitted.
12726
12727 2011-02-08  Bruno Haible  <bruno@clisp.org>
12728
12729         Split large sed scripts, for HP-UX sed.
12730         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
12731         to avoid HP-UX limit of 99 commands, in the near future.
12732         * modules/stdlib (Makefile.am): Likewise.
12733         * modules/unistd (Makefile.am): Likewise.
12734         * modules/wchar (Makefile.am): Likewise.
12735         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12736         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
12737         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
12738
12739 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
12740             Bruno Haible  <bruno@clisp.org>
12741
12742         stdlib: improve random_r modularization
12743         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
12744         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
12745         you also need the random_r module to get this material right.
12746         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
12747         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
12748         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
12749
12750 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
12751
12752         stdlib: don't depend on stdint
12753         * lib/stdlib.in.h: Don't include <stdint.h> merely because
12754         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
12755         be independent of whether stdint.h is needed.
12756         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
12757         here, instead of ...
12758         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
12759         struct random_data should be using the random_r module, not just
12760         the stdlib module (which wouldn't make sense: what package needs
12761         just struct random_data without also needing random_r?).
12762         * modules/stdlib (Depends-on): Remove stdint.
12763
12764         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
12765         See the thread rooted at
12766         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
12767         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
12768         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
12769         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
12770         __VMS)); previously it was always included (via fcntl--.h).
12771         (getloadavg): Do not use c_strtod.  Instead, approximate it by
12772         hand; this is good enough for load averages.  Also, do not use
12773         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
12774         flags directly if available and don't bother otherwise.  (Packages
12775         that need the extra reliability should use the modules that define
12776         these flags on older platforms that lack them.)
12777         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
12778         fcntl-safer.
12779
12780 2011-02-08  Jim Meyering  <meyering@redhat.com>
12781
12782         di-set.h, ino-map.h: add multiple-inclusion guard
12783         Technically, the guard is required only for ino-map.h, due to its
12784         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
12785         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
12786         * lib/ino-map.h: Likewise.
12787
12788 2011-02-06  Bruno Haible  <bruno@clisp.org>
12789
12790         iswblank: Ensure declaration on glibc systems.
12791         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
12792         * modules/iswblank (Dependencies): Add 'extensions'.
12793         * doc/posix-functions/iswblank.texi: Document the glibc problem.
12794
12795 2011-02-06  Bruno Haible  <bruno@clisp.org>
12796
12797         New module 'iswblank'.
12798         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
12799         * modules/iswblank: New file.
12800         * modules/wctype-h (Files): Remove lib/iswblank.c.
12801         (Makefile.am): Substitute GNULIB_ISWBLANK.
12802         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
12803         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
12804         (gl_WCTYPE_H_DEFAULTS): New macro.
12805         (gl_WCTYPE_H): Require it. Remove iswblank related code.
12806         * modules/iswblank-tests: New file.
12807         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
12808         * tests/test-wctype-h.c (main): Remove iswblank tests.
12809         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
12810         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
12811         of 'wctype-h'.
12812         * NEWS: Mention the change.
12813         * modules/mbchar (Depends-on): Add iswblank.
12814
12815 2011-02-08  Bruno Haible  <bruno@clisp.org>
12816
12817         di-set tests: Refactor.
12818         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
12819         unnecessary includes.
12820         (ASSERT): Remove macro.
12821         (main): Make C90 compliant by avoiding variable declaration after
12822         statement.
12823         * modules/di-set-tests (Files): Add tests/macros.h.
12824
12825 2011-02-08  Bruno Haible  <bruno@clisp.org>
12826
12827         ino-map tests: Refactor.
12828         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
12829         unnecessary includes.
12830         (ASSERT): Remove macro.
12831         (main): Make C90 compliant by avoiding variable declaration after
12832         statement.
12833         * modules/ino-map-tests (Files): Add tests/macros.h.
12834
12835 2011-02-08  Jim Meyering  <meyering@redhat.com>
12836
12837         di-set: add "const" to a cast
12838         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
12839         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
12840
12841 2011-02-06  Bruno Haible  <bruno@clisp.org>
12842
12843         Rename module 'wctype' to 'wctype-h'.
12844         * modules/wctype-h: Renamed from modules/wctype.
12845         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
12846         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
12847         (Files, Depends-on, Makefile.am): Update.
12848         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
12849         (Files, Makefile.am): Update.
12850         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
12851         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
12852         * doc/posix-headers/wctype.texi: Update.
12853         * doc/posix-functions/iswalnum.texi: Update.
12854         * doc/posix-functions/iswalpha.texi: Update.
12855         * doc/posix-functions/iswblank.texi: Update.
12856         * doc/posix-functions/iswcntrl.texi: Update.
12857         * doc/posix-functions/iswdigit.texi: Update.
12858         * doc/posix-functions/iswgraph.texi: Update.
12859         * doc/posix-functions/iswlower.texi: Update.
12860         * doc/posix-functions/iswprint.texi: Update.
12861         * doc/posix-functions/iswpunct.texi: Update.
12862         * doc/posix-functions/iswspace.texi: Update.
12863         * doc/posix-functions/iswupper.texi: Update.
12864         * doc/posix-functions/iswxdigit.texi: Update.
12865         * doc/posix-functions/towlower.texi: Update.
12866         * doc/posix-functions/towupper.texi: Update.
12867         * NEWS: Mention the change.
12868         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
12869         * modules/mbchar (Dependencies): Likewise.
12870         * modules/mbswidth (Dependencies): Likewise.
12871         * modules/quotearg (Dependencies): Likewise.
12872         * modules/regex (Dependencies): Likewise.
12873         * modules/wcscasecmp (Dependencies): Likewise.
12874         * modules/wcsncasecmp (Dependencies): Likewise.
12875         * modules/wcwidth (Dependencies): Likewise.
12876
12877 2011-02-06  Bruno Haible  <bruno@clisp.org>
12878
12879         New module 'wcswidth'.
12880         * modules/wcswidth: New file.
12881         * lib/wchar.in.h (wcswidth): New declaration.
12882         * lib/wcswidth.c: New file.
12883         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
12884         * m4/wcswidth.m4: New file.
12885         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
12886         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
12887         REPLACE_WCSWIDTH.
12888         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
12889         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
12890         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
12891         * doc/posix-functions/wcswidth.texi: Mention the new module.
12892
12893 2011-02-06  Bruno Haible  <bruno@clisp.org>
12894
12895         New module 'wcstok'.
12896         * modules/wcstok: New file.
12897         * lib/wchar.in.h (wcstok): New declaration.
12898         * lib/wcstok.c: New file.
12899         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
12900         * m4/wcstok.m4: New file.
12901         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
12902         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
12903         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
12904         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
12905         * doc/posix-functions/wcstok.texi: Mention the new module.
12906
12907 2011-02-06  Bruno Haible  <bruno@clisp.org>
12908
12909         New module 'wcsstr'.
12910         * modules/wcsstr: New file.
12911         * lib/wchar.in.h (wcsstr): New declaration.
12912         * lib/wcsstr.c: New file.
12913         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
12914         * m4/wcsstr.m4: New file.
12915         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
12916         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
12917         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
12918         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
12919         * doc/posix-functions/wcsstr.texi: Mention the new module.
12920
12921 2011-02-06  Bruno Haible  <bruno@clisp.org>
12922
12923         New module 'wcspbrk'.
12924         * modules/wcspbrk: New file.
12925         * lib/wchar.in.h (wcspbrk): New declaration.
12926         * lib/wcspbrk.c: New file.
12927         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
12928         * m4/wcspbrk.m4: New file.
12929         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
12930         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
12931         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
12932         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
12933         * doc/posix-functions/wcspbrk.texi: Mention the new module.
12934
12935 2011-02-06  Bruno Haible  <bruno@clisp.org>
12936
12937         New module 'wcsspn'.
12938         * modules/wcsspn: New file.
12939         * lib/wchar.in.h (wcsspn): New declaration.
12940         * lib/wcsspn.c: New file.
12941         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
12942         * m4/wcsspn.m4: New file.
12943         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
12944         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
12945         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
12946         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
12947         * doc/posix-functions/wcsspn.texi: Mention the new module.
12948
12949 2011-02-06  Bruno Haible  <bruno@clisp.org>
12950
12951         New module 'wcscspn'.
12952         * modules/wcscspn: New file.
12953         * lib/wchar.in.h (wcscspn): New declaration.
12954         * lib/wcscspn.c: New file.
12955         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
12956         * m4/wcscspn.m4: New file.
12957         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
12958         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
12959         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
12960         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
12961         * doc/posix-functions/wcscspn.texi: Mention the new module.
12962
12963 2011-02-06  Bruno Haible  <bruno@clisp.org>
12964
12965         New module 'wcsrchr'.
12966         * modules/wcsrchr: New file.
12967         * lib/wchar.in.h (wcsrchr): New declaration.
12968         * lib/wcsrchr.c: New file.
12969         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
12970         * m4/wcsrchr.m4: New file.
12971         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
12972         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
12973         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
12974         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
12975         * doc/posix-functions/wcsrchr.texi: Mention the new module.
12976
12977 2011-02-06  Bruno Haible  <bruno@clisp.org>
12978
12979         New module 'wcschr'.
12980         * modules/wcschr: New file.
12981         * lib/wchar.in.h (wcschr): New declaration.
12982         * lib/wcschr.c: New file.
12983         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
12984         * m4/wcschr.m4: New file.
12985         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
12986         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
12987         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
12988         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
12989         * doc/posix-functions/wcschr.texi: Mention the new module.
12990
12991 2011-02-06  Bruno Haible  <bruno@clisp.org>
12992
12993         New module 'wcsdup'.
12994         * modules/wcsdup: New file.
12995         * lib/wchar.in.h (wcsdup): New declaration.
12996         * lib/wcsdup.c: New file.
12997         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
12998         * m4/wcsdup.m4: New file.
12999         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
13000         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
13001         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
13002         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
13003         * doc/posix-functions/wcsdup.texi: Mention the new module.
13004
13005 2011-02-06  Bruno Haible  <bruno@clisp.org>
13006
13007         New module 'wcsxfrm'.
13008         * modules/wcsxfrm: New file.
13009         * lib/wchar.in.h (wcsxfrm): New declaration.
13010         * lib/wcsxfrm.c: New file.
13011         * lib/wcsxfrm-impl.h: New file.
13012         * m4/wcsxfrm.m4: New file.
13013         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
13014         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
13015         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
13016         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
13017         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
13018
13019 2011-02-06  Bruno Haible  <bruno@clisp.org>
13020
13021         New module 'wcscoll'.
13022         * modules/wcscoll: New file.
13023         * lib/wchar.in.h (wcscoll): New declaration.
13024         * lib/wcscoll.c: New file.
13025         * lib/wcscoll-impl.h: New file.
13026         * m4/wcscoll.m4: New file.
13027         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
13028         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
13029         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
13030         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
13031         * doc/posix-functions/wcscoll.texi: Mention the new module.
13032
13033 2011-02-06  Bruno Haible  <bruno@clisp.org>
13034
13035         New module 'wcsncasecmp'.
13036         * modules/wcsncasecmp: New file.
13037         * lib/wchar.in.h (wcsncasecmp): New declaration.
13038         * lib/wcsncasecmp.c: New file.
13039         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
13040         * m4/wcsncasecmp.m4: New file.
13041         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
13042         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
13043         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
13044         HAVE_WCSNCASECMP.
13045         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
13046         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
13047
13048 2011-02-06  Bruno Haible  <bruno@clisp.org>
13049
13050         New module 'wcscasecmp'.
13051         * modules/wcscasecmp: New file.
13052         * lib/wchar.in.h (wcscasecmp): New declaration.
13053         * lib/wcscasecmp.c: New file.
13054         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
13055         * m4/wcscasecmp.m4: New file.
13056         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
13057         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
13058         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
13059         HAVE_WCSCASECMP.
13060         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
13061         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
13062
13063 2011-02-05  Bruno Haible  <bruno@clisp.org>
13064
13065         New module 'wcsncmp'.
13066         * modules/wcsncmp: New file.
13067         * lib/wchar.in.h (wcsncmp): New declaration.
13068         * lib/wcsncmp.c: New file.
13069         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
13070         * m4/wcsncmp.m4: New file.
13071         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
13072         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
13073         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
13074         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
13075         * doc/posix-functions/wcsncmp.texi: Mention the new module.
13076
13077 2011-02-05  Bruno Haible  <bruno@clisp.org>
13078
13079         New module 'wcscmp'.
13080         * modules/wcscmp: New file.
13081         * lib/wchar.in.h (wcscmp): New declaration.
13082         * lib/wcscmp.c: New file.
13083         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
13084         * m4/wcscmp.m4: New file.
13085         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
13086         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
13087         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
13088         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
13089         * doc/posix-functions/wcscmp.texi: Mention the new module.
13090
13091 2011-02-05  Bruno Haible  <bruno@clisp.org>
13092
13093         New module 'wcsncat'.
13094         * modules/wcsncat: New file.
13095         * lib/wchar.in.h (wcsncat): New declaration.
13096         * lib/wcsncat.c: New file.
13097         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
13098         * m4/wcsncat.m4: New file.
13099         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
13100         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
13101         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
13102         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
13103         * doc/posix-functions/wcsncat.texi: Mention the new module.
13104
13105 2011-02-05  Bruno Haible  <bruno@clisp.org>
13106
13107         New module 'wcscat'.
13108         * modules/wcscat: New file.
13109         * lib/wchar.in.h (wcscat): New declaration.
13110         * lib/wcscat.c: New file.
13111         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
13112         * m4/wcscat.m4: New file.
13113         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
13114         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
13115         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
13116         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
13117         * doc/posix-functions/wcscat.texi: Mention the new module.
13118
13119 2011-02-05  Bruno Haible  <bruno@clisp.org>
13120
13121         New module 'wcpncpy'.
13122         * modules/wcpncpy: New file.
13123         * lib/wchar.in.h (wcpncpy): New declaration.
13124         * lib/wcpncpy.c: New file.
13125         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
13126         * m4/wcpncpy.m4: New file.
13127         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
13128         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
13129         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
13130         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
13131         * doc/posix-functions/wcpncpy.texi: Mention the new module.
13132
13133 2011-02-05  Bruno Haible  <bruno@clisp.org>
13134
13135         New module 'wcsncpy'.
13136         * modules/wcsncpy: New file.
13137         * lib/wchar.in.h (wcsncpy): New declaration.
13138         * lib/wcsncpy.c: New file.
13139         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
13140         * m4/wcsncpy.m4: New file.
13141         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
13142         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
13143         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
13144         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
13145         * doc/posix-functions/wcsncpy.texi: Mention the new module.
13146
13147 2011-02-05  Bruno Haible  <bruno@clisp.org>
13148
13149         New module 'wcpcpy'.
13150         * modules/wcpcpy: New file.
13151         * lib/wchar.in.h (wcpcpy): New declaration.
13152         * lib/wcpcpy.c: New file.
13153         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
13154         * m4/wcpcpy.m4: New file.
13155         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
13156         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
13157         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
13158         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
13159         * doc/posix-functions/wcpcpy.texi: Mention the new module.
13160
13161 2011-02-05  Bruno Haible  <bruno@clisp.org>
13162
13163         New module 'wcscpy'.
13164         * modules/wcscpy: New file.
13165         * lib/wchar.in.h (wcscpy): New declaration.
13166         * lib/wcscpy.c: New file.
13167         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
13168         * m4/wcscpy.m4: New file.
13169         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
13170         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
13171         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
13172         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
13173         * doc/posix-functions/wcscpy.texi: Mention the new module.
13174
13175 2011-02-05  Bruno Haible  <bruno@clisp.org>
13176
13177         New module 'wcsnlen'.
13178         * modules/wcsnlen: New file.
13179         * lib/wchar.in.h (wcsnlen): New declaration.
13180         * lib/wcsnlen.c: New file.
13181         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
13182         * m4/wcsnlen.m4: New file.
13183         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
13184         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
13185         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
13186         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
13187         * doc/posix-functions/wcsnlen.texi: Mention the new module.
13188
13189 2011-02-05  Bruno Haible  <bruno@clisp.org>
13190
13191         New module 'wcslen'.
13192         * modules/wcslen: New file.
13193         * lib/wchar.in.h (wcslen): New declaration.
13194         * lib/wcslen.c: New file.
13195         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
13196         * m4/wcslen.m4: New file.
13197         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
13198         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
13199         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
13200         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
13201         * doc/posix-functions/wcslen.texi: Mention the new module.
13202
13203 2011-02-05  Bruno Haible  <bruno@clisp.org>
13204
13205         New module 'wmemset'.
13206         * modules/wmemset: New file.
13207         * lib/wchar.in.h (wmemset): New declaration.
13208         * lib/wmemset.c: New file.
13209         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
13210         * m4/wmemset.m4: New file.
13211         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
13212         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
13213         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
13214         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
13215         * doc/posix-functions/wmemset.texi: Mention the new module.
13216
13217 2011-02-05  Bruno Haible  <bruno@clisp.org>
13218
13219         New module 'wmemmove'.
13220         * modules/wmemmove: New file.
13221         * lib/wchar.in.h (wmemmove): New declaration.
13222         * lib/wmemmove.c: New file.
13223         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
13224         * m4/wmemmove.m4: New file.
13225         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
13226         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
13227         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
13228         HAVE_WMEMMOVE.
13229         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
13230         * doc/posix-functions/wmemmove.texi: Mention the new module.
13231
13232 2011-02-05  Bruno Haible  <bruno@clisp.org>
13233
13234         New module 'wmemcpy'.
13235         * modules/wmemcpy: New file.
13236         * lib/wchar.in.h (wmemcpy): New declaration.
13237         * lib/wmemcpy.c: New file.
13238         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
13239         * m4/wmemcpy.m4: New file.
13240         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
13241         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
13242         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
13243         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
13244         * doc/posix-functions/wmemcpy.texi: Mention the new module.
13245
13246 2011-02-05  Bruno Haible  <bruno@clisp.org>
13247
13248         New module 'wmemcmp'.
13249         * modules/wmemcmp: New file.
13250         * lib/wchar.in.h (wmemcmp): New declaration.
13251         * lib/wmemcmp.c: New file.
13252         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
13253         * m4/wmemcmp.m4: New file.
13254         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
13255         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
13256         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
13257         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
13258         * doc/posix-functions/wmemcmp.texi: Mention the new module.
13259
13260 2011-02-07  Jim Meyering  <meyering@redhat.com>
13261
13262         di-set, ino-map: new modules, from coreutils
13263         * lib/di-set.c: New file.
13264         * lib/di-set.h: Likewise.
13265         * lib/ino-map.c: Likewise.
13266         * lib/ino-map.h: Likewise.
13267         * modules/di-set: Likewise.
13268         * modules/di-set-tests: Likewise.
13269         * modules/ino-map: Likewise.
13270         * modules/ino-map-tests: Likewise.
13271         * tests/test-di-set.c: Likewise.
13272         * tests/test-ino-map.c: Likewise.
13273
13274 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
13275
13276         getloadavg: merge minor changes from Emacs
13277
13278         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
13279         (getloadavg): Use memset, not bzero.
13280
13281         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
13282         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13283         clash (bug#86).
13284
13285 2010-11-14  Bruno Haible  <bruno@clisp.org>
13286
13287         Allow multiple gnulib generated replacements to coexist.
13288         * lib/getopt.in.h (struct option): Avoid identical redefinition.
13289         * lib/inttypes.in.h (imaxdiv_t): Likewise.
13290         * lib/langinfo.in.h (nl_item): Likewise.
13291         * lib/math.in.h (_NaN, NAN): Likewise.
13292         * lib/netdb.in.h (struct addrinfo): Likewise.
13293         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
13294         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
13295         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
13296         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
13297         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
13298         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
13299         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
13300         pthread_mutexattr_init, pthread_mutexattr_settype,
13301         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
13302         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
13303         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
13304         pthread_spin_trylock, pthread_spin_unlock): Likewise.
13305         * lib/sched.in.h (struct sched_param): Likewise.
13306         * lib/se-selinux.in.h (security_class_t, security_context_t,
13307         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
13308         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
13309         lsetfilecon, fsetfilecon, security_check_context,
13310         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
13311         Likewise.
13312         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
13313         Likewise.
13314         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
13315         _gl_function_taking_int_returning_void_t, union sigval,
13316         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
13317         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
13318         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
13319         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
13320         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
13321         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
13322         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
13323         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
13324         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
13325         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
13326         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
13327         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
13328         socklen_t, rpl_fd_isset): Likewise.
13329         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
13330         * lib/sys_time.in.h (struct timeval): Likewise.
13331         * lib/sys_times.in.h (struct tms): Likewise.
13332         * lib/sys_utsname.in.h (struct utsname):
13333         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
13334         * lib/unistd.in.h (getpagesize): Likewise.
13335         * lib/wchar.in.h (mbstate_t): Likewise.
13336         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
13337         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
13338         towlower, towupper): Likewise.
13339         Reported by Sam Steingold <sds@gnu.org>.
13340
13341 2011-02-05  Eric Blake  <eblake@redhat.com>
13342
13343         unsetenv: work around Haiku issues
13344         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
13345         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
13346
13347 2010-12-30  Bruce Korb  <bkorb@gnu.org>
13348
13349         libposix: avoid calling error() within libposix
13350         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
13351         is defined.
13352
13353 2011-02-05  Eric Blake  <eblake@redhat.com>
13354
13355         strerror_r-posix: port to cygwin
13356         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
13357         implementation.
13358         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
13359         * tests/test-strerror_r.c (main): Fix test.
13360         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
13361         issue.
13362
13363 2011-02-05  Bruno Haible  <bruno@clisp.org>
13364
13365         New module 'wmemchr'.
13366         * modules/wmemchr: New file.
13367         * lib/wchar.in.h (wmemchr): New declaration.
13368         * lib/wmemchr.c: New file.
13369         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
13370         * m4/wmemchr.m4: New file.
13371         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
13372         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
13373         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
13374         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
13375         * doc/posix-functions/wmemchr.texi: Mention the new module.
13376
13377 2011-02-04  Eric Blake  <eblake@redhat.com>
13378
13379         fdopendir: detect FreeBSD bug
13380         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
13381         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
13382
13383 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
13384
13385         stdbool: do not define HAVE_STDBOOL_H
13386         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
13387         AC_HEADER_STDBOOL.  All uses changed.  Do not define
13388         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
13389         imported from the latest Autoconf git.  It was motivated by Emacs,
13390         which uses gnulib but does not need HAVE_STDBOOL_H.
13391
13392 2011-02-04  Bruno Haible  <bruno@clisp.org>
13393
13394         wcsnrtombs: Prepare for new module wwcsnrtombs.
13395         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
13396         * lib/wcsnrtombs.c: Include it.
13397         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
13398
13399         wcsrtombs: Prepare for new module wwcsrtombs.
13400         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
13401         * lib/wcsrtombs.c: Include it.
13402         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
13403
13404         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
13405         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
13406         * lib/mbsnrtowcs.c: Include it.
13407         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
13408
13409         mbsrtowcs: Prepare for new module mbsrtowwcs.
13410         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
13411         * lib/mbsrtowcs.c: Include it.
13412         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
13413
13414 2011-02-04  Bruno Haible  <bruno@clisp.org>
13415
13416         vasnprintf: Reduce use of malloc for small format strings.
13417         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
13418         (arguments): Add room for the first 7 arguments.
13419         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
13420         (char_directives, u8_directives, u16_directives, u32_directives): Add
13421         room for the first 7 directives.
13422         * lib/printf-parse.c: Include <string.h>.
13423         (PRINTF_PARSE): Change memory handling code so that it uses the first
13424         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
13425         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
13426         Reported by Pádraig Brady <P@draigbrady.com>.
13427
13428 2011-01-31  Eric Blake  <eblake@redhat.com>
13429
13430         dup2: work around Haiku bug
13431         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
13432         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
13433         * doc/posix-functions/dup2.texi (dup2): Document the bug.
13434         * tests/test-dup2.c (main): Enhance test.
13435
13436 2011-01-31  Simon Josefsson  <simon@josefsson.org>
13437
13438         doc: off_t is not available in eglibc 2.11.2 stdio.h.
13439         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
13440         declared by eglibc 2.11.2.
13441         * lib/stdio.in.h: Likewise.
13442
13443 2011-01-31  Eric Blake  <eblake@redhat.com>
13444
13445         ignore-value: add missing test dependency
13446         * tests/test-ignore-value.c: Revert previous change; stdio.h
13447         provides off_t.
13448         * modules/ignore-value-tests (Depends-on): Add missing dependency.
13449
13450 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
13451
13452         mktime: clarify long_int width checking
13453         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
13454         the top level, to make it clearer that the assumption about
13455         long_int width is being checked.  See
13456         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
13457
13458 2011-01-30  Simon Josefsson  <simon@josefsson.org>
13459
13460         ignore-value: Fix self-test.
13461         * tests/test-ignore-value.c: Include sys/types.h for off_t.
13462
13463 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
13464
13465         TYPE_MAXIMUM: avoid theoretically undefined behavior
13466         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
13467         negative number, which the C Standard says has undefined behavior.
13468         In practice this is not a problem, but might as well do it by the book.
13469         Reported by Rich Felker and Eric Blake; see
13470         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
13471         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
13472         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
13473         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13474         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
13475         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13476         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
13477
13478         mktime: #undef mktime before #defining it
13479         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
13480
13481         mktime: systematically normalize tm_isdst comparisons
13482         * lib/mktime.c (isdst_differ): New function.
13483         (__mktime_internal): Use it systematically for all isdst comparisons.
13484         This completes the fix for libc BZ #6723, and removes the need for
13485         normalizing tm_isdst.  See
13486         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
13487         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
13488
13489         mktime: fix some integer overflow issues and sidestep the rest
13490
13491         This was prompted by a bug report by Benjamin Lindner for MinGW
13492         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
13493         His bug is due to signed integer overflow (0 - INT_MIN), and I
13494         I scanned through mktime.c looking for other integer overflow
13495         problems, fixing all the bugs I found.
13496
13497         Although the C Standard says the resulting code is still not safe
13498         in the presence of integer overflow, in practice it should be good
13499         enough for all real-world two's-complement implementations, except
13500         for debugging environments that deliberately trap on integer
13501         overflow (e.g., gcc -ftrapv).
13502
13503         * lib/mktime.c (WRAPV): New macro.
13504         (SHR): Also check that long_int and time_t shift right in the
13505         usual way, before using the fast-but-unportable method.
13506         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
13507         used.  The code already assumed two's complement, so there's
13508         no need to test for alternatives.  All uses removed.
13509         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
13510         the C standard.  Problem reported by Rich Felker in
13511         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
13512         (twos_complement_arithmetic): Also check long_int and time_t.
13513         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
13514         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
13515         (__mktime_internal): Avoid integer overflow with unary subtraction
13516         in two instances where -1 - X is an adequate replacement for -X,
13517         since the calculations are approximate.
13518
13519 2011-01-29  Eric Blake  <eblake@redhat.com>
13520
13521         mktime: avoid infinite loop
13522         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
13523         type; behavior is still undefined but portable to all known targets.
13524         Reported by Rich Felker.
13525
13526 2011-01-29  Simon Josefsson  <simon@josefsson.org>
13527
13528         rename, unlink, same-inode: Relicense.
13529         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
13530         * modules/unlink (License): Likewise.
13531         * modules/same-inode (License): Likewise.
13532
13533 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
13534
13535         mktime: avoid problems on NetBSD 5 / i386
13536         * lib/mktime.c (long_int): New type.  This works around a problem
13537         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
13538         but time_t is 64 bits, and where I expect the existing code is
13539         wrong in some cases.
13540         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
13541         (ydhms_diff): Bring back the compile-time check for wide-enough
13542         year and yday.
13543
13544         mktime: fix misspelling in comment
13545         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
13546         This merges all recent glibc changes of importance.
13547
13548 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13549
13550         move-if-change: cope with concurrent mv of identical file.
13551         * build-aux/move-if-change (CMPPROG): Accept environment
13552         variable as an override for `cmp'.
13553         (usage): Document CMPPROG.
13554         Adjust comparison to drop stdout.  Cope with failure of mv if
13555         the target file exists and is identical to the source, for
13556         parallel builds.
13557         Report from H.J. Lu against binutils in PR binutils/12283.
13558
13559 2011-01-28  Bruce Korb  <bkorb@gnu.org>
13560
13561         * users.txt: Mention sharutils.
13562
13563 2011-01-28  Simon Josefsson  <simon@josefsson.org>
13564
13565         * users.txt: Mention OATH Toolkit.
13566
13567 2011-01-27  Bruno Haible  <bruno@clisp.org>
13568
13569         Prepare for supporting FreeBSD 10.
13570         * build-aux/config.libpath: Remove handling of freebsd1*.
13571
13572 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
13573
13574         Prepare for supporting FreeBSD 10.
13575         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
13576         match FreeBSD 10.0.
13577
13578 2011-01-27  Bruno Haible  <bruno@clisp.org>
13579
13580         vma-iter, get-rusage-as: Add OpenBSD support.
13581         * modules/vma-iter (configure.ac): Test for mquery.
13582         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
13583         * lib/vma-iter.c: Include <sys/mman.h>.
13584         (vma_iterate): Add an implementation based on mquery().
13585         * lib/resource-ext.h (get_rusage_as): Update comments.
13586         * lib/get-rusage-as.c: Likewise.
13587         * lib/get-rusage-data.c: Likewise.
13588
13589 2011-01-26  Karl Berry  <karl@gnu.org>
13590
13591         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
13592         variables to make it easier to override the makeinfo program used.
13593
13594 2011-01-26  Eric Blake  <eblake@redhat.com>
13595
13596         fcntl: work around Haiku F_DUPFD bugs
13597         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
13598         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
13599         cloexec bit on duplication.
13600         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
13601
13602 2011-01-26  Bruno Haible  <bruno@clisp.org>
13603
13604         Enable memory leak tests on AIX.
13605         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
13606         * tests/test-fprintf-posix3.c (main): Likewise.
13607
13608 2011-01-26  Bruno Haible  <bruno@clisp.org>
13609
13610         Tests for module 'get-rusage-data'.
13611         * modules/get-rusage-data-tests: New file.
13612         * tests/test-get-rusage-data.c: New file.
13613
13614         New module 'get-rusage-data'.
13615         * lib/resource-ext.h (get_rusage_data): New declaration.
13616         * lib/get-rusage-data.c: New file.
13617         * modules/get-rusage-data: New file.
13618
13619 2011-01-25  Bruno Haible  <bruno@clisp.org>
13620
13621         get-rusage-as: Allow for easier testing.
13622         * lib/resource-ext.h (get_rusage_as): Add comment.
13623         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
13624         (main): New function for interactive testing.
13625
13626 2011-01-25  Bruno Haible  <bruno@clisp.org>
13627
13628         vma-iter: Treat Haiku like BeOS.
13629         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
13630         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
13631
13632 2011-01-25  Eric Blake  <eblake@redhat.com>
13633
13634         c-stack: fix regression on cygwin when libsigsegv is present
13635         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
13636
13637 2011-01-24  Bruno Haible  <bruno@clisp.org>
13638
13639         vma-iter: Avoid empty intervals.
13640         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
13641         on an empty interval.
13642
13643 2011-01-24  Jim Meyering  <meyering@redhat.com>
13644
13645         u64: remove unnecessary #include
13646         * lib/u64.h: Don't include <stddef.h>.  It was not used.
13647
13648 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
13649
13650         Allow the user to avoid the HAVE_RAW_DECL_* macros.
13651         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
13652
13653 2011-01-23  Bruno Haible  <bruno@clisp.org>
13654
13655         New module 'vma-iter'.
13656         * lib/vma-iter.h: New file.
13657         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
13658         * modules/vma-iter: New file.
13659         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
13660         for get_rusage_as_via_iterator.
13661         (vma_iterate_callback): New function.
13662         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
13663         * modules/get-rusage-as (Depends-on): Add vma-iter.
13664
13665 2011-01-23  Bruno Haible  <bruno@clisp.org>
13666
13667         uninorm: Tweak includes.
13668         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
13669         Reported by Jim Meyering.
13670
13671 2011-01-23  Bruno Haible  <bruno@clisp.org>
13672
13673         get-rusage-as: Improve on NetBSD.
13674         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
13675         /proc, like on FreeBSD.
13676
13677 2011-01-23  Jim Meyering  <meyering@redhat.com>
13678
13679         xreadlink.h: remove unnecessary #include
13680         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
13681
13682         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
13683         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
13684
13685 2011-01-23  Bruno Haible  <bruno@clisp.org>
13686
13687         get-rusage-as: Fix bug.
13688         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
13689         original limit when aborting the first loop.
13690
13691 2011-01-23  Bruno Haible  <bruno@clisp.org>
13692
13693         wctype: Ensure valid C syntax.
13694         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
13695         unconditionally, instead of gl_NEXT_HEADERS conditionally.
13696
13697 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
13698
13699         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
13700         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
13701         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
13702         as they are needed only for configure's test case.
13703         This removes two unnecessary symbols from config.h.
13704
13705         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
13706         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
13707         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
13708         AC_CHECK_HEADERS_ONCE on a header that we also invoke
13709         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
13710         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
13711         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
13712         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
13713         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
13714         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13715         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
13716         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
13717         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
13718         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13719         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
13720         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13721         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
13722         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
13723
13724 2011-01-21  Eric Blake  <eblake@redhat.com>
13725
13726         maintainer-makefile: work with older git for submodule check
13727         * top/maint.mk (public-submodule-commit): Rewrite to avoid
13728         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
13729         Reported by Matthias Bolte.
13730
13731         bootstrap: minor portability fixes
13732         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
13733         (usage): Omit leading capital and trailing . on help phrases, per
13734         GNU Coding Standards.
13735         (check_versions, top level): Prefix messages with script name.
13736
13737 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
13738
13739         bootstrap: support --no-git option
13740         * build-aux/bootstrap: Add --no-git option, to be used when
13741         --gnulib-srcdir points to the exact desired checkout.
13742
13743 2011-01-21  Eric Blake  <eblake@redhat.com>
13744
13745         strerror_r-posix: work with glibc 2.13
13746         * lib/strerror_r.c (strerror_r): Fix return type.
13747
13748 2011-01-21  Pádraig Brady  <P@draigBrady.com>
13749             Bruno Haible  <bruno@clisp.org>
13750
13751         uN_strstr: New unit tests.
13752         * modules/unistr/u8-strstr-tests: New file.
13753         * modules/unistr/u16-strstr-tests: New file.
13754         * modules/unistr/u32-strstr-tests: New file.
13755         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
13756         * tests/unistr/test-u8-strstr.c: New file.
13757         * tests/unistr/test-u16-strstr.c: New file.
13758         * tests/unistr/test-u32-strstr.c: New file.
13759
13760 2011-01-21  Pádraig Brady  <P@draigBrady.com>
13761             Bruno Haible  <bruno@clisp.org>
13762
13763         Make uN_strstr functions O(n) worst-case.
13764         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
13765         16-bit and 32-bit unit cases, use the unibyte algorithm from
13766         lib/mbsstr.c.
13767         * lib/unistr/u8-strstr.c: Include <string.h>.
13768         (UNIT_IS_UINT8_T): New macro.
13769         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
13770         (U_STRLEN, U_STRNLEN): New macros.
13771         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
13772         (U_STRLEN, U_STRNLEN): New macros.
13773         * modules/unistr/u8-strstr (Depends-on): Add strstr.
13774         (configure.ac): Update required libunistring version.
13775         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
13776         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
13777         malloca.
13778         (configure.ac): Update required libunistring version.
13779         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
13780         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
13781         malloca.
13782         (configure.ac): Update required libunistring version.
13783
13784 2011-01-21  Pádraig Brady  <P@draigBrady.com>
13785             Bruno Haible  <bruno@clisp.org>
13786
13787         Prepare for faster uN_strstr functions.
13788         * lib/str-kmp.h: Support definable UNITs.
13789         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
13790         needle_len argument.
13791         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
13792         * lib/mbscasestr.c (mbscasestr): Likewise.
13793
13794 2011-01-21  Pádraig Brady <P@draigBrady.com>
13795
13796         malloca-tests: make faster by unsetting MALLOC_PERTURB_
13797         * tests/test-malloca.c (main): Unset the environment variable
13798         to greatly speed up the test.
13799         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
13800         * modules/malloca-tests: Depend on unsetenv.
13801
13802 2011-01-21  Pádraig Brady <P@draigBrady.com>
13803
13804         ignore-value: remove stdint dependency
13805         * lib/ignore-value.h: Remove <stdint.h>
13806         * modules/ignore-value: Remove stdint dependency.
13807
13808 2011-01-21  Jim Meyering  <meyering@redhat.com>
13809
13810         maint.mk: adjust variable name to be consistent with other gl_ vars
13811         * top/maint.mk (gl_public_submodule_commit): Rename the variable
13812         to be lower case.
13813
13814 2011-01-20  Jim Meyering  <meyering@redhat.com>
13815
13816         maint.mk: make "check" depend on public-submodule-commit by default
13817         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
13818
13819 2011-01-20  Bruno Haible  <bruno@clisp.org>
13820
13821         mbfile, mbiter: Complete change from 2008-12-21.
13822         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
13823         * m4/mbiter.m4 (gl_MBITER): Likewise.
13824
13825 2011-01-20  Jim Meyering  <meyering@redhat.com>
13826
13827         init.sh: insert space between each function name and "()"
13828         * tests/init.sh: Make it a little easier to see that a function's
13829         name is "warn_", and not "warn" when looking at the first part of
13830         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
13831
13832 2011-01-20  Jim Meyering  <meyering@redhat.com>
13833
13834         mountlist: clean up code formatting
13835         * lib/mountlist.c (read_file_system_list): Split a long line,
13836         correct bracing style, use NULL in place of "(struct statfs *)0",
13837         don't parenthesize return value, add spaces around "=" and after
13838         ";-in-for-stmt".
13839
13840 2011-01-14  Markus Duft <mduft@gentoo.org>
13841
13842         mountlist: add support for Interix
13843         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
13844         Apply statvfs to all entries of /dev/fs.
13845         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
13846         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
13847
13848 2011-01-20  Jim Meyering  <meyering@redhat.com>
13849
13850         maint.mk: improve the public-submodule-commit rule
13851         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
13852         to suppress printing of its commands... unless V=1.
13853         Add git submodule's --quiet option to suppress printing of e.g.,
13854         "Entering gnulib" output.
13855         "cd" into $(srcdir) before running git submodule.
13856
13857 2011-01-20  Bruno Haible  <bruno@clisp.org>
13858
13859         include_next: Fix bug introduced on 2011-01-18.
13860         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
13861         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
13862         ac_cv_header_... variable if the second argument is not 'check'.
13863         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
13864         gl_NEXT_HEADERS_INTERNAL.
13865
13866 2011-01-20  Bruno Haible  <bruno@clisp.org>
13867
13868         Allow the user to avoid the GNULIB_TEST_* macros.
13869         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
13870         Suggested by Paul Eggert.
13871
13872 2011-01-14  Jim Meyering  <meyering@redhat.com>
13873
13874         bootstrap: avoid failure when there is no .gitmodules file
13875         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
13876         has been assigned to, even when its value is the empty string.
13877         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
13878         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
13879         Reported by John W. Eaton <jwe@gnu.org>.
13880
13881 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
13882
13883         assume <ctype.h>, ..., <time.h> exist
13884         For years gnulib has been assuming the existence of the headers
13885         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
13886         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
13887         them, since they don't appear to be needed.
13888         * README (Portability guidelines): Document this.
13889         * lib/flock.c: Assume <fcntl.h> exists.
13890         * lib/regex_internal.h: Assume <locale.h> exists.
13891         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
13892         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
13893         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
13894         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
13895         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
13896         * m4/regex.m4 (gl_REGEX): Likewise.
13897         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
13898         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
13899         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
13900         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
13901         * tests/test-argp.c: Likewise.
13902         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
13903
13904         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
13905         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
13906         AA_APPLE_UNIVERSAL_BUILD.  See
13907         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
13908         * NEWS: Document this.
13909
13910 2011-01-19  Eric Blake  <eblake@redhat.com>
13911
13912         c-stack: assume stack overflow if SA_SIGINFO unsupported
13913         * lib/c-stack.c (SIGACTION_WORKS): Rename...
13914         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
13915         sigaction will work.
13916         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
13917         behavior match Linux.
13918         * tests/test-c-stack.c (main): Prefer NULL for pointers.
13919
13920         stdbool-tests: accomodate Haiku
13921         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
13922
13923         binary-io: fix O_TEXT on Haiku
13924         * modules/binary-io (Depends-on): Add fcntl-h.
13925         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
13926         than blindly undefining O_TEXT.
13927         Reported by Scott McCreary.
13928
13929 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
13930
13931         include_next: do not check for standard headers like stddef.h
13932
13933         I found this problem when modifying Emacs to use gnulib.
13934         I noticed that it added HAVE_STDDEF_H to config.h, even though
13935         gnulib always assumes <stddef.h> exists as per README and this
13936         symbol is unnecessary.
13937         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
13938         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
13939         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
13940         faster for headers like stddef.h that are known to exist.
13941         (gl_CHECK_NEXT_HEADERS): Use it.
13942         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
13943         rather than gl_CHECK_NEXT_HEADERS.
13944         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
13945         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
13946
13947 2011-01-18  Eric Blake  <eblake@redhat.com>
13948
13949         ansi-c++-opt: skip C++ dependency style if C++ is unused
13950         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
13951         tests when we know C++ compilation is not desired.
13952         Reported by Scott McCreary.
13953
13954 2011-01-18  Bruno Haible  <bruno@clisp.org>
13955
13956         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
13957         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
13958         (main): Perform test also when getrlimit and setrlimit don't exist or
13959         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
13960         limiting the address space size using setrlimit, compare the address
13961         space size before and after the the test.
13962         * tests/test-dprintf-posix2.c: Likewise.
13963         * tests/test-fprintf-posix3.sh: Update skip messages.
13964         * tests/test-dprintf-posix2.sh: Likewise.
13965         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
13966         * modules/dprintf-posix-tests (Depends-on): Likewise.
13967         Reported by Bruce Korb <bkorb@gnu.org> and
13968         Gary V. Vaughan <gary@gnu.org>.
13969
13970 2011-01-18  Bruno Haible  <bruno@clisp.org>
13971
13972         get-rusage-as: Improvement for Cygwin.
13973         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
13974         areas that are merely reserved.
13975
13976 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
13977
13978         strftime: remove dependencies on multibyte modules
13979
13980         strftime depended on mbrlen, mbsinit, and wchar, but these modules
13981         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
13982         only if __osf__ is defined, and I suspect OSF doesn't need these
13983         other modules.  If my guess is wrong, we'll need to come up with a
13984         variant of strftime that doesn't need the multibyte modules.
13985
13986         I discovered this problem when attempting modify Emacs to use the
13987         strftime module.  With the previous gnulib, this caused Emacs to
13988         need 31 new files, ranging from lib/config.charset to
13989         m4/wint_t.m4.  This was overkill and I expect would be offputting
13990         to the Emacs maintainers.  After this change, only 6 new files are
13991         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
13992         stdbool.m4, and tm_gmtoff.m4.
13993
13994         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
13995         Suggested by Bruno Haible in
13996         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
13997         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
13998         and do not check for wchar.h.
13999         * modules/strftime (Files): Remove m4/mbstate_t.m4.
14000         (Depends-on): Remove mbrlen, mbsinit, wchar.
14001
14002 2011-01-18  Bruno Haible  <bruno@clisp.org>
14003
14004         Tests for module 'get-rusage-as'.
14005         * modules/get-rusage-as-tests: New file.
14006         * tests/test-get-rusage-as.c: New file.
14007
14008         New module 'get-rusage-as'.
14009         * modules/get-rusage-as: New file.
14010         * lib/resource-ext.h: New file.
14011         * lib/get-rusage-as.c: New file.
14012
14013 2011-01-17  Eric Blake  <eblake@redhat.com>
14014
14015         sigaction: relax license from LGPLv3+ to LGPLv2+
14016         * modules/sigaction (License): Relax to LGPLv2+.
14017
14018 2011-01-14  Bruno Haible  <bruno@clisp.org>
14019
14020         filemode: Make function declarations usable in C++ mode.
14021         * lib/filemode.h: Enclose function declarations in extern "C" block.
14022         Reported by John W. Eaton <jwe@gnu.org>.
14023
14024 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
14025
14026         save-cwd: no longer include "xgetcwd.h"
14027         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
14028         This avoids a compilation failure in projects that use save-cwd
14029         without also using the xgetcwd module.
14030
14031 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14032
14033         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
14034         This is so that a program like Emacs, which needs only dtoastr,
14035         does not have to bother with distributing and compiling ftoastr
14036         and ldtoastr.
14037         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
14038         * modules/dtoastr, modules/ldtoastr: New files.
14039         * modules/ftoastr: Now works just for 'float'.
14040         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
14041         (Makefile.am): Remove ftoastr.h (not needed and no effect),
14042         dtoastr.c, ldtoastr.c.
14043
14044 2011-01-11  Jim Meyering  <meyering@redhat.com>
14045
14046         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
14047         There is no need to work around the lack of the fchdir function,
14048         since gnulib can now provide a replacement when required.
14049         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
14050         * modules/save-cwd (Depends-on): Add fchdir.
14051
14052 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
14053
14054         openat, save-cwd: avoid xmalloc
14055
14056         This removes a direct (but undocumented) dependency of openat on
14057         xalloc, along with an indirect dependency via save-cwd.  It also
14058         removes a dependency of save-cwd on xgetcwd, and thereby
14059         indirectly on xalloc.  This change causes the openat substitute
14060         to fall back on save_cwd when memory is tight, and for save_cwd to
14061         fail instead of dying when memory is tight, but that's good enough.
14062         Problem and initial idea for fix reported by Bastien Roucaries in
14063         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
14064
14065         * lib/openat-proc.c: Include stdlib.h (for malloc), not
14066         xalloc.h (for xmalloc).
14067         (openat_proc_name): Use malloc, not xmalloc.
14068         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
14069         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
14070
14071         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
14072         This avoids heap allocation for file names whose lengths are in
14073         the range 512..1023, with the upper bound increasing to at most
14074         4031 depending on the platform's PATH_MAX.  (We do not want
14075         pathmax.h here as it might supply a non-constant PATH_MAX.)
14076         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
14077         Perhaps they should be moved to malloca.h?
14078         (OPENAT_BUFFER_SIZE): Use them.
14079
14080 2011-01-10  Bruno Haible  <bruno@clisp.org>
14081
14082         doc: Update users.txt.
14083         * users.txt: Add recutils.
14084
14085 2011-01-09  Karl Berry  <karl@gnu.org>
14086
14087         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
14088
14089         * doc/configmake.texi: New file.
14090         * doc/gnulib.texi: Include it.
14091         * modules/configmake: Move documentation from here.
14092
14093 2011-01-09  Bruno Haible  <bruno@clisp.org>
14094
14095         Update to Unicode 6.0.0.
14096         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
14097         (get_lbp): Update for Unicode 6.0.0.
14098         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
14099         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
14100         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
14101         U+11001, U+11038..U+11046. Remove U+06DE.
14102         (uc_width): Fix bounds of planes.
14103         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14104         lib/uniwidth/width.c.
14105         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
14106         trailing whitespace removed.
14107         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
14108         without comments, but with the original copyright notice.
14109         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
14110         * lib/unicase/ignorable.h: Likewise.
14111         * lib/unicase/tocasefold.h: Likewise.
14112         * lib/unicase/tolower.h: Likewise.
14113         * lib/unicase/totitle.h: Likewise.
14114         * lib/unicase/toupper.h: Likewise.
14115         * lib/unictype/bidi_of.h: Likewise.
14116         * lib/unictype/blocks.h: Likewise.
14117         * lib/unictype/categ_C.h: Likewise.
14118         * lib/unictype/categ_Cn.h: Likewise.
14119         * lib/unictype/categ_L.h: Likewise.
14120         * lib/unictype/categ_Ll.h: Likewise.
14121         * lib/unictype/categ_Lm.h: Likewise.
14122         * lib/unictype/categ_Lo.h: Likewise.
14123         * lib/unictype/categ_Lu.h: Likewise.
14124         * lib/unictype/categ_M.h: Likewise.
14125         * lib/unictype/categ_Mc.h: Likewise.
14126         * lib/unictype/categ_Me.h: Likewise.
14127         * lib/unictype/categ_Mn.h: Likewise.
14128         * lib/unictype/categ_N.h: Likewise.
14129         * lib/unictype/categ_Nd.h: Likewise.
14130         * lib/unictype/categ_No.h: Likewise.
14131         * lib/unictype/categ_P.h: Likewise.
14132         * lib/unictype/categ_Po.h: Likewise.
14133         * lib/unictype/categ_S.h: Likewise.
14134         * lib/unictype/categ_Sc.h: Likewise.
14135         * lib/unictype/categ_Sk.h: Likewise.
14136         * lib/unictype/categ_Sm.h: Likewise.
14137         * lib/unictype/categ_So.h: Likewise.
14138         * lib/unictype/categ_of.h: Likewise.
14139         * lib/unictype/combining.h: Likewise.
14140         * lib/unictype/ctype_alnum.h: Likewise.
14141         * lib/unictype/ctype_alpha.h: Likewise.
14142         * lib/unictype/ctype_graph.h: Likewise.
14143         * lib/unictype/ctype_lower.h: Likewise.
14144         * lib/unictype/ctype_print.h: Likewise.
14145         * lib/unictype/ctype_punct.h: Likewise.
14146         * lib/unictype/ctype_upper.h: Likewise.
14147         * lib/unictype/decdigit.h: Likewise.
14148         * lib/unictype/digit.h: Likewise.
14149         * lib/unictype/numeric.h: Likewise.
14150         * lib/unictype/pr_alphabetic.h: Likewise.
14151         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
14152         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
14153         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
14154         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
14155         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
14156         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
14157         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
14158         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
14159         * lib/unictype/pr_case_ignorable.h: Likewise.
14160         * lib/unictype/pr_cased.h: Likewise.
14161         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
14162         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
14163         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
14164         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
14165         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
14166         * lib/unictype/pr_combining.h: Likewise.
14167         * lib/unictype/pr_composite.h: Likewise.
14168         * lib/unictype/pr_currency_symbol.h: Likewise.
14169         * lib/unictype/pr_decimal_digit.h: Likewise.
14170         * lib/unictype/pr_deprecated.h: Likewise.
14171         * lib/unictype/pr_format_control.h: Likewise.
14172         * lib/unictype/pr_grapheme_base.h: Likewise.
14173         * lib/unictype/pr_grapheme_extend.h: Likewise.
14174         * lib/unictype/pr_grapheme_link.h: Likewise.
14175         * lib/unictype/pr_id_continue.h: Likewise.
14176         * lib/unictype/pr_id_start.h: Likewise.
14177         * lib/unictype/pr_ideographic.h: Likewise.
14178         * lib/unictype/pr_lowercase.h: Likewise.
14179         * lib/unictype/pr_math.h: Likewise.
14180         * lib/unictype/pr_numeric.h: Likewise.
14181         * lib/unictype/pr_other_alphabetic.h: Likewise.
14182         * lib/unictype/pr_other_id_continue.h: Likewise.
14183         * lib/unictype/pr_other_math.h: Likewise.
14184         * lib/unictype/pr_punctuation.h: Likewise.
14185         * lib/unictype/pr_sentence_terminal.h: Likewise.
14186         * lib/unictype/pr_terminal_punctuation.h: Likewise.
14187         * lib/unictype/pr_unassigned_code_value.h: Likewise.
14188         * lib/unictype/pr_unified_ideograph.h: Likewise.
14189         * lib/unictype/pr_uppercase.h: Likewise.
14190         * lib/unictype/pr_xid_continue.h: Likewise.
14191         * lib/unictype/pr_xid_start.h: Likewise.
14192         * lib/unictype/scripts.h: Likewise.
14193         * lib/unictype/scripts_byname.gperf: Likewise.
14194         * lib/unictype/sy_java_ident.h: Likewise.
14195         * lib/unigbrk/gbrkprop.h: Likewise.
14196         * lib/unilbrk/lbrkprop1.h: Likewise.
14197         * lib/unilbrk/lbrkprop2.h: Likewise.
14198         * lib/uninorm/decomposition-table2.h: Likewise.
14199         * lib/uniwbrk/wbrkprop.h: Likewise.
14200         * tests/unicase/test-cased.c: Likewise.
14201         * tests/unicase/test-ignorable.c: Likewise.
14202         * tests/unicase/test-uc_tolower.c: Likewise.
14203         * tests/unicase/test-uc_totitle.c: Likewise.
14204         * tests/unicase/test-uc_toupper.c: Likewise.
14205         * tests/unictype/test-categ_C.c: Likewise.
14206         * tests/unictype/test-categ_Cn.c: Likewise.
14207         * tests/unictype/test-categ_L.c: Likewise.
14208         * tests/unictype/test-categ_Ll.c: Likewise.
14209         * tests/unictype/test-categ_Lm.c: Likewise.
14210         * tests/unictype/test-categ_Lo.c: Likewise.
14211         * tests/unictype/test-categ_Lu.c: Likewise.
14212         * tests/unictype/test-categ_M.c: Likewise.
14213         * tests/unictype/test-categ_Mc.c: Likewise.
14214         * tests/unictype/test-categ_Me.c: Likewise.
14215         * tests/unictype/test-categ_Mn.c: Likewise.
14216         * tests/unictype/test-categ_N.c: Likewise.
14217         * tests/unictype/test-categ_Nd.c: Likewise.
14218         * tests/unictype/test-categ_No.c: Likewise.
14219         * tests/unictype/test-categ_P.c: Likewise.
14220         * tests/unictype/test-categ_Po.c: Likewise.
14221         * tests/unictype/test-categ_S.c: Likewise.
14222         * tests/unictype/test-categ_Sc.c: Likewise.
14223         * tests/unictype/test-categ_Sk.c: Likewise.
14224         * tests/unictype/test-categ_Sm.c: Likewise.
14225         * tests/unictype/test-categ_So.c: Likewise.
14226         * tests/unictype/test-ctype_alnum.c: Likewise.
14227         * tests/unictype/test-ctype_alpha.c: Likewise.
14228         * tests/unictype/test-ctype_graph.c: Likewise.
14229         * tests/unictype/test-ctype_lower.c: Likewise.
14230         * tests/unictype/test-ctype_print.c: Likewise.
14231         * tests/unictype/test-ctype_punct.c: Likewise.
14232         * tests/unictype/test-ctype_upper.c: Likewise.
14233         * tests/unictype/test-decdigit.h: Likewise.
14234         * tests/unictype/test-digit.h: Likewise.
14235         * tests/unictype/test-numeric.h: Likewise.
14236         * tests/unictype/test-pr_alphabetic.c: Likewise.
14237         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
14238         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
14239         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
14240         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
14241         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
14242         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
14243         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
14244         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
14245         * tests/unictype/test-pr_case_ignorable.c: Likewise.
14246         * tests/unictype/test-pr_cased.c: Likewise.
14247         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
14248         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
14249         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
14250         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
14251         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
14252         * tests/unictype/test-pr_combining.c: Likewise.
14253         * tests/unictype/test-pr_composite.c: Likewise.
14254         * tests/unictype/test-pr_currency_symbol.c: Likewise.
14255         * tests/unictype/test-pr_decimal_digit.c: Likewise.
14256         * tests/unictype/test-pr_deprecated.c: Likewise.
14257         * tests/unictype/test-pr_format_control.c: Likewise.
14258         * tests/unictype/test-pr_grapheme_base.c: Likewise.
14259         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
14260         * tests/unictype/test-pr_grapheme_link.c: Likewise.
14261         * tests/unictype/test-pr_id_continue.c: Likewise.
14262         * tests/unictype/test-pr_id_start.c: Likewise.
14263         * tests/unictype/test-pr_ideographic.c: Likewise.
14264         * tests/unictype/test-pr_lowercase.c: Likewise.
14265         * tests/unictype/test-pr_math.c: Likewise.
14266         * tests/unictype/test-pr_numeric.c: Likewise.
14267         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
14268         * tests/unictype/test-pr_other_id_continue.c: Likewise.
14269         * tests/unictype/test-pr_other_math.c: Likewise.
14270         * tests/unictype/test-pr_punctuation.c: Likewise.
14271         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
14272         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
14273         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
14274         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
14275         * tests/unictype/test-pr_uppercase.c: Likewise.
14276         * tests/unictype/test-pr_xid_continue.c: Likewise.
14277         * tests/unictype/test-pr_xid_start.c: Likewise.
14278         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
14279         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
14280         changes.
14281         * lib/unictype/categ_Cc.h: Likewise.
14282         * lib/unictype/categ_Cf.h: Likewise.
14283         * lib/unictype/categ_Co.h: Likewise.
14284         * lib/unictype/categ_Cs.h: Likewise.
14285         * lib/unictype/categ_Lt.h: Likewise.
14286         * lib/unictype/categ_Nl.h: Likewise.
14287         * lib/unictype/categ_Pc.h: Likewise.
14288         * lib/unictype/categ_Pd.h: Likewise.
14289         * lib/unictype/categ_Pe.h: Likewise.
14290         * lib/unictype/categ_Pf.h: Likewise.
14291         * lib/unictype/categ_Pi.h: Likewise.
14292         * lib/unictype/categ_Ps.h: Likewise.
14293         * lib/unictype/categ_Z.h: Likewise.
14294         * lib/unictype/categ_Zl.h: Likewise.
14295         * lib/unictype/categ_Zp.h: Likewise.
14296         * lib/unictype/categ_Zs.h: Likewise.
14297         * lib/unictype/ctype_blank.h: Likewise.
14298         * lib/unictype/ctype_cntrl.h: Likewise.
14299         * lib/unictype/ctype_digit.h: Likewise.
14300         * lib/unictype/ctype_space.h: Likewise.
14301         * lib/unictype/ctype_xdigit.h: Likewise.
14302         * lib/unictype/mirror.h: Likewise.
14303         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
14304         * lib/unictype/pr_bidi_block_separator.h: Likewise.
14305         * lib/unictype/pr_bidi_common_separator.h: Likewise.
14306         * lib/unictype/pr_bidi_control.h: Likewise.
14307         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
14308         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
14309         * lib/unictype/pr_bidi_european_digit.h: Likewise.
14310         * lib/unictype/pr_bidi_pdf.h: Likewise.
14311         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
14312         * lib/unictype/pr_bidi_whitespace.h: Likewise.
14313         * lib/unictype/pr_dash.h: Likewise.
14314         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
14315         * lib/unictype/pr_diacritic.h: Likewise.
14316         * lib/unictype/pr_extender.h: Likewise.
14317         * lib/unictype/pr_hex_digit.h: Likewise.
14318         * lib/unictype/pr_hyphen.h: Likewise.
14319         * lib/unictype/pr_ids_binary_operator.h: Likewise.
14320         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
14321         * lib/unictype/pr_ignorable_control.h: Likewise.
14322         * lib/unictype/pr_iso_control.h: Likewise.
14323         * lib/unictype/pr_join_control.h: Likewise.
14324         * lib/unictype/pr_left_of_pair.h: Likewise.
14325         * lib/unictype/pr_line_separator.h: Likewise.
14326         * lib/unictype/pr_logical_order_exception.h: Likewise.
14327         * lib/unictype/pr_non_break.h: Likewise.
14328         * lib/unictype/pr_not_a_character.h: Likewise.
14329         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
14330         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
14331         * lib/unictype/pr_other_id_start.h: Likewise.
14332         * lib/unictype/pr_other_lowercase.h: Likewise.
14333         * lib/unictype/pr_other_uppercase.h: Likewise.
14334         * lib/unictype/pr_paired_punctuation.h: Likewise.
14335         * lib/unictype/pr_paragraph_separator.h: Likewise.
14336         * lib/unictype/pr_pattern_syntax.h: Likewise.
14337         * lib/unictype/pr_pattern_white_space.h: Likewise.
14338         * lib/unictype/pr_private_use.h: Likewise.
14339         * lib/unictype/pr_quotation_mark.h: Likewise.
14340         * lib/unictype/pr_radical.h: Likewise.
14341         * lib/unictype/pr_soft_dotted.h: Likewise.
14342         * lib/unictype/pr_space.h: Likewise.
14343         * lib/unictype/pr_titlecase.h: Likewise.
14344         * lib/unictype/pr_variation_selector.h: Likewise.
14345         * lib/unictype/pr_white_space.h: Likewise.
14346         * lib/unictype/pr_zero_width.h: Likewise.
14347         * lib/unictype/sy_c_ident.h: Likewise.
14348         * lib/unictype/sy_c_whitespace.h: Likewise.
14349         * lib/unictype/sy_java_whitespace.h: Likewise.
14350         * lib/uninorm/composition-table.gperf: Likewise.
14351         * lib/uninorm/decomposition-table1.h: Likewise.
14352         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
14353         LB8.
14354         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
14355         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
14356         * modules/unictype/*: Bump version number of expected libunistring
14357         version.
14358
14359 2011-01-09  Bruno Haible  <bruno@clisp.org>
14360
14361         Update to Unicode 5.2.0.
14362         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
14363         trailing whitespace removed.
14364
14365 2011-01-09  Bruno Haible  <bruno@clisp.org>
14366
14367         New Unicode character properties, from Unicode 5.2.0.
14368         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
14369         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
14370         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
14371         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
14372         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
14373         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
14374         uc_is_property_cased, uc_is_property_case_ignorable,
14375         uc_is_property_changes_when_lowercased,
14376         uc_is_property_changes_when_uppercased,
14377         uc_is_property_changes_when_titlecased,
14378         uc_is_property_changes_when_casefolded,
14379         uc_is_property_changes_when_casemapped): New declarations.
14380         * lib/unictype/pr_byname.gperf: Add the new properties.
14381         * modules/unictype/property-byname (Depends-on): Depend on the new
14382         properties modules.
14383         * modules/unictype/property-all (Depends-on): Likewise.
14384         * MODULES.html.sh (Unicode string functions): Add
14385         unictype/property-case-ignorable, unictype/property-cased,
14386         unictype/property-changes-when-casefolded,
14387         unictype/property-changes-when-casemapped,
14388         unictype/property-changes-when-lowercased,
14389         unictype/property-changes-when-titlecased,
14390         unictype/property-changes-when-uppercased.
14391
14392         New module 'unictype/property-changes-when-casemapped'.
14393         * modules/unictype/property-changes-when-casemapped: New file.
14394         * lib/unictype/pr_changes_when_casemapped.c: New file.
14395         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
14396         generated by gen-uni-tables.
14397         * modules/unictype/property-changes-when-casemapped-tests: New file.
14398         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
14399         automatically generated by gen-uni-tables.
14400
14401         New module 'unictype/property-changes-when-casefolded'.
14402         * modules/unictype/property-changes-when-casefolded: New file.
14403         * lib/unictype/pr_changes_when_casefolded.c: New file.
14404         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
14405         generated by gen-uni-tables.
14406         * modules/unictype/property-changes-when-casefolded-tests: New file.
14407         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
14408         automatically generated by gen-uni-tables.
14409
14410         New module 'unictype/property-changes-when-titlecased'.
14411         * modules/unictype/property-changes-when-titlecased: New file.
14412         * lib/unictype/pr_changes_when_titlecased.c: New file.
14413         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
14414         generated by gen-uni-tables.
14415         * modules/unictype/property-changes-when-titlecased-tests: New file.
14416         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
14417         automatically generated by gen-uni-tables.
14418
14419         New module 'unictype/property-changes-when-uppercased'.
14420         * modules/unictype/property-changes-when-uppercased: New file.
14421         * lib/unictype/pr_changes_when_uppercased.c: New file.
14422         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
14423         generated by gen-uni-tables.
14424         * modules/unictype/property-changes-when-uppercased-tests: New file.
14425         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
14426         automatically generated by gen-uni-tables.
14427
14428         New module 'unictype/property-changes-when-lowercased'.
14429         * modules/unictype/property-changes-when-lowercased: New file.
14430         * lib/unictype/pr_changes_when_lowercased.c: New file.
14431         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
14432         generated by gen-uni-tables.
14433         * modules/unictype/property-changes-when-lowercased-tests: New file.
14434         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
14435         automatically generated by gen-uni-tables.
14436
14437         New module 'unictype/property-case-ignorable'.
14438         * modules/unictype/property-case-ignorable: New file.
14439         * lib/unictype/pr_case_ignorable.c: New file.
14440         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
14441         by gen-uni-tables.
14442         * modules/unictype/property-case-ignorable-tests: New file.
14443         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
14444         generated by gen-uni-tables.
14445
14446         New module 'unictype/property-cased'.
14447         * modules/unictype/property-cased: New file.
14448         * lib/unictype/pr_cased.c: New file.
14449         * lib/unictype/pr_cased.h: New file, automatically generated by
14450         gen-uni-tables.
14451         * modules/unictype/property-cased-tests: New file.
14452         * tests/unictype/test-pr_cased.c: New file, automatically generated by
14453         gen-uni-tables.
14454
14455 2011-01-09  Bruno Haible  <bruno@clisp.org>
14456
14457         Update to Unicode 5.2.0.
14458         * lib/gen-uni-tables.c (output_predicate, output_category,
14459         output_combclass, output_bidi_category, output_decimal_digit_test,
14460         output_decimal_digit, output_digit_test, output_digit,
14461         output_numeric_test, output_numeric, output_mirror, output_scripts,
14462         output_scripts_byname, output_blocks, output_ident_category): Fix
14463         comment header.
14464         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
14465         get_wbp.
14466         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
14467         items.
14468         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
14469         Changes_When_Lowercased, Changes_When_Uppercased,
14470         Changes_When_Titlecased, Changes_When_Casefolded,
14471         Changes_When_Casemapped.
14472         (is_property_alphabetic, is_property_default_ignorable_code_point):
14473         Update for Unicode 5.2.0.
14474         (is_property_cased, is_property_case_ignorable,
14475         is_property_changes_when_lowercased,
14476         is_property_changes_when_uppercased,
14477         is_property_changes_when_titlecased,
14478         is_property_changes_when_casefolded,
14479         is_property_changes_when_casemapped): New functions.
14480         (output_properties): Output also the properties cased, case_ignorable,
14481         changes_when_lowercased, changes_when_uppercased,
14482         changes_when_titlecased, changes_when_casefolded,
14483         changes_when_casemapped.
14484         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
14485         Unicode TR#11 revision 17 -> 19.
14486         (LBP_CP): New enumeration value.
14487         (LBP_*): Adjust values accordingly.
14488         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
14489         TR#14 revision 22 -> 24.
14490         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
14491         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
14492         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
14493         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
14494         is_WBP_MIDLETTER.
14495         (output_composition_tables): Allow for 24 bits instead of 16 bits in
14496         the code1 and code2 of each composition rule.
14497         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
14498         * lib/unicase/ignorable.h: Likewise.
14499         * lib/unicase/tocasefold.h: Likewise.
14500         * lib/unicase/tolower.h: Likewise.
14501         * lib/unicase/totitle.h: Likewise.
14502         * lib/unicase/toupper.h: Likewise.
14503         * lib/unictype/bidi_of.h: Likewise.
14504         * lib/unictype/blocks.h: Likewise.
14505         * lib/unictype/categ_C.h: Likewise.
14506         * lib/unictype/categ_Cf.h: Likewise.
14507         * lib/unictype/categ_Cn.h: Likewise.
14508         * lib/unictype/categ_L.h: Likewise.
14509         * lib/unictype/categ_Ll.h: Likewise.
14510         * lib/unictype/categ_Lm.h: Likewise.
14511         * lib/unictype/categ_Lo.h: Likewise.
14512         * lib/unictype/categ_Lu.h: Likewise.
14513         * lib/unictype/categ_M.h: Likewise.
14514         * lib/unictype/categ_Mc.h: Likewise.
14515         * lib/unictype/categ_Mn.h: Likewise.
14516         * lib/unictype/categ_N.h: Likewise.
14517         * lib/unictype/categ_Nd.h: Likewise.
14518         * lib/unictype/categ_Nl.h: Likewise.
14519         * lib/unictype/categ_No.h: Likewise.
14520         * lib/unictype/categ_P.h: Likewise.
14521         * lib/unictype/categ_Pd.h: Likewise.
14522         * lib/unictype/categ_Po.h: Likewise.
14523         * lib/unictype/categ_S.h: Likewise.
14524         * lib/unictype/categ_Sc.h: Likewise.
14525         * lib/unictype/categ_So.h: Likewise.
14526         * lib/unictype/categ_of.h: Likewise.
14527         * lib/unictype/combining.h: Likewise.
14528         * lib/unictype/ctype_alnum.h: Likewise.
14529         * lib/unictype/ctype_alpha.h: Likewise.
14530         * lib/unictype/ctype_graph.h: Likewise.
14531         * lib/unictype/ctype_lower.h: Likewise.
14532         * lib/unictype/ctype_print.h: Likewise.
14533         * lib/unictype/ctype_punct.h: Likewise.
14534         * lib/unictype/ctype_upper.h: Likewise.
14535         * lib/unictype/decdigit.h: Likewise.
14536         * lib/unictype/digit.h: Likewise.
14537         * lib/unictype/numeric.h: Likewise.
14538         * lib/unictype/pr_alphabetic.h: Likewise.
14539         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
14540         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
14541         * lib/unictype/pr_bidi_european_digit.h: Likewise.
14542         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
14543         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
14544         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
14545         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
14546         * lib/unictype/pr_combining.h: Likewise.
14547         * lib/unictype/pr_composite.h: Likewise.
14548         * lib/unictype/pr_currency_symbol.h: Likewise.
14549         * lib/unictype/pr_dash.h: Likewise.
14550         * lib/unictype/pr_decimal_digit.h: Likewise.
14551         * lib/unictype/pr_deprecated.h: Likewise.
14552         * lib/unictype/pr_diacritic.h: Likewise.
14553         * lib/unictype/pr_extender.h: Likewise.
14554         * lib/unictype/pr_grapheme_base.h: Likewise.
14555         * lib/unictype/pr_grapheme_extend.h: Likewise.
14556         * lib/unictype/pr_grapheme_link.h: Likewise.
14557         * lib/unictype/pr_id_continue.h: Likewise.
14558         * lib/unictype/pr_id_start.h: Likewise.
14559         * lib/unictype/pr_ideographic.h: Likewise.
14560         * lib/unictype/pr_ignorable_control.h: Likewise.
14561         * lib/unictype/pr_logical_order_exception.h: Likewise.
14562         * lib/unictype/pr_lowercase.h: Likewise.
14563         * lib/unictype/pr_numeric.h: Likewise.
14564         * lib/unictype/pr_other_alphabetic.h: Likewise.
14565         * lib/unictype/pr_punctuation.h: Likewise.
14566         * lib/unictype/pr_sentence_terminal.h: Likewise.
14567         * lib/unictype/pr_terminal_punctuation.h: Likewise.
14568         * lib/unictype/pr_unassigned_code_value.h: Likewise.
14569         * lib/unictype/pr_unified_ideograph.h: Likewise.
14570         * lib/unictype/pr_uppercase.h: Likewise.
14571         * lib/unictype/pr_xid_continue.h: Likewise.
14572         * lib/unictype/pr_xid_start.h: Likewise.
14573         * lib/unictype/pr_zero_width.h: Likewise.
14574         * lib/unictype/scripts.h: Likewise.
14575         * lib/unictype/scripts_byname.gperf: Likewise.
14576         * lib/unictype/sy_java_ident.h: Likewise.
14577         * lib/unigbrk/gbrkprop.h: Likewise.
14578         * lib/unilbrk/lbrkprop1.h: Likewise.
14579         * lib/unilbrk/lbrkprop2.h: Likewise.
14580         * lib/unilbrk/lbrktables.h: Likewise.
14581         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
14582         LBP_CP. Implement rule LB30.
14583         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
14584         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
14585         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
14586         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
14587         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
14588         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
14589         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
14590         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
14591         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
14592         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
14593         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
14594         bits instead of 16 bits in the code1 and code2 of each composition
14595         rule.
14596         (uc_composition): Update for Unicode 5.2.0.
14597         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
14598         * lib/uninorm/decomposition-table2.h: Likewise.
14599         * lib/uniwbrk/wbrkprop.h: Likewise.
14600         * tests/unicase/test-cased.c: Likewise.
14601         * tests/unicase/test-ignorable.c: Likewise.
14602         * tests/unicase/test-uc_tolower.c: Likewise.
14603         * tests/unicase/test-uc_totitle.c: Likewise.
14604         * tests/unicase/test-uc_toupper.c: Likewise.
14605         * tests/unictype/test-categ_C.c: Likewise.
14606         * tests/unictype/test-categ_Cf.c: Likewise.
14607         * tests/unictype/test-categ_Cn.c: Likewise.
14608         * tests/unictype/test-categ_L.c: Likewise.
14609         * tests/unictype/test-categ_Ll.c: Likewise.
14610         * tests/unictype/test-categ_Lm.c: Likewise.
14611         * tests/unictype/test-categ_Lo.c: Likewise.
14612         * tests/unictype/test-categ_Lu.c: Likewise.
14613         * tests/unictype/test-categ_M.c: Likewise.
14614         * tests/unictype/test-categ_Mc.c: Likewise.
14615         * tests/unictype/test-categ_Mn.c: Likewise.
14616         * tests/unictype/test-categ_N.c: Likewise.
14617         * tests/unictype/test-categ_Nd.c: Likewise.
14618         * tests/unictype/test-categ_Nl.c: Likewise.
14619         * tests/unictype/test-categ_No.c: Likewise.
14620         * tests/unictype/test-categ_P.c: Likewise.
14621         * tests/unictype/test-categ_Pd.c: Likewise.
14622         * tests/unictype/test-categ_Po.c: Likewise.
14623         * tests/unictype/test-categ_S.c: Likewise.
14624         * tests/unictype/test-categ_Sc.c: Likewise.
14625         * tests/unictype/test-categ_So.c: Likewise.
14626         * tests/unictype/test-ctype_alnum.c: Likewise.
14627         * tests/unictype/test-ctype_alpha.c: Likewise.
14628         * tests/unictype/test-ctype_graph.c: Likewise.
14629         * tests/unictype/test-ctype_lower.c: Likewise.
14630         * tests/unictype/test-ctype_print.c: Likewise.
14631         * tests/unictype/test-ctype_punct.c: Likewise.
14632         * tests/unictype/test-ctype_upper.c: Likewise.
14633         * tests/unictype/test-decdigit.h: Likewise.
14634         * tests/unictype/test-digit.h: Likewise.
14635         * tests/unictype/test-numeric.h: Likewise.
14636         * tests/unictype/test-pr_alphabetic.c: Likewise.
14637         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
14638         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
14639         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
14640         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
14641         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
14642         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
14643         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
14644         * tests/unictype/test-pr_combining.c: Likewise.
14645         * tests/unictype/test-pr_composite.c: Likewise.
14646         * tests/unictype/test-pr_currency_symbol.c: Likewise.
14647         * tests/unictype/test-pr_dash.c: Likewise.
14648         * tests/unictype/test-pr_decimal_digit.c: Likewise.
14649         * tests/unictype/test-pr_deprecated.c: Likewise.
14650         * tests/unictype/test-pr_diacritic.c: Likewise.
14651         * tests/unictype/test-pr_extender.c: Likewise.
14652         * tests/unictype/test-pr_grapheme_base.c: Likewise.
14653         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
14654         * tests/unictype/test-pr_grapheme_link.c: Likewise.
14655         * tests/unictype/test-pr_id_continue.c: Likewise.
14656         * tests/unictype/test-pr_id_start.c: Likewise.
14657         * tests/unictype/test-pr_ideographic.c: Likewise.
14658         * tests/unictype/test-pr_ignorable_control.c: Likewise.
14659         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
14660         * tests/unictype/test-pr_lowercase.c: Likewise.
14661         * tests/unictype/test-pr_numeric.c: Likewise.
14662         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
14663         * tests/unictype/test-pr_punctuation.c: Likewise.
14664         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
14665         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
14666         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
14667         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
14668         * tests/unictype/test-pr_uppercase.c: Likewise.
14669         * tests/unictype/test-pr_xid_continue.c: Likewise.
14670         * tests/unictype/test-pr_xid_start.c: Likewise.
14671         * tests/unictype/test-pr_zero_width.c: Likewise.
14672         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
14673         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
14674         changed behaviour: line breaking is now disallowed between a letter
14675         or '=' and '('.
14676         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
14677         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
14678         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
14679         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
14680         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14681         lib/uniwidth/width.c.
14682         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
14683         without comments, but with the original copyright notice.
14684         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
14685         changes.
14686         * lib/unictype/categ_Cc.h: Likewise.
14687         * lib/unictype/categ_Co.h: Likewise.
14688         * lib/unictype/categ_Cs.h: Likewise.
14689         * lib/unictype/categ_Lt.h: Likewise.
14690         * lib/unictype/categ_Me.h: Likewise.
14691         * lib/unictype/categ_Pc.h: Likewise.
14692         * lib/unictype/categ_Pe.h: Likewise.
14693         * lib/unictype/categ_Pf.h: Likewise.
14694         * lib/unictype/categ_Pi.h: Likewise.
14695         * lib/unictype/categ_Ps.h: Likewise.
14696         * lib/unictype/categ_Sk.h: Likewise.
14697         * lib/unictype/categ_Sm.h: Likewise.
14698         * lib/unictype/categ_Z.h: Likewise.
14699         * lib/unictype/categ_Zl.h: Likewise.
14700         * lib/unictype/categ_Zp.h: Likewise.
14701         * lib/unictype/categ_Zs.h: Likewise.
14702         * lib/unictype/ctype_blank.h: Likewise.
14703         * lib/unictype/ctype_cntrl.h: Likewise.
14704         * lib/unictype/ctype_digit.h: Likewise.
14705         * lib/unictype/ctype_space.h: Likewise.
14706         * lib/unictype/ctype_xdigit.h: Likewise.
14707         * lib/unictype/mirror.h: Likewise.
14708         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
14709         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
14710         * lib/unictype/pr_bidi_block_separator.h: Likewise.
14711         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
14712         * lib/unictype/pr_bidi_common_separator.h: Likewise.
14713         * lib/unictype/pr_bidi_control.h: Likewise.
14714         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
14715         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
14716         * lib/unictype/pr_bidi_pdf.h: Likewise.
14717         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
14718         * lib/unictype/pr_bidi_whitespace.h: Likewise.
14719         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
14720         * lib/unictype/pr_format_control.h: Likewise.
14721         * lib/unictype/pr_hex_digit.h: Likewise.
14722         * lib/unictype/pr_hyphen.h: Likewise.
14723         * lib/unictype/pr_ids_binary_operator.h: Likewise.
14724         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
14725         * lib/unictype/pr_iso_control.h: Likewise.
14726         * lib/unictype/pr_join_control.h: Likewise.
14727         * lib/unictype/pr_left_of_pair.h: Likewise.
14728         * lib/unictype/pr_line_separator.h: Likewise.
14729         * lib/unictype/pr_math.h: Likewise.
14730         * lib/unictype/pr_non_break.h: Likewise.
14731         * lib/unictype/pr_not_a_character.h: Likewise.
14732         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
14733         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
14734         * lib/unictype/pr_other_id_continue.h: Likewise.
14735         * lib/unictype/pr_other_id_start.h: Likewise.
14736         * lib/unictype/pr_other_lowercase.h: Likewise.
14737         * lib/unictype/pr_other_math.h: Likewise.
14738         * lib/unictype/pr_other_uppercase.h: Likewise.
14739         * lib/unictype/pr_paired_punctuation.h: Likewise.
14740         * lib/unictype/pr_paragraph_separator.h: Likewise.
14741         * lib/unictype/pr_pattern_syntax.h: Likewise.
14742         * lib/unictype/pr_pattern_white_space.h: Likewise.
14743         * lib/unictype/pr_private_use.h: Likewise.
14744         * lib/unictype/pr_quotation_mark.h: Likewise.
14745         * lib/unictype/pr_radical.h: Likewise.
14746         * lib/unictype/pr_soft_dotted.h: Likewise.
14747         * lib/unictype/pr_space.h: Likewise.
14748         * lib/unictype/pr_titlecase.h: Likewise.
14749         * lib/unictype/pr_variation_selector.h: Likewise.
14750         * lib/unictype/pr_white_space.h: Likewise.
14751         * lib/unictype/sy_c_ident.h: Likewise.
14752         * lib/unictype/sy_c_whitespace.h: Likewise.
14753         * lib/unictype/sy_java_whitespace.h: Likewise.
14754         * modules/uni*/*: Bump version number of expected libunistring version.
14755         Reported by Simon Josefsson.
14756
14757 2011-01-09  Karl Heuer  <kwzh@gnu.org>
14758
14759         useless-if-before-free: fix typo in --help and make the internal,
14760         automatic version date update process work once again.
14761         --help output contained a NUL character instead of the
14762         backslash-zero that was intended.  Also, the "must lie within
14763         the first 8 lines" line is on line 9, and hence not getting
14764         automatically updated.
14765         * build-aux/useless-if-before-free: Fix the former by adding a
14766         backslash, and the latter by condensing the three lines of what-it-does
14767         to a single line, leaving one line of slack for the future.
14768
14769 2011-01-09  Bruno Haible  <bruno@clisp.org>
14770
14771         uniwidth/width: Fix width of U+1D173..U+1D17A.
14772         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
14773         symbolic_width, output_width_property_test): New functions.
14774         (main): Invoke output_nonspacing_property, output_width_property_test.
14775         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
14776         U+1D173..U+1D17A.
14777         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
14778         1.
14779         * modules/uniwidth/*: Bump version number of expected libunistring
14780         version.
14781         * modules/unilbrk/*: Likewise.
14782
14783 2011-01-08  Bruno Haible  <bruno@clisp.org>
14784
14785         uninorm tests: Preserve copyright of Unicode data file.
14786         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
14787         Mention modifications.
14788
14789 2011-01-08  Bruno Haible  <bruno@clisp.org>
14790
14791         gen-uni-tables: Prepare for Unicode 5.2.0.
14792         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
14793         (debug_output_lbp, output_lbp): Update.
14794
14795 2011-01-08  Bruno Haible  <bruno@clisp.org>
14796
14797         unilbrk: Clarify gen-uni-tables.c code.
14798         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
14799         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
14800         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
14801
14802 2011-01-07  Bruno Haible  <bruno@clisp.org>
14803
14804         strtod: Restore errno when successfully parsing Infinity or NaN.
14805         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
14806         restore the original errno.
14807
14808 2011-01-07  Bruno Haible  <bruno@clisp.org>
14809
14810         remove test: Avoid failure on HP-UX 11.
14811         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
14812
14813 2011-01-07  Bruno Haible  <bruno@clisp.org>
14814
14815         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
14816         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
14817         error code.
14818
14819 2011-01-07  Pádraig Brady <P@draigBrady.com>
14820
14821         ignore-value: fixup comments, and add Eric Blake
14822         as an author since he rewrote the macros.
14823         * lib/ignore-value.h (ignore_value):  State that
14824         we now support aggregates.  Also specify exactly
14825         when the GCC warn_unused_result feature was added.
14826
14827 2011-01-06  Eric Blake  <eblake@redhat.com>
14828
14829         ignore-value: support aggregate types
14830         * lib/ignore-value.h (ignore_value): Provide separate gcc
14831         definition.
14832         * modules/ignore-value-tests: New test module.
14833         * tests/test-ignore-value.c: New test.
14834
14835         maint.mk: improve sc_prohibit_strcmp regex
14836         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
14837         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
14838         definition of STRNEQ.
14839
14840         signal: work around Haiku issue with SIGBUS
14841         * lib/siglist.h: Add comment.
14842         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
14843         strsignal's favoring of SIGSEGV.
14844         * tests/test-signal.c (main): Avoid test failure.
14845         * doc/posix-headers/signal.texi (signal.h): Document the issue.
14846         Reported by Scott McCreary.
14847
14848         maint.mk: add pre-release check to ensure submodule commits are public
14849         * top/maint.mk (public-submodule-commit): New rule.
14850         (submodule-checks): New variable.
14851         (alpha beta stable): Depend on the variable.
14852
14853 2011-01-05  Pádraig Brady <P@draigBrady.com>
14854         and Jim Meyering  <meyering@redhat.com>
14855
14856         ignore-value: make ignore_value more generic; deprecate ignore_ptr
14857         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
14858         (ATTRIBUTE_DEPRECATED): Define.
14859         (_ignore_case): New function.
14860         (ignore_value): New macro, to replace the old function.
14861         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
14862         * modules/ignore-value (Depends-on): Add stdint.
14863
14864 2011-01-04  Eric Blake  <eblake@redhat.com>
14865
14866         doc: regenerate INSTALL
14867         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
14868         @firstparagraphindent support, now that autoconf dropped it.
14869         (INSTALL_PRELUDE): Reinstate old macro.
14870         * doc/install.texi: Resync from autoconf.
14871         * doc/INSTALL: Reflect recent autoconf update.
14872         * doc/INSTALL.ISO: Likewise.
14873         * doc/INSTALL.UTF-8: Likewise.
14874         Reported by Karl Berry.
14875
14876 2011-01-04  Bruce Korb  <address@hidden>
14877
14878         git-version-gen: avoid a sub-shell
14879         * build-aux/git-version-gen: Redirect stderr in `...` via
14880         "exec 2>...", rather than via an added sub-shell.
14881
14882 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
14883
14884         git-version-gen: use (...) rather than sh -c '...'
14885         * build-aux/git-version-gen: Rather than hard-coding a shell's name
14886         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
14887
14888 2011-01-03  Jim Meyering  <meyering@redhat.com>
14889
14890         git-version-gen: convert leading TABs to spaces
14891         * build-aux/git-version-gen: Expand leading TABs.
14892
14893         git-version-gen: handle failed "git rev-list"
14894         * build-aux/git-version-gen: Rather than leaking a "fatal" error
14895         from git and proceeding as if it had succeeded but printed no SHA1
14896         checksums, suppress the diagnostic and handle the failure.
14897         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
14898
14899         git-version-gen: include command name in one more diagnostic
14900         * build-aux/git-version-gen: When the required .tarball-version file
14901         was missing or unreadable, you might see the diagnostic from "cat",
14902         but no trace of the name of the invoking script.  Now, you still see
14903         the diagnostic from cat, but also get one from "git-version-gen: ".
14904         Inspired by a patch from Bruce Korb.
14905
14906         update-copyright: adjust test to match changed code
14907         * tests/test-update-copyright.sh: Change test's expected output
14908         to match new actual output.
14909
14910 2011-01-02  Bruno Haible  <bruno@clisp.org>
14911
14912         getlogin_r: Avoid test failure on HP-UX 11.
14913         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
14914         ERANGE when the second argument is zero.
14915         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
14916         portability problem.
14917
14918 2011-01-02  Bruce Korb  <bkorb@gnu.org>
14919
14920         * build-aux/update-copyright: doc Simon's changes
14921
14922 2011-01-02  Simon Josefsson  <simon@josefsson.org>
14923
14924         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
14925         environment variable.
14926
14927 2011-01-02  Bruno Haible  <bruno@clisp.org>
14928
14929         unigbrk: Avoid gcc warnings.
14930         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
14931         unused variable.
14932         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
14933         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
14934         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
14935         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
14936         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
14937         Change type of first argument to 'const char *'.
14938         (main): Remove unused variable.
14939         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
14940         type of first argument to 'const char *'.
14941         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
14942         Likewise.
14943         (main): Change type of variable 's'.
14944         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
14945         to 'int'.
14946
14947 2011-01-02  Bruno Haible  <bruno@clisp.org>
14948
14949         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
14950         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
14951         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
14952         bug.
14953         * lib/pwrite.c: Undo 2010-12-31 patch.
14954         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
14955
14956 2011-01-02  Bruno Haible  <bruno@clisp.org>
14957
14958         pread: Fix test whether it works.
14959         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
14960
14961 2011-01-02  Bruno Haible  <bruno@clisp.org>
14962
14963         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
14964         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
14965         ends in "6". Don't require a specific month name. Try also the locale
14966         names found on HP-UX 11 and Solaris 7.
14967
14968 2011-01-02  Bruno Haible  <bruno@clisp.org>
14969
14970         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
14971         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
14972         C linkage.
14973         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
14974
14975 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
14976
14977         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
14978         for consistency, since the "cluster" term is not used elsewhere.
14979         * lib/unigbrk.in.h: Update name.
14980         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
14981         * lib/unigbrk/u16-grapheme-next.c: Update name.
14982         * lib/unigbrk/u16-grapheme-prev.c: Update name.
14983         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
14984         * lib/unigbrk/u32-grapheme-next.c: Update name.
14985         * lib/unigbrk/u32-grapheme-prev.c: Update name.
14986         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
14987         * lib/unigbrk/u8-grapheme-next.c: Update name.
14988         * lib/unigbrk/u8-grapheme-prev.c: Update name.
14989         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
14990         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
14991         Suggested by Bruno Haible.
14992
14993 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
14994
14995         Remove module 'u8-grapheme-len' as too redundant with
14996         'u8-grapheme-next'.
14997         * modules/unigbrk/u8-grapheme-len: Delete file.
14998         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
14999         * lib/unigbrk.in.h: Remove prototype for deleted function.
15000         * lib/unigbrk/u8-grapheme-len.c: Delete file.
15001         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
15002
15003         Remove module 'u16-grapheme-len' as too redundant with
15004         'u16-grapheme-next'.
15005         * modules/unigbrk/u16-grapheme-len: Delete file.
15006         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
15007         * lib/unigbrk.in.h: Remove prototype for deleted function.
15008         * lib/unigbrk/u16-grapheme-len.c: Delete file.
15009         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
15010
15011         Remove module 'u32-grapheme-len' as too redundant with
15012         'u32-grapheme-next'.
15013         * modules/unigbrk/u32-grapheme-len: Delete file.
15014         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
15015         * lib/unigbrk.in.h: Remove prototype for deleted function.
15016         * lib/unigbrk/u32-grapheme-len.c: Delete file.
15017         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
15018
15019         Suggested by Bruno Haible.
15020
15021 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
15022
15023         * unigbrk.in.h: Fix typo: "ben" => "been".
15024         Reported by Bruno Haible.
15025
15026 2011-01-01  Jim Meyering  <meyering@redhat.com>
15027
15028         maint: update almost all copyright ranges to include 2011
15029         Run the new "make update-copyright" rule.
15030
15031 2011-01-01  Jim Meyering  <meyering@redhat.com>
15032
15033         maint: update-copyright: exempt doc/INSTALL*
15034         * Makefile (update-copyright): Also exclude doc/INSTALL*,
15035         since they are generated.  Suggested by Bruno Haible.
15036
15037 2011-01-01  Jim Meyering  <meyering@redhat.com>
15038
15039         maint: refine the update-copyright rule
15040         * Makefile (update-copyright): Also exclude any file that includes
15041         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
15042         code that merely generates the comment.
15043
15044 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
15045
15046         New module 'u8-grapheme-len'.
15047         * modules/unigbrk/u8-grapheme-len: New file.
15048         * modules/unigbrk/u8-grapheme-len-tests: New file.
15049         * lib/unigbrk.in.h: Add prototype for new function.
15050         * lib/unigbrk/u8-grapheme-len.c: New file.
15051         * tests/unigbrk/test-u8-grapheme-len.c: New file.
15052
15053         New module 'u16-grapheme-len'.
15054         * modules/unigbrk/u16-grapheme-len: New file.
15055         * modules/unigbrk/u16-grapheme-len-tests: New file.
15056         * lib/unigbrk.in.h: Add prototype for new function.
15057         * lib/unigbrk/u16-grapheme-len.c: New file.
15058         * tests/unigbrk/test-u16-grapheme-len.c: New file.
15059
15060         New module 'u32-grapheme-len'.
15061         * modules/unigbrk/u32-grapheme-len: New file.
15062         * modules/unigbrk/u32-grapheme-len-tests: New file.
15063         * lib/unigbrk.in.h: Add prototype for new function.
15064         * lib/unigbrk/u32-grapheme-len.c: New file.
15065         * tests/unigbrk/test-u32-grapheme-len.c: New file.
15066
15067         New module 'u8-grapheme-next'.
15068         * modules/unigbrk/u8-grapheme-next: New file.
15069         * modules/unigbrk/u8-grapheme-next-tests: New file.
15070         * lib/unigbrk.in.h: Add prototype for new function.
15071         * lib/unigbrk/u8-grapheme-next.c: New file.
15072         * tests/unigbrk/test-u8-grapheme-next.c: New file.
15073
15074         New module 'u16-grapheme-next'.
15075         * modules/unigbrk/u16-grapheme-next: New file.
15076         * modules/unigbrk/u16-grapheme-next-tests: New file.
15077         * lib/unigbrk.in.h: Add prototype for new function.
15078         * lib/unigbrk/u16-grapheme-next.c: New file.
15079         * tests/unigbrk/test-u16-grapheme-next.c: New file.
15080
15081         New module 'u32-grapheme-next'.
15082         * modules/unigbrk/u32-grapheme-next: New file.
15083         * modules/unigbrk/u32-grapheme-next-tests: New file.
15084         * lib/unigbrk.in.h: Add prototype for new function.
15085         * lib/unigbrk/u32-grapheme-next.c: New file.
15086         * tests/unigbrk/test-u32-grapheme-next.c: New file.
15087
15088         New module 'u8-grapheme-prev'.
15089         * modules/unigbrk/u8-grapheme-prev: New file.
15090         * modules/unigbrk/u8-grapheme-prev-tests: New file.
15091         * lib/unigbrk.in.h: Add prototype for new function.
15092         * lib/unigbrk/u8-grapheme-prev.c: New file.
15093         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
15094
15095         New module 'u16-grapheme-prev'.
15096         * modules/unigbrk/u16-grapheme-prev: New file.
15097         * modules/unigbrk/u16-grapheme-prev-tests: New file.
15098         * lib/unigbrk.in.h: Add prototype for new function.
15099         * lib/unigbrk/u16-grapheme-prev.c: New file.
15100         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
15101
15102         New module 'u32-grapheme-prev'.
15103         * modules/unigbrk/u32-grapheme-prev: New file.
15104         * modules/unigbrk/u32-grapheme-prev-tests: New file.
15105         * lib/unigbrk.in.h: Add prototype for new function.
15106         * lib/unigbrk/u32-grapheme-prev.c: New file.
15107         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
15108
15109         New module 'u8-grapheme-breaks'.
15110         * modules/unigbrk/u8-grapheme-breaks: New file.
15111         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
15112         * lib/unigbrk.in.h: Add prototype for new function.
15113         * lib/unigbrk/u8-grapheme-breaks.c: New file.
15114         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
15115
15116         New module 'u16-grapheme-breaks'.
15117         * modules/unigbrk/u16-grapheme-breaks: New file.
15118         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
15119         * lib/unigbrk.in.h: Add prototype for new function.
15120         * lib/unigbrk/u16-grapheme-breaks.c: New file.
15121         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
15122
15123         New module 'u32-grapheme-breaks'.
15124         * modules/unigbrk/u32-grapheme-breaks: New file.
15125         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
15126         * lib/unigbrk.in.h: Add prototype for new function.
15127         * lib/unigbrk/u32-grapheme-breaks.c: New file.
15128         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
15129
15130         New module 'ulc-grapheme-breaks'.
15131         * modules/unigbrk/ulc-grapheme-breaks: New file.
15132         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
15133         * m4/locale-ar.m4: New file.
15134         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
15135         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
15136         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
15137
15138 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
15139
15140         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
15141         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
15142         modified how this file was generated before I initially submitted
15143         the module, but failed to regenerate it.  This meant that several
15144         of the level2 entries were wrong.
15145         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
15146         Remove the division-by-2 that is folded into the table now that
15147         gbrkprop.h has been regenerated properly.  Now -1 entries are
15148         handled correctly.
15149
15150         New module 'unigbrk/uc-gbrk-prop-tests'.
15151         * modules/unigbrk/uc-gbrk-prop-tests: New file.
15152         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
15153         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
15154         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
15155
15156 2011-01-01  Bruno Haible  <bruno@clisp.org>
15157
15158         Avoid use of hexadecimal escapes.
15159         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
15160         instead of hexadecimal escapes.
15161
15162 2011-01-01  Jim Meyering  <meyering@redhat.com>
15163
15164         maint: new rule to update copyright year ranges
15165         * Makefile (update-copyright): New rule.
15166
15167         maint: indent with TABs in Makefile
15168         * Makefile: Expand leading sequences of spaces to TABs
15169
15170         version-etc: update the copyright year it reports
15171         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
15172
15173 2010-12-31  Bruno Haible  <bruno@clisp.org>
15174
15175         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
15176         * lib/isfinite.c (zerof, zerod, zerol): New variables.
15177         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
15178         zero.
15179
15180 2010-12-31  Bruno Haible  <bruno@clisp.org>
15181
15182         pwrite: Work around HP-UX 11.11 bug.
15183         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
15184         works and set REPLACE_PWRITE if not.
15185         * lib/pwrite.c (pwrite): Add an implementation that uses the system
15186         function.
15187         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
15188
15189 2010-12-31  Bruno Haible  <bruno@clisp.org>
15190
15191         pread: Work around HP-UX 11 bugs.
15192         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
15193         and set REPLACE_PREAD if not.
15194         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
15195
15196 2010-12-31  Eric Blake  <eblake@redhat.com>
15197
15198         nl_langinfo: fix YESEXPR on Irix 6.5
15199         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
15200         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
15201         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
15202         it.
15203
15204 2010-12-31  Bruno Haible  <bruno@clisp.org>
15205
15206         iconv: Document HP-UX 11 bug.
15207         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
15208
15209 2010-12-31  Bruno Haible  <bruno@clisp.org>
15210
15211         ldexpl: Fix link error on HP-UX 11.
15212         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
15213         LDEXPL_LIBM, using $ISNANL_LIBM.
15214
15215 2010-12-31  Eric Blake  <eblake@redhat.com>
15216
15217         ftello: avoid compilation failure with SunStudio c89
15218         * lib/ftello.c (ftello): Use lseek, not llseek.
15219
15220         tests: avoid failing coreutils tests on cygwin
15221         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
15222         (create_exe_shims_): Return 0 when skipping.
15223
15224 2010-12-31  Bruno Haible  <bruno@clisp.org>
15225
15226         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
15227         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
15228
15229 2010-12-31  Bruno Haible  <bruno@clisp.org>
15230
15231         waitpid: Fix link error in C++ mode.
15232         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
15233
15234 2010-12-31  Bruno Haible  <bruno@clisp.org>
15235
15236         isnan: Use GCC built-ins when possible.
15237         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
15238         __builtin_isnan.
15239         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
15240         (isnan): Define using GCC built-ins for GCC >= 4.0.
15241
15242 2010-12-31  Bruno Haible  <bruno@clisp.org>
15243
15244         isnand: Fix mistake.
15245         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
15246         __builtin_isnand.
15247
15248 2010-12-31  Bruno Haible  <bruno@clisp.org>
15249
15250         open: Avoid C++ error on HP-UX 11.
15251         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
15252
15253 2010-12-31  Bruno Haible  <bruno@clisp.org>
15254
15255         time_r: Add missing declarations on HP-UX 11.
15256         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
15257         instead of HAVE_LOCALTIME_R.
15258         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
15259         HAVE_LOCALTIME_R always.
15260         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
15261         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
15262         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
15263         HAVE_LOCALTIME_R.
15264         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
15265         * doc/posix-functions/localtime_r.texi: Likewise.
15266
15267 2010-12-29  Eric Blake  <eblake@redhat.com>
15268
15269         mountlist: tweak previous commit
15270         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
15271         Reported by Paul Eggert.
15272
15273         mountlist: fix local drive detection on cygwin
15274         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
15275         that works for cygwin.
15276
15277 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
15278
15279         ftoastr, snprintf: ftoastr + snprintf module
15280         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
15281         since the snprintf module now should be good enough here.
15282         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
15283         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
15284         and gl_MODULE_INDICATOR([snprintf]), but the former enables
15285         GNULIB_SNPRINTF only for the test directory, and the latter
15286         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
15287         seems to suffice by itself.
15288
15289 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
15290
15291         alloca: one step towards thread-safety
15292         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
15293         need for a static variable.  All callers changed.  This does not
15294         make the alloca replacement thread-safe, but it's one step.
15295
15296         tests: minor indenting change
15297         * tests/init.sh: Sync from coreutils housekeeping patch
15298         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
15299         to keep lines within 80 columns.
15300
15301 2010-12-28  Jim Meyering  <meyering@redhat.com>
15302
15303         regex: don't infloop on persistent failing calloc
15304         * lib/regexec.c (build_trtable): Return failure indication upon
15305         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
15306         In glibc, this was fixed for version 2.13:
15307         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
15308
15309 2010-12-28  Bruno Haible  <bruno@clisp.org>
15310             Paul Eggert <eggert@cs.ucla.edu>
15311
15312         linkat: Make implementation robust against system behaviour variations.
15313         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
15314         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
15315         way, and to -2 if it needs a generic runtime test.
15316         * lib/linkat.c (solaris_optimized_link_immediate,
15317         solaris_optimized_link_follow): New functions.
15318         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
15319         (check_same_link): Use it.
15320
15321 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
15322
15323         New module 'unigbrk/base'.
15324         * modules/unigbrk/base: New file.
15325         * lib/unigbrk.in.h: New file.
15326
15327         New module 'unigbrk/uc-gbrk-prop'.
15328         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
15329         * modules/unigbrk/uc-gbrk-prop: New file.
15330         * lib/unigbrk/gbrkprop.h: New file.
15331         * lib/unigbrk/uc-gbrk-prop.c: New file.
15332
15333         New module 'unigbrk/uc-is-grapheme-break'.
15334         * modules/unigbrk/uc-is-grapheme-break: New file.
15335         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
15336         * lib/unigbrk/uc-is-grapheme-break.c: New file.
15337         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
15338         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
15339         * tests/unigbrk/GraphemeBreakTest.txt: New file.
15340
15341         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
15342
15343 2010-12-27  Bruno Haible  <bruno@clisp.org>
15344
15345         linkat test: Avoid failure on Solaris 11 2010-11.
15346         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
15347
15348 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15349
15350         utimens: work around glibc rounding bug on more platforms
15351         * lib/utimens.c (fdutimens): Work around rounding bug even if
15352         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
15353         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
15354
15355 2010-12-27  Bruno Haible  <bruno@clisp.org>
15356
15357         select tests: Improve comments.
15358         * tests/test-select.c (do_select): Add comments.
15359
15360 2010-12-27  Bruno Haible  <bruno@clisp.org>
15361
15362         select tests: Safer way of handling timeout.
15363         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
15364         at every invocation.
15365
15366 2010-12-27  Bruno Haible  <bruno@clisp.org>
15367
15368         select tests: Use 'bool' where appropriate.
15369         * tests/test-select.c (connect_to_socket): Change argument type to
15370         'bool'.
15371
15372 2010-12-27  Bruno Haible  <bruno@clisp.org>
15373
15374         select tests: Use existing modules.
15375         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
15376         (configure.ac): Don't test for unistd.h.
15377         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
15378         declared in <unistd.h>.
15379
15380 2010-12-27  Bruno Haible  <bruno@clisp.org>
15381
15382         mbrtowc: Work around a Solaris 7 bug.
15383         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
15384         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
15385         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
15386         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
15387         MBRTOWC_NULL_ARG1_BUG.
15388         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
15389         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
15390         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
15391         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
15392
15393 2010-12-27  Jim Meyering  <meyering@redhat.com>
15394
15395         read-file.c: tweak syntax
15396         * lib/read-file.c (fread_file): Remove space after "*" in function
15397         definitions.
15398
15399 2010-12-27  Bruno Haible  <bruno@clisp.org>
15400
15401         times test: Avoid gcc warnings on OSF/1.
15402         * tests/test-times.c (main): Cast printf arguments from clock_t to
15403         'long int'.
15404
15405 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15406
15407         utimens: work around glibc rounding bug on older Linux kernels
15408         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
15409         on Linux with a glibc whose utimes might not work, then work
15410         around a longstanding glibc bug involving rounding rather than
15411         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
15412         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
15413
15414 2010-12-26  Bruno Haible  <bruno@clisp.org>
15415
15416         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
15417         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
15418         _GL_CXXALIAS_SYS.
15419         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15420
15421 2010-12-26  Bruno Haible  <bruno@clisp.org>
15422
15423         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
15424         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
15425         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
15426         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
15427         looking for the declaration.
15428         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
15429         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
15430         problem.
15431         * doc/posix-functions/inet_pton.texi: Likewise.
15432
15433 2010-12-26  Bruno Haible  <bruno@clisp.org>
15434
15435         arpa_inet: Use the common idioms with C++ support.
15436         * lib/arpa_inet.in.h: Include c++defs.h.
15437         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
15438         support.
15439         * modules/arpa_inet (Depends-on): Add c++defs.
15440         (Makefile.am): Substitute the contents of c++defs.h.
15441         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
15442         * modules/arpa_inet-c++-tests: New file.
15443         * tests/test-arpa_inet-c++.cc: New file.
15444
15445 2010-12-25  Bruno Haible  <bruno@clisp.org>
15446
15447         Fix more C++ link errors on Solaris 8.
15448         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
15449         $(LIB_EACCESS).
15450         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
15451         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
15452         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
15453         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
15454         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
15455
15456 2010-12-25  Bruno Haible  <bruno@clisp.org>
15457
15458         printf-posix: Fix link error when a non-GCC compiler is used.
15459         * lib/stdio.in.h (printf): When not using GCC, override printf
15460         correctly.
15461         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15462
15463 2010-12-25  Bruno Haible  <bruno@clisp.org>
15464
15465         strerror_r-posix: Update doc.
15466         * doc/posix-functions/strerror_r.texi: Update doc about the return
15467         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
15468
15469 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
15470
15471         utimens: simplify the logic of the previous change
15472         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
15473         This should not affect whether the test succeeds or fails.
15474
15475         utimens: configure better on hosts with NFS clock skew
15476         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
15477         uses the clock of the local host.  It might use the clock of the
15478         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
15479         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
15480
15481 2010-12-25  Bruno Haible  <bruno@clisp.org>
15482
15483         ptsname test: Avoid failure on Solaris.
15484         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
15485         open a pseudo-terminal; don't use BSD-style ptys.
15486         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
15487
15488 2010-12-25  Bruno Haible  <bruno@clisp.org>
15489
15490         ptsname: Avoid ERANGE failure on some systems.
15491         * lib/ptsname.c (buffer): Increase size.
15492
15493 2010-12-25  Bruno Haible  <bruno@clisp.org>
15494
15495         rename, renameat: Avoid test failures at NFS mounted locations.
15496         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
15497         so that subsequent mkdir calls succeed.
15498
15499 2010-12-25  Bruno Haible  <bruno@clisp.org>
15500
15501         iswblank: Fix C++ link error on Solaris 8.
15502         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
15503         _GL_FUNCDECL_SYS.
15504
15505 2010-12-25  Bruno Haible  <bruno@clisp.org>
15506
15507         unistd: Fix C++ link error on Solaris 8.
15508         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
15509
15510 2010-12-25  Bruno Haible  <bruno@clisp.org>
15511
15512         readlink doc: Mention an old glibc bug.
15513         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
15514
15515 2010-12-25  Bruno Haible  <bruno@clisp.org>
15516
15517         fcntl-h: Fix for use of C++ on glibc systems.
15518         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
15519         also on glibc systems in C++ mode.
15520         Reported by Gary V. Vaughan <gary@gnu.org>.
15521
15522 2010-12-25  Bruno Haible  <bruno@clisp.org>
15523
15524         roundl-ieee: Make it work on OSF/1 5.1 with cc.
15525         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
15526
15527 2010-12-25  Bruno Haible  <bruno@clisp.org>
15528
15529         truncl-ieee: Make it work on OSF/1 5.1 with cc.
15530         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
15531         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
15532         test whether truncl works according to ISO C 99 with IEC 60559.
15533         * m4/truncl-ieee.m4: New file.
15534         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
15535         m4/signbit.m4.
15536         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
15537
15538 2010-12-25  Bruno Haible  <bruno@clisp.org>
15539
15540         ceill-ieee: Make it work on OSF/1 5.1 with cc.
15541         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
15542         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
15543         test whether ceill works according to ISO C 99 with IEC 60559.
15544         * m4/ceill-ieee.m4: New file.
15545         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
15546         m4/signbit.m4.
15547         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
15548
15549 2010-12-25  Bruno Haible  <bruno@clisp.org>
15550
15551         Ensure all prerequisites of <wchar.h> are included.
15552         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
15553         before <wchar.h>.
15554         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
15555         gl_MBRLEN_NUL_RETVAL): Likewise.
15556         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
15557         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
15558         AC_FUNC_MBRTOWC): Likewise.
15559         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
15560         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
15561         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
15562         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
15563         Likewise.
15564         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15565         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
15566         (gl_WCHAR_H): Improve comments.
15567         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15568
15569 2010-12-25  Bruno Haible  <bruno@clisp.org>
15570
15571         strtok_r: Fix C syntax error in autoconf macro.
15572         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
15573         characters in test program.
15574
15575 2010-12-24  Bruno Haible  <bruno@clisp.org>
15576
15577         ceil, trunc, round: Fix gcc warnings.
15578         * lib/ceil.c (MIN): Undefine before redefining.
15579         * lib/trunc.c (MIN): Likewise.
15580         * lib/round.c (MIN): Likewise.
15581         Include <math.h> first.
15582
15583 2010-12-24  Bruno Haible  <bruno@clisp.org>
15584
15585         select tests: Avoid failures on OSF/1 5.1.
15586         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
15587         failure of closing the last socket; it may fail with ECONNRESET.
15588
15589 2010-12-24  Eric Blake  <eblake@redhat.com>
15590
15591         stdint: avoid HP-UX 10.20 preprocessor bug
15592         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
15593         than #if.
15594         * tests/test-floor2.c (main): Likewise.
15595         Reported by Peter O'Gorman.
15596
15597         pipe: make obsoletion transition easier
15598         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
15599         * modules/pipe (Files): Include revived file.
15600         (Include): Drop reference, to mirror getdate's behavior.
15601
15602 2010-12-24  Bruno Haible  <bruno@clisp.org>
15603
15604         sys_socket: Hide mismatch of declarations on NonStop Kernel.
15605         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
15606         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
15607         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15608
15609 2010-12-24  Bruno Haible  <bruno@clisp.org>
15610
15611         gethostname: Ensure declaration on NonStop Kernel.
15612         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
15613         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15614
15615 2010-12-24  Bruno Haible  <bruno@clisp.org>
15616
15617         sys_select: Ensure all necessary types on NonStop Kernel.
15618         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
15619         include <sys/time.h>.
15620         * doc/posix-headers/sys_select.texi: Mention that it's missing on
15621         NonStop Kernel.
15622         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15623
15624 2010-12-24  Bruno Haible  <bruno@clisp.org>
15625
15626         sys_select: Remove unneeded include.
15627         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
15628         have <sys/select.h>.
15629
15630 2010-12-24  Bruno Haible  <bruno@clisp.org>
15631
15632         gethostname: Provide a fallback for HOST_NAME_MAX.
15633         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
15634         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
15635         instead.
15636         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15637
15638 2010-12-24  Bruno Haible  <bruno@clisp.org>
15639
15640         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
15641         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
15642         (SA_RESTART): Likewise.
15643         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15644
15645 2010-12-24  Bruno Haible  <bruno@clisp.org>
15646
15647         signal: Define NSIG.
15648         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
15649         * tests/test-signal.c (nsig): New variable.
15650         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15651
15652 2010-12-24  Bruno Haible  <bruno@clisp.org>
15653
15654         rename, renameat: Avoid test failures on OSF/1 5.1.
15655         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
15656         alternative error codes.
15657         * tests/test-renameat.c (main): Likewise.
15658
15659 2010-12-24  Bruno Haible  <bruno@clisp.org>
15660
15661         *printf: Detect large precisions bug on Solaris 10/SPARC.
15662         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
15663         by Paul Eggert.
15664         * tests/test-snprintf-posix.h (test_function): Add this test code here
15665         too.
15666         * tests/test-sprintf-posix.h (test_function): Likewise.
15667         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15668         * tests/test-vasprintf-posix.c (test_function): Likewise.
15669         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
15670         around by gnulib.
15671         * doc/posix-functions/printf.texi: Likewise.
15672         * doc/posix-functions/snprintf.texi: Likewise.
15673         * doc/posix-functions/sprintf.texi: Likewise.
15674         * doc/posix-functions/vfprintf.texi: Likewise.
15675         * doc/posix-functions/vprintf.texi: Likewise.
15676         * doc/posix-functions/vsnprintf.texi: Likewise.
15677         * doc/posix-functions/vsprintf.texi: Likewise.
15678         * doc/posix-functions/dprintf.texi: Undo last commit.
15679         * doc/posix-functions/vdprintf.texi: Likewise.
15680
15681 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
15682
15683         tests: port test-fdutimensat.c to Solaris 8
15684         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
15685         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
15686         On Solaris 8, it fails with errno == ENOSYS, because there is no
15687         futimens (so it can't use the fd), and there is no lutimens (so it
15688         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
15689
15690         vsnprintf: make more consistent with snprintf; doc fixes
15691
15692         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
15693         the byte count return problem was promoted from the snprintf-posix
15694         to the snprintf module.
15695         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15696         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
15697         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
15698         * tests/test-snprintf.c (main): Check the byte count returned.
15699         * tests/test-vsnprintf.c (main): Likewise.
15700
15701 2010-12-23  Eric Blake  <eblake@redhat.com>
15702
15703         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
15704         * modules/sigpipe (License): Relax license.
15705
15706 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
15707
15708         doc: document Solaris printf bug with large float precisions
15709         * doc/posix-functions/dprintf.texi (dprintf):
15710         * doc/posix-functions/fprintf.texi (fprintf):
15711         * doc/posix-functions/printf.texi (printf):
15712         * doc/posix-functions/snprintf.texi (snprintf):
15713         * doc/posix-functions/sprintf.texi (sprintf):
15714         * doc/posix-functions/vdprintf.texi (vdprintf):
15715         * doc/posix-functions/vfprintf.texi (vfprintf):
15716         * doc/posix-functions/vprintf.texi (vprintf):
15717         * doc/posix-functions/vsnprintf.texi (vsnprintf):
15718         * doc/posix-functions/vsprintf.texi (vsprintf):
15719         Mention that these functions mishandle large floating point
15720         precisions on Solaris 10.  The same bug is also present in Solaris
15721         8, and I assume earlier.  This causes "cd gnulib-tests; make
15722         check" to fail on Solaris 8 (and I assume, later) when building
15723         the latest coreutils, in test-vasprintf-posix's call to
15724         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
15725         the wide flavors (e.g., wprintf) so this patch just updates the
15726         documentation for the narrow ones.
15727
15728         test-posixtm.c: add two tests
15729         * tests/test-posixtm.c: Add two tests, to highlight the
15730         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
15731         around this bug; this is merely to document it.
15732
15733 2010-12-22  Bruno Haible  <bruno@clisp.org>
15734
15735         getlogin_r: Work around portability problem on OSF/1.
15736         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
15737         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
15738         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
15739         test for a truncated result.
15740         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
15741         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
15742         * modules/getlogin_r (Depends-on): Add memchr.
15743         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
15744
15745 2010-12-22  Bruno Haible  <bruno@clisp.org>
15746
15747         ptsname: Avoid test failure on OSF/1 5.1.
15748         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
15749         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
15750         (same_slave): New function.
15751         (main): Use it to compare ptsname's result with the expected file name.
15752
15753 2010-12-22  Bruno Haible  <bruno@clisp.org>
15754
15755         Port extended stdio modules to HP NonStop Kernel.
15756         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
15757         macros.
15758         * lib/fbufmode.c: Update comments.
15759         * lib/fflush.c: Likewise.
15760         * lib/fpurge.c: Likewise.
15761         * lib/freadable.c: Likewise.
15762         * lib/freadahead.c: Likewise.
15763         * lib/freading.c: Likewise.
15764         * lib/freadptr.c: Likewise.
15765         * lib/freadseek.c: Likewise.
15766         * lib/fseeko.c: Likewise.
15767         * lib/fseterr.c: Likewise.
15768         * lib/fwritable.c: Likewise.
15769         * lib/fwriting.c: Likewise.
15770         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
15771
15772 2010-12-22  Bruno Haible  <bruno@clisp.org>
15773
15774         ttyname_r: Work around bug on OSF/1 5.1.
15775         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
15776         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
15777         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
15778         present.
15779         * lib/ttyname_r.c (ttyname_r): Update comments.
15780
15781 2010-12-22  Bruno Haible  <bruno@clisp.org>
15782
15783         round: Implement result sign according to IEEE 754.
15784         * lib/round.c (MIN, MINUS_ZERO): New macros.
15785         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
15786         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
15787         * tests/test-round-ieee.c (main): Likewise.
15788         * tests/test-roundl-ieee.c (main): Likewise.
15789
15790         trunc: Implement result sign according to IEEE 754.
15791         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
15792         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
15793         * tests/test-trunc2.c: Include minus-zero.h.
15794         (MINUS_ZERO): New macro.
15795         (trunc_reference): Keep in sync with lib/trunc.c.
15796         * tests/test-truncf2.c: Include minus-zero.h.
15797         (MINUS_ZERO): New macro.
15798         (truncf_reference): Keep in sync with lib/trunc.c.
15799         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
15800         * tests/test-trunc-ieee.c (main): Likewise.
15801         * tests/test-truncl-ieee.c (main): Likewise.
15802
15803         ceil: Implement result sign according to IEEE 754.
15804         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
15805         (FUNC): Return -0.0 for -1 < x < 0.
15806         * tests/test-ceil2.c: Include minus-zero.h.
15807         (MINUS_ZERO): New macro.
15808         (ceil_reference): Keep in sync with lib/ceil.c.
15809         * tests/test-ceilf2.c: Include minus-zero.h.
15810         (MINUS_ZERO): New macro.
15811         (ceilf_reference): Keep in sync with lib/ceil.c.
15812         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
15813         * tests/test-ceil-ieee.c (main): Likewise.
15814         * tests/test-ceill-ieee.c (main): Likewise.
15815
15816         floor: Implement result sign according to IEEE 754.
15817         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
15818         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
15819         * tests/test-floorf2.c (floorf_reference): Likewise.
15820         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
15821         * tests/test-floor-ieee.c (main): Likewise.
15822         * tests/test-floorl-ieee.c (main): Likewise.
15823
15824 2010-12-22  Bruno Haible  <bruno@clisp.org>
15825
15826         getaddrinfo: Update doc.
15827         * doc/posix-functions/gai_strerror.texi: Return type is also different
15828         on AIX and HP-UX.
15829
15830 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
15831
15832         getaddrinfo, inet_ntop: Update doc for Solaris.
15833         * doc/posix-functions/gai_strerror.texi: Return type is also an
15834         issue on Solaris 9 and earlier.
15835         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
15836         on Solaris 10 and earlier.
15837
15838 2010-12-21  Bruno Haible  <bruno@clisp.org>
15839
15840         New module 'roundl-ieee'.
15841         * modules/roundl-ieee: New file.
15842         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
15843         test whether roundl works according to ISO C 99 with IEC 60559.
15844         * m4/roundl-ieee.m4: New file.
15845         * modules/roundl-ieee-tests: New file.
15846         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
15847         * tests/test-roundl.c (main): Remove signbit tests.
15848         * modules/roundl-tests (Depends-on): Remove signbit.
15849         * doc/posix-functions/roundl.texi: Mention the new module.
15850
15851 2010-12-21  Bruno Haible  <bruno@clisp.org>
15852
15853         New module 'truncl-ieee'.
15854         * modules/truncl-ieee: New file.
15855         * modules/truncl-ieee-tests: New file.
15856         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
15857         * tests/test-truncl.c (main): Remove signbit tests.
15858         * modules/truncl-tests (Depends-on): Remove signbit.
15859         * doc/posix-functions/truncl.texi: Mention the new module.
15860
15861 2010-12-21  Bruno Haible  <bruno@clisp.org>
15862
15863         New module 'ceill-ieee'.
15864         * modules/ceill-ieee: New file.
15865         * modules/ceill-ieee-tests: New file.
15866         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
15867         * tests/test-ceill.c (main): Remove signbit tests.
15868         * modules/ceill-tests (Depends-on): Remove signbit.
15869         * doc/posix-functions/ceill.texi: Mention the new module.
15870
15871 2010-12-21  Bruno Haible  <bruno@clisp.org>
15872
15873         New module 'floorl-ieee'.
15874         * modules/floorl-ieee: New file.
15875         * modules/floorl-ieee-tests: New file.
15876         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
15877         * tests/test-floorl.c (main): Remove signbit tests.
15878         * modules/floorl-tests (Depends-on): Remove signbit.
15879         * doc/posix-functions/floorl.texi: Mention the new module.
15880
15881 2010-12-21  Bruno Haible  <bruno@clisp.org>
15882
15883         New module 'round-ieee'.
15884         * modules/round-ieee: New file.
15885         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
15886         whether round works according to ISO C 99 with IEC 60559.
15887         * m4/round-ieee.m4: New file.
15888         * modules/round-ieee-tests: New file.
15889         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
15890         * tests/test-round1.c (main): Remove signbit tests.
15891         * modules/round-tests (Depends-on): Remove 'signbit'.
15892         * doc/posix-functions/round.texi: Mention the new module.
15893
15894 2010-12-21  Bruno Haible  <bruno@clisp.org>
15895
15896         New module 'trunc-ieee'.
15897         * modules/trunc-ieee: New file.
15898         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
15899         whether trunc works according to ISO C 99 with IEC 60559.
15900         * m4/trunc-ieee.m4: New file.
15901         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
15902         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
15903         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
15904         * modules/trunc-ieee-tests: New file.
15905         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
15906         * tests/test-trunc1.c (main): Remove signbit tests.
15907         * modules/trunc-tests (Depends-on): Remove 'signbit'.
15908         * doc/posix-functions/trunc.texi: Mention the new module.
15909
15910 2010-12-21  Bruno Haible  <bruno@clisp.org>
15911
15912         New module 'ceil-ieee'.
15913         * modules/ceil-ieee: New file.
15914         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
15915         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
15916         ISO C 99 with IEC 60559.
15917         * m4/ceil-ieee.m4: New file.
15918         * modules/ceil (Files): Add lib/ceil.c.
15919         (Depends-on): Add 'float'.
15920         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
15921         * lib/math.in.h (ceil): New declaration.
15922         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
15923         REPLACE_CEIL.
15924         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
15925         * modules/ceil-ieee-tests: New file.
15926         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
15927         * tests/test-math-c++.cc: Check the signature of 'ceil'.
15928         * doc/posix-functions/ceil.texi: Mention the new module.
15929
15930 2010-12-21  Bruno Haible  <bruno@clisp.org>
15931
15932         New module 'floor-ieee'.
15933         * modules/floor-ieee: New file.
15934         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
15935         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
15936         ISO C 99 with IEC 60559.
15937         * m4/floor-ieee.m4: New file.
15938         * modules/floor (Files): Add lib/floor.c.
15939         (Depends-on): Add 'float'.
15940         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
15941         * lib/math.in.h (floor): New declaration.
15942         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
15943         REPLACE_FLOOR.
15944         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
15945         * modules/floor-ieee-tests: New file.
15946         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
15947         * tests/test-math-c++.cc: Check the signature of 'floor'.
15948         * doc/posix-functions/floor.texi: Mention the new module.
15949
15950 2010-12-21  Bruno Haible  <bruno@clisp.org>
15951
15952         New module 'roundf-ieee'.
15953         * modules/roundf-ieee: New file.
15954         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
15955         test whether roundf works according to ISO C 99 with IEC 60559.
15956         * m4/roundf-ieee.m4: New file.
15957         * modules/roundf-ieee-tests: New file.
15958         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
15959         * tests/test-roundf1.c (main): Remove signbit tests.
15960         * modules/roundf-tests (Depends-on): Remove 'signbit'.
15961         * doc/posix-functions/roundf.texi: Mention the new module.
15962
15963 2010-12-21  Bruno Haible  <bruno@clisp.org>
15964
15965         New module 'truncf-ieee'.
15966         * modules/truncf-ieee: New file.
15967         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
15968         test whether truncf works according to ISO C 99 with IEC 60559.
15969         * m4/truncf-ieee.m4: New file.
15970         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
15971         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
15972         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
15973         * modules/truncf-ieee-tests: New file.
15974         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
15975         * tests/test-truncf1.c (main): Remove signbit tests.
15976         * modules/truncf-tests (Depends-on): Remove 'signbit'.
15977         * doc/posix-functions/truncf.texi: Mention the new module.
15978
15979 2010-12-21  Bruno Haible  <bruno@clisp.org>
15980
15981         New module 'ceilf-ieee'.
15982         * modules/ceilf-ieee: New file.
15983         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
15984         test whether ceilf works according to ISO C 99 with IEC 60559.
15985         * m4/ceilf-ieee.m4: New file.
15986         * modules/ceilf-ieee-tests: New file.
15987         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
15988         * tests/test-ceilf1.c (main): Remove signbit tests.
15989         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
15990         * doc/posix-functions/ceilf.texi: Mention the new module.
15991
15992 2010-12-21  Bruno Haible  <bruno@clisp.org>
15993
15994         New module 'floorf-ieee'.
15995         * modules/floorf-ieee: New file.
15996         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
15997         test whether floorf works according to ISO C 99 with IEC 60559.
15998         * m4/floorf-ieee.m4: New file.
15999         * modules/floorf-ieee-tests: New file.
16000         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
16001         * tests/test-floorf1.c (main): Remove signbit tests.
16002         * modules/floorf-tests (Depends-on): Remove 'signbit'.
16003         * doc/posix-functions/floorf.texi: Mention the new module.
16004
16005 2010-12-21  Bruno Haible  <bruno@clisp.org>
16006
16007         Support for minus zero in autoconf macros.
16008         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
16009         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
16010         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
16011         * tests/minus-zero.h: Update comments.
16012
16013 2010-12-21  Bruno Haible  <bruno@clisp.org>
16014
16015         Tests for module 'ceil'.
16016         * modules/ceil-tests: New file.
16017         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
16018         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
16019
16020 2010-12-21  Bruno Haible  <bruno@clisp.org>
16021
16022         Tests for module 'floor'.
16023         * modules/floor-tests: New file.
16024         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
16025         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
16026
16027 2010-12-21  Bruno Haible  <bruno@clisp.org>
16028
16029         math: Fix indentation.
16030         * lib/math.in.h (floorf): Fix indentation.
16031
16032 2010-12-21  Bruno Haible  <bruno@clisp.org>
16033
16034         Fix cross-compilation guesses on Solaris.
16035         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
16036         not match "solaris2.10".
16037         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16038         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
16039         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
16040
16041 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
16042
16043         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
16044         This fixes a problem observed with the latest coreutils snapshot
16045         that caused a test to fail on Solaris 8.  src/csplit.c's call
16046         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
16047         earlier, instead of returning the number of bytes that would have
16048         been generated; this causes csplit to incorrectly report memory
16049         exhaustion.
16050         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
16051         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
16052         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
16053         comments to match.
16054         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
16055         Fix typo in matching older versions of Solaris: "solaris2.10"
16056         is matched by the shell pattern "solaris2.[0-9]*".  This matters
16057         only for guessing while cross-compiling.
16058         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
16059
16060 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
16061
16062         ftoastr: fix comment again
16063         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
16064         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
16065         Also, simplify example a bit by using flags = 0.
16066
16067 2010-12-20  Bruno Haible  <bruno@clisp.org>
16068
16069         round*, trunc*: Update documentation regarding glibc.
16070         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
16071         * doc/posix-functions/round.texi: Likewise.
16072         * doc/posix-functions/roundl.texi: Likewise.
16073         * doc/posix-functions/truncf.texi: Likewise.
16074         * doc/posix-functions/trunc.texi: Likewise.
16075         * doc/posix-functions/truncl.texi: Likewise.
16076
16077 2010-12-20  Bruno Haible  <bruno@clisp.org>
16078
16079         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
16080         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
16081         * doc/posix-functions/round.texi: Likewise.
16082         * doc/posix-functions/roundl.texi: Likewise.
16083
16084 2010-12-20  Bruno Haible  <bruno@clisp.org>
16085
16086         ttyname_r: Add missing declaration on HP-UX 11.
16087         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
16088         HAVE_TTYNAME_R.
16089         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
16090         declared. Set HAVE_TTYNAME_R always.
16091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16092         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
16093         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
16094         HAVE_TTYNAME_R.
16095         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
16096
16097 2010-12-20  Bruno Haible  <bruno@clisp.org>
16098
16099         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
16100         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
16101         * doc/posix-functions/getlogin_r.texi: Likewise.
16102         * tests/test-getlogin.c: Include <errno.h>.
16103         (main): Avoid test failure on HP-UX 11.11.
16104         * tests/test-getlogin_r.c (main): Likewise.
16105
16106 2010-12-20  Bruno Haible  <bruno@clisp.org>
16107
16108         getlogin_r: Add missing declaration on HP-UX 11.
16109         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
16110         declared also when it exists as a function.
16111         * doc/posix-functions/getlogin_r.texi: Document this workaround.
16112
16113 2010-12-20  Bruno Haible  <bruno@clisp.org>
16114
16115         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
16116         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
16117         through wcrtomb.
16118
16119 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
16120
16121         ftoastr: fix comment
16122         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
16123         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
16124
16125 2010-12-19  Bruno Haible  <bruno@clisp.org>
16126
16127         isnan: Ensure it is a macro.
16128         * lib/math.in.h (isnan): Define as a macro if not already a macro.
16129         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
16130         Solaris.
16131
16132 2010-12-19  Bruno Haible  <bruno@clisp.org>
16133
16134         ldexpl test: Fix link error on OSF/1 5.1.
16135         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
16136
16137 2010-12-19  Bruno Haible  <bruno@clisp.org>
16138
16139         wctype: Make it work in C++ mode on OSF/1 5.1.
16140         * lib/wctype.in.h (iswblank): Declare but not define here.
16141         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
16142         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
16143         * modules/wctype (Files): Add lib/iswblank.c.
16144
16145 2010-12-19  Bruno Haible  <bruno@clisp.org>
16146
16147         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
16148         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
16149         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
16150
16151 2010-12-19  Bruno Haible  <bruno@clisp.org>
16152
16153         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
16154         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
16155         _POSIX_PII_SOCKET.
16156         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
16157         * doc/posix-functions/recvfrom.texi: Likewise.
16158         * doc/posix-functions/send.texi: Likewise.
16159         * doc/posix-functions/sendto.texi: Likewise.
16160
16161 2010-12-19  Bruno Haible  <bruno@clisp.org>
16162
16163         tcgetsid: Add missing declaration on OSF/1 5.1.
16164         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
16165         HAVE_TCGETSID.
16166         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
16167         Don't set HAVE_TCGETSID.
16168         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
16169         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
16170         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
16171         HAVE_TCGETSID.
16172         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
16173
16174 2010-12-19  Bruno Haible  <bruno@clisp.org>
16175
16176         stdio: Fix problem with popen() declaration on OSF/1 5.1.
16177         * lib/stdio.in.h: During the include_next statement, let recursive
16178         includes of this file include only the system header file.
16179
16180 2010-12-19  Bruno Haible  <bruno@clisp.org>
16181
16182         iconv_open: Fix regression from 2010-12-04.
16183         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
16184         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
16185
16186 2010-12-19  Bruno Haible  <bruno@clisp.org>
16187
16188         stdbool test: Avoid a gcc warning.
16189         * tests/test-stdbool.c (main): Fail if e1 is false.
16190         Reported by Jim Meyering.
16191
16192 2010-12-19  Jim Meyering  <meyering@redhat.com>
16193
16194         setenv: restore to working order
16195         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
16196         mistakenly removed.
16197         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
16198         HAVE_SETENV.
16199         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
16200         HAVE_SETENV.
16201
16202 2010-12-19  Bruno Haible  <bruno@clisp.org>
16203
16204         Document some different function declarations on OSF/1 5.1.
16205         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
16206         * doc/posix-functions/inet_ntop.texi: Likewise.
16207         * doc/posix-functions/gethostname.texi: Likewise.
16208         * lib/unistd.in.h (gethostname): Update comment.
16209
16210 2010-12-19  Bruno Haible  <bruno@clisp.org>
16211
16212         doc: Mention vasprintf-posix module.
16213         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
16214         the 'vasprintf-posix' module.
16215         * doc/glibc-functions/vasprintf.texi: Likewise.
16216
16217 2010-12-19  Bruno Haible  <bruno@clisp.org>
16218
16219         unsetenv: Add missing declaration on OSF/1 5.1.
16220         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
16221         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
16222         Don't set HAVE_UNSETENV. In the test program, set _BSD.
16223         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
16224         not HAVE_UNSETENV.
16225         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
16226         HAVE_UNSETENV.
16227         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
16228
16229 2010-12-19  Bruno Haible  <bruno@clisp.org>
16230
16231         setenv: Add missing declaration on OSF/1 5.1.
16232         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
16233         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
16234         declared. Don't set HAVE_SETENV.
16235         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
16236         not HAVE_SETENV.
16237         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
16238         HAVE_SETENV.
16239         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
16240
16241 2010-12-19  Bruno Haible  <bruno@clisp.org>
16242
16243         nl_langinfo tests: Avoid gcc warning.
16244         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
16245
16246 2010-12-19  Bruno Haible  <bruno@clisp.org>
16247
16248         mknod: Avoid error in C++ mode on OSF/1 with GCC.
16249         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
16250         _GL_CXXALIAS_SYS.
16251
16252 2010-12-19  Bruno Haible  <bruno@clisp.org>
16253
16254         stdbool: Relax test.
16255         * tests/test-stdbool.c (e): Don't require that casts from a variable's
16256         address to 'bool' work in static initializer, for compilers other than
16257         GCC.
16258
16259 2010-12-19  Bruno Haible  <bruno@clisp.org>
16260
16261         ftello: Add missing declaration on OSF/1 5.1.
16262         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
16263         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
16264         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
16265         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
16266         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
16267
16268 2010-12-19  Bruno Haible  <bruno@clisp.org>
16269
16270         fseeko: Add missing declaration on OSF/1 5.1.
16271         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
16272         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
16273         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
16274         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
16275         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
16276
16277 2010-12-19  Bruno Haible  <bruno@clisp.org>
16278
16279         fchdir: Add missing declaration on OSF/1 5.1.
16280         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
16281         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
16282         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
16283         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
16284         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
16285
16286 2010-12-19  Bruno Haible  <bruno@clisp.org>
16287
16288         relocatable-prog-wrapper: Separate from relocatable-prog.
16289         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
16290         uninstall-relocwrapper rule here.
16291         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
16292         Reported by Ian Beckwith <ianb@erislabs.net>.
16293
16294 2010-12-19  Bruno Haible  <bruno@clisp.org>
16295
16296         unistr/u8-mbsnlen: Add missing dependency.
16297         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
16298         Reported by Ian Beckwith <ianb@erislabs.net>.
16299
16300 2010-12-19  Bruno Haible  <bruno@clisp.org>
16301
16302         iconv: Make it possible again to use this module without 'iconv-h'.
16303         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
16304         if it is not defined.
16305         Reported by Ian Beckwith <ianb@erislabs.net>.
16306
16307 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
16308
16309         acl: port to Solaris 8 when copying from tmpfs to ufs
16310         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
16311         error number.  Problem observed on Solaris 8 with latest
16312         coreutils, with "mv A B", where A is on a tmpfs file system and B
16313         is on a ufs file system.  This caused coreutils' mv/part-symlink
16314         test to fail.
16315
16316         tests: set fail=0 at start
16317         * tests/init.sh (setup_): Move fail=0 initialization here ...
16318         (mktempd_): ... from here, so that tests can rely on fail being
16319         set to 0 initially.  This fixes a problem in coreutils; see:
16320         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
16321
16322 2010-12-18  Bruno Haible  <bruno@clisp.org>
16323
16324         memmem-simple: Stylistic changes.
16325         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
16326         Fix preprocessor directive indentation.
16327
16328 2010-12-15  Pádraig Brady <P@draigBrady.com>
16329
16330         memmem, memmem-simple: reorganize and expand empty needle check
16331         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
16332         functional checks to memmem-simple so that one has a fully functional
16333         memmem by using just this module.
16334         Restrict the performance only check to the memmem module.
16335         Also expand the empty needle check to ensure the correct
16336         pointer is returned, not just a non NULL pointer.
16337         * doc/glibc-functions/memmem.texi: Rearrange the portability
16338         documentation to correlate with the rearranged checks.
16339         Clarify exactly how the memmem and memmem-simple modules
16340         relate to each other.
16341
16342 2010-12-15  Pádraig Brady <P@draigBrady.com>
16343             Bruno Haible  <bruno@clisp.org>
16344
16345         Improve cross-compilation guesses for uClibc.
16346         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
16347         that uClibc does not have the glibc bug.
16348         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
16349         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
16350
16351 2010-12-14  Eric Blake  <eblake@redhat.com>
16352
16353         configmake: provide fallbacks for oldest supported autotools
16354         * m4/configmake.m4: New file.
16355         * modules/configmake (Files): Ship it.
16356         (configure.ac): Use it to guarantee fallbacks.
16357
16358 2010-12-13  Pádraig Brady <P@draigBrady.com>
16359
16360         read-file: Improve handling of large files
16361         * lib/read-file.c (fread_file): Minimize realloc()s
16362         for regular files, and better manage sizes around SIZE_MAX.
16363
16364 2010-12-13  Eric Blake  <eblake@redhat.com>
16365
16366         cloexec, fcntl: relax license
16367         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
16368         consent from all contributors.
16369         * modules/fcntl (License): Likewise.
16370
16371 2010-12-10  Bruno Haible  <bruno@clisp.org>
16372
16373         Tests for module 'pipe-posix'.
16374         * modules/pipe-posix-tests: New file.
16375         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
16376
16377 2010-12-10  Bruno Haible  <bruno@clisp.org>
16378
16379         pipe-posix: Make it work in C++ mode.
16380         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
16381         (pipe): Use common idiom, not a macro definition.
16382         * lib/pipe.c: New file.
16383         * m4/pipe.m4: New file.
16384         * modules/pipe-posix (Description): Enhance.
16385         (Files): Add lib/pipe.c, m4/pipe.m4.
16386         (configure.ac): Invoke gl_FUNC_PIPE.
16387         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
16388         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
16389         * tests/test-unistd-c++.cc: Check the signature of pipe.
16390
16391 2010-12-10  Bruno Haible  <bruno@clisp.org>
16392
16393         Rename module 'pipe' to 'spawn-pipe'.
16394         * modules/spawn-pipe: New file, renamed from modules/pipe.
16395         (Files, configure.ac, Makefile.am): Update.
16396         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
16397         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
16398         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
16399         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
16400         "spawn-pipe.h" instead of "pipe.h".
16401         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
16402         to gl_SPAWN_PIPE.
16403         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
16404         (Files, Makefile.am): Update.
16405         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
16406         Update.
16407         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
16408         Include "spawn-pipe.h" instead of "pipe.h".
16409         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
16410         * lib/javacomp.c: Likewise.
16411         * lib/javaversion.c: Likewise.
16412         * lib/pipe-filter-gi.c: Likewise.
16413         * lib/pipe-filter-ii.c: Likewise.
16414         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
16415         * modules/javacomp (Depends-on): Likewise.
16416         * modules/javaversion (Depends-on): Likewise.
16417         * modules/pipe-filter-gi (Depends-on): Likewise.
16418         * modules/pipe-filter-ii (Depends-on): Likewise.
16419         * MODULES.html.sh (Executing programs): Update.
16420         * NEWS: Mention the change.
16421
16422 2010-12-10  Eric Blake  <eblake@redhat.com>
16423
16424         pipe-posix: new module
16425         * modules/pipe-posix: New file.
16426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
16427         (gl_UNISTD_H): Check for declaration.
16428         * modules/unistd (Makefile.am): Substitute it.
16429         * lib/unistd.in.h (pipe): Provide it for mingw.
16430         * doc/posix-functions/pipe.texi (pipe): Update documentation.
16431         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
16432
16433 2010-12-07  Bruno Haible  <bruno@clisp.org>
16434
16435         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
16436         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
16437         u8_strcmp_gnu.
16438         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
16439
16440 2010-12-06  Bruno Haible  <bruno@clisp.org>
16441
16442         Update internal documentation.
16443         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
16444
16445 2010-12-04  Bruno Haible  <bruno@clisp.org>
16446
16447         Put more information about failed tests into the test return codes.
16448         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
16449         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
16450         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
16451         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
16452         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
16453         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
16454         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
16455         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16456         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
16457         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16458         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
16459         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
16460         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
16461         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16462         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
16463         returns a bit mask.
16464         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
16465         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
16466         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
16467         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
16468         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
16469         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
16470         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
16471         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
16472         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16473         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
16474         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16475         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
16476         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16477         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
16478         * m4/link.m4 (gl_FUNC_LINK): Likewise.
16479         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
16480         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
16481         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
16482         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16483         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
16484         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16485         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
16486         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
16487         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16488         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16489         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
16490         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
16491         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
16492         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
16493         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
16494         gl_PRINTF_PRECISION): Likewise.
16495         * m4/regex.m4 (gl_REGEX): Likewise.
16496         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16497         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
16498         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
16499         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16500         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16501         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16502         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16503         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
16504         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
16505         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
16506         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
16507         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
16508         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
16509         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
16510         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16511         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16512         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
16513         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16514         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16515         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
16516         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
16517         enumerated value.
16518         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
16519
16520 2010-12-04  Bruno Haible  <bruno@clisp.org>
16521
16522         Update for Solaris 11 2010-11.
16523         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
16524         Express, released in November 2010.
16525
16526 2010-12-04  Bruno Haible  <bruno@clisp.org>
16527
16528         nproc: Relax license.
16529         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
16530         and Paul Eggert.
16531         Requested by Ludovic Courtès <ludo@gnu.org>.
16532
16533 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
16534
16535         utimecmp: fine-grained src to nearby coarse-grained dest
16536
16537         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
16538         and the source is on a file system with higher-resolution time
16539         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
16540         not work, and the time stamps are close together, the algorithm to
16541         determine the exact resolution from the read-back mtime was buggy:
16542         it had a "!=" where it should have had an "==".  This bug has been
16543         in the code ever since it was introduced to gnulib.
16544         Problem reported by Dan Jacobson in
16545         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
16546
16547 2010-11-30  Bruno Haible  <bruno@clisp.org>
16548
16549         strerror_r-posix: Fix autoconf test.
16550         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
16551
16552 2010-11-28  Bruno Haible  <bruno@clisp.org>
16553             Paul Eggert  <eggert@cs.ucla.edu>
16554
16555         Tests for module 'getdomainname'.
16556         * modules/getdomainname-tests: New file.
16557         * tests/test-getdomainname.c: New file, based on
16558         tests/test-gethostname.c.
16559
16560 2010-11-28  Bruno Haible  <bruno@clisp.org>
16561             Paul Eggert  <eggert@cs.ucla.edu>
16562
16563         getdomainname: Use the system function when possible.
16564         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
16565         (getdomainname): Replace if needed. Provide the declaration if it is
16566         missing. Don't use _GL_CXXALIAS_SYS_CAST.
16567         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
16568         (getdomainname): When the system has getdomainname, call the system
16569         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
16570         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
16571         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
16572         found in libnsl. Look for the declaration also in <netdb.h>. Replace
16573         the function if its second argument is of type 'int' or if it is found
16574         in libnsl.
16575         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
16576         <sys/systeminfo.h> and sysinfo().
16577         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
16578         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16579         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
16580         HAVE_GETDOMAINNAME.
16581         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
16582         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
16583         * doc/glibc-functions/getdomainname.texi: Document the problems with
16584         the getdomainname declaration.
16585
16586 2010-11-28  Bruno Haible  <bruno@clisp.org>
16587
16588         sys_socket: Ensure ss_family field on AIX.
16589         * lib/sys_socket.in.h (ss_family): New macro definition.
16590         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
16591         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
16592         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
16593         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
16594         * modules/sys_socket (Makefile.am): Substitute
16595         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
16596         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
16597
16598 2010-11-27  Bruno Haible  <bruno@clisp.org>
16599
16600         readline: Improve configure output.
16601         * m4/readline.m4 (gl_FUNC_READLINE): Make the
16602         "checking for readline..." result understandable.
16603
16604 2010-11-27  Bruno Haible  <bruno@clisp.org>
16605
16606         *printf-posix: Detect a bug on Solaris 10/x86.
16607         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
16608         for floating-point output.
16609         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
16610         directive.
16611         * tests/test-snprintf-posix.h (test_function): Likewise.
16612         * tests/test-sprintf-posix.h (test_function): Likewise.
16613         * tests/test-vasprintf-posix.c (test_function): Likewise.
16614         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
16615         * doc/posix-functions/printf.texi: Likewise.
16616         * doc/posix-functions/snprintf.texi: Likewise.
16617         * doc/posix-functions/sprintf.texi: Likewise.
16618         * doc/posix-functions/vfprintf.texi: Likewise.
16619         * doc/posix-functions/vprintf.texi: Likewise.
16620         * doc/posix-functions/vsnprintf.texi: Likewise.
16621         * doc/posix-functions/vsprintf.texi: Likewise.
16622         * doc/glibc-functions/obstack_printf.texi: Likewise.
16623         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
16624
16625 2010-11-27  Bruno Haible  <bruno@clisp.org>
16626
16627         Fix link error when module libunistring-optional is in use.
16628         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
16629         * modules/striconveha-tests (Makefile.am): Likewise.
16630
16631 2010-11-27  Bruno Haible  <bruno@clisp.org>
16632
16633         regex: Mention link dependencies.
16634         * modules/regex (Link): New section.
16635         * modules/rpmatch (Link): Likewise.
16636         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
16637
16638 2010-11-27  Bruno Haible  <bruno@clisp.org>
16639
16640         ftoastr: Fix compilation error on Solaris.
16641         * lib/ftoastr.c: Include <config.h>.
16642
16643 2010-11-27  Bruno Haible  <bruno@clisp.org>
16644
16645         getloadavg: Update documentation.
16646         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
16647
16648 2010-11-27  Bruno Haible  <bruno@clisp.org>
16649
16650         sys_socket: Fix test whether the functions are declared.
16651         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
16652         not <sys/select.h>.
16653
16654 2010-11-27  Bruno Haible  <bruno@clisp.org>
16655
16656         getpass: Make sure to get system declaration on some platforms.
16657         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
16658         gl_USE_SYSTEM_EXTENSIONS.
16659         * modules/getpass (Depends-on): Add extensions.
16660
16661 2010-11-26  Bruno Haible  <bruno@clisp.org>
16662
16663         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
16664         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
16665         'iconv' module is present.
16666         (ICONV_CONST): New macro.
16667         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
16668         ICONV_CONST.
16669         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
16670         set ICONV_CONST.
16671         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
16672         here.
16673         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
16674         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
16675         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
16676         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
16677         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
16678         present.
16679
16680 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
16681
16682         ftoastr: comment fix
16683         * lib/ftoastr.c: "little" -> "little or no" in comment
16684
16685 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
16686
16687         stdint: port to GCC 4.3 + OSX + Octave
16688         On this platform, stdint.h is buggy and defines int64_t to long
16689         long int.  The replacement defined it to long int, causing
16690         problems with C++ style name mangling.  Instead, trust the system
16691         definition if INT64_MAX is defined, and likewise for the unsigned
16692         variant.   Problem reported by Jarno Rajahalme in
16693         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
16694         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
16695         and don't mess with int64_t and INT64_MAX in this case.
16696         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
16697
16698 2010-11-24  Bruno Haible  <bruno@clisp.org>
16699
16700         doc: Corrections regarding MacOS X 10.4 and 10.5.
16701         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
16702         MacOS X.
16703         Reported by Simon Josefsson.
16704
16705 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
16706
16707         Uninstall ".bin" files installed by relocwrapper.
16708         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
16709         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
16710         unless it is already there.
16711
16712 2010-11-21  Bruno Haible  <bruno@clisp.org>
16713
16714         Update for NetBSD 5.0.
16715         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
16716         NetBSD; the test fails on NetBSD 5.0.
16717         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
16718         about NetBSD.
16719
16720 2010-11-21  Bruno Haible  <bruno@clisp.org>
16721
16722         Update for HP-UX 11.23 and HP-UX 11.31.
16723         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
16724         HP-UX.
16725
16726 2010-11-21  Bruno Haible  <bruno@clisp.org>
16727
16728         Update for MacOS X 10.5.
16729         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
16730         MacOS X; the test fails on MacOS X 10.5.8.
16731         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
16732         about MacOS X.
16733
16734 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
16735
16736         bootstrap: add bootstrap_sync option.
16737         See discussion at
16738         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
16739         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
16740         * build-aux/bootstrap: Accept --bootstrap-sync to update
16741         bootstrap if it is not identical to the local gnulib's
16742         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
16743         enable this by default.  Accept --no-bootstrap-sync to disable
16744         it.
16745
16746 2010-11-20  Bruno Haible  <bruno@clisp.org>
16747
16748         Ensure that <features.h> is included before __GLIBC__ is tested.
16749         * lib/printf-parse.h: Include <features.h>.
16750         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
16751         Reported by Mike Frysinger <vapier@gentoo.org>.
16752
16753         Ensure that <features.h> is included before __GLIBC__ is tested.
16754         * lib/wchar.in.h: Include <features.h>.
16755         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
16756         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
16757         Reported by Mike Frysinger <vapier@gentoo.org>.
16758
16759         Ensure that <features.h> is included before __GLIBC__ is tested.
16760         * lib/arpa_inet.in.h: Include <features.h>.
16761         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
16762         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
16763         Reported by Mike Frysinger <vapier@gentoo.org>.
16764
16765         Ensure that <features.h> is included before __GLIBC__ is tested.
16766         * build-aux/link-warning.h: Include <features.h>.
16767         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
16768         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
16769         Reported by Mike Frysinger <vapier@gentoo.org>.
16770
16771         Ensure that <features.h> is included before __GLIBC__ is tested.
16772         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
16773         Reported by Mike Frysinger <vapier@gentoo.org>.
16774
16775 2010-11-20  Bruno Haible  <bruno@clisp.org>
16776
16777         memmem: Fix autoconf test.
16778         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
16779
16780 2010-11-20  Bruno Haible  <bruno@clisp.org>
16781
16782         Port to uClibc.
16783         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
16784         * lib/fcntl.in.h: Likewise.
16785         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
16786         * lib/mbrtowc.c (mbrtowc): Likewise.
16787         * lib/relocatable.c (find_shared_library_fullname): Likewise.
16788         * lib/strerror_r.c: Likewise.
16789         * lib/unistr/u8-strnlen.c: Likewise.
16790         * lib/vasnprintf.c (decimal_point_char): Likewise.
16791         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
16792         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
16793         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
16794         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
16795         * tests/test-sigaction.c (handler, main): Likewise.
16796         * lib/freading.h: Treat uClibc like a non-glibc platform.
16797         * lib/freading.c: Likewise.
16798         * lib/gettext.h: Likewise.
16799         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
16800         Likewise.
16801         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
16802         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
16803         * lib/propername.c (proper_name_utf8): Likewise.
16804         * lib/spawn.in.h: Likewise.
16805         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
16806         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
16807         mem_cd_iconveh_internal): Likewise.
16808         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
16809         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
16810         strstr, strcasestr): Likewise.
16811         * lib/unicodeio.c (unicode_to_mb): Likewise.
16812         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
16813         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
16814         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
16815         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
16816         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
16817         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
16818         * lib/unistr/u8-stpncpy.c: Likewise.
16819         * lib/vasnprintf.c (VASNPRINTF): Likewise.
16820         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
16821         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
16822         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
16823         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
16824         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
16825         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
16826         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
16827         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
16828         Likewise.
16829         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
16830         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
16831         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
16832         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16833         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
16834         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16835         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16836         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
16837         * tests/test-getopt.h (OPTIND_MIN): Likewise.
16838         * tests/test-striconveha.c (main): Likewise.
16839         * tests/test-vasnprintf-posix.c (test_function): Likewise.
16840         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
16841         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
16842         * doc/posix-functions/getline.texi: Likewise.
16843         Reported by Mike Frysinger <vapier@gentoo.org>.
16844
16845 2010-11-20  Bruno Haible  <bruno@clisp.org>
16846
16847         nproc: Fix condition.
16848         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
16849         HAVE_PTHREAD_AFFINITY_NP.
16850
16851 2010-11-20  Bruno Haible  <bruno@clisp.org>
16852
16853         Fix a comment.
16854         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
16855
16856 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
16857
16858         ftoastr: don't assume snprintf
16859         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
16860         Implement a subset of snprintf here, by using sprintf safely.
16861         * modules/ftoastr (Depends-on): Remove snprintf.
16862
16863 2010-11-19  Jim Meyering  <meyering@redhat.com>
16864
16865         test-rename.h: fix compilation failure
16866         * tests/test-rename.h (test_rename): Add omitted "}".
16867
16868 2010-11-17  Jim Meyering  <meyering@redhat.com>
16869
16870         maint.mk: add a URL discussing the no-@acronym policy
16871         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
16872
16873 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
16874
16875         ftoastr: depend on snprintf, improve comments
16876         * lib/ftoastr.c: Also mention Loitsch's draft.
16877         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
16878         needed in the current implementation, but it might simplify
16879         speeding up the code later.
16880         * modules/ftoastr: Depend on snprintf; this improves portability.
16881         Suggested by Bruno Haible in the same email.
16882
16883         ftoastr: port to hosts lacking strtof and strtold
16884         Problem reported by Bruno Haible in
16885         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
16886         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
16887         environment and strtold (and presumably strtof) are not available.
16888         * modules/ftoastr (Files): Add m4/c-strtod.m4.
16889         (configure.ac): Require gl_C99_STRTOLD.
16890
16891 2010-11-18  Bruno Haible  <bruno@clisp.org>
16892
16893         c-strtold: Avoid link error on AIX 7.
16894         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
16895         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
16896         (gl_C_STRTOLD): Test whether strtold_l exists.
16897         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16898
16899 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
16900
16901         intprops: new macro INT_BITS_STRLEN_BOUND
16902         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
16903         ftoastr.h.  This exposes an internal of intprops.h that was formerly
16904         not exposed.  Also, it uses a slightly tighter bound than before;
16905         though this makes no practical difference, we might as well be as
16906         tight as we easily can.
16907
16908         ftoastr: new module, for lossless conversion of floats to short strings
16909         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
16910         * modules/ftoastr: New files.
16911
16912 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
16913
16914         bootstrap: port to Solaris sed
16915         * build-aux/bootstrap (get_version): Port to Solaris sed.
16916         See Ralf Wildenhues's note in
16917         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
16918
16919 2010-11-14  Jim Meyering  <meyering@redhat.com>
16920
16921         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
16922         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
16923         and move definition closer to sole use.
16924
16925 2010-11-13  Jim Meyering  <meyering@redhat.com>
16926
16927         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
16928         Now we require at least autoconf-2.59, which means the work-around
16929         is no longer needed.
16930         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
16931         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
16932         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
16933         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
16934         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
16935
16936 2010-11-13  Bruno Haible  <bruno@clisp.org>
16937
16938         rename, renameat: Avoid test failures at NFS mounted locations.
16939         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
16940         functions.
16941         (test_rename): Use assert_nonexistent.
16942         * tests/test-rename.c: Include <dirent.h>.
16943         * tests/test-renameat.c: Likewise.
16944         Reported by Gary V. Vaughan <gary@gnu.org>.
16945
16946         rename, renameat: Document Linux bug with NFS
16947         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
16948         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
16949         * doc/posix-functions/renameat.texi: Likewise.
16950         Suggested by Eric Blake.
16951
16952 2010-11-13  Bruno Haible  <bruno@clisp.org>
16953
16954         rename test: Add comments.
16955         * tests/test-rename.h (test_rename): Add structure and comments.
16956
16957 2010-11-13  Eric Blake  <eblake@redhat.com>
16958
16959         maintainer-makefile: cover a few more files
16960         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
16961         scripts generated within C files, for libvirt.
16962
16963 2010-11-13  Bruno Haible  <bruno@clisp.org>
16964
16965         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
16966         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
16967         character, return the number of bytes that belong together, not always
16968         1.
16969         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
16970         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
16971         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
16972         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
16973         number of bytes of an invalid character.
16974         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
16975         (main): Invoke it.
16976         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
16977         results.
16978         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
16979         malformed byte sequences.
16980         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
16981         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
16982         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
16983         Reported by Ben Pfaff and Paolo Bonzini.
16984
16985 2010-11-13  Bruno Haible  <bruno@clisp.org>
16986
16987         openat: Work around glibc bug with fchownat() and empty file names.
16988         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
16989         (gl_FUNC_FCHOWNAT): Invoke it.
16990         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
16991         * doc/posix-functions/fchownat.texi: Document the glibc bug.
16992         Reported by Gary V. Vaughan <gary@gnu.org>.
16993
16994 2010-11-13  Bruno Haible  <bruno@clisp.org>
16995
16996         openat: Ensure autoconf macro ordering.
16997         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
16998         gl_USE_SYSTEM_EXTENSIONS.
16999         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
17000
17001 2010-11-13  Bruno Haible  <bruno@clisp.org>
17002
17003         Update comments.
17004         * lib/unistr/u8-check.c: Update file name in comments.
17005         * lib/unistr/u8-mblen.c: Likewise.
17006         * lib/unistr/u8-prev.c: Likewise.
17007         * lib/unistr/u8-strmblen.c: Likewise.
17008         * lib/unistr/u8-strmbtouc.c: Likewise.
17009
17010 2010-11-13  Jim Meyering  <meyering@redhat.com>
17011
17012         tests: avoid test failure on Solaris 10 due to lack of PATH export
17013         * tests/test-update-copyright.sh: Don't forget to export PATH.
17014
17015         init.sh: ensure that IFS is defined, just in case...
17016         * tests/init.sh (setup_): Ensure that IFS is defined,
17017         so that saving and restoring it works as expected.  This
17018         appears to be useful at least for an old version of dash
17019         from a long time ago (RH 6).  See here for details:
17020         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
17021
17022         maint.mk: tighten "test a == b" check
17023         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
17024         test to files that contain something like #!/bin/sh.
17025         Without this, coreutils would get two false positives in
17026         the comments of C source files.
17027
17028 2010-11-12  Eric Blake  <eblake@redhat.com>
17029
17030         bootstrap: fix typo in previous attempt
17031         * build-aux/bootstrap (buildreq): Correct the grouping.
17032         Reported by Paul Eggert.
17033
17034         maintainer-makefile: prohibit test x == x
17035         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
17036         Based on a report by Matthias Bolte.
17037
17038         bootstrap: allow FreeBSD gzip
17039         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
17040         which has no '.' and goes to stderr.
17041         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
17042         Reported by Matthias Bolte.
17043
17044         maintainer-makefile: check for i18n setup
17045         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
17046         will likely work.
17047
17048 2010-11-12  Bruno Haible  <bruno@clisp.org>
17049
17050         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
17051         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
17052         * lib/nanosleep.c (nanosleep): Likewise.
17053
17054 2010-11-11  Bruno Haible  <bruno@clisp.org>
17055
17056         fcntl-h: Fix for use of C++ on glibc systems.
17057         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17058         also on glibc systems in C++ mode.
17059         Reported by Gary V. Vaughan <gary@gnu.org>.
17060
17061 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17062
17063         mknod: avoid false failure with dash
17064         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
17065
17066 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
17067
17068         unlink: Fix "is it should" typo in diagnostic.
17069         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
17070         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
17071
17072 2010-11-11  Bruno Haible  <bruno@clisp.org>
17073
17074         Tests for module 'strerror_r-posix'.
17075         * modules/strerror_r-posix-tests: New file.
17076         * tests/test-strerror_r.c: New file.
17077         * tests/test-string-c++.cc: Check the signature of strerror_r.
17078
17079         New module 'strerror_r-posix'.
17080         * lib/string.in.h (strerror_r): New declaration.
17081         * lib/strerror_r.c: New file.
17082         * m4/strerror_r.m4: New file.
17083         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
17084         of strerror_r.
17085         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
17086         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
17087         * modules/strerror_r-posix: New file.
17088         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
17089         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
17090         * doc/posix-functions/strerror_r.texi: Mention the new module and the
17091         portability problems.
17092
17093 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
17094
17095         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
17096         line is also considered for output. Quoted function name in shell
17097         command, so temporary files for functions like MyClass::operator()
17098         are removed correctly without errors.
17099
17100 2010-11-09  Bruno Haible  <bruno@clisp.org>
17101
17102         * doc/posix-functions/strerror.texi: List more failing platforms.
17103
17104         * doc/posix-functions/strerror.texi: Add a comment.
17105
17106 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
17107
17108         fdopendir: fix bug on MacOS X when low on file descriptors
17109
17110         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
17111         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
17112         All callers changed.
17113         (fdopendir): Invoke save_cwd at the top level, not after using
17114         multiple dup() calls to use up file descriptors.  Then retry
17115         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
17116         less than the maximum number of open file descriptors, because
17117         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
17118         on Mac OS X 10.6.4 for tar 1.24
17119         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
17120         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
17121         and for tar 1.25
17122         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
17123
17124 2010-11-07  Bruno Haible  <bruno@clisp.org>
17125
17126         vasnprintf: Support I flag on glibc systems.
17127         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
17128         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
17129         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
17130         snprintf function.
17131         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
17132         glibc systems.
17133         * tests/test-vasnprintf-posix3.c: New file.
17134         * modules/vasnprintf-posix-tests (Files): Add it.
17135         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
17136
17137 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
17138
17139         [html] Fix copy/paste bug: Use unique name for compiler warnings.
17140         * MODULES.html.sh: For compiler warnings, use name
17141         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
17142
17143 2010-11-05  Eric Blake  <eblake@redhat.com>
17144
17145         ceil, floor: avoid spurious failure with icc
17146         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
17147         [denormals-as-zero] when optimizing without -mieee-fp option.
17148         * tests/test-floorf2.c (floorf_reference): Likewise.
17149         * tests/test-ceilf1.c (dummy): New function.
17150         (main): Use it to outsmart icc's optimization.
17151         * tests/test-floorf1.c (dummy, main): Likewise.
17152
17153         tests: require working signbit
17154         * modules/ceilf-tests (Depends-on): Add signbit.
17155         * modules/ceill-tests (Depends-on): Likewise.
17156         * modules/floorf-tests (Depends-on): Likewise.
17157         * modules/floorl-tests (Depends-on): Likewise.
17158         * modules/round-tests (Depends-on): Likewise.
17159         * modules/roundf-tests (Depends-on): Likewise.
17160         * modules/roundl-tests (Depends-on): Likewise.
17161         * modules/trunc-tests (Depends-on): Likewise.
17162         * modules/truncf-tests (Depends-on): Likewise.
17163         * modules/truncl-tests (Depends-on): Likewise.
17164
17165         strtod: work around icc bug
17166         * lib/strtod.c (minus_zero): Define to working value.
17167         (strtod): Use it to avoid icc bug.
17168
17169         copysign: enhance tests
17170         * modules/copysign-tests (Files): Add minus-zero.h.
17171         * tests/test-copysign.c (main): Also test zeros.
17172
17173 2010-11-04  Eric Blake  <eblake@redhat.com>
17174
17175         ceil, floor, round, trunc: enhance tests of -0
17176         * tests/test-ceilf1.c (main): Ensure correct sign of result.
17177         * tests/test-ceill.c (main): Likewise.
17178         * tests/test-floorf1.c (main): Likewise.
17179         * tests/test-floorl.c (main): Likewise.
17180         * tests/test-round1.c (main): Likewise.
17181         * tests/test-roundf1.c (main): Likewise.
17182         * tests/test-roundl.c (main): Likewise.
17183         * tests/test-trunc1.c (main): Likewise.
17184         * tests/test-truncf1.c (main): Likewise.
17185         * tests/test-truncl.c (main): Likewise.
17186
17187 2010-11-04  Eric Blake  <eblake@redhat.com>
17188
17189         frexp, tests: work around ICC bug with -zero
17190         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
17191         works with more compilers.
17192         * tests/minus-zero.h: New file.
17193         * modules/ceilf-tests (Files): Include it.
17194         * modules/ceill-tests (Files): Likewise.
17195         * modules/floorf-tests (Files): Likewise.
17196         * modules/floorl-tests (Files): Likewise.
17197         * modules/frexp-nolibm-tests (Files): Likewise.
17198         * modules/frexp-tests (Files): Likewise.
17199         * modules/frexpl-nolibm-tests (Files): Likewise.
17200         * modules/frexpl-tests (Files): Likewise.
17201         * modules/isnan-tests (Files): Likewise.
17202         * modules/isnand-nolibm-tests (Files): Likewise.
17203         * modules/isnand-tests (Files): Likewise.
17204         * modules/isnanf-nolibm-tests (Files): Likewise.
17205         * modules/isnanf-tests (Files): Likewise.
17206         * modules/isnanl-nolibm-tests (Files): Likewise.
17207         * modules/isnanl-tests (Files): Likewise.
17208         * modules/round-tests (Files): Likewise.
17209         * modules/roundf-tests (Files): Likewise.
17210         * modules/roundl-tests (Files): Likewise.
17211         * modules/ldexpl-tests (Files): Likewise.
17212         * modules/signbit-tests (Files): Likewise.
17213         * modules/snprintf-posix-tests (Files): Likewise.
17214         * modules/sprintf-posix-tests (Files): Likewise.
17215         * modules/strtod-tests (Files): Likewise.
17216         * modules/trunc-tests (Files): Likewise.
17217         * modules/truncf-tests (Files): Likewise.
17218         * modules/truncl-tests (Files): Likewise.
17219         * modules/vsnprintf-posix-tests (Files): Likewise.
17220         * modules/vsprintf-posix-tests (Files): Likewise.
17221         * modules/vasnprintf-posix-tests (Files): Likewise.
17222         * modules/vasprintf-posix-tests (Files): Likewise.
17223         * tests/test-ceilf1.c (main): Use it.
17224         * tests/test-ceill.c (main): Likewise.
17225         * tests/test-floorf1.c (main): Likewise.
17226         * tests/test-floorl.c (main): Likewise.
17227         * tests/test-frexp.c (main): Likewise.
17228         * tests/test-frexpl.c (main): Likewise.
17229         * tests/test-isnan.c (main): Likewise.
17230         * tests/test-isnand.h (main): Likewise.
17231         * tests/test-isnanf.h (main): Likewise.
17232         * tests/test-isnanl.h (main): Likewise.
17233         * tests/test-ldexpl.c (main): Likewise.
17234         * tests/test-round.c (main): Likewise.
17235         * tests/test-roundf.c (main): Likewise.
17236         * tests/test-roundl.c (main): Likewise.
17237         * tests/test-signbit.c (test_signbitf, test_signbitd)
17238         (test_signbitl): Likewise.
17239         * tests/test-snprintf-posix.h (test_function): Likewise.
17240         * tests/test-sprintf-posix.h (test_function): Likewise.
17241         * tests/test-strtod.c (main): Likewise.
17242         * tests/test-trunc1.c (main): Likewise.
17243         * tests/test-truncf1.c (main): Likewise.
17244         * tests/test-truncl.c (main): Likewise.
17245
17246         isnanl: work around icc bug
17247         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
17248
17249 2010-11-03  Eric Blake  <eblake@redhat.com>
17250
17251         tests: fix compiler warnings
17252         * tests/test-getopt.h (test_getopt): Fix condition.
17253         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17254         * tests/test-pipe2.c (main): Likewise.
17255         * tests/test-quotearg-simple.c (main): Avoid icc warning.
17256
17257         utimens: fix broken m4 test
17258         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
17259
17260 2010-10-28  Bruno Haible  <bruno@clisp.org>
17261
17262         posix_spawn*, getdtablesize: Relax license.
17263         * modules/posix_spawn (License): Change to LGPLv2+.
17264         * modules/posix_spawnp (License): Likewise.
17265         * modules/posix_spawn-internal (License): Likewise.
17266         * modules/posix_spawnattr_init (License): Likewise.
17267         * modules/posix_spawnattr_getflags (License): Likewise.
17268         * modules/posix_spawnattr_setflags (License): Likewise.
17269         * modules/posix_spawnattr_getpgroup (License): Likewise.
17270         * modules/posix_spawnattr_setpgroup (License): Likewise.
17271         * modules/posix_spawnattr_getschedparam (License): Likewise.
17272         * modules/posix_spawnattr_setschedparam (License): Likewise.
17273         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
17274         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
17275         * modules/posix_spawnattr_getsigdefault (License): Likewise.
17276         * modules/posix_spawnattr_setsigdefault (License): Likewise.
17277         * modules/posix_spawnattr_getsigmask (License): Likewise.
17278         * modules/posix_spawnattr_setsigmask (License): Likewise.
17279         * modules/posix_spawnattr_destroy (License): Likewise.
17280         * modules/posix_spawn_file_actions_init (License): Likewise.
17281         * modules/posix_spawn_file_actions_addclose (License): Likewise.
17282         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
17283         * modules/posix_spawn_file_actions_addopen (License): Likewise.
17284         * modules/posix_spawn_file_actions_destroy (License): Likewise.
17285         * modules/getdtablesize (License): Likewise.
17286         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
17287
17288 2010-10-26  Bruno Haible  <bruno@clisp.org>
17289
17290         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
17291         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
17292         Cygwin and mingw.
17293         Suggested by Eric Blake.
17294
17295 2010-10-26  Bruno Haible  <bruno@clisp.org>
17296
17297         stdio: Work around compilation error due to renameat() on Solaris 10.
17298         * lib/stdio.in.h: Include <unistd.h> on Solaris.
17299         * lib/renameat.c: Don't include <unistd.h> here.
17300         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
17301         Reported by Paul Eggert and Eric Blake.
17302
17303 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
17304
17305         renameat: port to Solaris 10, which declares renameat in unistd.h
17306
17307         * lib/renameat.c: Include unistd.h before stdio.h, because
17308         Solaris 10 declares renameat in unistd.h.  Problem encountered
17309         when building GNU tar 1.24 on Solaris 10.
17310
17311 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17312
17313         fdopendir: fix C89 compilation
17314         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
17315         compilers.
17316
17317 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
17318
17319         inttostr: simplify by removing unnecessary redundancy
17320         * lib/anytostr.c: Don't include verify.h.
17321         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
17322         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
17323         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
17324         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
17325         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
17326         Likewise.
17327         * modules/inttostr (Depends-on): Remove 'verify'.
17328
17329 2010-10-23  Bruno Haible  <bruno@clisp.org>
17330
17331         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
17332         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
17333         Reported by Eric Blake.
17334
17335 2010-10-23  Bruno Haible  <bruno@clisp.org>
17336
17337         Tests: Fix LOCALE_JA on MirBSD 10.
17338         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
17339         to an UTF-8 locale.
17340         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
17341         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17342         Reported by Eric Blake.
17343
17344 2010-10-21  Bruno Haible  <bruno@clisp.org>
17345
17346         nl_langinfo test: Avoid test failure on NetBSD 5.
17347         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
17348         Reported by Eric Blake.
17349
17350 2010-10-21  Eric Blake  <eblake@redhat.com>
17351
17352         c-stack: work around libsigsegv 2.8 bug
17353         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
17354         overflow on at least PowerPC64.
17355
17356 2010-10-17  Bruno Haible  <bruno@clisp.org>
17357
17358         userspec: Drop redundant file.
17359         * modules/userspec (Files): Remove lib/inttostr.h.
17360
17361 2010-10-17  Bruno Haible  <bruno@clisp.org>
17362
17363         nl_langinfo tests: Silence some warnings.
17364         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
17365         Reported by Jim Meyering.
17366
17367 2010-10-17  Bruno Haible  <bruno@clisp.org>
17368
17369         Make use of GCC's attribute __alloc_size__.
17370         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
17371         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
17372         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
17373         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
17374         __alloc_size__.
17375         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
17376         Suggested by Jim Meyering.
17377
17378 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
17379
17380         bootstrap: anchor .gitignore entries.
17381         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
17382         with...
17383         (insert_vc_ignore): ... this new function, which prepends `/' to
17384         all .gitignore entries before passing them to
17385         insert_sorted_if_absent.
17386
17387 2010-10-16  Bruno Haible  <bruno@clisp.org>
17388
17389         nextafter: Fix configure check.
17390         * modules/nextafter (configure.ac): Correct expected prototype.
17391
17392 2010-10-16  Bruno Haible  <bruno@clisp.org>
17393
17394         termios: Update documentation.
17395         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
17396
17397 2010-10-16  Bruno Haible  <bruno@clisp.org>
17398
17399         tests: Make them compile with TinyCC.
17400         * tests/test-strstr.c (main): Remove parentheses around array
17401         initializer.
17402
17403 2010-10-15  Eric Blake  <eblake@redhat.com>
17404
17405         ignore-value: make header idempotent
17406         * lib/ignore-value.h: Add double-inclusion guards.
17407         Reported by Stefan Berger.
17408
17409 2010-10-15  Jim Meyering  <meyering@redhat.com>
17410
17411         GNUmakefile: handle "stable" target, not "major"
17412         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
17413         lists in maint.mk and announce-gen.  Without this, "make stable"
17414         would fail to ensure that $(VERSION) is up to date.
17415
17416 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
17417
17418         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
17419         & co.
17420
17421 2010-10-14  Bruno Haible  <bruno@clisp.org>
17422
17423         vasnprintf: Don't set errno to 0.
17424         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
17425         block that sets it to 0.
17426         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
17427
17428 2010-10-14  Bruno Haible  <bruno@clisp.org>
17429
17430         socketlib: Fix.
17431         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
17432         gl_PREREQ_SYS_H_WINSOCK2.
17433         Reported by Ian Beckwith <ianb@erislabs.net>.
17434
17435 2010-10-13  Jim Meyering  <meyering@redhat.com>
17436
17437         test-select-stdin.c: avoid warn_unused_result warnings
17438         * tests/test-select-stdin.c: Include "macros.h".
17439         ASSERT that read and fflush succeed.
17440
17441 2010-10-13  Jim Meyering  <meyering@redhat.com>
17442
17443         git-version-gen: do require git-VC'd files in cwd
17444         * build-aux/git-version-gen: Reject a git version string
17445         if there are no commits associated with the current directory.
17446         This avoids an unlikely false-positive (unrelated dir whose parent
17447         repository also contains a tag matching v*), as pointed out
17448         by Giuseppe Scrivano in
17449         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
17450
17451 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
17452
17453         argv-iter: omit nonconforming declaration
17454         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
17455         enum arg_iter_err declaration, which doesn't conform to C99.
17456         Solaris 10 cc warns about this.
17457
17458 2010-10-13  Eric Blake  <eblake@redhat.com>
17459
17460         termios: fix compilation on mingw
17461         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
17462         (gl_TERMIOS_H): Adjust it on mingw.
17463         * modules/termios (Makefile.am): Substitute new key.
17464         * lib/termios.in.h (includes): Make include_next conditional.
17465         * doc/posix-headers/termios.texi (termios.h): Update
17466         documentation.
17467         Reported by Daniel P. Berrange.
17468
17469 2010-10-13  Jim Meyering  <meyering@redhat.com>
17470
17471         git-version-gen: don't require that .git/ be in the current dir
17472         * build-aux/git-version-gen: Adjust this script so that it works
17473         when run from any working directory beneath the top-level .git/-
17474         containing directory.  Inspired by a patch from Giuseppe Scrivano,
17475         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
17476
17477         test-select: avoid warn_unused_result warnings
17478         * tests/test-select.c: Include "macros.h".
17479         ASSERT that each call to read, write, and pipe succeeds.
17480         While not technically required, also check each "close".
17481         * modules/select-tests (Files): Add tests/macros.h.
17482
17483         test-symlinkat: remove declaration of unused local
17484         * tests/test-symlinkat.c (main): Remove unused local, "buf".
17485
17486         test-inttostr: avoid shadowing warnings
17487         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
17488         and use malloc rather than the stack for the same reason as
17489         mentioned in the comment justifying the other allocation.
17490
17491 2010-10-11  Bruno Haible  <bruno@clisp.org>
17492
17493         stdlib: Allow multiple gnulib generated replacements to coexist.
17494         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
17495         Reported by Sam Steingold <sds@gnu.org>.
17496
17497 2010-10-11  Jim Meyering  <meyering@redhat.com>
17498
17499         fix a documentation typo
17500         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
17501
17502 2010-10-11  Eric Blake  <eblake@redhat.com>
17503
17504         futimens: work around Solaris 11 bug
17505         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
17506         * tests/test-futimens.h (test_futimens): Enhance, rather than
17507         weaken test.
17508         * doc/posix-functions/futimens.texi (futimens): Document the bug.
17509
17510 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
17511
17512         Indentation.
17513         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
17514         higher-level operators more to the left.
17515
17516 2010-10-11  Jim Meyering  <meyering@redhat.com>
17517
17518         test-futimens: avoid unwarranted test failure on Solaris 5.11
17519         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
17520         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
17521         because it tries to dereference the NULL name argument.
17522
17523 2010-10-11  Bruno Haible  <bruno@clisp.org>
17524
17525         Indentation.
17526         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
17527         indentation.
17528
17529 2010-10-11  Jim Meyering  <meyering@redhat.com>
17530
17531         spawn.in.h: make indentation consistent with parentheses
17532         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
17533         Make indentation consistent with parentheses.
17534
17535 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
17536
17537         Fix mismatched parens in previous commit
17538         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
17539         parens.
17540
17541 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
17542
17543         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
17544
17545         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
17546         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
17547         * lib/malloca.c: Include "verify.h".
17548         (verify1): Remove, replacing with a verify call.
17549         * lib/relocwrapper.c (verify1): Likewise.
17550         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
17551         Likewise.
17552         * modules/malloca (Depends-on): Add 'verify'.
17553         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
17554         * modules/vasnprintf (Depends-on): Add 'verify'.
17555         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17556         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17557         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17558         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17559         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17560         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17561         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17562
17563         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
17564
17565         Formerly the style was sometimes 2*X - 1, because the C standard
17566         was wrongly thought to disallow ?: in integral constant expressions.
17567         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
17568         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
17569         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
17570         * lib/stdint.in.h (_verify_intmax_size): Likewise.
17571         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
17572         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
17573         verify that time_t cannot be floating.
17574
17575 2010-10-08  Eric Blake  <eblake@redhat.com>
17576
17577         time: enforce recent POSIX ruling that time_t is integral
17578         * lib/time.in.h (__time_t_must_be_integral): Detect any
17579         problematic systems, allowing the rest of gnulib to assume POSIX.
17580
17581 2010-10-08  Jim Meyering  <meyering@redhat.com>
17582
17583         fdopendir: fix a bug on systems lacking openat and /proc support
17584         OpenBSD 4.7 is one such system.  The most noticeable effect was
17585         failure of any application making nontrivial use of fts: rm, du,
17586         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
17587           ./rm: traversal failed: `a': Bad file descriptor
17588         Debugging that, you see that even though FD 6 was closed just
17589         prior to the opendir call in fd_clone_opendir, its resulting
17590         dir->dd_fd was 8, rather than the expected value of 6:
17591
17592         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
17593         93                close (fd);
17594         (gdb) n
17595         94                dir = fd_clone_opendir (dupfd);
17596         (gdb) n
17597         95                saved_errno = errno;
17598         (gdb) p dir->dd_fd
17599         $11 = 8
17600
17601         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
17602         The problem is that on OpenBSD, fd_clone_opendir has to resort
17603         to using the old-style save/restore CWD mechanism, due to its
17604         lack of openat/proc support, and *that* would steal the FD (6)
17605         that opendir was supposed to use.
17606
17607         The fix is to squirrel away the desired FD so that save_cwd uses a
17608         different one, and then free the dest FD right before calling opendir.
17609         That guarantees opendir will use the required file descriptor.
17610
17611         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
17612
17613 2010-10-08  Bruno Haible  <bruno@clisp.org>
17614
17615         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
17616         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
17617
17618 2010-10-08  Bruno Haible  <bruno@clisp.org>
17619
17620         nanosleep: Make replacement POSIX compliant.
17621         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
17622         is out of range.
17623         Reported by Jim Meyering.
17624
17625 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
17626
17627         bootstrap: add hook for altering gnulib.mk, for Bison
17628         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
17629         the Bison bootstrapping process can rewrite file names and variables
17630         in this file before later parts of 'bootstrap' use the file.
17631         Bison wants to include lib/gnulib.mk from the top-level makefile,
17632         so it needs the file names in this file to be relative to the top
17633         level, not relative to lib; plus it needs variable names to be
17634         rewritten.
17635         (slurp): Use the new function.
17636
17637         bootstrap: reformat for readability
17638         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
17639
17640 2010-10-08  Eric Blake  <eblake@redhat.com>
17641
17642         docs: update cygwin progress
17643         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
17644         1.7.7.
17645         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
17646         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
17647         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
17648         * doc/posix-functions/carg.texi (carg): Likewise.
17649         * doc/posix-functions/cargf.texi (cargf): Likewise.
17650         * doc/posix-functions/casin.texi (casin): Likewise.
17651         * doc/posix-functions/casinf.texi (casinf): Likewise.
17652         * doc/posix-functions/casinh.texi (casinh): Likewise.
17653         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
17654         * doc/posix-functions/catan.texi (catan): Likewise.
17655         * doc/posix-functions/catanf.texi (catanf): Likewise.
17656         * doc/posix-functions/catanh.texi (catanh): Likewise.
17657         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
17658         * doc/posix-functions/ccos.texi (ccos): Likewise.
17659         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
17660         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
17661         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
17662         * doc/posix-functions/cexp.texi (cexp): Likewise.
17663         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
17664         * doc/posix-functions/cimag.texi (cimag): Likewise.
17665         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
17666         * doc/posix-functions/clog.texi (clog): Likewise.
17667         * doc/posix-functions/clogf.texi (clogf): Likewise.
17668         * doc/posix-functions/conj.texi (conj): Likewise.
17669         * doc/posix-functions/conjf.texi (conjf): Likewise.
17670         * doc/posix-functions/cpow.texi (cpow): Likewise.
17671         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
17672         * doc/posix-functions/cproj.texi (cproj): Likewise.
17673         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
17674         * doc/posix-functions/creal.texi (creal): Likewise.
17675         * doc/posix-functions/crealf.texi (crealf): Likewise.
17676         * doc/posix-functions/csin.texi (csin): Likewise.
17677         * doc/posix-functions/csinf.texi (csinf): Likewise.
17678         * doc/posix-functions/csinh.texi (csinh): Likewise.
17679         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
17680         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
17681         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
17682         * doc/posix-functions/ctan.texi (ctan): Likewise.
17683         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
17684         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
17685         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
17686         * doc/posix-headers/complex.texi (complex.h): Likewise.
17687
17688 2010-10-07  Jim Meyering  <meyering@redhat.com>
17689
17690         parse-datetime: avoid compilation failure on OpenBSD 4.7
17691         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
17692         This works around a compilation failure on OpenBSD 4.7:
17693         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
17694
17695 2010-10-07  Eric Blake  <eblake@redhat.com>
17696
17697         docs: update cygwin progress
17698         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
17699         1.7.6.
17700         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
17701         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
17702         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
17703         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
17704         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
17705         Likewise.
17706         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
17707         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
17708         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
17709         Likewise.
17710         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
17711         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
17712         Likewise.
17713         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
17714         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
17715         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
17716         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
17717         Likewise.
17718         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
17719         Likewise.
17720         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
17721
17722         docs: update parse-datetime history
17723         * doc/parse-datetime.texi (Authors of parse_datetime): Better
17724         documentation of this function's history and alternatives.
17725
17726         cygwin: use more robust version check
17727         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
17728         exclude an eventual cygwin 1.9.1.
17729         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
17730         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
17731         (gl_FUNC_STRCASESTR): Likewise.
17732         Reported by Bruno Haible.
17733
17734 2010-10-06  Bruno Haible  <bruno@clisp.org>
17735
17736         string, sys_select: Avoid #including large headers unless necessary.
17737         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
17738         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
17739         OSF/1, BeOS, Haiku.
17740         Reported by Jim Meyering.
17741
17742 2010-10-05  Eric Blake  <eblake@redhat.com>
17743
17744         memmem, strstr, strcasestr: fix bug with long periodic needle
17745         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
17746         periodic needle having false positive.
17747         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
17748         and cygwin 1.7.7.
17749         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
17750         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
17751         (gl_FUNC_STRCASESTR): Likewise.
17752         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
17753         * tests/test-memmem.c (main): Expose the bug.
17754         * tests/test-strcasestr.c (main): Likewise.
17755         * tests/test-strstr.c (main): Likewise.
17756         * tests/test-c-strcasestr.c (main): Likewise.
17757         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
17758         * doc/posix-functions/strstr.texi (strstr): Likewise.
17759         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
17760         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
17761
17762 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
17763
17764         parse-datetime: do some more renaming
17765         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
17766         parse_datetime, not get_date.  Mention the renaming.
17767         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
17768         in comments.
17769         * m4/bison.m4: Likewise.
17770
17771 2010-10-05  Eric Blake  <eblake@redhat.com>
17772
17773         parse-datetime: better name than get_date
17774         * NEWS: Reword the deprecation notice.
17775         * modules/get_date: Rename to modules/parse-datetime.
17776         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
17777         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
17778         * lib/get_date.y: Rename to lib/parse-datetime.y.
17779         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
17780         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
17781         * doc/getdate.texi: Provide fallback wrapper.
17782         * lib/getdate.h: Move guts, and wrap...
17783         * lib/parse-datetime.h: ...new file.
17784         * lib/parse-datetime.y (get_date): Rename...
17785         (parse_datetime): ...to this.
17786         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
17787         (gl_PARSE_DATETIME): ...to this.
17788         * doc/posix-functions/getdate.texi (get_date): Provide fallback
17789         documentation.
17790         * modules/getdate (Files): Provide fallback docs and header.
17791         (Notice, Depends-on): Update references.
17792         * tests/test-parse-datetime.c: Likewise.
17793         * DEPENDENCIES: Likewise.
17794         * MODULES.html.sh (Date and time <time.h>): Likewise.
17795         * doc/parse-datetime.texi (Date input formats)
17796         (Authors of parse_datetime): Likewise.
17797         * modules/parse-datetime (Files, configure.ac, Makefile.am)
17798         (Include): Likewise.
17799         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
17800         * gnulib-tool: Likewise.
17801         * m4/bison.m4 (gl_BISON): Likewise.
17802         Suggested by Bruno Haible.
17803
17804 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
17805
17806         more ports to Solaris tr, which needs [] around ranges
17807         * gnulib-tool: Solaris tr needs [] around ranges.
17808         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
17809         * tests/test-pipe-filter-gi1.c (main): Likewise.
17810         * tests/test-pipe-filter-ii1.c (main): Likewise.
17811
17812 2010-10-05  Eric Blake  <eblake@redhat.com>
17813
17814         bootstrap: fix Solaris regression
17815         * build-aux/bootstrap (check_versions): Solaris tr still needs []
17816         around ranges.
17817         Reported by Pádraig Brady.
17818
17819         bootstrap: work with pkg-config
17820         * build-aux/bootstrap (check_versions): Also transliterate - in
17821         prerequisite name.
17822         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
17823         prerequisites that were already found, to avoid confusion.
17824         Reported by Justin Clift.
17825
17826         faccessat: remove unused wrappers
17827         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
17828         presence of these wrappers dragged in -lgen on Solaris.
17829         Reported by Clemens Brogi; fix suggested by Paul Eggert.
17830
17831 2010-10-05  Jim Meyering  <meyering@redhat.com>
17832
17833         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
17834         * Makefile (sc_pragma_columns): New syntax-check rule.
17835
17836 2010-10-04  Bruno Haible  <bruno@clisp.org>
17837
17838         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
17839         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
17840         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
17841         Reported by Bruce Korb and Eric Blake.
17842
17843 2010-10-04  Bruno Haible  <bruno@clisp.org>
17844
17845         threadlib: Make option --with-libpth-prefix work.
17846         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
17847         use $LIBPTH, not just -lpth.
17848
17849 2010-10-04  Bruno Haible  <bruno@clisp.org>
17850
17851         Avoid line length limitation from HP NonStop system header files.
17852         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
17853         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
17854         * lib/ctype.in.h: Likewise.
17855         * lib/dirent.in.h: Likewise.
17856         * lib/errno.in.h: Likewise.
17857         * lib/fcntl.in.h: Likewise.
17858         * lib/float.in.h: Likewise.
17859         * lib/getopt.in.h: Likewise.
17860         * lib/iconv.in.h: Likewise.
17861         * lib/inttypes.in.h: Likewise.
17862         * lib/langinfo.in.h: Likewise.
17863         * lib/locale.in.h: Likewise.
17864         * lib/math.in.h: Likewise.
17865         * lib/netdb.in.h: Likewise.
17866         * lib/netinet_in.in.h: Likewise.
17867         * lib/poll.in.h: Likewise.
17868         * lib/pthread.in.h: Likewise.
17869         * lib/pty.in.h: Likewise.
17870         * lib/sched.in.h: Likewise.
17871         * lib/se-selinux.in.h: Likewise.
17872         * lib/search.in.h: Likewise.
17873         * lib/signal.in.h: Likewise.
17874         * lib/spawn.in.h: Likewise.
17875         * lib/stdarg.in.h: Likewise.
17876         * lib/stddef.in.h: Likewise.
17877         * lib/stdint.in.h: Likewise.
17878         * lib/stdio.in.h: Likewise.
17879         * lib/stdlib.in.h: Likewise.
17880         * lib/string.in.h: Likewise.
17881         * lib/strings.in.h: Likewise.
17882         * lib/sys_file.in.h: Likewise.
17883         * lib/sys_ioctl.in.h: Likewise.
17884         * lib/sys_select.in.h: Likewise.
17885         * lib/sys_socket.in.h: Likewise.
17886         * lib/sys_stat.in.h: Likewise.
17887         * lib/sys_time.in.h: Likewise.
17888         * lib/sys_times.in.h: Likewise.
17889         * lib/sys_utsname.in.h: Likewise.
17890         * lib/sys_wait.in.h: Likewise.
17891         * lib/sysexits.in.h: Likewise.
17892         * lib/termios.in.h: Likewise.
17893         * lib/time.in.h: Likewise.
17894         * lib/unistd.in.h: Likewise.
17895         * lib/wchar.in.h: Likewise.
17896         * lib/wctype.in.h: Likewise.
17897         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
17898         * modules/ctype (Makefile.am): Likewise.
17899         * modules/dirent (Makefile.am): Likewise.
17900         * modules/errno (Makefile.am): Likewise.
17901         * modules/fcntl-h (Makefile.am): Likewise.
17902         * modules/float (Makefile.am): Likewise.
17903         * modules/getopt-posix (Makefile.am): Likewise.
17904         * modules/iconv-h (Makefile.am): Likewise.
17905         * modules/inttypes (Makefile.am): Likewise.
17906         * modules/langinfo (Makefile.am): Likewise.
17907         * modules/locale (Makefile.am): Likewise.
17908         * modules/math (Makefile.am): Likewise.
17909         * modules/netdb (Makefile.am): Likewise.
17910         * modules/netinet_in (Makefile.am): Likewise.
17911         * modules/poll-h (Makefile.am): Likewise.
17912         * modules/pthread (Makefile.am): Likewise.
17913         * modules/pty (Makefile.am): Likewise.
17914         * modules/sched (Makefile.am): Likewise.
17915         * modules/search (Makefile.am): Likewise.
17916         * modules/selinux-h (Makefile.am): Likewise.
17917         * modules/signal (Makefile.am): Likewise.
17918         * modules/spawn (Makefile.am): Likewise.
17919         * modules/stdarg (Makefile.am): Likewise.
17920         * modules/stddef (Makefile.am): Likewise.
17921         * modules/stdint (Makefile.am): Likewise.
17922         * modules/stdio (Makefile.am): Likewise.
17923         * modules/stdlib (Makefile.am): Likewise.
17924         * modules/string (Makefile.am): Likewise.
17925         * modules/strings (Makefile.am): Likewise.
17926         * modules/sys_file (Makefile.am): Likewise.
17927         * modules/sys_ioctl (Makefile.am): Likewise.
17928         * modules/sys_select (Makefile.am): Likewise.
17929         * modules/sys_socket (Makefile.am): Likewise.
17930         * modules/sys_stat (Makefile.am): Likewise.
17931         * modules/sys_time (Makefile.am): Likewise.
17932         * modules/sys_times (Makefile.am): Likewise.
17933         * modules/sys_utsname (Makefile.am): Likewise.
17934         * modules/sys_wait (Makefile.am): Likewise.
17935         * modules/sysexits (Makefile.am): Likewise.
17936         * modules/termios (Makefile.am): Likewise.
17937         * modules/time (Makefile.am): Likewise.
17938         * modules/unistd (Makefile.am): Likewise.
17939         * modules/wchar (Makefile.am): Likewise.
17940         * modules/wctype (Makefile.am): Likewise.
17941
17942 2010-10-04  Bruno Haible  <bruno@clisp.org>
17943
17944         read-file tests: Avoid a test failure on NonStop Kernel.
17945         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
17946         a regular file.
17947         Reported by Joachim Schmitz <schmitz@hp.com>.
17948
17949 2010-10-03  Bruno Haible  <bruno@clisp.org>
17950
17951         gnulib-tool: Fixes for --create-testdir with --libtool.
17952         * gnulib-tool (func_get_automake_snippet): Don't augment
17953         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
17954         an executable.
17955         (func_create_testdir): Handle module 'alloca' like func_import.
17956         Reported by Bruce Korb <bruce.korb@gmail.com>.
17957
17958 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
17959
17960         Avoid some lines longer than 80 characters.
17961         * lib/stdint.in.h: Break long comment lines.
17962         * lib/math.in.h: Likewise.
17963         (_GL_NUM_UINT_WORDS): New macro, for readability.
17964         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
17965         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
17966         * lib/stdlib.in.h: Likewise.
17967         * lib/spawn.in.h: Likewise.
17968         * lib/sys_socket.in.h: Update an URL.
17969         * lib/sys_stat.in.h: Break long line.
17970
17971 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
17972
17973         Improve pmccabe2html.
17974         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
17975         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
17976         when the sources change. Remove the line in the HTML about "Used
17977         ranges" (which implied that there might be other unused ranges),
17978         rename "Resume" to "Summary" (easier to understand for more users).
17979         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
17980         styles, and some unnecessary blank lines.
17981
17982 2010-10-03  Bruno Haible  <bruno@clisp.org>
17983             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
17984
17985         acl: Add support for ACLs on NonStop Kernel.
17986         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
17987         Check whether the function aclsort() exists.
17988         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
17989         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
17990         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
17991         (acl_nontrivial [HAVE_ACLSORT]: New function.
17992         (file_has_acl): Implement for NonStop Kernel.
17993         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
17994         (qset_acl): Implement for NonStop Kernel.
17995         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
17996         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
17997         (main): Implement for NonStop Kernel.
17998         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
17999         Kernel. Handle this flavor.
18000         * tests/test-set-mode-acl.sh: Likewise.
18001         * tests/test-copy-acl.sh: Likewise.
18002         * tests/test-copy-file.sh: Likewise.
18003
18004 2010-10-03  Bruno Haible  <bruno@clisp.org>
18005
18006         Info about ACLs on NonStop Kernel.
18007         * doc/acl-resources.txt: Add info about NonStop Kernel.
18008         References by Joachim Schmitz <schmitz@hp.com>.
18009
18010 2010-10-02  Bruno Haible  <bruno@clisp.org>
18011
18012         Define missing EDQUOT on NonStop Kernel.
18013         * lib/errno.in.h (EDQUOT): Assign a value if missing.
18014         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
18015         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
18016         missing.
18017         * doc/posix-headers/errno.texi: Mention the NSK bug.
18018         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
18019         Reported by Joachim Schmitz <schmitz@hp.com>.
18020
18021 2010-10-02  Bruno Haible  <bruno@clisp.org>
18022
18023         Update doc for POSIX:2008.
18024         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
18025         Update URL of POSIX specification.
18026
18027 2010-10-02  Bruno Haible  <bruno@clisp.org>
18028
18029         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
18030         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
18031         from gnulib, not from Automake.
18032
18033 2010-10-02  Bruno Haible  <bruno@clisp.org>
18034
18035         New module 'system-posix'.
18036         * modules/system-posix: New file.
18037         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
18038         module is present.
18039         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
18040         GNULIB_SYSTEM_POSIX.
18041         * modules/stdlib (Depends-on): Remove sys_wait.
18042         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
18043         * doc/posix-functions/system.texi: Mention the new module.
18044         * doc/posix-headers/stdlib.texi: Likewise.
18045         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
18046         define test_sys_wait_macros to a no-op.
18047         Reported by Sam Steingold <sds@gnu.org>.
18048
18049 2010-09-30  Bruno Haible  <bruno@clisp.org>
18050
18051         More renaming from 'getdate' to 'get_date'.
18052         * doc/get_date.texi: Renamed from doc/getdate.texi.
18053         * modules/get_date (Files): Update.
18054         * MODULES.html.sh (Date and time <time.h>): Update.
18055         * DEPENDENCIES: Update.
18056         * gnulib-tool: Update comment.
18057         * m4/bison.m4 (gl_BISON): Likewise.
18058         * m4/get_date.m4 (gl_GET_DATE): Likewise.
18059
18060 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
18061
18062         bootstrap: support ACLOCAL_FLAGS during aclocal
18063         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
18064         can add additional -I dir for third-party .m4 files.
18065
18066 2010-09-30  Eric Blake  <eblake@redhat.com>
18067
18068         bootstrap: use glibtoolize on MacOS
18069         * build-aux/bootstrap (check_versions): Convert libtool into
18070         libtoolize.
18071         (tool search): Move libtool check earlier, and look for
18072         glibtoolize for MacOS.
18073         (gnulib_tool_options): Auto-add --libtool when appropriate.
18074         Reported by Justin Clift.
18075
18076         poll: fix typo that broke test on MacOS
18077         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
18078         Reported by Justin Clift.
18079
18080         getdate: rename to get_date
18081         Note: getdate.h is not renamed, to minimize client impact.
18082         * modules/getdate: Mark obsolete.  Move old contents...
18083         * modules/get_date: ...to new module name.
18084         * modules/getdate-tests: Move...
18085         * modules/get_date-tests: ...here.
18086         * m4/getdate.m4: Move...
18087         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
18088         * lib/getdate.y: Move...
18089         * lib/get_date.y: ...here.
18090         * tests/test-getdate.c: Move...
18091         * tests/test-get_date.c: ...here.
18092         * doc/posix-functions/getdate.texi (getdate): Update name.
18093         * NEWS: Mention the change.
18094
18095 2010-09-29  Bruno Haible  <bruno@clisp.org>
18096
18097         Separate the module 'waitpid' from the module 'sys_wait'.
18098         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
18099         present.
18100         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
18101         gl_MODULE_INDICATOR_FOR_TESTS.
18102         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
18103         * modules/sys_wait (Depends-on): Remove waitpid.
18104         (Makefile.am): Substitute GNULIB_WAITPID.
18105         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
18106         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
18107         signature only if the 'waitpid' module is present.
18108         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
18109         * NEWS: Mention the change.
18110         * modules/grantpt (Depends-on): Add waitpid.
18111         * modules/wait-process (Depends-on): Likewise.
18112
18113 2010-09-29  Bruno Haible  <bruno@clisp.org>
18114
18115         More tests for module 'sys_wait'.
18116         * modules/sys_wait-c++-tests: New file.
18117         * tests/test-sys_wait-c++.cc: New file.
18118         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
18119         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
18120
18121 2010-09-29  Bruno Haible  <bruno@clisp.org>
18122
18123         New module 'waitpid'.
18124         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
18125         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
18126         Don't include <process.h>.
18127         (waitpid): Declare only, using modern idiom.
18128         * m4/waitpid.m4: New file.
18129         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
18130         * modules/waitpid: New file.
18131         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
18132         (Makefile.am): Update.
18133         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
18134
18135 2010-09-28  Bruno Haible  <bruno@clisp.org>
18136
18137         poll: Assume ANSI C.
18138         * lib/poll.c (poll): Use an ANSI C declaration.
18139
18140 2010-09-28  Bruno Haible  <bruno@clisp.org>
18141
18142         poll-h: Create poll.h on all platforms.
18143         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
18144         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
18145         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
18146         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
18147         (gl_REPLACE_POLL_H): Don't set POLL_H.
18148         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
18149         * modules/poll-h (Depends-on): Add include_next.
18150         (Makefile.am): Create poll.h unconditionally. Substitute also
18151         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
18152
18153 2010-09-28  Bruno Haible  <bruno@clisp.org>
18154
18155         Tests for module 'poll-h'.
18156         * modules/poll-h-c++-tests: New file.
18157         * tests/test-poll-h-c++.cc: New file.
18158
18159         Tests for module 'poll-h'.
18160         * modules/poll-h-tests: New file.
18161         * tests/test-poll-h.c: New file.
18162
18163 2010-09-28  Bruno Haible  <bruno@clisp.org>
18164
18165         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
18166         * modules/poll-h (Depends-on): Add 'extensions'.
18167
18168 2010-09-28  Bruno Haible  <bruno@clisp.org>
18169
18170         New module 'poll-h'.
18171         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
18172         (poll): Use modern idiom.
18173         * modules/poll-h: New file.
18174         * modules/poll (Files): Remove lib/poll.in.h.
18175         (Depends-on): Add poll-h.
18176         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
18177         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
18178         * m4/poll_h.m4: New file.
18179         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
18180         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
18181         and invoke gl_REPLACE_POLL_H.
18182         * lib/poll.c: Use common idiom.
18183         * tests/test-poll.c: Likewise.
18184         * doc/posix-headers/poll.texi: Mention the poll-h module.
18185         Suggested by Eric Blake.
18186
18187 2010-09-26  Bruno Haible  <bruno@clisp.org>
18188
18189         sys_wait: Implement WSTOPSIG.
18190         * lib/sys_wait.in.h (WSTOPSIG): New macro.
18191         Reported by Simon Josefsson.
18192
18193 2010-09-26  Simon Josefsson  <simon@josefsson.org>
18194
18195         stdlib, sys_wait: Avoid compilation error on mingw.
18196         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
18197
18198 2010-09-26  Bruno Haible  <bruno@clisp.org>
18199
18200         stdlib tests: Avoid code duplication.
18201         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
18202         * modules/sys_wait-tests (Files): Likewise.
18203         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
18204         * tests/test-stdlib.c: Include test-sys_wait.h.
18205         (main): Invoke test_sys_wait_macros.
18206         * tests/test-sys_wait.c: Include test-sys_wait.h.
18207         (main): Invoke test_sys_wait_macros.
18208
18209 2010-09-25  Simon Josefsson  <simon@josefsson.org>
18210
18211         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
18212         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
18213         sure Windows sockets are working before calling getaddrinfo.
18214         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
18215         * doc/gnulib.texi (Windows sockets): Fix typo.
18216
18217 2010-09-25  Bruno Haible  <bruno@clisp.org>
18218
18219         Tests for module 'regex-quote'.
18220         * modules/regex-quote-tests: New file.
18221         * tests/test-regex-quote.c: New file.
18222
18223         New module 'regex-quote'.
18224         * lib/regex-quote.h: New file.
18225         * lib/regex-quote.c: New file.
18226         * modules/regex-quote: New file.
18227         Suggested by Reuben Thomas <rrt@sc3d.org>.
18228
18229 2010-09-24  Bruno Haible  <bruno@clisp.org>
18230
18231         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
18232         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
18233
18234 2010-09-23  Bruno Haible  <bruno@clisp.org>
18235
18236         setenv: Relax license.
18237         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
18238         Blake.
18239         Requested by Eric Blake.
18240
18241 2010-09-22  Bruno Haible  <bruno@clisp.org>
18242
18243         termios: Relax license.
18244         * modules/termios (License): Change to LGPLv2+.
18245         Requested by Eric Blake.
18246
18247 2010-09-22  Bruno Haible  <bruno@clisp.org>
18248
18249         threadlib: Allow the package to change the default to 'no'.
18250         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
18251         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
18252         Reported by Paul Eggert.
18253
18254 2010-09-22  Pádraig Brady  <P@draigbrady.com>
18255             Bruno Haible  <bruno@clisp.org>
18256
18257         Fix endless loop in mbmemcasecoll.
18258         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
18259         byte.
18260         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
18261
18262 2010-09-22  Bruno Haible  <bruno@clisp.org>
18263
18264         Tests for module 'memcoll'.
18265         * modules/memcoll-tests: New file.
18266         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
18267
18268         memcoll, xmemcoll: Clarify size vs. length.
18269         * modules/memcoll.c (memcoll0): Clarify specification.
18270         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
18271         passed to collate_error.
18272
18273 2010-09-22  Bruno Haible  <bruno@clisp.org>
18274
18275         Tests for module 'memcasecmp'.
18276         * modules/memcasecmp-tests: New file.
18277         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
18278
18279 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18280
18281         * lib/pthread.in.h: Add split double-inclusion guard, and include
18282         system <pthread.h> if there is one.  Use @@-style as in other
18283         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
18284         pthread.h doesn't.
18285         (pthread_mutexattr_destroy, pthread_mutexattr_init):
18286         (pthread_mutexattr_settype, pthread_mutex_trylock):
18287         New static inline functions, if there's no system <pthread.h>.
18288         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
18289         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
18290         Approximate with mutexes if the system lacks spinlocks, as in
18291         MacOS.
18292         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
18293         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
18294         @@-style.  Check for spinlocks separately.
18295         (gl_PTHREAD_DEFAULTS): New macro.
18296         * modules/pthread: Redo to use a more typical style for in.h files.
18297
18298 2010-09-21  Eric Blake  <eblake@redhat.com>
18299
18300         net_if: enhance tests
18301         * tests/test-net_if.c (main): Move signature checks earlier.
18302         Print failures to stderr.
18303         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
18304         Document the bug that we do not yet fix.
18305
18306 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
18307
18308         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
18309         about gnulib, not GSS.
18310
18311 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
18312
18313         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
18314         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
18315         for Emacs.
18316         * build-aux/pmccabe2html: Make Makefile.am example code more
18317         cut-and-paste friendly.
18318
18319 2010-09-21  Simon Josefsson  <simon@josefsson.org>
18320
18321         * tests/test-net_if.c: New file.
18322         * modules/net_if-tests: New file.
18323
18324 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
18325
18326         pthread: add pthread_spin_destroy
18327         * lib/pthread.in.h (pthread_spin_destroy): New function.
18328
18329 2010-09-19  Bruno Haible  <bruno@clisp.org>
18330
18331         gnulib-tool: Fix --help output.
18332         * gnulib-tool (func_usage): Fix help message.
18333         Reported by Reuben Thomas <rrt@sc3d.org>.
18334
18335 2010-09-18  Jim Meyering  <meyering@redhat.com>
18336
18337         maint.mk: avoid unexpanded \n in two diagnostics
18338         * top/maint.mk (sc_prohibit_always_true_header_tests):
18339         Don't use a literal \n in a halt=... assignment.  It would not be
18340         expanded, and the two \n bytes would appear in the diagnostic output
18341         rather than the desired newline.  Use halt=$$(printf ... instead.
18342         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
18343
18344 2010-09-18  Bruno Haible  <bruno@clisp.org>
18345
18346         netinet_in: Doc tweak.
18347         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
18348         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18349
18350 2010-09-18  Jim Meyering  <meyering@redhat.com>
18351
18352         init.sh: correct an outdated comment
18353         * tests/init.sh (create_exe_shims_):  s/function/alias/
18354
18355         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
18356         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
18357         a file named "*.exe" is removed between the glob expansion and the
18358         processing of that oddly named file.
18359
18360 2010-09-17  Eric Blake  <eblake@redhat.com>
18361
18362         mirbsd: add some more support
18363         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
18364         in BSD family.
18365         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
18366         devices as OpenBSD.
18367         * m4/host-os.m4 (mirbsd): Add MirBSD.
18368
18369         tests: fix unportable assumption on sys/wait.h
18370         * tests/test-sys_wait.c (main): Relax test.
18371         * tests/test-stdlib.c (main): Likewise.
18372
18373         init.sh: accomodate directory with no .exes
18374         * tests/init.sh: Accomodate directory containing only scripts.
18375
18376         tests: avoid compiler warning
18377         * tests/test-stdlib.c (main): Use the variable.
18378
18379         fdutimens, fdutimensat: update signature, again
18380         * lib/utimens.h (gl_futimens): Delete, and move signature...
18381         (fdutimens): ...here.
18382         (fdutimensat): Rearrange signature.
18383         (lutimensat): Rename variable for clarity.
18384         * lib/fdutimensat.c (fdutimensat): Update signature.
18385         * lib/utimens.c (fdutimens): Likewise.
18386         (gl_futimens): Delete.
18387         (utimens, lutimens): Update callers.
18388         * lib/futimens.c (futimens): Likewise.
18389         * tests/test-fdutimensat.c: Likewise.
18390         * tests/test-utimens.c: Likewise.
18391         * tests/test-futimens.h: Update comment.
18392         * NEWS: Mention this.
18393         Suggested by Paul Eggert.
18394
18395 2010-09-17  Bruno Haible  <bruno@clisp.org>
18396
18397         Take over the maintenance of some older macros from Autoconf.
18398         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
18399         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
18400         GNU Autoconf.
18401         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
18402         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
18403
18404 2010-09-17  Eric Blake  <eblake@redhat.com>
18405
18406         fdutimensat: drop atflag validation
18407         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
18408         with valid fd, to close a race scenario where futimens is
18409         unsupported and FILE was replaced by a symlink.
18410         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
18411         accordingly.
18412         Suggested by Paul Eggert.
18413
18414 2010-09-16  Bruno Haible  <bruno@clisp.org>
18415
18416         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
18417         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
18418
18419 2010-09-16  Bruno Haible  <bruno@clisp.org>
18420
18421         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
18422         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
18423         login_tty exists.
18424         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18425
18426 2010-09-16  Bruno Haible  <bruno@clisp.org>
18427
18428         login_tty: Make the replacement code work on BSD systems.
18429         * lib/login_tty.c: Include <sys/ioctl.h>.
18430         (login_tty): Use ioctl TIOCSCTTY when available.
18431         * modules/login_tty (Depends-on): Add sys_ioctl.
18432         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18433
18434 2010-09-16  Bruno Haible  <bruno@clisp.org>
18435
18436         login_tty: Stricter unit test.
18437         * modules/login_tty-tests (Depends-on): Add tcgetsid.
18438         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
18439         and tcgetsid() after login_tty.
18440         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18441
18442 2010-09-16  Bruno Haible  <bruno@clisp.org>
18443
18444         New module 'tcgetsid'.
18445         * lib/tcgetsid.c: New file.
18446         * m4/tcgetsid.m4: New file.
18447         * modules/tcgetsid: New file.
18448         * modules/termios (Depends-on): Add c++defs, warn-on-use.
18449         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
18450         GNULIB_TCGETSID, HAVE_TCGETSID.
18451         * lib/termios.in.h: Include <sys/types.h>.
18452         (tcgetsid): New declaration.
18453         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
18454         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
18455         * doc/posix-functions/tcgetsid.texi: Mention the new module.
18456         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
18457
18458 2010-09-16  Bruno Haible  <bruno@clisp.org>
18459
18460         Tests for module 'termios'.
18461         * modules/termios-c++-tests: New file.
18462         * modules/termios-tests: New file.
18463         * tests/test-termios-c++.cc: New file.
18464         * tests/test-termios.c: New file.
18465
18466         New module 'termios'.
18467         * modules/termios: New file.
18468         * lib/termios.in.h: New file.
18469         * m4/termios_h.m4: New file.
18470         * doc/posix-headers/termios.texi: Mention the new module.
18471
18472 2010-09-16  Eric Blake  <eblake@redhat.com>
18473
18474         fdutimensat: add an atflag parameter
18475         * lib/fdutimensat.c (fdutimensat): Add new parameter.
18476         * lib/utimens.h (fdutimensat): Update prototype.
18477         * tests/test-fdutimensat.c: Adjust test to match.
18478         * NEWS: Document the change.
18479         Suggested by Paul Eggert.
18480
18481 2010-09-16  Bruno Haible  <bruno@clisp.org>
18482
18483         Fix typos in comments.
18484         * lib/striconveh.h: Fix typo in comment.
18485         * lib/login_tty.c (login_tty): Likewise.
18486
18487 2010-09-15  Bruno Haible  <bruno@clisp.org>
18488
18489         stdlib: clarify MirBSD WEXITSTATUS bug
18490         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
18491         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18492
18493 2010-09-15  Eric Blake  <eblake@redhat.com>
18494
18495         stdlib: work around MirBSD WEXITSTATUS bug
18496         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
18497         * modules/stdlib (Depends-on): Add sys_wait.
18498         * tests/test-sys_wait.c (main): Enhance test.
18499         * tests/test-stdlib.c (main): Likewise.
18500         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
18501
18502         docs: mention MacOS issue with WEXITSTATUS(constant)
18503         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
18504         issue.
18505         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18506
18507         strnlen: add tests
18508         * modules/strnlen-tests: New file.
18509         * tests/test-strnlen.c: Likewise.
18510
18511 2010-09-14  Bruno Haible  <bruno@clisp.org>
18512
18513         unistr/base: Avoid link errors when module 'libunistring' is also used.
18514         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
18515         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
18516         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
18517         Declare also when HAVE_LIBUNISTRING is set.
18518         Reported by Pádraig Brady <P@draigbrady.com>.
18519
18520 2010-09-14  Eric Blake  <eblake@redhat.com>
18521
18522         test-rawmemchr: make more robust
18523         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
18524         (Depends-on, configure.ac): Add needed prerequisites to use it.
18525         * modules/memchr-tests (Files, Depends-on, configure.ac):
18526         Likewise, to avoid implicit reliance on memchr module prereqs.
18527         * tests/test-memchr.c (main): Ensure proper masking.
18528         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
18529         reads.
18530
18531         memchr: detect glibc Alpha bug
18532         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
18533         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
18534         Alpha.
18535         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
18536         * tests/test-memchr.c (main): Enhance test.
18537         Reported by Nelson H. F. Beebe.
18538
18539 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
18540
18541         fts, getcwd, glob: audit for dirfd returning -1
18542         * lib/fts.c (opendir): Remove #define; no longer used.
18543         (opendirat): New arg PDIR_FD.  All callers changed.
18544         (fts_build, _opendir2): Use new opendirat to avoid the need for
18545         dirfd, or for checking whether dirfd returns a negative value.
18546         Don't use opendir; always use openat followed by fdopendir.
18547         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
18548         it.
18549         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
18550         returns -1 here.
18551         * modules/fts (Depends-on): Remove dirfd.
18552         * modules/getcwd (Depends-on): Likewise.
18553
18554 2010-09-13  Eric Blake  <eblake@redhat.com>
18555
18556         float: fix broken MirBSD header
18557         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
18558         * doc/posix-headers/float.texi (float.h): Document it.
18559
18560 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
18561
18562         fts: use O_NOFOLLOW to avoid race condition when opening a directory
18563         * lib/fts.c (opendirat): New arg extra_flags.
18564         (__opendir2): Use it to avoid following symlinks when opening
18565         a directory, if symlinks are not supposed to be followed.  See
18566         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
18567
18568         fdopendir: preserve argument fd before returning
18569         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
18570         (fdopendir_with_dup, fd_clone_opendir): New static functions.
18571         (fdopendir): Use them, arranging for FD to be open to the same
18572         directory that it was when it started.  (It might be temporarily
18573         closed while fdopendir is running, so this not thread- or
18574         signal-safe.)  Be careful to do the right thing even when file
18575         descriptors are scarce and dup fails with errno == EMFILE.  See
18576         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
18577
18578 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
18579
18580         regex: Pass the system regex if its only problem is 32-bit regoff_t.
18581         * NEWS: Document change.
18582         * m4/regex.m4: Disable test for regoff_t size.
18583
18584 2010-09-13  Jim Meyering  <meyering@redhat.com>
18585
18586         fts: don't operate on an invalid file descriptor after failed dup
18587         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
18588         negative file descriptor.
18589
18590 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
18591
18592         savedir: add streamsavedir, deprecate fdsavedir
18593         * NEWS: Mention deprecation of fdsavedir.
18594         * lib/savedir.c (streamsavedir): New extern function, whose name
18595         ends in "savedir" to be consistent with the others.  This differs
18596         from savedirstream in that it doesn't close its argument.  The
18597         next version of GNU tar will use this instead of fdsavedir, to
18598         avoid some race conditions and conserve file descriptors.
18599         (savedirstream): Reimplement as a wrapper around streamsavedir.
18600         (fdsavedir): Add a comment deprecating this function.  As far as
18601         I know, only GNU tar used it, and GNU tar doesn't need it any more.
18602         * lib/savedir.h (streamsavedir): New decl.
18603         (fdsavedir): Add a comment deprecating this.
18604
18605 2010-09-10  Bruno Haible  <bruno@clisp.org>
18606
18607         langinfo: Fix last commit.
18608         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
18609         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
18610         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18611
18612 2010-09-10  Bruno Haible  <bruno@clisp.org>
18613
18614         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
18615         * lib/progreloc.c (O_EXEC): Define fallback.
18616
18617 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
18618
18619         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
18620         * NEWS: Document recent changes to fcntl-h.
18621         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
18622         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
18623         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
18624         Similarly for O_SEARCH; this last was already true, but not documented.
18625         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
18626         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
18627         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
18628         Likewise.
18629         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
18630         is zero, not whether it is defined.
18631         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
18632         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
18633         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
18634
18635 2010-09-10  Bruno Haible  <bruno@clisp.org>
18636
18637         langinfo, nl_langinfo: Fix for IRIX 5.3.
18638         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
18639         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
18640         HAVE_LANGINFO_YESEXPR.
18641         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
18642         HAVE_LANGINFO_YESEXPR.
18643         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
18644         HAVE_LANGINFO_T_FMT_AMPM is 0.
18645         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
18646         HAVE_LANGINFO_YESEXPR is 0.
18647         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
18648         NOEXPR.
18649         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
18650         * doc/posix-functions/nl_langinfo.texi: Likewise.
18651         Reported by Eric Blake.
18652
18653 2010-09-10  Bruno Haible  <bruno@clisp.org>
18654
18655         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
18656         * doc/glibc-functions/login_tty.texi: Mention the include file problem
18657         on FreeBSD 8.0 and OpenBSD 4.6.
18658         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
18659         * m4/pty_h.m4 (gl_PTY_H): Likewise.
18660         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
18661         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
18662         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
18663         ac_includes_default.
18664         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
18665
18666 2010-09-09  Eric Blake  <eblake@redhat.com>
18667
18668         strsignal: work around NetBSD bug
18669         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
18670         * lib/string.in.h (includes): Likewise.
18671         * doc/posix-functions/strsignal.texi (strsignal): Document the
18672         bug.
18673         Reported by Nelson H. F. Beebe.
18674
18675         gnulib-tool: work with NetBSD /bin/sh
18676         * gnulib-tool (func_cache_var, func_cache_lookup_module)
18677         (func_get_description, func_get_comment, func_get_status)
18678         (func_get_notice, func_get_applicability, func_get_filelist)
18679         (func_get_dependencies, func_get_autoconf_early_snippet)
18680         (func_get_autoconf_snippet, func_get_automake_snippet)
18681         (func_get_include_directive, func_get_link_directive)
18682         (func_get_license, func_get_maintainer, func_import): Avoid
18683         shell syntax errors from parsing syntax extensions.
18684
18685 2010-09-09  Bruno Haible  <bruno@clisp.org>
18686
18687         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
18688         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
18689         a reliable way to determine whether the 'alias' command works.
18690
18691 2010-09-08  Jim Meyering  <meyering@redhat.com>
18692
18693         init.sh: penalize a set-x-impaired shell; don't disqualify it
18694         * tests/init.sh: Too many shells corrupt application stderr when
18695         you set -x, so we can't afford to disqualify them, since at least
18696         on Irix-6.5, that would disqualify all bourne shells.
18697         Instead, use a two-pass approach.
18698         On the first pass, try to find a shell that meets the stricter
18699         condition that set -x does not corrupt stderr.
18700         If no shell meets the stricter condition, retest each candidate
18701         shell, but without that extra condition.  Finally, when
18702         VERBOSE=yes is requested and set -x might cause trouble, simply
18703         issue a warning and refrain from enabling debug output.
18704
18705 2010-09-08  Eric Blake  <eblake@redhat.com>
18706
18707         unsetenv: fix OpenBSD bug
18708         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
18709         * doc/posix-functions/unsetenv.texi (unsetenv): Update
18710         documentation.
18711         Reported by Jim Meyering.
18712
18713         strtod: work around IRIX 6.5 bug
18714         * lib/strtod.c (strtod): Reparse number on shorter string if
18715         exponent parse was invalid.
18716         * tests/test-strtod.c (main): Add check for "0x1p 2".
18717         Reported by Tom G. Christensen.
18718
18719         getopt: optimize previous patch
18720         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
18721         empty variable.  Speed up awk script.
18722         Reported by Paolo Bonzini.
18723
18724 2010-09-08  Jim Meyering  <meyering@redhat.com>
18725
18726         test.sh: disqualify shells for which set -x corrupts stderr
18727         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
18728         and OpenBSD 4.7.  They make it so with "set -x", environment settings
18729         appear in stderr output.  For example, this command:
18730             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
18731         prints "P=1" on those two systems:
18732
18733 2010-09-08  Bruno Haible  <bruno@clisp.org>
18734
18735         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
18736         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
18737         commands, because some shells ignore redirections when there is an
18738         error in the command lookup.
18739         Reported by Eric Blake.
18740
18741 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
18742
18743         * lib/regex.h: Fix a mention of `regex_compile' (should be
18744         `re_compile_pattern').
18745         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
18746         (re_set_registers): Correct name of parameter in comment.
18747
18748         * doc/regex.texi: Add documentation for missing syntax flags.
18749         Remove commented-out documentation of defunct syntax option
18750         RE_NO_EMPTY_ALTS.
18751         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
18752         Add documentation of re_set_registers.
18753         Document trick to re-use a pattern buffer by setting fastmap manually.
18754         Update documentation of struct re_pattern_buffer per public members.
18755         Uncomment documentation of equivalence class operators and
18756         collating symbol operators, since they are now implemented,
18757         Explain leftmost-longest matching in relation to alternatives.
18758         Tidy documentation of substring matching.
18759         Remove POSIX documentation, which is done better in
18760         glibc, and refer the reader there. Keep BSD API documentation, as
18761         that is not readily available elsewhere.
18762
18763 2010-09-07  Eric Blake  <eblake@redhat.com>
18764
18765         getopt: handle POSIXLY_CORRECT set but not exported
18766         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
18767         export state of POSIXLY_CORRECT, due to bash set -o posix.
18768         Reported by Dustin J. Mitchell.
18769
18770 2010-09-05  Bruno Haible  <bruno@clisp.org>
18771
18772         gnulib-tool: Highlight the changed options.
18773         * gnulib-tool (func_usage): Display the --import, --add-import,
18774         --remove-import explanations in bold font.
18775
18776 2010-09-06  Karl Berry  <karl@gnu.org>
18777
18778         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
18779
18780 2010-09-05  Bruno Haible  <bruno@clisp.org>
18781
18782         uniwidth/width: Update comment.
18783         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
18784         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
18785
18786 2010-09-05  Bruno Haible  <bruno@clisp.org>
18787
18788         isinf, isnan: Relax license.
18789         * modules/isinf (License): Change from GPL to LGPL, with consent from
18790         Ben Pfaff.
18791         * modules/isnan (License): Likewise.
18792         Requested by Ludovic Courtès.
18793
18794 2010-09-04  Bruno Haible  <bruno@clisp.org>
18795
18796         gnulib-tool: Help migration from --import to --add-import or --update.
18797         * gnulib-tool: Emit a verbose error message when --import is used
18798         without any module name.
18799
18800 2010-09-04  Bruno Haible  <bruno@clisp.org>
18801
18802         Update doc about gnulib-tool.
18803         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
18804         'gnulib-tool --update' in more detail.
18805         Reported by Eric Blake.
18806
18807 2010-09-04  Bruno Haible  <bruno@clisp.org>
18808
18809         gnulib-tool: Change --import. New options --add/remove-import.
18810         * gnulib-tool: New options --add-import, --remove-import.
18811         (func_usage): Document them.
18812         (have_associative): Define always.
18813         (func_import): In import mode, don't merge the specified settings with
18814         the cached settings. Implement remove-import mode.
18815         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
18816         Explain when to use them versus --import.
18817         (Simple update): Use --add-import instead of --import.
18818         * NEWS: Mention the change.
18819
18820 2010-09-04  Bruno Haible  <bruno@clisp.org>
18821
18822         * doc/gnulib-tool.texi (Initial import): Update paragraph about
18823         separate gnulib.mk.
18824
18825 2010-09-04  Bruno Haible  <bruno@clisp.org>
18826
18827         gnulib-tool: Don't talk about CVS any more.
18828         * gnulib-tool (func_usage, func_import): Write "version control"
18829         instead of CVS.
18830
18831 2010-09-04  Jim Meyering  <meyering@redhat.com>
18832
18833         maint.mk: avoid obscure sc_copyright_check failure in coreutils
18834         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
18835         false positives (whose names may be ill-chosen) when searching
18836         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
18837         would cause a false-positive.
18838
18839         avoid coreutils "make distcheck" failure
18840         Coreutils tests with an absolute build directory name that contains
18841         a space.  Not quoting this directory name caused a failure.
18842         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
18843         * tests/test-vc-list-files-cvs.sh: Likewise.
18844
18845 2010-09-04  Bruno Haible  <bruno@clisp.org>
18846
18847         gnulib-tool: Avoid error when run in a package without Makefile.am.
18848         * gnulib-tool: When collecting the m4dirs in a package that does not
18849         have a Makefile.am, eliminate those directories that contain no
18850         gnulib-cache.m4. Fix expression that counts these directories.
18851
18852 2010-09-04  Bruno Haible  <bruno@clisp.org>
18853
18854         update-copyright test: Improve output when perl is missing or too old.
18855         * tests/test-update-copyright.sh: Move test of Perl version down after
18856         the test whether Perl exists. Provide an explanation relating Perl's
18857         error message to Automake's SKIP: message.
18858
18859 2010-09-04  Bruno Haible  <bruno@clisp.org>
18860
18861         Don't augment PATH in TESTS_ENVIRONMENT.
18862         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
18863         set abs_aux_dir instead of augmenting PATH.
18864         * modules/vc-list-files-tests (Makefile.am): Likewise.
18865         * tests/test-update-copyright.sh: Augment PATH here.
18866         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
18867         path_prepend_.
18868         * tests/test-vc-list-files-git.sh: Likewise.
18869
18870 2010-09-04  Jim Meyering  <meyering@redhat.com>
18871
18872         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
18873         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
18874
18875 2010-09-04  Bruno Haible  <bruno@clisp.org>
18876
18877         strdup: Fix compilation error in C++ mode.
18878         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
18879         the macro.
18880
18881 2010-09-04  Bruno Haible  <bruno@clisp.org>
18882
18883         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
18884         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
18885         macro into a function.
18886         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
18887
18888 2010-09-04  Bruno Haible  <bruno@clisp.org>
18889
18890         Set PATH_SEPARATOR the same way autoconf does.
18891         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
18892         the value of PATH_SEPARATOR the same way autoconf-generated configure
18893         scripts do.
18894         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
18895         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
18896
18897 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18898
18899         Set PATH_SEPARATOR the same way autoconf does.
18900         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
18901         the same way autoconf-generated configure scripts do.
18902         * posix-modules: Likewise.
18903
18904 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18905
18906         hash: fix safe_hasher const typo
18907         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
18908         const; otherwise, there is a type error later.
18909
18910 2010-09-02  Jim Meyering  <meyering@redhat.com>
18911
18912         test-update-copyright.sh: require perl 5.8.0
18913         * tests/test-update-copyright.sh: Require 5.8.0,
18914         which Tom G. Christensen has confirmed is adequate,
18915         while 5.6.1 is not.
18916
18917 2010-09-02  Eric Blake  <eblake@redhat.com>
18918
18919         tests: init.sh improvements for re-exec'ing with zsh
18920         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
18921         -vx through shell re-exec.
18922         Reported by Tom G. Christensen.
18923
18924         wctype: fix typo in previous commit
18925         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
18926         Reported by Ludovic Courtès.
18927
18928 2010-09-02  Jim Meyering  <meyering@redhat.com>
18929
18930         test-update-copyright.sh: skip test if Perl is too old
18931         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
18932         Reported by Tom G. Christensen.
18933
18934 2010-09-02  Bruno Haible  <bruno@clisp.org>
18935
18936         wctype: Avoid compilation error on IRIX 6.5.30.
18937         * lib/wctype.in.h (iswblank): Declare with a replacement if
18938         REPLACE_ISWBLANK is set.
18939         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
18940         declared. Set REPLACE_ISWBLANK.
18941         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
18942         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
18943         * doc/posix-headers/wctype.texi: Likewise.
18944         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18945
18946 2010-09-01  Bruno Haible  <bruno@clisp.org>
18947
18948         New module 'socketlib'.
18949         * modules/socketlib: New file.
18950         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
18951         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
18952         * modules/sockets (Depends-on): Add socketlib.
18953         Suggested by Sam Steingold <sds@gnu.org>.
18954
18955 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
18956
18957         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
18958
18959         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
18960         when one needs search access to a directory but not read access.
18961         On systems where it is available, it works in some cases where
18962         O_RDONLY does not, namely on directories that are searchable but
18963         not readable, and which need only to be searchable.  If O_SEARCH
18964         is not available, fall back to the traditional method of using
18965         O_RDONLY.
18966
18967         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
18968         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
18969         when opening a directory that needs only to be searchable.
18970         * lib/chdir-safer.c (chdir_no_follow): Likewise.
18971         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
18972         * lib/openat-proc.c (openat_proc_name): Likewise.
18973         * lib/openat.c (openat_needs_fchdir): Likewise.
18974         * lib/save-cwd.c (save_cwd): Likewise.
18975         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
18976
18977 2010-08-28  Bruno Haible  <bruno@clisp.org>
18978
18979         New module 'host-cpu-c-abi'.
18980         * modules/host-cpu-c-abi: New file.
18981         * m4/host-cpu-c-abi.m4: New file, based on part of
18982         clisp/src/m4/general.m4.
18983         Requested by Sam Steingold <sds@gnu.org>.
18984
18985 2010-08-31  Eric Blake  <eblake@redhat.com>
18986         and Jim Meyering  <meyering@redhat.com>
18987
18988         hash: factor, and guard against misbehaving hasher function
18989         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
18990         of table->hasher's return value.  Also protect against a hash value
18991         so large that adding it to table->bucket results in a NULL pointer.
18992         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
18993         Use it in place of open-coded check-and-abort.
18994
18995 2010-08-30  Bruno Haible  <bruno@clisp.org>
18996
18997         hash: silence spurious clang warning
18998         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
18999         Reported by Eric Blake.
19000
19001 2010-08-30  Eric Blake  <eblake@redhat.com>
19002
19003         strstr, memmem, strcasestr: avoid leaked shell message
19004         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
19005         FreeBSD.
19006         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19007         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19008
19009         tests: silence clang warning
19010         * tests/test-malloca.c (do_allocation): Avoid dead store.
19011
19012 2010-08-29  Bruno Haible  <bruno@clisp.org>
19013
19014         gettext: Fix recent mistake.
19015         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
19016
19017 2010-08-29  Bruno Haible  <bruno@clisp.org>
19018
19019         selinux-h: Offer a --without-selinux option.
19020         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
19021         --without-selinux was specified, skip all tests and define
19022         HAVE_SELINUX_SELINUX_H to 0.
19023         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
19024         set LIB_SELINUX to empty.
19025         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
19026         gl_LIBSELINUX. If --without-selinux was specified, replace
19027         selinux/context.h.
19028         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
19029
19030 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19031             Bruno Haible  <bruno@clisp.org>
19032
19033         Make the module 'realloc-gnu' work again on AIX and OSF/1.
19034         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
19035         of HAVE_REALLOC.
19036         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
19037         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
19038         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
19039         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
19040
19041 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19042             Bruno Haible  <bruno@clisp.org>
19043
19044         Make the module 'calloc-gnu' work again on AIX and OSF/1.
19045         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
19046         HAVE_CALLOC.
19047         * lib/xmalloc.c: Update accordingly.
19048         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
19049         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
19050         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
19051
19052 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19053             Bruno Haible  <bruno@clisp.org>
19054
19055         Make the module 'malloc-gnu' work again on AIX and OSF/1.
19056         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
19057         HAVE_MALLOC.
19058         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
19059         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
19060         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
19061
19062 2010-08-29  Bruno Haible  <bruno@clisp.org>
19063
19064         Update modules list.
19065         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
19066         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
19067         (String handling <string.h>): Add astrxfrm.
19068         (File system functions): Add readlinkat.
19069
19070 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19071
19072         Tests for module 'realloc-gnu'.
19073         * modules/realloc-gnu-tests: New file.
19074         * tests/test-realloc-gnu.c: New file.
19075
19076         Tests for module 'calloc-gnu'.
19077         * modules/calloc-gnu-tests: New file.
19078         * tests/test-calloc-gnu.c: New file.
19079
19080         Tests for module 'malloc-gnu'.
19081         * modules/malloc-gnu-tests: New file.
19082         * tests/test-malloc-gnu.c: New file.
19083
19084 2010-08-28  Bruno Haible  <bruno@clisp.org>
19085
19086         Rename module 'realloc' -> 'realloc-gnu'.
19087         * modules/realloc-gnu: New file, copied from modules/realloc.
19088         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
19089         obsolete.
19090         * modules/mgetgroups (Depends-on): Update.
19091         * doc/posix-functions/realloc.texi: Update.
19092         * NEWS: Mention the change.
19093
19094         Rename module 'calloc' -> 'calloc-gnu'.
19095         * modules/calloc-gnu: New file, copied from modules/calloc.
19096         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
19097         obsolete.
19098         * doc/posix-functions/calloc.texi: Update.
19099         * NEWS: Mention the change.
19100
19101         Rename module 'malloc' -> 'malloc-gnu'.
19102         * modules/malloc-gnu: New file, copied from modules/malloc.
19103         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
19104         obsolete.
19105         * modules/argp (Depends-on): Update.
19106         * modules/regex (Depends-on): Update.
19107         * doc/posix-functions/malloc.texi: Update.
19108         * NEWS: Mention the change.
19109
19110 2010-08-28  Eric Blake  <eblake@redhat.com>
19111
19112         pread, pwrite: add missing dependency
19113         * modules/pread (Depends-on): Add extensions.
19114         * modules/pwrite (Depends-on): Likewise.
19115
19116 2010-08-28  Bruno Haible  <bruno@clisp.org>
19117
19118         unistr/u*-strchr: Fix tests dependencies.
19119         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
19120         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
19121         Reported by Ian Beckwith <ianb@erislabs.net>.
19122
19123 2010-08-28  Bruno Haible  <bruno@clisp.org>
19124
19125         read-file: Don't occupy too much unused memory.
19126         * lib/read-file.c (fread_file): Shrink the buffer at the end.
19127
19128 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
19129             Eric Blake  <eblake@redhat.com>
19130             Bruno Haible  <bruno@clisp.org>
19131
19132         read-file: Avoid memory reallocations with regular files.
19133         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
19134         (fread_file): With regular files, use the remaining length as the
19135         initial buffer size.  Check against overflow.
19136         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
19137         sys_stat.
19138
19139 2010-08-28  Bruno Haible  <bruno@clisp.org>
19140
19141         ftello: Relax license.
19142         * modules/ftello (License): Relax to LGPLv2+.
19143         Reported by Eric Blake.
19144
19145 2010-08-28  Bruno Haible  <bruno@clisp.org>
19146
19147         Avoid relocwrapper link errors due to gnulib replacement functions.
19148         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
19149         function.
19150         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19151
19152 2010-08-28  Bruno Haible  <bruno@clisp.org>
19153
19154         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
19155         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
19156         defined.
19157         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
19158         Suggested by Eric Blake.
19159
19160 2010-08-28  Bruno Haible  <bruno@clisp.org>
19161
19162         sys_socket, netdb: Ensure socklen_t gets defined.
19163         * modules/sys_socket (Depends-on): Add socklen.
19164         * modules/netdb (Depends-on): Likewise.
19165         * modules/getaddrinfo (Depends-on): Remove socklen.
19166         * modules/getsockopt (Depends-on): Likewise.
19167         * modules/setsockopt (Depends-on): Likewise.
19168         * tests/test-sys_socket.c: Check that socklen_t is defined.
19169         * tests/test-netdb.c: Likewise.
19170         * m4/socklen.m4: Update comments.
19171         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19172
19173 2010-08-27  Eric Blake  <eblake@redhat.com>
19174
19175         login_tty: add missing dependency
19176         * modules/login_tty (Depends-on): Add pty.
19177
19178 2010-08-26  Eric Blake  <eblake@redhat.com>
19179
19180         lib-symbol-versions: fix m4 quoting
19181         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
19182         format for AC_LINK_IFELSE.
19183
19184         glob: fix compile test
19185         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
19186
19187         btowc: fix missing file
19188         * modules/btowc (Files): Also ship locale-fr.m4.
19189
19190         lseek: fix link test
19191         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
19192         AC_LINK_IFELSE.
19193
19194         include_next: silence autoconf 2.68 warning
19195         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
19196         AC_COMPILE_IFELSE as special.
19197         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
19198         autoconf < 2.68.
19199
19200         acl: fix compilation test
19201         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
19202         AC_COMPILE_IFELSE.
19203
19204 2010-08-26  Bruno Haible  <bruno@clisp.org>
19205
19206         Modernize AC_TRY_RUN invocations.
19207         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
19208         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
19209         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
19210         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
19211         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
19212         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
19213         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19214         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19215         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19216         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19217         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
19218         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
19219         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19220         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19221         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19222         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
19223         gl_MBRLEN_NUL_RETVAL): Likewise.
19224         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19225         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
19226         Likewise.
19227         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19228         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19229         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19230         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19231         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
19232         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
19233         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
19234         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
19235         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
19236         Likewise.
19237         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
19238         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
19239         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19240         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
19241         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19242         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
19243         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19244         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
19245         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19246         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19247
19248 2010-08-26  Bruno Haible  <bruno@clisp.org>
19249
19250         Modernize AC_TRY_LINK invocations.
19251         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
19252         AC_TRY_LINK.
19253         * m4/argp.m4 (gl_ARGP): Likewise.
19254         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
19255         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
19256         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
19257         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
19258         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
19259         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
19260         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
19261         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
19262         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
19263         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
19264         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
19265         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
19266         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
19267         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19268         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
19269         * m4/hostent.m4 (gl_HOSTENT): Likewise.
19270         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19271         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
19272         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
19273         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
19274         Likewise.
19275         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
19276         Likewise.
19277         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
19278         Likewise.
19279         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
19280         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
19281         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
19282         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
19283         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
19284         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
19285         * m4/servent.m4 (gl_SERVENT): Likewise.
19286         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
19287         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
19288         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
19289         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
19290         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
19291         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
19292         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
19293         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
19294         * modules/tsearch-tests (configure.ac): Likewise.
19295
19296 2010-08-26  Bruno Haible  <bruno@clisp.org>
19297
19298         Modernize AC_TRY_COMPILE invocations.
19299         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
19300         AC_TRY_COMPILE.
19301         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
19302         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
19303         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
19304         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
19305         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
19306         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
19307         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
19308         * m4/lock.m4 (gl_LOCK): Likewise.
19309         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
19310         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
19311         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
19312         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
19313         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
19314         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
19315         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
19316         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
19317         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
19318         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
19319         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
19320         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
19321         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
19322         extraneous semicolon.
19323
19324 2010-08-26  Jim Meyering  <meyering@redhat.com>
19325
19326         stat-time: relax license LGPL
19327         * modules/stat-time (License): Change from GPL to LGPL,
19328         with consent from all contributors, for use in libguile.
19329         Requested by Ludovic Courtès.
19330
19331 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
19332
19333         poll: return immediately on POLLHUP.
19334         * lib/poll.c (poll): Always set timeout before wait_timeout is
19335         computed.
19336
19337 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19338
19339         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
19340         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
19341         rmdir ("dir/.//"), unlinkat.
19342
19343 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19344
19345         stdbool: avoid spurious failure with modern xlc
19346         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
19347
19348 2010-08-24  Bruno Haible  <bruno@clisp.org>
19349
19350         getloadavg: simplify code
19351         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
19352         gl_have_func. Update comments.
19353
19354 2010-08-24  Eric Blake  <eblake@redhat.com>
19355
19356         getloadavg: don't define SVR4 on cygwin
19357         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
19358         only define SVR4 when -lkvm is required.
19359         Reported by Yaakov Selkowitz.
19360
19361 2010-08-24  Bruno Haible  <bruno@clisp.org>
19362
19363         priv-set: fix comment
19364         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
19365
19366 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
19367
19368         priv-set: fix comments
19369         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
19370         to match code, as suggested by David Bartley in:
19371         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
19372
19373 2010-08-23  Eric Blake  <eblake@redhat.com>
19374
19375         stdbool: avoid rejecting clang
19376         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
19377         * tests/test-stdbool.c: Enable more tests if using the system
19378         <stdbool.h> instead of the gnulib replacement.
19379         (main): Move xlc bug test to a runtime test for all compilers.
19380         Reported by Anders Kaseorg.
19381
19382         argz: fix shell quoting issue
19383         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
19384         Reported by Charles Wilson.
19385
19386 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
19387             Erik Faye-Lund <kusmabite@gmail.com>
19388
19389         poll, select: handle ERROR_BROKEN_PIPE.
19390         * lib/poll.c (win32_compute_revents): Return POLLHUP when
19391         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
19392         * lib/select.c (win32_compute_revents): Do not mark a pipe
19393         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
19394
19395 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
19396
19397         fts: allow compilation with C++
19398         * lib/fts_.h: Specify extern "C" linkage with C++.
19399
19400 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19401
19402         Fix gnulib-tool sed script de-commentation for AIX sed.
19403         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
19404         sed.
19405
19406 2010-08-17  Eric Blake  <eblake@redhat.com>
19407
19408         test-stddef: test for (some) offsetof bugs
19409         * tests/test-stddef.c: Enhance test to ensure correct type of
19410         offsetof.
19411         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
19412         that we are not fixing at this time.
19413
19414 2010-08-15  Bruno Haible  <bruno@clisp.org>
19415
19416         stpncpy: Allow stpncpy to be defined as a macro.
19417         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
19418         if it's already correctly declared.
19419         * lib/string.in.h (stpncpy): Undefine before redefining.
19420         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
19421
19422 2010-08-14  Bruno Haible  <bruno@clisp.org>
19423
19424         Rename module 'memxfrm' to 'amemxfrm'.
19425         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
19426         (amemxfrm): Renamed from memxfrm.
19427         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
19428         (amemxfrm): Renamed from memxfrm.
19429         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
19430         * NEWS: Mention the change.
19431         * MODULES.html.sh (String handling <string.h>): Update.
19432         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
19433         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
19434         * lib/unicase/u16-casexfrm.c: Likewise.
19435         * lib/unicase/u32-casexfrm.c: Likewise.
19436         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
19437         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
19438         * lib/uninorm/u16-normxfrm.c: Likewise.
19439         * lib/uninorm/u32-normxfrm.c: Likewise.
19440         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
19441         memxfrm.
19442         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
19443         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
19444         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
19445         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
19446         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
19447         Suggested by Paul Eggert.
19448
19449 2010-08-14  Bruno Haible  <bruno@clisp.org>
19450
19451         Tests for module 'astrxfrm'.
19452         * modules/astrxfrm-tests: New file.
19453         * tests/test-astrxfrm.c: New file.
19454
19455         New module 'astrxfrm'.
19456         * lib/astrxfrm.h: New file.
19457         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
19458         * modules/astrxfrm: New file.
19459
19460 2010-08-14  Reuben Thomas <rrt@sc3d.org>
19461
19462         regex: Tweak doc.
19463         * doc/regex.texi (Overview): Don't mention regex.c.
19464         (GNU Regular Expression Compiling): Likewise.
19465         (Match-end-of-line Operator): Mention 'not_eol'.
19466
19467 2010-08-14  Brian Gough  <bjg@gnu.org>
19468             Bruno Haible  <bruno@clisp.org>
19469
19470         git-merge-changelog: add doc relating to use with bzr and hg.
19471         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
19472
19473 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
19474
19475         pthread: fix pthread.h creation for srcdir != builddir
19476         * modules/pthread (Makefile.am): Fix the rule to work also in a
19477         non-srcdir build.
19478
19479 2010-08-13  Karl Berry  <karl@gnu.org>
19480
19481         * doc/regex.texi (Predefined Syntaxes): @smallexample.
19482         * doc/posix-*/*: force line break before @url of POSIX
19483         specifications.
19484         Suggested by Werner Lemberg.
19485
19486 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
19487
19488         strtod: fix const diagnostic
19489         * lib/strtod.c (strtod): Don't assign const char * to char *,
19490         as this elicits a warning from GCC when warnings are enabled.
19491
19492 2010-08-10  Pádraig Brady <P@draigbrady.com>
19493         and Eric Blake  <eblake@redhat.com>
19494
19495         copy-acl: ignore ENOTSUP on HP-UX
19496         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
19497         so that it is available for HP-UX.
19498         * lib/copy-acl.c (qcopy_acl): Use it.
19499         Reported by Patrick M. Callahan.
19500
19501 2010-08-10  Eric Blake  <eblake@redhat.com>
19502
19503         open, chown: relax license
19504         * modules/open (License): Change to LGPLv2+, with consent by all
19505         authors, for use in augeas.
19506         * modules/chown (License): Likewise.
19507         * modules/lchown (Likewise): Likewise.
19508         Requested by Adam Stokes.
19509
19510 2010-08-09  Karl Berry  <karl@gnu.org>
19511
19512         * build-aux/ar-lib: new file, import from Automake.
19513         * config/srclist.txt: autocheck for updates.
19514
19515 2010-08-09  Eric Blake  <eblake@redhat.com>
19516
19517         readlinkat: adjust client modules
19518         * modules/areadlinkat (Depends-on): Use readlinkat, not
19519         symlinkat.
19520         * modules/areadlinkat-with-size (Depends-on): Likewise.
19521
19522         mknod: be more vocal about danger of running tests as root
19523         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
19524         root, since that is just asking for problems.
19525         Suggested by Bruno Haible, based on a report by Rainer Tammer.
19526
19527         readlinkat: split into its own module
19528         * modules/symlinkat: Split readlinkat...
19529         * modules/readlinkat: ...into separate module.
19530         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
19531         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
19532         * lib/symlinkat.c (readlinkat): Move...
19533         * lib/readlinkat.c: ...into new file.
19534         * modules/symlinkat-tests: Split readlinkat test...
19535         * modules/readlinkat-tests: ...into separate module.
19536         * tests/test-symlinkat.c: Split...
19537         * tests/test-readlinkat.c: ...into new file.
19538         * NEWS: Document the split.
19539         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
19540         * lib/unistd.in.h (readlinkat): Likewise.
19541         Suggested by Bruno Haible.
19542
19543 2010-08-08  Bruno Haible  <bruno@clisp.org>
19544
19545         memxfrm: Speed up.
19546         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
19547         that usually only one call to strxfrm is necessary for each string
19548         part.
19549         Reported by Paul Eggert <eggert@cs.ucla.edu>.
19550
19551 2010-08-07  Karl Berry  <karl@gnu.org>
19552
19553         * doc/posix-headers/limits.texi,
19554         * doc/posix-functions/malloc.texi,
19555         * doc/posix-functions/strsignal.texi: missing @item.
19556         * doc/ld-version-script.texi: spurious leading i.
19557         * doc/regex.texi (Interval Operators): no commas inside @var.
19558
19559 2010-08-01  Bruno Haible  <bruno@clisp.org>
19560
19561         Integrate the regex documentation.
19562         * doc/gnulib.texi: Define 'cn' index.
19563         (Regular expressions): New a chapter that includes regex.texi and
19564         regexprops-generic.texi.
19565         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
19566         syntax.
19567
19568         Whitespace cleanup.
19569         * doc/regex.texi: Remove trailing spaces.
19570
19571         Add regex documentation.
19572         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
19573         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
19574         Written by Kathy A. Hargreaves and Karl Berry.
19575
19576 2010-08-01  Bruno Haible  <bruno@clisp.org>
19577
19578         link: Update documentation.
19579         * doc/posix-functions/link.texi: Update regarding Solaris.
19580
19581 2010-07-31  Bruno Haible  <bruno@clisp.org>
19582
19583         Update modules list.
19584         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
19585         (String handling <string.h>): Add memcmp2, memxfrm.
19586         (Container data structures): Add xlist, xsublist, xoset.
19587         (Core language properties): Add alignof, unused-parameter.
19588         (Process control, Numeric conversion functions <stdlib.h>): Renamed
19589         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
19590         (Unibyte characters <ctype.h>): New section.
19591         (String handling <string.h>): New section.
19592         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
19593         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
19594         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
19595         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
19596         tan, tanh, tanl, y0, y1, yn.
19597         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
19598         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
19599         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
19600         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
19601         unlockpt, vdprintf, vdprintf-posix.
19602         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
19603         (File system functions): Add concat-filename, sys_file, sys_ioctl,
19604         xconcat-filename.
19605         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
19606         getdtablesize, pipe2, pipe2-safer.
19607         (Security): New section.
19608         (Networking functions): Add accept4.
19609         (Signal handling): Add sigpipe.
19610         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
19611         mbmemcasecoll.
19612         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
19613         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
19614         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
19615         pipe-filter-ii.
19616         (Misc): Add argp-version-etc, login_tty, parse-duration.
19617
19618 2010-07-31  Bruno Haible  <bruno@clisp.org>
19619
19620         Improve doc in MODULES.html.
19621         * modules/linkat (Description): Add the word "function".
19622         * modules/mkfifo (Description): Likewise.
19623         * modules/mknod (Description): Likewise.
19624         * modules/remove (Description): Likewise.
19625         * modules/renameat (Description): Likewise.
19626         * modules/stat (Description): Likewise.
19627         * modules/symlink (Description): Likewise.
19628         * modules/unlink (Description): Likewise.
19629
19630 2010-07-31  Bruno Haible  <bruno@clisp.org>
19631
19632         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
19633         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
19634         option --enable/disable-c++ instead of --enable/disable-cxx.
19635         * NEWS: Mention the change.
19636
19637 2010-07-31  Bruno Haible  <bruno@clisp.org>
19638
19639         readlink, areadlink: Relax test a bit.
19640         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
19641         alternative to ENOTDIR.
19642         * tests/test-areadlink.h (test_areadlink): Likewise.
19643         Reported by Rainer Tammer.
19644
19645 2010-07-31  Bruno Haible  <bruno@clisp.org>
19646
19647         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
19648         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
19649         character, perform the search using U_STRCHR.
19650         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
19651         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
19652         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
19653         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
19654         Suggested by Paolo Bonzini.
19655
19656 2010-07-31  Bruno Haible  <bruno@clisp.org>
19657
19658         unistr/u*-strstr: Fix dependencies.
19659         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
19660         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
19661         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
19662
19663 2010-07-31  Bruno Haible  <bruno@clisp.org>
19664
19665         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
19666         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
19667         the beginning of the loop.
19668         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
19669         cases in 'switch' statement.
19670
19671         unistr/u8-strchr: Fix several bugs.
19672         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
19673         the string. When not found, return NULL, not a pointer near the end.
19674
19675         More tests for unistr/u8-strchr.
19676         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
19677         that the function does not read past the first occurrence of the byte
19678         being searched.
19679         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
19680         * tests/unistr/test-u16-strchr.c (main): New function.
19681         * tests/unistr/test-u32-strchr.c (main): New function.
19682
19683 2010-07-31  Bruno Haible  <bruno@clisp.org>
19684
19685         posix-modules: Ignore backup files of documentation files.
19686         * posix-modules: grep only through files named *.texi.
19687
19688 2010-07-31  Bruno Haible  <bruno@clisp.org>
19689
19690         symlinkat: Fix documentation.
19691         * doc/posix-functions/readlinkat.texi: Fix module name.
19692
19693 2010-07-31  Bruno Haible  <bruno@clisp.org>
19694
19695         fchownat: Replace also when chown has the trailing slash bug.
19696         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
19697         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
19698         introduced on 2010-04-10.
19699         Reported by Rainer Tammer.
19700
19701 2010-07-31  Bruno Haible  <bruno@clisp.org>
19702
19703         linkat: Work around AIX 7.1 bug.
19704         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
19705         whether linkat handles trailing slash correctly. If not, replace linkat
19706         and define LINKAT_TRAILING_SLASH_BUG.
19707         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
19708         check whether (fd1,file1) points to a directory if file1 or file2 ends
19709         in a slash. Code taken from lib/link.c.
19710         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
19711         Reported by Rainer Tammer.
19712
19713 2010-07-31  Bruno Haible  <bruno@clisp.org>
19714
19715         Correctly determine whether pow is available in libc on AIX 7 with xlc.
19716         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
19717         This disables an xlc optimization that was causing wrong test results.
19718         Reported by Rainer Tammer.
19719
19720 2010-07-31  Bruno Haible  <bruno@clisp.org>
19721
19722         iconv: Work around AIX 6.1..7.1 bug.
19723         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
19724         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
19725         cross-compiling, guess no on all versions of AIX.
19726         Reported by Rainer Tammer.
19727
19728 2010-07-31  Bruno Haible  <bruno@clisp.org>
19729
19730         readlink: Relax test a bit.
19731         * tests/test-readlink.h (test_readlink): Allow different errno value
19732         when readlink is called with a file name that ends in / and refers to
19733         a file.
19734         Suggested by Eric Blake.
19735         Reported by Rainer Tammer.
19736
19737 2010-07-31  Bruno Haible  <bruno@clisp.org>
19738
19739         copysign: Does not require -lm on glibc systems.
19740         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
19741         gl_COMMON_DOUBLE_MATHFUNC.
19742         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
19743
19744 2010-07-31  Bruno Haible  <bruno@clisp.org>
19745
19746         duplocale: Work around AIX 7.1 bug.
19747         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
19748         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
19749         * lib/duplocale.c (rpl_duplocale): Update comment.
19750         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
19751         Reported by Rainer Tammer.
19752
19753 2010-07-30  Bruno Haible  <bruno@clisp.org>
19754
19755         dirfd: Avoid link error on AIX 7.1.
19756         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
19757         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
19758         exist, set REPLACE_DIRFD.
19759         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
19760         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
19761         * doc/posix-functions/dirfd.texi: Update.
19762         Reported by Rainer Tammer.
19763
19764 2010-07-30  Eric Blake  <eblake@redhat.com>
19765
19766         strtod: next round of AIX fixes
19767         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
19768         exponent.
19769         * tests/test-strtod.c (main): Enhance tests.
19770         * doc/posix-functions/strtod.texi (strtod): Document next bug.
19771         Reported by Rainer Tammer.
19772
19773         futimens: fix configure check
19774         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
19775         Reported by Bruno Haible.
19776
19777 2010-07-30  Bruno Haible  <bruno@clisp.org>
19778
19779         getline: Update regarding AIX.
19780         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
19781         Reported by Rainer Tammer.
19782
19783 2010-07-30  Bruno Haible  <bruno@clisp.org>
19784
19785         wcwidth: Drop replacement on AIX 7.
19786         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
19787         AIX 7.
19788         Reported by Rainer Tammer.
19789
19790 2010-07-30  Bruno Haible  <bruno@clisp.org>
19791
19792         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
19793         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
19794         a 'char *'.
19795         Reported by Rainer Tammer.
19796
19797 2010-07-30  Bruno Haible  <bruno@clisp.org>
19798
19799         unlink: Update regarding AIX.
19800         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
19801         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
19802         Reported by Rainer Tammer.
19803
19804 2010-07-30  Bruno Haible  <bruno@clisp.org>
19805
19806         symlink: Update regarding AIX.
19807         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
19808         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
19809         Reported by Rainer Tammer.
19810
19811 2010-07-30  Bruno Haible  <bruno@clisp.org>
19812
19813         strndup: Update regarding AIX.
19814         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
19815         AIX 7.
19816         Reported by Rainer Tammer.
19817
19818 2010-07-30  Bruno Haible  <bruno@clisp.org>
19819
19820         stat: Update regarding AIX.
19821         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
19822         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
19823         Reported by Rainer Tammer.
19824
19825 2010-07-30  Bruno Haible  <bruno@clisp.org>
19826
19827         truncl: Fix autoconf test.
19828         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
19829         whether truncl works.
19830         Reported by Rainer Tammer.
19831
19832 2010-07-30  Bruno Haible  <bruno@clisp.org>
19833
19834         round: Update regarding AIX.
19835         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
19836         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
19837         Reported by Rainer Tammer.
19838
19839 2010-07-30  Bruno Haible  <bruno@clisp.org>
19840
19841         rename: Update regarding AIX.
19842         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
19843         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
19844         Reported by Rainer Tammer.
19845
19846 2010-07-30  Bruno Haible  <bruno@clisp.org>
19847
19848         printf.m4: Update regarding AIX.
19849         * m4/printf.m4: Update comments regarding AIX.
19850         Reported by Rainer Tammer.
19851
19852 2010-07-30  Bruno Haible  <bruno@clisp.org>
19853
19854         iconv: Update regarding AIX.
19855         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
19856         AIX 7.
19857         Reported by Rainer Tammer.
19858
19859 2010-07-30  Bruno Haible  <bruno@clisp.org>
19860
19861         getopt: Update regarding AIX.
19862         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
19863         no on AIX.
19864         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
19865         Reported by Rainer Tammer.
19866
19867 2010-07-30  Bruno Haible  <bruno@clisp.org>
19868
19869         ldexpl; Update regarding AIX.
19870         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
19871         on AIX 7.
19872         Reported by Rainer Tammer.
19873
19874 2010-07-30  Bruno Haible  <bruno@clisp.org>
19875
19876         frexpl: Update regarding AIX.
19877         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
19878         on AIX 7.
19879         Reported by Rainer Tammer.
19880
19881 2010-07-30  Bruno Haible  <bruno@clisp.org>
19882
19883         open, fopen: Update regarding AIX.
19884         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
19885         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
19886         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
19887         * doc/posix-functions/fopen.texi: Likewise.
19888         Reported by Rainer Tammer.
19889
19890 2010-07-30  Bruno Haible  <bruno@clisp.org>
19891
19892         chown: Update doc regarding AIX.
19893         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
19894         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
19895         Reported by Rainer Tammer.
19896
19897 2010-07-30  Eric Blake  <eblake@redhat.com>
19898
19899         strtod: fix bug in replacement function on AIX
19900         * lib/strtod.c (strtod): Special case broken "0x" parse in
19901         underlying strtod.
19902         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
19903         * doc/posix-functions/strtod.texi (strtod): Likewise.
19904         Reported by Rainer Tammer.
19905
19906 2010-07-30  Bruno Haible  <bruno@clisp.org>
19907
19908         mbrlen: Fix cross-compilation guess for AIX.
19909         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
19910         guess. Leftover from 2008-12-22.
19911
19912 2010-07-30  Bruno Haible  <bruno@clisp.org>
19913
19914         mbrtowc: Fix cross-compilation guess for AIX.
19915         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
19916         guess. Leftover from 2008-12-21.
19917
19918 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
19919
19920         init.sh: work around trap limitation of some shells
19921         * tests/init.sh (setup_): Move exit trap outside of shell function.
19922
19923 2010-07-29  Eric Blake  <eblake@redhat.com>
19924
19925         strtod: aid debugging
19926         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
19927         understanding why strtod is rejected.
19928
19929 2010-07-28  Bruno Haible  <bruno@clisp.org>
19930
19931         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
19932         * lib/unistr/u8-chr.c: Include <string.h>.
19933         * tests/unistr/test-u8-chr.c: Likewise.
19934         * tests/unistr/test-u16-chr.c: Likewise.
19935         * tests/unistr/test-u32-chr.c: Likewise.
19936         * tests/unistr/test-u8-strchr.c: Likewise.
19937         * tests/unistr/test-u16-strchr.c: Likewise.
19938         * tests/unistr/test-u32-strchr.c: Likewise.
19939         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
19940         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
19941         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
19942         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
19943
19944 2010-07-28  Bruno Haible  <bruno@clisp.org>
19945
19946         Use spaces for indentation, not tabs.
19947         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
19948
19949 2010-07-27  Bruno Haible  <bruno@clisp.org>
19950
19951         mbspcasecmp: Fix function specification.
19952         * lib/string.in.h (mbspcasecmp): Fix specification comment.
19953         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
19954         Reported by Eric Blake <eblake@redhat.com>.
19955
19956 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
19957
19958         timespec: use cast and not conditional, as truncation isn't possible
19959         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
19960         instead of a conditional.  Comment about the situation in more detail.
19961         This undoes most of the 2009-10-29 patch.
19962
19963 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
19964
19965         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
19966         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
19967         * lib/unistr/u8-strchr.c: Likewise.
19968         * modules/unistr/u8-chr: Depend on memchr.
19969
19970         unistr/u*-strchr: add tests
19971         * modules/unistr/u8-strchr-tests: New file.
19972         * modules/unistr/u16-strchr-tests: New file.
19973         * modules/unistr/u32-strchr-tests: New file.
19974         * tests/unistr/test-strchr.h: New file.
19975         * tests/unistr/test-u8-strchr.c: New file.
19976         * tests/unistr/test-u16-strchr.c: New file.
19977         * tests/unistr/test-u32-strchr.c: New file.
19978
19979         unistr/u*-chr: test multibyte sequences more
19980         * tests/unistr/test-chr.h: Do complete testing of the characters in the
19981         test vector.
19982         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
19983         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
19984         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
19985
19986         unistr/u*-chr: test multibyte sequences
19987         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
19988
19989         unistr/u*-chr: prepare for multibyte tests
19990         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
19991         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
19992         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
19993         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
19994         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
19995         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
19996
19997 2010-07-18  Bruno Haible  <bruno@clisp.org>
19998
19999         unistr/u8-strchr: Optimize non-ASCII argument case.
20000         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
20001         because the first byte often matches anyway.
20002         Reported by Pádraig Brady <P@draigbrady.com>.
20003
20004 2010-07-15  Karl Berry  <karl@gnu.org>
20005
20006         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
20007
20008 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
20009
20010         getcwd: on Solaris, work better if ancestors are inaccessible
20011         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
20012         buffer and size, try again with a large buffer.  This works better
20013         on Solaris, since its getcwd succeeds even if the path to the root
20014         is inaccessible, and this is helpful in common cases such as .zfs
20015         hidden directories.  Problem reported by J Chapman Flack in
20016         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
20017         Use system getcwd if it's declared, not merely if it's partly
20018         working; use the partly-working test only to avoid needless effort
20019         if the system getcwd fails.
20020         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
20021         comment that was already obsolete and is now even more obsolete.
20022         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
20023         now might call strdup.
20024
20025 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
20026
20027         pthread: Add enough so that coreutils/src/sort.c compiles.
20028         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
20029         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
20030         gnulib. Include <sched.h> and <time.h>, as per POSIX.
20031         Include <sys/types.h>, in case it defines pthread_t.
20032         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
20033         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
20034         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
20035         (pthread_rwlockattr_t, pthread_spinlock_t):
20036         New typedefs, if HAVE_PTHREAD_T is not defined.
20037         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
20038         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
20039         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
20040         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
20041         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
20042         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
20043         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
20044         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
20045         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
20046         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
20047         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
20048         New macros.
20049         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
20050         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
20051         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
20052         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
20053         (pthread_spin_unlock): New dummy functions.
20054         (pthread_create): Return EAGAIN; don't set errno.
20055         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
20056         require AC_C_INLINE.
20057         * modules/pthread (Depends-on): Add sched, time.
20058         (pthread.h): Use AM_V_GEN.
20059
20060 2010-07-13  Bruno Haible  <bruno@clisp.org>
20061
20062         striconveh: Don't malloc memory if the result buffer is sufficient.
20063         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
20064         buffer if its size is sufficient.
20065         Reported by Ludovic Courtès <ludo@gnu.org>.
20066
20067 2010-07-13  Bruno Haible  <bruno@clisp.org>
20068
20069         strtod: Add safety check.
20070         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
20071
20072 2010-07-12  Bruno Haible  <bruno@clisp.org>
20073
20074         Unify tests that set gl_cv_func_ldexpl_no_libm.
20075         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
20076         gl_FUNC_LDEXPL.
20077         (gl_FUNC_LDEXPL): Invoke it.
20078         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
20079
20080 2010-07-12  Bruno Haible  <bruno@clisp.org>
20081
20082         Unify tests that set gl_cv_func_ldexp_no_libm.
20083         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
20084         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
20085         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
20086         (configure.ac): Simply invoke gl_FUNC_LDEXP.
20087         * modules/strtod (Files): Add m4/ldexp.m4.
20088
20089 2010-07-12  Bruno Haible  <bruno@clisp.org>
20090
20091         Unify tests that set gl_cv_func_frexpl_no_libm.
20092         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
20093         gl_FUNC_FREXPL_NO_LIBM.
20094         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
20095         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
20096
20097 2010-07-12  Bruno Haible  <bruno@clisp.org>
20098
20099         Unify tests that set gl_cv_func_frexp_no_libm.
20100         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
20101         gl_FUNC_FREXP_NO_LIBM.
20102         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
20103         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
20104
20105 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
20106
20107         memcoll: clarify sizes versus lengths, document better, and tweak perf
20108         * lib/memcoll.c (strcoll_loop, memcoll0):
20109         Improve quality of descriptive comments.  Name variables
20110         consistently as to whether they are lengths (which do not include
20111         terminating null) versus sizes (which do).
20112         * lib/xmemcoll.c (xmemcoll0): Likewise.
20113         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
20114         returned when s1size == 0; this is easier to compile and saves
20115         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
20116
20117 2010-07-12  Bruno Haible  <bruno@clisp.org>
20118
20119         Tests for module '_Exit'.
20120         * modules/_Exit-tests: New file.
20121         * tests/test-_Exit.sh: New file.
20122         * tests/test-_Exit.c: New file.
20123
20124         New module '_Exit'.
20125         * lib/stdlib.in.h (__attribute__): New macro.
20126         (_Exit): New declaration.
20127         * lib/_Exit.c: New file.
20128         * m4/_Exit.m4: New file.
20129         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
20130         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
20131         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
20132         * modules/_Exit: New file.
20133         * tests/test-stdlib-c++.cc (_Exit): Check signature.
20134         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
20135
20136 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
20137
20138         strtod: make it more-accurate typically, and don't require libm
20139         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
20140         Include limits.h.  Don't include string.h.
20141         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
20142         (locale_isspace): New function, so that no casts are needed to
20143         check whether *s is a space.
20144         (ldexp): Provide an unused dummy if not available.
20145         (scale_radix_exp, parse_number, underlying_strtod): New functions.
20146         (strtod): Use them.  This implementation prefers to use the
20147         underlying strtod if available, falling back on our own code
20148         only to fix known bugs.  This is more likely to produce an
20149         accurate result.  Also, it avoids the use of libm functions.
20150         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
20151         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
20152         was absent, but it caused a test failure with coreutils.
20153         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
20154         with libm.
20155         * modules/strtod (Makefile.am, Link): libm is no longer needed.
20156         * modules/strtod-tests (Makefile.am): Likewise.
20157
20158 2010-07-11  Pádraig Brady  <P@draigBrady.com>
20159             Bruno Haible  <bruno@clisp.org>
20160
20161         unistr/u8-strchr: Optimize ASCII argument case.
20162         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
20163
20164 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
20165
20166         (x)memcoll: minor tweaks
20167         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
20168         is after the type that it qualifies.
20169         (memcoll0): Likewise.
20170         * lib/memcoll.h (memcoll0): Likewise.
20171         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
20172         * lib/xmemcoll.h (xmemcoll0): Likewise.
20173         * lib/memcoll.c (memcoll0): Correct the comment.  This function
20174         differs from memcoll in that the NUL byte is part of the argument.
20175         Omit the abort-checks, as performance is a real issue here.  Plus,
20176         the checks were wrong anyway (an off-by-one error).  Omit local
20177         variable 'diff', as it's a bit clearer that way.
20178         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
20179         no longer needed.
20180
20181 2010-07-08  Chen Guo <chenguo4@yahoo.com>
20182
20183         (x)memcoll: speedup when input is known to be NUL delimited
20184         * lib/memcoll.c: Include stdlib.
20185         (memcoll0): New function.
20186         (strcoll_loop): New function, refactored for use in both memcoll
20187         and memcoll0.
20188         * lib/memcoll.h (memcoll0): Add prototype.
20189         * lib/xmemcoll.c (xmemcoll0): New function.
20190         (collate_error): New function, refactored for use in both xmemcoll
20191         and xmemcoll0.
20192         * lib/xmemcoll.h (xmemcoll0): Add prototype.
20193         * m4/memcoll.m4: add inline invocation.
20194
20195 2010-07-06  Pádraig Brady  <P@draigBrady.com>
20196
20197         * build-aux/bootstrap: Remove any local translations
20198         from the translation project synchronization directory,
20199         so that local only translations are not distributed.
20200
20201 2010-07-04  Bruno Haible  <bruno@clisp.org>
20202
20203         fsusage: Clarify which code applies to which platforms.
20204         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
20205         platform.
20206         * lib/fsusage.c (get_fs_usage): Likewise.
20207
20208 2010-07-04  Bruno Haible  <bruno@clisp.org>
20209
20210         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
20211         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
20212         Reported by Martin Lambers <marlam@marlam.de>.
20213
20214 2010-07-04  Jim Meyering  <meyering@redhat.com>
20215
20216         hash: once again explicitly disallow insertion of NULL
20217         * lib/hash.c (hash_insert0): Reinstate just-removed test:
20218         inserting a NULL pointer cannot work with these functions.
20219         Add a comment with details.
20220         This reverts part of the 2010-07-01 commit, 5bef1a35
20221         "hash: extend module to deal with non-pointer keys".
20222
20223 2010-07-01  Bruno Haible  <bruno@clisp.org>
20224
20225         stdbool: Update doc.
20226         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
20227         Info from Christian Weisgerber <naddy@mips.inka.de>.
20228
20229 2010-07-01  Jim Meyering  <meyering@redhat.com>
20230
20231         hash: extend module to deal with non-pointer keys
20232         * lib/hash.c (hash_insert0): New interface, much like hash_insert
20233         but that allows insertion of non-pointer entries.
20234         Do not disallow an ENTRY value of NULL.
20235         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
20236         * lib/hash.h (hash_insert0): Declare.
20237
20238 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20239
20240         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
20241         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
20242         not present (i.e. with autoconf 2.59 and when using gettextize, not
20243         gnulib), require AC_GNU_SOURCE instead.
20244
20245 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
20246
20247         idpriv-drop: Fix tests.
20248         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
20249         not to the test-idpriv-droptemp program.
20250
20251 2010-06-29  Bruno Haible  <bruno@clisp.org>
20252
20253         string: Fix syntax error with g++ 2.96.
20254         * lib/string.in.h (__pure__): Remove definition.
20255         (_GL_ATTRIBUTE_PURE): New macro.
20256         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
20257         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
20258         Reported by Christian Weisgerber <naddy@mips.inka.de>.
20259
20260 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
20261
20262         unitypes: Fix bug introduced on 2010-05-18.
20263         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
20264
20265 2010-06-22  Eric Blake  <eblake@redhat.com>
20266
20267         memmem: slight optimization
20268         * lib/str-two-way.h (critical_factorization): Update comments.
20269         Reduce work during factorization phase.
20270         Reported by Carlos Bueno <carlos@bueno.org>.
20271
20272 2010-06-21  Bruno Haible  <bruno@clisp.org>
20273
20274         Fix HAVE_CALLOC_POSIX misnomer.
20275         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
20276         !HAVE_CALLOC_POSIX.
20277         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
20278         HAVE_CALLOC_POSIX.
20279         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
20280         instead of HAVE_CALLOC_POSIX.
20281         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
20282         HAVE_CALLOC_POSIX.
20283
20284         Use modern idiom for calloc() replacement.
20285         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
20286         AC_FUNC_CALLOC.
20287         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
20288         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
20289         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20290         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
20291         (gl_REPLACE_CALLOC): New macro.
20292
20293 2010-06-21  Bruno Haible  <bruno@clisp.org>
20294
20295         Fix HAVE_REALLOC_POSIX misnomer.
20296         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
20297         !HAVE_REALLOC_POSIX.
20298         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
20299         HAVE_REALLOC_POSIX.
20300         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
20301         instead of HAVE_REALLOC_POSIX.
20302         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
20303         HAVE_REALLOC_POSIX.
20304
20305         Use modern idiom for realloc() replacement.
20306         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
20307         AC_FUNC_REALLOC.
20308         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
20309         Autoconf's AC_FUNC_REALLOC.
20310         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20311         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
20312         (gl_REPLACE_REALLOC): New macro.
20313         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
20314
20315 2010-06-21  Bruno Haible  <bruno@clisp.org>
20316
20317         Fix HAVE_MALLOC_POSIX misnomer.
20318         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
20319         !HAVE_MALLOC_POSIX.
20320         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
20321         HAVE_MALLOC_POSIX.
20322         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
20323         instead of HAVE_MALLOC_POSIX.
20324         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
20325         HAVE_MALLOC_POSIX.
20326
20327         Use modern idiom for malloc() replacement.
20328         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
20329         AC_FUNC_MALLOC.
20330         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
20331         Autoconf's AC_FUNC_MALLOC.
20332         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
20333         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
20334         (gl_REPLACE_MALLOC): New macro.
20335         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
20336
20337 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
20338
20339         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
20340         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
20341         This macro takes 3 arguments, not 4.
20342
20343 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
20344
20345         ipv6: fix detection under mingw
20346         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
20347         in6_addr.
20348
20349 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
20350
20351         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
20352         that strtod() works when cross-compiling to a glibc version known
20353         to work.
20354
20355 2010-06-15  Bruno Haible  <bruno@clisp.org>
20356
20357         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
20358
20359 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
20360
20361         select: Correct timeout.
20362         * lib/select.c (rpl_select): Compute wait_timeout correctly.
20363
20364 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20365
20366         git-version-gen: init shell var to avoid env var influence
20367         * build-aux/git-version-gen (v): Init shell var to empty.
20368
20369 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
20370
20371         priv-set: Don't assume that priv.h exists merely because getppriv does.
20372         See Jan Andersen's bug report about AIX 5L in
20373         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
20374         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
20375         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
20376         * lib/priv-set.h: Likewise.
20377         * tests/test-priv-set.c: Likewise.
20378
20379 2010-06-13  Bruno Haible  <bruno@clisp.org>
20380
20381         relocatable: Make it easier to test whether to install wrappers.
20382         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
20383         RELOCATABLE_VIA_WRAPPER.
20384
20385 2010-06-13  Bruno Haible  <bruno@clisp.org>
20386
20387         gnulib-tool: Display specified modules and dependencies differently.
20388         * gnulib-tool (func_show_module_list): New function.
20389         (func_import, func_create_testdir): Invoke it.
20390         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
20391
20392 2010-06-13  Bruno Haible  <bruno@clisp.org>
20393
20394         gnulib-tool: Align code of func_import and func_create_testdir.
20395         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
20396         specified_modules.
20397
20398 2010-06-12  Jim Meyering  <meyering@redhat.com>
20399
20400         test-inttostr: avoid spurious failure on Solaris 9
20401         * tests/test-inttostr.c (main): Skip the test when snprintf fails
20402         to accept "%ju".  Reported by Bruno Haible.
20403
20404 2010-06-11  Jim Meyering  <meyering@redhat.com>
20405
20406         test-sys_socket: mark variables as used more readably
20407         * tests/test-sys_socket.c (main): Mark otherwise unused variables
20408         as "used" explicitly via (void) statement casts.  This is more
20409         readable than using them in an artificial return expression.
20410         Suggestion from Bruno Haible.
20411
20412 2010-06-11  Bruno Haible  <bruno@clisp.org>
20413
20414         Avoid some more warnings from "gcc -Wwrite-strings".
20415         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
20416         to 'const char *'.
20417         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
20418         * tests/test-c-strcasestr.c (main): Likewise.
20419         * tests/test-mbscasestr1.c (main): Likewise.
20420         * tests/test-mbscasestr2.c (main): Likewise.
20421         * tests/test-memmem.c (main): Likewise.
20422         * tests/test-strstr.c (main): Likewise.
20423         * tests/test-strcasestr.c (main): Likewise.
20424
20425 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20426
20427         init.sh: change framework_failure_ to fail with status 99, not 1
20428         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
20429         automake's parallel-tests rule that this is an unexpected failure,
20430         even if the test is listed in XFAIL_TESTS.
20431
20432 2010-06-11  Jim Meyering  <meyering@redhat.com>
20433
20434         test-inttostr: avoid warnings about 4-6KB literal strings
20435         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
20436         Include "macros.h", for its definition of ASSERT.
20437         (CK): s/assert/ASSERT/
20438         * modules/inttostr-tests (Files): Add macros.h.
20439
20440         init.sh: don't use $ME_ or skip_ before they are defined
20441         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
20442         their first uses.  Also hoist their companions: warn_, fail_,
20443         framework_failure_, $stderr_fileno.  Prompted by a patch from
20444         Stefano Lattarini.
20445
20446         test-sys_socket: avoid set-but-not-used warnings from gcc
20447         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
20448         avoid warning about set-but-not-used variables.
20449
20450         test-xvasprintf: avoid 'const' discard warnings
20451         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
20452         "const" when assigning from literal strings.
20453         (test_xasprintf): Add "void" in function argument list to placate
20454         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
20455
20456         tests: avoid compilation warnings in argmatch and exclude tests...
20457         in packages that define ARGMATCH_DIE_DECL, like coreutils.
20458         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
20459         Since it always exits, declare with the "noreturn" attribute.
20460         * tests/test-argmatch.c: Likewise.
20461
20462         tests: avoid 'const' discard warnings in mbsstr tests
20463         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
20464         * tests/test-mbsstr2.c (main): Likewise.
20465
20466         test-verify: avoid warning from gcc's -Wmissing-declarations
20467         * tests/test-verify.c (function): Declare to be static.
20468
20469         test-inttostr.c: include <string.h> for use of strcmp
20470         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
20471
20472         test-linkat: avoid failed assertion on "other" architectures
20473         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
20474         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
20475         sparc: https://bugs.launchpad.net/bugs/591968
20476
20477 2010-06-11  Jim Meyering  <meyering@redhat.com>
20478
20479         printf.m4: avoid autoconf's "Expanded Before Required" warning
20480         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
20481         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
20482         autoconf warning.
20483
20484 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
20485
20486         Replacement header templates are now named with ".in", not "_".
20487         * doc/gnulib-intro.texi: Correct.
20488
20489 2010-06-10  Jim Meyering  <meyering@redhat.com>
20490
20491         inttostr-tests: depend on snprintf, not snprintf-posix
20492         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
20493         snprintf-posix, to avoid this aclocal failure:
20494           missing file gnulib-tests/vasnprintf.c
20495           configure.ac:45: error: expected source file, required through \
20496           AC_LIBSOURCES, not found
20497
20498 2010-06-10  Jim Meyering  <meyering@redhat.com>
20499
20500         inttostr: add a new function, inttostr, and tests
20501         The namesake function was not available.  The existence of the
20502         template file, inttostr.c makes its addition nontrivial.
20503         * lib/anytostr.c: Rename from inttostr.c.
20504         (anytostr): Rename from inttostr.
20505         * lib/inttostr.c: New file.
20506         * modules/inttostr (Files): Add anytostr.c.
20507         (Makefile.am): Set lib_SOURCES instead of ...
20508         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
20509         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
20510         * lib/offtostr.c: Likewise.
20511         * lib/uinttostr.c: Likewise.
20512         * lib/umaxtostr.c: Likewise.
20513         * modules/inttostr-tests: New file.
20514         * tests/test-inttostr.c: New file.  Test these functions.
20515
20516 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
20517             Bruno Haible  <bruno@clisp.org>
20518
20519         Add "Extending Gnulib" chapter to manual.
20520         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
20521         chapter.
20522         (Extending Gnulib): New chapter.
20523         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
20524         chapter.
20525
20526 2010-06-09  Bruno Haible  <bruno@clisp.org>
20527
20528         Avoid relocwrapper link errors due to gnulib replacement functions.
20529         * lib/areadlink.c: Use the system's malloc, realloc functions.
20530         (areadlink): Set errno to ENOMEM explicitly.
20531         * modules/areadlink (Depends-on): Remove malloc-posix.
20532         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20533
20534 2010-06-09  Bruno Haible  <bruno@clisp.org>
20535
20536         Avoid relocwrapper link errors due to gnulib replacement functions.
20537         * lib/canonicalize-lgpl.c: Use the system's malloc function.
20538         * lib/malloca.c: Likewise.
20539         * lib/relocatable.c: Likewise.
20540         * lib/progreloc.c: Use the system's malloc, sprintf functions.
20541         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
20542         * lib/setenv.c: Use the system's malloc, realloc functions.
20543         * lib/strerror.c: Use the system's sprintf function.
20544         Reported by Ben Pfaff <blp@cs.stanford.edu>.
20545
20546 2010-06-04  Bruno Haible  <bruno@clisp.org>
20547
20548         Prefer documented low-level autoconf macro names.
20549         * m4/lib-link.m4: Use m4_translit instead of translit.
20550         * m4/environ.m4: Likewise.
20551         * m4/mathfunc.m4: Likewise.
20552         * m4/onceonly.m4: Likewise.
20553         * m4/stdint.m4: Likewise.
20554         Suggested by Eric Blake.
20555
20556 2010-06-04  Martin Lambers  <marlam@marlam.de>
20557             Bruno Haible  <bruno@clisp.org>
20558
20559         havelib: Allow library names with '+' characters.
20560         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
20561         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
20562
20563 2010-06-09  Bruno Haible  <bruno@clisp.org>
20564
20565         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
20566         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
20567         realloc failed.
20568
20569 2010-06-08  Peter Simons  <simons@cryp.to>
20570
20571         maint.mk: make the news-check rule more configurable
20572         * top/maint.mk (news-check-lines-spec): New variable.
20573         (news-check): Use "sed -n 1,10p" in place of "head".
20574
20575 2010-06-07  Jim Meyering  <meyering@redhat.com>
20576
20577         do-release-commit-and-tag: fix typo in --help
20578         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
20579
20580         regex: avoid new dead-code warning with gcc-4.6.0
20581         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
20582         if-block containing a while-loop.  It's been unused for at least
20583         5 years.
20584
20585 2010-06-05  Bruno Haible  <bruno@clisp.org>
20586
20587         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
20588         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
20589
20590 2010-06-04  Bruno Haible  <bruno@clisp.org>
20591
20592         Update to GNU gettext 0.18.1.
20593         * modules/gettext (configure.ac): Require gettext infrastructure from
20594         version 0.18.1.
20595
20596 2010-06-03  Bruno Haible  <bruno@clisp.org>
20597
20598         Don't use AC_LIBOBJ with file names in subdirectories.
20599         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
20600         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
20601         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
20602         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
20603         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
20604         gl_LIBUNISTRING_LIBSOURCE.
20605         (Makefile.am): Augment lib_SOURCES here, conditionally.
20606         * NEWS: Drop requirement for Automake option 'subdir-objects'.
20607
20608 2010-06-03  Bruno Haible  <bruno@clisp.org>
20609
20610         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
20611         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
20612         expansion does not end with a newline.
20613         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
20614         unnecessary newline.
20615
20616 2010-06-03  Bruno Haible  <bruno@clisp.org>
20617
20618         Reduce dependencies.
20619         * tests/test-quotearg.h: New file, extracted from
20620         tests/test-quotearg.c.
20621         * tests/test-quotearg-simple.c: New file, extracted from
20622         tests/test-quotearg.c.
20623         * tests/test-quotearg.c: Don't include <ctype.h>.
20624         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
20625         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
20626         use_quote_double_quotes, use_quotearg_colon): Moved to
20627         tests/test-quotearg.h.
20628         (results_g, flag_results, custom_quotes, custom_results): Moved
20629         to tests/test-quotearg-simple.c.
20630         (main): Moved the part that does not depend on gettext to
20631         tests/test-quotearg-simple.c. Return 77 if the test cannot be
20632         performed.
20633         * modules/quotearg-simple: New file.
20634         * modules/quotearg-simple-tests: New file.
20635         * modules/quotearg (Depends-on): Add quotearg-simple.
20636         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
20637         (Files): Add tests/test-quotearg.h.
20638         Reported by Paolo Bonzini.
20639
20640 2010-06-03  Bruno Haible  <bruno@clisp.org>
20641
20642         Reduce dependencies.
20643         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
20644
20645 2010-06-03  Bruno Haible  <bruno@clisp.org>
20646
20647         time: Undefine more broken macros.
20648         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
20649         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
20650         Reported by Eric Blake.
20651
20652 2010-06-03  Bruno Haible  <bruno@clisp.org>
20653
20654         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
20655         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
20656         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
20657         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
20658         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
20659         Reported by Ludovic Courtès <ludo@gnu.org>.
20660
20661 2010-06-02  Eric Blake  <eblake@redhat.com>
20662
20663         time: work with mingw + pthreads-win32 library
20664         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
20665         if timespec is defined only in pthread.h.
20666         * modules/time (Makefile.am): Substitute it.
20667         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
20668         <pthread.h>, when needed.
20669         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
20670         from the library.
20671
20672 2010-05-31  Bruno Haible  <bruno@clisp.org>
20673
20674         Avoid expanding two macros in the wrong order.
20675         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
20676         gl_LIBUNISTRING if it is defined.
20677         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
20678         autoconf >= 2.64.
20679         Reported by Ludovic Courtès <ludo@gnu.org>.
20680
20681 2010-05-27  Jim Meyering  <meyering@redhat.com>
20682
20683         maint.mk: also prohibit "#undef" of always-defined symbols
20684         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
20685         Allow more than one space before the symbol name.
20686         (sc_prohibit_always-defined_macros): Use grep's -E, now that
20687         the regexp uses alternation.
20688
20689 2010-05-26  Eric Blake  <eblake@redhat.com>
20690
20691         maint.mk: avoid echo -e
20692         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
20693         Convert all uses of echo -* to printf.
20694         Reported by Matthias Bolte.
20695
20696 2010-05-25  Bruno Haible  <bruno@clisp.org>
20697
20698         Update to GNU gettext 0.18, part 2.
20699         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
20700         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
20701
20702 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20703
20704         Add missing include in test-pwrite.c.
20705         * tests/test-pwrite.c: Include string.h, for strcmp.
20706
20707 2010-05-24  Bruno Haible  <bruno@clisp.org>
20708
20709         * NEWS: Mention requirement for Automake option 'subdir-objects'.
20710
20711 2010-05-24  Bruno Haible  <bruno@clisp.org>
20712
20713         Don't use conversion with transliteration in u{8,16,32}_strcoll.
20714         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
20715         iconveh_error argument.
20716         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
20717         U_STRCONV_TO_LOCALE.
20718         * lib/unistr/u16-strcoll.c: Likewise.
20719         * lib/unistr/u32-strcoll.c: Likewise.
20720         * modules/unistr/u8-strcoll (Depends-on): Add
20721         uniconv/u8-strconv-to-enc, localcharset. Remove
20722         uniconv/u8-strconv-to-locale.
20723         (configure.ac): Bump version number.
20724         * modules/unistr/u16-strcoll (Depends-on): Add
20725         uniconv/u16-strconv-to-enc, localcharset. Remove
20726         uniconv/u16-strconv-to-locale.
20727         (configure.ac): Bump version number.
20728         * modules/unistr/u32-strcoll (Depends-on): Add
20729         uniconv/u32-strconv-to-enc, localcharset. Remove
20730         uniconv/u32-strconv-to-locale.
20731         (configure.ac): Bump version number.
20732
20733 2010-05-24  Bruno Haible  <bruno@clisp.org>
20734
20735         Avoid a test failure on NetBSD 5.0.
20736         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
20737         an iconv() bug.
20738
20739 2010-05-24  Bruno Haible  <bruno@clisp.org>
20740
20741         Adjust #include directive style.
20742         * modules/regex (Includes): Recommend to write <regex.h>.
20743
20744 2010-05-24  Bruno Haible  <bruno@clisp.org>
20745
20746         regex: Don't require alloca.
20747         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
20748         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
20749         only inside if (0).
20750
20751 2010-05-23  Jim Meyering  <meyering@redhat.com>
20752
20753         test-renameat.c: include <sys/stat.h>
20754         * tests/test-renameat.c: Include <sys/stat.h>; required for
20755         definition of S_IS* macros.
20756
20757 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
20758
20759         Update maintainer documentation for 'relocatable-prog' module.
20760         * doc/relocatable-maint.texi: Update.
20761         Comments by Bruno Haible.
20762
20763 2010-05-23  Bruno Haible  <bruno@clisp.org>
20764
20765         git-merge-changelog: Enable --split-merged-entry by default.
20766         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
20767         (usage): Don't mention this option any more.
20768         Reported by Ralf Wildenhues.
20769
20770 2010-05-23  Jim Meyering  <meyering@redhat.com>
20771
20772         test-pwrite: do not leave behind a test file named "out"
20773         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
20774         The trivial-looking use of init.sh is really necessary.
20775         It ensures that the temporary file, "out", is created in
20776         a temporary directory, and removed upon termination.
20777         * tests/test-pwrite.sh: Re-add file.
20778         * modules/pwrite-tests: Reference it.
20779
20780 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20781
20782         Fix output redirection buglet in init.sh.
20783         * tests/init.sh: Fix redirection of stderr.
20784
20785 2010-05-20  Simon Josefsson  <simon@josefsson.org>
20786
20787         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
20788
20789 2010-05-17  Simon Josefsson  <simon@josefsson.org>
20790
20791         * modules/valgrind-tests: New file.
20792         * m4/valgrind-tests.m4: New file.
20793         * doc/valgrind-tests.texi: New file.
20794         * doc/gnulib.texi (Running self-tests under valgrind): New
20795         section.
20796
20797 2010-05-19  Bruno Haible  <bruno@clisp.org>
20798
20799         Clean up dead code in recent commit.
20800         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
20801         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
20802         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
20803         Suggested by Paolo Bonzini.
20804
20805 2010-05-19  Bruno Haible  <bruno@clisp.org>
20806
20807         Avoid valgrind error reports from libunistring.
20808         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
20809         * modules/libunistring (Files): Add it.
20810         * modules/libunistring-optional (Files): Likewise.
20811
20812 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
20813             Bruno Haible  <bruno@clisp.org>
20814
20815         New module 'libunistring-optional'.
20816         * modules/libunistring-optional: New file.
20817         * m4/libunistring-base.m4: New file.
20818         * m4/libunistring-optional.m4: New file.
20819         * lib/unicase.in.h: Renamed from lib/unicase.h.
20820         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
20821         * lib/unictype.in.h: Renamed from lib/unictype.h.
20822         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
20823         * lib/uniname.in.h: Renamed from lib/uniname.h.
20824         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
20825         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
20826         * lib/unistr.in.h: Renamed from lib/unistr.h.
20827         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
20828         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
20829         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
20830         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
20831         gl_LIBUNISTRING. If the library was found, determine the installed
20832         version and set LIBUNISTRING_VERSION.
20833         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
20834         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
20835         handle a configuration option --with-included-libunistring.
20836         * modules/libunistring (Files): Add m4/absolute-header.m4.
20837         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
20838         Add m4/libunistring-base.m4.
20839         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20840         (Makefile.am): Build unicase.h from unicase.in.h.
20841         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
20842         Add m4/libunistring-base.m4.
20843         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20844         (Makefile.am): Build uniconv.h from uniconv.in.h.
20845         * modules/unictype/base (Files): Use unictype.in.h instead of
20846         unictype.h. Add m4/libunistring-base.m4.
20847         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20848         (Makefile.am): Build unictype.h from unictype.in.h.
20849         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
20850         Add m4/libunistring-base.m4.
20851         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20852         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
20853         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
20854         Add m4/libunistring-base.m4.
20855         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20856         (Makefile.am): Build uniname.h from uniname.in.h.
20857         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
20858         Add m4/libunistring-base.m4.
20859         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20860         (Makefile.am): Build uninorm.h from uninorm.in.h.
20861         * modules/unistdio/base (Files): Use unistdio.in.h instead of
20862         unistdio.h. Add m4/libunistring-base.m4.
20863         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20864         (Makefile.am): Build unistdio.h from unistdio.in.h.
20865         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
20866         Add m4/libunistring-base.m4.
20867         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20868         (Makefile.am): Build unistr.h from unistr.in.h.
20869         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
20870         Add m4/libunistring-base.m4.
20871         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20872         (Makefile.am): Build unitypes.h from unitypes.in.h.
20873         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
20874         Add m4/libunistring-base.m4.
20875         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20876         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
20877         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
20878         uniwidth.h. Add m4/libunistring-base.m4.
20879         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
20880         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
20881         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
20882         instead of augmenting lib_SOURCES.
20883         * modules/unicase/empty-suffix-context: Likewise.
20884         * modules/unicase/locale-language: Likewise.
20885         * modules/unicase/tolower: Likewise.
20886         * modules/unicase/totitle: Likewise.
20887         * modules/unicase/toupper: Likewise.
20888         * modules/unicase/u8-casecmp: Likewise.
20889         * modules/unicase/u8-casecoll: Likewise.
20890         * modules/unicase/u8-casefold: Likewise.
20891         * modules/unicase/u8-casexfrm: Likewise.
20892         * modules/unicase/u8-ct-casefold: Likewise.
20893         * modules/unicase/u8-ct-tolower: Likewise.
20894         * modules/unicase/u8-ct-totitle: Likewise.
20895         * modules/unicase/u8-ct-toupper: Likewise.
20896         * modules/unicase/u8-is-cased: Likewise.
20897         * modules/unicase/u8-is-casefolded: Likewise.
20898         * modules/unicase/u8-is-lowercase: Likewise.
20899         * modules/unicase/u8-is-titlecase: Likewise.
20900         * modules/unicase/u8-is-uppercase: Likewise.
20901         * modules/unicase/u8-prefix-context: Likewise.
20902         * modules/unicase/u8-suffix-context: Likewise.
20903         * modules/unicase/u8-tolower: Likewise.
20904         * modules/unicase/u8-totitle: Likewise.
20905         * modules/unicase/u8-toupper: Likewise.
20906         * modules/unicase/u16-casecmp: Likewise.
20907         * modules/unicase/u16-casecoll: Likewise.
20908         * modules/unicase/u16-casefold: Likewise.
20909         * modules/unicase/u16-casexfrm: Likewise.
20910         * modules/unicase/u16-ct-casefold: Likewise.
20911         * modules/unicase/u16-ct-tolower: Likewise.
20912         * modules/unicase/u16-ct-totitle: Likewise.
20913         * modules/unicase/u16-ct-toupper: Likewise.
20914         * modules/unicase/u16-is-cased: Likewise.
20915         * modules/unicase/u16-is-casefolded: Likewise.
20916         * modules/unicase/u16-is-lowercase: Likewise.
20917         * modules/unicase/u16-is-titlecase: Likewise.
20918         * modules/unicase/u16-is-uppercase: Likewise.
20919         * modules/unicase/u16-prefix-context: Likewise.
20920         * modules/unicase/u16-suffix-context: Likewise.
20921         * modules/unicase/u16-tolower: Likewise.
20922         * modules/unicase/u16-totitle: Likewise.
20923         * modules/unicase/u16-toupper: Likewise.
20924         * modules/unicase/u32-casecmp: Likewise.
20925         * modules/unicase/u32-casecoll: Likewise.
20926         * modules/unicase/u32-casefold: Likewise.
20927         * modules/unicase/u32-casexfrm: Likewise.
20928         * modules/unicase/u32-ct-casefold: Likewise.
20929         * modules/unicase/u32-ct-tolower: Likewise.
20930         * modules/unicase/u32-ct-totitle: Likewise.
20931         * modules/unicase/u32-ct-toupper: Likewise.
20932         * modules/unicase/u32-is-cased: Likewise.
20933         * modules/unicase/u32-is-casefolded: Likewise.
20934         * modules/unicase/u32-is-lowercase: Likewise.
20935         * modules/unicase/u32-is-titlecase: Likewise.
20936         * modules/unicase/u32-is-uppercase: Likewise.
20937         * modules/unicase/u32-prefix-context: Likewise.
20938         * modules/unicase/u32-suffix-context: Likewise.
20939         * modules/unicase/u32-tolower: Likewise.
20940         * modules/unicase/u32-totitle: Likewise.
20941         * modules/unicase/u32-toupper: Likewise.
20942         * modules/unicase/ulc-casecmp: Likewise.
20943         * modules/unicase/ulc-casecoll: Likewise.
20944         * modules/unicase/ulc-casexfrm: Likewise.
20945         * modules/uniconv/u8-conv-from-enc: Likewise.
20946         * modules/uniconv/u8-conv-to-enc: Likewise.
20947         * modules/uniconv/u8-strconv-from-enc: Likewise.
20948         * modules/uniconv/u8-strconv-from-locale: Likewise.
20949         * modules/uniconv/u8-strconv-to-enc: Likewise.
20950         * modules/uniconv/u8-strconv-to-locale: Likewise.
20951         * modules/uniconv/u16-conv-from-enc: Likewise.
20952         * modules/uniconv/u16-conv-to-enc: Likewise.
20953         * modules/uniconv/u16-strconv-from-enc: Likewise.
20954         * modules/uniconv/u16-strconv-from-locale: Likewise.
20955         * modules/uniconv/u16-strconv-to-enc: Likewise.
20956         * modules/uniconv/u16-strconv-to-locale: Likewise.
20957         * modules/uniconv/u32-conv-from-enc: Likewise.
20958         * modules/uniconv/u32-conv-to-enc: Likewise.
20959         * modules/uniconv/u32-strconv-from-enc: Likewise.
20960         * modules/uniconv/u32-strconv-from-locale: Likewise.
20961         * modules/uniconv/u32-strconv-to-enc: Likewise.
20962         * modules/uniconv/u32-strconv-to-locale: Likewise.
20963         * modules/unictype/bidicategory-byname: Likewise.
20964         * modules/unictype/bidicategory-name: Likewise.
20965         * modules/unictype/bidicategory-of: Likewise.
20966         * modules/unictype/bidicategory-test: Likewise.
20967         * modules/unictype/block-list: Likewise.
20968         * modules/unictype/block-test: Likewise.
20969         * modules/unictype/category-C: Likewise.
20970         * modules/unictype/category-Cc: Likewise.
20971         * modules/unictype/category-Cf: Likewise.
20972         * modules/unictype/category-Cn: Likewise.
20973         * modules/unictype/category-Co: Likewise.
20974         * modules/unictype/category-Cs: Likewise.
20975         * modules/unictype/category-L: Likewise.
20976         * modules/unictype/category-Ll: Likewise.
20977         * modules/unictype/category-Lm: Likewise.
20978         * modules/unictype/category-Lo: Likewise.
20979         * modules/unictype/category-Lt: Likewise.
20980         * modules/unictype/category-Lu: Likewise.
20981         * modules/unictype/category-M: Likewise.
20982         * modules/unictype/category-Mc: Likewise.
20983         * modules/unictype/category-Me: Likewise.
20984         * modules/unictype/category-Mn: Likewise.
20985         * modules/unictype/category-N: Likewise.
20986         * modules/unictype/category-Nd: Likewise.
20987         * modules/unictype/category-Nl: Likewise.
20988         * modules/unictype/category-No: Likewise.
20989         * modules/unictype/category-P: Likewise.
20990         * modules/unictype/category-Pc: Likewise.
20991         * modules/unictype/category-Pd: Likewise.
20992         * modules/unictype/category-Pe: Likewise.
20993         * modules/unictype/category-Pf: Likewise.
20994         * modules/unictype/category-Pi: Likewise.
20995         * modules/unictype/category-Po: Likewise.
20996         * modules/unictype/category-Ps: Likewise.
20997         * modules/unictype/category-S: Likewise.
20998         * modules/unictype/category-Sc: Likewise.
20999         * modules/unictype/category-Sk: Likewise.
21000         * modules/unictype/category-Sm: Likewise.
21001         * modules/unictype/category-So: Likewise.
21002         * modules/unictype/category-Z: Likewise.
21003         * modules/unictype/category-Zl: Likewise.
21004         * modules/unictype/category-Zp: Likewise.
21005         * modules/unictype/category-Zs: Likewise.
21006         * modules/unictype/category-and: Likewise.
21007         * modules/unictype/category-and-not: Likewise.
21008         * modules/unictype/category-byname: Likewise.
21009         * modules/unictype/category-name: Likewise.
21010         * modules/unictype/category-none: Likewise.
21011         * modules/unictype/category-of: Likewise.
21012         * modules/unictype/category-or: Likewise.
21013         * modules/unictype/category-test: Likewise.
21014         * modules/unictype/combining-class: Likewise.
21015         * modules/unictype/ctype-alnum: Likewise.
21016         * modules/unictype/ctype-alpha: Likewise.
21017         * modules/unictype/ctype-blank: Likewise.
21018         * modules/unictype/ctype-cntrl: Likewise.
21019         * modules/unictype/ctype-digit: Likewise.
21020         * modules/unictype/ctype-graph: Likewise.
21021         * modules/unictype/ctype-lower: Likewise.
21022         * modules/unictype/ctype-print: Likewise.
21023         * modules/unictype/ctype-punct: Likewise.
21024         * modules/unictype/ctype-space: Likewise.
21025         * modules/unictype/ctype-upper: Likewise.
21026         * modules/unictype/ctype-xdigit: Likewise.
21027         * modules/unictype/decimal-digit: Likewise.
21028         * modules/unictype/digit: Likewise.
21029         * modules/unictype/mirror: Likewise.
21030         * modules/unictype/numeric: Likewise.
21031         * modules/unictype/property-alphabetic: Likewise.
21032         * modules/unictype/property-ascii-hex-digit: Likewise.
21033         * modules/unictype/property-bidi-arabic-digit: Likewise.
21034         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
21035         * modules/unictype/property-bidi-block-separator: Likewise.
21036         * modules/unictype/property-bidi-boundary-neutral: Likewise.
21037         * modules/unictype/property-bidi-common-separator: Likewise.
21038         * modules/unictype/property-bidi-control: Likewise.
21039         * modules/unictype/property-bidi-embedding-or-override: Likewise.
21040         * modules/unictype/property-bidi-eur-num-separator: Likewise.
21041         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
21042         * modules/unictype/property-bidi-european-digit: Likewise.
21043         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
21044         * modules/unictype/property-bidi-left-to-right: Likewise.
21045         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
21046         * modules/unictype/property-bidi-other-neutral: Likewise.
21047         * modules/unictype/property-bidi-pdf: Likewise.
21048         * modules/unictype/property-bidi-segment-separator: Likewise.
21049         * modules/unictype/property-bidi-whitespace: Likewise.
21050         * modules/unictype/property-byname: Likewise.
21051         * modules/unictype/property-combining: Likewise.
21052         * modules/unictype/property-composite: Likewise.
21053         * modules/unictype/property-currency-symbol: Likewise.
21054         * modules/unictype/property-dash: Likewise.
21055         * modules/unictype/property-decimal-digit: Likewise.
21056         * modules/unictype/property-default-ignorable-code-point: Likewise.
21057         * modules/unictype/property-deprecated: Likewise.
21058         * modules/unictype/property-diacritic: Likewise.
21059         * modules/unictype/property-extender: Likewise.
21060         * modules/unictype/property-format-control: Likewise.
21061         * modules/unictype/property-grapheme-base: Likewise.
21062         * modules/unictype/property-grapheme-extend: Likewise.
21063         * modules/unictype/property-grapheme-link: Likewise.
21064         * modules/unictype/property-hex-digit: Likewise.
21065         * modules/unictype/property-hyphen: Likewise.
21066         * modules/unictype/property-id-continue: Likewise.
21067         * modules/unictype/property-id-start: Likewise.
21068         * modules/unictype/property-ideographic: Likewise.
21069         * modules/unictype/property-ids-binary-operator: Likewise.
21070         * modules/unictype/property-ids-trinary-operator: Likewise.
21071         * modules/unictype/property-ignorable-control: Likewise.
21072         * modules/unictype/property-iso-control: Likewise.
21073         * modules/unictype/property-join-control: Likewise.
21074         * modules/unictype/property-left-of-pair: Likewise.
21075         * modules/unictype/property-line-separator: Likewise.
21076         * modules/unictype/property-logical-order-exception: Likewise.
21077         * modules/unictype/property-lowercase: Likewise.
21078         * modules/unictype/property-math: Likewise.
21079         * modules/unictype/property-non-break: Likewise.
21080         * modules/unictype/property-not-a-character: Likewise.
21081         * modules/unictype/property-numeric: Likewise.
21082         * modules/unictype/property-other-alphabetic: Likewise.
21083         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
21084         * modules/unictype/property-other-grapheme-extend: Likewise.
21085         * modules/unictype/property-other-id-continue: Likewise.
21086         * modules/unictype/property-other-id-start: Likewise.
21087         * modules/unictype/property-other-lowercase: Likewise.
21088         * modules/unictype/property-other-math: Likewise.
21089         * modules/unictype/property-other-uppercase: Likewise.
21090         * modules/unictype/property-paired-punctuation: Likewise.
21091         * modules/unictype/property-paragraph-separator: Likewise.
21092         * modules/unictype/property-pattern-syntax: Likewise.
21093         * modules/unictype/property-pattern-white-space: Likewise.
21094         * modules/unictype/property-private-use: Likewise.
21095         * modules/unictype/property-punctuation: Likewise.
21096         * modules/unictype/property-quotation-mark: Likewise.
21097         * modules/unictype/property-radical: Likewise.
21098         * modules/unictype/property-sentence-terminal: Likewise.
21099         * modules/unictype/property-soft-dotted: Likewise.
21100         * modules/unictype/property-space: Likewise.
21101         * modules/unictype/property-terminal-punctuation: Likewise.
21102         * modules/unictype/property-test: Likewise.
21103         * modules/unictype/property-titlecase: Likewise.
21104         * modules/unictype/property-unassigned-code-value: Likewise.
21105         * modules/unictype/property-unified-ideograph: Likewise.
21106         * modules/unictype/property-uppercase: Likewise.
21107         * modules/unictype/property-variation-selector: Likewise.
21108         * modules/unictype/property-white-space: Likewise.
21109         * modules/unictype/property-xid-continue: Likewise.
21110         * modules/unictype/property-xid-start: Likewise.
21111         * modules/unictype/property-zero-width: Likewise.
21112         * modules/unictype/scripts: Likewise.
21113         * modules/unictype/syntax-c-ident: Likewise.
21114         * modules/unictype/syntax-c-whitespace: Likewise.
21115         * modules/unictype/syntax-java-ident: Likewise.
21116         * modules/unictype/syntax-java-whitespace: Likewise.
21117         * modules/unilbrk/u8-possible-linebreaks: Likewise.
21118         * modules/unilbrk/u8-width-linebreaks: Likewise.
21119         * modules/unilbrk/u16-possible-linebreaks: Likewise.
21120         * modules/unilbrk/u16-width-linebreaks: Likewise.
21121         * modules/unilbrk/u32-possible-linebreaks: Likewise.
21122         * modules/unilbrk/u32-width-linebreaks: Likewise.
21123         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
21124         * modules/unilbrk/ulc-width-linebreaks: Likewise.
21125         * modules/uniname/uniname: Likewise.
21126         * modules/uninorm/canonical-decomposition: Likewise.
21127         * modules/uninorm/composition: Likewise.
21128         * modules/uninorm/decomposing-form: Likewise.
21129         * modules/uninorm/decomposition: Likewise.
21130         * modules/uninorm/filter: Likewise.
21131         * modules/uninorm/nfc: Likewise.
21132         * modules/uninorm/nfd: Likewise.
21133         * modules/uninorm/nfkc: Likewise.
21134         * modules/uninorm/nfkd: Likewise.
21135         * modules/uninorm/u8-normalize: Likewise.
21136         * modules/uninorm/u8-normcmp: Likewise.
21137         * modules/uninorm/u8-normcoll: Likewise.
21138         * modules/uninorm/u8-normxfrm: Likewise.
21139         * modules/uninorm/u16-normalize: Likewise.
21140         * modules/uninorm/u16-normcmp: Likewise.
21141         * modules/uninorm/u16-normcoll: Likewise.
21142         * modules/uninorm/u16-normxfrm: Likewise.
21143         * modules/uninorm/u32-normalize: Likewise.
21144         * modules/uninorm/u32-normcmp: Likewise.
21145         * modules/uninorm/u32-normcoll: Likewise.
21146         * modules/uninorm/u32-normxfrm: Likewise.
21147         * modules/unistdio/u8-asnprintf: Likewise.
21148         * modules/unistdio/u8-asprintf: Likewise.
21149         * modules/unistdio/u8-snprintf: Likewise.
21150         * modules/unistdio/u8-sprintf: Likewise.
21151         * modules/unistdio/u8-u8-asnprintf: Likewise.
21152         * modules/unistdio/u8-u8-asprintf: Likewise.
21153         * modules/unistdio/u8-u8-snprintf: Likewise.
21154         * modules/unistdio/u8-u8-sprintf: Likewise.
21155         * modules/unistdio/u8-u8-vasnprintf: Likewise.
21156         * modules/unistdio/u8-u8-vasprintf: Likewise.
21157         * modules/unistdio/u8-u8-vsnprintf: Likewise.
21158         * modules/unistdio/u8-u8-vsprintf: Likewise.
21159         * modules/unistdio/u8-vasnprintf: Likewise.
21160         * modules/unistdio/u8-vasprintf: Likewise.
21161         * modules/unistdio/u8-vsnprintf: Likewise.
21162         * modules/unistdio/u8-vsprintf: Likewise.
21163         * modules/unistdio/u16-asnprintf: Likewise.
21164         * modules/unistdio/u16-asprintf: Likewise.
21165         * modules/unistdio/u16-snprintf: Likewise.
21166         * modules/unistdio/u16-sprintf: Likewise.
21167         * modules/unistdio/u16-u16-asnprintf: Likewise.
21168         * modules/unistdio/u16-u16-asprintf: Likewise.
21169         * modules/unistdio/u16-u16-snprintf: Likewise.
21170         * modules/unistdio/u16-u16-sprintf: Likewise.
21171         * modules/unistdio/u16-u16-vasnprintf: Likewise.
21172         * modules/unistdio/u16-u16-vasprintf: Likewise.
21173         * modules/unistdio/u16-u16-vsnprintf: Likewise.
21174         * modules/unistdio/u16-u16-vsprintf: Likewise.
21175         * modules/unistdio/u16-vasnprintf: Likewise.
21176         * modules/unistdio/u16-vasprintf: Likewise.
21177         * modules/unistdio/u16-vsnprintf: Likewise.
21178         * modules/unistdio/u16-vsprintf: Likewise.
21179         * modules/unistdio/u32-asnprintf: Likewise.
21180         * modules/unistdio/u32-asprintf: Likewise.
21181         * modules/unistdio/u32-snprintf: Likewise.
21182         * modules/unistdio/u32-sprintf: Likewise.
21183         * modules/unistdio/u32-u32-asnprintf: Likewise.
21184         * modules/unistdio/u32-u32-asprintf: Likewise.
21185         * modules/unistdio/u32-u32-snprintf: Likewise.
21186         * modules/unistdio/u32-u32-sprintf: Likewise.
21187         * modules/unistdio/u32-u32-vasnprintf: Likewise.
21188         * modules/unistdio/u32-u32-vasprintf: Likewise.
21189         * modules/unistdio/u32-u32-vsnprintf: Likewise.
21190         * modules/unistdio/u32-u32-vsprintf: Likewise.
21191         * modules/unistdio/u32-vasnprintf: Likewise.
21192         * modules/unistdio/u32-vasprintf: Likewise.
21193         * modules/unistdio/u32-vsnprintf: Likewise.
21194         * modules/unistdio/u32-vsprintf: Likewise.
21195         * modules/unistdio/ulc-asnprintf: Likewise.
21196         * modules/unistdio/ulc-asprintf: Likewise.
21197         * modules/unistdio/ulc-fprintf: Likewise.
21198         * modules/unistdio/ulc-snprintf: Likewise.
21199         * modules/unistdio/ulc-sprintf: Likewise.
21200         * modules/unistdio/ulc-vasnprintf: Likewise.
21201         * modules/unistdio/ulc-vasprintf: Likewise.
21202         * modules/unistdio/ulc-vfprintf: Likewise.
21203         * modules/unistdio/ulc-vsnprintf: Likewise.
21204         * modules/unistdio/ulc-vsprintf: Likewise.
21205         * modules/unistr/u8-check: Likewise.
21206         * modules/unistr/u8-chr: Likewise.
21207         * modules/unistr/u8-cmp: Likewise.
21208         * modules/unistr/u8-cmp2: Likewise.
21209         * modules/unistr/u8-cpy: Likewise.
21210         * modules/unistr/u8-cpy-alloc: Likewise.
21211         * modules/unistr/u8-endswith: Likewise.
21212         * modules/unistr/u8-mblen: Likewise.
21213         * modules/unistr/u8-mbsnlen: Likewise.
21214         * modules/unistr/u8-mbtouc: Likewise.
21215         * modules/unistr/u8-mbtouc-unsafe: Likewise.
21216         * modules/unistr/u8-mbtoucr: Likewise.
21217         * modules/unistr/u8-move: Likewise.
21218         * modules/unistr/u8-next: Likewise.
21219         * modules/unistr/u8-prev: Likewise.
21220         * modules/unistr/u8-set: Likewise.
21221         * modules/unistr/u8-startswith: Likewise.
21222         * modules/unistr/u8-stpcpy: Likewise.
21223         * modules/unistr/u8-stpncpy: Likewise.
21224         * modules/unistr/u8-strcat: Likewise.
21225         * modules/unistr/u8-strchr: Likewise.
21226         * modules/unistr/u8-strcmp: Likewise.
21227         * modules/unistr/u8-strcoll: Likewise.
21228         * modules/unistr/u8-strcpy: Likewise.
21229         * modules/unistr/u8-strcspn: Likewise.
21230         * modules/unistr/u8-strdup: Likewise.
21231         * modules/unistr/u8-strlen: Likewise.
21232         * modules/unistr/u8-strmblen: Likewise.
21233         * modules/unistr/u8-strmbtouc: Likewise.
21234         * modules/unistr/u8-strncat: Likewise.
21235         * modules/unistr/u8-strncmp: Likewise.
21236         * modules/unistr/u8-strncpy: Likewise.
21237         * modules/unistr/u8-strnlen: Likewise.
21238         * modules/unistr/u8-strpbrk: Likewise.
21239         * modules/unistr/u8-strrchr: Likewise.
21240         * modules/unistr/u8-strspn: Likewise.
21241         * modules/unistr/u8-strstr: Likewise.
21242         * modules/unistr/u8-strtok: Likewise.
21243         * modules/unistr/u8-to-u16: Likewise.
21244         * modules/unistr/u8-to-u32: Likewise.
21245         * modules/unistr/u8-uctomb: Likewise.
21246         * modules/unistr/u16-check: Likewise.
21247         * modules/unistr/u16-chr: Likewise.
21248         * modules/unistr/u16-cmp: Likewise.
21249         * modules/unistr/u16-cmp2: Likewise.
21250         * modules/unistr/u16-cpy: Likewise.
21251         * modules/unistr/u16-cpy-alloc: Likewise.
21252         * modules/unistr/u16-endswith: Likewise.
21253         * modules/unistr/u16-mblen: Likewise.
21254         * modules/unistr/u16-mbsnlen: Likewise.
21255         * modules/unistr/u16-mbtouc: Likewise.
21256         * modules/unistr/u16-mbtouc-unsafe: Likewise.
21257         * modules/unistr/u16-mbtoucr: Likewise.
21258         * modules/unistr/u16-move: Likewise.
21259         * modules/unistr/u16-next: Likewise.
21260         * modules/unistr/u16-prev: Likewise.
21261         * modules/unistr/u16-set: Likewise.
21262         * modules/unistr/u16-startswith: Likewise.
21263         * modules/unistr/u16-stpcpy: Likewise.
21264         * modules/unistr/u16-stpncpy: Likewise.
21265         * modules/unistr/u16-strcat: Likewise.
21266         * modules/unistr/u16-strchr: Likewise.
21267         * modules/unistr/u16-strcmp: Likewise.
21268         * modules/unistr/u16-strcoll: Likewise.
21269         * modules/unistr/u16-strcpy: Likewise.
21270         * modules/unistr/u16-strcspn: Likewise.
21271         * modules/unistr/u16-strdup: Likewise.
21272         * modules/unistr/u16-strlen: Likewise.
21273         * modules/unistr/u16-strmblen: Likewise.
21274         * modules/unistr/u16-strmbtouc: Likewise.
21275         * modules/unistr/u16-strncat: Likewise.
21276         * modules/unistr/u16-strncmp: Likewise.
21277         * modules/unistr/u16-strncpy: Likewise.
21278         * modules/unistr/u16-strnlen: Likewise.
21279         * modules/unistr/u16-strpbrk: Likewise.
21280         * modules/unistr/u16-strrchr: Likewise.
21281         * modules/unistr/u16-strspn: Likewise.
21282         * modules/unistr/u16-strstr: Likewise.
21283         * modules/unistr/u16-strtok: Likewise.
21284         * modules/unistr/u16-to-u32: Likewise.
21285         * modules/unistr/u16-to-u8: Likewise.
21286         * modules/unistr/u16-uctomb: Likewise.
21287         * modules/unistr/u32-check: Likewise.
21288         * modules/unistr/u32-chr: Likewise.
21289         * modules/unistr/u32-cmp: Likewise.
21290         * modules/unistr/u32-cmp2: Likewise.
21291         * modules/unistr/u32-cpy: Likewise.
21292         * modules/unistr/u32-cpy-alloc: Likewise.
21293         * modules/unistr/u32-endswith: Likewise.
21294         * modules/unistr/u32-mblen: Likewise.
21295         * modules/unistr/u32-mbsnlen: Likewise.
21296         * modules/unistr/u32-mbtouc: Likewise.
21297         * modules/unistr/u32-mbtouc-unsafe: Likewise.
21298         * modules/unistr/u32-mbtoucr: Likewise.
21299         * modules/unistr/u32-move: Likewise.
21300         * modules/unistr/u32-next: Likewise.
21301         * modules/unistr/u32-prev: Likewise.
21302         * modules/unistr/u32-set: Likewise.
21303         * modules/unistr/u32-startswith: Likewise.
21304         * modules/unistr/u32-stpcpy: Likewise.
21305         * modules/unistr/u32-stpncpy: Likewise.
21306         * modules/unistr/u32-strcat: Likewise.
21307         * modules/unistr/u32-strchr: Likewise.
21308         * modules/unistr/u32-strcmp: Likewise.
21309         * modules/unistr/u32-strcoll: Likewise.
21310         * modules/unistr/u32-strcpy: Likewise.
21311         * modules/unistr/u32-strcspn: Likewise.
21312         * modules/unistr/u32-strdup: Likewise.
21313         * modules/unistr/u32-strlen: Likewise.
21314         * modules/unistr/u32-strmblen: Likewise.
21315         * modules/unistr/u32-strmbtouc: Likewise.
21316         * modules/unistr/u32-strncat: Likewise.
21317         * modules/unistr/u32-strncmp: Likewise.
21318         * modules/unistr/u32-strncpy: Likewise.
21319         * modules/unistr/u32-strnlen: Likewise.
21320         * modules/unistr/u32-strpbrk: Likewise.
21321         * modules/unistr/u32-strrchr: Likewise.
21322         * modules/unistr/u32-strspn: Likewise.
21323         * modules/unistr/u32-strstr: Likewise.
21324         * modules/unistr/u32-strtok: Likewise.
21325         * modules/unistr/u32-to-u16: Likewise.
21326         * modules/unistr/u32-to-u8: Likewise.
21327         * modules/unistr/u32-uctomb: Likewise.
21328         * modules/uniwbrk/u8-wordbreaks: Likewise.
21329         * modules/uniwbrk/u16-wordbreaks: Likewise.
21330         * modules/uniwbrk/u32-wordbreaks: Likewise.
21331         * modules/uniwbrk/ulc-wordbreaks: Likewise.
21332         * modules/uniwbrk/wordbreak-property: Likewise.
21333         * modules/uniwidth/u8-strwidth: Likewise.
21334         * modules/uniwidth/u8-width: Likewise.
21335         * modules/uniwidth/u16-strwidth: Likewise.
21336         * modules/uniwidth/u16-width: Likewise.
21337         * modules/uniwidth/u32-strwidth: Likewise.
21338         * modules/uniwidth/u32-width: Likewise.
21339         * modules/uniwidth/width: Likewise.
21340         * modules/unicase/cased-tests (Makefile.am): Link all test programs
21341         with $(LIBUNISTRING).
21342         * modules/unicase/ignorable-tests: Likewise.
21343         * modules/unicase/locale-language-tests: Likewise.
21344         * modules/unicase/tolower-tests: Likewise.
21345         * modules/unicase/totitle-tests: Likewise.
21346         * modules/unicase/toupper-tests: Likewise.
21347         * modules/unicase/u8-casecmp-tests: Likewise.
21348         * modules/unicase/u8-casecoll-tests: Likewise.
21349         * modules/unicase/u8-casefold-tests: Likewise.
21350         * modules/unicase/u8-is-cased-tests: Likewise.
21351         * modules/unicase/u8-is-casefolded-tests: Likewise.
21352         * modules/unicase/u8-is-lowercase-tests: Likewise.
21353         * modules/unicase/u8-is-titlecase-tests: Likewise.
21354         * modules/unicase/u8-is-uppercase-tests: Likewise.
21355         * modules/unicase/u8-tolower-tests: Likewise.
21356         * modules/unicase/u8-totitle-tests: Likewise.
21357         * modules/unicase/u8-toupper-tests: Likewise.
21358         * modules/unicase/u16-casecmp-tests: Likewise.
21359         * modules/unicase/u16-casecoll-tests: Likewise.
21360         * modules/unicase/u16-casefold-tests: Likewise.
21361         * modules/unicase/u16-is-cased-tests: Likewise.
21362         * modules/unicase/u16-is-casefolded-tests: Likewise.
21363         * modules/unicase/u16-is-lowercase-tests: Likewise.
21364         * modules/unicase/u16-is-titlecase-tests: Likewise.
21365         * modules/unicase/u16-is-uppercase-tests: Likewise.
21366         * modules/unicase/u16-tolower-tests: Likewise.
21367         * modules/unicase/u16-totitle-tests: Likewise.
21368         * modules/unicase/u16-toupper-tests: Likewise.
21369         * modules/unicase/u32-casecmp-tests: Likewise.
21370         * modules/unicase/u32-casecoll-tests: Likewise.
21371         * modules/unicase/u32-casefold-tests: Likewise.
21372         * modules/unicase/u32-is-cased-tests: Likewise.
21373         * modules/unicase/u32-is-casefolded-tests: Likewise.
21374         * modules/unicase/u32-is-lowercase-tests: Likewise.
21375         * modules/unicase/u32-is-titlecase-tests: Likewise.
21376         * modules/unicase/u32-is-uppercase-tests: Likewise.
21377         * modules/unicase/u32-tolower-tests: Likewise.
21378         * modules/unicase/u32-totitle-tests: Likewise.
21379         * modules/unicase/u32-toupper-tests: Likewise.
21380         * modules/unicase/ulc-casecmp-tests: Likewise.
21381         * modules/unicase/ulc-casecoll-tests: Likewise.
21382         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
21383         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
21384         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
21385         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
21386         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
21387         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
21388         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
21389         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
21390         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
21391         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
21392         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
21393         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
21394         * modules/unictype/bidicategory-byname-tests: Likewise.
21395         * modules/unictype/bidicategory-name-tests: Likewise.
21396         * modules/unictype/bidicategory-of-tests: Likewise.
21397         * modules/unictype/bidicategory-test-tests: Likewise.
21398         * modules/unictype/block-list-tests: Likewise.
21399         * modules/unictype/block-of-tests: Likewise.
21400         * modules/unictype/block-test-tests: Likewise.
21401         * modules/unictype/category-C-tests: Likewise.
21402         * modules/unictype/category-Cc-tests: Likewise.
21403         * modules/unictype/category-Cf-tests: Likewise.
21404         * modules/unictype/category-Cn-tests: Likewise.
21405         * modules/unictype/category-Co-tests: Likewise.
21406         * modules/unictype/category-Cs-tests: Likewise.
21407         * modules/unictype/category-L-tests: Likewise.
21408         * modules/unictype/category-Ll-tests: Likewise.
21409         * modules/unictype/category-Lm-tests: Likewise.
21410         * modules/unictype/category-Lo-tests: Likewise.
21411         * modules/unictype/category-Lt-tests: Likewise.
21412         * modules/unictype/category-Lu-tests: Likewise.
21413         * modules/unictype/category-M-tests: Likewise.
21414         * modules/unictype/category-Mc-tests: Likewise.
21415         * modules/unictype/category-Me-tests: Likewise.
21416         * modules/unictype/category-Mn-tests: Likewise.
21417         * modules/unictype/category-N-tests: Likewise.
21418         * modules/unictype/category-Nd-tests: Likewise.
21419         * modules/unictype/category-Nl-tests: Likewise.
21420         * modules/unictype/category-No-tests: Likewise.
21421         * modules/unictype/category-P-tests: Likewise.
21422         * modules/unictype/category-Pc-tests: Likewise.
21423         * modules/unictype/category-Pd-tests: Likewise.
21424         * modules/unictype/category-Pe-tests: Likewise.
21425         * modules/unictype/category-Pf-tests: Likewise.
21426         * modules/unictype/category-Pi-tests: Likewise.
21427         * modules/unictype/category-Po-tests: Likewise.
21428         * modules/unictype/category-Ps-tests: Likewise.
21429         * modules/unictype/category-S-tests: Likewise.
21430         * modules/unictype/category-Sc-tests: Likewise.
21431         * modules/unictype/category-Sk-tests: Likewise.
21432         * modules/unictype/category-Sm-tests: Likewise.
21433         * modules/unictype/category-So-tests: Likewise.
21434         * modules/unictype/category-Z-tests: Likewise.
21435         * modules/unictype/category-Zl-tests: Likewise.
21436         * modules/unictype/category-Zp-tests: Likewise.
21437         * modules/unictype/category-Zs-tests: Likewise.
21438         * modules/unictype/category-and-not-tests: Likewise.
21439         * modules/unictype/category-and-tests: Likewise.
21440         * modules/unictype/category-byname-tests: Likewise.
21441         * modules/unictype/category-name-tests: Likewise.
21442         * modules/unictype/category-none-tests: Likewise.
21443         * modules/unictype/category-of-tests: Likewise.
21444         * modules/unictype/category-or-tests: Likewise.
21445         * modules/unictype/category-test-withtable-tests: Likewise.
21446         * modules/unictype/combining-class-tests: Likewise.
21447         * modules/unictype/ctype-alnum-tests: Likewise.
21448         * modules/unictype/ctype-alpha-tests: Likewise.
21449         * modules/unictype/ctype-blank-tests: Likewise.
21450         * modules/unictype/ctype-cntrl-tests: Likewise.
21451         * modules/unictype/ctype-digit-tests: Likewise.
21452         * modules/unictype/ctype-graph-tests: Likewise.
21453         * modules/unictype/ctype-lower-tests: Likewise.
21454         * modules/unictype/ctype-print-tests: Likewise.
21455         * modules/unictype/ctype-punct-tests: Likewise.
21456         * modules/unictype/ctype-space-tests: Likewise.
21457         * modules/unictype/ctype-upper-tests: Likewise.
21458         * modules/unictype/ctype-xdigit-tests: Likewise.
21459         * modules/unictype/decimal-digit-tests: Likewise.
21460         * modules/unictype/digit-tests: Likewise.
21461         * modules/unictype/mirror-tests: Likewise.
21462         * modules/unictype/numeric-tests: Likewise.
21463         * modules/unictype/property-alphabetic-tests: Likewise.
21464         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
21465         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
21466         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
21467         * modules/unictype/property-bidi-block-separator-tests: Likewise.
21468         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
21469         * modules/unictype/property-bidi-common-separator-tests: Likewise.
21470         * modules/unictype/property-bidi-control-tests: Likewise.
21471         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
21472         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
21473         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
21474         * modules/unictype/property-bidi-european-digit-tests: Likewise.
21475         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
21476         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
21477         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
21478         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
21479         * modules/unictype/property-bidi-pdf-tests: Likewise.
21480         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
21481         * modules/unictype/property-bidi-whitespace-tests: Likewise.
21482         * modules/unictype/property-byname-tests: Likewise.
21483         * modules/unictype/property-combining-tests: Likewise.
21484         * modules/unictype/property-composite-tests: Likewise.
21485         * modules/unictype/property-currency-symbol-tests: Likewise.
21486         * modules/unictype/property-dash-tests: Likewise.
21487         * modules/unictype/property-decimal-digit-tests: Likewise.
21488         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
21489         * modules/unictype/property-deprecated-tests: Likewise.
21490         * modules/unictype/property-diacritic-tests: Likewise.
21491         * modules/unictype/property-extender-tests: Likewise.
21492         * modules/unictype/property-format-control-tests: Likewise.
21493         * modules/unictype/property-grapheme-base-tests: Likewise.
21494         * modules/unictype/property-grapheme-extend-tests: Likewise.
21495         * modules/unictype/property-grapheme-link-tests: Likewise.
21496         * modules/unictype/property-hex-digit-tests: Likewise.
21497         * modules/unictype/property-hyphen-tests: Likewise.
21498         * modules/unictype/property-id-continue-tests: Likewise.
21499         * modules/unictype/property-id-start-tests: Likewise.
21500         * modules/unictype/property-ideographic-tests: Likewise.
21501         * modules/unictype/property-ids-binary-operator-tests: Likewise.
21502         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
21503         * modules/unictype/property-ignorable-control-tests: Likewise.
21504         * modules/unictype/property-iso-control-tests: Likewise.
21505         * modules/unictype/property-join-control-tests: Likewise.
21506         * modules/unictype/property-left-of-pair-tests: Likewise.
21507         * modules/unictype/property-line-separator-tests: Likewise.
21508         * modules/unictype/property-logical-order-exception-tests: Likewise.
21509         * modules/unictype/property-lowercase-tests: Likewise.
21510         * modules/unictype/property-math-tests: Likewise.
21511         * modules/unictype/property-non-break-tests: Likewise.
21512         * modules/unictype/property-not-a-character-tests: Likewise.
21513         * modules/unictype/property-numeric-tests: Likewise.
21514         * modules/unictype/property-other-alphabetic-tests: Likewise.
21515         * modules/unictype/property-other-default-ignorable-code-point-tests:
21516         Likewise.
21517         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
21518         * modules/unictype/property-other-id-continue-tests: Likewise.
21519         * modules/unictype/property-other-id-start-tests: Likewise.
21520         * modules/unictype/property-other-lowercase-tests: Likewise.
21521         * modules/unictype/property-other-math-tests: Likewise.
21522         * modules/unictype/property-other-uppercase-tests: Likewise.
21523         * modules/unictype/property-paired-punctuation-tests: Likewise.
21524         * modules/unictype/property-paragraph-separator-tests: Likewise.
21525         * modules/unictype/property-pattern-syntax-tests: Likewise.
21526         * modules/unictype/property-pattern-white-space-tests: Likewise.
21527         * modules/unictype/property-private-use-tests: Likewise.
21528         * modules/unictype/property-punctuation-tests: Likewise.
21529         * modules/unictype/property-quotation-mark-tests: Likewise.
21530         * modules/unictype/property-radical-tests: Likewise.
21531         * modules/unictype/property-sentence-terminal-tests: Likewise.
21532         * modules/unictype/property-soft-dotted-tests: Likewise.
21533         * modules/unictype/property-space-tests: Likewise.
21534         * modules/unictype/property-terminal-punctuation-tests: Likewise.
21535         * modules/unictype/property-test-tests: Likewise.
21536         * modules/unictype/property-titlecase-tests: Likewise.
21537         * modules/unictype/property-unassigned-code-value-tests: Likewise.
21538         * modules/unictype/property-unified-ideograph-tests: Likewise.
21539         * modules/unictype/property-uppercase-tests: Likewise.
21540         * modules/unictype/property-variation-selector-tests: Likewise.
21541         * modules/unictype/property-white-space-tests: Likewise.
21542         * modules/unictype/property-xid-continue-tests: Likewise.
21543         * modules/unictype/property-xid-start-tests: Likewise.
21544         * modules/unictype/property-zero-width-tests: Likewise.
21545         * modules/unictype/scripts-tests: Likewise.
21546         * modules/unictype/syntax-c-ident-tests: Likewise.
21547         * modules/unictype/syntax-c-whitespace-tests: Likewise.
21548         * modules/unictype/syntax-java-ident-tests: Likewise.
21549         * modules/unictype/syntax-java-whitespace-tests: Likewise.
21550         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
21551         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
21552         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
21553         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
21554         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
21555         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
21556         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
21557         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
21558         * modules/uniname/uniname-tests: Likewise.
21559         * modules/uninorm/canonical-decomposition-tests: Likewise.
21560         * modules/uninorm/compat-decomposition-tests: Likewise.
21561         * modules/uninorm/composition-tests: Likewise.
21562         * modules/uninorm/decomposing-form-tests: Likewise.
21563         * modules/uninorm/decomposition-tests: Likewise.
21564         * modules/uninorm/filter-tests: Likewise.
21565         * modules/uninorm/nfc-tests: Likewise.
21566         * modules/uninorm/nfd-tests: Likewise.
21567         * modules/uninorm/nfkc-tests: Likewise.
21568         * modules/uninorm/nfkd-tests: Likewise.
21569         * modules/uninorm/u8-normcmp-tests: Likewise.
21570         * modules/uninorm/u8-normcoll-tests: Likewise.
21571         * modules/uninorm/u16-normcmp-tests: Likewise.
21572         * modules/uninorm/u16-normcoll-tests: Likewise.
21573         * modules/uninorm/u32-normcmp-tests: Likewise.
21574         * modules/uninorm/u32-normcoll-tests: Likewise.
21575         * modules/unistdio/u8-asnprintf-tests: Likewise.
21576         * modules/unistdio/u8-vasnprintf-tests: Likewise.
21577         * modules/unistdio/u8-vasprintf-tests: Likewise.
21578         * modules/unistdio/u8-vsnprintf-tests: Likewise.
21579         * modules/unistdio/u8-vsprintf-tests: Likewise.
21580         * modules/unistdio/u16-asnprintf-tests: Likewise.
21581         * modules/unistdio/u16-vasnprintf-tests: Likewise.
21582         * modules/unistdio/u16-vasprintf-tests: Likewise.
21583         * modules/unistdio/u16-vsnprintf-tests: Likewise.
21584         * modules/unistdio/u16-vsprintf-tests: Likewise.
21585         * modules/unistdio/u32-asnprintf-tests: Likewise.
21586         * modules/unistdio/u32-vasnprintf-tests: Likewise.
21587         * modules/unistdio/u32-vasprintf-tests: Likewise.
21588         * modules/unistdio/u32-vsnprintf-tests: Likewise.
21589         * modules/unistdio/u32-vsprintf-tests: Likewise.
21590         * modules/unistdio/ulc-asnprintf-tests: Likewise.
21591         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
21592         * modules/unistdio/ulc-vasprintf-tests: Likewise.
21593         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
21594         * modules/unistdio/ulc-vsprintf-tests: Likewise.
21595         * modules/unistr/u8-check-tests: Likewise.
21596         * modules/unistr/u8-chr-tests: Likewise.
21597         * modules/unistr/u8-cmp-tests: Likewise.
21598         * modules/unistr/u8-cmp2-tests: Likewise.
21599         * modules/unistr/u8-cpy-alloc-tests: Likewise.
21600         * modules/unistr/u8-cpy-tests: Likewise.
21601         * modules/unistr/u8-mblen-tests: Likewise.
21602         * modules/unistr/u8-mbsnlen-tests: Likewise.
21603         * modules/unistr/u8-mbtouc-tests: Likewise.
21604         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
21605         * modules/unistr/u8-mbtoucr-tests: Likewise.
21606         * modules/unistr/u8-move-tests: Likewise.
21607         * modules/unistr/u8-next-tests: Likewise.
21608         * modules/unistr/u8-prev-tests: Likewise.
21609         * modules/unistr/u8-set-tests: Likewise.
21610         * modules/unistr/u8-stpcpy-tests: Likewise.
21611         * modules/unistr/u8-stpncpy-tests: Likewise.
21612         * modules/unistr/u8-strcat-tests: Likewise.
21613         * modules/unistr/u8-strcmp-tests: Likewise.
21614         * modules/unistr/u8-strcoll-tests: Likewise.
21615         * modules/unistr/u8-strcpy-tests: Likewise.
21616         * modules/unistr/u8-strdup-tests: Likewise.
21617         * modules/unistr/u8-strlen-tests: Likewise.
21618         * modules/unistr/u8-strmblen-tests: Likewise.
21619         * modules/unistr/u8-strmbtouc-tests: Likewise.
21620         * modules/unistr/u8-strncat-tests: Likewise.
21621         * modules/unistr/u8-strncmp-tests: Likewise.
21622         * modules/unistr/u8-strncpy-tests: Likewise.
21623         * modules/unistr/u8-strnlen-tests: Likewise.
21624         * modules/unistr/u8-to-u16-tests: Likewise.
21625         * modules/unistr/u8-to-u32-tests: Likewise.
21626         * modules/unistr/u8-uctomb-tests: Likewise.
21627         * modules/unistr/u16-check-tests: Likewise.
21628         * modules/unistr/u16-chr-tests: Likewise.
21629         * modules/unistr/u16-cmp-tests: Likewise.
21630         * modules/unistr/u16-cmp2-tests: Likewise.
21631         * modules/unistr/u16-cpy-alloc-tests: Likewise.
21632         * modules/unistr/u16-cpy-tests: Likewise.
21633         * modules/unistr/u16-mblen-tests: Likewise.
21634         * modules/unistr/u16-mbsnlen-tests: Likewise.
21635         * modules/unistr/u16-mbtouc-tests: Likewise.
21636         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
21637         * modules/unistr/u16-mbtoucr-tests: Likewise.
21638         * modules/unistr/u16-move-tests: Likewise.
21639         * modules/unistr/u16-next-tests: Likewise.
21640         * modules/unistr/u16-prev-tests: Likewise.
21641         * modules/unistr/u16-set-tests: Likewise.
21642         * modules/unistr/u16-stpcpy-tests: Likewise.
21643         * modules/unistr/u16-stpncpy-tests: Likewise.
21644         * modules/unistr/u16-strcat-tests: Likewise.
21645         * modules/unistr/u16-strcmp-tests: Likewise.
21646         * modules/unistr/u16-strcoll-tests: Likewise.
21647         * modules/unistr/u16-strcpy-tests: Likewise.
21648         * modules/unistr/u16-strdup-tests: Likewise.
21649         * modules/unistr/u16-strlen-tests: Likewise.
21650         * modules/unistr/u16-strmblen-tests: Likewise.
21651         * modules/unistr/u16-strmbtouc-tests: Likewise.
21652         * modules/unistr/u16-strncat-tests: Likewise.
21653         * modules/unistr/u16-strncmp-tests: Likewise.
21654         * modules/unistr/u16-strncpy-tests: Likewise.
21655         * modules/unistr/u16-strnlen-tests: Likewise.
21656         * modules/unistr/u16-to-u32-tests: Likewise.
21657         * modules/unistr/u16-to-u8-tests: Likewise.
21658         * modules/unistr/u16-uctomb-tests: Likewise.
21659         * modules/unistr/u32-check-tests: Likewise.
21660         * modules/unistr/u32-chr-tests: Likewise.
21661         * modules/unistr/u32-cmp-tests: Likewise.
21662         * modules/unistr/u32-cmp2-tests: Likewise.
21663         * modules/unistr/u32-cpy-alloc-tests: Likewise.
21664         * modules/unistr/u32-cpy-tests: Likewise.
21665         * modules/unistr/u32-mblen-tests: Likewise.
21666         * modules/unistr/u32-mbsnlen-tests: Likewise.
21667         * modules/unistr/u32-mbtouc-tests: Likewise.
21668         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
21669         * modules/unistr/u32-mbtoucr-tests: Likewise.
21670         * modules/unistr/u32-move-tests: Likewise.
21671         * modules/unistr/u32-next-tests: Likewise.
21672         * modules/unistr/u32-prev-tests: Likewise.
21673         * modules/unistr/u32-set-tests: Likewise.
21674         * modules/unistr/u32-stpcpy-tests: Likewise.
21675         * modules/unistr/u32-stpncpy-tests: Likewise.
21676         * modules/unistr/u32-strcat-tests: Likewise.
21677         * modules/unistr/u32-strcmp-tests: Likewise.
21678         * modules/unistr/u32-strcoll-tests: Likewise.
21679         * modules/unistr/u32-strcpy-tests: Likewise.
21680         * modules/unistr/u32-strdup-tests: Likewise.
21681         * modules/unistr/u32-strlen-tests: Likewise.
21682         * modules/unistr/u32-strmblen-tests: Likewise.
21683         * modules/unistr/u32-strmbtouc-tests: Likewise.
21684         * modules/unistr/u32-strncat-tests: Likewise.
21685         * modules/unistr/u32-strncmp-tests: Likewise.
21686         * modules/unistr/u32-strncpy-tests: Likewise.
21687         * modules/unistr/u32-strnlen-tests: Likewise.
21688         * modules/unistr/u32-to-u16-tests: Likewise.
21689         * modules/unistr/u32-to-u8-tests: Likewise.
21690         * modules/unistr/u32-uctomb-tests: Likewise.
21691         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
21692         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
21693         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
21694         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
21695         * modules/uniwidth/u8-strwidth-tests: Likewise.
21696         * modules/uniwidth/u8-width-tests: Likewise.
21697         * modules/uniwidth/u16-strwidth-tests: Likewise.
21698         * modules/uniwidth/u16-width-tests: Likewise.
21699         * modules/uniwidth/u32-strwidth-tests: Likewise.
21700         * modules/uniwidth/u32-width-tests: Likewise.
21701         * modules/uniwidth/width-tests: Likewise.
21702
21703 2010-05-18  Richard Jones  <rjones@redhat.com>
21704
21705         doc: users.txt: list hivex
21706         * users.txt: Add hivex.
21707
21708 2010-05-18  Richard Jones  <rjones@redhat.com>
21709
21710         doc: users.txt: list febootstrap
21711         * users.txt: Add febootstrap.
21712
21713 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
21714
21715         bootstrap: fix an error when gnulib is not used as a git submodule
21716         * build-aux/bootstrap (gnulib_path): If its length is zero then
21717         assign "gnulib" to it.
21718         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
21719
21720 2010-05-16  Bruno Haible  <bruno@clisp.org>
21721
21722         Avoid autoconf warnings about AM_ICONV.
21723         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
21724         2.64.
21725
21726 2010-05-16  Bruno Haible  <bruno@clisp.org>
21727
21728         absolute-header: Make the macro usable in more situations.
21729         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
21730         from gl_ABSOLUTE_HEADER.
21731         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
21732
21733 2010-05-16  James Youngman  <jay@gnu.org>
21734
21735         doc: update users.txt
21736         * users.txt: Add CSSC.
21737
21738 2010-05-16  Jim Meyering  <meyering@redhat.com>
21739
21740         init.sh: fix an error in the previous change; add more comments
21741         * tests/init.sh: Compare exit code in loop against 9, not 2.
21742         Patch by Bruno Haible.
21743         Make the two tests more similar by adding an empty "then" clause.
21744         Add comments.
21745
21746         init.sh: avoid unnecessary shell re-exec
21747         * tests/init.sh: Improve the re-exec-required check to first test the
21748         current shell.  If it passes the test, do not search for a shell that
21749         does pass, and do not re-exec.  This test is particularly contorted to
21750         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
21751         of $(...) evokes a syntax error and causes immediate shell exit with
21752         status 2.  Bruno Haible reported that the re-exec made it impossible
21753         to single-step through any init.sh-using script.
21754
21755 2010-05-16  Bruno Haible  <bruno@clisp.org>
21756
21757         Fix collision between gnulib's and libintl's printf replacements.
21758         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
21759         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
21760         (printf): When using GNU C, map the __printf__ function to rpl_printf
21761         via __asm__. When not using GNU C, define rpl_printf instead of
21762         __printf__.
21763         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
21764         commit.
21765         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
21766         commit.
21767         * m4/asm-underscore.m4: New file.
21768         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
21769         * modules/stdio (Files): Add m4/asm-underscore.m4.
21770         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
21771         Reported by Ben Pfaff.
21772
21773 2010-05-16  Bruno Haible  <bruno@clisp.org>
21774
21775         verify: Avoid skipping the test on openSUSE 11.0.
21776         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
21777
21778 2010-05-13  Bruno Haible  <bruno@clisp.org>
21779
21780         Avoid useless warnings from G++.
21781         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
21782         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
21783         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21784
21785 2010-05-11  Jim Meyering  <meyering@redhat.com>
21786
21787         maint.mk: tweak preceding change
21788         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
21789         regexps tighter by anchoring at EOL, and make the new group "shy"
21790         for slightly decreased overhead.
21791
21792 2010-05-11  Eric Blake  <eblake@redhat.com>
21793
21794         maint.mk: gnulib doesn't guarantee NSIG
21795         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
21796
21797 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
21798
21799         test-pwrite.c: Remove unused variable declaration.
21800         * tests/test-pwrite.c (main): Remove read_buf declaration.
21801
21802         Remove useless test-pwrite.sh file.
21803         * tests/test-pwrite.sh: Delete file.
21804         * modules/pwrite-tests: Remove references.
21805         Reported by Bruno Haible.
21806
21807 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
21808
21809         init.sh: fix a typo
21810         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
21811
21812 2010-05-10  Jim Meyering  <meyering@redhat.com>
21813
21814         maint.mk: avoid using a temporary file in the always-defined-macros check
21815         * top/maint.mk (.re-defmac): Remove rule.
21816         (gl_trap_): Remove definition.
21817         (sc_prohibit_always-defined_macros): Rewrite not to create and
21818         depend on a temporary file.  Instead, depend on GNU grep's ability
21819         to read a list of regular expressions from stdin when given "-f -".
21820
21821 2010-05-09  Bruno Haible  <bruno@clisp.org>
21822
21823         Update to GNU gettext 0.18, part 1.
21824         * m4/gettext.m4: Update to GNU gettext 0.18.
21825         * m4/intl.m4: Likewise.
21826         * m4/po.m4: Likewise.
21827         * modules/gettext (Files): Add m4/fcntl-o.m4.
21828         (configure.ac): Require gettext infrastructure from version 0.18.
21829
21830 2010-05-09  Jim Meyering  <meyering@redhat.com>
21831
21832         init.sh: enable MALLOC_PERTURB_
21833         * tests/init.sh: Enable glibc's malloc-perturbing option.
21834
21835         maint.mk: improve sc_cross_check_PATH_usage_in_tests
21836         With my recent change in init.sh from the two-line form:
21837             -#   : ${srcdir=.}
21838             -#   . "$srcdir/init.sh"; path_prepend_ .
21839             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
21840         I noticed that using the one-line form would cause this test
21841         to fail with a false-positive, or to stop working altogether,
21842         depending on whether help-version changed or all the tests did.
21843         * top/maint.mk (_hv_regex): Remove this definition.
21844         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
21845         (_hv_regex_strong): Use a stronger regex to check for conformance.
21846         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
21847         Give a separate diagnostic for lack of conforming use.
21848
21849         maint.mk: prohibit definition of symbols defined by gnulib
21850         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
21851         definition of symbols defined by gnulib.
21852
21853 2010-05-09  Bruno Haible  <bruno@clisp.org>
21854
21855         acl: Avoid test failure on Cygwin-hosted mingw.
21856         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
21857
21858 2010-05-09  Bruno Haible  <bruno@clisp.org>
21859
21860         error: Use system's fcntl function.
21861         * lib/error.c (fcntl): Undefine.
21862
21863 2010-05-09  Jim Meyering  <meyering@redhat.com>
21864
21865         verify: adjust formatting to be more consistent
21866         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
21867         argument-list '('s, and after one comma.
21868
21869 2010-05-09  Bruno Haible  <bruno@clisp.org>
21870
21871         error: More reliable output on mingw.
21872         * lib/error.c: Include <windows.h>.
21873         (is_open): New function.
21874         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
21875         defined.
21876
21877 2010-05-09  Bruno Haible  <bruno@clisp.org>
21878
21879         vasnprintf: Fix syntax errors in libintl build on mingw.
21880         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
21881         pad_ourselves and prec_ourselves after use.
21882
21883 2010-05-08  Bruno Haible  <bruno@clisp.org>
21884
21885         * lib/config.charset: Update comments for Cygwin 1.7.
21886         * lib/localcharset.c: Likewise.
21887
21888 2010-05-07  Jim Meyering  <meyering@redhat.com>
21889
21890         init.sh: improve comments
21891         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
21892         . "${srcdir=.}/init.sh"; path_prepend_ .
21893         Add a note about path_prepend_ and the alternative of using
21894         TESTS_ENVIRONMENT.
21895
21896 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
21897
21898         exclude: Unescape hashed patterns in wildcard mode.
21899         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
21900         to the hash list.
21901         * tests/test-exclude8.sh: New test case.
21902         * modules/exclude-tests: Add new test.
21903
21904 2010-05-05  Eric Blake  <eblake@redhat.com>
21905
21906         verify: automate tests
21907         * modules/verify-tests: New module.
21908         * tests/test-verify.sh: New file.
21909         * tests/test-verify.c: Guard each negative test with a unique id.
21910         Also avoid warning about unused left hand of comma expressions.
21911
21912 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
21913
21914         Further improvements to verify.h, suggested by Eric Blake.
21915         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
21916         the GL_* versions, to avoid collision with OpenGL.
21917         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
21918         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
21919         than testing merely whether it's defined.
21920
21921         Modify verify.h to pacify gcc -Wredundant_decls.
21922         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
21923         These use the prefix "GL_" since they're likely to be useful elsewhere.
21924         We may need to break them out into a different .h file.
21925         (__COUNTER__): Define to 0 if the compiler doesn't support it.
21926         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
21927         of verify_function__.
21928
21929 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
21930
21931         Tests for module pwrite.
21932         * modules/pwrite-tests: New file.
21933         * tests/test-pwrite.sh: New file.
21934         * tests/test-pwrite.c: New file.
21935
21936         New module pwrite.
21937         * lib/unistd.in.h (pwrite): New declaration.
21938         * lib/pwrite.c: New file, from glibc with modifications.
21939         * m4/pwrite.m4: New file.
21940         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
21941         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
21942         REPLACE_PWRITE.
21943         * modules/pwrite: New file.
21944         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
21945         REPLACE_PWRITE.
21946         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
21947         * doc/posix-functions/pwrite.texi: Mention the new module.
21948
21949 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
21950
21951         pread: Update documentation.
21952         * doc/posix-functions/pread.texi: Mention the 'pread' module.
21953
21954 2010-05-04  Eric Blake  <eblake@redhat.com>
21955
21956         docs: update cygwin progress
21957         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
21958         this bug.
21959         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
21960         Added in cygwin 1.7.2.
21961         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
21962         Likewise.
21963         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
21964         Likewise.
21965         * doc/glibc-functions/dup3.texi (dup3): Likewise.
21966         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
21967         * doc/glibc-functions/accept4.texi (accept4): Likewise.
21968         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
21969         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
21970         Mention nproc module.
21971         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
21972         bug in cygwin 1.7.5 addition.
21973         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
21974         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
21975         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
21976         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
21977         1.7.5.
21978         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
21979         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
21980         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
21981         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
21982         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
21983         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
21984         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
21985         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
21986         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
21987         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
21988         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
21989         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
21990         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
21991         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
21992         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
21993         Likewise.
21994         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
21995         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
21996         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
21997         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
21998         Likewise.
21999         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
22000         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
22001         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
22002         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
22003         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
22004         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
22005         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
22006         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
22007         Likewise.
22008         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
22009         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
22010         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
22011         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
22012         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
22013         Likewise.
22014         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
22015         Likewise.
22016         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
22017         Likewise.
22018         * doc/glibc-functions/xdrrec_endofrecord.texi
22019         (xdrrec_endofrecord): Likewise.
22020         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
22021         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
22022         Likewise.
22023         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
22024         Likewise.
22025
22026 2010-05-04  Jim Meyering  <meyering@redhat.com>
22027
22028         gendocs.sh: make its "-s FILE" option more useful
22029         * build-aux/gendocs.sh: When honoring the -s FILE option, update
22030         $PACKAGE to reflect the probably-different basename of "FILE".
22031
22032 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
22033
22034         bootstrap: don't ignore download_po_files failure
22035         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
22036         failure.
22037
22038 2010-05-03  Jim Meyering  <meyering@redhat.com>
22039
22040         maint.mk: allow to pass options to gendocs.sh
22041         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
22042         (gendocs_options_): New overridable variable.
22043
22044         gnu-web-doc-update: don't ignore configure or build failure
22045         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
22046
22047         announce-gen: backslash-escape '@'s in --help output
22048         * build-aux/announce-gen: Fix syntax errors.
22049
22050         maint.mk, announce-gen: allow project-specific announcement mail headers
22051         * top/maint.mk (translation_project_): Define default.
22052         (announcement_Cc_, announcement_mail_headers_): Likewise.
22053         (announcement): Invoke announce-gen with new --mail-headers option.
22054         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
22055
22056         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
22057         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
22058         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
22059         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
22060         line in the "err2" output file when running "make check" in verbose
22061         mode (i.e., with set -x enabled).
22062
22063 2010-05-03  Bruno Haible  <bruno@clisp.org>
22064
22065         wctob: Fix for weird platforms.
22066         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
22067         argument value.
22068
22069 2010-05-03  Jim Meyering  <meyering@redhat.com>
22070
22071         maint.mk: prohibit unwarranted use of <strings.h>
22072         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
22073         strings.h in a file that does not also use strcasecmp, strncasecmp,
22074         ffs or ffsll.
22075
22076         maint.mk: remove obsolete comments
22077         * top/maint.mk: Remove stale, commented-out rules.
22078
22079 2010-05-02  Bruno Haible  <bruno@clisp.org>
22080
22081         wcwidth: Declare also when it's aliased.
22082         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
22083         macro.
22084
22085 2010-05-02  Bruno Haible  <bruno@clisp.org>
22086
22087         Fix regression from 2010-04-25.
22088         * gnulib-tool (func_modules_transitive_closure): Check the status of
22089         all modules, not only of the tests that are of the form foo-tests where
22090         foo is a module.
22091
22092 2010-05-02  Bruno Haible  <bruno@clisp.org>
22093
22094         wctob: Work around nasty Cygwin 1.7.2 bug.
22095         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
22096         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
22097
22098 2010-05-01  Bruno Haible  <bruno@clisp.org>
22099
22100         fpurge: Sharper test.
22101         * tests/test-fpurge.c (main): Add one more ftell check.
22102         * modules/fpurge-tests (Depends-on): Add ftell.
22103         Suggested by Eric Blake.
22104
22105 2010-05-01  Bruno Haible  <bruno@clisp.org>
22106
22107         ftello: Another test.
22108         * tests/test-ftello3.c: New file.
22109         * modules/ftello-tests (Files): Add it.
22110         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
22111         MOSTLYCLEANFILES.
22112
22113         ftell: Another test.
22114         * tests/test-ftell3.c: New file.
22115         * modules/ftell-tests (Files): Add it.
22116         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
22117         MOSTLYCLEANFILES.
22118
22119 2010-05-01  Bruno Haible  <bruno@clisp.org>
22120
22121         ftell, ftello: Work around Solaris bug.
22122         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
22123         * lib/ftello.c: Include stdio-impl.h.
22124         (ftello): On Solaris, when _IOWRT is set, compute the result without
22125         looking at _IOREAD.
22126         * modules/ftello (Files): Add lib/stdio-impl.h.
22127         * doc/posix-functions/ftell.texi: Mention Solaris bug.
22128         * doc/posix-functions/ftello.texi: Likewise.
22129         Reported by Eric Blake.
22130
22131 2010-05-01  Bruno Haible  <bruno@clisp.org>
22132
22133         freading: Adapt to special meaning of _IOREAD flag on Solaris.
22134         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
22135         the _IOWRT flag is also set.
22136
22137 2010-05-01  Bruno Haible  <bruno@clisp.org>
22138
22139         Fix doc about a HP-UX stdio bug.
22140         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
22141         * doc/posix-functions/ftello.texi: Likewise.
22142
22143 2010-05-01  Bruno Haible  <bruno@clisp.org>
22144
22145         lseek test: Fix failure on Solaris.
22146         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
22147         output.
22148
22149 2010-04-30  Jim Meyering  <meyering@redhat.com>
22150
22151         bootstrap: don't ignore failure to generate po*/Makevars
22152         * build-aux/bootstrap (with_gettext): Don't ignore failure
22153         to create po/Makevars or runtime-po/Makevars.
22154
22155 2010-04-29  Eric Blake  <eblake@redhat.com>
22156
22157         headers: relax license to LGPLv2+
22158         * modules/fcntl-h (License): Relax license.
22159         * modules/getopt-posix (License): Likewise.
22160         * modules/locale (License): Likewise.
22161         * modules/math (License): Likewise.
22162         * modules/pty (License): Likewise.
22163         * modules/sched (License): Likewise.
22164         * modules/search (License): Likewise.
22165         * modules/spawn (License): Likewise.
22166         * modules/stdarg (License): Likewise.
22167         * modules/sysexits (License): Likewise.
22168
22169 2010-04-29  Jim Meyering  <meyering@redhat.com>
22170
22171         inttypes: relax license to LGPLv2+
22172         * modules/inttypes (License): Relax license.
22173
22174 2010-04-29  Simon Josefsson  <simon@josefsson.org>
22175
22176         * top/maint.mk (indent): Run twice to produce idempotent results.
22177
22178 2010-04-28  Bruno Haible  <bruno@clisp.org>
22179
22180         getdate: Generate getdate.c in the source directory.
22181         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
22182         MOSTLYCLEANFILES.
22183         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
22184
22185 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
22186
22187         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
22188         is not declared as a const *; avoid warnings in that case.
22189
22190 2010-04-28  Eric Blake  <eblake@redhat.com>
22191
22192         canonicalize-lgpl: avoid compiler warning
22193         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
22194         declaration' / 'extraneous semicolon' warning with some compilers.
22195         Reported by Andreas Gruenbacher.
22196
22197 2010-04-28  Jim Meyering  <meyering@redhat.com>
22198
22199         init.sh: ensure a more reliable exit status when exiting via trap
22200         * tests/init.sh (setup_): Don't rely on $? in signal handler.
22201         Inspired by patches from Dmitry V. Levin.
22202         Also trap on signal 3 (SIGQUIT).
22203
22204 2010-04-27  Bruno Haible  <bruno@clisp.org>
22205
22206         Update doc about utimes().
22207         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
22208         'utimens' module.
22209         Reported by Andreas Gruenbacher <agruen@suse.de>.
22210
22211 2010-04-27  Eric Blake  <eblake@redhat.com>
22212
22213         full-read, full-write: relax license
22214         * modules/full-read (License): Drop to LGPLv2+.
22215         * modules/full-write (License): Likewise.
22216         * modules/safe-read (License): Likewise.
22217         * modules/safe-write (License): Likewise.
22218
22219         pthread: mention library for linking
22220         * modules/pthread (Link): Mention $(LIB_PTHREAD).
22221
22222 2010-04-27  Jim Meyering  <meyering@redhat.com>
22223
22224         maint.mk: fix a bug introduced in last change
22225         * top/maint.mk (gl_assured_headers_): Now that all names are on
22226         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
22227         is not anchored to end of word, it should be adequate.
22228
22229         maint.mk: avoid side-effect in latest syntax-check
22230         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
22231         to run commands via $(shell...), and hence to incur cost only when
22232         the new rule is actually run.
22233
22234         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
22235         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
22236         and use that to create a regexp used to detect all #if HAVE_..._H uses.
22237         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
22238         (gl_assured_headers_, az_, AZ_): Define.
22239         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
22240
22241 2010-04-26  Jim Meyering  <jim@meyering.net>
22242             Bruno Haible  <bruno@clisp.org>
22243
22244         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
22245         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
22246         Prompted by an exchange with Gilles Espinasse.
22247
22248 2010-04-26  Jim Meyering  <meyering@redhat.com>
22249
22250         git-version-gen: aesthetic tweak
22251         * build-aux/git-version-gen: Use "$nl" rather than a literal,
22252         so that the command remains on a single line.
22253
22254 2010-04-26  Eric Blake  <eblake@redhat.com>
22255
22256         git-version-gen: allow use on EBCDIC hosts
22257         * build-aux/git-version-gen (dirty): Use literal rather than tying
22258         ourselves to ascii.
22259         Reported by Steve Goetze.
22260
22261 2010-04-25  Bruno Haible  <bruno@clisp.org>
22262
22263         netdb: Add support for GNULIB_POSIXCHECK.
22264         * lib/netdb.in.h: Include warn-on-use.h.
22265         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
22266         functions are used when GNULIB_POSIXCHECK is defined and the
22267         getaddrinfo module is not in use.
22268         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
22269         freeaddrinfo, gai_strerror, getnameinfo are declared.
22270         * modules/netdb (Depends-on): Add warn-on-use.
22271         (Makefile.am): Include warn-on-use.h in netdb.h.
22272
22273 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
22274
22275         build: avoid "make check" failure without .git/ directory
22276         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
22277         there is no .git/ directory.
22278
22279 2010-04-25  Bruno Haible  <bruno@clisp.org>
22280
22281         ptsname: Fix misuse of ttyname_r.
22282         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
22283         of errno.
22284
22285 2010-04-25  Bruno Haible  <bruno@clisp.org>
22286
22287         ttyname_r: Make it work on Solaris 10.
22288         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
22289         if the system function has the POSIX declaration. Test whether the
22290         function fails if the buffer is less than 128 bytes large.
22291         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
22292         system's ttyname_r function. Provide a reasonably large buffer.
22293         * modules/ttyname_r (Depends-on): Add extensions.
22294         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
22295
22296 2010-04-25  Bruno Haible  <bruno@clisp.org>
22297
22298         Use the 'extensions' module for some more functions on Solaris.
22299         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
22300         module.
22301         * doc/posix-functions/ctime_r.texi: Likewise.
22302         * doc/posix-functions/getgrgid_r.texi: Likewise.
22303         * doc/posix-functions/getgrnam_r.texi: Likewise.
22304         * doc/posix-functions/getpwnam_r.texi: Likewise.
22305         * doc/posix-functions/getpwuid_r.texi: Likewise.
22306         * doc/posix-functions/readdir_r.texi: Likewise.
22307         * doc/posix-functions/sigwait.texi: Likewise.
22308         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
22309         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
22310
22311 2010-04-25  Bruno Haible  <bruno@clisp.org>
22312
22313         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
22314         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
22315         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
22316         * lib/ttyname_r.c: Include <limits.h>.
22317         (ttyname_r): Define using the system's ttyname_r function, if it exists
22318         and not on Solaris.
22319         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
22320         set.
22321         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
22322         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
22323         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
22324         Reported by Simon Josefsson.
22325
22326 2010-04-25  Bruno Haible  <bruno@clisp.org>
22327
22328         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
22329         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
22330         * doc/posix-functions/ctime_r.texi: Likewise.
22331         * doc/posix-functions/getgrgid_r.texi: Likewise.
22332         * doc/posix-functions/getgrnam_r.texi: Likewise.
22333         * doc/posix-functions/getlogin_r.texi: Likewise.
22334         * doc/posix-functions/getpwnam_r.texi: Likewise.
22335         * doc/posix-functions/getpwuid_r.texi: Likewise.
22336         * doc/posix-functions/readdir_r.texi: Likewise.
22337         * doc/posix-functions/sigwait.texi: Likewise.
22338         * doc/posix-functions/ttyname_r.texi: Likewise.
22339         Reported by Simon Josefsson.
22340
22341 2010-04-25  Bruno Haible  <bruno@clisp.org>
22342
22343         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
22344         * gnulib-tool (func_usage): Document that --with-*-tests options apply
22345         also to --create-testdir.
22346         (func_acceptable): Don't consider the status of *-tests modules here.
22347         (func_modules_transitive_closure): Consider it here, before including a
22348         test module.
22349         (func_import, func_create_testdir): Set inc_all_direct_tests,
22350         inc_all_indirect_tests.
22351         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
22352         --create-testdir and --create-megatestdir.
22353
22354 2010-04-25  Bruno Haible  <bruno@clisp.org>
22355
22356         gnulib-tool: Add --without-*-tests options.
22357         * gnulib-tool (func_usage): Document the --without-*-tests options.
22358         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
22359         excl_unportable_tests): New variables.
22360         Fail if they are specified with --import or --update.
22361         (func_acceptable): Respect the excl_*_tests variables.
22362         (func_import): Set the excl_*_tests variables to empty.
22363
22364 2010-04-25  Simon Josefsson  <simon@josefsson.org>
22365             Bruno Haible  <bruno@clisp.org>
22366
22367         Work around a MacOS X 10.4 bug with openpty.
22368         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
22369         * tests/test-openpty.c (main): Close the master side explicitly.
22370
22371 2010-04-25  Bruno Haible  <bruno@clisp.org>
22372
22373         strnlen: Fix a C++ test error on MacOS X and Solaris.
22374         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
22375         the function is not declared.
22376         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
22377         Simon Josefsson.
22378
22379 2010-04-24  Bruno Haible  <bruno@clisp.org>
22380
22381         Avoid a gcc warning.
22382         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
22383         of correct type for %08lx directive.
22384         Reported by Eric Blake.
22385
22386 2010-04-24  Bruno Haible  <bruno@clisp.org>
22387
22388         vasnprintf: Correct errno value in case of out-of-memory.
22389         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
22390         or sprintf. Use the errno value from SNPRINTF or sprintf.
22391         Reported by Ian Beckwith <ianb@erislabs.net>.
22392
22393 2010-04-24  Bruno Haible  <bruno@clisp.org>
22394
22395         ansi-c++-opt: Find correct compiler when cross-compiling.
22396         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
22397         AC_CHECK_PROGS.
22398         Reported by Simon Josefsson.
22399
22400 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
22401
22402         vc-list-files: Add support for subversion
22403         * build-aux/vc-list-files: Use "svn list" to generate the list of
22404         files controlled by subversion.
22405
22406 2010-04-23  Jim Meyering  <meyering@redhat.com>
22407
22408         vc-list-files tests: convert to use init.sh
22409         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
22410         path_prepend_.
22411         Use Exit, not exit.
22412         Use skip_ rather than open coding it.
22413         Remove trap set-up and compare definitions.
22414         * tests/test-vc-list-files-git.sh: Likewise.
22415         * modules/vc-list-files-tests (Files): Add tests/init.sh.
22416
22417 2010-04-22  Simon Josefsson  <simon@josefsson.org>
22418
22419         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
22420         backup files.
22421
22422 2010-04-21  Simon Josefsson  <simon@josefsson.org>
22423
22424         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
22425
22426 2010-04-20  Eric Blake  <eblake@redhat.com>
22427
22428         tests: be robust to ignored SIGPIPE
22429         * tests/test-select-in.sh: Consume all output.
22430         * tests/test-lseek.sh: Check correct exit status, while avoiding
22431         EPIPE.
22432
22433 2010-04-20  Simon Josefsson  <simon@josefsson.org>
22434             Bruno Haible  <bruno@clisp.org>
22435
22436         visibility: Don't use -fvisibility if it leads to a warning.
22437         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
22438         yes, don't pretend that visibility works if it leads to a warning.
22439         Reported by Mike Gran <spk121@yahoo.com>.
22440
22441 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
22442
22443         * build-aux/bootstrap: Use "git -h" for testing for supported options
22444         instead of "git --help".  The short-form option only shows a summary,
22445         and doesn't layout the full man page.  Grep for the full option name
22446         in the summary, too.
22447
22448 2010-04-19  Bruno Haible  <bruno@clisp.org>
22449
22450         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
22451         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
22452         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
22453         mention of RELOCATABLE_STRIP.
22454         Reported by Sylvain Beucler <beuc@beuc.net>.
22455
22456 2010-04-19  Bruno Haible  <bruno@clisp.org>
22457
22458         * lib/diffseq.h: Fix typo in comment.
22459         Reported by Eric Blake.
22460
22461 2010-04-19  Bruno Haible  <bruno@clisp.org>
22462
22463         ioctl: Move autoconf macro to a .m4 file.
22464         * m4/ioctl.m4: New file, extracted from modules/ioctl.
22465         * modules/ioctl (Files): Add it.
22466         (configure.ac): Simply invoke gl_FUNC_IOCTL.
22467         Reported by Ian Beckwith <ianb@erislabs.net>.
22468
22469 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
22470             Bruno Haible  <bruno@clisp.org>
22471
22472         diffseq: Accommodate use-case with abstract arrays.
22473         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
22474         is not defined.
22475         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
22476         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
22477
22478 2010-04-18  Bruno Haible  <bruno@clisp.org>
22479
22480         * doc/posix-headers/stdbool.texi: More precise wording.
22481
22482 2010-04-17  Jim Meyering  <meyering@redhat.com>
22483
22484         maint.mk: use gnu-style indentation in an embedded perl script
22485         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
22486         Rename variable: s/two/last_two_bytes/
22487
22488 2010-04-16  Eric Blake  <eblake@redhat.com>
22489
22490         test-stdbool: skip test that fails with Solaris CC
22491         * tests/test-stdbool.c (f): Skip test that causes compilation
22492         error under buggy C++ compiler.
22493         * lib/stdbool.in.h: Document the limitation.
22494         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
22495
22496         setenv: allow compilation with C++
22497         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
22498         register keyword.
22499
22500         stdint: allow test to pass with C++
22501         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
22502
22503         getopt: allow compilation with C++
22504         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
22505         struct.
22506         * lib/getopt.c (_getopt_internal_r): Use correct type.
22507         Reported by Dagobert Michelson, via Joel E. Denny.
22508
22509 2010-04-16  Bruno Haible  <bruno@clisp.org>
22510
22511         Override netdb.h always.
22512         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
22513         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
22514         Reported by Ludovic Courtès <ludo@gnu.org>.
22515
22516 2010-04-15  Bruno Haible  <bruno@clisp.org>
22517
22518         openpty: Fix mistake from 2010-03-21.
22519         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
22520         Reported by Simon Josefsson.
22521
22522 2010-04-15  Eric Blake  <eblake@redhat.com>
22523
22524         test-forkpty: fix expected signature
22525         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
22526         Reported by Simon Josefsson.
22527
22528 2010-04-15  Jim Meyering  <meyering@redhat.com>
22529
22530         maint.mk: texinfo_suffix_re_: correct the default regexp
22531         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
22532
22533         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
22534         make it configurable via texinfo_suffix_re_.
22535
22536 2010-04-14  Eric Blake  <eblake@redhat.com>
22537
22538         strtok_r: relax license to LGPLv2+
22539         * modules/strtok_r (License): Relax license.
22540         Reported by Matthias Bolte.
22541
22542 2010-04-14  Simon Josefsson  <simon@josefsson.org>
22543
22544         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
22545         version 1.4.4 by default instead of requiring the libgcrypt
22546         version used during build.  This makes it possible to use the
22547         application with older but still binary compatible libgcrypt
22548         versions.
22549
22550 2010-04-13  Eric Blake  <eblake@redhat.com>
22551
22552         getopt-gnu: match recent glibc fixes and posix ruling
22553         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
22554         '+' handling, when requesting extensions.
22555         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
22556         'W;' handling.
22557         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
22558         * doc/posix-functions/getopt.texi (getopt): Document this.
22559         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
22560         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22561         Likewise.
22562
22563         getopt: merge bug fixes from glibc
22564         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
22565         diagnostics.  Honor '+:' correctly.  Reject ';'.
22566
22567         getopt-posix: detect MacOS bug
22568         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
22569         optind when missing a required argument.
22570         * doc/posix-functions/getopt.texi (getopt): Document the bug.
22571         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
22572         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22573         Likewise.
22574
22575         getopt-posix: avoid spurious failure on Solaris
22576         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
22577         an indicator that setting optind=1 is sufficient for reset.
22578
22579         getopt-posix: avoid spurious failure on FreeBSD
22580         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
22581         in POSIX mode, since the m4 test uses it.
22582
22583         gnulib-tool: silence warning on BSD sh
22584         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
22585
22586 2010-04-13  Jim Meyering  <meyering@redhat.com>
22587
22588         doc: users.txt: GNU patch now uses gnulib
22589         * users.txt: Add patch.
22590
22591 2010-04-12  Jim Meyering  <meyering@redhat.com>
22592
22593         maint.mk: generate more concise timing data for syntax-check rules
22594         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
22595         " done" from each line that reports a syntax-check test duration.
22596
22597 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
22598
22599         git-version-gen: use "git update-index..." rather than "git status"
22600         * build-aux/git-version-gen: Use git update-index --refresh, not
22601         "git status".  With some versions of git, "git status" would fail
22602         to update the index and result in an unwarranted "-dirty" suffix.
22603
22604 2010-04-11  Jim Meyering  <meyering@redhat.com>
22605
22606         openat: correct formatting (no semantic change)
22607         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
22608         Suggested by Bruno Haible.
22609
22610 2010-04-11  Bruno Haible  <bruno@clisp.org>
22611
22612         Stricter declaration checking in testdirs.
22613         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22614         If for_tests is true, augment AM_CPPFLAGS to define
22615         GNULIB_STRICT_CHECKING.
22616         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
22617         GNULIB_STRICT_CHECKING is defined, verify that the function is
22618         declared.
22619
22620 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
22621             Bruno Haible  <bruno@clisp.org>
22622
22623         libunistring: Improve configure output.
22624         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
22625         Don't say "consider installing GNU libunistring" when checking again
22626         with libiconv.
22627
22628 2010-04-11  Bruno Haible  <bruno@clisp.org>
22629
22630         libunistring: Correct value of $LTLIBUNISTRING.
22631         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
22632         correct the value of $LTLIBUNISTRING.
22633
22634 2010-04-11  Bruno Haible  <bruno@clisp.org>
22635
22636         havelib: Add static libraries to LIBS in the right order.
22637         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
22638         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
22639
22640 2010-04-11  Bruno Haible  <bruno@clisp.org>
22641
22642         libunistring: Detect libunistring also when it depends on libiconv.
22643         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
22644         the second AC_LIB_HAVE_LINKFLAGS invocation.
22645
22646 2010-04-11  James Youngman  <jay@gnu.org>
22647
22648         close-stream: declare local scalars to be "const"
22649         * lib/close-stream.c (close_stream): Make boolean variables const
22650         to document the fact that we set but do not change them.
22651
22652 2010-04-11  Bruno Haible  <bruno@clisp.org>
22653
22654         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
22655
22656 2010-04-11  Jim Meyering  <meyering@redhat.com>
22657
22658         maint.mk: don't include dist-check.mk
22659         * top/maint.mk: Remove bogus include directive.
22660
22661         maint.mk: improve empty-line-at-EOF check
22662         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
22663         solution, rather than tail+Perl-based one.  The latter would read
22664         a few kilobytes from the end of each file, and did not handle empty
22665         files properly.
22666
22667         maint.mk: print the elapsed time for each syntax-check rule
22668         * top/maint.mk (sc_m_rules_): Save start time in a file.
22669         (sc_z_rules_): New rules: remove temp file and print elapsed time.
22670         (local-check): Interpose the .z rules
22671
22672 2010-04-11  Jim Meyering  <meyering@redhat.com>
22673
22674         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
22675         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
22676         empty file with one that ends in an empty line.
22677
22678 2010-04-10  Bruno Haible  <bruno@clisp.org>
22679
22680         mkdir: Make it work on mingw64.
22681         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
22682         * lib/mkdir.c: Update comment.
22683         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
22684
22685 2010-04-10  Bruno Haible  <bruno@clisp.org>
22686
22687         Don't override improved macro from newer autoconf.
22688         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
22689         autoconf >= 2.62.
22690         Reported by Joel E. Denny <jdenny@clemson.edu>.
22691
22692 2010-04-10  Jim Meyering  <meyering@redhat.com>
22693
22694         maint.mk: new syntax-check rule: prohibit empty lines at end of file
22695         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
22696
22697         maint.mk: correct a diagnostic
22698         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
22699         in diagnostic; now use $prohibit.
22700
22701 2010-04-10  Bruno Haible  <address@hidden>
22702
22703         fchownat: Fix a C++ test error on Solaris 8.
22704         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
22705         the function does not exist.
22706
22707 2010-04-10  Bruno Haible  <bruno@clisp.org>
22708
22709         vasnprintf: Add more tests.
22710         * tests/test-vasnprintf-posix.c: Include <errno.h>.
22711         (test_function): Test converting an invalid wide string.
22712
22713         vasnprintf: Correct handling of unconvertible wide string arguments.
22714         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
22715         VASNPRINTF.
22716         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
22717         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
22718         smaller than the expected maximum need for the directive. Set errno to
22719         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
22720         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
22721         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
22722         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
22723         * modules/vasnprintf (Files): Add m4/printf.m4.
22724         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22725
22726 2010-04-10  Bruno Haible  <bruno@clisp.org>
22727
22728         vasnprintf: Fix crash in %ls directive.
22729         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
22730         string is passed as argument to %ls, with no precision and no width.
22731         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22732
22733 2010-04-10  Bruno Haible  <bruno@clisp.org>
22734
22735         vasnprintf: Fix multiple test failures on mingw.
22736         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
22737         _snprintf, or snwprintf, not _snwprintf.
22738
22739 2010-04-10  Bruno Haible  <bruno@clisp.org>
22740
22741         write: Fix a C++ test error on mingw.
22742         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
22743
22744 2010-04-10  Bruno Haible  <bruno@clisp.org>
22745
22746         vasnprintf test: Reduce code duplication.
22747         * tests/test-vasnprintf.c (test_function): New function, extracted from
22748         test_vasnprintf.
22749         (test_vasnprintf, test_asnprintf): Invoke it.
22750
22751 2010-04-10  Bruno Haible  <bruno@clisp.org>
22752
22753         strnlen: Fix warning in C++ mode on MacOS X.
22754         * lib/string.in.h (strnlen): Use the modern idiom.
22755         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
22756         defining strnlen as a macro already in <config.h>.
22757         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22758         REPLACE_STRNLEN.
22759         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
22760         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22761
22762 2010-04-08  James Youngman  <jay@gnu.org>
22763
22764         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
22765         the example.
22766
22767 2010-04-09  Jim Meyering  <meyering@redhat.com>
22768
22769         maint.mk: print better diagnostic when there is no $(_hv_file)
22770         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
22771         announce that when $(_hv_file) (aka help-version) does not exist.
22772
22773         init.sh: run tr in the "C" locale to avoid multibyte interpretation
22774         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
22775         not try to interpret its random input bytes.  Jarno Rajahalme reported
22776         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
22777         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
22778         (mktempd_): Likewise, just in case.
22779
22780         ftruncate: add two years to projected module removal date: 2012
22781         * m4/ftruncate.m4: Adjust comments.
22782
22783         ftruncate: mark module as obsolete; even MinGW provides it, now
22784         * modules/ftruncate (Status): Obsolete.
22785         (Notice): Say that.
22786         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
22787         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
22788
22789 2010-04-08  Bruno Haible  <bruno@clisp.org>
22790
22791         Fix side effects from tests-related modules.
22792         * modules/dprintf-posix (Comment): New section.
22793         * modules/fprintf-posix (Comment): Likewise.
22794         * modules/obstack-printf-posix (Comment): Likewise.
22795         * modules/printf-posix (Comment): Likewise.
22796         * modules/snprintf-posix (Comment): Likewise.
22797         * modules/sprintf-posix (Comment): Likewise.
22798         * modules/vasnprintf-posix (Comment): Likewise.
22799         * modules/vasprintf-posix (Comment): Likewise.
22800         * modules/vdprintf-posix (Comment): Likewise.
22801         * modules/vfprintf-posix (Comment): Likewise.
22802         * modules/vprintf-posix (Comment): Likewise.
22803         * modules/vsnprintf-posix (Comment): Likewise.
22804         * modules/vsprintf-posix (Comment): Likewise.
22805         * modules/xprintf-posix (Comment): Likewise.
22806         * modules/xvasprintf-posix (Comment): Likewise.
22807         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
22808         * modules/floorf-tests (Depends-on): Likewise.
22809         * modules/round-tests (Depends-on): Likewise.
22810         * modules/roundf-tests (Depends-on): Likewise.
22811         * modules/trunc-tests (Depends-on): Likewise.
22812         * modules/truncf-tests (Depends-on): Likewise.
22813         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
22814         'fprintf-posix' module is not present.
22815         * tests/test-floorf2.c (check): Likewise.
22816         * tests/test-trunc2.c (check): Likewise.
22817         * tests/test-truncf2.c (check): Likewise.
22818         * tests/test-round2.c (equal): Likewise.
22819         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22820
22821 2010-04-07  Karl Berry  <karl@gnu.org>
22822
22823         * config/srclist.txt,
22824         * config/srclistvars.sh,
22825         * config/srclist-update: doc fixes.
22826
22827 2010-04-07  Jim Meyering  <meyering@redhat.com>
22828
22829         maint.mk: add a PATH crosschecking syntax-check rule
22830         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
22831         Useful if you use a test like the one in help-version (coreutils,
22832         diffutils, grep, gzip) that ensures $(VERSION) matches what is
22833         printed by prog --version.
22834
22835 2010-04-06  Bruno Haible  <bruno@clisp.org>
22836
22837         Fix link error on mingw.
22838         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
22839         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
22840
22841 2010-04-06  Bruno Haible  <bruno@clisp.org>
22842
22843         Assume rmdir exists.
22844         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
22845
22846 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
22847
22848         doc: update users.txt
22849         * users.txt: Add gcal.
22850
22851 2010-04-06  Jim Meyering  <meyering@redhat.com>
22852
22853         init.sh: simply unset TMPDIR rather than risking env -i
22854         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
22855         although it probably works fine on all Unix-based systems, some
22856         systems (Cygwin?) cannot tolerate a totally cleared environment.
22857         Suggestion from Eric Blake.
22858
22859 2010-04-06  Jim Meyering  <meyering@redhat.com>
22860
22861         init.sh: portability fix: use env's POSIX-specified -i option not -u
22862         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
22863         than unportable env -u.  Solaris 5.11's env lacks support for -u.
22864
22865 2010-04-05  Bruno Haible  <bruno@clisp.org>
22866
22867         btowc: Work around Cygwin 1.7.2 bug.
22868         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
22869         does not map NUL to 0.
22870         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
22871
22872 2010-04-05  Bruno Haible  <bruno@clisp.org>
22873
22874         Make the multithread modules work on Cygwin 1.7.2.
22875         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
22876         imported symbols can be declared weak, so that it returns "no" on
22877         Cygwin 1.7.2.
22878
22879 2010-04-05  Bruno Haible  <bruno@clisp.org>
22880
22881         Use the module 'strncat'.
22882         * modules/unistr/u8-strncat (Depends-on): Add strncat.
22883
22884         Tests for module 'strncat'.
22885         * modules/strncat-tests: New file.
22886         * tests/test-strncat.c: New file.
22887
22888         New module 'strncat'.
22889         * lib/string.in.h (strncat): New declaration.
22890         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
22891         * m4/strncat.m4: New file, based on m4/memchr.m4.
22892         * modules/strncat: New file.
22893         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
22894         is declared.
22895         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
22896         REPLACE_STRNCAT.
22897         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
22898         REPLACE_STRNCAT.
22899         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
22900         module.
22901         * tests/test-string-c++.cc: Check signature of strncat.
22902
22903 2010-04-05  Jim Meyering  <meyering@redhat.com>
22904
22905         xstrtoumax-tests: convert to use init.sh
22906         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
22907         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
22908         Use Exit, not exit.
22909         Remove uses of $EXEEXT and "./" to run a program in the current dir.
22910
22911         xstrtoimax-tests: convert to use init.sh
22912         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
22913         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
22914         Use Exit, not exit.
22915         Remove uses of $EXEEXT and "./" to run a program in the current dir.
22916
22917 2010-04-05  Bruno Haible  <bruno@clisp.org>
22918
22919         sys_socket: Avoid #define replacements in C++ mode.
22920         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
22921         warning to the function if possible, rather than #defining the symbol
22922         to a dysfunctional alias.
22923
22924 2010-04-05  Bruno Haible  <bruno@clisp.org>
22925
22926         fseeko: Fix C++ test error on mingw.
22927         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
22928         gl_FUNC_FSEEKO.
22929         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
22930         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
22931         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
22932         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
22933
22934 2010-04-05  Bruno Haible  <bruno@clisp.org>
22935
22936         duplocale: Improve test output.
22937         * tests/test-duplocale.c (main): Print reason for skipped test.
22938
22939 2010-04-05  Bruno Haible  <bruno@clisp.org>
22940
22941         Assume rmdir exists.
22942         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
22943         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
22944
22945 2010-04-05  Bruno Haible  <bruno@clisp.org>
22946
22947         Fix link error on Solaris 8 with cc.
22948         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
22949
22950 2010-04-05  Bruno Haible  <bruno@clisp.org>
22951
22952         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
22953         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
22954
22955 2010-04-05  Bruno Haible  <bruno@clisp.org>
22956
22957         vasprintf: Update documentation.
22958         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
22959
22960 2010-04-05  Bruno Haible  <bruno@clisp.org>
22961
22962         ptsname: Improve test.
22963         * tests/test-ptsname.c (main): Also try the various master names of BSD
22964         systems.
22965
22966 2010-04-05  Bruno Haible  <bruno@clisp.org>
22967
22968         memchr: Avoid a possible C++ test error.
22969         * lib/string.in.h (memchr): Provide declaration if function is missing.
22970         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
22971         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
22972         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
22973         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
22974
22975 2010-04-05  Bruno Haible  <bruno@clisp.org>
22976
22977         strtok_r: Improve idiom.
22978         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
22979         AC_LIBOBJ is used.
22980
22981 2010-04-05  Bruno Haible  <bruno@clisp.org>
22982
22983         strdup: Improve idiom.
22984         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
22985         AC_LIBOBJ is used.
22986         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
22987         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
22988         when AC_LIBOBJ is used.
22989
22990 2010-04-05  Bruno Haible  <bruno@clisp.org>
22991
22992         mbsinit, mbrtowc, wcrtomb: Improve idioms.
22993         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
22994         don't set REPLACE_MBSINIT to 1.
22995         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
22996         don't set REPLACE_MBRTOWC to 1.
22997         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
22998         exist, don't set REPLACE_MBSRTOWCS to 1.
22999         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
23000         exist, don't set REPLACE_MBSNRTOWCS to 1.
23001         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
23002         don't set REPLACE_WCRTOMB to 1.
23003         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
23004         exist, don't set REPLACE_WCSRTOMBS to 1.
23005         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
23006         exist, don't set REPLACE_WCSNRTOMBS to 1.
23007
23008 2010-04-05  Bruno Haible  <bruno@clisp.org>
23009
23010         ldexpl: Improve idiom.
23011         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
23012         make sure to set HAVE_DECL_LDEXPL to 0.
23013
23014 2010-04-05  Jim Meyering  <meyering@redhat.com>
23015
23016         xstrtol-tests: convert to use init.sh
23017         * modules/xstrtol-tests (Files): Add tests/init.sh.
23018         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23019         Use Exit, not exit.
23020         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23021
23022         atexit-tests: convert to use init.sh
23023         * modules/atexit-tests (Files): Add tests/init.sh.
23024         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
23025         Use Exit, not exit.
23026         Remove uses of $EXEEXT and "./" to run a program in the current dir.
23027
23028         init.sh: fix typo
23029         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
23030
23031         init.sh: make it easier for a test script to write to the tty, ...
23032         when using automake's parallel-tests mode.
23033         * tests/init.sh (stderr_fileno_): Define overridable variable.
23034         (warn_): New function, to use it.
23035         (fail_, skip_, framework_failure_): Use warn_.
23036
23037 2010-04-04  Bruno Haible  <bruno@clisp.org>
23038
23039         btowc: Avoid warning.
23040         * lib/btowc.c: Include <stdlib.h>.
23041         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
23042
23043 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
23044             Bruno Haible  <bruno@clisp.org>
23045
23046         wchar: Port to NetBSD 1.5.
23047         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
23048         * lib/wctype.in.h (WEOF): Likewise.
23049
23050 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
23051             Bruno Haible  <bruno@clisp.org>
23052
23053         Port extended stdio to NetBSD 1.5.
23054         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
23055         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
23056         older.
23057
23058 2010-04-04  Bruno Haible  <bruno@clisp.org>
23059
23060         string: Remove unused substitution.
23061         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
23062         HAVE_DECL_STRERROR.
23063         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
23064
23065 2010-04-04  Bruno Haible  <bruno@clisp.org>
23066
23067         strtod: Avoid a possible C++ test error.
23068         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
23069         set REPLACE_STRTOD.
23070
23071 2010-04-04  Bruno Haible  <bruno@clisp.org>
23072
23073         strerror: Update documentation.
23074         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
23075
23076 2010-04-04  Bruno Haible  <bruno@clisp.org>
23077
23078         stdio: Fix some C++ test errors on Solaris 8 with GCC.
23079         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
23080         _GL_CXXALIAS_SYS_CAST.
23081
23082 2010-04-04  Bruno Haible  <bruno@clisp.org>
23083
23084         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
23085         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
23086         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
23087         REPLACE_FREXPL to 1.
23088         * doc/posix-functions/frexpl.texi: Update documentation.
23089
23090 2010-04-04  Bruno Haible  <bruno@clisp.org>
23091
23092         math: Fix some C++ test errors on Solaris 8 and Cygwin.
23093         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
23094
23095 2010-04-04  Bruno Haible  <bruno@clisp.org>
23096
23097         Implement nanosleep for native Windows.
23098         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
23099
23100 2010-04-04  Bruno Haible  <bruno@clisp.org>
23101
23102         math: Fix some C++ test errors on Solaris 8.
23103         * lib/math.in.h (truncf, trunc): Use simpler idiom.
23104
23105 2010-04-04  Bruno Haible  <bruno@clisp.org>
23106
23107         math: Fix some C++ test errors on Cygwin.
23108         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
23109         truncl): Provide declaration if the system does not have it.
23110         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
23111         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
23112         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
23113         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
23114         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
23115         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
23116         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
23117         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
23118         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
23119         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
23120         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
23121         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
23122         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
23123         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
23124         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
23125         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
23126         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
23127         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
23128         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
23129         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
23130         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
23131         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
23132
23133 2010-04-04  Bruno Haible  <bruno@clisp.org>
23134
23135         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
23136         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
23137         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
23138         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
23139         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
23140         * m4/isinf.m4 (gl_ISINF): Likewise.
23141         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23142
23143 2010-04-04  Bruno Haible  <bruno@clisp.org>
23144
23145         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
23146         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
23147
23148 2010-04-04  Bruno Haible  <bruno@clisp.org>
23149
23150         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
23151         * modules/tmpfile (configure.ac): Update.
23152
23153         tmpfile: Fix C++ test error on mingw.
23154         * lib/stdio.in.h (tmpfile): New declaration.
23155         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
23156         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
23157         * modules/tmpfile (Depends-on): Add stdio.
23158         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
23159         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
23160         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
23161         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
23162         REPLACE_TMPFILE.
23163         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
23164
23165 2010-04-04  Bruno Haible  <bruno@clisp.org>
23166
23167         ioctl: Fix C++ test error on mingw.
23168         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
23169         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
23170         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
23171
23172 2010-04-03  Bruno Haible  <bruno@clisp.org>
23173
23174         wcwidth: Fix C++ test error on mingw.
23175         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
23176         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
23177         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
23178
23179 2010-04-03  Bruno Haible  <bruno@clisp.org>
23180
23181         nanosleep: Fix C++ test error on mingw.
23182         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
23183         * lib/time.in.h (nanosleep): Use modern idiom.
23184         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
23185         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
23186         REPLACE_NANOSLEEP to 1.
23187         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
23188         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
23189
23190 2010-04-03  Bruno Haible  <bruno@clisp.org>
23191
23192         strptime: Fix C++ test error on mingw.
23193         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
23194         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
23195         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
23196         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
23197         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
23198         not REPLACE_STRPTIME.
23199         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
23200         REPLACE_STRPTIME.
23201
23202 2010-04-03  Bruno Haible  <bruno@clisp.org>
23203
23204         timegm: Fix C++ test error on mingw.
23205         * lib/time.in.h (timegm): Use modern idiom.
23206         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
23207         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
23208         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
23209         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
23210
23211 2010-04-03  Bruno Haible  <bruno@clisp.org>
23212
23213         timegm: Assume declaration if function exists.
23214         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
23215         if it exists. Don't clobber ac_cv_func_timegm.
23216
23217 2010-04-03  Bruno Haible  <bruno@clisp.org>
23218
23219         time_r: Fix C++ test error on mingw.
23220         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
23221         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
23222         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
23223         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
23224         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
23225
23226 2010-04-03  Bruno Haible  <bruno@clisp.org>
23227
23228         time_r: Minor updates.
23229         * modules/time_r (Description): Mention the provided functions.
23230         * lib/time_r.c: Don't include <string.h>.
23231         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
23232         * doc/posix-functions/localtime_r.texi: Likewise.
23233
23234 2010-04-03  Bruno Haible  <bruno@clisp.org>
23235
23236         time: Fix regression introduced on 2010-03-08.
23237         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
23238         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
23239
23240 2010-04-03  Jim Meyering  <meyering@redhat.com>
23241
23242         maint.mk: don't silently disable project-specific syntax-check rules
23243         * top/maint.mk (_prohibit_regexp): Define, to help people realize
23244         that they need to convert their project-specific syntax-check rules
23245         to use the new _sc_search_regexp.
23246
23247 2010-04-03  Bruno Haible  <bruno@clisp.org>
23248
23249         fchdir: Fix regression introduced on 2010-03-08.
23250         * lib/unistd.in.h (fchdir): Fix declaration.
23251         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
23252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
23253         REPLACE_FCHDIR.
23254         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
23255         REPLACE_FCHDIR.
23256
23257 2010-04-03  Bruno Haible  <bruno@clisp.org>
23258
23259         getpagesize: Fix C++ test error on mingw.
23260         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
23261         system does not declare the function.
23262         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
23263         declared.
23264         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23265         HAVE_DECL_GETPAGESIZE.
23266         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
23267
23268 2010-04-03  Bruno Haible  <bruno@clisp.org>
23269
23270         stdio: Make C++ tests work on mingw.
23271         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
23272         does not declare the function.
23273
23274 2010-04-03  Bruno Haible  <bruno@clisp.org>
23275
23276         ftello: Fix C++ test error on mingw.
23277         * lib/stdio.in.h (ftello): Use modern idiom.
23278         * lib/ftello.c (ftello): Renamed from rpl_ftello.
23279         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
23280         is missing and that it needs to be replaced.
23281         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
23282         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
23283         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
23284
23285 2010-04-03  Bruno Haible  <bruno@clisp.org>
23286
23287         fseeko: Fix C++ test error on mingw.
23288         * lib/stdio.in.h (fseeko): Use modern idiom.
23289         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
23290         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
23291         is missing and that it needs to be replaced.
23292         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
23293         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
23294         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
23295
23296 2010-04-03  Bruno Haible  <bruno@clisp.org>
23297
23298         mkstemp: Fix C++ test error on mingw.
23299         * lib/stdlib.in.h (mkstemp): Use modern idiom.
23300         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
23301         function is missing and that it needs to be replaced.
23302         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
23303         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
23304
23305 2010-04-03  Bruno Haible  <bruno@clisp.org>
23306
23307         stpncpy: Fix C++ test error on mingw.
23308         * lib/string.in.h (stpncpy): Use modern idiom.
23309         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
23310         function is missing and that it needs to be replaced.
23311         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23312         REPLACE_STPNCPY.
23313         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
23314
23315 2010-04-03  Bruno Haible  <bruno@clisp.org>
23316
23317         sys_stat: Fix C++ test error on mingw.
23318         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
23319         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
23320
23321 2010-04-03  Bruno Haible  <bruno@clisp.org>
23322
23323         pty: Update doc.
23324         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
23325
23326 2010-04-03  Bruno Haible  <bruno@clisp.org>
23327
23328         unistd: Fix C++ test error on mingw.
23329         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
23330
23331 2010-04-03  Bruno Haible  <bruno@clisp.org>
23332
23333         Update doc regarding mingw.
23334         * doc/glibc-functions/openpty.texi: Update regarding mingw.
23335         * doc/glibc-functions/login_tty.texi: Likewise.
23336         * doc/glibc-functions/forkpty.texi: Likewise.
23337
23338 2010-04-03  Bruno Haible  <bruno@clisp.org>
23339
23340         stdlib: Avoid compilation failure of c-strtold on mingw.
23341         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
23342
23343 2010-04-03  Bruno Haible  <bruno@clisp.org>
23344
23345         locale: Make C++ tests work on Cygwin and mingw.
23346         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
23347         cannot provide the function.
23348         Reported by Simon Josefsson.
23349
23350 2010-04-03  Bruno Haible  <bruno@clisp.org>
23351
23352         localename: Port to MacOS X 10.6.
23353         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
23354         memory layout of the locales in MacOS X 10.6 as well.
23355         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
23356
23357 2010-04-02  Bruno Haible  <bruno@clisp.org>
23358
23359         gnulib-tool: Ensure that long-running tests are executed last.
23360         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
23361         running tests after the one for the other tests.
23362
23363 2010-04-02  Bruno Haible  <bruno@clisp.org>
23364
23365         gnulib-tool: Ensure the tests in the main directory are executed first.
23366         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
23367         start with the current directory.
23368
23369 2010-04-02  Bruno Haible  <bruno@clisp.org>
23370
23371         Tests for module 'havelib', moved here from GNU gettext.
23372         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
23373         modifications.
23374         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
23375         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
23376         with modifications.
23377         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
23378         modifications.
23379         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
23380         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
23381         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
23382         with modifications.
23383         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
23384         with modifications.
23385         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
23386         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
23387         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
23388         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
23389         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
23390         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
23391         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
23392         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
23393         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
23394         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
23395         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
23396         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
23397         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
23398         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
23399         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
23400         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
23401         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
23402         with modifications.
23403         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
23404         with modifications.
23405         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
23406         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
23407         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
23408         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
23409         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
23410         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
23411         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
23412         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
23413         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
23414         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
23415         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
23416         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
23417         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
23418         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
23419         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
23420         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
23421         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
23422         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
23423         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
23424         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
23425         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
23426         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
23427         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
23428         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
23429         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
23430         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
23431         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
23432         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
23433         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
23434         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
23435         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
23436         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
23437         * tests/havelib/rpathx/rpathx.c: New file, from
23438         gettext/autoconf-lib-link.
23439         * tests/havelib/rpathx/Makefile.am: New file, from
23440         gettext/autoconf-lib-link.
23441         * tests/havelib/rpathx/configure.ac: New file, from
23442         gettext/autoconf-lib-link with modifications.
23443         * tests/havelib/rpathy/rpathy.c: New file, from
23444         gettext/autoconf-lib-link.
23445         * tests/havelib/rpathy/Makefile.am: New file, from
23446         gettext/autoconf-lib-link.
23447         * tests/havelib/rpathy/configure.ac: New file, from
23448         gettext/autoconf-lib-link with modifications.
23449         * tests/havelib/rpathz/rpathz.c: New file, from
23450         gettext/autoconf-lib-link.
23451         * tests/havelib/rpathz/Makefile.am: New file, from
23452         gettext/autoconf-lib-link.
23453         * tests/havelib/rpathz/configure.ac: New file, from
23454         gettext/autoconf-lib-link with modifications.
23455         * tests/havelib/rpathlx/usex.c: New file, from
23456         gettext/autoconf-lib-link.
23457         * tests/havelib/rpathlx/Makefile.am: New file, from
23458         gettext/autoconf-lib-link.
23459         * tests/havelib/rpathlx/configure.ac: New file, from
23460         gettext/autoconf-lib-link with modifications.
23461         * tests/havelib/rpathly/usey.c: New file, from
23462         gettext/autoconf-lib-link.
23463         * tests/havelib/rpathly/Makefile.am: New file, from
23464         gettext/autoconf-lib-link.
23465         * tests/havelib/rpathly/configure.ac: New file, from
23466         gettext/autoconf-lib-link with modifications.
23467         * tests/havelib/rpathlz/usez.c: New file, from
23468         gettext/autoconf-lib-link.
23469         * tests/havelib/rpathlz/Makefile.am: New file, from
23470         gettext/autoconf-lib-link.
23471         * tests/havelib/rpathlz/configure.ac: New file, from
23472         gettext/autoconf-lib-link with modifications.
23473         * tests/havelib/rpathlyx/usey.c: New file, from
23474         gettext/autoconf-lib-link.
23475         * tests/havelib/rpathlyx/Makefile.am: New file, from
23476         gettext/autoconf-lib-link.
23477         * tests/havelib/rpathlyx/configure.ac: New file, from
23478         gettext/autoconf-lib-link with modifications.
23479         * tests/havelib/rpathlzyx/usez.c: New file, from
23480         gettext/autoconf-lib-link.
23481         * tests/havelib/rpathlzyx/Makefile.am: New file, from
23482         gettext/autoconf-lib-link.
23483         * tests/havelib/rpathlzyx/configure.ac: New file, from
23484         gettext/autoconf-lib-link with modifications.
23485         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
23486         with modifications.
23487
23488 2010-04-02  Bruno Haible  <bruno@clisp.org>
23489
23490         gnulib-tool: Create distributed built sources also for the tests.
23491         * gnulib-tool (func_create_testdir): Also generate distributed built
23492         sources in the tests directory.
23493
23494 2010-04-02  Bruno Haible  <bruno@clisp.org>
23495
23496         gnulib-tool: Obey user's environment variables.
23497         * gnulib-tool (func_create_testdir): When creating built sources,
23498         respect the environment variables for autoconf, automake, etc. given by
23499         the user.
23500
23501 2010-04-02  Bruno Haible  <bruno@clisp.org>
23502
23503         gnulib-tool: Provide the value of --m4-base to modules.
23504         * gnulib-tool (func_import, func_create_testdir): Emit a definition
23505         of gl_m4_base.
23506
23507 2010-04-02  Eric Blake  <eblake@redhat.com>
23508
23509         maint.mk: fix some fallout
23510         * NEWS: Document the incompatible change, and its effect on cfg.mk.
23511         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
23512
23513 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
23514
23515         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
23516         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
23517         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
23518         (sc_cast_of_x_alloc_return_value): Likewise.
23519         (sc_cast_of_alloca_return_value): Likewise.
23520         (sc_space_tab): Likewise.
23521         (sc_prohibit_atoi_atof): Likewise.
23522         (sc_prohibit_magic_number_exit): Likewise.
23523         (sc_error_exit_success): Likewise.
23524         (sc_file_system): Likewise.
23525         (sc_prohibit_have_config_h): Likewise.
23526         (sc_require_config_h): Likewise.
23527         (sc_prohibit_HAVE_MBRTOWC): Likewise.
23528         (sc_obsolete_symbols): Likewise.
23529         (sc_changelog): Likewise.
23530         (sc_program_name): Likewise.
23531         (sc_the_the): Likewise.
23532         (sc_trailing_blank): Likewise.
23533         (sc_two_space_separator_in_usage): Likewise.
23534         (sc_useless_cpp_parens): Likewise.
23535         (sc_GPL_version): Likewise.
23536         (sc_GFDL_version): Likewise.
23537         (sc_texinfo_acronym): Likewise.
23538         (sc_prohibit_cvs_keyword): Likewise.
23539         (sc_prohibit_stat_st_blocks): Likewise.
23540         (sc_prohibit_S_IS_definition): Likewise.
23541         (sc_redundant_const): Likewise.
23542         (sc_makefile_TAB_only_indentation): Likewise.
23543         (sc_m4_quote_check): Likewise.
23544         (sc_makefile_path_separator_check): Likewise.
23545         (sc_copyright_check): Likewise.
23546         (sc_Wundef_boolean): Likewise.
23547         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
23548
23549         maint.mk: match 0 or more whitespace-before-function-call '('
23550         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
23551         that have zero or two-and-more spaces between the function name
23552         and the open parenthesis.
23553         (sc_error_message_warn_fatal): Likewise.
23554         (sc_error_message_uppercase): Likewise.
23555         (sc_error_message_period): Likewise.
23556
23557 2010-03-31  Eric Blake  <eblake@redhat.com>
23558
23559         maint.mk: check for [ as well as test
23560         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
23561         Based on a libvirt report by Matthias Bolte.
23562
23563         gnumakefile: don't squelch _version output
23564         * top/GNUmakefile (_version): Create one-shot dependency rather
23565         than using $(shell) when version must be regenerated.
23566         (_autoreconf): Run verbosely, by default.
23567
23568         sys_time: avoid compiler warnings
23569         * lib/sys_time.in.h (includes): Ensure gcc pragma is
23570         unconditional, fixing regression from 2010-03-29.
23571         Reported by Simon Josefsson.
23572
23573 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
23574
23575         maint.mk: s/_header_without_use/_sc_header_without_use/
23576         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
23577         (sc_prohibit_assert_without_use): Use the new name.
23578         (sc_prohibit_close_stream_without_use): Likewise.
23579         (sc_prohibit_getopt_without_use): Likewise.
23580         (sc_prohibit_quotearg_without_use): Likewise.
23581         (sc_prohibit_quote_without_use): Likewise.
23582         (sc_prohibit_long_options_without_use): Likewise.
23583         (sc_prohibit_inttostr_without_use): Likewise.
23584         (sc_prohibit_ignore_value_without_use): Likewise.
23585         (sc_prohibit_error_without_use): Likewise.
23586         (sc_prohibit_xalloc_without_use): Likewise.
23587         (sc_prohibit_hash_without_use): Likewise.
23588         (sc_prohibit_hash_pjw_without_use): Likewise.
23589         (sc_prohibit_safe_read_without_use): Likewise.
23590         (sc_prohibit_argmatch_without_use): Likewise.
23591         (sc_prohibit_canonicalize_without_use): Likewise.
23592         (sc_prohibit_root_dev_ino_without_use): Likewise.
23593         (sc_prohibit_openat_without_use): Likewise.
23594         (sc_prohibit_c_ctype_without_use): Likewise.
23595         (sc_prohibit_signal_without_use): Likewise.
23596         (sc_prohibit_intprops_without_use): Likewise.
23597
23598 2010-03-30  Eric Blake  <eblake@redhat.com>
23599
23600         maint: improve module indicators
23601         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
23602         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
23603         columns, and avoid extra macro expansion.
23604
23605         fdopendir: work around FreeBSD bug
23606         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
23607         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
23608         * modules/dirent (Makefile.am): Substitute it.
23609         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
23610         declaration.
23611         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
23612         fix.
23613         Reported by Christian Weisgerber <naddy@mips.inka.de>.
23614
23615 2010-03-29  Bruno Haible  <bruno@clisp.org>
23616
23617         Emit #pragma system_header after the inclusion guard, not before.
23618         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
23619         guard that spans the entire file, not before. This enables an
23620         optimization in GCC's preprocessor.
23621         * lib/ctype.in.h: Likewise.
23622         * lib/dirent.in.h: Likewise.
23623         * lib/errno.in.h: Likewise.
23624         * lib/float.in.h: Likewise.
23625         * lib/getopt.in.h: Likewise.
23626         * lib/iconv.in.h: Likewise.
23627         * lib/langinfo.in.h: Likewise.
23628         * lib/locale.in.h: Likewise.
23629         * lib/math.in.h: Likewise.
23630         * lib/netdb.in.h: Likewise.
23631         * lib/netinet_in.in.h: Likewise.
23632         * lib/pty.in.h: Likewise.
23633         * lib/sched.in.h: Likewise.
23634         * lib/se-selinux.in.h: Likewise.
23635         * lib/search.in.h: Likewise.
23636         * lib/spawn.in.h: Likewise.
23637         * lib/stdarg.in.h: Likewise.
23638         * lib/stdint.in.h: Likewise.
23639         * lib/string.in.h: Likewise.
23640         * lib/strings.in.h: Likewise.
23641         * lib/sys_file.in.h: Likewise.
23642         * lib/sys_ioctl.in.h: Likewise.
23643         * lib/sys_time.in.h: Likewise.
23644         * lib/sys_times.in.h: Likewise.
23645         * lib/sys_utsname.in.h: Likewise.
23646         * lib/sys_wait.in.h: Likewise.
23647         * lib/sysexits.in.h: Likewise.
23648         * lib/wctype.in.h: Likewise.
23649
23650 2010-03-28  James Youngman  <jay@gnu.org>
23651
23652         save-cwd: don't leak a file descriptor when the caller execs.
23653         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
23654         saved file descriptor.
23655         * modules/save-cwd (Depends-on): Depend on cloexec.
23656
23657 2010-03-29  Bruno Haible  <bruno@clisp.org>
23658
23659         Remove vestiges of fts-lgpl module.
23660         * lib/fts_.h: Assume GNULIB_FTS is 1.
23661         * lib/fts.c: Likewise.
23662         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
23663
23664 2010-03-28  Bruno Haible  <bruno@clisp.org>
23665
23666         Fix definition of tests witness macro.
23667         * gnulib-tool (func_import): Fix definition of witness macro.
23668
23669 2010-03-28  Bruno Haible  <bruno@clisp.org>
23670
23671         Fix ioctl's protoype on glibc systems.
23672         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
23673         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
23674         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
23675         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
23676         signature. If not, arrange to replace the ioctl function.
23677         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
23678         REPLACE_IOCTL.
23679         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
23680         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
23681         Reported by Ludovic Courtès <ludo@gnu.org>.
23682
23683 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
23684
23685         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
23686         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
23687         made it so grep -r --include=GLOB* ... did not work.
23688
23689 2010-03-26  Jim Meyering  <meyering@redhat.com>
23690             Eric Blake  <eblake@redhat.com>
23691
23692         maint.mk: prohibit use of test's -o and -a operators
23693         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
23694
23695 2010-03-28  Bruno Haible  <bruno@clisp.org>
23696
23697         Remove unused GNULIB_XYZ macro definitions.
23698         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
23699         invocation.
23700
23701 2010-03-28  Bruno Haible  <bruno@clisp.org>
23702
23703         Mark privileged tests modules.
23704         * modules/idpriv-drop-tests (Status): New section.
23705         * modules/idpriv-droptemp-tests (Status): New section.
23706
23707 2010-03-28  Bruno Haible  <bruno@clisp.org>
23708
23709         Split C++ tests into separate tests modules.
23710         * modules/dirent-c++-tests: New file, extracted from
23711         modules/dirent-tests.
23712         * modules/dirent-tests: Depend on it.
23713         * modules/fcntl-h-c++-tests: New file, extracted from
23714         modules/fcntl-h-tests.
23715         * modules/fcntl-h-tests: Depend on it.
23716         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
23717         * modules/glob-tests: Depend on it.
23718         * modules/iconv-h-c++-tests: New file, extracted from
23719         modules/iconv-h-tests.
23720         * modules/iconv-h-tests: Depend on it.
23721         * modules/langinfo-c++-tests: New file, extracted from
23722         modules/langinfo-tests.
23723         * modules/langinfo-tests: Depend on it.
23724         * modules/locale-c++-tests: New file, extracted from
23725         modules/locale-tests.
23726         * modules/locale-tests: Depend on it.
23727         * modules/math-c++-tests: New file, extracted from modules/math-tests.
23728         * modules/math-tests: Depend on it.
23729         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
23730         * modules/pty-tests: Depend on it.
23731         * modules/search-c++-tests: New file, extracted from
23732         modules/search-tests.
23733         * modules/search-tests: Depend on it.
23734         * modules/signal-c++-tests: New file, extracted from
23735         modules/signal-tests.
23736         * modules/signal-tests: Depend on it.
23737         * modules/spawn-c++-tests: New file, extracted from
23738         modules/spawn-tests.
23739         * modules/spawn-tests: Depend on it.
23740         * modules/stdio-c++-tests: New file, extracted from
23741         modules/stdio-tests.
23742         * modules/stdio-tests: Depend on it.
23743         * modules/stdlib-c++-tests: New file, extracted from
23744         modules/stdlib-tests.
23745         * modules/stdlib-tests: Depend on it.
23746         * modules/string-c++-tests: New file, extracted from
23747         modules/string-tests.
23748         * modules/string-tests: Depend on it.
23749         * modules/sys_ioctl-c++-tests: New file, extracted from
23750         modules/sys_ioctl-tests.
23751         * modules/sys_ioctl-tests: Depend on it.
23752         * modules/sys_select-c++-tests: New file, extracted from
23753         modules/sys_select-tests.
23754         * modules/sys_select-tests: Depend on it.
23755         * modules/sys_socket-c++-tests: New file, extracted from
23756         modules/sys_socket-tests.
23757         * modules/sys_socket-tests: Depend on it.
23758         * modules/sys_stat-c++-tests: New file, extracted from
23759         modules/sys_stat-tests.
23760         * modules/sys_stat-tests: Depend on it.
23761         * modules/sys_time-c++-tests: New file, extracted from
23762         modules/sys_time-tests.
23763         * modules/sys_time-tests: Depend on it.
23764         * modules/time-c++-tests: New file, extracted from modules/time-tests.
23765         * modules/time-tests: Depend on it.
23766         * modules/unistd-c++-tests: New file, extracted from
23767         modules/unistd-tests.
23768         * modules/unistd-tests: Depend on it.
23769         * modules/wchar-c++-tests: New file, extracted from
23770         modules/wchar-tests.
23771         * modules/wchar-tests: Depend on it.
23772         * modules/wctype-c++-tests: New file, extracted from
23773         modules/wctype-tests.
23774         * modules/wctype-tests: Depend on it.
23775         Reported by Simon Josefsson.
23776
23777 2010-03-28  Bruno Haible  <bruno@clisp.org>
23778
23779         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
23780         * gnulib-tool (func_exists_module): New function, extracted from
23781         func_verify_module.
23782         (func_verify_module): Use it.
23783         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
23784         'foo' only if 'foo' exists.
23785         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
23786         module.
23787
23788 2010-03-28  Bruno Haible  <bruno@clisp.org>
23789
23790         gnulib-tool: Add support for special categories of tests.
23791         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
23792         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
23793         (func_usage): Document them.
23794         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
23795         inc_unportable_tests, inc_all_tests): New variables.
23796         (func_acceptable): Consider these variables.
23797         (func_modules_transitive_closure): Make it work when the 'Status' field
23798         consists of multiple words.
23799         (func_import): Store and restore the values of inc_cxx_tests,
23800         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
23801         inc_all_tests in gnulib-comp.m4.
23802         (func_create_testdir): Set inc_all_tests to true.
23803         * doc/gnulib.texi (Extra tests modules): New section.
23804         Suggested by Jim Meyering.
23805
23806 2010-03-28  Bruno Haible  <bruno@clisp.org>
23807
23808         ansi-c++-opt: Allow turning off the C++ build by default.
23809         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
23810         gl_CXX_CHOICE_DEFAULT_NO is defined.
23811         Requested by Eric Blake.
23812
23813 2010-03-28  Bruno Haible  <bruno@clisp.org>
23814
23815         unistd: Avoid #define replacements in C++ mode.
23816         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
23817         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
23818         setsockopt, shutdown, select): In C++, attach a warning to the function
23819         if possible, rather than #defining the symbol to a dysfunctional alias.
23820         Reported by John W. Eaton <jwe@gnu.org>.
23821
23822 2010-03-28  Bruno Haible  <bruno@clisp.org>
23823
23824         Fix link errors on mingw.
23825         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
23826         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
23827         $(LIBSOCKET).
23828         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
23829         $(LIBSOCKET).
23830
23831 2010-03-28  Bruno Haible  <bruno@clisp.org>
23832             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23833
23834         lib-ignore: Determine different options for different compilers.
23835         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
23836         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
23837         Add comments.
23838         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
23839         * NEWS: Mention the change.
23840
23841 2010-03-27  Bruno Haible  <bruno@clisp.org>
23842
23843         Remove unused GNULIB_XYZ macro definitions.
23844         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
23845         * modules/fseek (configure.ac): Likewise.
23846         * modules/ioctl (configure.ac): Likewise.
23847         * modules/open (configure.ac): Likewise.
23848         * modules/stdlib-safer (configure.ac): Likewise.
23849
23850 2010-03-27  Bruno Haible  <bruno@clisp.org>
23851
23852         Add a remark about certain modules.
23853         * modules/malloc (Comment): New section.
23854         * modules/realloc (Comment): Likewise.
23855         * modules/sigpipe (Comment): Likewise.
23856
23857 2010-03-27  Bruno Haible  <bruno@clisp.org>
23858
23859         Resolve conflict between the two kinds of module indicators.
23860         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
23861         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
23862         * modules/canonicalize (configure.ac): Invoke
23863         gl_MODULE_INDICATOR_FOR_TESTS.
23864         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
23865         GNULIB_XYZ.
23866         * tests/test-dirent-c++.cc: Likewise.
23867         * tests/test-dirent-safer.c: Likewise.
23868         * tests/test-dup2.c: Likewise.
23869         * tests/test-fchdir.c: Likewise.
23870         * tests/test-fcntl-h-c++.cc: Likewise.
23871         * tests/test-getopt.c: Likewise.
23872         * tests/test-getopt.h: Likewise.
23873         * tests/test-langinfo-c++.cc: Likewise.
23874         * tests/test-locale-c++.cc: Likewise.
23875         * tests/test-math-c++.cc: Likewise.
23876         * tests/test-pty-c++.cc: Likewise.
23877         * tests/test-search-c++.cc: Likewise.
23878         * tests/test-signal-c++.cc: Likewise.
23879         * tests/test-spawn-c++.cc: Likewise.
23880         * tests/test-stdio-c++.cc: Likewise.
23881         * tests/test-stdlib-c++.cc: Likewise.
23882         * tests/test-string-c++.cc: Likewise.
23883         * tests/test-sys_ioctl-c++.cc: Likewise.
23884         * tests/test-sys_select-c++.cc: Likewise.
23885         * tests/test-sys_socket-c++.cc: Likewise.
23886         * tests/test-sys_stat-c++.cc: Likewise.
23887         * tests/test-sys_time-c++.cc: Likewise.
23888         * tests/test-time-c++.cc: Likewise.
23889         * tests/test-unistd-c++.cc: Likewise.
23890         * tests/test-wchar-c++.cc: Likewise.
23891         * tests/uninorm/test-u8-nfc.c: Likewise.
23892         * tests/uninorm/test-u8-nfd.c: Likewise.
23893         * tests/uninorm/test-u8-nfkc.c: Likewise.
23894         * tests/uninorm/test-u8-nfkd.c: Likewise.
23895         * tests/uninorm/test-u16-nfc.c: Likewise.
23896         * tests/uninorm/test-u16-nfd.c: Likewise.
23897         * tests/uninorm/test-u16-nfkc.c: Likewise.
23898         * tests/uninorm/test-u16-nfkd.c: Likewise.
23899         * tests/uninorm/test-u32-nfc.c: Likewise.
23900         * tests/uninorm/test-u32-nfc-big.c: Likewise.
23901         * tests/uninorm/test-u32-nfd.c: Likewise.
23902         * tests/uninorm/test-u32-nfd-big.c: Likewise.
23903         * tests/uninorm/test-u32-nfkc.c: Likewise.
23904         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
23905         * tests/uninorm/test-u32-nfkd.c: Likewise.
23906         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
23907         * tests/uninorm/test-u32-normalize-big.c: Likewise.
23908
23909 2010-03-27  Bruno Haible  <bruno@clisp.org>
23910
23911         Distinguish two kinds of module indicators.
23912         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
23913         gl_MODULE_INDICATOR.
23914         (gl_MODULE_INDICATOR): New macro.
23915         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
23916         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
23917         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
23918         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
23919         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
23920         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
23921         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
23922         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
23923         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
23924         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
23925         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
23926         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
23927         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
23928         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
23929         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
23930         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
23931         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
23932         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
23933         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
23934         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
23935         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
23936         * modules/cloexec (configure.ac): Likewise.
23937         * modules/getopt-gnu (configure.ac): Likewise.
23938         * modules/uninorm/u8-normalize (configure.ac): Likewise.
23939         * modules/uninorm/u16-normalize (configure.ac): Likewise.
23940         * modules/uninorm/u32-normalize (configure.ac): Likewise.
23941         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
23942
23943 2010-03-27  Bruno Haible  <bruno@clisp.org>
23944
23945         New module description field 'Comment'.
23946         * gnulib-tool: New option --extract-comment.
23947         (func_usage): Document it.
23948         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
23949         (func_get_comment): New function.
23950         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
23951
23952 2010-03-27  Bruno Haible  <bruno@clisp.org>
23953
23954         Addendum to 2010-02-07 commit.
23955         * gnulib-tool (func_usage): Document --extract-applicability option.
23956
23957 2010-03-27  Bruno Haible  <bruno@clisp.org>
23958
23959         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
23960         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
23961         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
23962         rather than link errors.
23963
23964 2010-03-27  Bruno Haible  <bruno@clisp.org>
23965
23966         Avoid side effects from tests-related modules on the compilation of lib.
23967         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
23968         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
23969         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
23970         parameter. Emit into AM_CPPFLAGS a definition of the designated C
23971         macro.
23972         (func_import): Define a witness macro. Assign it a value that depends
23973         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
23974         tests-related modules.
23975         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
23976         Reported by Jim Meyering.
23977
23978 2010-03-27  Bruno Haible  <bruno@clisp.org>
23979
23980         Factorize common .m4 code.
23981         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
23982         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
23983         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
23984         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
23985         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
23986         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
23987         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
23988         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
23989         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
23990         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
23991         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
23992         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
23993         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
23994         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
23995         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
23996         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
23997         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
23998         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
23999         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
24000         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
24001         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
24002         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
24003         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
24004         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
24005         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
24006         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
24007         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
24008         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
24009         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
24010         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
24011         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
24012         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
24013
24014 2010-03-27  Bruno Haible  <bruno@clisp.org>
24015
24016         Fix a compilation error on Cygwin with g++ >= 4.3.
24017         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
24018         if it is undefined or if we alias it to chmod.
24019         (lstat): Don't warn about the use of this function if it is undefined
24020         or if we alias it to stat.
24021         Reported by Simon Josefsson.
24022
24023 2010-03-27  Bruno Haible  <bruno@clisp.org>
24024
24025         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
24026         * modules/getlogin (configure.ac): Update.
24027
24028         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
24029         * modules/getlogin_r (configure.ac): Update.
24030
24031         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
24032         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
24033         * modules/inet_ntop (configure.ac): Update.
24034
24035         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
24036         * modules/inet_pton (configure.ac): Update.
24037
24038         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
24039         * modules/mbslen (configure.ac): Update.
24040
24041         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
24042         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
24043         * modules/forkpty (configure.ac): Update.
24044         * modules/openpty (configure.ac): Update.
24045
24046 2010-03-26  Simon Josefsson  <simon@josefsson.org>
24047
24048         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
24049         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
24050
24051 2010-03-25  Eric Blake  <eblake@redhat.com>
24052
24053         maint: use pragma consistently across replacement headers
24054         * lib/ctype.in.h (system_header): Hoist for consistent placement.
24055         * lib/dirent.in.h (system_header): Likewise.
24056         * lib/errno.in.h (system_header): Likewise.
24057         * lib/float.in.h (system_header): Likewise.
24058         * lib/getopt.in.h (system_header): Likewise.
24059         * lib/iconv.in.h (system_header): Likewise.
24060         * lib/inttypes.in.h (system_header): Likewise.
24061         * lib/langinfo.in.h (system_header): Likewise.
24062         * lib/locale.in.h (system_header): Likewise.
24063         * lib/math.in.h (system_header): Likewise.
24064         * lib/netdb.in.h (system_header): Likewise.
24065         * lib/netinet_in.in.h (system_header): Likewise.
24066         * lib/pty.in.h (system_header): Likewise.
24067         * lib/sched.in.h (system_header): Likewise.
24068         * lib/se-selinux.in.h (system_header): Likewise.
24069         * lib/search.in.h (system_header): Likewise.
24070         * lib/spawn.in.h (system_header): Likewise.
24071         * lib/stdarg.in.h (system_header): Likewise.
24072         * lib/stdint.in.h (system_header): Likewise.
24073         * lib/string.in.h (system_header): Likewise.
24074         * lib/strings.in.h (system_header): Likewise.
24075         * lib/sys_file.in.h (system_header): Likewise.
24076         * lib/sys_ioctl.in.h (system_header): Likewise.
24077         * lib/sys_socket.in.h (system_header): Likewise.
24078         * lib/sys_times.in.h (system_header): Likewise.
24079         * lib/sys_utsname.in.h (system_header): Likewise.
24080         * lib/sys_wait.in.h (system_header): Likewise.
24081         * lib/sysexits.in.h (system_header): Likewise.
24082         * lib/unistd.in.h (system_header): Likewise.
24083         * lib/wctype.in.h (system_header): Likewise.
24084
24085         arpa/inet: fix mingw compilation warning
24086         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
24087         Reported by Matthew Bolte.
24088
24089 2010-03-25  Bruno Haible  <bruno@clisp.org>
24090
24091         Avoid collision between gnulib wrapper and libintl wrapper.
24092         * lib/printf.c (printf): Don't define if a printf wrapper is already
24093         defined in intl/printf.c.
24094         Reported by Michel Boaventura <michel@michelboaventura.com>.
24095
24096 2010-03-25  Bruno Haible  <bruno@clisp.org>
24097
24098         Use ANSI C.
24099         * lib/readutmp.h (getutent): Provide ANSI C prototype.
24100
24101 2010-03-25  Bruno Haible  <bruno@clisp.org>
24102
24103         Minor formatting changes.
24104         * lib/acosl.c: Insert space before function argument list.
24105         * lib/argz.c: Likewise.
24106         * lib/asinl.c: Likewise.
24107         * lib/expl.c: Likewise.
24108         * lib/gen-uni-tables.c: Likewise.
24109         * lib/gettext.h: Likewise.
24110         * lib/glthread/lock.h: Likewise.
24111         * lib/tanl.c: Likewise.
24112         * lib/uniname/uniname.c: Likewise.
24113         * tests/test-idpriv-drop.c: Likewise.
24114         * tests/test-idpriv-droptemp.c: Likewise.
24115         * tests/test-lock.c: Likewise.
24116         * tests/test-tls.c: Likewise.
24117         * lib/argp-help.c: Insert space before function-like macro argument
24118         list.
24119         * lib/memcmp.c: Likewise.
24120         * tests/test-base64.c: Likewise.
24121         * lib/localename.c: Insert space before sizeof's argument list.
24122         * lib/safe-alloc.h: Likewise.
24123         * lib/file-set.h: Insert space before macro argument list.
24124         * tests/test-argp.c: Likewise.
24125         * lib/argp-namefrob.h: Insert space before function parameter list.
24126         * lib/getaddrinfo.c: Likewise.
24127         * lib/netdb.in.h: Likewise.
24128         * lib/parse-duration.h: Likewise.
24129         * lib/parse-duration.c: Likewise.
24130         * lib/poll.c: Likewise.
24131         * lib/select.c: Likewise.
24132         * lib/trim.h: Likewise.
24133         * tests/test-usleep.c: Likewise.
24134         * lib/ldexpl.c: Insert space before function parameter list and before
24135         function argument list.
24136         * lib/logl.c: Likewise.
24137         * lib/sqrtl.c: Likewise.
24138         * lib/trim.c: Likewise.
24139         * lib/cosl.c: Use GNU style indentation. Insert space before function
24140         argument list.
24141         * lib/sinl.c: Likewise.
24142         * lib/tsearch.c: Insert space after 'for'.
24143         Reported by Jim Meyering.
24144
24145 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
24146
24147         * maint.mk (sc_Wundef_boolean): Check for the presence of the
24148         config header before grepping, as it's not present before
24149         autoreconf/configure are run.  Reported by Simon Josefsson.
24150
24151 2010-03-23  Bruno Haible  <bruno@clisp.org>
24152
24153         pt_chown: Make it work with automake < 1.11.
24154         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
24155         Reported by Simon Josefsson.
24156
24157 2010-03-23  Bruno Haible  <bruno@clisp.org>
24158
24159         pt_chown: Don't depend on GPLed modules.
24160         * lib/pt_chown.c: Don't include idpriv.h.
24161         (main): Don't drop privileges.
24162         * modules/pt_chown (Depends-on): Remove idpriv-drop.
24163         Reported by Simon Josefsson.
24164
24165 2010-03-24  Simon Josefsson  <simon@josefsson.org>
24166
24167         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
24168         suggestions from karl@freefriends.org (Karl Berry).
24169
24170 2010-03-22  Eric Blake  <eblake@redhat.com>
24171
24172         gethostname: further tweaks
24173         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
24174         are overriding gethostname.
24175         Suggested by Bruno Haible.
24176
24177 2010-03-21  Bruno Haible  <bruno@clisp.org>
24178
24179         Fix comments.
24180         * lib/forkpty.c (rpl_forkpty): Fix comment.
24181         * lib/openpty.c (rpl_openpty): Likewise.
24182         Reported by Eric Blake.
24183
24184 2010-03-22  Eric Blake  <eblake@redhat.com>
24185
24186         gethostname: fix build on mingw
24187         * lib/unistd.in.h (includes): Work around fact that mingw
24188         <winsock2.h> re-includes <unistd.h>, by avoiding any
24189         redeclarations if we are being included by <winsock2.h>.
24190         Reported by Matthias Bolte.
24191
24192 2010-03-21  Bruno Haible  <bruno@clisp.org>
24193
24194         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
24195         * lib/forkpty.c (forkpty): New replacement function, from glibc with
24196         modifications.
24197         * lib/pty.in.h (forkpty): Update declaration. Add comments.
24198         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
24199         provide the replacement.
24200         * modules/forkpty (Depends-on): Add openpty, login_tty.
24201         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
24202         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
24203         * doc/glibc-functions/forkpty.texi: More supported platforms.
24204         * config/srclist.txt: Add forkpty.c (commented).
24205
24206 2010-03-21  Bruno Haible  <bruno@clisp.org>
24207
24208         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
24209         (Makefile.am): Verify that PTY_LIB is defined.
24210
24211         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
24212
24213 2010-03-21  Bruno Haible  <bruno@clisp.org>
24214
24215         Tests for module 'login_tty'.
24216         * modules/login_tty-tests: New file.
24217         * tests/test-login_tty.c: New file.
24218
24219         New module 'login_tty'.
24220         * lib/login_tty.c: New file.
24221         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
24222         * modules/login_tty: New file.
24223         * doc/glibc-functions/login_tty.texi: Mention the new module.
24224
24225 2010-03-21  Bruno Haible  <bruno@clisp.org>
24226
24227         login_tty: Documentation.
24228         * doc/glibc-functions/login_tty.texi: New file.
24229         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
24230
24231 2010-03-21  Bruno Haible  <bruno@clisp.org>
24232
24233         pty: Consistent macro naming.
24234         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
24235         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
24236         * modules/pty (configure.ac): Update.
24237
24238 2010-03-21  Bruno Haible  <bruno@clisp.org>
24239
24240         Tests for openpty: Make stricter.
24241         * tests/test-openpty.c (main): Add test of canonical processing and
24242         erase.
24243         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
24244
24245         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
24246         * lib/openpty.c (openpty): New replacement function.
24247         * lib/pty.in.h: Include <termios.h>.
24248         (openpty): Update declaration. Add comments.
24249         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
24250         is not declared, arrange to provide the replacement. Check for _getpty
24251         and posix_openpt.
24252         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
24253         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
24254         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
24255         * modules/pty-tests (test_pty_c___LDADD): New variable.
24256         * doc/glibc-functions/openpty.texi: More supported platforms.
24257
24258 2010-03-21  Bruno Haible  <bruno@clisp.org>
24259
24260         setenv: Tweaks.
24261         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
24262         the test program.
24263         * doc/posix-functions/setenv.texi: Update platforms list.
24264
24265 2010-03-21  Bruno Haible  <bruno@clisp.org>
24266
24267         New module 'unlockpt'.
24268         * lib/unlockpt.c: New file, from glibc with modifications.
24269         * m4/unlockpt.m4: New file.
24270         * modules/unlockpt: New file.
24271         * lib/stdlib.in.h (unlockpt): New declaration.
24272         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
24273         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
24274         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
24275         HAVE_UNLOCKPT.
24276         * doc/posix-functions/unlockpt.texi: Mention the new module.
24277         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
24278         * config/srclist.txt: Add unlockpt.c (commented).
24279
24280 2010-03-21  Jim Meyering  <meyering@redhat.com>
24281
24282         maint.mk: prohibit inclusion of "intprops.h" without use
24283         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
24284
24285 2010-03-21  Bruno Haible  <bruno@clisp.org>
24286
24287         New module 'grantpt'.
24288         * lib/grantpt.c: New file, from glibc with modifications.
24289         * m4/grantpt.m4: New file.
24290         * modules/grantpt: New file.
24291         * lib/stdlib.in.h (grantpt): New declaration.
24292         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
24293         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
24294         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
24295         HAVE_GRANTPT.
24296         * doc/posix-functions/grantpt.texi: Mention the new module.
24297         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
24298         * config/srclist.txt: Add grantpt.c (commented).
24299
24300 2010-03-21  Bruno Haible  <bruno@clisp.org>
24301
24302         New module 'pt_chown'.
24303         * lib/pt_chown.c: New file, from glibc with modifications.
24304         * lib/pty-private.h: New file, from glibc with modifications.
24305         * modules/pt_chown: New file.
24306         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
24307
24308 2010-03-21  Bruno Haible  <bruno@clisp.org>
24309
24310         Tests for module 'ptsname'.
24311         * modules/ptsname-tests: New file.
24312         * tests/test-ptsname.c: New file.
24313
24314         New module 'ptsname'.
24315         * lib/ptsname.c: New file, from glibc with modifications.
24316         * m4/ptsname.m4: New file.
24317         * modules/ptsname: New file.
24318         * lib/stdlib.in.h (ptsname): New declaration.
24319         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
24320         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
24321         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
24322         HAVE_PTSNAME.
24323         * doc/posix-functions/ptsname.texi: Mention the new module.
24324         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
24325         * config/srclist.txt: Add ptsname.c (commented).
24326
24327 2010-03-21  Bruno Haible  <bruno@clisp.org>
24328
24329         Tests for module 'ttyname_r'.
24330         * modules/ttyname_r-tests: New file.
24331         * tests/test-ttyname_r.c: New file.
24332
24333         New module 'ttyname_r'.
24334         * lib/ttyname_r.c: New file.
24335         * m4/ttyname_r.m4: New file.
24336         * modules/ttyname_r: New file.
24337         * lib/unistd.in.h (ttyname_r): New declaration.
24338         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
24339         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
24340         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
24341         HAVE_TTYNAME_R.
24342         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
24343         * doc/posix-functions/ttyname_r.texi: Mention the new module.
24344
24345 2010-03-20  Bruno Haible  <bruno@clisp.org>
24346
24347         signal: Undefine macro definitions in C++ mode.
24348         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
24349         sigfillset): Undefine macro definitions from the system header in C++
24350         mode.
24351         Reported by John W. Eaton <jwe@gnu.org>.
24352
24353 2010-03-20  Bruno Haible  <bruno@clisp.org>
24354
24355         Ensure no #include statements inside extern "C" { ... }.
24356         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
24357         contain #include statements.
24358         * lib/time.in.h: Likewise.
24359
24360 2010-03-20  Bruno Haible  <bruno@clisp.org>
24361
24362         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
24363         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
24364         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
24365         Reported by John W. Eaton <jwe@gnu.org>.
24366
24367 2010-03-20  Bruno Haible  <bruno@clisp.org>
24368
24369         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
24370         Reported by Jim Meyering.
24371
24372 2010-03-20  Bruno Haible  <bruno@clisp.org>
24373
24374         pipe: Set errno upon failure.
24375         * lib/pipe.h: Specify that when -1 is returned, errno is set.
24376         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
24377         errno value in error message.
24378
24379 2010-03-20  Bruno Haible  <bruno@clisp.org>
24380             Jim Meyering  <meyering@redhat.com>
24381
24382         lchown: Avoid "unused variable" warning.
24383         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
24384
24385 2010-03-20  Bruno Haible  <bruno@clisp.org>
24386
24387         Work around unlink() bug on MacOS X 10.5.6.
24388         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
24389         attempting to unlink a parent directory.
24390         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
24391         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
24392         activate for the replacement function.
24393         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
24394
24395 2010-03-20  Bruno Haible  <bruno@clisp.org>
24396
24397         Fix link errors on Solaris 8.
24398         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
24399         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
24400
24401 2010-03-19  Jim Meyering  <meyering@redhat.com>
24402
24403         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
24404         The _LIBC implementation of build_range_exp correctly honors the
24405         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
24406         However, the non-_LIBC implementation would ignore that syntax-bit
24407         flag and return REG_ERANGE unconditionally.
24408         This change makes it honor that flag.
24409         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
24410         Make two pointer parameters "const".
24411         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
24412         (parse_bracket_exp): Update caller.
24413
24414         regex.m4: correct the reversed range endpoint ([b-a]) test
24415         * m4/regex.m4: When requiring that [b-a] evoke failure,
24416         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
24417         test pass once again for x86-based systems.
24418
24419 2010-03-19  Bruno Haible  <bruno@clisp.org>
24420
24421         scandir: Fix link error on Solaris 8.
24422         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
24423         macros.
24424
24425 2010-03-19  Bruno Haible  <bruno@clisp.org>
24426
24427         getusershell: Fix documentation.
24428         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
24429         module.
24430         * doc/glibc-functions/setusershell.texi: Likewise.
24431
24432         getusershell: Provide declaration, missing on Solaris 9.
24433         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
24434         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
24435         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
24436         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
24437         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24438         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
24439         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
24440         HAVE_GETUSERSHELL.
24441         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
24442
24443 2010-03-19  Bruno Haible  <bruno@clisp.org>
24444
24445         wctype: Provide iswblank function.
24446         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
24447         exists and is fine.
24448         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
24449         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
24450         * tests/test-wctype.c (main): Re-enable the iswblank tests.
24451         * doc/posix-functions/iswblank.texi: Update.
24452
24453 2010-03-19  Bruno Haible  <bruno@clisp.org>
24454
24455         Tests of module 'pty' in C++ mode.
24456         * modules/pty-tests: New file.
24457         * tests/test-pty-c++.cc: New file.
24458         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
24459
24460 2010-03-19  Eric Blake  <eblake@redhat.com>
24461
24462         logb: fix documentation
24463         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
24464         1.5 declaration bug.
24465
24466         forkpty, openpty: prefer glibc's const-safe prototype
24467         * lib/forkpty.c (rpl_forkpty): New file.
24468         * lib/openpty.c (rpl_openpty): Likewise.
24469         * modules/forkpty (Files): Distribute it.
24470         * modules/openpty (Files): Likewise.
24471         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
24472         check...
24473         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
24474         replacement for for non-const BSD signature.
24475         * modules/pty (Makefile.am): Substitute witnesses.
24476         * lib/pty.in.h (forkpty, openpty): Declare replacements.
24477         * tests/test-forkpty.c: Update signature check.
24478         * tests/test-openpty.c: Likewise.
24479         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
24480         * doc/glibc-functions/openpty.texi (openpty): Likewise.
24481
24482         forkpty, openpty: split functions into new modules
24483         * modules/pty (Makefile.am): Substitute new witnesses.
24484         (Libraries): Move library detection...
24485         * modules/forkpty: ...into new module.
24486         * modules/openpty: Another new module.
24487         * modules/pty-tests: Rename and split...
24488         * modules/forkpty-tests: ...to this...
24489         * modules/openpty-tests: ...and this.
24490         * tests/test-pty.c: Rename and split...
24491         * tests/test-forkpty.c: ...to this...
24492         * tests/test-openpty.c: ...and this.
24493         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
24494         (gl_PTY): Split library searching...
24495         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
24496         (gl_FORKPTY, gl_OPENPTY): New macros.
24497         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
24498         * NEWS: Mention the split.
24499         * MODULES.html.sh (Misc): Document the modules.
24500         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
24501         * doc/glibc-functions/openpty.texi (openpty): Likewise.
24502
24503         pty: improve replacement header
24504         * lib/pty.in.h: New file.
24505         * modules/pty (Files): Ship it.
24506         (Makefile.am): Always build replacement.
24507         * m4/pty.m4: Rename...
24508         * m4/pty_h.m4: ...to this.
24509         (gl_PTY): Modernize setting of witness macros; update check of
24510         forkpty to take proper advantage of cache.
24511         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
24512
24513         getopt: avoid compiler warning
24514         * lib/getopt.c (attribute_hidden): Remove unused macro.
24515
24516 2010-03-18  Bruno Haible  <bruno@clisp.org>
24517
24518         Fix link errors on Solaris 8.
24519         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
24520         * modules/search-tests (test_search_c___LDADD): Likewise.
24521         * modules/signal-tests (test_signal_c___LDADD): Likewise.
24522         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
24523         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
24524         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
24525         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
24526         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
24527         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
24528
24529 2010-03-18  Bruno Haible  <bruno@clisp.org>
24530
24531         Fix bug introduced on 2010-03-14.
24532         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
24533         (gl_SPAWN_H): Require it.
24534         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
24535         Reported by Simon Josefsson.
24536
24537 2010-03-18  Bruno Haible  <bruno@clisp.org>
24538
24539         Fix typo introduced on 2009-12-31.
24540         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
24541         posix_spawn_file_actions_adddup2.
24542
24543 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
24544         and Eric Blake  <eblake@redhat.com>
24545
24546         test-vc-list-files-git: make more robust
24547         * tests/test-vc-list-files-git.sh: Unset problematic environment
24548         variables.  Chain commands together.
24549
24550 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
24551
24552         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
24553         `AC_CHECK_DECL' invocation.
24554
24555 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
24556
24557         * lib/inttostr.c (inttostr): Make sure the invocation of verify
24558         appears before executable statements. Suggested by Petr Sumbera
24559         <Petr.Sumbera@Sun.COM>.
24560
24561 2010-03-14  Bruno Haible  <bruno@clisp.org>
24562
24563         * tests/test-flock.c (test_exclusive): Comment out a test that causes
24564         portability problems. Instead use a simpler test.
24565         (main): Check that invalid arguments are rejected only on Linux.
24566
24567 2010-03-14  Bruno Haible  <bruno@clisp.org>
24568
24569         Fix bug introduced on 2009-12-31.
24570         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
24571         gl_PREREQ_SYS_H_WINSOCK2 always.
24572         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
24573         SYS_SOCKET_H variable.
24574         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
24575         Update comments.
24576         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
24577         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24578         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24579         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24580         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
24581
24582 2010-03-14  Bruno Haible  <bruno@clisp.org>
24583
24584         Fix values returned by sinl, cosl.
24585         * lib/trigl.h: Add specification comments.
24586         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
24587         that combines the values from the precomputed table with the values of
24588         the Chebyshev polynomials.
24589
24590 2010-03-14  Bruno Haible  <bruno@clisp.org>
24591
24592         Fix compilation error when modules 'posix_spawn[p]' are not used.
24593         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
24594         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
24595
24596 2010-03-14  Bruno Haible  <bruno@clisp.org>
24597
24598         Fix compilation error on mingw when module 'time_r' is not used.
24599         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
24600         is 1.
24601         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
24602         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
24603         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
24604         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
24605
24606 2010-03-14  Bruno Haible  <bruno@clisp.org>
24607
24608         Fix compilation error with Sun C.
24609         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
24610         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
24611         instead of GCC specific ULONG_LONG_MAX.
24612         * lib/xstrtoll.c: Likewise.
24613         * lib/xstrtoull.c: Likewise.
24614
24615 2010-03-13  Bruno Haible  <bruno@clisp.org>
24616
24617         Allow the user to disable C++ code and tests.
24618         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
24619         (gl_PROG_ANSI_CXX): Require it.
24620
24621 2010-03-13  Bruno Haible  <bruno@clisp.org>
24622
24623         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
24624         cases.
24625
24626 2010-03-13  Bruno Haible  <bruno@clisp.org>
24627
24628         Test that gnulib does not break the standard C++ headers.
24629         * tests/test-locale-c++2.cc: New file.
24630         * modules/locale-tests (Files): Add it.
24631         (Makefile.am): Compile it for test-locale-c++.
24632         * tests/test-math-c++2.cc: New file.
24633         * modules/math-tests (Files): Add it.
24634         (Makefile.am): Compile it for test-math-c++.
24635         * tests/test-signal-c++2.cc: New file.
24636         * modules/signal-tests (Files): Add it.
24637         (Makefile.am): Compile it for test-signal-c++.
24638         * tests/test-stdio-c++2.cc: New file.
24639         * modules/stdio-tests (Files): Add it.
24640         (Makefile.am): Compile it for test-stdio-c++.
24641         * tests/test-stdlib-c++2.cc: New file.
24642         * modules/stdlib-tests (Files): Add it.
24643         (Makefile.am): Compile it for test-stdlib-c++.
24644         * tests/test-string-c++2.cc: New file.
24645         * modules/string-tests (Files): Add it.
24646         (Makefile.am): Compile it for test-string-c++.
24647         * tests/test-time-c++2.cc: New file.
24648         * modules/time-tests (Files): Add it.
24649         (Makefile.am): Compile it for test-time-c++.
24650         Reported by John W. Eaton <jwe@gnu.org>.
24651
24652 2010-03-13  Bruno Haible  <bruno@clisp.org>
24653
24654         * gnulib-tool (func_usage): Clarify which options are available for
24655         --create-testdir and --create-megatestdir.
24656
24657 2010-03-13  Bruno Haible  <bruno@clisp.org>
24658
24659         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
24660         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
24661         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
24662         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24663         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
24664         when appropriate.
24665         Reported by Jim Meyering.
24666
24667 2010-03-12  Simon Josefsson  <simon@josefsson.org>
24668
24669         * gnulib-tool (func_import): Explain origin of code.
24670
24671 2010-03-12  Bruno Haible  <bruno@clisp.org>
24672
24673         Fix problem with automake's definition of CXXLINK.
24674         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
24675         Reported by Simon Josefsson and Ludovic Courtès.
24676
24677 2010-03-12  Bruno Haible  <bruno@clisp.org>
24678
24679         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
24680         stable releases.
24681
24682 2010-03-11  Bruno Haible  <bruno@clisp.org>
24683
24684         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
24685         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
24686         whether the system provides one variant or multiple variants of the
24687         function.
24688         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
24689         C++ compilers.
24690         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
24691         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
24692         Reported by Jim Meyering.
24693
24694 2010-03-09  Simon Josefsson  <simon@josefsson.org>
24695
24696         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
24697
24698 2010-03-08  Bruno Haible  <bruno@clisp.org>
24699
24700         gnulib-tool: Add support for --libtool in --create-testdir.
24701         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
24702         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
24703
24704 2010-03-08  Eric Blake  <eblake@redhat.com>
24705
24706         gnulib-tool.texi: mention possibility of git submodule
24707         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
24708         submodules.
24709         * doc/.gitignore: Ignore another generated file.
24710
24711 2010-03-08  Karl Berry  <karl@gnu.org>
24712
24713         * doc/gnulib-tool.texi (VCS Issues): Mention third option
24714         of committing gnulib files while skipping others.
24715
24716 2010-03-07  Bruno Haible  <bruno@clisp.org>
24717
24718         Tests of module 'wctype' in C++ mode.
24719         * tests/test-wctype-c++.cc: New file.
24720         * modules/wctype-tests (Files): Add it and tests/signature.h.
24721         (Depends-on): Add ansi-c++-opt.
24722         (Makefile.am): Arrange to compile and run test-wctype-c++.
24723
24724         Tests of module 'wchar' in C++ mode.
24725         * tests/test-wchar-c++.cc: New file.
24726         * modules/wchar-tests (Files): Add it and tests/signature.h.
24727         (Depends-on): Add ansi-c++-opt.
24728         (Makefile.am): Arrange to compile and run test-wchar-c++.
24729         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
24730         gl_MODULE_INDICATOR.
24731
24732         Tests of module 'unistd' in C++ mode.
24733         * tests/test-unistd-c++.cc: New file.
24734         * modules/unistd-tests (Files): Add it and tests/signature.h.
24735         (Depends-on): Add ansi-c++-opt.
24736         (Makefile.am): Arrange to compile and run test-unistd-c++.
24737         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
24738         gl_MODULE_INDICATOR.
24739
24740         Tests of module 'time' in C++ mode.
24741         * tests/test-time-c++.cc: New file.
24742         * modules/time-tests (Files): Add it and tests/signature.h.
24743         (Depends-on): Add ansi-c++-opt.
24744         (Makefile.am): Arrange to compile and run test-time-c++.
24745         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
24746
24747         Tests of module 'sys_time' in C++ mode.
24748         * tests/test-sys_time-c++.cc: New file.
24749         * modules/sys_time-tests (Files): Add it and tests/signature.h.
24750         (Depends-on): Add ansi-c++-opt.
24751         (Makefile.am): Arrange to compile and run test-sys_time-c++.
24752         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
24753         gl_MODULE_INDICATOR.
24754
24755         Tests of module 'sys_stat' in C++ mode.
24756         * tests/test-sys_stat-c++.cc: New file.
24757         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
24758         (Depends-on): Add ansi-c++-opt.
24759         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
24760         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
24761         gl_MODULE_INDICATOR.
24762
24763         Tests of module 'sys_socket' in C++ mode.
24764         * tests/test-sys_socket-c++.cc: New file.
24765         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
24766         (Depends-on): Add ansi-c++-opt.
24767         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
24768         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
24769         gl_MODULE_INDICATOR.
24770
24771         Tests of module 'sys_select' in C++ mode.
24772         * tests/test-sys_select-c++.cc: New file.
24773         * modules/sys_select-tests (Files): Add it and tests/signature.h.
24774         (Depends-on): Add ansi-c++-opt.
24775         (Makefile.am): Arrange to compile and run test-sys_select-c++.
24776         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
24777         gl_MODULE_INDICATOR.
24778
24779         Tests of module 'sys_ioctl' in C++ mode.
24780         * tests/test-sys_ioctl-c++.cc: New file.
24781         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
24782         (Depends-on): Add ansi-c++-opt.
24783         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
24784         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
24785         gl_MODULE_INDICATOR.
24786
24787         Tests of module 'string' in C++ mode.
24788         * tests/test-string-c++.cc: New file.
24789         * modules/string-tests (Files): Add it and tests/signature.h.
24790         (Depends-on): Add ansi-c++-opt.
24791         (Makefile.am): Arrange to compile and run test-string-c++.
24792         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
24793         gl_MODULE_INDICATOR.
24794
24795         Tests of module 'stdlib' in C++ mode.
24796         * tests/test-stdlib-c++.cc: New file.
24797         * modules/stdlib-tests (Files): Add it and tests/signature.h.
24798         (Depends-on): Add ansi-c++-opt.
24799         (Makefile.am): Arrange to compile and run test-stdlib-c++.
24800         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
24801         gl_MODULE_INDICATOR.
24802
24803         Tests of module 'stdio' in C++ mode.
24804         * tests/test-stdio-c++.cc: New file.
24805         * modules/stdio-tests (Files): Add it and tests/signature.h.
24806         (Depends-on): Add ansi-c++-opt.
24807         (Makefile.am): Arrange to compile and run test-stdio-c++.
24808         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
24809         gl_MODULE_INDICATOR.
24810
24811         Tests of module 'spawn' in C++ mode.
24812         * tests/test-spawn-c++.cc: New file.
24813         * modules/spawn-tests (Files): Add it and tests/signature.h.
24814         (Depends-on): Add ansi-c++-opt.
24815         (Makefile.am): Arrange to compile and run test-spawn-c++.
24816         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
24817         gl_MODULE_INDICATOR.
24818
24819         Tests of module 'signal' in C++ mode.
24820         * tests/test-signal-c++.cc: New file.
24821         * modules/signal-tests (Files): Add it and tests/signature.h.
24822         (Depends-on): Add ansi-c++-opt.
24823         (Makefile.am): Arrange to compile and run test-signal-c++.
24824         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
24825         gl_MODULE_INDICATOR.
24826
24827         Tests of module 'search' in C++ mode.
24828         * tests/test-search-c++.cc: New file.
24829         * modules/search-tests (Files): Add it and tests/signature.h.
24830         (Depends-on): Add ansi-c++-opt.
24831         (Makefile.am): Arrange to compile and run test-search-c++.
24832         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
24833         gl_MODULE_INDICATOR.
24834
24835         Tests of module 'math' in C++ mode.
24836         * tests/test-math-c++.cc: New file.
24837         * modules/math-tests (Files): Add it and tests/signature.h.
24838         (Depends-on): Add ansi-c++-opt.
24839         (Makefile.am): Arrange to compile and run test-math-c++.
24840         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
24841
24842         Tests of module 'locale' in C++ mode.
24843         * tests/test-locale-c++.cc: New file.
24844         * modules/locale-tests (Files): Add it and tests/signature.h.
24845         (Depends-on): Add ansi-c++-opt.
24846         (Makefile.am): Arrange to compile and run test-locale-c++.
24847         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
24848         gl_MODULE_INDICATOR.
24849
24850         Tests of module 'langinfo' in C++ mode.
24851         * tests/test-langinfo-c++.cc: New file.
24852         * modules/langinfo-tests (Files): Add it and tests/signature.h.
24853         (Depends-on): Add ansi-c++-opt.
24854         (Makefile.am): Arrange to compile and run test-langinfo-c++.
24855         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
24856         gl_MODULE_INDICATOR.
24857
24858         Tests of module 'iconv-h' in C++ mode.
24859         * tests/test-iconv-h-c++.cc: New file.
24860         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
24861         (Depends-on): Add ansi-c++-opt.
24862         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
24863
24864         Tests of module 'glob' in C++ mode.
24865         * tests/test-glob-c++.cc: New file.
24866         * modules/glob-tests (Files): Add it.
24867         (Depends-on): Add ansi-c++-opt.
24868         (Makefile.am): Arrange to compile and run test-glob-c++.
24869
24870         Tests of module 'fcntl-h' in C++ mode.
24871         * tests/test-fcntl-h-c++.cc: New file.
24872         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
24873         (Depends-on): Add ansi-c++-opt.
24874         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
24875         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
24876         gl_MODULE_INDICATOR.
24877
24878         Tests of module 'dirent' in C++ mode.
24879         * tests/test-dirent-c++.cc: New file.
24880         * modules/dirent-tests (Files): Add it and tests/signature.h.
24881         (Depends-on): Add ansi-c++-opt.
24882         (Makefile.am): Arrange to compile and run test-dirent-c++.
24883         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
24884         gl_MODULE_INDICATOR.
24885
24886         New module 'ansi-c++-opt'.
24887         * modules/ansi-c++-opt: New file.
24888         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
24889
24890         Document C++ namespace mode.
24891         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
24892
24893         wctype: Avoid #define replacements in C++ mode.
24894         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
24895         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
24896         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
24897         In C++, define a namespaced alias symbol.
24898         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
24899         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
24900         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
24901         rule.
24902
24903         wchar: Avoid #define replacements in C++ mode.
24904         * lib/wchar.in.h: Include c++defs.h.
24905         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
24906         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
24907         symbol.
24908         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
24909         * modules/wchar (Depends-on): Add c++defs.
24910         (Makefile.am): Update wchar.h rule.
24911
24912         unistd: Avoid #define replacements in C++ mode.
24913         * lib/unistd.in.h: Include c++defs.h.
24914         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
24915         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
24916         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
24917         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
24918         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
24919         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
24920         symbol.
24921         (environ): Update.
24922         * modules/unistd (Depends-on): Add c++defs.
24923         (Makefile.am): Update unistd.h rule.
24924
24925         time: Avoid #define replacements in C++ mode.
24926         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
24927         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
24928         define a namespaced alias symbol.
24929         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
24930         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
24931         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
24932         * modules/time (Depends-on): Add c++defs, warn-on-use.
24933         (Makefile.am): Update time.h rule.
24934         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
24935         * modules/nanosleep (configure.ac): Likewise.
24936         * modules/strptime (configure.ac): Likewise.
24937         * modules/timegm (configure.ac): Likewise.
24938
24939         sys_time: Avoid #define replacements in C++ mode.
24940         * lib/sys_time.in.h: Include c++defs.h.
24941         (gettimeofday): In C++, define a namespaced alias symbol.
24942         * modules/sys_time (Depends-on): Add c++defs.
24943         (Makefile.am): Update sys/time.h rule.
24944
24945         sys_stat: Avoid #define replacements in C++ mode.
24946         * lib/sys_stat.in.h: Include c++defs.h.
24947         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
24948         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
24949         namespaced alias symbol.
24950         In C++, define a namespaced alias symbol.
24951         * modules/sys_stat (Depends-on): Add c++defs.
24952         (Makefile.am): Update sys/stat.h rule.
24953
24954         sys_socket: Avoid #define replacements in C++ mode.
24955         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
24956         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
24957         definitions also when the system has a <sys/socket.h>.
24958         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
24959         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
24960         In C++, define a namespaced alias symbol.
24961         * modules/sys_socket (Depends-on): Add c++defs.
24962         (Makefile.am): Update sys/socket.h rule.
24963
24964         sys_select: Avoid #define replacements in C++ mode.
24965         * lib/sys_select.in.h: Include c++defs.h. Enable the function
24966         definitions also when the system has a <sys/select.h>.
24967         (select): In C++, define a namespaced alias symbol.
24968         * modules/sys_select (Depends-on): Add c++defs.
24969         (Makefile.am): Update sys/select.h rule.
24970
24971         sys_ioctl: Avoid #define replacements in C++ mode.
24972         * lib/sys_ioctl.in.h: Include c++defs.h.
24973         (ioctl): In C++, define a namespaced alias symbol.
24974         * modules/sys_ioctl (Depends-on): Add c++defs.
24975         (Makefile.am): Update sys/ioctl.h rule.
24976
24977         string: Avoid #define replacements in C++ mode.
24978         * lib/string.in.h: Include c++defs.h.
24979         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
24980         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
24981         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
24982         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
24983         strsignal, strverscmp): In C++, define a namespaced alias symbol.
24984         * modules/string (Depends-on): Add c++defs.
24985         (Makefile.am): Update string.h rule.
24986
24987         stdlib: Avoid #define replacements in C++ mode.
24988         * lib/stdlib.in.h: Include c++defs.h.
24989         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
24990         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
24991         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
24992         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
24993         symbol.
24994         * modules/stdlib (Depends-on): Add c++defs.
24995         (Makefile.am): Update stdlib.h rule.
24996
24997         stdio: Avoid #define replacements in C++ mode.
24998         * lib/stdio.in.h: Include c++defs.h.
24999         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
25000         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
25001         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
25002         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
25003         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
25004         namespaced alias symbol.
25005         * modules/stdio (Depends-on): Add c++defs.
25006         (Makefile.am): Update stdio.h rule.
25007
25008         spawn: Avoid #define replacements in C++ mode.
25009         * lib/spawn.in.h: Include c++defs.h.
25010         (posix_spawn, posix_spawnp, posix_spawnattr_init,
25011         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
25012         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
25013         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
25014         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
25015         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
25016         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
25017         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
25018         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
25019         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
25020         In C++, define a namespaced alias symbol.
25021         * modules/spawn (Depends-on): Add c++defs.
25022         (Makefile.am): Update spawn.h rule.
25023
25024         signal: Avoid #define replacements in C++ mode.
25025         * lib/signal.in.h: Include c++defs.h.
25026         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
25027         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
25028         namespaced alias symbol.
25029         * modules/signal (Depends-on): Add c++defs.
25030         (Makefile.am): Update signal.h rule.
25031
25032         search: Avoid #define replacements in C++ mode.
25033         * lib/search.in.h: Include c++defs.h.
25034         (_gl_search_compar_fn, _gl_search_action_fn): New types.
25035         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
25036         symbol.
25037         * modules/search (Depends-on): Add c++defs.
25038         (Makefile.am): Update search.h rule.
25039
25040         math: Avoid #define replacements in C++ mode.
25041         * lib/math.in.h: Include c++defs.h.
25042         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
25043         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
25044         trunc, truncl): In C++, define a namespaced alias symbol.
25045         * modules/math (Depends-on): Add c++defs.
25046         (Makefile.am): Update math.h rule.
25047
25048         locale: Avoid #define replacements in C++ mode.
25049         * lib/locale.in.h: Include c++defs.h.
25050         (duplocale): In C++, define a namespaced alias symbol.
25051         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
25052         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
25053         * modules/locale (Depends-on): Add c++defs.
25054         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
25055
25056         langinfo: Avoid #define replacements in C++ mode.
25057         * lib/langinfo.in.h: Include c++defs.h.
25058         (nl_langinfo): In C++, define a namespaced alias symbol.
25059         * modules/langinfo (Depends-on): Add c++defs.
25060         (Makefile.am): Update langinfo.h rule.
25061
25062         iconv-h: Avoid #define replacements in C++ mode.
25063         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
25064         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
25065         symbol.
25066         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
25067         whenever iconv is present.
25068         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
25069         (Makefile.am): Update iconv.h rule.
25070
25071         glob: Avoid #define replacements in C++ mode.
25072         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
25073         (_gl_glob_errfunc_fn): New type.
25074         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
25075         symbol.
25076         * modules/glob (Depends-on): Add c++defs, warn-on-use.
25077         (Makefile.am): Update glob.h rule.
25078
25079         fcntl-h: Avoid #define replacements in C++ mode.
25080         * lib/fcntl.in.h: Include c++defs.h.
25081         (fcntl, open, openat): In C++, define a namespaced alias symbol.
25082         * modules/fcntl-h (Depends-on): Add c++defs.
25083         (Makefile.am): Update fcntl.h rule.
25084
25085         dirent: Avoid #define replacements in C++ mode.
25086         * lib/dirent.in.h: Include c++defs.h.
25087         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
25088         namespaced alias symbol.
25089         (dirfd): Update declaration.
25090         * modules/dirent (Depends-on): Add c++defs.
25091         (Makefile.am): Update dirent.h rule.
25092
25093         ctype: Make it usable in C++ code.
25094         * lib/ctype.in.h: Include c++defs.h.
25095         (isblank): Declare as extern "C".
25096         * modules/ctype (Depends-on): Add c++defs.
25097         (Makefile.am): Update ctype.h rule.
25098
25099         New module 'c++defs'.
25100         * modules/c++defs: New file.
25101         * build-aux/c++defs.h: New file.
25102         Reported by John W. Eaton <jwe@gnu.org>.
25103
25104 2010-03-07  Bruno Haible  <bruno@clisp.org>
25105
25106         logb: Provide missing declaration for Cygwin.
25107         * lib/math.in.h (logb): New declaration.
25108         * m4/logb.m4: New file.
25109         * modules/logb (Files): Add m4/logb.m4.
25110         (Depends-on): Add math.
25111         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
25112         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
25113         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
25114         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
25115         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
25116
25117 2010-03-07  Bruno Haible  <bruno@clisp.org>
25118
25119         Fix test-cond link error.
25120         * tests/test-cond.c: Include <stdio.h>.
25121
25122 2010-03-07  Bruno Haible  <bruno@clisp.org>
25123
25124         Fix test-dirent-safer link error.
25125         * modules/dirent-safer-tests (Makefile.am): Define
25126         test_dirent_safer_LDADD.
25127
25128 2010-03-07  Bruno Haible  <bruno@clisp.org>
25129
25130         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
25131         among default module list.
25132
25133 2010-03-07  Bruno Haible  <bruno@clisp.org>
25134
25135         Fix link error on platforms with GNU libiconv.
25136         * modules/unistr/u8-strcoll-tests (Makefile): Define
25137         test_u8_strcoll_LDADD.
25138         * modules/unistr/u16-strcoll-tests (Makefile): Define
25139         test_u16_strcoll_LDADD.
25140         * modules/unistr/u32-strcoll-tests (Makefile): Define
25141         test_u32_strcoll_LDADD.
25142
25143 2010-03-07  Bruno Haible  <bruno@clisp.org>
25144
25145         Use POSIX declarations for socket functions.
25146         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
25147         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
25148         rpl_sendto): Change declaration to match POSIX.
25149         * lib/connect.c (rpl_connect): Likewise.
25150         * lib/accept.c (rpl_accept): Likewise.
25151         * lib/bind.c (rpl_bind): Likewise.
25152         * lib/getpeername.c (rpl_getpeername): Likewise.
25153         * lib/getsockname.c (rpl_getsockname): Likewise.
25154         * lib/recv.c (rpl_recv): Likewise.
25155         * lib/send.c (rpl_send): Likewise.
25156         * lib/recvfrom.c (rpl_recvfrom): Likewise.
25157         * lib/sendto.c (rpl_sendto): Likewise.
25158
25159 2010-03-06  Bruno Haible  <bruno@clisp.org>
25160
25161         Clarify access, euidaccess, faccessat.
25162         * doc/posix-functions/faccessat.texi: Mention security problem under
25163         "Other problems", not "Portability problems".
25164         * doc/posix-functions/access.texi: Likewise. Mention a related security
25165         problem.
25166         * doc/glibc-functions/euidaccess.texi: Mention security problems.
25167         * lib/euidaccess.c: Add comments about platforms.
25168         * lib/unistd.in.h (access, euidaccess): Add warnings.
25169
25170 2010-03-07  Bruno Haible  <bruno@clisp.org>
25171
25172         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
25173         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
25174         (POSIX_SPAWN_SETSCHEDULER): Likewise.
25175         (POSIX_SPAWN_USEVFORK): Define in a way that works when
25176         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
25177         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
25178         declare when POSIX_SPAWN_SETSCHEDULER is zero.
25179         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
25180         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
25181         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
25182         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
25183         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
25184         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
25185         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
25186         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
25187         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
25188         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
25189         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
25190         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
25191         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
25192         Likewise.
25193         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
25194         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
25195         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
25196         Likewise.
25197         * tests/test-spawn.c (main): Make it work when
25198         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
25199
25200 2010-03-07  Bruno Haible  <bruno@clisp.org>
25201
25202         Fix incorrect Makefile.am generation in German locale.
25203         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25204         Execute sed command with character range in C locale.
25205
25206 2010-03-06  Bruno Haible  <bruno@clisp.org>
25207
25208         Tests for module 'iconv-h'.
25209         * modules/iconv-h-tests: New file.
25210         * tests/test-iconv-h.c: New file.
25211
25212         New module 'iconv-h'.
25213         * modules/iconv-h: New file.
25214         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
25215         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
25216         (configure.ac): Remove gl_ICONV_H.
25217         (Makefile.am): Remove rule for iconv.h.
25218
25219 2010-03-06  Bruno Haible  <bruno@clisp.org>
25220
25221         More consistent naming of *.m4 files.
25222         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
25223         * modules/wctype (Files): Update.
25224
25225         More consistent naming of *.m4 files.
25226         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
25227         * modules/wchar (Files): Update.
25228
25229 2010-03-06  Jim Meyering  <meyering@redhat.com>
25230
25231         euidaccess: relax license to LGPLv2+
25232         * modules/euidaccess (License): Relax to LGPLv2+.
25233
25234 2010-03-06  Bruno Haible  <bruno@clisp.org>
25235
25236         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
25237         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
25238         (Makefile.am): Augment lib_SOURCES instead.
25239
25240 2010-03-04  Jim Meyering  <meyering@redhat.com>
25241
25242         utime: remove obsolete module
25243         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
25244         unnecessary for years, and has been marked as obsolete for 10 months.
25245         * modules/utime: Remove file.
25246         * lib/utime.c: Remove file.
25247         * m4/utime.m4: Remove file.
25248         * m4/utimes-null.m4: Remove file.
25249         * doc/posix-functions/utime.texi (utime): Remove reference to
25250         the module.  Move the sole "fixed by gnulib" item into the
25251         "problems not fixed by Gnulib" list.
25252         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
25253
25254 2010-03-05  Simon Josefsson  <simon@josefsson.org>
25255
25256         * modules/exit (License): Relax license to LGPLv2+.
25257         (Status): Mark as obsolete.
25258         * NEWS: Mention deprecated 'exit' module.
25259         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
25260         of now obsolete 'exit'.
25261
25262 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25263
25264         fts-lgpl: remove unused module
25265         * modules/fts-lgpl: Remove.
25266         * MODULES.html.sh (func_all_modules): Adjust.
25267         * check-module (find_included_lib_files): Adjust.
25268         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
25269
25270 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
25271
25272         copy-acl: enhance Solaris ACL error handling
25273         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
25274         * lib/set-mode-acl.c (qset_acl): Likewise.
25275
25276 2010-03-02  Bruno Haible  <bruno@clisp.org>
25277
25278         spawn: Don't override the system defined values on FreeBSD 8.
25279         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
25280         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
25281         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
25282         if HAVE_POSIX_SPAWN is 1.
25283         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
25284
25285 2010-03-01  Bruno Haible  <bruno@clisp.org>
25286
25287         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
25288         regarding Automake.
25289
25290 2010-02-25  Bruno Haible  <bruno@clisp.org>
25291
25292         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
25293         * gnulib-tool: Define 'echo' as a function only before the ksh alias
25294         setting, not afterwards.
25295         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
25296
25297 2010-02-24  Eric Blake  <eblake@redhat.com>
25298
25299         bootstrap, git-version-gen: use timestamp
25300         * build-aux/git-version-gen (scriptversion): Force UTC.
25301         * build-aux/bootstrap (scriptversion): New variable.
25302
25303         bootstrap: allow older git
25304         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
25305         older than 1.6.4.  Requested by the libvirt project.
25306
25307 2010-02-23  Eric Blake  <eblake@redhat.com>
25308
25309         warn-on-use: work with old autoconf
25310         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
25311         AS_VAR semantics of autoconf 2.60.
25312         Reported by Bruno Haible.
25313
25314         bootstrap: improve some comments
25315         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
25316         clarification comments.
25317
25318         gettimeofday: provide correct function
25319         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
25320         when replacement is declared, otherwise provide gettimeofday.
25321         Reported by Michael Goffioul.
25322
25323 2010-02-23  Jim Meyering  <meyering@redhat.com>
25324
25325         lib-ignore: relax license to "unlimited", not LGPLv2+
25326         * modules/lib-ignore (License): Relax to "unlimited".
25327
25328 2010-02-23  Jim Meyering  <meyering@redhat.com>
25329
25330         lib-ignore: relax license to LGPLv2+
25331         * modules/lib-ignore (License): Relax to LGPLv2+.
25332
25333 2010-02-22  Eric Blake  <eblake@redhat.com>
25334
25335         lseek: avoid bash 3.2 broken pipe bug
25336         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
25337         warning from bash 3.2.
25338         Reported by Ben Pfaff, with analysis from Bruno Haible.
25339
25340         bootstrap: support non-FSF copyright holder
25341         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
25342         bootstrap.conf override of COPYRIGHT_HOLDER.
25343         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
25344
25345         bootstrap: interoperate with gettext 0.14.1
25346         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
25347
25348         bootstrap: allow for alternate submodule location
25349         * build-aux/bootstrap (gnulib_path): New variable; use instead of
25350         hardcoding submodule location.
25351         (gnulib_mk): Allow direct use of Makefile.am.
25352
25353         bootstrap: use GNULIB_SRCDIR to reduce disk usage
25354         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
25355         rather than reconfiguring where the submodule points.
25356
25357         gettimeofday: restore support for platforms that lack function
25358         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
25359         replacement if function is missing.
25360         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
25361         * modules/sys_time (Makefile.am): Substitute it.
25362         * lib/sys_time.in.h (gettimeofday): Check it.
25363         Reported by Michael Goffioul.
25364
25365 2010-02-21  Bruno Haible  <bruno@clisp.org>
25366
25367         * lib/stdio.in.h (obstack_printf): Fix typo.
25368
25369 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
25370
25371         vc-list-files: use bzr ls's -R option
25372         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
25373         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
25374
25375 2010-02-21  Jim Meyering  <meyering@redhat.com>
25376
25377         init.sh: fix EXEEXT shims to work also for names like test-prog
25378         * tests/init.sh: Re-exec a better shell, when needed.
25379         If the current shell lacks support for posix $(...), an init.sh-using
25380         test will now try to find a shell that supports that.  If EXEEXT is
25381         nonempty, we also require support for hyphen-in-alias-name and shell
25382         substitutions like ${var#glob}.  Failure to find such a shell results
25383         in a skipped test.
25384
25385 2010-02-21  Bruno Haible  <bruno@clisp.org>
25386
25387         Really work around around "broken pipe" error message from bash 3.2.
25388         * gnulib-tool (func_reset_sigpipe): Remove function.
25389         (echo): In bash 3.2, define to a function that uses printf.
25390         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
25391
25392 2010-02-20  Bruno Haible  <bruno@clisp.org>
25393
25394         Restore support for automake 1.9.6 with autoconf 2.61.
25395         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
25396         Reported by James Youngman <jay@gnu.org>.
25397
25398 2010-02-20  Bruno Haible  <bruno@clisp.org>
25399
25400         Improve *printf warning condition.
25401         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
25402         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
25403         and the function is overridden due to SIGPIPE emulation.
25404
25405 2010-02-20  Bruno Haible  <bruno@clisp.org>
25406
25407         * lib/stdio.in.h: Tweak comments.
25408
25409 2010-02-19  Bruno Haible  <bruno@clisp.org>
25410
25411         Make it easier to find modules. New gnulib-tool option '--find'.
25412         * gnulib-tool: New option --find.
25413         (func_usage): Document it.
25414         (func_sanitize_modulelist): New function, extracted from
25415         func_all_modules.
25416         (func_all_modules): Invoke it.
25417         * doc/gnulib-tool.texi (Which modules?): New node.
25418
25419 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
25420
25421         * lib/sys_select.in.h: Provide select replacement even if
25422         sys/select.h exists on a system, for Interix.
25423
25424 2010-02-18  Jim Meyering  <meyering@redhat.com>
25425
25426         init.sh: don't use $(...) just yet
25427         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
25428         to accommodate e.g., Solaris' /bin/sh.
25429
25430 2010-02-17  Bruno Haible  <bruno@clisp.org>
25431
25432         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
25433         Reported by Ludovic Courtès <ludo@gnu.org>.
25434
25435 2010-02-16  Simon Josefsson  <simon@josefsson.org>
25436
25437         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
25438         linking with -lintl.
25439
25440 2010-02-17  Simon Josefsson  <simon@josefsson.org>
25441
25442         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
25443         if not provided by the system's netdb.h.  Reported by
25444         ludo@gnu.org (Ludovic Courtès).
25445
25446 2010-02-15  Jim Meyering  <meyering@redhat.com>
25447
25448         init.sh: improve portability and efficiency
25449         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
25450         "dummy" in a for loop.
25451         Use '!', not '^' to select the complement of a character set used
25452         in a "case" statement.
25453         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
25454         Suggestions from Eric Blake.
25455
25456         init.sh: automatically accommodate programs with the .exe suffix
25457         Automatically arrange for an invocation of "prog" to execute the
25458         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
25459         may use the simpler "prog", yet still work when built on a system
25460         that requires specifying the added suffix.
25461         Do this by constructing a function named "prog" that invokes
25462         "prog.exe" for each .exe file in selected directories.
25463         * tests/init.sh (find_exe_basenames_): New function.
25464         (create_exe_shim_functions_): New function.
25465         (path_prepend_): Use it.
25466
25467         maint.mk: mark syntax-check sc_*.m rules as .PHONY
25468         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
25469         "make -t syntax-check" doesn't create a ton of sc_*.m files.
25470
25471 2010-02-14  Jim Meyering  <meyering@redhat.com>
25472
25473         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
25474         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
25475         (sc_prohibit_hash_pjw_without_use): New rule.
25476
25477         maint.mk: allow the default upload destination dir to be overridden
25478         * top/maint.mk (upload_dest_dir_): Define with a default that
25479         preserves the status quo.
25480         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
25481         Reported by Peter Simons.
25482
25483         maint.mk: prohibit inclusion of "hash.h" without_use
25484         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
25485
25486 2010-02-10  Jim Meyering  <meyering@redhat.com>
25487
25488         maint.mk: prohibit inclusion of "ignore-value.h" without_use
25489         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
25490
25491 2010-02-09  Eric Blake  <ebb9@byu.net>
25492         and Bruno Haible  <bruno@clisp.org>
25493
25494         obstack-printf-posix: ensure declaration
25495         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
25496         extracted from gl_FUNC_OBSTACK_PRINTF.
25497         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
25498         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
25499         Likewise.
25500         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
25501         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
25502         0.
25503
25504 2010-02-08  Bruno Haible  <bruno@clisp.org>
25505
25506         gnulib-tool: Fix typo in 2010-02-07 commit.
25507         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
25508         Reported by Eric Blake.
25509
25510 2010-02-07  Bruno Haible  <bruno@clisp.org>
25511
25512         gnulib-tool: Fix up caching patches.
25513         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
25514         option --no-cache. Use associative arrays when supported by the shell.
25515         (sed_comments): New variable.
25516         (modcache): Renamed from do_cache.
25517         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
25518         abbreviate unnecessarily.
25519         (have_associative): New variable.
25520         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
25521         way also for ksh and zsh.
25522         (func_init_sed_convert_to_cache_statements): New function, extracted
25523         from func_cache_lookup_module. Add support for associative arrays.
25524         Don't set the c_MODULE_cached variable here. Ignore all lines before
25525         the first field header. Remove only the final newline, not all trailing
25526         newlines. Support empty fields correctly. Limit the use of 'eval' to
25527         assignments.
25528         (func_get_description, func_get_status, func_get_notice,
25529         func_get_applicability, func_get_filelist, func_get_dependencies,
25530         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
25531         func_get_automake_snippet, func_get_include_directive,
25532         func_get_link_directive, func_get_license, func_get_maintainer):
25533         Update documentation. List the unoptimized code first. Add support for
25534         associative arrays. Limit the use of 'eval' to assignments.
25535         (func_get_applicability): Undo stylistic pessimisations.
25536         (func_get_automake_snippet, func_get_include_directive): Reduce code
25537         duplication.
25538         (func_modules_transitive_closure, func_modules_add_dummy,
25539         func_modules_notice, func_modules_to_filelist, func_add_file,
25540         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
25541         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
25542         func_create_testdir, func_create_megatestdir): Update documentation.
25543
25544 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25545
25546         * gnulib-tool (func_cache_lookup_module): Store the module name
25547         belonging to the cache variable; error out if two different
25548         module names map to the same cache variable name.
25549
25550 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25551
25552         gnulib-tool: Make caching optional.
25553         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
25554         Update matching short versions of --no-changelog.
25555         (func_usage): Update.
25556         (sed_extract_cache_prog): Renamed from ...
25557         (sed_extract_prog): ... this; revert to old extraction script.
25558         (func_get_description, func_get_status)
25559         (func_get_notice, func_get_applicability, func_get_filelist)
25560         (func_get_dependencies, func_get_autoconf_early_snippet)
25561         (func_get_autoconf_snippet, func_get_automake_snippet)
25562         (func_get_include_directive, func_get_link_directive)
25563         (func_get_license, func_get_maintainer): If $do_cache is false,
25564         use old, non-caching extraction scripts.
25565         Suggestion by Bruno Haible.
25566
25567 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25568
25569         gnulib-tool: cache module metainformation.
25570         * gnulib-tool (sed_extract_prog): Match newline before each
25571         header, and rewrite header to a shell variable suffix.
25572         (func_cache_var, func_cache_lookup_module): New functions,
25573         to turn a module name into a cache variable prefix, and to
25574         look up and cache module metainformation.
25575         (func_get_description, func_get_status)
25576         (func_get_notice, func_get_applicability, func_get_filelist)
25577         (func_get_dependencies, func_get_autoconf_early_snippet)
25578         (func_get_autoconf_snippet, func_get_automake_snippet)
25579         (func_get_include_directive, func_get_link_directive)
25580         (func_get_license, func_get_maintainer): Use
25581         func_cache_lookup_module.
25582
25583 2010-02-07  Bruno Haible  <bruno@clisp.org>
25584
25585         fnctl: Fix missing dependency.
25586         * modules/fcntl (Depends-on): Add getdtablesize.
25587         Reported by John W. Eaton <jwe@gnu.org>.
25588
25589 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
25590
25591         Argp: fix recognition of short alias options.
25592
25593         * lib/argp-parse.c (convert_options): Fix improper use of
25594         `|' between character values.
25595         * tests/test-argp.c (group1_option): New alias option
25596         --read (-r).
25597         (group1_parser): Special handling for 'r'.
25598         (test15): New test case.
25599         (test_fun): Add test15.
25600         * tests/test-argp-2.sh: Update expected --help and --usage
25601         outputs.
25602
25603 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
25604
25605         * tests/test-argp.c: Fix indentation.
25606
25607 2010-02-04  Eric Blake  <ebb9@byu.net>
25608
25609         gettimeofday: expose type of second argument
25610         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
25611         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
25612         * tests/test-gettimeofday.c: Use it to silence warning.
25613         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
25614         the issue.
25615
25616 2010-02-03  Jim Meyering  <meyering@redhat.com>
25617
25618         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
25619         * lib/regcomp.c (TYPE_SIGNED): Define.
25620         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
25621
25622         regcomp.c: avoid a new -Wshadow warning
25623         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
25624
25625 2010-02-01  Jim Meyering  <meyering@redhat.com>
25626
25627         removing useless parentheses in cpp #define directives
25628         For motivation, see commit c0221df4, "define STREQ(a,b)
25629         consistently, removing useless parentheses"
25630         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
25631         * lib/mountlist.c (MNT_IGNORE): Likewise.
25632         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
25633
25634 2010-02-01  Eric Blake  <ebb9@byu.net>
25635
25636         sys_time: use link-warning
25637         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
25638         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
25639         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
25640         * modules/sys_time (Depends-on): Add warn-on-use.
25641         (Makefile.am): Always build replacement.
25642         (configure.ac): Update substitutions.
25643         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
25644         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
25645         bother with SYS_TIME_H.
25646         * modules/gettimeofday (configure.ac): Declare indicator.
25647         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
25648         in use.
25649
25650         closein-tests: silence compiler warning
25651         * tests/test-closein.c (main): Ignore fread result.
25652         * modules/closein-tests (Depends-on): Add ignore-value.
25653
25654         tests: silence warning about system return
25655         * tests/test-areadlink-with-size.c (main): Ignore system result.
25656         * tests/test-areadlink.c (main): Likewise.
25657         * tests/test-areadlinkat-with-size.c (main): Likewise.
25658         * tests/test-areadlinkat.c (main): Likewise.
25659         * tests/test-canonicalize-lgpl.c (main): Likewise.
25660         * tests/test-canonicalize.c (main): Likewise.
25661         * tests/test-chown.c (main): Likewise.
25662         * tests/test-fchownat.c (main): Likewise.
25663         * tests/test-fdutimensat.c (main): Likewise.
25664         * tests/test-fstatat.c (main): Likewise.
25665         * tests/test-futimens.c (main): Likewise.
25666         * tests/test-lchown.c (main): Likewise.
25667         * tests/test-link.c (main): Likewise.
25668         * tests/test-linkat.c (main): Likewise.
25669         * tests/test-lstat.c (main): Likewise.
25670         * tests/test-mkdir.c (main): Likewise.
25671         * tests/test-mkdirat.c (main): Likewise.
25672         * tests/test-mkfifo.c (main): Likewise.
25673         * tests/test-mkfifoat.c (main): Likewise.
25674         * tests/test-mknod.c (main): Likewise.
25675         * tests/test-readlink.c (main): Likewise.
25676         * tests/test-remove.c (main): Likewise.
25677         * tests/test-rename.c (main): Likewise.
25678         * tests/test-renameat.c (main): Likewise.
25679         * tests/test-rmdir.c (main): Likewise.
25680         * tests/test-symlink.c (main): Likewise.
25681         * tests/test-symlinkat.c (main): Likewise.
25682         * tests/test-unlink.c (main): Likewise.
25683         * tests/test-unlinkat.c (main): Likewise.
25684         * tests/test-utimens.c (main): Likewise.
25685         * tests/test-utimensat.c (main): Likewise.
25686         * modules/areadlink-tests (Depends-on): Add ignore-value.
25687         * modules/areadlink-with-size-tests (Depends-on): Likewise.
25688         * modules/areadlinkat-tests (Depends-on): Likewise.
25689         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
25690         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25691         * modules/canonicalize-tests (Depends-on): Likewise.
25692         * modules/chown-tests (Depends-on): Likewise.
25693         * modules/fdutimensat-tests (Depends-on): Likewise.
25694         * modules/futimens-tests (Depends-on): Likewise.
25695         * modules/lchown-tests (Depends-on): Likewise.
25696         * modules/link-tests (Depends-on): Likewise.
25697         * modules/linkat-tests (Depends-on): Likewise.
25698         * modules/lstat-tests (Depends-on): Likewise.
25699         * modules/mkdir-tests (Depends-on): Likewise.
25700         * modules/mkfifo-tests (Depends-on): Likewise.
25701         * modules/mkfifoat-tests (Depends-on): Likewise.
25702         * modules/mknod-tests (Depends-on): Likewise.
25703         * modules/openat-tests (Depends-on): Likewise.
25704         * modules/readlink-tests (Depends-on): Likewise.
25705         * modules/remove-tests (Depends-on): Likewise.
25706         * modules/rename-tests (Depends-on): Likewise.
25707         * modules/renameat-tests (Depends-on): Likewise.
25708         * modules/rmdir-tests (Depends-on): Likewise.
25709         * modules/symlink-tests (Depends-on): Likewise.
25710         * modules/symlinkat-tests (Depends-on): Likewise.
25711         * modules/unlink-tests (Depends-on): Likewise.
25712         * modules/utimens-tests (Depends-on): Likewise.
25713         * modules/utimensat-tests (Depends-on): Likewise.
25714
25715 2010-01-31  Bruno Haible  <bruno@clisp.org>
25716
25717         Perform the same test for many <math.h> functions.
25718         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
25719         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
25720         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
25721         of gl_MATHFUNC.
25722         * modules/acos (configure.ac): Likewise.
25723         * modules/asin (configure.ac): Likewise.
25724         * modules/atan (configure.ac): Likewise.
25725         * modules/atan2 (configure.ac): Likewise.
25726         * modules/cbrt (configure.ac): Likewise.
25727         * modules/copysign (configure.ac): Likewise.
25728         * modules/cos (configure.ac): Likewise.
25729         * modules/cosh (configure.ac): Likewise.
25730         * modules/erf (configure.ac): Likewise.
25731         * modules/erfc (configure.ac): Likewise.
25732         * modules/exp (configure.ac): Likewise.
25733         * modules/fmod (configure.ac): Likewise.
25734         * modules/hypot (configure.ac): Likewise.
25735         * modules/j0 (configure.ac): Likewise.
25736         * modules/j1 (configure.ac): Likewise.
25737         * modules/jn (configure.ac): Likewise.
25738         * modules/lgamma (configure.ac): Likewise.
25739         * modules/log (configure.ac): Likewise.
25740         * modules/log10 (configure.ac): Likewise.
25741         * modules/log1p (configure.ac): Likewise.
25742         * modules/pow (configure.ac): Likewise.
25743         * modules/remainder (configure.ac): Likewise.
25744         * modules/sin (configure.ac): Likewise.
25745         * modules/sinh (configure.ac): Likewise.
25746         * modules/tan (configure.ac): Likewise.
25747         * modules/tanh (configure.ac): Likewise.
25748         * modules/y0 (configure.ac): Likewise.
25749         * modules/y1 (configure.ac): Likewise.
25750         * modules/yn (configure.ac): Likewise.
25751         Suggested by Paolo Bonzini.
25752
25753 2010-01-31  Bruno Haible  <bruno@clisp.org>
25754
25755         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
25756
25757 2010-01-31  Bruno Haible  <bruno@clisp.org>
25758
25759         Work around getdelim() bug on FreeBSD 8.0.
25760         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
25761         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
25762         not work.
25763         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
25764         is 1.
25765         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
25766         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
25767         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
25768         a non-zero size.
25769         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
25770
25771 2010-01-31  Bruno Haible  <bruno@clisp.org>
25772
25773         Work around getline() bug on FreeBSD 8.0.
25774         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
25775         and a non-zero size.
25776         * tests/test-getline.c (main): Likewise.
25777         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
25778         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
25779
25780 2010-01-28  Eric Blake  <ebb9@byu.net>
25781
25782         regex: fix build failure
25783         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
25784         platforms.
25785
25786 2010-01-28  Jim Meyering  <meyering@redhat.com>
25787
25788         regex: do not ignore memory allocation failure
25789         * lib/regex_internal.c (create_cd_newstate): Detect
25790         re_node_set_init_copy failure.   Extracted from glibc commit
25791         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
25792
25793         regex: sync more white-space changes from libc
25794         * lib/regex_internal.c: White-space only changes.
25795         * lib/regexec.c: Likewise.
25796
25797         regex: add many uses of __attribute_warn_unused_result__
25798         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
25799         * lib/regexec.c: Likewise.
25800         Extracted from a messy glibc commit.
25801
25802         regcomp.c: spelling and merge-artifact from glibc
25803         * lib/regcomp.c: Merge remainder of glibc's
25804         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
25805
25806         regcomp.c: sync white-space changes from glibc
25807         * lib/regcomp.c: Merge to accommodate white space
25808         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
25809
25810         regcomp.c: do not ignore internal return values
25811         * lib/regcomp.c: Do not ignore internal return values.
25812         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
25813         but without its white-space changes and spelling fixes.
25814
25815         regex_internal.h: define __attribute_warn_unused_result__
25816         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
25817
25818         maint: add a syntax-check rule to check for vulnerable Makefile.in
25819         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
25820
25821 2010-01-27  Jim Meyering  <meyering@redhat.com>
25822
25823         ncftpput-ftp: clean up spaces
25824         * build-aux/ncftpput-ftp: Make Copyright line consistent.
25825         Remove trailing blanks.
25826
25827 2010-01-27  Simon Josefsson  <simon@josefsson.org>
25828
25829         * build-aux/git-version-gen: Fix copyright statement.
25830         * build-aux/gnupload: Likewise.
25831         * tests/test-arcfour.c: Likewise.
25832         * tests/test-arctwo.c: Likewise.
25833         * tests/test-count-one-bits.c: Likewise.
25834         * tests/test-crc.c: Likewise.
25835         * tests/test-des.c: Likewise.
25836         * tests/test-gc-arcfour.c: Likewise.
25837         * tests/test-gc-arctwo.c: Likewise.
25838         * tests/test-gc-des.c: Likewise.
25839         * tests/test-gc-hmac-md5.c: Likewise.
25840         * tests/test-gc-hmac-sha1.c: Likewise.
25841         * tests/test-gc-md2.c: Likewise.
25842         * tests/test-gc-md4.c: Likewise.
25843         * tests/test-gc-md5.c: Likewise.
25844         * tests/test-gc-pbkdf2-sha1.c: Likewise.
25845         * tests/test-gc-rijndael.c: Likewise.
25846         * tests/test-gc-sha1.c: Likewise.
25847         * tests/test-gc.c: Likewise.
25848         * tests/test-gethostname.c: Likewise.
25849         * tests/test-gettimeofday.c: Likewise.
25850         * tests/test-hash.c: Likewise.
25851         * tests/test-hmac-md5.c: Likewise.
25852         * tests/test-hmac-sha1.c: Likewise.
25853         * tests/test-md2.c: Likewise.
25854         * tests/test-md4.c: Likewise.
25855         * tests/test-md5.c: Likewise.
25856         * tests/test-memchr.c: Likewise.
25857         * tests/test-memchr2.c: Likewise.
25858         * tests/test-memcmp.c: Likewise.
25859         * tests/test-memmem.c: Likewise.
25860         * tests/test-memrchr.c: Likewise.
25861         * tests/test-rawmemchr.c: Likewise.
25862         * tests/test-read-file.c: Likewise.
25863         * tests/test-rijndael.c: Likewise.
25864         * tests/test-sockets.c: Likewise.
25865         * tests/test-strchrnul.c: Likewise.
25866         * tests/test-strstr.c: Likewise.
25867         * tests/test-strtod.c: Likewise.
25868         * build-aux/ncftpput-ftp: Likewise.
25869
25870 2010-01-26  Eric Blake  <ebb9@byu.net>
25871
25872         ignore-value: update recommended header name
25873         * modules/ignore-value (Include): Only use <> for headers that
25874         exist in glibc.
25875
25876 2010-01-26  Jim Meyering  <meyering@redhat.com>
25877
25878         test-userspec.c: avoid compiler warnings
25879         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
25880         and "initialization discards qualifiers..." warnings.
25881         Put the first "uid" in its own scope, and make char* members "const".
25882
25883 2010-01-25  Bruno Haible  <bruno@clisp.org>
25884
25885         gnulib-tool: Make warning diagnostics consistent.
25886         * gnulib-tool (func_warning): New function.
25887         Use it everywhere where gnulib-tool produces output to stderr and it is
25888         not a fatal error.
25889
25890 2010-01-25  Bruno Haible  <bruno@clisp.org>
25891
25892         Fix test dependencies.
25893         * modules/xstrtol-tests (Depends-on): Add inttypes.
25894         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
25895
25896 2010-01-25 Pádraig Brady <P@draigBrady.com>
25897
25898         syntax-check: detect incorrect boolean macro values in config.h
25899         * modules/maintainer-makefile (configure.ac): Parameterize the location
25900         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
25901         The logic is from Eric Blake and the location indicated by Jim Meyering.
25902         Note the more natural CONFIG_HEADER name is prohibited by automake
25903         for backwards compatibility reasons.
25904         * top/maint.mk (sc_Wundef_boolean): New rule.
25905
25906 2010-01-25  Jim Meyering  <meyering@redhat.com>
25907
25908         bootstrap: detect MacOS 10.6's shasum, too
25909         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
25910         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
25911
25912 2010-01-23  Jim Meyering  <meyering@redhat.com>
25913
25914         xstrtoll: new module
25915         * modules/xstrtoll: New file.
25916         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
25917         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
25918         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
25919         ./configure fails if you use this module and lack "long long".
25920         * modules/xstrtoll-tests: New module.
25921         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
25922         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
25923         new init.sh-based test framework.
25924
25925 2010-01-24  Bruno Haible  <bruno@clisp.org>
25926
25927         Tests for module 'yn'.
25928         * modules/yn-tests: New file.
25929         * tests/test-yn.c: New file.
25930
25931         Tests for module 'y1'.
25932         * modules/y1-tests: New file.
25933         * tests/test-y1.c: New file.
25934
25935         Tests for module 'y0'.
25936         * modules/y0-tests: New file.
25937         * tests/test-y0.c: New file.
25938
25939         Tests for module 'tanh'.
25940         * modules/tanh-tests: New file.
25941         * tests/test-tanh.c: New file.
25942
25943         Tests for module 'tan'.
25944         * modules/tan-tests: New file.
25945         * tests/test-tan.c: New file.
25946
25947         Tests for module 'sqrt'.
25948         * modules/sqrt-tests: New file.
25949         * tests/test-sqrt.c: New file.
25950
25951         Tests for module 'sinh'.
25952         * modules/sinh-tests: New file.
25953         * tests/test-sinh.c: New file.
25954
25955         Tests for module 'sin'.
25956         * modules/sin-tests: New file.
25957         * tests/test-sin.c: New file.
25958
25959         Tests for module 'rint'.
25960         * modules/rint-tests: New file.
25961         * tests/test-rint.c: New file.
25962
25963         Tests for module 'remainder'.
25964         * modules/remainder-tests: New file.
25965         * tests/test-remainder.c: New file.
25966
25967         Tests for module 'pow'.
25968         * modules/pow-tests: New file.
25969         * tests/test-pow.c: New file.
25970
25971         Tests for module 'nextafter'.
25972         * modules/nextafter-tests: New file.
25973         * tests/test-nextafter.c: New file.
25974
25975         Tests for module 'modf'.
25976         * modules/modf-tests: New file.
25977         * tests/test-modf.c: New file.
25978
25979         Tests for module 'logb'.
25980         * modules/logb-tests: New file.
25981         * tests/test-logb.c: New file.
25982
25983         Tests for module 'log1p'.
25984         * modules/log1p-tests: New file.
25985         * tests/test-log1p.c: New file.
25986
25987         Tests for module 'log10'.
25988         * modules/log10-tests: New file.
25989         * tests/test-log10.c: New file.
25990
25991         Tests for module 'log'.
25992         * modules/log-tests: New file.
25993         * tests/test-log.c: New file.
25994
25995         Tests for module 'lgamma'.
25996         * modules/lgamma-tests: New file.
25997         * tests/test-lgamma.c: New file.
25998
25999         Tests for module 'ldexp'.
26000         * modules/ldexp-tests: New file.
26001         * tests/test-ldexp.c: New file.
26002
26003         Tests for module 'jn'.
26004         * modules/jn-tests: New file.
26005         * tests/test-jn.c: New file.
26006
26007         Tests for module 'j1'.
26008         * modules/j1-tests: New file.
26009         * tests/test-j1.c: New file.
26010
26011         Tests for module 'j0'.
26012         * modules/j0-tests: New file.
26013         * tests/test-j0.c: New file.
26014
26015         Tests for module 'hypot'.
26016         * modules/hypot-tests: New file.
26017         * tests/test-hypot.c: New file.
26018
26019         Tests for module 'fmod'.
26020         * modules/fmod-tests: New file.
26021         * tests/test-fmod.c: New file.
26022
26023         Tests for module 'fabs'.
26024         * modules/fabs-tests: New file.
26025         * tests/test-fabs.c: New file.
26026
26027         Tests for module 'exp'.
26028         * modules/exp-tests: New file.
26029         * tests/test-exp.c: New file.
26030
26031         Tests for module 'erfc'.
26032         * modules/erfc-tests: New file.
26033         * tests/test-erfc.c: New file.
26034
26035         Tests for module 'erf'.
26036         * modules/erf-tests: New file.
26037         * tests/test-erf.c: New file.
26038
26039         Tests for module 'cosh'.
26040         * modules/cosh-tests: New file.
26041         * tests/test-cosh.c: New file.
26042
26043         Tests for module 'cos'.
26044         * modules/cos-tests: New file.
26045         * tests/test-cos.c: New file.
26046
26047         Tests for module 'copysign'.
26048         * modules/copysign-tests: New file.
26049         * tests/test-copysign.c: New file.
26050
26051         Tests for module 'cbrt'.
26052         * modules/cbrt-tests: New file.
26053         * tests/test-cbrt.c: New file.
26054
26055         Tests for module 'atan2'.
26056         * modules/atan2-tests: New file.
26057         * tests/test-atan2.c: New file.
26058
26059         Tests for module 'atan'.
26060         * modules/atan-tests: New file.
26061         * tests/test-atan.c: New file.
26062
26063         Tests for module 'asin'.
26064         * modules/asin-tests: New file.
26065         * tests/test-asin.c: New file.
26066
26067         Tests for module 'acos'.
26068         * modules/acos-tests: New file.
26069         * tests/test-acos.c: New file.
26070
26071 2010-01-24  Bruno Haible  <bruno@clisp.org>
26072
26073         Fix tests for common <math.h> functions.
26074         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
26075         code snippet that references the function pointer, rather than merely
26076         calling the function. Substitute the FUNC_LIBM variable.
26077         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
26078         * modules/acos (configure.ac): Likewise.
26079         * modules/asin (configure.ac): Likewise.
26080         * modules/atan (configure.ac): Likewise.
26081         * modules/atan2 (configure.ac): Likewise.
26082         * modules/cbrt (configure.ac): Likewise.
26083         * modules/copysign (configure.ac): Likewise.
26084         * modules/cos (configure.ac): Likewise.
26085         * modules/cosh (configure.ac): Likewise.
26086         * modules/erf (configure.ac): Likewise.
26087         * modules/erfc (configure.ac): Likewise.
26088         * modules/exp (configure.ac): Likewise.
26089         * modules/fabs (configure.ac): Likewise.
26090         * modules/fmod (configure.ac): Likewise.
26091         * modules/hypot (configure.ac): Likewise.
26092         * modules/j0 (configure.ac): Likewise.
26093         * modules/j1 (configure.ac): Likewise.
26094         * modules/jn (configure.ac): Likewise.
26095         * modules/ldexp (configure.ac): Likewise.
26096         * modules/lgamma (configure.ac): Likewise.
26097         * modules/log (configure.ac): Likewise.
26098         * modules/log10 (configure.ac): Likewise.
26099         * modules/log1p (configure.ac): Likewise.
26100         * modules/logb (configure.ac): Likewise.
26101         * modules/modf (configure.ac): Likewise.
26102         * modules/nextafter (configure.ac): Likewise.
26103         * modules/pow (configure.ac): Likewise.
26104         * modules/remainder (configure.ac): Likewise.
26105         * modules/rint (configure.ac): Likewise.
26106         * modules/sin (configure.ac): Likewise.
26107         * modules/sinh (configure.ac): Likewise.
26108         * modules/tan (configure.ac): Likewise.
26109         * modules/tanh (configure.ac): Likewise.
26110         * modules/y0 (configure.ac): Likewise.
26111         * modules/y1 (configure.ac): Likewise.
26112         * modules/yn (configure.ac): Likewise.
26113
26114 2010-01-24  Bruno Haible  <bruno@clisp.org>
26115
26116         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
26117         * tests/test-acosl.c (x): New variable.
26118         (main): Store argument in x and fetch it from x.
26119         * tests/test-asinl.c (x): New variable.
26120         (main): Store argument in x and fetch it from x.
26121         * tests/test-atanl.c (x): New variable.
26122         (main): Store argument in x and fetch it from x.
26123         * tests/test-cosl.c (x): New variable.
26124         (main): Store argument in x and fetch it from x.
26125         * tests/test-expl.c (x): New variable.
26126         (main): Store argument in x and fetch it from x.
26127         * tests/test-logl.c (x): New variable.
26128         (main): Store argument in x and fetch it from x.
26129         * tests/test-sinl.c (x): New variable.
26130         (main): Store argument in x and fetch it from x.
26131         * tests/test-sqrtl.c (x): New variable.
26132         (main): Store argument in x and fetch it from x.
26133         * tests/test-tanl.c (x): New variable.
26134         (main): Store argument in x and fetch it from x.
26135
26136 2010-01-24  Bruno Haible  <bruno@clisp.org>
26137
26138         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
26139         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
26140         assignments to the initial TESTS_ENVIRONMENT.
26141         * doc/gnulib.texi (Unit test modules): Document it.
26142         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
26143         TESTS_ENVIRONMENT.
26144         * modules/btowc-tests (Makefile.am): Likewise.
26145         * modules/c-stack-tests (Makefile.am): Likewise.
26146         * modules/c-strcase-tests (Makefile.am): Likewise.
26147         * modules/copy-file-tests (Makefile.am): Likewise.
26148         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
26149         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
26150         * modules/mbrtowc-tests (Makefile.am): Likewise.
26151         * modules/mbscasecmp-tests (Makefile.am): Likewise.
26152         * modules/mbscasestr-tests (Makefile.am): Likewise.
26153         * modules/mbschr-tests (Makefile.am): Likewise.
26154         * modules/mbscspn-tests (Makefile.am): Likewise.
26155         * modules/mbsinit-tests (Makefile.am): Likewise.
26156         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
26157         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
26158         * modules/mbspbrk-tests (Makefile.am): Likewise.
26159         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
26160         * modules/mbsrchr-tests (Makefile.am): Likewise.
26161         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
26162         * modules/mbsspn-tests (Makefile.am): Likewise.
26163         * modules/mbsstr-tests (Makefile.am): Likewise.
26164         * modules/nl_langinfo-tests (Makefile.am): Likewise.
26165         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
26166         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
26167         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
26168         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
26169         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
26170         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
26171         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
26172         * modules/wcrtomb-tests (Makefile.am): Likewise.
26173         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
26174         * modules/wcsrtombs-tests (Makefile.am): Likewise.
26175         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
26176         assignments from TESTS_ENVIRONMENT.
26177         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
26178         augmentation.
26179         * modules/argp-version-etc-tests (Makefile.am): Likewise.
26180         * modules/atexit-tests (Makefile.am): Likewise.
26181         * modules/binary-io-tests (Makefile.am): Likewise.
26182         * modules/closein-tests (Makefile.am): Likewise.
26183         * modules/dprintf-posix-tests (Makefile.am): Likewise.
26184         * modules/exclude-tests (Makefile.am): Likewise.
26185         * modules/fflush-tests (Makefile.am): Likewise.
26186         * modules/fpending-tests (Makefile.am): Likewise.
26187         * modules/fprintf-posix-tests (Makefile.am): Likewise.
26188         * modules/freadahead-tests (Makefile.am): Likewise.
26189         * modules/freadptr-tests (Makefile.am): Likewise.
26190         * modules/freadseek-tests (Makefile.am): Likewise.
26191         * modules/fseek-tests (Makefile.am): Likewise.
26192         * modules/fseeko-tests (Makefile.am): Likewise.
26193         * modules/ftell-tests (Makefile.am): Likewise.
26194         * modules/ftello-tests (Makefile.am): Likewise.
26195         * modules/idpriv-drop-tests (Makefile.am): Likewise.
26196         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
26197         * modules/lseek-tests (Makefile.am): Likewise.
26198         * modules/parse-duration-tests (Makefile.am): Likewise.
26199         * modules/perror-tests (Makefile.am): Likewise.
26200         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
26201         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
26202         * modules/pipe-tests (Makefile.am): Likewise.
26203         * modules/pread-tests (Makefile.am): Likewise.
26204         * modules/printf-posix-tests (Makefile.am): Likewise.
26205         * modules/select-tests (Makefile.am): Likewise.
26206         * modules/sigpipe-tests (Makefile.am): Likewise.
26207         * modules/tsearch-tests (Makefile.am): Likewise.
26208         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
26209         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
26210         * modules/uniname/uniname-tests (Makefile.am): Likewise.
26211         * modules/uniwidth/width-tests (Makefile.am): Likewise.
26212         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
26213         * modules/version-etc-tests (Makefile.am): Likewise.
26214         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
26215         * modules/vprintf-posix-tests (Makefile.am): Likewise.
26216         * modules/xalloc-die-tests (Makefile.am): Likewise.
26217         * modules/xprintf-posix-tests (Makefile.am): Likewise.
26218         * modules/xstrtoimax-tests (Makefile.am): Likewise.
26219         * modules/xstrtol-tests (Makefile.am): Likewise.
26220         * modules/xstrtoumax-tests (Makefile.am): Likewise.
26221         * modules/yesno-tests (Makefile.am): Likewise.
26222         Suggested by Jim Meyering.
26223
26224 2010-01-24  Bruno Haible  <bruno@clisp.org>
26225
26226         More documentation.
26227         * doc/gnulib.texi (Writing modules): New chapter.
26228         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
26229         the new chapter.
26230
26231 2010-01-24  Jim Meyering  <meyering@redhat.com>
26232
26233         maint.mk: do not prepend "./" after filtering
26234         * top/maint.mk (_prepend_srcdir_prefix): New variable
26235         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
26236         "./" when $(srcdir) is ".".
26237
26238         define STREQ(a,b) consistently, removing useless parentheses
26239         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
26240         since the only risk is that "a" or "b" contains an unparenthesized
26241         comma, but if either did that, STREQ would have 3 or more arguments.
26242         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
26243         * lib/fts.c (STREQ): Remove unnecessary parentheses.
26244         * lib/hash-triple.c (STREQ): Likewise.
26245         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
26246         * lib/getugroups.c (STREQ): Likewise.
26247
26248 2010-01-23  Jim Meyering  <meyering@redhat.com>
26249
26250         maint.mk: fix syntax-check in a non-srcdir build directory
26251         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
26252         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
26253
26254 2010-01-22  Jim Meyering  <meyering@redhat.com>
26255
26256         userspec: add unit tests
26257         * tests/test-userspec.c: New file.
26258         * modules/userspec-tests: Likewise.
26259
26260 2010-01-21  Jim Meyering  <meyering@redhat.com>
26261
26262         maint.mk: handle source file names containing "." robustly
26263         * top/maint.mk (_dot_escaped_srcdir): Define.
26264         (VC_LIST): Use it in LHS of sed substitution.
26265
26266 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
26267
26268         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
26269         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
26270         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
26271         from a non-srcdir build.
26272
26273 2010-01-20  Eric Blake  <ebb9@byu.net>
26274
26275         warn-on-use: use instead of link-warning
26276         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
26277         * modules/unistd (Depends-on, Makefile.am): Likewise.
26278         * modules/arpa_inet (Depends-on): Replace link-warning with
26279         warn-on-use.
26280         (Makefile.am): Update rules accordingly.
26281         * modules/ctype (Depends-on, Makefile.am): Likewise.
26282         * modules/dirent (Depends-on, Makefile.am): Likewise.
26283         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
26284         * modules/inttypes (Depends-on, Makefile.am): Likewise.
26285         * modules/langinfo (Depends-on, Makefile.am): Likewise.
26286         * modules/locale (Depends-on, Makefile.am): Likewise.
26287         * modules/math (Depends-on, Makefile.am): Likewise.
26288         * modules/search (Depends-on, Makefile.am): Likewise.
26289         * modules/signal (Depends-on, Makefile.am): Likewise.
26290         * modules/spawn (Depends-on, Makefile.am): Likewise.
26291         * modules/stdlib (Depends-on, Makefile.am): Likewise.
26292         * modules/string (Depends-on, Makefile.am): Likewise.
26293         * modules/strings (Depends-on, Makefile.am): Likewise.
26294         * modules/sys_file (Depends-on, Makefile.am): Likewise.
26295         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
26296         * modules/sys_select (Depends-on, Makefile.am): Likewise.
26297         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
26298         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
26299         * modules/sys_times (Depends-on, Makefile.am): Likewise.
26300         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
26301         * modules/wchar (Depends-on, Makefile.am): Likewise.
26302         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
26303         should be poisoned.
26304         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
26305         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
26306         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
26307         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26308         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26309         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26310         * m4/math_h.m4 (gl_MATH_H): Likewise.
26311         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26312         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
26313         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26314         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
26315         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
26316         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
26317         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
26318         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
26319         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
26320         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26321         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26322         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
26323         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26324         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26325         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26326         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26327         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
26328         GL_LINK_WARNING.
26329         * lib/ctype.in.h: Likewise.
26330         * lib/dirent.in.h: Likewise.
26331         * lib/fcntl.in.h: Likewise.
26332         * lib/inttypes.in.h: Likewise.
26333         * lib/langinfo.in.h: Likewise.
26334         * lib/locale.in.h: Likewise.
26335         * lib/math.in.h: Likewise.
26336         * lib/search.in.h: Likewise.
26337         * lib/signal.in.h: Likewise.
26338         * lib/spawn.in.h: Likewise.
26339         * lib/stdio.in.h: Likewise.
26340         * lib/stdlib.in.h: Likewise.
26341         * lib/string.in.h: Likewise.
26342         * lib/strings.in.h: Likewise.
26343         * lib/sys_file.in.h: Likewise.
26344         * lib/sys_ioctl.in.h: Likewise.
26345         * lib/sys_select.in.h: Likewise.
26346         * lib/sys_socket.in.h: Likewise.
26347         * lib/sys_stat.in.h: Likewise.
26348         * lib/sys_times.in.h: Likewise.
26349         * lib/sys_utsname.in.h: Likewise.
26350         * lib/unistd.in.h: Likewise.
26351         * lib/wchar.in.h: Likewise.
26352
26353 2010-01-20  Bruno Haible  <bruno@clisp.org>
26354
26355         Avoid duplicate -lm.
26356         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
26357         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
26358         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
26359         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
26360         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
26361         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
26362         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
26363         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
26364         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
26365         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
26366         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
26367         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26368         Reported by Paolo Bonzini.
26369
26370 2010-01-19  Bruno Haible  <bruno@clisp.org>
26371
26372         langinfo, nl_langinfo: Relicense under LGPLv2+.
26373         * modules/langinfo (License): Change to LGPLv2+.
26374         * modules/nl_langinfo (License): Likewise.
26375         Patch by David Lutterkort <lutter@redhat.com>.
26376
26377 2010-01-19  Bruno Haible  <bruno@clisp.org>
26378
26379         Avoid compilation error with cc on OSF/1 5.1.
26380         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
26381         statement, not before.
26382         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26383
26384 2010-01-18  Bruno Haible  <bruno@clisp.org>
26385
26386         Avoid a link error due to the __printf__ symbol.
26387         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
26388         and 2.6.x.
26389         (__format__, __printf__): Remove definitions.
26390         * lib/argp-fmtstream.h: Likewise.
26391         * lib/argp.h: Likewise.
26392         * lib/error.h: Likewise.
26393         * lib/vasnprintf.h: Likewise.
26394         * lib/xprintf.h: Likewise.
26395         * lib/xvasprintf.h: Likewise.
26396         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26397
26398 2010-01-18  Bruno Haible  <bruno@clisp.org>
26399
26400         Tests for module 'tanl'.
26401         * modules/tanl-tests: New file.
26402         * tests/test-tanl.c: New file.
26403
26404         Tests for module 'sqrtl'.
26405         * modules/sqrtl-tests: New file.
26406         * tests/test-sqrtl.c: New file.
26407
26408         Tests for module 'sinl'.
26409         * modules/sinl-tests: New file.
26410         * tests/test-sinl.c: New file.
26411
26412         Tests for module 'logl'.
26413         * modules/logl-tests: New file.
26414         * tests/test-logl.c: New file.
26415
26416         Tests for module 'expl'.
26417         * modules/expl-tests: New file.
26418         * tests/test-expl.c: New file.
26419
26420         Tests for module 'cosl'.
26421         * modules/cosl-tests: New file.
26422         * tests/test-cosl.c: New file.
26423
26424         Tests for module 'atanl'.
26425         * modules/atanl-tests: New file.
26426         * tests/test-atanl.c: New file.
26427
26428         Tests for module 'asinl'.
26429         * modules/asinl-tests: New file.
26430         * tests/test-asinl.c: New file.
26431
26432         Tests for module 'acosl'.
26433         * modules/acosl-tests: New file.
26434         * tests/test-acosl.c: New file.
26435
26436         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
26437         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
26438         tanl): Use the standard gnulib idiom.
26439         * lib/cosl.c: Don't include trigl.c and sincosl.c.
26440         * lib/sinl.c: Likewise.
26441         * lib/tanl.c: Don't include trigl.c.
26442         (kernel_tanl): Make static.
26443         * lib/sincosl.c: Include trigl.h first.
26444         * lib/trigl.c: Likewise.
26445         * m4/acosl.m4: New file.
26446         * m4/asinl.m4: New file.
26447         * m4/atanl.m4: New file.
26448         * m4/cosl.m4: New file.
26449         * m4/expl.m4: New file.
26450         * m4/logl.m4: New file.
26451         * m4/sinl.m4: New file.
26452         * m4/sqrtl.m4: New file.
26453         * m4/tanl.m4: New file.
26454         * m4/mathl.m4: Remove file.
26455         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
26456         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
26457         Don't initialize GNULIB_MATHL.
26458         * modules/acosl: New file.
26459         * modules/asinl: New file.
26460         * modules/atanl: New file.
26461         * modules/cosl: New file.
26462         * modules/expl: New file.
26463         * modules/logl: New file.
26464         * modules/sinl: New file.
26465         * modules/sqrtl: New file.
26466         * modules/tanl: New file.
26467         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
26468         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
26469         substitute GNULIB_MATHL.
26470         * modules/mathl: Rewritten.
26471         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
26472         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
26473         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
26474         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
26475         * doc/posix-functions/expl.texi: Mention the 'expl' module.
26476         * doc/posix-functions/logl.texi: Mention the 'logl' module.
26477         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
26478         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
26479         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
26480
26481 2010-01-18  Bruno Haible  <bruno@clisp.org>
26482
26483         sqrt: Make gl_FUNC_SQRT requirable.
26484         * m4/sqrt.m4: New file.
26485         * modules/sqrt (Files): Add it.
26486         (configure.ac): Invoke gl_FUNC_SQRT.
26487
26488 2010-01-18  Bruno Haible  <bruno@clisp.org>
26489
26490         New modules for common <math.h> functions.
26491         * m4/mathfunc.m4: New file.
26492         * modules/acos: New file.
26493         * modules/asin: New file.
26494         * modules/atan: New file.
26495         * modules/atan2: New file.
26496         * modules/cbrt: New file.
26497         * modules/copysign: New file.
26498         * modules/cos: New file.
26499         * modules/cosh: New file.
26500         * modules/erf: New file.
26501         * modules/erfc: New file.
26502         * modules/exp: New file.
26503         * modules/fabs: New file.
26504         * modules/fmod: New file.
26505         * modules/hypot: New file.
26506         * modules/j0: New file.
26507         * modules/j1: New file.
26508         * modules/jn: New file.
26509         * modules/ldexp: New file.
26510         * modules/lgamma: New file.
26511         * modules/log: New file.
26512         * modules/log10: New file.
26513         * modules/log1p: New file.
26514         * modules/logb: New file.
26515         * modules/modf: New file.
26516         * modules/nextafter: New file.
26517         * modules/pow: New file.
26518         * modules/remainder: New file.
26519         * modules/rint: New file.
26520         * modules/sin: New file.
26521         * modules/sinh: New file.
26522         * modules/sqrt: New file.
26523         * modules/tan: New file.
26524         * modules/tanh: New file.
26525         * modules/y0: New file.
26526         * modules/y1: New file.
26527         * modules/yn: New file.
26528         * doc/posix-functions/acos.texi: Mention the 'acos' module.
26529         * doc/posix-functions/asin.texi: Mention the 'asin' module.
26530         * doc/posix-functions/atan.texi: Mention the 'atan' module.
26531         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
26532         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
26533         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
26534         * doc/posix-functions/cos.texi: Mention the 'cos' module.
26535         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
26536         * doc/posix-functions/erf.texi: Mention the 'erf' module.
26537         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
26538         * doc/posix-functions/exp.texi: Mention the 'exp' module.
26539         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
26540         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
26541         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
26542         * doc/posix-functions/j0.texi: Mention the 'j0' module.
26543         * doc/posix-functions/j1.texi: Mention the 'j1' module.
26544         * doc/posix-functions/jn.texi: Mention the 'jn' module.
26545         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
26546         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
26547         * doc/posix-functions/log.texi: Mention the 'log' module.
26548         * doc/posix-functions/log10.texi: Mention the 'log10' module.
26549         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
26550         * doc/posix-functions/logb.texi: Mention the 'logb' module.
26551         * doc/posix-functions/modf.texi: Mention the 'modf' module.
26552         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
26553         * doc/posix-functions/pow.texi: Mention the 'pow' module.
26554         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
26555         * doc/posix-functions/rint.texi: Mention the 'rint' module.
26556         * doc/posix-functions/sin.texi: Mention the 'sin' module.
26557         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
26558         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
26559         * doc/posix-functions/tan.texi: Mention the 'tan' module.
26560         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
26561         * doc/posix-functions/y0.texi: Mention the 'y0' module.
26562         * doc/posix-functions/y1.texi: Mention the 'y1' module.
26563         * doc/posix-functions/yn.texi: Mention the 'yn' module.
26564
26565 2010-01-18  Jim Meyering  <meyering@redhat.com>
26566
26567         ignore-value: relax license to LGPLv2+
26568         * modules/ignore-value (License): Relax to LGPLv2+.
26569
26570         getdate: don't leak when TZ contains two or more '"'s
26571         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
26572         double quote in TZ after the first one.
26573
26574         readtokens: do not leak internal token_lengths buffer
26575         * lib/readtokens.c (readtokens): Free the local, lengths,
26576         when the supplied "token_lengths" parameter is NULL.
26577
26578 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26579
26580         Fix a couple of missing LIBTHREAD link failures on AIX.
26581         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
26582         $(LIBTHREAD).
26583         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
26584
26585         Link test-poll against INET_PTON_LIB.
26586         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
26587         for inet_pton on Solaris 10.
26588
26589 2010-01-17  Bruno Haible  <bruno@clisp.org>
26590
26591         unistdio/*-sprintf: Fix typo in module description.
26592         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
26593         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
26594         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
26595         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
26596         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
26597         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
26598         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
26599         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26600
26601 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26602
26603         gnulib-tool: fix filelist for AIX, HP-UX ksh.
26604         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
26605         variables in shell case patterns, for AIX and HP-UX ksh.
26606
26607         Split large sed scripts, for HP-UX sed.
26608         * modules/stdio: Split sed scripts around 50 sed commands,
26609         to avoid HP-UX limit of 99 commands, in the near future.
26610         * modules/string: Likewise.
26611         * modules/unistd: Likewise.
26612
26613         gnulib-tool: avoid writing in the current directory.
26614         * gnulib-tool (func_emit_lib_Makefile_am)
26615         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
26616         not in the current directory, so concurrent gnulib-tool
26617         instances do not interfere.
26618
26619 2010-01-16  Jim Meyering  <meyering@redhat.com>
26620
26621         doc: update users.txt
26622         * users.txt: Add grep.
26623         (diffutils, gzip): Update URLs.
26624
26625 2010-01-12  Bruno Haible  <bruno@clisp.org>
26626
26627         posix_spawn: Avoid test failure on Cygwin.
26628         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
26629         characters.
26630         Reported by Simon Josefsson.
26631
26632 2010-01-12  Bruno Haible  <bruno@clisp.org>
26633
26634         * tests/test-cond.c (main): When skipping the test, show the reason.
26635
26636 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26637
26638         * lib/striconv.c (str_cd_iconv): Avoid if before free.
26639
26640 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26641
26642         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
26643         VC_LIST_ALWAYS_EXCLUDE_REGEX.
26644
26645 2010-01-12  Eric Blake  <ebb9@byu.net>
26646
26647         build: guarantee AS_VAR_IF
26648         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
26649         (gl_AS_VAR_IF): Move...
26650         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
26651         Reported by Simon Josefsson.
26652
26653 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26654
26655         * lib/stdio.in.h: Fix typo.
26656
26657 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26658
26659         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
26660         libgpg-error.
26661
26662 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26663
26664         * tests/test-xalloc-die.sh: Use $EXEEXT.
26665
26666 2010-01-12  Simon Josefsson  <simon@josefsson.org>
26667             Bruno Haible  <bruno@clisp.org>
26668
26669         getlogin, getlogin_r: Avoid test failure.
26670         * tests/test-getlogin.c: Include <stdio.h>.
26671         (main): Skip the test when the function fails because stdin is not a
26672         tty.
26673         * tests/test-getlogin_r.c: Include <stdio.h>.
26674         (main): Skip the test when the function fails because stdin is not a
26675         tty.
26676
26677 2010-01-11  Eric Blake  <ebb9@byu.net>
26678
26679         tests: avoid more large file warnings
26680         * tests/test-fflush.c: Avoid warning about ftell use.
26681         * tests/test-fseek.c: Avoid warning about fseek use.
26682
26683 2010-01-10  Bruno Haible  <bruno@clisp.org>
26684
26685         nproc: Work better on Linux when /proc and /sys are not mounted.
26686         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
26687         as lower bound when, on glibc/Linux systems,
26688         sysconf (_SC_NPROCESSORS_CONF) returns 1.
26689         Suggested by Pádraig Brady <P@draigbrady.com>.
26690         Reported by Dmitry V. Levin <ldv@altlinux.org>.
26691
26692         nproc: Refactor.
26693         * lib/nproc.c (num_processors_via_affinity_mask): New function,
26694         extracted from num_processors.
26695         (num_processors): Call it.
26696
26697 2010-01-11  Jim Meyering  <meyering@redhat.com>
26698
26699         utimecmp: avoid new warning from upcoming gcc-4.5.0
26700         * lib/utimecmp.c (BILLION): Define using #define rather than an
26701         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
26702
26703 2010-01-11  Eric Blake  <ebb9@byu.net>
26704
26705         math: add portability warnings for classification macros
26706         * modules/math (Depends-on): Add warn-on-use.
26707         (Makefile.am): Provide new substitutions.
26708         * m4/math_h.m4 (gl_MATH_H): Require inline.
26709         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
26710         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
26711         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
26712         implement warnings.
26713
26714         unistd: warn on use of environ without module
26715         * modules/unistd (Depends-on): Add warn-on-use.
26716         (Makefile.am): Provide new substitutions.
26717         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
26718         * lib/unistd.in.h (environ): Wrap with a warning helper function.
26719
26720         stdio: warn on suspicious uses
26721         * modules/stdio (Depends-on): Add warn-on-use.
26722         (Makefile.am): Provide new substitutions.
26723         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
26724         fseeko.
26725         * lib/stdio.in.h (gets): Always warn on use.
26726         (fseek, ftell): Adjust when warnings are issued, and honor
26727         _GL_NO_LARGE_FILES as a way to silence the warning.
26728         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
26729         any warning about large file offsets.
26730         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
26731         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
26732         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
26733         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
26734         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
26735         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
26736         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
26737         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
26738
26739         warn-on-use: new module
26740         * modules/warn-on-use: New file.
26741         * build-aux/warn-on-use.h: Likewise.
26742         * m4/warn-on-use.m4: Likewise.
26743         * MODULES.html.sh (Support for building): Mention it.
26744
26745 2010-01-10  Bruno Haible  <bruno@clisp.org>
26746
26747         Tests for module 'unistr/u32-strdup'.
26748         * modules/unistr/u32-strdup-tests: New file.
26749         * tests/unistr/test-u32-strdup.c: New file.
26750
26751         Tests for module 'unistr/u16-strdup'.
26752         * modules/unistr/u16-strdup-tests: New file.
26753         * tests/unistr/test-u16-strdup.c: New file.
26754
26755         Tests for module 'unistr/u8-strdup'.
26756         * modules/unistr/u8-strdup-tests: New file.
26757         * tests/unistr/test-u8-strdup.c: New file.
26758         * tests/unistr/test-strdup.h: New file.
26759
26760         Tests for module 'unistr/u32-strncmp'.
26761         * modules/unistr/u32-strncmp-tests: New file.
26762         * tests/unistr/test-u32-strncmp.c: New file.
26763
26764         Tests for module 'unistr/u16-strncmp'.
26765         * modules/unistr/u16-strncmp-tests: New file.
26766         * tests/unistr/test-u16-strncmp.c: New file.
26767
26768         Tests for module 'unistr/u8-strncmp'.
26769         * modules/unistr/u8-strncmp-tests: New file.
26770         * tests/unistr/test-u8-strncmp.c: New file.
26771         * tests/unistr/test-strncmp.h: New file.
26772
26773         Tests for module 'unistr/u32-strcoll'.
26774         * modules/unistr/u32-strcoll-tests: New file.
26775         * tests/unistr/test-u32-strcoll.c: New file.
26776
26777         Tests for module 'unistr/u16-strcoll'.
26778         * modules/unistr/u16-strcoll-tests: New file.
26779         * tests/unistr/test-u16-strcoll.c: New file.
26780
26781         Tests for module 'unistr/u8-strcoll'.
26782         * modules/unistr/u8-strcoll-tests: New file.
26783         * tests/unistr/test-u8-strcoll.c: New file.
26784
26785         Tests for module 'unistr/u32-strcmp'.
26786         * modules/unistr/u32-strcmp-tests: New file.
26787         * tests/unistr/test-u32-strcmp.c: New file.
26788         * tests/unistr/test-u32-strcmp.h: New file.
26789
26790         Tests for module 'unistr/u16-strcmp'.
26791         * modules/unistr/u16-strcmp-tests: New file.
26792         * tests/unistr/test-u16-strcmp.c: New file.
26793         * tests/unistr/test-u16-strcmp.h: New file.
26794
26795         Tests for module 'unistr/u8-strcmp'.
26796         * modules/unistr/u8-strcmp-tests: New file.
26797         * tests/unistr/test-u8-strcmp.c: New file.
26798         * tests/unistr/test-u8-strcmp.h: New file.
26799         * tests/unistr/test-strcmp.h: New file.
26800
26801         Tests for module 'unistr/u32-strncat'.
26802         * modules/unistr/u32-strncat-tests: New file.
26803         * tests/unistr/test-u32-strncat.c: New file.
26804
26805         Tests for module 'unistr/u16-strncat'.
26806         * modules/unistr/u16-strncat-tests: New file.
26807         * tests/unistr/test-u16-strncat.c: New file.
26808
26809         Tests for module 'unistr/u8-strncat'.
26810         * modules/unistr/u8-strncat-tests: New file.
26811         * tests/unistr/test-u8-strncat.c: New file.
26812         * tests/unistr/test-strncat.h: New file.
26813
26814         Tests for module 'unistr/u32-strcat'.
26815         * modules/unistr/u32-strcat-tests: New file.
26816         * tests/unistr/test-u32-strcat.c: New file.
26817
26818         Tests for module 'unistr/u16-strcat'.
26819         * modules/unistr/u16-strcat-tests: New file.
26820         * tests/unistr/test-u16-strcat.c: New file.
26821
26822         Tests for module 'unistr/u8-strcat'.
26823         * modules/unistr/u8-strcat-tests: New file.
26824         * tests/unistr/test-u8-strcat.c: New file.
26825         * tests/unistr/test-strcat.h: New file.
26826
26827         Tests for module 'unistr/u32-stpncpy'.
26828         * modules/unistr/u32-stpncpy-tests: New file.
26829         * tests/unistr/test-u32-stpncpy.c: New file.
26830
26831         Tests for module 'unistr/u16-stpncpy'.
26832         * modules/unistr/u16-stpncpy-tests: New file.
26833         * tests/unistr/test-u16-stpncpy.c: New file.
26834
26835         Tests for module 'unistr/u8-stpncpy'.
26836         * modules/unistr/u8-stpncpy-tests: New file.
26837         * tests/unistr/test-u8-stpncpy.c: New file.
26838         * tests/unistr/test-stpncpy.h: New file.
26839
26840         Tests for module 'unistr/u32-strncpy'.
26841         * modules/unistr/u32-strncpy-tests: New file.
26842         * tests/unistr/test-u32-strncpy.c: New file.
26843
26844         Tests for module 'unistr/u16-strncpy'.
26845         * modules/unistr/u16-strncpy-tests: New file.
26846         * tests/unistr/test-u16-strncpy.c: New file.
26847
26848         Tests for module 'unistr/u8-strncpy'.
26849         * modules/unistr/u8-strncpy-tests: New file.
26850         * tests/unistr/test-u8-strncpy.c: New file.
26851         * tests/unistr/test-strncpy.h: New file.
26852
26853         Tests for module 'unistr/u32-stpcpy'.
26854         * modules/unistr/u32-stpcpy-tests: New file.
26855         * tests/unistr/test-u32-stpcpy.c: New file.
26856
26857         Tests for module 'unistr/u16-stpcpy'.
26858         * modules/unistr/u16-stpcpy-tests: New file.
26859         * tests/unistr/test-u16-stpcpy.c: New file.
26860
26861         Tests for module 'unistr/u8-stpcpy'.
26862         * modules/unistr/u8-stpcpy-tests: New file.
26863         * tests/unistr/test-u8-stpcpy.c: New file.
26864         * tests/unistr/test-stpcpy.h: New file.
26865
26866         Tests for module 'unistr/u32-strcpy'.
26867         * modules/unistr/u32-strcpy-tests: New file.
26868         * tests/unistr/test-u32-strcpy.c: New file.
26869
26870         Tests for module 'unistr/u16-strcpy'.
26871         * modules/unistr/u16-strcpy-tests: New file.
26872         * tests/unistr/test-u16-strcpy.c: New file.
26873
26874         Tests for module 'unistr/u8-strcpy'.
26875         * modules/unistr/u8-strcpy-tests: New file.
26876         * tests/unistr/test-u8-strcpy.c: New file.
26877         * tests/unistr/test-strcpy.h: New file.
26878
26879         Tests for module 'unistr/u32-strnlen'.
26880         * modules/unistr/u32-strnlen-tests: New file.
26881         * tests/unistr/test-u32-strnlen.c: New file.
26882
26883         Tests for module 'unistr/u16-strnlen'.
26884         * modules/unistr/u16-strnlen-tests: New file.
26885         * tests/unistr/test-u16-strnlen.c: New file.
26886
26887         Tests for module 'unistr/u8-strnlen'.
26888         * modules/unistr/u8-strnlen-tests: New file.
26889         * tests/unistr/test-u8-strnlen.c: New file.
26890         * tests/unistr/test-strnlen.h: New file.
26891
26892         Tests for module 'unistr/u32-strlen'.
26893         * modules/unistr/u32-strlen-tests: New file.
26894         * tests/unistr/test-u32-strlen.c: New file.
26895
26896         Tests for module 'unistr/u16-strlen'.
26897         * modules/unistr/u16-strlen-tests: New file.
26898         * tests/unistr/test-u16-strlen.c: New file.
26899
26900         Tests for module 'unistr/u8-strlen'.
26901         * modules/unistr/u8-strlen-tests: New file.
26902         * tests/unistr/test-u8-strlen.c: New file.
26903
26904         Tests for module 'unistr/u32-prev'.
26905         * modules/unistr/u32-prev-tests: New file.
26906         * tests/unistr/test-u32-prev.c: New file.
26907
26908         Tests for module 'unistr/u16-prev'.
26909         * modules/unistr/u16-prev-tests: New file.
26910         * tests/unistr/test-u16-prev.c: New file.
26911
26912         Tests for module 'unistr/u8-prev'.
26913         * modules/unistr/u8-prev-tests: New file.
26914         * tests/unistr/test-u8-prev.c: New file.
26915
26916         Tests for module 'unistr/u32-next'.
26917         * modules/unistr/u32-next-tests: New file.
26918         * tests/unistr/test-u32-next.c: New file.
26919
26920         Tests for module 'unistr/u16-next'.
26921         * modules/unistr/u16-next-tests: New file.
26922         * tests/unistr/test-u16-next.c: New file.
26923
26924         Tests for module 'unistr/u8-next'.
26925         * modules/unistr/u8-next-tests: New file.
26926         * tests/unistr/test-u8-next.c: New file.
26927
26928         Tests for module 'unistr/u32-strmbtouc'.
26929         * modules/unistr/u32-strmbtouc-tests: New file.
26930         * tests/unistr/test-u32-strmbtouc.c: New file.
26931
26932         Tests for module 'unistr/u16-strmbtouc'.
26933         * modules/unistr/u16-strmbtouc-tests: New file.
26934         * tests/unistr/test-u16-strmbtouc.c: New file.
26935
26936         Tests for module 'unistr/u8-strmbtouc'.
26937         * modules/unistr/u8-strmbtouc-tests: New file.
26938         * tests/unistr/test-u8-strmbtouc.c: New file.
26939
26940         Tests for module 'unistr/u32-strmblen'.
26941         * modules/unistr/u32-strmblen-tests: New file.
26942         * tests/unistr/test-u32-strmblen.c: New file.
26943
26944         Tests for module 'unistr/u16-strmblen'.
26945         * modules/unistr/u16-strmblen-tests: New file.
26946         * tests/unistr/test-u16-strmblen.c: New file.
26947
26948         Tests for module 'unistr/u8-strmblen'.
26949         * modules/unistr/u8-strmblen-tests: New file.
26950         * tests/unistr/test-u8-strmblen.c: New file.
26951
26952         Tests for module 'unistr/u32-cpy-alloc'.
26953         * modules/unistr/u32-cpy-alloc-tests: New file.
26954         * tests/unistr/test-u32-cpy-alloc.c: New file.
26955
26956         Tests for module 'unistr/u16-cpy-alloc'.
26957         * modules/unistr/u16-cpy-alloc-tests: New file.
26958         * tests/unistr/test-u16-cpy-alloc.c: New file.
26959
26960         Tests for module 'unistr/u8-cpy-alloc'.
26961         * modules/unistr/u8-cpy-alloc-tests: New file.
26962         * tests/unistr/test-u8-cpy-alloc.c: New file.
26963         * tests/unistr/test-cpy-alloc.h: New file.
26964
26965         Tests for module 'unistr/u32-mbsnlen'.
26966         * modules/unistr/u32-mbsnlen-tests: New file.
26967         * tests/unistr/test-u32-mbsnlen.c: New file.
26968
26969         Tests for module 'unistr/u16-mbsnlen'.
26970         * modules/unistr/u16-mbsnlen-tests: New file.
26971         * tests/unistr/test-u16-mbsnlen.c: New file.
26972
26973         Tests for module 'unistr/u8-mbsnlen'.
26974         * modules/unistr/u8-mbsnlen-tests: New file.
26975         * tests/unistr/test-u8-mbsnlen.c: New file.
26976
26977         Tests for module 'unistr/u32-chr'.
26978         * modules/unistr/u32-chr-tests: New file.
26979         * tests/unistr/test-u32-chr.c: New file.
26980
26981         Tests for module 'unistr/u16-chr'.
26982         * modules/unistr/u16-chr-tests: New file.
26983         * tests/unistr/test-u16-chr.c: New file.
26984
26985         Tests for module 'unistr/u8-chr'.
26986         * modules/unistr/u8-chr-tests: New file.
26987         * tests/unistr/test-u8-chr.c: New file.
26988         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
26989
26990         Tests for module 'unistr/u32-cmp2'.
26991         * modules/unistr/u32-cmp2-tests: New file.
26992         * tests/unistr/test-u32-cmp2.c: New file.
26993
26994         Tests for module 'unistr/u16-cmp2'.
26995         * modules/unistr/u16-cmp2-tests: New file.
26996         * tests/unistr/test-u16-cmp2.c: New file.
26997
26998         Tests for module 'unistr/u8-cmp2'.
26999         * modules/unistr/u8-cmp2-tests: New file.
27000         * tests/unistr/test-u8-cmp2.c: New file.
27001         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
27002
27003         Tests for module 'unistr/u32-cmp'.
27004         * modules/unistr/u32-cmp-tests: New file.
27005         * tests/unistr/test-u32-cmp.c: New file.
27006
27007         Tests for module 'unistr/u16-cmp'.
27008         * modules/unistr/u16-cmp-tests: New file.
27009         * tests/unistr/test-u16-cmp.c: New file.
27010
27011         Tests for module 'unistr/u8-cmp'.
27012         * modules/unistr/u8-cmp-tests: New file.
27013         * tests/unistr/test-u8-cmp.c: New file.
27014         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
27015
27016         Tests for module 'unistr/u32-set'.
27017         * modules/unistr/u32-set-tests: New file.
27018         * tests/unistr/test-u32-set.c: New file.
27019
27020         Tests for module 'unistr/u16-set'.
27021         * modules/unistr/u16-set-tests: New file.
27022         * tests/unistr/test-u16-set.c: New file.
27023
27024         Tests for module 'unistr/u8-set'.
27025         * modules/unistr/u8-set-tests: New file.
27026         * tests/unistr/test-u8-set.c: New file.
27027         * tests/unistr/test-set.h: New file.
27028
27029         Tests for module 'unistr/u32-move'.
27030         * modules/unistr/u32-move-tests: New file.
27031         * tests/unistr/test-u32-move.c: New file.
27032
27033         Tests for module 'unistr/u16-move'.
27034         * modules/unistr/u16-move-tests: New file.
27035         * tests/unistr/test-u16-move.c: New file.
27036
27037         Tests for module 'unistr/u8-move'.
27038         * modules/unistr/u8-move-tests: New file.
27039         * tests/unistr/test-u8-move.c: New file.
27040         * tests/unistr/test-move.h: New file.
27041
27042         Tests for module 'unistr/u32-cpy'.
27043         * modules/unistr/u32-cpy-tests: New file.
27044         * tests/unistr/test-u32-cpy.c: New file.
27045
27046         Tests for module 'unistr/u16-cpy'.
27047         * modules/unistr/u16-cpy-tests: New file.
27048         * tests/unistr/test-u16-cpy.c: New file.
27049
27050         Tests for module 'unistr/u8-cpy'.
27051         * modules/unistr/u8-cpy-tests: New file.
27052         * tests/unistr/test-u8-cpy.c: New file.
27053         * tests/unistr/test-cpy.h: New file.
27054
27055 2010-01-09  Bruno Haible  <bruno@clisp.org>
27056
27057         Tests for module 'unistr/u32-uctomb'.
27058         * modules/unistr/u32-uctomb-tests: New file.
27059         * tests/unistr/test-u32-uctomb.c: New file.
27060
27061         Tests for module 'unistr/u16-uctomb'.
27062         * modules/unistr/u16-uctomb-tests: New file.
27063         * tests/unistr/test-u16-uctomb.c: New file.
27064
27065         Tests for module 'unistr/u8-uctomb'.
27066         * modules/unistr/u8-uctomb-tests: New file.
27067         * tests/unistr/test-u8-uctomb.c: New file.
27068
27069         Tests for module 'unistr/u32-mbtoucr'.
27070         * modules/unistr/u32-mbtoucr-tests: New file.
27071         * tests/unistr/test-u32-mbtoucr.c: New file.
27072
27073         Tests for module 'unistr/u16-mbtoucr'.
27074         * modules/unistr/u16-mbtoucr-tests: New file.
27075         * tests/unistr/test-u16-mbtoucr.c: New file.
27076
27077         Tests for module 'unistr/u8-mbtoucr'.
27078         * modules/unistr/u8-mbtoucr-tests: New file.
27079         * tests/unistr/test-u8-mbtoucr.c: New file.
27080
27081         Tests for module 'unistr/u32-mbtouc'.
27082         * modules/unistr/u32-mbtouc-tests: New file.
27083         * tests/unistr/test-u32-mbtouc.c: New file.
27084
27085         Tests for module 'unistr/u16-mbtouc'.
27086         * modules/unistr/u16-mbtouc-tests: New file.
27087         * tests/unistr/test-u16-mbtouc.c: New file.
27088
27089         Tests for module 'unistr/u8-mbtouc'.
27090         * modules/unistr/u8-mbtouc-tests: New file.
27091         * tests/unistr/test-u8-mbtouc.c: New file.
27092
27093         Tests for module 'unistr/u32-mbtouc-unsafe'.
27094         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
27095         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
27096         * tests/unistr/test-u32-mbtouc.h: New file.
27097
27098         Tests for module 'unistr/u16-mbtouc-unsafe'.
27099         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
27100         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
27101         * tests/unistr/test-u16-mbtouc.h: New file.
27102
27103         Tests for module 'unistr/u8-mbtouc-unsafe'.
27104         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
27105         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
27106         * tests/unistr/test-u8-mbtouc.h: New file.
27107
27108         Tests for module 'unistr/u32-mblen'.
27109         * modules/unistr/u32-mblen-tests: New file.
27110         * tests/unistr/test-u32-mblen.c: New file.
27111
27112         Tests for module 'unistr/u16-mblen'.
27113         * modules/unistr/u16-mblen-tests: New file.
27114         * tests/unistr/test-u16-mblen.c: New file.
27115
27116         Tests for module 'unistr/u8-mblen'.
27117         * modules/unistr/u8-mblen-tests: New file.
27118         * tests/unistr/test-u8-mblen.c: New file.
27119
27120         Tests for module 'unistr/u32-to-u16'.
27121         * modules/unistr/u32-to-u16-tests: New file.
27122         * tests/unistr/test-u32-to-u16.c: New file.
27123
27124         Tests for module 'unistr/u32-to-u8'.
27125         * modules/unistr/u32-to-u8-tests: New file.
27126         * tests/unistr/test-u32-to-u8.c: New file.
27127
27128         Tests for module 'unistr/u16-to-u32'.
27129         * modules/unistr/u16-to-u32-tests: New file.
27130         * tests/unistr/test-u16-to-u32.c: New file.
27131
27132         Tests for module 'unistr/u16-to-u8'.
27133         * modules/unistr/u16-to-u8-tests: New file.
27134         * tests/unistr/test-u16-to-u8.c: New file.
27135
27136         Tests for module 'unistr/u8-to-u32'.
27137         * modules/unistr/u8-to-u32-tests: New file.
27138         * tests/unistr/test-u8-to-u32.c: New file.
27139
27140         Tests for module 'unistr/u8-to-u16'.
27141         * modules/unistr/u8-to-u16-tests: New file.
27142         * tests/unistr/test-u8-to-u16.c: New file.
27143
27144         Tests for module 'unistr/u32-check'.
27145         * modules/unistr/u32-check-tests: New file.
27146         * tests/unistr/test-u32-check.c: New file.
27147
27148         Tests for module 'unistr/u16-check'.
27149         * modules/unistr/u16-check-tests: New file.
27150         * tests/unistr/test-u16-check.c: New file.
27151
27152         Tests for module 'unistr/u8-check'.
27153         * modules/unistr/u8-check-tests: New file.
27154         * tests/unistr/test-u8-check.c: New file.
27155
27156         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
27157         (category_equals): New function.
27158         (main): Add more tests.
27159         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
27160
27161         * tests/unictype/test-bidi_byname.c (main): Add more tests.
27162
27163 2010-01-10  Bruno Haible  <bruno@clisp.org>
27164
27165         unistr/u*-strcoll: Try harder to distinguish different strings.
27166         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
27167         compare s1 and s2 to see if they are different.
27168
27169 2010-01-10  Bruno Haible  <bruno@clisp.org>
27170
27171         unistr/u*-stpncpy: Fix the return value.
27172         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
27173         description of the return value consistent with stpncpy in glibc.
27174         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
27175         written non-NUL unit.
27176
27177 2010-01-10  Bruno Haible  <bruno@clisp.org>
27178
27179         unistr/u*-next: Add missing dependencies.
27180         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
27181         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
27182         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
27183
27184 2010-01-10  Bruno Haible  <bruno@clisp.org>
27185
27186         unistr/u8-mbsnlen: Fix return value for incomplete character.
27187         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
27188         u8_mblen.
27189         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
27190         Remove unistr/u8-mblen.
27191         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
27192         u16_mblen.
27193         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
27194         Remove unistr/u16-mblen.
27195
27196 2010-01-10  Bruno Haible  <bruno@clisp.org>
27197
27198         wchar: Fix compilation error when <wchar.h> is used from coreutils.
27199         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
27200         Reported by Brian Gough <bjg@gnu.org> and
27201         Chris Clayton <chris2553@googlemail.com> via
27202         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
27203
27204 2010-01-09  Bruno Haible  <bruno@clisp.org>
27205
27206         unistr/u16-to-u32: Reject invalid input.
27207         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
27208         u16_mbtouc.
27209         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
27210         Remove unistr/u16-mbtouc.
27211
27212         unistr/u16-to-u8: Reject invalid input.
27213         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
27214         u16_mbtouc.
27215         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
27216         Remove unistr/u16-mbtouc.
27217
27218         unistr/u8-to-u32: Reject invalid input.
27219         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
27220         u8_mbtouc.
27221         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
27222         Remove unistr/u8-mbtouc.
27223
27224         unistr/u8-to-u16: Reject invalid input.
27225         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
27226         u8_mbtouc.
27227         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
27228         Remove unistr/u8-mbtouc.
27229
27230 2010-01-09  Bruno Haible  <bruno@clisp.org>
27231
27232         Tests for module 'getlogin'.
27233         * modules/getlogin-tests: New file.
27234         * tests/test-getlogin.c: New file.
27235
27236         New module 'getlogin'.
27237         * lib/unistd.in.h (getlogin): New declaration.
27238         * lib/getlogin.c: New file.
27239         * m4/getlogin.m4: New file.
27240         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
27241         HAVE_GETLOGIN.
27242         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
27243         HAVE_GETLOGIN.
27244         * modules/getlogin: New file.
27245         * doc/posix-functions/getlogin.texi: Mention the new module.
27246         Reported by John W. Eaton <jwe@gnu.org>.
27247
27248 2010-01-09  Bruno Haible  <bruno@clisp.org>
27249
27250         getlogin_r: Support for native Windows.
27251         * lib/getlogin_r.c: Include <windows.h>
27252         (getlogin_r): Implement for native Windows.
27253         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
27254         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
27255         via John W. Eaton <jwe@gnu.org>.
27256
27257 2010-01-09  Bruno Haible  <bruno@clisp.org>
27258
27259         getlogin_r: Small fixes.
27260         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
27261         succeeds.
27262         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
27263         before testing whether getlogin_r is declared. No need to set
27264         HAVE_DECL_GETLOGIN_R to 1.
27265         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
27266
27267 2010-01-09  Bruno Haible  <bruno@clisp.org>
27268
27269         * lib/unistd.in.h (getlogin_r): Add comment.
27270
27271 2010-01-09  Bruno Haible  <bruno@clisp.org>
27272
27273         Tests for module 'getlogin_r'.
27274         * modules/getlogin_r-tests: New file.
27275         * tests/test-getlogin_r.c: New file.
27276
27277 2010-01-09  Jim Meyering  <meyering@redhat.com>
27278
27279         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
27280         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
27281         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
27282
27283 2010-01-08  Simon Josefsson  <simon@josefsson.org>
27284
27285         * lib/dup2.c (rpl_dup2): Improve comment.
27286
27287 2010-01-08  Eric Blake  <ebb9@byu.net>
27288
27289         maint.mk: allow packages to add makefile @@ exceptions
27290         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
27291         (sc_makefile_check): Rename...
27292         (sc_makefile_at_at_check): ...to this, and use hook.
27293
27294         dup2: work around mingw bug
27295         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
27296         Reported by Simon Josefsson.
27297
27298 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
27299
27300         glob: Fix C++ compilation.
27301         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
27302         C++.
27303
27304 2010-01-07  Bruno Haible  <bruno@clisp.org>
27305
27306         Fix indentation of wctype.in.h, broken since 2007-01-06.
27307         * lib/wctype.in.h: Fix indentation of preprocessor directives.
27308
27309 2010-01-07  Bruno Haible  <bruno@clisp.org>
27310
27311         mbslen: Avoid collision with system function.
27312         * lib/string.in.h [MirBSD]: Include <wchar.h>.
27313         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
27314         * m4/mbslen.m4: New file.
27315         * modules/mbslen (Files): Add it.
27316         (configure.ac): Invoke gl_MBSLEN.
27317         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
27318         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
27319         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
27320         via Ian Beckwith <ianb@erislabs.net>.
27321
27322 2010-01-07  Bruno Haible  <bruno@clisp.org>
27323
27324         dirent: Document the last fix.
27325         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
27326
27327 2010-01-07  Bruno Haible  <bruno@clisp.org>
27328
27329         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
27330         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
27331         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
27332         va_list are defined.
27333         * doc/posix-headers/stdio.texi: Document the bug of missing types.
27334         Reported by Eric Blake.
27335
27336 2010-01-07  Bruno Haible  <bruno@clisp.org>
27337
27338         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
27339         * modules/xlist (Depends-on): Add 'list',
27340         * modules/xoset (Depends-on): Add 'oset'.
27341         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27342
27343 2010-01-07  Bruno Haible  <bruno@clisp.org>
27344
27345         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
27346         * doc/posix-functions/strncasecmp.texi: Likewise.
27347
27348 2010-01-07  Bruno Haible  <bruno@clisp.org>
27349
27350         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
27351
27352 2010-01-07  John W. Eaton  <jwe@octave.org>
27353
27354         wctype: allow C++ use
27355         * lib/wctype.in.h: Add extern "C" block for C++.
27356
27357 2010-01-06  Eric Blake  <ebb9@byu.net>
27358
27359         maint.mk: detect incorrect GFDL usage
27360         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
27361
27362 2010-01-06  Jim Meyering  <meyering@redhat.com>
27363         and Eric Blake  <ebb9@byu.net>
27364
27365         maint.mk: ignore multi-line copyright in NEWS
27366         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
27367
27368 2010-01-06  Eric Blake  <ebb9@byu.net>
27369
27370         select: add missing dependency
27371         * modules/select-tests (Depends-on): Move sockets dependency...
27372         * modules/select (Depends-on): ...here.
27373         Reported by Ian Beckwith.
27374
27375         doc: regenerate INSTALL
27376         * doc/INSTALL: Reflect recent autoconf update.
27377         * doc/INSTALL.ISO: Likewise.
27378         * doc/INSTALL.UTF-8: Likewise.
27379
27380         pread: fix compilation on glibc
27381         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
27382         Reported by Ralf Wildenhues.
27383
27384         dirent: fix test failure
27385         * lib/dirent.in.h (includes): Guarantee ino_t.
27386         Reported by Ralf Wildenhues.
27387
27388 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
27389
27390         linkat, renameat: avoid bad free
27391         * lib/at-func2.c (at_func2): Fix typo.
27392         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
27393
27394 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27395
27396         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
27397         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
27398         to avoid failure of symlink test later.
27399
27400 2010-01-06  Eric Blake  <ebb9@byu.net>
27401
27402         stdio, unistd: guarantee ssize_t
27403         * lib/unistd.in.h (includes): Ensure that types required by POSIX
27404         2008 are exposed when needed.
27405         * lib/stdio.in.h (includes): Likewise.
27406         Reported by Ralf Wildenhues.
27407
27408 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
27409
27410         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
27411         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
27412         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
27413
27414 2010-01-06  Jim Meyering  <meyering@redhat.com>
27415
27416         readtokens: this module *does* require xalloc.h
27417         It uses only functions that were omitted by the old syntax-check rule.
27418         * lib/readtokens.c: Include "xalloc.h" once again.
27419         * modules/readtokens (Depends-on): Add xalloc.
27420         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
27421
27422 2010-01-05  Eric Blake  <ebb9@byu.net>
27423
27424         maint: support 'make announcement' from a VPATH build
27425         * top/maint.mk (announcement): Look for correct NEWS file.
27426
27427 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
27428
27429         utimens (fdutimens): ignore a negative FD, per contract
27430         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
27431         when we have a valid file descriptor.  Otherwise, using a brand
27432         new glibc (with just-patched futimens that now fails with EBADF)
27433         would cause this function to fail with ENOSYS.
27434         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
27435         See also http://bugzilla.redhat.com/552320.
27436
27437 2010-01-05  Eric Blake  <ebb9@byu.net>
27438
27439         strcase: document what it provides
27440         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
27441         gnulib module.
27442         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
27443         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
27444
27445 2010-01-05  Jim Meyering  <meyering@redhat.com>
27446
27447         maint: remove useless inclusions of "xalloc.h"
27448         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
27449         * lib/readtokens.c: Likewise.
27450         * lib/same.c: Likewise.
27451         * modules/getloadavg (Depends-on): Remove xalloc.
27452         * modules/readtokens: Likewise.
27453         * modules/same: Likewise.
27454
27455         maint.mk: include 4 more function names in alloca.h-checking regexp
27456         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
27457         regexp.  Before, we would give a false-positive (saying alloca.h
27458         is included unnecessarily) when the only uses involved omitted symbols.
27459
27460         xalloc.h: use consistent formatting
27461         * lib/xalloc.h: Move declarations to start in the first column.
27462
27463 2010-01-05  Eric Blake  <ebb9@byu.net>
27464
27465         mkdir: avoid xalloc
27466         * lib/mkdir.c (includes): Drop unused header.
27467         Reported by John W. Eaton.
27468
27469 2010-01-04  Jim Meyering  <meyering@redhat.com>
27470
27471         nl_langinfo: avoid configure-time syntax error
27472         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
27473         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
27474         the empty string.  Don't let that provoke a shell syntax error.
27475
27476         regcomp, regexec, fnmatch: avoid array bounds read error
27477         * lib/regcomp.c (build_equiv_class): From glibc:
27478         Use only the low 24 bits of a findidx return value as an index
27479         into the weights array.  Patch by Ulrich Drepper:
27480         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
27481         * lib/regexec.c (check_node_accept_bytes): Likewise.
27482         * lib/fnmatch_loop.c (FCT): Likewise.
27483
27484         regcomp: skip collseq lookup when there are no rules
27485         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
27486         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
27487
27488         regcomp: recognize ill-formed { } expressions
27489         * lib/regcomp.c (parse_dup_op): From glibc:
27490         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
27491
27492         regcomp: fix typo in comment
27493         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
27494         s/satisfy/satisfies/.
27495
27496         regcomp: sync from glibc: remove dead store
27497         * lib/regcomp.c (duplicate_node_closure): Remove useless
27498         search_duplicated_node call and dead store.
27499
27500         regcomp: sync from glibc; always use nl_langinfo
27501         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
27502         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
27503         * modules/regex (Depends-on): Add nl_langinfo.
27504
27505 2010-01-04  Eric Blake  <ebb9@byu.net>
27506
27507         fdopendir: fix configure test
27508         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
27509
27510 2010-01-01  Bruno Haible  <bruno@clisp.org>
27511
27512         wchar: Remove unused configure check.
27513         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
27514
27515 2010-01-01  Eric Blake  <ebb9@byu.net>
27516
27517         headers: make check of system header explicit
27518         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
27519         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
27520         ourselves.
27521         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27522         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27523         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
27524         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
27525         internals.
27526         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
27527         missing.
27528         Suggested by Bruno Haible.
27529
27530 2010-01-01  Jim Meyering  <meyering@redhat.com>
27531
27532         ChangeLog: tweak to eliminate unnecessary copyright line
27533         * ChangeLog: Remove a copyright line that was mistakenly updated
27534         by today's update-copyright run.  Reported by Eric Blake.
27535
27536         test-update-copyright: don't let envvar setting cause test failure
27537         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
27538
27539 2010-01-01  Bruno Haible  <bruno@clisp.org>
27540
27541         localename: Avoid gcc warning.
27542         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
27543         function if it is not used.
27544
27545 2010-01-01  Jim Meyering  <meyering@redhat.com>
27546
27547         update nearly all FSF copyright year lists to include 2010
27548         Use the same procedure as for 2009, outlined in
27549         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
27550
27551         version-etc: set COPYRIGHT_YEAR to 2010
27552         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
27553
27554 2009-12-31  Eric Blake  <ebb9@byu.net>
27555
27556         doc: correct availability of cygwin 1.5.x getopt
27557         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
27558         variables.
27559         * doc/posix-functions/opterr.texi (opterr): Likewise.
27560         * doc/posix-functions/optind.texi (optind): Likewise.
27561         * doc/posix-functions/optopt.texi (optopt): Likewise.
27562         * doc/posix-functions/tzname.texi (tzname): Likewise.
27563
27564         openat: update maintainer
27565         * modules/openat (Maintainer): Add myself.
27566
27567         utimens: avoid shadowing warning
27568         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
27569         buffers into one, to avoid shadowing, as well as avoiding a
27570         redundant stat.
27571         Reported by Jim Meyering.
27572
27573         test-dup2: avoid compiler warning
27574         * tests/test-dup2.c (is_inheritable): Only define if used.
27575
27576 2010-01-01  Bruno Haible  <bruno@clisp.org>
27577
27578         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
27579         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
27580         defined, use wctomb instead of wcrtomb.
27581
27582 2010-01-01  Bruno Haible  <bruno@clisp.org>
27583
27584         iconv: Reject native Solaris iconv.
27585         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
27586         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
27587
27588 2009-12-31  Bruno Haible  <bruno@clisp.org>
27589
27590         * tests/test-signal.c (main): Remove test of 'SIG'.
27591
27592 2009-12-31  Bruno Haible  <bruno@clisp.org>
27593
27594         spawn: Fix incomplete fix.
27595         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
27596         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
27597         warnings for GNULIB_POSIXCHECK again.
27598         Reported by Eric Blake.
27599
27600 2009-12-31  Bruno Haible  <bruno@clisp.org>
27601
27602         Avoid namespace pollution on glibc systems.
27603         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
27604         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
27605         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
27606         glibc systems.
27607
27608 2009-12-31  Bruno Haible  <bruno@clisp.org>
27609
27610         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
27611         (gl_REPLACE_WCHAR_H): Turn into a no-op.
27612         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
27613         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
27614         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
27615         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
27616         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
27617
27618 2009-12-31  Bruno Haible  <bruno@clisp.org>
27619
27620         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
27621         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
27622         afterwards.
27623
27624 2009-12-31  Bruno Haible  <bruno@clisp.org>
27625
27626         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
27627         SYS_UTSNAME_H.
27628
27629 2009-12-31  Bruno Haible  <bruno@clisp.org>
27630
27631         spawn: Fix misapplied patch.
27632         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
27633         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
27634         warnings for GNULIB_POSIXCHECK.
27635
27636 2009-12-31  Bruno Haible  <bruno@clisp.org>
27637
27638         times: Update after sys_times changed.
27639         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
27640         * modules/times (Files): Add it.
27641         (configure.ac): Invoke gl_FUNC_TIMES.
27642
27643 2009-12-31  Bruno Haible  <bruno@clisp.org>
27644
27645         Use AC_C_INLINE where necessary.
27646         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
27647         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
27648         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
27649         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
27650         * m4/mbfile.m4 (gl_MBFILE): Likewise.
27651         * m4/mbiter.m4 (gl_MBITER): Likewise.
27652         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
27653         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27654         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
27655         * modules/u64 (configure.ac): Likewise.
27656
27657 2009-12-31  Bruno Haible  <bruno@clisp.org>
27658
27659         Use AC_C_INLINE instead of module 'inline' where possible.
27660         * modules/inline (Description): Clarify purpose.
27661         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
27662         * modules/count-one-bits (Depends-on): Remove inline.
27663         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
27664         * modules/openat (Depends-on): Remove inline.
27665         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
27666         instead of depending on module 'inline'.
27667         * modules/filevercmp (Depends-on, configure.ac): Likewise.
27668         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
27669         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
27670         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
27671         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
27672         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
27673         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
27674         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
27675         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
27676         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
27677         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
27678         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
27679         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
27680         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
27681         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
27682         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
27683         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
27684         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
27685         Likewise.
27686         * modules/unictype/property-ascii-hex-digit (Depends-on,
27687         configure.ac): Likewise.
27688         * modules/unictype/property-bidi-arabic-digit (Depends-on,
27689         configure.ac): Likewise.
27690         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
27691         configure.ac): Likewise.
27692         * modules/unictype/property-bidi-block-separator (Depends-on,
27693         configure.ac): Likewise.
27694         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
27695         configure.ac): Likewise.
27696         * modules/unictype/property-bidi-common-separator (Depends-on,
27697         configure.ac): Likewise.
27698         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
27699         Likewise.
27700         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
27701         configure.ac): Likewise.
27702         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
27703         configure.ac): Likewise.
27704         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
27705         configure.ac): Likewise.
27706         * modules/unictype/property-bidi-european-digit (Depends-on,
27707         configure.ac): Likewise.
27708         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
27709         configure.ac): Likewise.
27710         * modules/unictype/property-bidi-left-to-right (Depends-on,
27711         configure.ac): Likewise.
27712         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
27713         configure.ac): Likewise.
27714         * modules/unictype/property-bidi-other-neutral (Depends-on,
27715         configure.ac): Likewise.
27716         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
27717         Likewise.
27718         * modules/unictype/property-bidi-segment-separator (Depends-on,
27719         configure.ac): Likewise.
27720         * modules/unictype/property-bidi-whitespace (Depends-on,
27721         configure.ac): Likewise.
27722         * modules/unictype/property-combining (Depends-on, configure.ac):
27723         Likewise.
27724         * modules/unictype/property-composite (Depends-on, configure.ac):
27725         Likewise.
27726         * modules/unictype/property-currency-symbol (Depends-on,
27727         configure.ac): Likewise.
27728         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
27729         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
27730         Likewise.
27731         * modules/unictype/property-default-ignorable-code-point (Depends-on,
27732         configure.ac): Likewise.
27733         * modules/unictype/property-deprecated (Depends-on, configure.ac):
27734         Likewise.
27735         * modules/unictype/property-diacritic (Depends-on, configure.ac):
27736         Likewise.
27737         * modules/unictype/property-extender (Depends-on, configure.ac):
27738         Likewise.
27739         * modules/unictype/property-format-control (Depends-on, configure.ac):
27740         Likewise.
27741         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
27742         Likewise.
27743         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
27744         Likewise.
27745         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
27746         Likewise.
27747         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
27748         Likewise.
27749         * modules/unictype/property-hyphen (Depends-on, configure.ac):
27750         Likewise.
27751         * modules/unictype/property-id-continue (Depends-on, configure.ac):
27752         Likewise.
27753         * modules/unictype/property-id-start (Depends-on, configure.ac):
27754         Likewise.
27755         * modules/unictype/property-ideographic (Depends-on, configure.ac):
27756         Likewise.
27757         * modules/unictype/property-ids-binary-operator (Depends-on,
27758         configure.ac): Likewise.
27759         * modules/unictype/property-ids-trinary-operator (Depends-on,
27760         configure.ac): Likewise.
27761         * modules/unictype/property-ignorable-control (Depends-on,
27762         configure.ac): Likewise.
27763         * modules/unictype/property-iso-control (Depends-on, configure.ac):
27764         Likewise.
27765         * modules/unictype/property-join-control (Depends-on, configure.ac):
27766         Likewise.
27767         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
27768         Likewise.
27769         * modules/unictype/property-line-separator (Depends-on, configure.ac):
27770         Likewise.
27771         * modules/unictype/property-logical-order-exception (Depends-on,
27772         configure.ac): Likewise.
27773         * modules/unictype/property-lowercase (Depends-on, configure.ac):
27774         Likewise.
27775         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
27776         * modules/unictype/property-non-break (Depends-on, configure.ac):
27777         Likewise.
27778         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
27779         Likewise.
27780         * modules/unictype/property-numeric (Depends-on, configure.ac):
27781         Likewise.
27782         * modules/unictype/property-other-alphabetic (Depends-on,
27783         configure.ac): Likewise.
27784         * modules/unictype/property-other-default-ignorable-code-point
27785         (Depends-on, configure.ac): Likewise.
27786         * modules/unictype/property-other-grapheme-extend (Depends-on,
27787         configure.ac): Likewise.
27788         * modules/unictype/property-other-id-continue (Depends-on,
27789         configure.ac): Likewise.
27790         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
27791         Likewise.
27792         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
27793         Likewise.
27794         * modules/unictype/property-other-math (Depends-on, configure.ac):
27795         Likewise.
27796         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
27797         Likewise.
27798         * modules/unictype/property-paired-punctuation (Depends-on,
27799         configure.ac): Likewise.
27800         * modules/unictype/property-paragraph-separator (Depends-on,
27801         configure.ac): Likewise.
27802         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
27803         Likewise.
27804         * modules/unictype/property-pattern-white-space (Depends-on,
27805         configure.ac): Likewise.
27806         * modules/unictype/property-private-use (Depends-on, configure.ac):
27807         Likewise.
27808         * modules/unictype/property-punctuation (Depends-on, configure.ac):
27809         Likewise.
27810         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
27811         Likewise.
27812         * modules/unictype/property-radical (Depends-on, configure.ac):
27813         Likewise.
27814         * modules/unictype/property-sentence-terminal (Depends-on,
27815         configure.ac): Likewise.
27816         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
27817         Likewise.
27818         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
27819         * modules/unictype/property-terminal-punctuation (Depends-on,
27820         configure.ac): Likewise.
27821         * modules/unictype/property-titlecase (Depends-on, configure.ac):
27822         Likewise.
27823         * modules/unictype/property-unassigned-code-value (Depends-on,
27824         configure.ac): Likewise.
27825         * modules/unictype/property-unified-ideograph (Depends-on,
27826         configure.ac): Likewise.
27827         * modules/unictype/property-uppercase (Depends-on, configure.ac):
27828         Likewise.
27829         * modules/unictype/property-variation-selector (Depends-on,
27830         configure.ac): Likewise.
27831         * modules/unictype/property-white-space (Depends-on, configure.ac):
27832         Likewise.
27833         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
27834         Likewise.
27835         * modules/unictype/property-xid-start (Depends-on, configure.ac):
27836         Likewise.
27837         * modules/unictype/property-zero-width (Depends-on, configure.ac):
27838         Likewise.
27839         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
27840         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
27841         Likewise.
27842
27843 2009-12-31  Bruno Haible  <bruno@clisp.org>
27844
27845         Remove unnecessary AC_C_INLINE invocation.
27846         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
27847         since 2009-08-21.
27848
27849 2009-12-31  Jim Meyering  <meyering@redhat.com>
27850
27851         maint.mk: don't require explicit gpg_key_ID in cfg.mk
27852         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
27853         With this change, we can all remove the gpg_key_ID = ... definition
27854         from our respective cfg.mk files.
27855
27856         maint.mk: create announcement template in ~/, not in /tmp
27857         * top/maint.mk (emit_upload_commands): Adjust.
27858         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
27859         Remove temporary file, .ci-msg.
27860
27861 2009-12-31  Eric Blake  <ebb9@byu.net>
27862
27863         link-warning: always build headers with link warnings
27864         * modules/arpa_inet (Makefile.am): Always build replacement
27865         header.
27866         * modules/ctype (Makefile.am): Likewise.
27867         * modules/dirent (Makefile.am): Likewise.
27868         * modules/inttypes (Makefile.am): Likewise.
27869         * modules/langinfo (Makefile.am): Likewise.
27870         * modules/locale (Makefile.am): Likewise.
27871         * modules/spawn (Makefile.am): Likewise.
27872         * modules/sys_file (Makefile.am): Likewise.
27873         * modules/sys_ioctl (Makefile.am): Likewise.
27874         * modules/sys_select (Makefile.am): Likewise.
27875         * modules/sys_socket (Makefile.am): Likewise.
27876         * modules/sys_times (Makefile.am): Likewise.
27877         * modules/sys_utsname (Makefile.am): Likewise.
27878         * modules/sys_wait (Makefile.am): Likewise.
27879         * modules/wchar (Makefile.am): Likewise.
27880         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
27881         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
27882         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
27883         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
27884         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
27885         Likewise.
27886         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
27887         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27888         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
27889         Likewise.
27890         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
27891         Likewise.
27892         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
27893         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
27894         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
27895         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27896         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27897         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
27898         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
27899         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
27900         (gl_WCHAR_H_DEFAULTS): Likewise.
27901
27902 2009-12-31  Eric Blake  <ebb9@byu.net>
27903
27904         signal, spawn: use link warnings
27905         * lib/signal.in.h (sigset_t): Make unconditional.
27906         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
27907         (sigpending, sigprocmask, sigaction): Add link warnings.
27908         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
27909         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
27910         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
27911         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
27912         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
27913         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
27914         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
27915         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
27916         (posix_spawn_file_actions_destroy)
27917         (posix_spawn_file_actions_addopen)
27918         (posix_spawn_file_actions_addclose)
27919         (posix_spawn_file_actions_adddup2): Likewise.
27920         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
27921         * tests/test-signal.c (main): Enhance test.
27922
27923         spawn: improve wrapper support
27924         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
27925         (gl_SPAWN_H_DEFAULTS): New defaults.
27926         * modules/spawn (Makefile.am): Substitute them.
27927         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
27928         Only declare if missing or broken.
27929
27930         sys_times, sys_utsname: use include_next
27931         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
27932         header.
27933         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
27934         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
27935         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
27936         * modules/sys_times (Depends-on): Add include_next.
27937         (Makefile.am): Substitute additional values.
27938         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
27939         * lib/sys_times.in.h (includes): Include native header, if
27940         available.
27941         * lib/sys_utsname.in.h (includes): Likewise.
27942         * tests/test-sys_times.c (main): Enhance test.
27943
27944         fdutimensat: revert prior patch
27945         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
27946         utimens.h.
27947         Reported by Bruno Haible.
27948
27949 2009-12-30  Eric Blake  <ebb9@byu.net>
27950
27951         sys_wait: drop link-warning dependency
27952         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
27953         link-warning efforts.
27954         * lib/sys_wait.in.h: Likewise.
27955
27956         fdutimensat: remove bogus dependency
27957         * modules/fdutimensat (Depends-on): Drop inline.
27958
27959         unistd: fix typo
27960         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
27961
27962 2009-12-30  Bruno Haible  <bruno@clisp.org>
27963
27964         Fix compilation error with Solaris cc.
27965         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
27966         * lib/unicase/u16-is-invariant.c: Likewise.
27967         * lib/unicase/u32-is-invariant.c: Likewise.
27968         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
27969
27970 2009-12-30  Bruno Haible  <bruno@clisp.org>
27971
27972         Fix test crash.
27973         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
27974         locales.
27975         Reported by Simon Josefsson <simon@josefsson.org>.
27976
27977 2009-12-30  Bruno Haible  <bruno@clisp.org>
27978
27979         Fix compilation error on most platforms.
27980         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
27981         Reported by Simon Josefsson <simon@josefsson.org>
27982         and Nelson H. F. Beebe <beebe@math.utah.edu>.
27983
27984 2009-12-30  Eric Blake  <ebb9@byu.net>
27985
27986         futimens, utimensat: work around ntfs-3g bug
27987         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
27988         a ctime bug is present, and expand workaround to cover ntfs-3g.
27989         * lib/utimens.c (fdutimens, lutimens): Likewise.
27990         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
27991         (validate_timespec): Adjust return value.
27992         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
27993         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27994         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
27995
27996 2009-12-29  Eric Blake  <ebb9@byu.net>
27997
27998         link-warning: make usage consistent
27999         * modules/ctype (Depends-on): Add link-warning.
28000         (Makefile.am): Update rules accordingly.
28001         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28002         * modules/locale (Depends-on, Makefile.am): Likewise.
28003         * modules/sys_file (Makefile.am): Likewise.
28004         * modules/getopt-posix (Makefile.am): Delete unused link warning
28005         efforts.
28006         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
28007         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
28008         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
28009         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
28010
28011         stdio: remove unused variables
28012         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
28013         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
28014         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28015
28016         tests: test more substitute headers
28017         * modules/ctype-tests: New file.
28018         * modules/dirent-tests: Likewise.
28019         * modules/spawn-tests: Likewise.
28020         * modules/sys_file-tests: Likewise.
28021         * modules/sys_ioctl-tests: Likewise.
28022         * modules/sys_wait-tests: Likewise.
28023         * tests/test-ctype.c: Likewise.
28024         * tests/test-dirent.c: Likewise.
28025         * tests/test-spawn.c: Likewise.
28026         * tests/test-sys_file.c: Likewise.
28027         * tests/test-sys_ioctl.c: Likewise.
28028         * tests/test-sys_wait.c: Likewise.
28029         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
28030         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
28031         whether or not flock is in use.
28032
28033         tests: remove License section from module
28034         * modules/arpa_inet-tests: Remove unneeded section.
28035         * modules/byteswap-tests: Likewise.
28036         * modules/ceilf-tests: Likewise.
28037         * modules/ceill-tests: Likewise.
28038         * modules/crypto/des-tests: Likewise.
28039         * modules/crypto/gc-arcfour-tests: Likewise.
28040         * modules/crypto/gc-arctwo-tests: Likewise.
28041         * modules/crypto/gc-des-tests: Likewise.
28042         * modules/crypto/gc-hmac-md5-tests: Likewise.
28043         * modules/crypto/gc-hmac-sha1-tests: Likewise.
28044         * modules/crypto/gc-md2-tests: Likewise.
28045         * modules/crypto/gc-md4-tests: Likewise.
28046         * modules/crypto/gc-md5-tests: Likewise.
28047         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
28048         * modules/crypto/gc-rijndael-tests: Likewise.
28049         * modules/crypto/gc-sha1-tests: Likewise.
28050         * modules/crypto/gc-tests: Likewise.
28051         * modules/crypto/md2-tests: Likewise.
28052         * modules/crypto/md4-tests: Likewise.
28053         * modules/fcntl-h-tests: Likewise.
28054         * modules/floorf-tests: Likewise.
28055         * modules/floorl-tests: Likewise.
28056         * modules/frexp-nolibm-tests: Likewise.
28057         * modules/frexp-tests: Likewise.
28058         * modules/frexpl-nolibm-tests: Likewise.
28059         * modules/frexpl-tests: Likewise.
28060         * modules/getaddrinfo-tests: Likewise.
28061         * modules/inttypes-tests: Likewise.
28062         * modules/isfinite-tests: Likewise.
28063         * modules/isinf-tests: Likewise.
28064         * modules/ldexpl-tests: Likewise.
28065         * modules/locale-tests: Likewise.
28066         * modules/math-tests: Likewise.
28067         * modules/netdb-tests: Likewise.
28068         * modules/netinet_in-tests: Likewise.
28069         * modules/printf-frexp-tests: Likewise.
28070         * modules/printf-frexpl-tests: Likewise.
28071         * modules/priv-set-tests: Likewise.
28072         * modules/random_r-tests: Likewise.
28073         * modules/round-tests: Likewise.
28074         * modules/roundf-tests: Likewise.
28075         * modules/roundl-tests: Likewise.
28076         * modules/search-tests: Likewise.
28077         * modules/select-tests: Likewise.
28078         * modules/signal-tests: Likewise.
28079         * modules/stdbool-tests: Likewise.
28080         * modules/stddef-tests: Likewise.
28081         * modules/stdint-tests: Likewise.
28082         * modules/stdio-tests: Likewise.
28083         * modules/stdlib-tests: Likewise.
28084         * modules/string-tests: Likewise.
28085         * modules/strings-tests: Likewise.
28086         * modules/sys_select-tests: Likewise.
28087         * modules/sys_socket-tests: Likewise.
28088         * modules/sys_stat-tests: Likewise.
28089         * modules/sys_time-tests: Likewise.
28090         * modules/sys_utsname-tests: Likewise.
28091         * modules/sysexits-tests: Likewise.
28092         * modules/time-tests: Likewise.
28093         * modules/trunc-tests: Likewise.
28094         * modules/truncf-tests: Likewise.
28095         * modules/truncl-tests: Likewise.
28096         * modules/tsearch-tests: Likewise.
28097         * modules/unistd-tests: Likewise.
28098         * modules/wchar-tests: Likewise.
28099         * modules/wctype-tests: Likewise.
28100
28101         tests: fix license on several tests
28102         * tests/test-des.c: Update to GPLv3+.
28103         * tests/test-flock.c: Likewise.
28104         * tests/test-fsync.c: Likewise.
28105         * tests/test-futimens.h: Likewise.
28106         * tests/test-gc-arcfour.c: Likewise.
28107         * tests/test-gc-arctwo.c: Likewise.
28108         * tests/test-gc-des.c: Likewise.
28109         * tests/test-gc-hmac-md5.c: Likewise.
28110         * tests/test-gc-hmac-sha1.c: Likewise.
28111         * tests/test-gc-md2.c: Likewise.
28112         * tests/test-gc-md4.c: Likewise.
28113         * tests/test-gc-md5.c: Likewise.
28114         * tests/test-gc-pbkdf2-sha1.c: Likewise.
28115         * tests/test-gc-rijndael.c: Likewise.
28116         * tests/test-gc-sha1.c: Likewise.
28117         * tests/test-gc.c: Likewise.
28118         * tests/test-getcwd.c: Likewise.
28119         * tests/test-link.c: Likewise.
28120         * tests/test-link.h: Likewise.
28121         * tests/test-lutimens.h: Likewise.
28122         * tests/test-md2.c: Likewise.
28123         * tests/test-md4.c: Likewise.
28124         * tests/test-mkdir.h: Likewise.
28125         * tests/test-rename.c: Likewise.
28126         * tests/test-rename.h: Likewise.
28127         * tests/test-safe-alloc.c: Likewise.
28128         * tests/test-utimens-common.h: Likewise.
28129         * tests/test-utimens.h: Likewise.
28130
28131         maint: sync license texts
28132         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
28133         * doc/gpl-3.0.texi: Revert copyright year update.
28134         * doc/lgpl-3.0.texi: Likewise.
28135
28136 2009-12-29  Jim Meyering  <meyering@redhat.com>
28137
28138         update nearly all FSF copyright year lists to include 2009
28139         The files named by the following are exempted:
28140             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
28141               test -f "$dst" && { echo "$dst"; continue; }
28142               test -d "$dst" || continue
28143               echo "$dst"/$(basename "$src")
28144             done > exempt
28145             git ls-files tests/unictype >> exempt
28146         In the remaining files, convert to all-interval notation if
28147         - there is already at least one year interval like 2000-2003
28148         - the file is maintained by me
28149         - the file is in lib/uni*/, where that style already prevails
28150         Otherwise, use update-copyright's default.
28151
28152 2009-12-29  Simon Josefsson  <simon@josefsson.org>
28153         and Eric Blake  <ebb9@byu.net>
28154
28155         tests: don't require debug system() to pass
28156         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
28157         * tests/test-rmdir.h (test_rmdir_func): Likewise.
28158         * tests/test-unlink.h (test_unlink_func): Likewise.
28159         * tests/test-fstatat.c (main): ...into callers.
28160         * tests/test-lstat.c (main): Likewise.
28161         * tests/test-rmdir.c (main): Likewise.
28162         * tests/test-unlink.c (main): Likewise.
28163         * tests/test-unlinkat.c (main): Likewise.
28164         * tests/test-areadlink-with-size.c (main): Don't require a
28165         debug-only system call to pass, aiding cross-testing to mingw.
28166         * tests/test-areadlink.c (main): Likewise.
28167         * tests/test-areadlinkat-with-size.c (main): Likewise.
28168         * tests/test-areadlinkat.c (main): Likewise.
28169         * tests/test-canonicalize-lgpl.c (main): Likewise.
28170         * tests/test-canonicalize.c (main): Likewise.
28171         * tests/test-chown.c (main): Likewise.
28172         * tests/test-fchownat.c (main): Likewise.
28173         * tests/test-lchown.c (main): Likewise.
28174         * tests/test-fdutimensat.c (main): Likewise.
28175         * tests/test-futimens.c (main): Likewise.
28176         * tests/test-link.c (main): Likewise.
28177         * tests/test-linkat.c (main): Likewise.
28178         * tests/test-mkdir.c (main): Likewise.
28179         * tests/test-mkdirat.c (main): Likewise.
28180         * tests/test-mkfifo.c (main): Likewise.
28181         * tests/test-mkfifoat.c (main): Likewise.
28182         * tests/test-mknod.c (main): Likewise.
28183         * tests/test-readlink.c (main): Likewise.
28184         * tests/test-remove.c (main): Likewise.
28185         * tests/test-rename.c (main): Likewise.
28186         * tests/test-renameat.c (main): Likewise.
28187         * tests/test-symlink.c (main): Likewise.
28188         * tests/test-symlinkat.c (main): Likewise.
28189         * tests/test-utimens.c (main): Likewise.
28190         * tests/test-utimensat.c (main): Likewise.
28191
28192 2009-12-29  Simon Josefsson  <simon@josefsson.org>
28193
28194         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
28195         on $(UNUSED_PARAMETER_H) to avoid build failure.
28196
28197 2009-12-28  Jim Meyering  <meyering@redhat.com>
28198
28199         update-copyright: you may specify a max. line length other than 72
28200         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
28201
28202         maint: use consistent FSF copyright line syntax
28203         * lib/posixtm.c: Add missing comma in FSF copyright line.
28204         * lib/posixtm.h: Likewise.
28205         * lib/getugroups.c: Add missing ", Inc.".
28206
28207         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
28208         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
28209         FSF copyright line.  Remove trailing blanks.
28210
28211 2009-12-28  Eric Blake  <ebb9@byu.net>
28212
28213         test-dup2: reduce dependencies
28214         * modules/cloexec (Configure.ac): Set witness.
28215         * modules/dup2-tests (Depends-on): Drop cloexec.
28216         * tests/test-dup2.c (main): Skip portion of test if cloexec module
28217         not present.
28218         Suggested by Bruno Haible.
28219
28220 2009-12-26  Bruno Haible  <bruno@clisp.org>
28221
28222         Remove an unneeded dependency.
28223         * modules/fseterr (Depends-on): Remove dup2.
28224
28225 2009-12-26  Eric Blake  <ebb9@byu.net>
28226
28227         tests: use macros.h in more places
28228         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
28229         (ASSERT_STREAM): Provide default of stderr.
28230         * tests/test-dirent-safer.c: Include macros.h, using alternate
28231         stream for assertions.
28232         * tests/test-dup-safer.c: Likewise.
28233         * tests/test-freopen-safer.c: Likewise.
28234         * tests/test-getopt.c: Likewise.
28235         * tests/test-openat-safer.c: Likewise.
28236         * tests/test-pipe.c: Likewise.
28237         * tests/test-popen-safer.c: Likewise.
28238         * modules/dirent-safer-tests (Files): Include macros.h.
28239         * modules/unistd-safer-tests (Files): Likewise.
28240         * modules/freopen-safer-tests (Files): Likewise.
28241         * modules/getopt-posix-tests (Files): Likewise.
28242         * modules/openat-safer-tests (Files): Likewise.
28243         * modules/pipe-tests (Files): Likewise.
28244
28245 2009-12-26  Bruno Haible  <bruno@clisp.org>
28246
28247         javacomp: Portability fix.
28248         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
28249         that it also works on Solaris.
28250
28251 2009-12-26  Bruno Haible  <bruno@clisp.org>
28252
28253         localename: Fix storage allocation of gl_locale_name_thread's result.
28254         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
28255         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
28256         all platforms that have 'uselocale'.
28257         (gl_locale_name_thread_unsafe): New function, extracted from
28258         gl_locale_name_thread.
28259         (gl_locale_name_thread): Call struniq on all platforms that have
28260         'uselocale'.
28261         * tests/test-localename.c (test_locale_name_thread): Check that the
28262         resulting strings are permanently allocated.
28263         * modules/localename-tests (Depends-on): Add strdup.
28264
28265 2009-12-26  Bruno Haible  <bruno@clisp.org>
28266
28267         * tests/test-localename.c (categories): Fill in the strings.
28268
28269 2009-12-26  Jim Meyering  <meyering@redhat.com>
28270
28271         isdir: complete the removal of m4/isdir.m4
28272         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
28273
28274         isdir: clean up, since at least grep still uses it
28275         * lib/isdir.c: Include "isdir.h".
28276         (S_ISDIR): Remove now-unneeded definition.
28277         * modules/isdir (Files): Add lib/isdir.h.
28278         * lib/isdir.h: New file, with declaration.
28279         * m4/isdir.m4: Remove file -- unneeded.
28280
28281 2009-12-25  Bruno Haible  <bruno@clisp.org>
28282
28283         selinux-h: Make generated .h files standalone.
28284         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
28285         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
28286         * lib/se-selinux.in.h: Likewise.
28287         * modules/selinux-h (Depends-on): Add unused-parameter.
28288         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
28289         selinux/selinux.h and selinux/context.h.
28290         Suggested by Eric Blake.
28291
28292 2009-12-25  Bruno Haible  <bruno@clisp.org>
28293
28294         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
28295         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
28296         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
28297         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
28298         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
28299
28300 2009-12-24  Bruno Haible  <bruno@clisp.org>
28301
28302         openat: Fix warning.
28303         * lib/openat-proc.c: Include <unistd.h>.
28304
28305 2009-12-24  Bruno Haible  <bruno@clisp.org>
28306
28307         New module 'unused-parameter'.
28308         * build-aux/unused-parameter.h: New file, extracted from earlier
28309         gnulib-common.m4.
28310         * modules/unused-parameter: New file.
28311         * lib/unistr.h: Include unused-parameter.h.
28312         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
28313         _GL_UNUSED.
28314         * modules/unistr/base (Depends-on): Add unused-parameter.
28315
28316 2009-12-24  Bruno Haible  <bruno@clisp.org>
28317
28318         Add missing dependencies to 'extensions' module.
28319         * m4/extensions.m4: Add comment.
28320         * modules/accept4 (Depends-on): Add extensions.
28321         * modules/dup3 (Depends-on): Likewise.
28322         * modules/fcntl (Depends-on): Likewise.
28323         * modules/futimens (Depends-on): Likewise.
28324         * modules/mknod (Depends-on): Likewise.
28325         * modules/pipe2 (Depends-on): Likewise.
28326         * modules/stat-time (Depends-on): Likewise.
28327         * modules/strcasestr-simple (Depends-on): Likewise.
28328         * modules/strsignal (Depends-on): Likewise.
28329         * modules/utimensat (Depends-on): Likewise.
28330         * modules/localcharset (Depends-on): Likewise. Needed because of
28331         gl_FCNTL_O_FLAGS.
28332         * modules/wcrtomb (Depends-on): Likewise. Needed because of
28333         AC_TYPE_MBSTATE_T.
28334         * modules/wcsnrtombs (Depends-on): Likewise.
28335         * modules/wcsrtombs (Depends-on): Likewise.
28336
28337 2009-12-24  Bruno Haible  <bruno@clisp.org>
28338
28339         binary-io: Avoid gcc warning due to SET_BINARY.
28340         * lib/binary-io.h (SET_BINARY): Cast the result to void.
28341         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
28342
28343 2009-12-24  Bruno Haible  <bruno@clisp.org>
28344
28345         Avoid future namespace pollution on glibc systems.
28346         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
28347         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
28348         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
28349         glibc systems.
28350
28351 2009-12-24  Bruno Haible  <bruno@clisp.org>
28352
28353         Refactor common macros used in tests.
28354         * tests/macros.h: New file.
28355         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
28356         and/or <stdlib.h>, if appropriate.
28357         (ASSERT, SIZEOF): Remove macros.
28358         * tests/test-areadlink-with-size.c: Likewise.
28359         * tests/test-areadlinkat.c: Likewise.
28360         * tests/test-areadlinkat-with-size.c: Likewise.
28361         * tests/test-argmatch.c: Likewise.
28362         * tests/test-argv-iter.c: Likewise.
28363         * tests/test-array-mergesort.c: Likewise.
28364         * tests/test-array_list.c: Likewise.
28365         * tests/test-array_oset.c: Likewise.
28366         * tests/test-avltree_list.c: Likewise.
28367         * tests/test-avltree_oset.c: Likewise.
28368         * tests/test-avltreehash_list.c: Likewise.
28369         * tests/test-base64.c: Likewise.
28370         * tests/test-binary-io.c: Likewise.
28371         * tests/test-bitrotate.c: Likewise.
28372         * tests/test-btowc.c: Likewise.
28373         * tests/test-byteswap.c: Likewise.
28374         * tests/test-c-ctype.c: Likewise.
28375         * tests/test-c-stack.c: Likewise.
28376         * tests/test-c-strcasecmp.c: Likewise.
28377         * tests/test-c-strcasestr.c: Likewise.
28378         * tests/test-c-strncasecmp.c: Likewise.
28379         * tests/test-c-strstr.c: Likewise.
28380         * tests/test-canonicalize-lgpl.c: Likewise.
28381         * tests/test-canonicalize.c: Likewise.
28382         * tests/test-carray_list.c: Likewise.
28383         * tests/test-ceilf1.c: Likewise.
28384         * tests/test-ceilf2.c: Likewise.
28385         * tests/test-ceill.c: Likewise.
28386         * tests/test-chown.c: Likewise.
28387         * tests/test-cloexec.c: Likewise.
28388         * tests/test-copy-acl.c: Likewise.
28389         * tests/test-copy-file.c: Likewise.
28390         * tests/test-count-one-bits.c: Likewise.
28391         * tests/test-dprintf-posix.c: Likewise.
28392         * tests/test-dup2.c: Likewise.
28393         * tests/test-dup3.c: Likewise.
28394         * tests/test-duplocale.c: Likewise.
28395         * tests/test-fbufmode.c: Likewise.
28396         * tests/test-fchdir.c: Likewise.
28397         * tests/test-fchownat.c: Likewise.
28398         * tests/test-fcntl-safer.c: Likewise.
28399         * tests/test-fcntl.c: Likewise.
28400         * tests/test-fdopendir.c: Likewise.
28401         * tests/test-fdutimensat.c: Likewise.
28402         * tests/test-fflush2.c: Likewise.
28403         * tests/test-file-has-acl.c: Likewise.
28404         * tests/test-filevercmp.c: Likewise.
28405         * tests/test-flock.c: Likewise.
28406         * tests/test-floorf1.c: Likewise.
28407         * tests/test-floorf2.c: Likewise.
28408         * tests/test-floorl.c: Likewise.
28409         * tests/test-fnmatch.c: Likewise.
28410         * tests/test-fopen.h: Likewise.
28411         * tests/test-fpending.c: Likewise.
28412         * tests/test-fprintf-posix.c: Likewise.
28413         * tests/test-fpurge.c: Likewise.
28414         * tests/test-freadable.c: Likewise.
28415         * tests/test-freadahead.c: Likewise.
28416         * tests/test-freading.c: Likewise.
28417         * tests/test-freadptr.c: Likewise.
28418         * tests/test-freadptr2.c: Likewise.
28419         * tests/test-freadseek.c: Likewise.
28420         * tests/test-freopen.c: Likewise.
28421         * tests/test-frexp.c: Likewise.
28422         * tests/test-frexpl.c: Likewise.
28423         * tests/test-fseek.c: Likewise.
28424         * tests/test-fseeko.c: Likewise.
28425         * tests/test-fstatat.c: Likewise.
28426         * tests/test-fstrcmp.c: Likewise.
28427         * tests/test-fsync.c: Likewise.
28428         * tests/test-ftell.c: Likewise.
28429         * tests/test-ftello.c: Likewise.
28430         * tests/test-func.c: Likewise.
28431         * tests/test-futimens.c: Likewise.
28432         * tests/test-fwritable.c: Likewise.
28433         * tests/test-fwriting.c: Likewise.
28434         * tests/test-getcwd.c: Likewise.
28435         * tests/test-getdate.c: Likewise.
28436         * tests/test-getdelim.c: Likewise.
28437         * tests/test-getdtablesize.c: Likewise.
28438         * tests/test-getgroups.c: Likewise.
28439         * tests/test-getline.c: Likewise.
28440         * tests/test-getndelim2.c: Likewise.
28441         * tests/test-glob.c: Likewise.
28442         * tests/test-hash.c: Likewise.
28443         * tests/test-i-ring.c: Likewise.
28444         * tests/test-iconv-utf.c: Likewise.
28445         * tests/test-iconv.c: Likewise.
28446         * tests/test-idpriv-drop.c: Likewise.
28447         * tests/test-idpriv-droptemp.c: Likewise.
28448         * tests/test-inet_ntop.c: Likewise.
28449         * tests/test-inet_pton.c: Likewise.
28450         * tests/test-isblank.c: Likewise.
28451         * tests/test-isfinite.c: Likewise.
28452         * tests/test-isinf.c: Likewise.
28453         * tests/test-isnan.c: Likewise.
28454         * tests/test-isnand.h: Likewise.
28455         * tests/test-isnanf.h: Likewise.
28456         * tests/test-isnanl.h: Likewise.
28457         * tests/test-lchown.c: Likewise.
28458         * tests/test-ldexpl.c: Likewise.
28459         * tests/test-link.c: Likewise.
28460         * tests/test-linkat.c: Likewise.
28461         * tests/test-linked_list.c: Likewise.
28462         * tests/test-linkedhash_list.c: Likewise.
28463         * tests/test-localename.c: Likewise.
28464         * tests/test-lseek.c: Likewise.
28465         * tests/test-lstat.c: Likewise.
28466         * tests/test-mbmemcasecmp.c: Likewise.
28467         * tests/test-mbmemcasecoll.c: Likewise.
28468         * tests/test-mbrtowc.c: Likewise.
28469         * tests/test-mbscasecmp.c: Likewise.
28470         * tests/test-mbscasestr1.c: Likewise.
28471         * tests/test-mbscasestr2.c: Likewise.
28472         * tests/test-mbscasestr3.c: Likewise.
28473         * tests/test-mbscasestr4.c: Likewise.
28474         * tests/test-mbschr.c: Likewise.
28475         * tests/test-mbscspn.c: Likewise.
28476         * tests/test-mbsinit.c: Likewise.
28477         * tests/test-mbsncasecmp.c: Likewise.
28478         * tests/test-mbsnrtowcs.c: Likewise.
28479         * tests/test-mbspbrk.c: Likewise.
28480         * tests/test-mbspcasecmp.c: Likewise.
28481         * tests/test-mbsrchr.c: Likewise.
28482         * tests/test-mbsrtowcs.c: Likewise.
28483         * tests/test-mbsspn.c: Likewise.
28484         * tests/test-mbsstr1.c: Likewise.
28485         * tests/test-mbsstr2.c: Likewise.
28486         * tests/test-mbsstr3.c: Likewise.
28487         * tests/test-memchr.c: Likewise.
28488         * tests/test-memchr2.c: Likewise.
28489         * tests/test-memcmp.c: Likewise.
28490         * tests/test-memmem.c: Likewise.
28491         * tests/test-memrchr.c: Likewise.
28492         * tests/test-mkdir.c: Likewise.
28493         * tests/test-mkdirat.c: Likewise.
28494         * tests/test-mkfifo.c: Likewise.
28495         * tests/test-mkfifoat.c: Likewise.
28496         * tests/test-mknod.c: Likewise.
28497         * tests/test-nanosleep.c: Likewise.
28498         * tests/test-nl_langinfo.c: Likewise.
28499         * tests/test-obstack-printf.c: Likewise.
28500         * tests/test-open.c: Likewise.
28501         * tests/test-openat.c: Likewise.
28502         * tests/test-pipe-filter-gi1.c: Likewise.
28503         * tests/test-pipe-filter-gi2-main.c: Likewise.
28504         * tests/test-pipe-filter-ii1.c: Likewise.
28505         * tests/test-pipe-filter-ii2-main.c: Likewise.
28506         * tests/test-pipe2.c: Likewise.
28507         * tests/test-popen.h: Likewise.
28508         * tests/test-posixtm.c: Likewise.
28509         * tests/test-pread.c: Likewise.
28510         * tests/test-printf-frexp.c: Likewise.
28511         * tests/test-printf-frexpl.c: Likewise.
28512         * tests/test-printf-posix.c: Likewise.
28513         * tests/test-priv-set.c: Likewise.
28514         * tests/test-quotearg.c: Likewise.
28515         * tests/test-random_r.c: Likewise.
28516         * tests/test-rawmemchr.c: Likewise.
28517         * tests/test-rbtree_list.c: Likewise.
28518         * tests/test-rbtree_oset.c: Likewise.
28519         * tests/test-rbtreehash_list.c: Likewise.
28520         * tests/test-readlink.c: Likewise.
28521         * tests/test-remove.c: Likewise.
28522         * tests/test-rename.c: Likewise.
28523         * tests/test-renameat.c: Likewise.
28524         * tests/test-rmdir.c: Likewise.
28525         * tests/test-round1.c: Likewise.
28526         * tests/test-roundf1.c: Likewise.
28527         * tests/test-roundl.c: Likewise.
28528         * tests/test-safe-alloc.c: Likewise.
28529         * tests/test-sameacls.c: Likewise.
28530         * tests/test-set-mode-acl.c: Likewise.
28531         * tests/test-setenv.c: Likewise.
28532         * tests/test-sigaction.c: Likewise.
28533         * tests/test-signbit.c: Likewise.
28534         * tests/test-sleep.c: Likewise.
28535         * tests/test-snprintf-posix.c: Likewise.
28536         * tests/test-snprintf.c: Likewise.
28537         * tests/test-sprintf-posix.c: Likewise.
28538         * tests/test-stat-time.c: Likewise.
28539         * tests/test-stat.c: Likewise.
28540         * tests/test-strcasestr.c: Likewise.
28541         * tests/test-strchrnul.c: Likewise.
28542         * tests/test-strerror.c: Likewise.
28543         * tests/test-striconv.c: Likewise.
28544         * tests/test-striconveh.c: Likewise.
28545         * tests/test-striconveha.c: Likewise.
28546         * tests/test-strsignal.c: Likewise.
28547         * tests/test-strstr.c: Likewise.
28548         * tests/test-strtod.c: Likewise.
28549         * tests/test-strverscmp.c: Likewise.
28550         * tests/test-symlink.c: Likewise.
28551         * tests/test-symlinkat.c: Likewise.
28552         * tests/test-trunc1.c: Likewise.
28553         * tests/test-trunc2.c: Likewise.
28554         * tests/test-truncf1.c: Likewise.
28555         * tests/test-truncf2.c: Likewise.
28556         * tests/test-truncl.c: Likewise.
28557         * tests/test-uname.c: Likewise.
28558         * tests/test-unlink.c: Likewise.
28559         * tests/test-unlinkat.c: Likewise.
28560         * tests/test-unsetenv.c: Likewise.
28561         * tests/test-usleep.c: Likewise.
28562         * tests/test-utimens.c: Likewise.
28563         * tests/test-utimensat.c: Likewise.
28564         * tests/test-vasnprintf-posix.c: Likewise.
28565         * tests/test-vasnprintf-posix2.c: Likewise.
28566         * tests/test-vasnprintf.c: Likewise.
28567         * tests/test-vasprintf-posix.c: Likewise.
28568         * tests/test-vasprintf.c: Likewise.
28569         * tests/test-vdprintf-posix.c: Likewise.
28570         * tests/test-vfprintf-posix.c: Likewise.
28571         * tests/test-vprintf-posix.c: Likewise.
28572         * tests/test-vsnprintf-posix.c: Likewise.
28573         * tests/test-vsnprintf.c: Likewise.
28574         * tests/test-vsprintf-posix.c: Likewise.
28575         * tests/test-wcrtomb.c: Likewise.
28576         * tests/test-wcsnrtombs.c: Likewise.
28577         * tests/test-wcsrtombs.c: Likewise.
28578         * tests/test-wctype.c: Likewise.
28579         * tests/test-wcwidth.c: Likewise.
28580         * tests/test-xfprintf-posix.c: Likewise.
28581         * tests/test-xmemdup0.c: Likewise.
28582         * tests/test-xprintf-posix.c: Likewise.
28583         * tests/test-xvasprintf.c: Likewise.
28584         * tests/unicase/test-locale-language.c: Likewise.
28585         * tests/unicase/test-mapping-part1.h: Likewise.
28586         * tests/unicase/test-predicate-part1.h: Likewise.
28587         * tests/unicase/test-u8-casecmp.c: Likewise.
28588         * tests/unicase/test-u8-casecoll.c: Likewise.
28589         * tests/unicase/test-u8-casefold.c: Likewise.
28590         * tests/unicase/test-u8-is-cased.c: Likewise.
28591         * tests/unicase/test-u8-is-casefolded.c: Likewise.
28592         * tests/unicase/test-u8-is-lowercase.c: Likewise.
28593         * tests/unicase/test-u8-is-titlecase.c: Likewise.
28594         * tests/unicase/test-u8-is-uppercase.c: Likewise.
28595         * tests/unicase/test-u8-tolower.c: Likewise.
28596         * tests/unicase/test-u8-totitle.c: Likewise.
28597         * tests/unicase/test-u8-toupper.c: Likewise.
28598         * tests/unicase/test-u16-casecmp.c: Likewise.
28599         * tests/unicase/test-u16-casecoll.c: Likewise.
28600         * tests/unicase/test-u16-casefold.c: Likewise.
28601         * tests/unicase/test-u16-is-cased.c: Likewise.
28602         * tests/unicase/test-u16-is-casefolded.c: Likewise.
28603         * tests/unicase/test-u16-is-lowercase.c: Likewise.
28604         * tests/unicase/test-u16-is-titlecase.c: Likewise.
28605         * tests/unicase/test-u16-is-uppercase.c: Likewise.
28606         * tests/unicase/test-u16-tolower.c: Likewise.
28607         * tests/unicase/test-u16-totitle.c: Likewise.
28608         * tests/unicase/test-u16-toupper.c: Likewise.
28609         * tests/unicase/test-u32-casecmp.c: Likewise.
28610         * tests/unicase/test-u32-casecoll.c: Likewise.
28611         * tests/unicase/test-u32-casefold.c: Likewise.
28612         * tests/unicase/test-u32-is-cased.c: Likewise.
28613         * tests/unicase/test-u32-is-casefolded.c: Likewise.
28614         * tests/unicase/test-u32-is-lowercase.c: Likewise.
28615         * tests/unicase/test-u32-is-titlecase.c: Likewise.
28616         * tests/unicase/test-u32-is-uppercase.c: Likewise.
28617         * tests/unicase/test-u32-tolower.c: Likewise.
28618         * tests/unicase/test-u32-totitle.c: Likewise.
28619         * tests/unicase/test-u32-toupper.c: Likewise.
28620         * tests/unicase/test-ulc-casecmp.c: Likewise.
28621         * tests/unicase/test-ulc-casecoll.c: Likewise.
28622         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
28623         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
28624         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
28625         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
28626         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
28627         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
28628         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
28629         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
28630         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
28631         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
28632         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
28633         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
28634         * tests/unictype/test-bidi_byname.c: Likewise.
28635         * tests/unictype/test-bidi_name.c: Likewise.
28636         * tests/unictype/test-bidi_of.c: Likewise.
28637         * tests/unictype/test-bidi_test.c: Likewise.
28638         * tests/unictype/test-block_list.c: Likewise.
28639         * tests/unictype/test-block_of.c: Likewise.
28640         * tests/unictype/test-block_test.c: Likewise.
28641         * tests/unictype/test-categ_and.c: Likewise.
28642         * tests/unictype/test-categ_and_not.c: Likewise.
28643         * tests/unictype/test-categ_byname.c: Likewise.
28644         * tests/unictype/test-categ_name.c: Likewise.
28645         * tests/unictype/test-categ_none.c: Likewise.
28646         * tests/unictype/test-categ_of.c: Likewise.
28647         * tests/unictype/test-categ_or.c: Likewise.
28648         * tests/unictype/test-categ_test_withtable.c: Likewise.
28649         * tests/unictype/test-combining.c: Likewise.
28650         * tests/unictype/test-decdigit.c: Likewise.
28651         * tests/unictype/test-digit.c: Likewise.
28652         * tests/unictype/test-mirror.c: Likewise.
28653         * tests/unictype/test-numeric.c: Likewise.
28654         * tests/unictype/test-pr_byname.c: Likewise.
28655         * tests/unictype/test-pr_test.c: Likewise.
28656         * tests/unictype/test-predicate-part1.h: Likewise.
28657         * tests/unictype/test-scripts.c: Likewise.
28658         * tests/unictype/test-sy_c_ident.c: Likewise.
28659         * tests/unictype/test-sy_java_ident.c: Likewise.
28660         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
28661         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
28662         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
28663         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
28664         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
28665         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
28666         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
28667         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
28668         * tests/uninorm/test-canonical-decomposition.c: Likewise.
28669         * tests/uninorm/test-compat-decomposition.c: Likewise.
28670         * tests/uninorm/test-composition.c: Likewise.
28671         * tests/uninorm/test-decomposing-form.c: Likewise.
28672         * tests/uninorm/test-decomposition.c: Likewise.
28673         * tests/uninorm/test-u8-nfc.c: Likewise.
28674         * tests/uninorm/test-u8-nfd.c: Likewise.
28675         * tests/uninorm/test-u8-nfkc.c: Likewise.
28676         * tests/uninorm/test-u8-nfkd.c: Likewise.
28677         * tests/uninorm/test-u8-normcmp.c: Likewise.
28678         * tests/uninorm/test-u8-normcoll.c: Likewise.
28679         * tests/uninorm/test-u16-nfc.c: Likewise.
28680         * tests/uninorm/test-u16-nfd.c: Likewise.
28681         * tests/uninorm/test-u16-nfkc.c: Likewise.
28682         * tests/uninorm/test-u16-nfkd.c: Likewise.
28683         * tests/uninorm/test-u16-normcmp.c: Likewise.
28684         * tests/uninorm/test-u16-normcoll.c: Likewise.
28685         * tests/uninorm/test-u32-nfc.c: Likewise.
28686         * tests/uninorm/test-u32-nfd.c: Likewise.
28687         * tests/uninorm/test-u32-nfkc.c: Likewise.
28688         * tests/uninorm/test-u32-nfkd.c: Likewise.
28689         * tests/uninorm/test-u32-normalize-big.c: Likewise.
28690         * tests/uninorm/test-u32-normcmp.c: Likewise.
28691         * tests/uninorm/test-u32-normcoll.c: Likewise.
28692         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
28693         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
28694         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
28695         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
28696         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
28697         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
28698         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
28699         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
28700         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
28701         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
28702         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
28703         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
28704         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
28705         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
28706         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
28707         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
28708         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
28709         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
28710         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
28711         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
28712         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
28713         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
28714         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
28715         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
28716         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
28717         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
28718         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
28719         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
28720         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
28721         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
28722         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
28723         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
28724         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
28725         * tests/uniwidth/test-u8-strwidth.c: Likewise.
28726         * tests/uniwidth/test-u8-width.c: Likewise.
28727         * tests/uniwidth/test-u16-strwidth.c: Likewise.
28728         * tests/uniwidth/test-u16-width.c: Likewise.
28729         * tests/uniwidth/test-u32-strwidth.c: Likewise.
28730         * tests/uniwidth/test-u32-width.c: Likewise.
28731         * tests/uniwidth/test-uc_width.c: Likewise.
28732         * tests/uniwidth/test-uc_width2.c: Likewise.
28733         * modules/acl-tests (Files): Add tests/macros.h.
28734         * modules/areadlink-tests (Files): Likewise.
28735         * modules/areadlink-with-size-tests (Files): Likewise.
28736         * modules/areadlinkat-tests (Files): Likewise.
28737         * modules/areadlinkat-with-size-tests (Files): Likewise.
28738         * modules/argmatch-tests (Files): Likewise.
28739         * modules/argv-iter-tests (Files): Likewise.
28740         * modules/array-list-tests (Files): Likewise.
28741         * modules/array-mergesort-tests (Files): Likewise.
28742         * modules/array-oset-tests (Files): Likewise.
28743         * modules/avltree-list-tests (Files): Likewise.
28744         * modules/avltree-oset-tests (Files): Likewise.
28745         * modules/avltreehash-list-tests (Files): Likewise.
28746         * modules/base64-tests (Files): Likewise.
28747         * modules/binary-io-tests (Files): Likewise.
28748         * modules/bitrotate-tests (Files): Likewise.
28749         * modules/btowc-tests (Files): Likewise.
28750         * modules/byteswap-tests (Files): Likewise.
28751         * modules/c-ctype-tests (Files): Likewise.
28752         * modules/c-stack-tests (Files): Likewise.
28753         * modules/c-strcase-tests (Files): Likewise.
28754         * modules/c-strcasestr-tests (Files): Likewise.
28755         * modules/c-strstr-tests (Files): Likewise.
28756         * modules/canonicalize-lgpl-tests (Files): Likewise.
28757         * modules/canonicalize-tests (Files): Likewise.
28758         * modules/carray-list-tests (Files): Likewise.
28759         * modules/ceilf-tests (Files): Likewise.
28760         * modules/ceill-tests (Files): Likewise.
28761         * modules/chown-tests (Files): Likewise.
28762         * modules/cloexec-tests (Files): Likewise.
28763         * modules/copy-file-tests (Files): Likewise.
28764         * modules/count-one-bits-tests (Files): Likewise.
28765         * modules/dprintf-posix-tests (Files): Likewise.
28766         * modules/dup2-tests (Files): Likewise.
28767         * modules/dup3-tests (Files): Likewise.
28768         * modules/duplocale-tests (Files): Likewise.
28769         * modules/fbufmode-tests (Files): Likewise.
28770         * modules/fchdir-tests (Files): Likewise.
28771         * modules/fcntl-safer-tests (Files): Likewise.
28772         * modules/fcntl-tests (Files): Likewise.
28773         * modules/fdopendir-tests (Files): Likewise.
28774         * modules/fdutimensat-tests (Files): Likewise.
28775         * modules/fflush-tests (Files): Likewise.
28776         * modules/filevercmp-tests (Files): Likewise.
28777         * modules/flock-tests (Files): Likewise.
28778         * modules/floorf-tests (Files): Likewise.
28779         * modules/floorl-tests (Files): Likewise.
28780         * modules/fnmatch-tests (Files): Likewise.
28781         * modules/fopen-safer-tests (Files): Likewise.
28782         * modules/fopen-tests (Files): Likewise.
28783         * modules/fpending-tests (Files): Likewise.
28784         * modules/fprintf-posix-tests (Files): Likewise.
28785         * modules/fpurge-tests (Files): Likewise.
28786         * modules/freadable-tests (Files): Likewise.
28787         * modules/freadahead-tests (Files): Likewise.
28788         * modules/freading-tests (Files): Likewise.
28789         * modules/freadptr-tests (Files): Likewise.
28790         * modules/freadseek-tests (Files): Likewise.
28791         * modules/freopen-tests (Files): Likewise.
28792         * modules/frexp-nolibm-tests (Files): Likewise.
28793         * modules/frexp-tests (Files): Likewise.
28794         * modules/frexpl-nolibm-tests (Files): Likewise.
28795         * modules/frexpl-tests (Files): Likewise.
28796         * modules/fseek-tests (Files): Likewise.
28797         * modules/fseeko-tests (Files): Likewise.
28798         * modules/fstrcmp-tests (Files): Likewise.
28799         * modules/fsync-tests (Files): Likewise.
28800         * modules/ftell-tests (Files): Likewise.
28801         * modules/ftello-tests (Files): Likewise.
28802         * modules/func-tests (Files): Likewise.
28803         * modules/futimens-tests (Files): Likewise.
28804         * modules/fwritable-tests (Files): Likewise.
28805         * modules/fwriting-tests (Files): Likewise.
28806         * modules/getcwd-tests (Files): Likewise.
28807         * modules/getdate-tests (Files): Likewise.
28808         * modules/getdelim-tests (Files): Likewise.
28809         * modules/getdtablesize-tests (Files): Likewise.
28810         * modules/getgroups-tests (Files): Likewise.
28811         * modules/getline-tests (Files): Likewise.
28812         * modules/getndelim2-tests (Files): Likewise.
28813         * modules/glob-tests (Files): Likewise.
28814         * modules/hash-tests (Files): Likewise.
28815         * modules/i-ring-tests (Files): Likewise.
28816         * modules/iconv-tests (Files): Likewise.
28817         * modules/iconv_open-utf-tests (Files): Likewise.
28818         * modules/idpriv-drop-tests (Files): Likewise.
28819         * modules/idpriv-droptemp-tests (Files): Likewise.
28820         * modules/inet_ntop-tests (Files): Likewise.
28821         * modules/inet_pton-tests (Files): Likewise.
28822         * modules/isblank-tests (Files): Likewise.
28823         * modules/isfinite-tests (Files): Likewise.
28824         * modules/isinf-tests (Files): Likewise.
28825         * modules/isnan-tests (Files): Likewise.
28826         * modules/isnand-nolibm-tests (Files): Likewise.
28827         * modules/isnand-tests (Files): Likewise.
28828         * modules/isnanf-nolibm-tests (Files): Likewise.
28829         * modules/isnanf-tests (Files): Likewise.
28830         * modules/isnanl-nolibm-tests (Files): Likewise.
28831         * modules/isnanl-tests (Files): Likewise.
28832         * modules/lchown-tests (Files): Likewise.
28833         * modules/ldexpl-tests (Files): Likewise.
28834         * modules/link-tests (Files): Likewise.
28835         * modules/linkat-tests (Files): Likewise.
28836         * modules/linked-list-tests (Files): Likewise.
28837         * modules/linkedhash-list-tests (Files): Likewise.
28838         * modules/localename-tests (Files): Likewise.
28839         * modules/lseek-tests (Files): Likewise.
28840         * modules/lstat-tests (Files): Likewise.
28841         * modules/mbmemcasecmp-tests (Files): Likewise.
28842         * modules/mbmemcasecoll-tests (Files): Likewise.
28843         * modules/mbrtowc-tests (Files): Likewise.
28844         * modules/mbscasecmp-tests (Files): Likewise.
28845         * modules/mbscasestr-tests (Files): Likewise.
28846         * modules/mbschr-tests (Files): Likewise.
28847         * modules/mbscspn-tests (Files): Likewise.
28848         * modules/mbsinit-tests (Files): Likewise.
28849         * modules/mbsncasecmp-tests (Files): Likewise.
28850         * modules/mbsnrtowcs-tests (Files): Likewise.
28851         * modules/mbspbrk-tests (Files): Likewise.
28852         * modules/mbspcasecmp-tests (Files): Likewise.
28853         * modules/mbsrchr-tests (Files): Likewise.
28854         * modules/mbsrtowcs-tests (Files): Likewise.
28855         * modules/mbsspn-tests (Files): Likewise.
28856         * modules/mbsstr-tests (Files): Likewise.
28857         * modules/memchr-tests (Files): Likewise.
28858         * modules/memchr2-tests (Files): Likewise.
28859         * modules/memcmp-tests (Files): Likewise.
28860         * modules/memmem-tests (Files): Likewise.
28861         * modules/memrchr-tests (Files): Likewise.
28862         * modules/mkdir-tests (Files): Likewise.
28863         * modules/mkfifo-tests (Files): Likewise.
28864         * modules/mkfifoat-tests (Files): Likewise.
28865         * modules/mknod-tests (Files): Likewise.
28866         * modules/nanosleep-tests (Files): Likewise.
28867         * modules/nl_langinfo-tests (Files): Likewise.
28868         * modules/obstack-printf-tests (Files): Likewise.
28869         * modules/open-tests (Files): Likewise.
28870         * modules/openat-tests (Files): Likewise.
28871         * modules/pipe-filter-gi-tests (Files): Likewise.
28872         * modules/pipe-filter-ii-tests (Files): Likewise.
28873         * modules/pipe2-tests (Files): Likewise.
28874         * modules/popen-safer-tests (Files): Likewise.
28875         * modules/popen-tests (Files): Likewise.
28876         * modules/posixtm-tests (Files): Likewise.
28877         * modules/pread-tests (Files): Likewise.
28878         * modules/printf-frexp-tests (Files): Likewise.
28879         * modules/printf-frexpl-tests (Files): Likewise.
28880         * modules/printf-posix-tests (Files): Likewise.
28881         * modules/priv-set-tests (Files): Likewise.
28882         * modules/quotearg-tests (Files): Likewise.
28883         * modules/random_r-tests (Files): Likewise.
28884         * modules/rawmemchr-tests (Files): Likewise.
28885         * modules/rbtree-list-tests (Files): Likewise.
28886         * modules/rbtree-oset-tests (Files): Likewise.
28887         * modules/rbtreehash-list-tests (Files): Likewise.
28888         * modules/readlink-tests (Files): Likewise.
28889         * modules/remove-tests (Files): Likewise.
28890         * modules/rename-tests (Files): Likewise.
28891         * modules/renameat-tests (Files): Likewise.
28892         * modules/rmdir-tests (Files): Likewise.
28893         * modules/round-tests (Files): Likewise.
28894         * modules/roundf-tests (Files): Likewise.
28895         * modules/roundl-tests (Files): Likewise.
28896         * modules/safe-alloc-tests (Files): Likewise.
28897         * modules/setenv-tests (Files): Likewise.
28898         * modules/sigaction-tests (Files): Likewise.
28899         * modules/signbit-tests (Files): Likewise.
28900         * modules/sleep-tests (Files): Likewise.
28901         * modules/snprintf-posix-tests (Files): Likewise.
28902         * modules/snprintf-tests (Files): Likewise.
28903         * modules/sprintf-posix-tests (Files): Likewise.
28904         * modules/stat-tests (Files): Likewise.
28905         * modules/stat-time-tests (Files): Likewise.
28906         * modules/strcasestr-tests (Files): Likewise.
28907         * modules/strchrnul-tests (Files): Likewise.
28908         * modules/strerror-tests (Files): Likewise.
28909         * modules/striconv-tests (Files): Likewise.
28910         * modules/striconveh-tests (Files): Likewise.
28911         * modules/striconveha-tests (Files): Likewise.
28912         * modules/strsignal-tests (Files): Likewise.
28913         * modules/strstr-tests (Files): Likewise.
28914         * modules/strtod-tests (Files): Likewise.
28915         * modules/strverscmp-tests (Files): Likewise.
28916         * modules/symlink-tests (Files): Likewise.
28917         * modules/symlinkat-tests (Files): Likewise.
28918         * modules/trunc-tests (Files): Likewise.
28919         * modules/truncf-tests (Files): Likewise.
28920         * modules/truncl-tests (Files): Likewise.
28921         * modules/uname-tests (Files): Likewise.
28922         * modules/unicase/cased-tests (Files): Likewise.
28923         * modules/unicase/ignorable-tests (Files): Likewise.
28924         * modules/unicase/locale-language-tests (Files): Likewise.
28925         * modules/unicase/tolower-tests (Files): Likewise.
28926         * modules/unicase/totitle-tests (Files): Likewise.
28927         * modules/unicase/toupper-tests (Files): Likewise.
28928         * modules/unicase/u8-casecmp-tests (Files): Likewise.
28929         * modules/unicase/u8-casecoll-tests (Files): Likewise.
28930         * modules/unicase/u8-casefold-tests (Files): Likewise.
28931         * modules/unicase/u8-is-cased-tests (Files): Likewise.
28932         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
28933         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
28934         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
28935         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
28936         * modules/unicase/u8-tolower-tests (Files): Likewise.
28937         * modules/unicase/u8-totitle-tests (Files): Likewise.
28938         * modules/unicase/u8-toupper-tests (Files): Likewise.
28939         * modules/unicase/u16-casecmp-tests (Files): Likewise.
28940         * modules/unicase/u16-casecoll-tests (Files): Likewise.
28941         * modules/unicase/u16-casefold-tests (Files): Likewise.
28942         * modules/unicase/u16-is-cased-tests (Files): Likewise.
28943         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
28944         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
28945         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
28946         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
28947         * modules/unicase/u16-tolower-tests (Files): Likewise.
28948         * modules/unicase/u16-totitle-tests (Files): Likewise.
28949         * modules/unicase/u16-toupper-tests (Files): Likewise.
28950         * modules/unicase/u32-casecmp-tests (Files): Likewise.
28951         * modules/unicase/u32-casecoll-tests (Files): Likewise.
28952         * modules/unicase/u32-casefold-tests (Files): Likewise.
28953         * modules/unicase/u32-is-cased-tests (Files): Likewise.
28954         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
28955         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
28956         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
28957         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
28958         * modules/unicase/u32-tolower-tests (Files): Likewise.
28959         * modules/unicase/u32-totitle-tests (Files): Likewise.
28960         * modules/unicase/u32-toupper-tests (Files): Likewise.
28961         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
28962         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
28963         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
28964         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
28965         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
28966         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
28967         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
28968         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
28969         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
28970         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
28971         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
28972         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
28973         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
28974         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
28975         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
28976         * modules/unictype/bidicategory-name-tests (Files): Likewise.
28977         * modules/unictype/bidicategory-of-tests (Files): Likewise.
28978         * modules/unictype/bidicategory-test-tests (Files): Likewise.
28979         * modules/unictype/block-list-tests (Files): Likewise.
28980         * modules/unictype/block-of-tests (Files): Likewise.
28981         * modules/unictype/block-test-tests (Files): Likewise.
28982         * modules/unictype/category-C-tests (Files): Likewise.
28983         * modules/unictype/category-Cc-tests (Files): Likewise.
28984         * modules/unictype/category-Cf-tests (Files): Likewise.
28985         * modules/unictype/category-Cn-tests (Files): Likewise.
28986         * modules/unictype/category-Co-tests (Files): Likewise.
28987         * modules/unictype/category-Cs-tests (Files): Likewise.
28988         * modules/unictype/category-L-tests (Files): Likewise.
28989         * modules/unictype/category-Ll-tests (Files): Likewise.
28990         * modules/unictype/category-Lm-tests (Files): Likewise.
28991         * modules/unictype/category-Lo-tests (Files): Likewise.
28992         * modules/unictype/category-Lt-tests (Files): Likewise.
28993         * modules/unictype/category-Lu-tests (Files): Likewise.
28994         * modules/unictype/category-M-tests (Files): Likewise.
28995         * modules/unictype/category-Mc-tests (Files): Likewise.
28996         * modules/unictype/category-Me-tests (Files): Likewise.
28997         * modules/unictype/category-Mn-tests (Files): Likewise.
28998         * modules/unictype/category-N-tests (Files): Likewise.
28999         * modules/unictype/category-Nd-tests (Files): Likewise.
29000         * modules/unictype/category-Nl-tests (Files): Likewise.
29001         * modules/unictype/category-No-tests (Files): Likewise.
29002         * modules/unictype/category-P-tests (Files): Likewise.
29003         * modules/unictype/category-Pc-tests (Files): Likewise.
29004         * modules/unictype/category-Pd-tests (Files): Likewise.
29005         * modules/unictype/category-Pe-tests (Files): Likewise.
29006         * modules/unictype/category-Pf-tests (Files): Likewise.
29007         * modules/unictype/category-Pi-tests (Files): Likewise.
29008         * modules/unictype/category-Po-tests (Files): Likewise.
29009         * modules/unictype/category-Ps-tests (Files): Likewise.
29010         * modules/unictype/category-S-tests (Files): Likewise.
29011         * modules/unictype/category-Sc-tests (Files): Likewise.
29012         * modules/unictype/category-Sk-tests (Files): Likewise.
29013         * modules/unictype/category-Sm-tests (Files): Likewise.
29014         * modules/unictype/category-So-tests (Files): Likewise.
29015         * modules/unictype/category-Z-tests (Files): Likewise.
29016         * modules/unictype/category-Zl-tests (Files): Likewise.
29017         * modules/unictype/category-Zp-tests (Files): Likewise.
29018         * modules/unictype/category-Zs-tests (Files): Likewise.
29019         * modules/unictype/category-and-not-tests (Files): Likewise.
29020         * modules/unictype/category-and-tests (Files): Likewise.
29021         * modules/unictype/category-byname-tests (Files): Likewise.
29022         * modules/unictype/category-name-tests (Files): Likewise.
29023         * modules/unictype/category-none-tests (Files): Likewise.
29024         * modules/unictype/category-of-tests (Files): Likewise.
29025         * modules/unictype/category-or-tests (Files): Likewise.
29026         * modules/unictype/category-test-withtable-tests (Files): Likewise.
29027         * modules/unictype/combining-class-tests (Files): Likewise.
29028         * modules/unictype/ctype-alnum-tests (Files): Likewise.
29029         * modules/unictype/ctype-alpha-tests (Files): Likewise.
29030         * modules/unictype/ctype-blank-tests (Files): Likewise.
29031         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
29032         * modules/unictype/ctype-digit-tests (Files): Likewise.
29033         * modules/unictype/ctype-graph-tests (Files): Likewise.
29034         * modules/unictype/ctype-lower-tests (Files): Likewise.
29035         * modules/unictype/ctype-print-tests (Files): Likewise.
29036         * modules/unictype/ctype-punct-tests (Files): Likewise.
29037         * modules/unictype/ctype-space-tests (Files): Likewise.
29038         * modules/unictype/ctype-upper-tests (Files): Likewise.
29039         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
29040         * modules/unictype/decimal-digit-tests (Files): Likewise.
29041         * modules/unictype/digit-tests (Files): Likewise.
29042         * modules/unictype/mirror-tests (Files): Likewise.
29043         * modules/unictype/numeric-tests (Files): Likewise.
29044         * modules/unictype/property-alphabetic-tests (Files): Likewise.
29045         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
29046         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
29047         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
29048         Likewise.
29049         * modules/unictype/property-bidi-block-separator-tests (Files):
29050         Likewise.
29051         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
29052         Likewise.
29053         * modules/unictype/property-bidi-common-separator-tests (Files):
29054         Likewise.
29055         * modules/unictype/property-bidi-control-tests (Files): Likewise.
29056         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
29057         Likewise.
29058         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
29059         Likewise.
29060         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
29061         Likewise.
29062         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
29063         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
29064         Likewise.
29065         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
29066         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
29067         Likewise.
29068         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
29069         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
29070         * modules/unictype/property-bidi-segment-separator-tests (Files):
29071         Likewise.
29072         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
29073         * modules/unictype/property-byname-tests (Files): Likewise.
29074         * modules/unictype/property-combining-tests (Files): Likewise.
29075         * modules/unictype/property-composite-tests (Files): Likewise.
29076         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
29077         * modules/unictype/property-dash-tests (Files): Likewise.
29078         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
29079         * modules/unictype/property-default-ignorable-code-point-tests (Files):
29080         Likewise.
29081         * modules/unictype/property-deprecated-tests (Files): Likewise.
29082         * modules/unictype/property-diacritic-tests (Files): Likewise.
29083         * modules/unictype/property-extender-tests (Files): Likewise.
29084         * modules/unictype/property-format-control-tests (Files): Likewise.
29085         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
29086         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
29087         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
29088         * modules/unictype/property-hex-digit-tests (Files): Likewise.
29089         * modules/unictype/property-hyphen-tests (Files): Likewise.
29090         * modules/unictype/property-id-continue-tests (Files): Likewise.
29091         * modules/unictype/property-id-start-tests (Files): Likewise.
29092         * modules/unictype/property-ideographic-tests (Files): Likewise.
29093         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
29094         * modules/unictype/property-ids-trinary-operator-tests (Files):
29095         Likewise.
29096         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
29097         * modules/unictype/property-iso-control-tests (Files): Likewise.
29098         * modules/unictype/property-join-control-tests (Files): Likewise.
29099         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
29100         * modules/unictype/property-line-separator-tests (Files): Likewise.
29101         * modules/unictype/property-logical-order-exception-tests (Files):
29102         Likewise.
29103         * modules/unictype/property-lowercase-tests (Files): Likewise.
29104         * modules/unictype/property-math-tests (Files): Likewise.
29105         * modules/unictype/property-non-break-tests (Files): Likewise.
29106         * modules/unictype/property-not-a-character-tests (Files): Likewise.
29107         * modules/unictype/property-numeric-tests (Files): Likewise.
29108         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
29109         * modules/unictype/property-other-default-ignorable-code-point-tests
29110         (Files): Likewise.
29111         * modules/unictype/property-other-grapheme-extend-tests (Files):
29112         Likewise.
29113         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
29114         * modules/unictype/property-other-id-start-tests (Files): Likewise.
29115         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
29116         * modules/unictype/property-other-math-tests (Files): Likewise.
29117         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
29118         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
29119         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
29120         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
29121         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
29122         * modules/unictype/property-private-use-tests (Files): Likewise.
29123         * modules/unictype/property-punctuation-tests (Files): Likewise.
29124         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
29125         * modules/unictype/property-radical-tests (Files): Likewise.
29126         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
29127         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
29128         * modules/unictype/property-space-tests (Files): Likewise.
29129         * modules/unictype/property-terminal-punctuation-tests (Files):
29130         Likewise.
29131         * modules/unictype/property-test-tests (Files): Likewise.
29132         * modules/unictype/property-titlecase-tests (Files): Likewise.
29133         * modules/unictype/property-unassigned-code-value-tests (Files):
29134         Likewise.
29135         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
29136         * modules/unictype/property-uppercase-tests (Files): Likewise.
29137         * modules/unictype/property-variation-selector-tests (Files): Likewise.
29138         * modules/unictype/property-white-space-tests (Files): Likewise.
29139         * modules/unictype/property-xid-continue-tests (Files): Likewise.
29140         * modules/unictype/property-xid-start-tests (Files): Likewise.
29141         * modules/unictype/property-zero-width-tests (Files): Likewise.
29142         * modules/unictype/scripts-tests (Files): Likewise.
29143         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
29144         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
29145         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
29146         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
29147         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
29148         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
29149         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
29150         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
29151         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
29152         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
29153         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
29154         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
29155         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
29156         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
29157         * modules/uninorm/composition-tests (Files): Likewise.
29158         * modules/uninorm/decomposing-form-tests (Files): Likewise.
29159         * modules/uninorm/decomposition-tests (Files): Likewise.
29160         * modules/uninorm/filter-tests (Files): Likewise.
29161         * modules/uninorm/nfc-tests (Files): Likewise.
29162         * modules/uninorm/nfd-tests (Files): Likewise.
29163         * modules/uninorm/nfkc-tests (Files): Likewise.
29164         * modules/uninorm/nfkd-tests (Files): Likewise.
29165         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
29166         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
29167         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
29168         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
29169         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
29170         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
29171         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
29172         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
29173         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
29174         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
29175         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
29176         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
29177         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
29178         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
29179         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
29180         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
29181         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
29182         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
29183         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
29184         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
29185         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
29186         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
29187         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
29188         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
29189         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
29190         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
29191         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
29192         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
29193         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
29194         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
29195         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
29196         * modules/uniwidth/u8-width-tests (Files): Likewise.
29197         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
29198         * modules/uniwidth/u16-width-tests (Files): Likewise.
29199         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
29200         * modules/uniwidth/u32-width-tests (Files): Likewise.
29201         * modules/uniwidth/width-tests (Files): Likewise.
29202         * modules/unlink-tests (Files): Likewise.
29203         * modules/unsetenv-tests (Files): Likewise.
29204         * modules/usleep-tests (Files): Likewise.
29205         * modules/utimens-tests (Files): Likewise.
29206         * modules/utimensat-tests (Files): Likewise.
29207         * modules/vasnprintf-posix-tests (Files): Likewise.
29208         * modules/vasnprintf-tests (Files): Likewise.
29209         * modules/vasprintf-posix-tests (Files): Likewise.
29210         * modules/vasprintf-tests (Files): Likewise.
29211         * modules/vdprintf-posix-tests (Files): Likewise.
29212         * modules/vfprintf-posix-tests (Files): Likewise.
29213         * modules/vprintf-posix-tests (Files): Likewise.
29214         * modules/vsnprintf-posix-tests (Files): Likewise.
29215         * modules/vsnprintf-tests (Files): Likewise.
29216         * modules/vsprintf-posix-tests (Files): Likewise.
29217         * modules/wcrtomb-tests (Files): Likewise.
29218         * modules/wcsnrtombs-tests (Files): Likewise.
29219         * modules/wcsrtombs-tests (Files): Likewise.
29220         * modules/wctype-tests (Files): Likewise.
29221         * modules/wcwidth-tests (Files): Likewise.
29222         * modules/xmemdup0-tests (Files): Likewise.
29223         * modules/xprintf-posix-tests (Files): Likewise.
29224         * modules/xvasprintf-tests (Files): Likewise.
29225
29226 2009-12-24  Eric Blake  <ebb9@byu.net>
29227
29228         test-nanosleep: fix typo
29229         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
29230         patch.
29231         Reported by Bruno Haible.
29232
29233 2009-12-24  Bruno Haible  <bruno@clisp.org>
29234
29235         Reduce namespace pollution on glibc systems.
29236         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
29237         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
29238         systems.
29239         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
29240         <getopt.h> on glibc systems.
29241         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
29242         systems.
29243         * lib/fcntl.c: Include <unistd.h> here instead.
29244
29245 2009-12-24  Bruno Haible  <bruno@clisp.org>
29246
29247         * lib/stdlib.in.h (includes): Fix typo in today's commit.
29248
29249 2009-12-24  Eric Blake  <ebb9@byu.net>
29250
29251         tests: add signature checks
29252         * tests/signature.h (SIGNATURE_CHECK): New file.
29253         * modules/atexit-tests (Files): Use it.
29254         * modules/btowc-tests (Files): Likewise.
29255         * modules/canonicalize-lgpl-tests (Files): Likewise.
29256         * modules/ceilf-tests (Files): Likewise.
29257         * modules/ceill-tests (Files): Likewise.
29258         * modules/chown-tests (Files): Likewise.
29259         * modules/dprintf-posix-tests (Files): Likewise.
29260         * modules/dup2-tests (Files): Likewise.
29261         * modules/dup3-tests (Files): Likewise.
29262         * modules/duplocale-tests (Files): Likewise.
29263         * modules/fchdir-tests (Files): Likewise.
29264         * modules/fcntl-tests (Files): Likewise.
29265         * modules/fdopendir-tests (Files): Likewise.
29266         * modules/fflush-tests (Files): Likewise.
29267         * modules/flock-tests (Files): Likewise.
29268         * modules/floorf-tests (Files): Likewise.
29269         * modules/floorl-tests (Files): Likewise.
29270         * modules/fnmatch-tests (Files): Likewise.
29271         * modules/fopen-tests (Files): Likewise.
29272         * modules/fprintf-posix-tests (Files): Likewise.
29273         * modules/freopen-tests (Files): Likewise.
29274         * modules/frexp-nolibm-tests (Files): Likewise.
29275         * modules/frexp-tests (Files): Likewise.
29276         * modules/frexpl-nolibm-tests (Files): Likewise.
29277         * modules/frexpl-tests (Files): Likewise.
29278         * modules/fseek-tests (Files): Likewise.
29279         * modules/fseeko-tests (Files): Likewise.
29280         * modules/fsync-tests (Files): Likewise.
29281         * modules/ftell-tests (Files): Likewise.
29282         * modules/ftello-tests (Files): Likewise.
29283         * modules/futimens-tests (Files): Likewise.
29284         * modules/getaddrinfo-tests (Files): Likewise.
29285         * modules/getcwd-tests (Files): Likewise.
29286         * modules/getdelim-tests (Files): Likewise.
29287         * modules/getdtablesize-tests (Files): Likewise.
29288         * modules/getgroups-tests (Files): Likewise.
29289         * modules/gethostname-tests (Files): Likewise.
29290         * modules/getline-tests (Files): Likewise.
29291         * modules/getopt-posix-tests (Files): Likewise.
29292         * modules/gettimeofday-tests (Files): Likewise.
29293         * modules/glob-tests (Files): Likewise.
29294         * modules/iconv-tests (Files): Likewise.
29295         * modules/inet_ntop-tests (Files): Likewise.
29296         * modules/inet_pton-tests (Files): Likewise.
29297         * modules/isblank-tests (Files): Likewise.
29298         * modules/lchown-tests (Files): Likewise.
29299         * modules/ldexpl-tests (Files): Likewise.
29300         * modules/link-tests (Files): Likewise.
29301         * modules/linkat-tests (Files): Likewise.
29302         * modules/lseek-tests (Files): Likewise.
29303         * modules/lstat-tests (Files): Likewise.
29304         * modules/mbrtowc-tests (Files): Likewise.
29305         * modules/mbsinit-tests (Files): Likewise.
29306         * modules/mbsnrtowcs-tests (Files): Likewise.
29307         * modules/mbsrtowcs-tests (Files): Likewise.
29308         * modules/memchr-tests (Files): Likewise.
29309         * modules/memcmp-tests (Files): Likewise.
29310         * modules/memmem-tests (Files): Likewise.
29311         * modules/memrchr-tests (Files): Likewise.
29312         * modules/mkdir-tests (Files): Likewise.
29313         * modules/mkfifo-tests (Files): Likewise.
29314         * modules/mkfifoat-tests (Files): Likewise.
29315         * modules/mknod-tests (Files): Likewise.
29316         * modules/nanosleep-tests (Files): Likewise.
29317         * modules/nl_langinfo-tests (Files): Likewise.
29318         * modules/obstack-printf-tests (Files): Likewise.
29319         * modules/open-tests (Files): Likewise.
29320         * modules/openat-tests (Files): Likewise.
29321         * modules/perror-tests (Files): Likewise.
29322         * modules/pipe2-tests (Files): Likewise.
29323         * modules/poll-tests (Files): Likewise.
29324         * modules/popen-tests (Files): Likewise.
29325         * modules/posix_spawn-tests (Files): Likewise.
29326         * modules/posix_spawnp-tests (Files): Likewise.
29327         * modules/pread-tests (Files): Likewise.
29328         * modules/printf-posix-tests (Files): Likewise.
29329         * modules/pty-tests (Files): Likewise.
29330         * modules/random_r-tests (Files): Likewise.
29331         * modules/rawmemchr-tests (Files): Likewise.
29332         * modules/readlink-tests (Files): Likewise.
29333         * modules/remove-tests (Files): Likewise.
29334         * modules/rename-tests (Files): Likewise.
29335         * modules/renameat-tests (Files): Likewise.
29336         * modules/rmdir-tests (Files): Likewise.
29337         * modules/round-tests (Files): Likewise.
29338         * modules/roundf-tests (Files): Likewise.
29339         * modules/roundl-tests (Files): Likewise.
29340         * modules/select-tests (Files): Likewise.
29341         * modules/setenv-tests (Files): Likewise.
29342         * modules/sigaction-tests (Files): Likewise.
29343         * modules/sleep-tests (Files): Likewise.
29344         * modules/snprintf-posix-tests (Files): Likewise.
29345         * modules/snprintf-tests (Files): Likewise.
29346         * modules/sprintf-posix-tests (Files): Likewise.
29347         * modules/stat-tests (Files): Likewise.
29348         * modules/strcasestr-tests (Files): Likewise.
29349         * modules/strchrnul-tests (Files): Likewise.
29350         * modules/strerror-tests (Files): Likewise.
29351         * modules/strsignal-tests (Files): Likewise.
29352         * modules/strstr-tests (Files): Likewise.
29353         * modules/strtod-tests (Files): Likewise.
29354         * modules/strverscmp-tests (Files): Likewise.
29355         * modules/symlink-tests (Files): Likewise.
29356         * modules/symlinkat-tests (Files): Likewise.
29357         * modules/times-tests (Files): Likewise.
29358         * modules/trunc-tests (Files): Likewise.
29359         * modules/truncf-tests (Files): Likewise.
29360         * modules/truncl-tests (Files): Likewise.
29361         * modules/tsearch-tests (Files): Likewise.
29362         * modules/uname-tests (Files): Likewise.
29363         * modules/unlink-tests (Files): Likewise.
29364         * modules/unsetenv-tests (Files): Likewise.
29365         * modules/usleep-tests (Files): Likewise.
29366         * modules/utimensat-tests (Files): Likewise.
29367         * modules/vasprintf-tests (Files): Likewise.
29368         * modules/vdprintf-posix-tests (Files): Likewise.
29369         * modules/vfprintf-posix-tests (Files): Likewise.
29370         * modules/vprintf-posix-tests (Files): Likewise.
29371         * modules/vsnprintf-posix-tests (Files): Likewise.
29372         * modules/vsnprintf-tests (Files): Likewise.
29373         * modules/vsprintf-posix-tests (Files): Likewise.
29374         * modules/wcrtomb-tests (Files): Likewise.
29375         * modules/wcsnrtombs-tests (Files): Likewise.
29376         * modules/wcsrtombs-tests (Files): Likewise.
29377         * modules/wcwidth-tests (Files): Likewise.
29378         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
29379         * tests/test-isinf.c (isinf): Likewise.
29380         * tests/test-isnan.c (isnan): Likewise.
29381         * tests/test-signbit.c (signbit): Likewise.
29382         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
29383         declaration, either as macro or with correct signature.
29384         (select): Ensure function under test is declared with correct
29385         signature in correct header.
29386         * tests/test-atexit.c (atexit): Likewise.
29387         * tests/test-btowc.c (btowc): Likewise.
29388         * tests/test-canonicalize-lgpl.c (realpath)
29389         (canonicalize_file_name): Likewise.
29390         * tests/test-ceilf1.c (ceilf): Likewise.
29391         * tests/test-ceill.c (ceill): Likewise.
29392         * tests/test-chown.c (chown): Likewise.
29393         * tests/test-dprintf-posix.c (dprintf): Likewise.
29394         * tests/test-dup2.c (dup2): Likewise.
29395         * tests/test-dup3.c (dup3): Likewise.
29396         * tests/test-duplocale.c (duplocale): Likewise.
29397         * tests/test-fchdir.c (fchdir): Likewise.
29398         * tests/test-fchownat.c (fchownat): Likewise.
29399         * tests/test-fcntl.c (fcntl): Likewise.
29400         * tests/test-fdopendir.c (fdopendir): Likewise.
29401         * tests/test-fflush.c (fflush): Likewise.
29402         * tests/test-flock.c (flock): Likewise.
29403         * tests/test-floorf1.c (floorf): Likewise.
29404         * tests/test-floorl.c (floorl): Likewise.
29405         * tests/test-fnmatch.c (fnmatch): Likewise.
29406         * tests/test-fopen.c (fopen): Likewise.
29407         * tests/test-fprintf-posix.c (fprintf): Likewise.
29408         * tests/test-freopen.c (freopen): Likewise.
29409         * tests/test-frexp.c (frexp): Likewise.
29410         * tests/test-frexpl.c (frexpl): Likewise.
29411         * tests/test-fseek.c (fseek): Likewise.
29412         * tests/test-fseeko.c (fseeko): Likewise.
29413         * tests/test-fstatat.c (fstatat): Likewise.
29414         * tests/test-fsync.c (fsync): Likewise.
29415         * tests/test-ftell.c (ftell): Likewise.
29416         * tests/test-ftello.c (ftello): Likewise.
29417         * tests/test-futimens.c (futimens): Likewise.
29418         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
29419         (gai_strerror): Likewise.
29420         * tests/test-getcwd.c (getcwd): Likewise.
29421         * tests/test-getdelim.c (getdelim): Likewise.
29422         * tests/test-getdtablesize.c (getdtablesize): Likewise.
29423         * tests/test-getgroups.c (getgroups): Likewise.
29424         * tests/test-gethostname.c (gethostname): Likewise.
29425         * tests/test-getline.c (getline): Likewise.
29426         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
29427         Likewise.
29428         * tests/test-gettimeofday.c (gettimeofday): Likewise.
29429         * tests/test-glob.c (glob, globfree): Likewise.
29430         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
29431         * tests/test-inet_ntop.c (inet_ntop): Likewise.
29432         * tests/test-inet_pton.c (inet_pton): Likewise.
29433         * tests/test-isblank.c (isblank): Likewise.
29434         * tests/test-lchown.c (lchown): Likewise.
29435         * tests/test-ldexpl.c (ldexpl): Likewise.
29436         * tests/test-link.c (link): Likewise.
29437         * tests/test-linkat.c (linkat): Likewise.
29438         * tests/test-lseek.c (lseek): Likewise.
29439         * tests/test-lstat.c (lstat): Likewise.
29440         * tests/test-mbrtowc.c (mbrtowc): Likewise.
29441         * tests/test-mbsinit.c (mbsinit): Likewise.
29442         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
29443         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
29444         * tests/test-memchr.c (memchr): Likewise.
29445         * tests/test-memcmp.c (memcmp): Likewise.
29446         * tests/test-memmem.c (memmem): Likewise.
29447         * tests/test-memrchr.c (memrchr): Likewise.
29448         * tests/test-mkdir.c (mkdir): Likewise.
29449         * tests/test-mkdirat.c (mkdirat): Likewise.
29450         * tests/test-mkfifo.c (mkfifo): Likewise.
29451         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
29452         * tests/test-mknod.c (mknod): Likewise.
29453         * tests/test-nanosleep.c (nanosleep): Likewise.
29454         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
29455         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
29456         Likewise.
29457         * tests/test-open.c (open): Likewise.
29458         * tests/test-openat.c (openat): Likewise.
29459         * tests/test-perror.c (perror): Likewise.
29460         * tests/test-pipe2.c (pipe2): Likewise.
29461         * tests/test-poll.c (poll): Likewise.
29462         * tests/test-popen.c (popen, pclose): Likewise.
29463         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
29464         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
29465         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
29466         (posix_spawn_file_actions_destroy)
29467         (posix_spawn_file_actions_addclose)
29468         (posix_spawn_file_actions_addopen)
29469         (posix_spawn_file_actions_adddup2): Likewise.
29470         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
29471         * tests/test-pread.c (pread): Likewise.
29472         * tests/test-printf-posix.c (printf): Likewise.
29473         * tests/test-pty.c (openpty, forkpty): Likewise.
29474         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
29475         (random_r): Likewise.
29476         * tests/test-rawmemchr.c (rawmemchr): Likewise.
29477         * tests/test-readlink.c (readlink): Likewise.
29478         * tests/test-remove.c (remove): Likewise.
29479         * tests/test-rename.c (rename): Likewise.
29480         * tests/test-renameat.c (renameat): Likewise.
29481         * tests/test-rmdir.c (rmdir): Likewise.
29482         * tests/test-round1.c (round): Likewise.
29483         * tests/test-roundf1.c (roundf): Likewise.
29484         * tests/test-roundl.c (roundl): Likewise.
29485         * tests/test-setenv.c (setenv): Likewise.
29486         * tests/test-sigaction.c (sigaction): Likewise.
29487         * tests/test-sleep.c (sleep): Likewise.
29488         * tests/test-snprintf.c (snprintf): Likewise.
29489         * tests/test-sprintf-posix.c (sprintf): Likewise.
29490         * tests/test-stat.c (stat): Likewise.
29491         * tests/test-stpncpy.c (stpncpy): Likewise.
29492         * tests/test-strcasestr.c (strcasestr): Likewise.
29493         * tests/test-strchrnul.c (strchrnul): Likewise.
29494         * tests/test-strerror.c (strerror): Likewise.
29495         * tests/test-strsignal.c (strsignal): Likewise.
29496         * tests/test-strstr.c (strstr): Likewise.
29497         * tests/test-strtod.c (strtod): Likewise.
29498         * tests/test-strverscmp.c (strverscmp): Likewise.
29499         * tests/test-symlink.c (symlink): Likewise.
29500         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
29501         * tests/test-times.c (times): Likewise.
29502         * tests/test-trunc1.c (trunc): Likewise.
29503         * tests/test-truncf1.c (truncf): Likewise.
29504         * tests/test-truncl.c (truncl): Likewise.
29505         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
29506         Likewise.
29507         * tests/test-uname.c (uname): Likewise.
29508         * tests/test-unlink.c (unlink): Likewise.
29509         * tests/test-unlinkat.c (unlinkat): Likewise.
29510         * tests/test-unsetenv.c (unsetenv): Likewise.
29511         * tests/test-usleep.c (usleep): Likewise.
29512         * tests/test-utimensat.c (utimensat): Likewise.
29513         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
29514         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
29515         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
29516         * tests/test-vprintf-posix.c (vprintf): Likewise.
29517         * tests/test-vsnprintf.c (vsnprintf): Likewise.
29518         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
29519         * tests/test-wcrtomb.c (wcrtomb): Likewise.
29520         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
29521         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
29522         * tests/test-wcwidth.c (wcwidth): Likewise.
29523
29524         build: pull in conditional headers during GNULIB_POSIXCHECK
29525         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
29526         definitions from any conditionally-included headers.
29527         * lib/stdlib.in.h (includes): Likewise.
29528         * lib/unistd.in.h (includes): Likewise.
29529
29530 2009-12-24  Bruno Haible  <bruno@clisp.org>
29531
29532         * tests/test-argv-iter.c: Include header file being tested immediately
29533         after config.h.
29534         * tests/test-base64.c: Likewise.
29535         * tests/test-flock.c: Likewise.
29536         * tests/test-fsync.c: Likewise.
29537         * tests/test-getdate.c: Likewise.
29538         * tests/test-getndelim2.c: Likewise.
29539         * tests/test-isfinite.c: Likewise.
29540         * tests/test-isinf.c: Likewise.
29541         * tests/test-strerror.c: Likewise.
29542         * tests/test-strsignal.c: Likewise.
29543
29544 2009-12-23  Eric Blake  <ebb9@byu.net>
29545
29546         unistd: work around cygwin bug
29547         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
29548         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
29549         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
29550
29551 2009-12-23  Bruno Haible  <bruno@clisp.org>
29552
29553         localename: More tests.
29554         * tests/test-localename.c (SIZEOF): New macro.
29555         (categories): New variable.
29556         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
29557         test_locale_name_default): Add test w.r.t. thread locale.
29558         (test_locale_name_thread): New function.
29559         (main): Invoke it.
29560
29561         localename: Make aware of thread locale.
29562         * lib/localename.h (gl_locale_name_thread): New declaration.
29563         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
29564         behaviour with respect to thread locale.
29565         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
29566         <langinfo.h>, glthread/lock.h.
29567         (SIZE_BITS): New macro.
29568         (string_hash): New function.
29569         (struct hash_node): New type.
29570         (HASH_TABLE_SIZE): New macro.
29571         (struniq_hash_table, struniq_lock): New variables.
29572         (struniq): New function.
29573         (gl_locale_name_thread): New function.
29574         (gl_locale_name): Invoke it.
29575         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
29576         * modules/localename (Depends-on): Add lock.
29577         Reported by Mike Gran <spk121@yahoo.com>.
29578
29579 2009-12-23  Eric Blake  <ebb9@byu.net>
29580
29581         va-args: new module
29582         * modules/va-args: New file.
29583         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
29584         * MODULES.html.sh (Core language properties): Mention it.
29585
29586         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
29587         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
29588         named alias for __attribute__((__unused__)).
29589         * lib/chown.c: Update client.
29590         * lib/fchmodat.c: Likewise.
29591         * lib/fts.c: Likewise.
29592         * lib/getdate.y: Likewise.
29593         * lib/getgroups.c: Likewise.
29594         * lib/getopt.c: Likewise.
29595         * lib/getugroups.c: Likewise.
29596         * lib/mkdir.c: Likewise.
29597         * lib/mkfifo.c: Likewise.
29598         * lib/mkfifoat.c: Likewise.
29599         * lib/mknod.c: Likewise.
29600         * lib/mknodat.c: Likewise.
29601         * lib/readlink.c: Likewise.
29602         * lib/se-context.in.h: Likewise.
29603         * lib/se-selinux.in.h: Likewise.
29604         * lib/sockets.c: Likewise.
29605         * lib/symlink.c: Likewise.
29606         * lib/symlinkat.c: Likewise.
29607         * lib/unicodeio.c: Likewise.
29608         * lib/unistr.h: Likewise.
29609         * tests/test-areadlink.c: Likewise.
29610         * tests/test-areadlinkat.c: Likewise.
29611         * tests/test-filenamecat.c: Likewise.
29612         * tests/test-fseeko.c: Likewise.
29613         * tests/test-ftello.c: Likewise.
29614         * tests/test-getdate.c: Likewise.
29615         * tests/test-getgroups.c: Likewise.
29616         * tests/test-gethostname.c: Likewise.
29617         * tests/test-quotearg.c: Likewise.
29618         * tests/test-version-etc.c: Likewise.
29619         * tests/test-xalloc-die.c: Likewise.
29620         * tests/test-xfprintf-posix.c: Likewise.
29621         * tests/test-xprintf-posix.c: Likewise.
29622         * tests/test-xvasprintf.c: Likewise.
29623
29624         tests: avoid compiler warnings
29625         * tests/test-fcntl.c (main): Delete unused parameters.
29626         * tests/test-freopen-safer.c (main): Likewise.
29627         * tests/test-xalloc-die.c (main): Mark unused parameters.
29628         * tests/test-fseeko.c (main): Likewise.
29629         * tests/test-ftello.c (main): Likewise.
29630         * tests/test-nanosleep.c (main): Avoid declaration warning.
29631         * tests/test-sleep.c (main): Likewise.
29632         * tests/test-unsetenv.c (main): Silence warning about string
29633         literal.
29634         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
29635
29636 2009-12-23  Bruno Haible  <bruno@clisp.org>
29637
29638         * tests/test-localename.c (test_locale_name): New function, extracted
29639         from main. Also test mixed situations.
29640         (test_locale_name_posix, test_locale_name_environ,
29641         test_locale_name_default): New functions.
29642         (main): Invoke them all.
29643         * modules/localename-tests (configure.ac): Test for newlocale.
29644
29645 2009-12-23  Bruno Haible  <bruno@clisp.org>
29646
29647         unistd: Ensure getcwd gets declared before being overridden.
29648         * lib/unistd.in.h: Conditionally include <io.h>.
29649
29650 2009-12-22  Bruno Haible  <bruno@clisp.org>
29651
29652         wchar: Diagnose broken combination of glibc and gcc versions and flags.
29653         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
29654         (gl_WCHAR_H): Invoke it.
29655         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
29656         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
29657         Reported by Karl Berry <karl@freefriends.org>.
29658
29659 2009-12-22  Eric Blake  <ebb9@byu.net>
29660
29661         math, unistd: avoid redundant includes
29662         * lib/math.in.h (isnan): No need to re-include <math.h>.
29663         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
29664
29665         getsubopt: work around cygwin bug
29666         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
29667         avoid conflicting with system getsubopt.
29668         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
29669         bug.
29670
29671         getopt: synchronize from glibc
29672         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
29673         parameter order.  Adjust all callers.
29674         (_getopt_internal_r, main): Adjust quoting in error messages.
29675         Drop considerations for outdated POSIX 1003.2 error message.
29676         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
29677         callers.
29678         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
29679
29680         test-getopt: test stderr behavior
29681         * modules/getopt-posix-tests (Depends-on): Add dup2.
29682         * tests/test-getopt.c (ASSERT): Avoid stderr.
29683         (main): Move stderr to a temporary file.
29684         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
29685         Instead, add parameter to inform caller if output occurred.
29686         (test_getopt): Adjust all existing tests to expect silence, and
29687         add new tests of leading ":".
29688         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
29689         glibc shortcomings with leading "-:" or "+:" in optstring.
29690         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29691         Likewise.
29692         * doc/posix-functions/getopt.texi (getopt): Likewise.
29693
29694         test-getopt: enhance test
29695         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
29696         supports optind=0.
29697         * tests/test-getopt.c (OPTIND_MIN): Move...
29698         * tests/test-getopt.h (OPTIND_MIN): ...here.
29699         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
29700         Require that optind=0 works, since modern BSD supports it in
29701         addition to optreset, and since coreutils expects it.
29702         (test_getopt_long_only): New test.
29703         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
29704         glibc shortcomings with 'W;', and enforcement of optind=0.
29705         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29706         Likewise.
29707
29708 2009-12-21  Bruno Haible  <bruno@clisp.org>
29709
29710         localename: Improvements for MacOS X and Cygwin.
29711         * lib/localename.h (gl_locale_name_environ): New declaration.
29712         * lib/localename.c (gl_locale_name_environ): New function, extracted from
29713         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
29714         (gl_locale_name_posix): Invoke it.
29715         (gl_locale_name_default): Add comments. Use Windows native API also on
29716         Cygwin.
29717
29718 2009-12-21  Bruno Haible  <bruno@clisp.org>
29719
29720         Update list of Win32 locale ids.
29721         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
29722         (LANG_SAMI): Renamed from LANG_SAAMI.
29723         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
29724         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
29725         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
29726         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
29727         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
29728         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
29729         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
29730         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
29731         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
29732         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
29733         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
29734         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
29735         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
29736         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
29737         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
29738         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
29739         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
29740         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
29741         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
29742         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
29743         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
29744         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
29745         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
29746         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
29747         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
29748         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
29749         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
29750         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
29751         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
29752         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
29753         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
29754         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
29755         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
29756         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
29757         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
29758         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
29759         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
29760         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
29761         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
29762         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
29763         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
29764         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
29765         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
29766         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
29767         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
29768         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
29769         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
29770         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
29771         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
29772         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
29773         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
29774         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
29775         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
29776         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
29777         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
29778         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
29779         Add more languages and countries for Sami, Sorbian. Add more countries
29780         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
29781         for Pashto. Change country for Syriac, Tswana.
29782
29783 2009-12-21  Eric Blake  <ebb9@byu.net>
29784
29785         test-utimens: avoid spurious failure
29786         * tests/test-chown.h (nap): Factor...
29787         * tests/nap.h: ...into new file.
29788         * tests/test-lchown.h (nap): Avoid duplication.
29789         * tests/test-utimens-common.h (nap): Use shared implementation,
29790         necessary on file systems with 1-second resolution.
29791         * modules/chown-tests (Files): Include new file.
29792         * modules/fdutimensat-tests (Files): Likewise.
29793         * modules/futimens-tests (Files): Likewise.
29794         * modules/lchown-tests (Files): Likewise.
29795         * modules/openat-tests (Files): Likewise.
29796         * modules/utimens-tests (Files): Likewise.
29797         * modules/utimensat-tests (Files): Likewise.
29798
29799 2009-12-19  Eric Blake  <ebb9@byu.net>
29800
29801         futimens, utimensat: work around Linux bug
29802         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
29803         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29804         * lib/utimensat.c (rpl_utimensat): Work around it.
29805         * lib/futimens.c (rpl_futimens): Adjust comment.
29806
29807         utimens: work around Linux ctime bug
29808         * lib/utimens.c (detect_ctime_bug): New helper function.
29809         (update_timespec): Differentiate between workaround needed for
29810         this bug vs. what is needed for systems that lack utimensat.
29811         (fdutimens, lutimens): Work around bug.
29812
29813         utimens: check for ctime update
29814         * tests/test-utimens-common.h (check_ctime): Define.
29815         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
29816         * tests/test-futimens.h (test_futimens): Likewise.
29817         * tests/test-lutimens.h (test_lutimens): Likewise.
29818         * doc/posix-functions/futimens.texi (futimens): Document the bug.
29819         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29820
29821 2009-12-19  Bruno Haible  <bruno@clisp.org>
29822
29823         dprintf-posix: Check against memory leak fixed on 2009-12-15.
29824         * tests/test-dprintf-posix2.sh: New file.
29825         * tests/test-dprintf-posix2.c: New file.
29826         * modules/dprintf-posix-tests (Files): Add them.
29827         (configure.ac): Check for getrlimit and setrlimit.
29828         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
29829
29830 2009-12-19  Bruno Haible  <bruno@clisp.org>
29831
29832         fprintf-posix: Check against memory leak fixed on 2009-12-15.
29833         * tests/test-fprintf-posix3.sh: New file.
29834         * tests/test-fprintf-posix3.c: New file.
29835         * modules/fprintf-posix-tests (Files): Add them.
29836         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
29837
29838 2009-12-19  Eric Blake  <ebb9@byu.net>
29839
29840         dirfd: fix prototype
29841         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
29842         * lib/dirfd.c (dirfd): Likewise.
29843
29844         canonicalize: reduce memory usage
29845         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
29846         allocation to size.
29847         Reported by Solar Designer <solar@openwall.com>.
29848
29849 2009-12-19  Bruno Haible  <bruno@clisp.org>
29850
29851         New module attribute 'Applicability'.
29852         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
29853         * gnulib-tool: New option --extract-applicability.
29854         (func_usage): Document it.
29855         (sed_extract_prog): Recognize it.
29856         (func_get_applicability): New function.
29857         (func_import): Generalize handling of 'link-warning' module.
29858         * modules/link-warning (Applicability): New section.
29859         * modules/arg-nonnull (Applicability): New section.
29860         Repoted by Simon Josefsson <simon@josefsson.org>.
29861
29862 2009-12-19  Bruno Haible  <bruno@clisp.org>
29863
29864         fflush: tweak
29865         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
29866         * lib/fseeko.c (rpl_fseeko): Likewise.
29867
29868 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
29869
29870         * lib/gl_list.h: Fix typo in comment.
29871
29872 2009-12-16  Eric Blake  <ebb9@byu.net>
29873
29874         fcntl: use to simplify other modules
29875         * modules/cloexec (Depends-on): Add fcntl.
29876         * modules/fchdir (Depends-on): Likewise.
29877         * modules/fd-safer-flag (Depends-on): Likewise.
29878         * modules/unistd-safer (Depends-on): Likewise.
29879         * modules/dup3 (configure.ac): Set module indicator.
29880         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
29881         missing.
29882         * lib/fchdir.c (_gl_register_dup): Fix comment.
29883         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
29884         * lib/dup-safer.c (dup_safer): Likewise.
29885         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
29886         * lib/dup3.c (dup3): Likewise.
29887         * tests/test-fchdir.c (main): Enhance test.
29888         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
29889
29890         fcntl: port portions of fcntl to mingw
29891         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
29892         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
29893         replacement for mingw.
29894         * modules/fcntl (Description): Update.
29895         (Depends-on): Add dup2.
29896         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
29897         * modules/fcntl-h (Makefile.am): Substitute it.
29898         * lib/fcntl.in.h (fcntl): Update declaration.
29899         (F_DUPFD, F_GETFD): New macros, when needed.
29900         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
29901         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
29902         * tests/test-fcntl.c (check_flags, main): Enhance test for items
29903         we now guarantee.
29904
29905         fcntl: work around cygwin bug in F_DUPFD
29906         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
29907         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
29908         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
29909         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
29910         * doc/posix-functions/fcntl.texi (fcntl): Document it.
29911
29912         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
29913         * modules/fcntl (Files): List new files.
29914         (configure.ac): Run a test.
29915         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
29916         * lib/fcntl.c (rpl_fcntl): Likewise.
29917         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
29918         (gl_FCNTL_H): Always replace fcntl.h.
29919         * modules/fcntl-h (Makefile.am): Substitute witnesses.
29920         * lib/fcntl.in.h (fcntl): Declare replacement.
29921         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
29922         needed, plus a witness.
29923         * doc/posix-functions/fcntl.texi (fcntl): Document this.
29924         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
29925         * tests/test-fcntl.c: New file.
29926         * modules/fcntl-tests: Likewise.
29927
29928         binary-io: avoid potential compilation warning
29929         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
29930         directives.
29931
29932         fflush: avoid compilation error on NetBSD
29933         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
29934         between off_t and fpos_t, since the latter is sometimes a struct.
29935         * lib/fseeko.c (rpl_fseeko): Likewise.
29936         Reported by Alexander Nasonov <alnsn@yandex.ru>.
29937
29938 2009-12-15  Eric Blake  <ebb9@byu.net>
29939
29940         fcntl-h, stdio, sys_ioctl: fix declarations
29941         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
29942         function must not take arguments.
29943         * lib/sys_ioctl.in.h (ioctl): Likewise.
29944         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
29945         (open): Add a link warning.
29946
29947 2009-12-15  Jim Meyering  <meyering@redhat.com>
29948
29949         areadlink, areadlink-with-size: relax license to LGPLv2+
29950         * modules/areadlink (License): Relax to LGPLv2+.
29951         * modules/areadlink-with-size (License): Likewise.
29952
29953 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
29954             Bruno Haible  <bruno@clisp.org>
29955
29956         *printf: Fix memory leak.
29957         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
29958         * lib/vfprintf.c (vfprintf): Likewise.
29959         * lib/dprintf.c (dprintf): Likewise.
29960         * lib/vdprintf.c (vdprintf): Likewise.
29961
29962 2009-12-14  Eric Blake  <ebb9@byu.net>
29963
29964         accept4: adjust module dependencies
29965         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
29966
29967         utimens: one more try at avoiding compiler warning
29968         * lib/utimens.c (lutimens): Lower scope of result.
29969
29970 2009-12-13  Bruno Haible  <bruno@clisp.org>
29971
29972         Move the malloc checking from module 'list' to new module 'xlist'.
29973         * modules/xlist: New file.
29974         * lib/gl_xlist.h: New file.
29975         * lib/gl_xlist.c: New file.
29976         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
29977         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
29978         gl_list_add_last, gl_list_add_before, gl_list_add_after,
29979         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
29980         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
29981         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
29982         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
29983         gl_sortedlist_nx_add): New declarations.
29984         (struct gl_list_implementation): Rename and change methods accordingly.
29985         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
29986         (gl_list_nx_create): Renamed from gl_list_create.
29987         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
29988         (gl_list_nx_set_at): Renamed from gl_list_set_at.
29989         (gl_list_nx_add_first): Renamed from gl_list_add_first.
29990         (gl_list_nx_add_last): Renamed from gl_list_add_last.
29991         (gl_list_nx_add_before): Renamed from gl_list_add_before.
29992         (gl_list_nx_add_after): Renamed from gl_list_add_after.
29993         (gl_list_nx_add_at): Renamed from gl_list_add_at.
29994         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
29995         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
29996         gl_list_create_empty.
29997         (gl_list_nx_create): Renamed from gl_list_create.
29998         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
29999         (gl_list_nx_set_at): Renamed from gl_list_set_at.
30000         (gl_list_nx_add_first): Renamed from gl_list_add_first.
30001         (gl_list_nx_add_last): Renamed from gl_list_add_last.
30002         (gl_list_nx_add_before): Renamed from gl_list_add_before.
30003         (gl_list_nx_add_after): Renamed from gl_list_add_after.
30004         (gl_list_nx_add_at): Renamed from gl_list_add_at.
30005         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
30006         * lib/gl_array_list.c: Don't include xalloc.h.
30007         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
30008         NULL upon out-of-memory.
30009         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
30010         out-of-memory.
30011         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
30012         Change return type to 'int'.
30013         (gl_array_nx_set_at): Renamed from gl_array_set_at.
30014         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
30015         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
30016         upon out-of-memory.
30017         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
30018         upon out-of-memory.
30019         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
30020         upon out-of-memory.
30021         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
30022         upon out-of-memory.
30023         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
30024         out-of-memory.
30025         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
30026         Update.
30027         (gl_array_list_implementation): Update.
30028         * lib/gl_carray_list.c: Don't include xalloc.h.
30029         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
30030         Return NULL upon out-of-memory.
30031         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
30032         out-of-memory.
30033         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
30034         Change return type to 'int'.
30035         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
30036         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
30037         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
30038         upon out-of-memory.
30039         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
30040         upon out-of-memory.
30041         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
30042         out-of-memory.
30043         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
30044         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
30045         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
30046         Update.
30047         (gl_carray_list_implementation): Update.
30048         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
30049         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
30050         gl_linked_create_empty. Return NULL upon out-of-memory.
30051         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
30052         out-of-memory.
30053         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
30054         Change return type to 'int'. Return -1 upon out-of-memory.
30055         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
30056         out-of-memory.
30057         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
30058         upon out-of-memory.
30059         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
30060         upon out-of-memory.
30061         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
30062         NULL upon out-of-memory.
30063         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
30064         upon out-of-memory.
30065         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
30066         out-of-memory.
30067         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
30068         Update.
30069         * lib/gl_linked_list.c: Don't include xalloc.h.
30070         (gl_linked_list_implementation): Update.
30071         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
30072         (add_to_bucket): Change return type to 'int'.
30073         (gl_linkedhash_list_implementation): Update.
30074         * lib/gl_anytree_list1.h (free_subtree): New function.
30075         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
30076         gl_tree_create_empty. Return NULL upon out-of-memory.
30077         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
30078         Change return type to 'int'. Return -1 upon out-of-memory.
30079         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
30080         out-of-memory.
30081         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
30082         (gl_tree_remove_node): New function, moved here from
30083         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
30084         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
30085         Update.
30086         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
30087         malloc, not xmalloc. Return NULL upon out-of-memory.
30088         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
30089         out-of-memory.
30090         (gl_tree_remove_node_from_tree): New function, extracted from
30091         gl_tree_remove_node.
30092         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
30093         upon out-of-memory.
30094         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
30095         out-of-memory.
30096         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
30097         upon out-of-memory.
30098         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
30099         upon out-of-memory.
30100         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
30101         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
30102         not xmalloc. Return NULL upon out-of-memory.
30103         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
30104         out-of-memory.
30105         (gl_tree_remove_node_from_tree): New function, extracted from
30106         gl_tree_remove_node.
30107         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
30108         upon out-of-memory.
30109         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
30110         out-of-memory.
30111         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
30112         upon out-of-memory.
30113         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
30114         upon out-of-memory.
30115         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
30116         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
30117         gl_anytree_list1.h before gl_anyavltree_list2.h.
30118         (gl_avltree_list_implementation): Update.
30119         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
30120         gl_anytree_list1.h before gl_anyavltree_list2.h.
30121         (gl_rbtree_list_implementation): Update.
30122         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
30123         Change return type to 'int'. Return -1 upon out-of-memory. Use
30124         __builtin_expect.
30125         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
30126         (gl_avltreehash_list_implementation): Update.
30127         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
30128         (gl_rbtreehash_list_implementation): Update.
30129         * modules/array-list (Depends-on): Remove xalloc.
30130         * modules/carray-list (Depends-on): Likewise.
30131         * modules/linked-list (Depends-on): Likewise.
30132         * modules/linkedhash-list (Depends-on): Likewise.
30133         * modules/avltree-list (Depends-on): Likewise.
30134         * modules/rbtree-list (Depends-on): Likewise.
30135         * modules/avltreehash-list (Depends-on): Likewise.
30136         * modules/rbtreehash-list (Depends-on): Likewise.
30137
30138         * modules/xsublist: New file.
30139         * lib/gl_xsublist.h: New file.
30140         * lib/gl_xsublist.c: New file.
30141         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
30142         (gl_sublist_nx_create): New declaration.
30143         * lib/gl_sublist.c: Don't include xalloc.h.
30144         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
30145         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
30146         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
30147         Change return type to 'int'. Return -1 upon out-of-memory.
30148         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
30149         upon out-of-memory.
30150         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
30151         NULL upon out-of-memory.
30152         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
30153         upon out-of-memory.
30154         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
30155         NULL upon out-of-memory.
30156         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
30157         NULL upon out-of-memory.
30158         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
30159         upon out-of-memory.
30160         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
30161         (gl_sublist_list_implementation): Update.
30162         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
30163         upon out-of-memory.
30164         * modules/sublist (Depends-on): Remove xalloc.
30165
30166         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
30167         * tests/test-carray_list.c: Likewise.
30168         * tests/test-linked_list.c: Likewise.
30169         * tests/test-linkedhash_list.c: Likewise.
30170         * tests/test-avltree_list.c: Likewise.
30171         * tests/test-rbtree_list.c: Likewise.
30172         * tests/test-avltreehash_list.c: Likewise.
30173         * tests/test-rbtreehash_list.c: Likewise.
30174         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
30175         * modules/carray-list-tests (Makefile.am): Likewise.
30176         * modules/linked-list-tests (Makefile.am): Likewise.
30177         * modules/linkedhash-list-tests (Makefile.am): Likewise.
30178         * modules/avltree-list-tests (Makefile.am): Likewise.
30179         * modules/rbtree-list-tests (Makefile.am): Likewise.
30180         * modules/avltreehash-list-tests (Makefile.am): Likewise.
30181         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
30182
30183         * NEWS: Mention the changes.
30184
30185         * lib/clean-temp.c: Include gl_xlist.h.
30186         * modules/clean-temp (Depends-on): Add xlist.
30187
30188         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
30189         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
30190
30191         * tests/test-array_oset.c: Include gl_xlist.h.
30192         * modules/array-oset-tests (Depends-on): Add xlist.
30193
30194         Reported by José E. Marchesi <jemarch@gnu.org>.
30195
30196 2009-12-13  Bruno Haible  <bruno@clisp.org>
30197
30198         Move the malloc checking from module 'oset' to new module 'xoset'.
30199         * modules/xoset: New file.
30200         * lib/gl_xoset.h: New file.
30201         * lib/gl_xoset.c: New file.
30202         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
30203         declarations.
30204         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
30205         (struct gl_oset_implementation): Rename and change methods accordingly.
30206         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
30207         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
30208         'int'. Mark as __warn_unused_result__.
30209         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
30210         gl_oset_create_empty.
30211         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
30212         'int'.
30213         * lib/gl_array_oset.c: Don't include xalloc.h.
30214         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
30215         malloc, not xmalloc.
30216         (grow): Change return type to 'int'. Don't call xalloc_die.
30217         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
30218         to 'int'.
30219         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
30220         'int'.
30221         (gl_array_oset_implementation): Update.
30222         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
30223         gl_tree_create_empty.
30224         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
30225         'int'.
30226         * lib/gl_avltree_oset.c: Don't include xalloc.h.
30227         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
30228         xmalloc.
30229         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
30230         not xmalloc.
30231         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
30232         xmalloc.
30233         (gl_avltree_oset_implementation): Update.
30234         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
30235         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
30236         xmalloc.
30237         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
30238         not xmalloc.
30239         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
30240         xmalloc.
30241         (gl_rbtree_oset_implementation): Update.
30242         * modules/array-oset (Depends-on): Remove xalloc.
30243         * modules/avltree-oset (Depends-on): Likewise.
30244         * modules/rbtree-oset (Depends-on): Likewise.
30245         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
30246         * tests/test-avltree_oset.c: Likewise.
30247         * tests/test-rbtree_oset.c: Likewise.
30248         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
30249         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
30250         * modules/rbtree-oset-tests (Makefile.am): Likewise.
30251         * NEWS: Mention the change.
30252
30253 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
30254
30255         maint.mk: allow a project to override release-prep commands
30256         * top/maint.mk (alpha, beta, stable): Move release-preparatory
30257         commands into a new rule.
30258         (release-prep): New rule.
30259         (release-prep-hook): New overridable variable.
30260
30261 2009-12-13  Bruno Haible  <bruno@clisp.org>
30262
30263         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
30264
30265 2009-12-13  Jim Meyering  <meyering@redhat.com>
30266
30267         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
30268         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
30269
30270 2009-12-12  Bruno Haible  <bruno@clisp.org>
30271
30272         duplocale: Tweak.
30273         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
30274
30275 2009-12-12  Karl Berry  <karl@gnu.org>
30276
30277         * config/srclist.txt (strtoll.c): tab changes, no more sync.
30278
30279 2009-12-12  Bruno Haible  <bruno@clisp.org>
30280
30281         * m4/po.m4: Undo incorrect untabification.
30282
30283 2009-12-12  Bruno Haible  <bruno@clisp.org>
30284
30285         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
30286         * modules/c-strtod (Depends-on): Add locale.
30287         * modules/c-strtold (Depends-on): Likewise.
30288
30289 2009-12-12  Bruno Haible  <bruno@clisp.org>
30290
30291         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
30292
30293 2009-12-11  Eric Blake  <ebb9@byu.net>
30294
30295         setenv: relax requirement in light of POSIX ruling
30296         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
30297         not NULL.
30298         * tests/test-setenv.c (main): Relax test.
30299         * tests/test-unsetenv.c (main): Likewise.
30300         * doc/posix-functions/setenv.texi (setenv): Document this.
30301         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
30302
30303 2009-12-11  Bruno Haible  <bruno@clisp.org>
30304
30305         New module 'fd-safer-flag'.
30306         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
30307         * lib/dup-safer.c (dup_safer_flag): Remove function.
30308         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
30309         * lib/fd-safer.c (fd_safer_flag): Remove function.
30310         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
30311         * modules/cloexec (configure.ac): Drop indicator macro.
30312         * modules/fd-safer-flag: New file.
30313         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
30314         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
30315         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
30316
30317 2009-12-11  Bruno Haible  <bruno@clisp.org>
30318
30319         Tests for module 'nl_langinfo'.
30320         * modules/nl_langinfo-tests: New file.
30321         * tests/test-nl_langinfo.sh: New file.
30322         * tests/test-nl_langinfo.c: New file.
30323
30324         New module 'nl_langinfo'.
30325         * lib/nl_langinfo.c: New file.
30326         * m4/nl_langinfo.m4: New file.
30327         * modules/nl_langinfo: New file.
30328         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
30329
30330 2009-12-11  Bruno Haible  <bruno@clisp.org>
30331
30332         Tests for module 'langinfo'.
30333         * modules/langinfo-tests: New file.
30334         * tests/test-langinfo.c: New file.
30335
30336         New module 'langinfo'.
30337         * lib/langinfo.in.h: New file.
30338         * m4/langinfo_h.m4: New file.
30339         * modules/langinfo: New file.
30340         * doc/posix-headers/langinfo.texi: Mention the new module.
30341
30342 2009-12-11  Bruno Haible  <bruno@clisp.org>
30343
30344         * lib/config.charset: Untabify.
30345
30346 2009-12-11  Bruno Haible  <bruno@clisp.org>
30347
30348         * modules/unistd-safer (configure.ac): Drop indicator macro.
30349
30350 2009-12-11  Bruno Haible  <bruno@clisp.org>
30351
30352         Move pipe2-safer code to its own file.
30353         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
30354         * lib/pipe-safer.c (pipe2_safer): Remove function.
30355         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
30356         (Makefile.am): Add it to lib_SOURCES.
30357
30358 2009-12-10  Bruno Haible  <bruno@clisp.org>
30359
30360         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
30361
30362 2009-12-10  Bruno Haible  <bruno@clisp.org>
30363
30364         Declare which arguments expect non-NULL values, for GCC and clang.
30365         * build-aux/arg-nonnull.h: New file.
30366         * modules/arg-nonnull: New file.
30367         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
30368         (inet_ntop, inet_pton): Use it.
30369         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
30370         (closedir, dirfd, opendir, scandir, alphasort): Use it.
30371         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
30372         (open, openat): Use it.
30373         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
30374         (fnmatch): Use it.
30375         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
30376         (getopt, getopt_long, getopt_long_only): Use it.
30377         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
30378         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
30379         Use it.
30380         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
30381         (iconv_open): Use it.
30382         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
30383         (strtoimax, strtoumax): Use it.
30384         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
30385         (duplocale): Use it.
30386         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
30387         (frexp, frexpl): Use it.
30388         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
30389         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
30390         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
30391         (tsearch, tfind, tdelete, twalk): Use it.
30392         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
30393         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
30394         sigpending): Use it.
30395         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
30396         (posix_spawn, posix_spawnp, posix_spawnattr_init,
30397         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
30398         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
30399         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
30400         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
30401         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
30402         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
30403         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
30404         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
30405         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
30406         Use it.
30407         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
30408         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
30409         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
30410         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
30411         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
30412         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
30413         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
30414         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
30415         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
30416         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
30417         strtoull, unsetenv): Use it.
30418         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
30419         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
30420         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
30421         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
30422         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
30423         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
30424         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
30425         (strcasecmp, strncasecmp): Use it.
30426         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
30427         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
30428         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
30429         rpl_setsockopt): Use it.
30430         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
30431         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
30432         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
30433         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
30434         (gettimeofday): Use it.
30435         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
30436         (times): Use it.
30437         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
30438         (uname): Use it.
30439         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
30440         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
30441         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
30442         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
30443         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
30444         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
30445         unlinkat, write): Use it.
30446         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
30447         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
30448         * lib/argv-iter.h: Include arg-nonnull.h.
30449         (_ATTRIBUTE_NONNULL_): Remove macro.
30450         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
30451         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
30452         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
30453         optimization.
30454         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
30455         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
30456         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
30457         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
30458         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
30459         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
30460         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
30461         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
30462         * modules/arpa_inet (Depends-on): Add arg-nonnull.
30463         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
30464         * modules/dirent (Depends-on): Add arg-nonnull.
30465         (Makefile.am): Insert arg-nonnull.h into dirent.h.
30466         * modules/fcntl-h (Depends-on): Add arg-nonnull.
30467         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
30468         * modules/fnmatch (Depends-on): Add arg-nonnull.
30469         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
30470         * modules/getopt-posix (Depends-on): Add arg-nonnull.
30471         (Makefile.am): Insert arg-nonnull.h into getopt.h.
30472         * modules/glob (Depends-on): Add arg-nonnull.
30473         (Makefile.am): Insert arg-nonnull.h into glob.h.
30474         * modules/iconv_open (Depends-on): Add arg-nonnull.
30475         (Makefile.am): Insert arg-nonnull.h into iconv.h.
30476         * modules/inttypes (Depends-on): Add arg-nonnull.
30477         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
30478         * modules/locale (Depends-on): Add arg-nonnull.
30479         (Makefile.am): Insert arg-nonnull.h into locale.h.
30480         * modules/math (Depends-on): Add arg-nonnull.
30481         (Makefile.am): Insert arg-nonnull.h into math.h.
30482         * modules/netdb (Depends-on): Add arg-nonnull.
30483         (Makefile.am): Insert arg-nonnull.h into netdb.h.
30484         * modules/search (Depends-on): Add arg-nonnull.
30485         (Makefile.am): Insert arg-nonnull.h into search.h.
30486         * modules/signal (Depends-on): Add arg-nonnull.
30487         (Makefile.am): Insert arg-nonnull.h into signal.h.
30488         * modules/spawn (Depends-on): Add arg-nonnull.
30489         (Makefile.am): Insert arg-nonnull.h into spawn.h.
30490         * modules/stdio (Depends-on): Add arg-nonnull.
30491         (Makefile.am): Insert arg-nonnull.h into stdio.h.
30492         * modules/stdlib (Depends-on): Add arg-nonnull.
30493         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
30494         * modules/string (Depends-on): Add arg-nonnull.
30495         (Makefile.am): Insert arg-nonnull.h into string.h.
30496         * modules/strings (Depends-on): Add arg-nonnull.
30497         (Makefile.am): Insert arg-nonnull.h into strings.h.
30498         * modules/sys_socket (Depends-on): Add arg-nonnull.
30499         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
30500         * modules/sys_stat (Depends-on): Add arg-nonnull.
30501         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
30502         * modules/sys_time (Depends-on): Add arg-nonnull.
30503         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
30504         * modules/sys_times (Depends-on): Add arg-nonnull.
30505         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
30506         * modules/sys_utsname (Depends-on): Add arg-nonnull.
30507         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
30508         * modules/time (Depends-on): Add arg-nonnull.
30509         (Makefile.am): Insert arg-nonnull.h into time.h.
30510         * modules/unistd (Depends-on): Add arg-nonnull.
30511         (Makefile.am): Insert arg-nonnull.h into unistd.h.
30512         * modules/wchar (Depends-on): Add arg-nonnull.
30513         (Makefile.am): Insert arg-nonnull.h into wchar.h.
30514         * modules/argv-iter (Depends-on): Add arg-nonnull.
30515         * tests/test-canonicalize.c (null_ptr): New function.
30516         (main): Use it.
30517         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
30518         (main): Use it.
30519         * tests/test-memmem.c (null_ptr): New function.
30520         (main): Use it.
30521         Reported by Jim Meyering.
30522
30523 2009-12-10  Bruno Haible  <bruno@clisp.org>
30524
30525         Use spaces for indentation, not tabs.
30526         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
30527         * m4/*.m4: Untabify.
30528         * build-aux/*.h: Untabify.
30529         * tests/**/*.[hc]: Untabify.
30530         * README: New section "Indent with spaces, not TABs", based on
30531         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
30532         * NEWS: Mention the change.
30533
30534 2009-12-10  Bruno Haible  <bruno@clisp.org>
30535
30536         pty test: Fix link error.
30537         * modules/pty-tests (Makefile.am): Add the default LDADD value to
30538         test_pty_LDADD.
30539
30540 2009-12-07  Simon Josefsson  <simon@josefsson.org>
30541
30542         * modules/pty: New file.
30543         * modules/pty-tests: New file.
30544         * m4/pty.m4: New file.
30545         * tests/test-pty.c: New file.
30546         * doc/glibc-headers/pty.texi: Modified.
30547         * doc/glibc-functions/forkpty.texi: Modified.
30548         * doc/glibc-functions/openpty.texi: Modified.
30549
30550 2009-12-10  Bruno Haible  <bruno@clisp.org>
30551
30552         Avoid syntax error in C++ mode.
30553         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
30554
30555 2009-12-10  Bruno Haible  <bruno@clisp.org>
30556
30557         Use sed with option -e.
30558         * gnulib-tool (func_version, func_emit_copyright_notice,
30559         func_emit_initmacro_end, func_import, func_create_testdir): Pass
30560         option -e to sed.
30561         * modules/link-warning (Makefile.am): Likewise.
30562
30563 2009-12-10  Jim Meyering  <meyering@redhat.com>
30564
30565         mgetgroups: do not write bytes beyond end of malloc'd buffer
30566         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
30567         username, we call getgroups with a one-element-shorter buffer,
30568         but still told it the length was original, max_n_groups.
30569
30570 2009-12-09  Eric Blake  <ebb9@byu.net>
30571
30572         cloexec: relax license
30573         * modules/cloexec (Maintainer): Add myself.
30574         (License): Use LGPL, not GPL.
30575
30576         link-warning: optimize generation
30577         * modules/link-warning (Makefile.am): Reduce process usage.
30578
30579 2009-12-09  Bruno Haible  <bruno@clisp.org>
30580
30581         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
30582         workaround was added on 2009-11-17.
30583
30584 2009-12-09  Jim Meyering  <meyering@redhat.com>
30585             Bruno Haible  <bruno@clisp.org>
30586
30587         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
30588         * modules/link-warning (Makefile.am): Make the comment-removing sed
30589         command more robust in the face of bootstrap-prepended comment lines.
30590
30591 2009-12-09  Bruno Haible  <bruno@clisp.org>
30592
30593         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
30594         most one group.
30595
30596 2009-12-09  Simon Josefsson <simon@josefsson.org>
30597             Bruno Haible  <bruno@clisp.org>
30598
30599         * build-aux/link-warning.h: Add copyright notice.
30600         * modules/link-warning (Makefile.am): Generate link-warning.h from
30601         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
30602         * NEWS: Mention change in link-warning module.
30603         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
30604         * modules/dirent (Makefile.am): Add dependency to dirent.h.
30605         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
30606         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
30607         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
30608         * modules/math (Makefile.am): Add dependency to math.h.
30609         * modules/search (Makefile.am): Add dependency to search.h.
30610         * modules/signal (Makefile.am): Add dependency to signal.h.
30611         * modules/spawn (Makefile.am): Add dependency to spawn.h.
30612         * modules/stdio (Makefile.am): Add dependency to stdio.h.
30613         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
30614         * modules/string (Makefile.am): Add dependency to string.h.
30615         * modules/strings (Makefile.am): Add dependency to strings.h.
30616         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
30617         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
30618         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
30619         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
30620         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
30621         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
30622         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
30623         * modules/unistd (Makefile.am): Add dependency to unistd.h.
30624         * modules/wchar (Makefile.am): Add dependency to wchar.h.
30625
30626 2009-12-09  Bruno Haible  <bruno@clisp.org>
30627
30628         fchdir: Optimize away rpl_fstat when possible.
30629         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
30630         REPLACE_OPEN_DIRECTORY.
30631         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
30632
30633 2009-12-09  Bruno Haible  <bruno@clisp.org>
30634
30635         * lib/fchdir.c: Update comment.
30636
30637 2009-12-09  Bruno Haible  <bruno@clisp.org>
30638
30639         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
30640
30641 2009-12-08  Eric Blake  <ebb9@byu.net>
30642
30643         fchdir: avoid memory leak on re-registration.
30644         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
30645
30646 2009-12-08  Jim Meyering  <meyering@redhat.com>
30647
30648         init.sh: avoid Solaris 10 /bin/sh portability problem
30649         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
30650         sourced script:
30651           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
30652           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
30653           bar
30654         tests/init.sh relied on that, accepting a --set-path=DIR argument,
30655         and two tests used that idiom.
30656         * tests/init.sh: Update suggested usage comments.
30657         (path_prepend_): New function, to be used in place
30658         of the --src-path=DIR option.
30659         (setup_): Move PATH-prepending code into path_prepend_.
30660         * tests/test-pread.sh: Adapt to new usage.
30661         * tests/test-xalloc-die.sh: Likewise.
30662
30663 2009-12-08  Simon Josefsson  <simon@josefsson.org>
30664
30665         * doc/gnulib.texi (Glibc pty.h): Add.
30666         * doc/glibc-functions/forkpty.texi: Add.
30667         * doc/glibc-functions/openpty.texi: Add.
30668         Suggested by Bruno Haible.
30669
30670 2009-12-08  Eric Blake  <ebb9@byu.net>
30671
30672         fchdir: fix logic bugs
30673         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
30674         * tests/test-fchdir.c (main): Enhance test.
30675         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
30676         is in use.
30677
30678         dup2: fix logic bugs
30679         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
30680         REPLACE_DUP2 to decide when rpl_dup2 is needed.
30681         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
30682         exists.
30683         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
30684
30685 2009-12-07  Eric Blake  <ebb9@byu.net>
30686
30687         unlink: fix m4 detection
30688         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
30689
30690         unistd-safer: add unit test
30691         * modules/unistd-safer-tests: New file.
30692         * tests/test-dup-safer.c: Likewise.
30693         * tests/test-cloexec.c (setmode): Avoid compiler warning.
30694         * tests/test-dup2.c (setmode): Likewise.
30695         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
30696
30697         cloexec: preserve text vs. binary across dup_cloexec
30698         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
30699         mode.
30700         * modules/dup2-tests (Depends-on): Add binary-io.
30701         * modules/cloexec-tests (Depends-on): Likewise.
30702         * tests/test-dup2.c (setmode, is_mode): New helpers.
30703         (main): Add tests that translation mode is preserved.
30704         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
30705         Reported by Bruno Haible.
30706
30707         mgetgroups: reduce duplicate listings
30708         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
30709         resulting array.
30710         * tests/test-chown.h (test_chown): Simplify client.
30711         * tests/test-lchown.h (test_lchown): Likewise.
30712
30713 2009-12-06  Bruno Haible  <bruno@clisp.org>
30714
30715         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
30716         value.
30717
30718 2009-12-06  Bruno Haible  <bruno@clisp.org>
30719
30720         * lib/progname.c: Include stdio.h, stdlib.h.
30721         (set_program_name): Reject a NULL argument.
30722
30723 2009-12-05  Eric Blake  <ebb9@byu.net>
30724
30725         pipe2-safer: new module
30726         * modules/pipe2-safer: New file.
30727         * lib/unistd-safer.h (pipe2_safer): New prototype.
30728         * lib/unistd--.h (pipe2): New wrapper.
30729         * lib/pipe-safer.c (pipe2_safer): New function.
30730         * modules/pipe (Depends-on): Add pipe2-safer.
30731         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
30732
30733         stdlib-safer: preserve cloexec flag for mkostemp[s]
30734         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
30735         fd_safer_flag.
30736
30737         unistd-safer: allow preservation of cloexec status via flag
30738         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
30739         prototypes.
30740         * lib/dup-safer.c (dup_safer_flag): New function.
30741         * lib/fd-safer.c (fd_safer_flag): Likewise.
30742         * modules/cloexec (configure.ac): Set witness.
30743
30744         test-dup2: enhance test
30745         * modules/dup2-tests (Depends-on): Add cloexec.
30746         * tests/test-dup2.c (main): Enhance test.
30747
30748         cloexec: add dup_cloexec
30749         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
30750         header and comments.
30751         * lib/cloexec.c (set_cloexec_flag): Add comments.
30752         (dup_cloexec): New function, with mingw implementation borrowed
30753         from...
30754         * lib/w32spawn.h (dup_noinherit): ...here.
30755         * modules/execute (Depends-on): Add cloexec.
30756         * modules/pipe (Depends-on): Likewise.
30757         * modules/cloexec (Depends-on): Add dup2.
30758         * modules/cloexec-tests (Files): New file.
30759         * tests/test-cloexec.c: Likewise.
30760
30761         test-xalloc-die: fix test for mingw
30762         * modules/xalloc-die-tests (Files): Add tests/init.sh.
30763         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
30764         directory and .exe suffix off argv[0] output.
30765
30766         test-fseeko: fix test for mingw
30767         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
30768         than undefining fseek, so test will pass on mingw.
30769
30770 2009-12-05  Bruno Haible  <bruno@clisp.org>
30771
30772         * lib/progname.h (set_program_name): Clarify specification.
30773         * lib/progname.c (set_program_name): Likewise.
30774         Reported by Jim Meyering.
30775
30776 2009-12-05  Jim Meyering  <meyering@redhat.com>
30777
30778         maint.mk: backslash-escape parens in default regexp
30779         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
30780         backslash-escape the literal parentheses.
30781
30782         maint.mk: news-date-check: use grep -E
30783         * top/maint.mk (today): Define a Make variable, not a...
30784         (news-date-check): ...shell variable.
30785         (news-date-regexp): Use the Make variable.
30786         Use grep's -E option.  Change the failing diagnostic to mention
30787         the variable, $(news-date-regexp).
30788
30789 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
30790
30791         maintainer-makefile: allow customization of NEWS entry format
30792         * top/maint.mk (news-date-regexp): New overridable variable.
30793         (news-date-check): Use it.
30794
30795 2009-12-04  Eric Blake  <ebb9@byu.net>
30796
30797         mgetgroups: add xgetgroups, and avoid ENOSYS failures
30798         * lib/mgetgroups.h (xgetgroups): New prototype.
30799         * lib/mgetgroups.c (xgetgroups): New wrapper.
30800         (mgetgroups): Handle ENOSYS.
30801         * modules/mgetgroups (Depends-on): Add realloc.
30802         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
30803
30804         mgetgroups: avoid argument promotion issues with -1
30805         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
30806         for invalid gid_t.
30807         * tests/test-chown.h (getegid, test_chown): Likewise.
30808         * tests/test-lchown.h (getegid, test_lchown): Likewise.
30809
30810 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
30811
30812         exclude: Fix header file problems.
30813         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
30814
30815 2009-12-01  Jim Meyering  <meyering@redhat.com>
30816
30817         fts: fts_open: do not let an empty string cause immediate failure
30818         This is required in support of GNU rm, for which the command
30819         "rm A '' B" must process and remove both A and B, in spite of
30820         the empty string argument.
30821         * lib/fts.c (fts_open): Do not let the presence of an empty string
30822         cause fts_open to fail immediately.  Most fts-using tools must be
30823         able to process all arguments, in order, and can be expected to
30824         diagnose such arguments themselves.
30825
30826 2009-11-30  Eric Blake  <ebb9@byu.net>
30827
30828         utimens: fix compilation error
30829         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
30830         Declare variable at right scope.
30831
30832 2009-11-29  Jim Meyering  <meyering@redhat.com>
30833
30834         bootstrap: handle perl-5.11's changed --version output
30835         * build-aux/bootstrap (get_version): Handle perl separately,
30836         since perl-5.11's --version output is different.
30837
30838 2009-11-28  Jim Meyering  <meyering@redhat.com>
30839
30840         userspec: depend on the inttostr module, too
30841         * modules/userspec (Depends-on): Add inttostr.
30842
30843         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
30844         * lib/userspec.c (parse_with_separator): Do not accept a user ID
30845         number of MAXUID when it evaluates to (uid_t) -1.
30846         Likewise for group ID.  Reported by Matt McCutchen in
30847         <http://savannah.gnu.org/bugs/?28113>
30848
30849         userspec: reformat to use spaces, not TABs
30850         * lib/userspec.c: Expand TABs to spaces.
30851         Add Emacs' "indent-tabs-mode: nil" hint.
30852
30853 2009-11-27  Eric Blake  <ebb9@byu.net>
30854
30855         getopt-gnu: flush out another BSD bug
30856         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
30857         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
30858         flush out BSD bug.
30859         * tests/test-getopt.h (test_getopt): End lists with NULL.
30860         * tests/test-getopt_long.h (test_getopt_long): Likewise.
30861         (test_getopt_long_posix): Enhance test.
30862         * modules/getopt-posix-tests (Depends-on): Add stdbool.
30863         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
30864         getopt-gnu.
30865         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30866         Likewise.
30867
30868 2009-11-27  Simon Josefsson  <simon@josefsson.org>
30869
30870         * modules/idpriv-droptemp-tests (Notice): Fix text.
30871
30872 2009-11-27  Jim Meyering  <meyering@redhat.com>
30873
30874         test-xalloc-die: avoid spurious failure due to libtool argv difference
30875         In a libtool-enabled project, this test would fail due to a difference
30876         in the emitted program name, e.g.,
30877         -test-xalloc-die: memory exhausted
30878         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
30879         Use program to avoid that.
30880         * modules/xalloc-die-tests (Depends-on): Add progname.
30881         * tests/test-xalloc-die.c: Include progname.h".
30882         (program_name): Remove decl.
30883         (main): Call set_program_name.
30884         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
30885
30886 2009-11-26  Richard Jones  <rjones@redhat.com>
30887
30888         w32sock: leave win32 error in place.
30889         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
30890
30891 2009-11-26  Eric Blake  <ebb9@byu.net>
30892
30893         init.sh: suggest to use skip_ and fail_ functions in comments
30894         * tests/init.sh: Add a sentence.
30895
30896 2009-11-25  Bruno Haible  <bruno@clisp.org>
30897
30898         init.sh: add documentation in comments
30899         * tests/init.sh: Add some developer and user documentation.
30900
30901 2009-11-26  Jim Meyering  <meyering@redhat.com>
30902
30903         init.sh: accommodate even those who specify bogus srcdir manually
30904         * tests/init.sh: Normally, srcdir is guaranteed by automake and
30905         configure-time tests to be sanitized, so that there is no need to
30906         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
30907         (with no double quotes) suffices.  However, since tests may be
30908         invoked manually, and since you may explicitly set srcdir to the
30909         name of a directory containing spaces, do quote its uses here.
30910         * tests/test-pread.sh: Likewise.
30911         Suggested by Bruno Haible.
30912
30913         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
30914         * tests/test-pread.sh: Write no data into the pipe, because
30915         test-pread actually reads none.  This avoids a diagnostic,
30916         "bash: echo: write error: Broken pipe", that arises in the unusual
30917         event something is ignoring SIGPIPE, and might be interpreted
30918         as some sort of failure.  Reported by Bruno Haible.
30919
30920 2009-11-25  Jim Meyering  <meyering@redhat.com>
30921
30922         test-pread: cover failure with ESPIPE and EINVAL
30923         * tests/test-pread.c (main): Test for failure, too.
30924         * tests/test-pread.sh: Invoke with stdin on a pipe.
30925         Suggested by Eric Blake.
30926
30927         pread: improvement and fix
30928         * modules/pread (Depends-on): Depend on lseek, for portability to
30929         e.g., mingw.  Suggested by Eric Blake.
30930         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
30931
30932         unistd.in.h: correct declaration of pread
30933         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
30934         Reported by Richard W.M. Jones.
30935
30936         test-pread.sh: distribute the test script
30937         * modules/pread-tests (Files): Include test-pread.sh.
30938
30939         test-pread.sh: clean up
30940         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
30941         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
30942         That is unnecessary, since it's always ".".
30943         Suggestion from Eric Blake.
30944
30945         test-pread.sh: make executable
30946         * tests/test-pread.sh: Set executable bit.
30947         Reported by Eric Blake.
30948
30949         correct typo in test-pread.sh
30950         * tests/test-pread.sh: Add #! line.
30951
30952         test pread
30953         * tests/test-pread.c: New file.
30954         * tests/test-pread.sh: Likewise.
30955         * modules/pread-tests: Likewise.
30956
30957         pread: new module
30958         * modules/pread: New file.
30959         * lib/unistd.in.h (pread): Define/declare.
30960         * lib/pread.c (pread): New file.
30961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
30962         * modules/unistd (Makefile.am): Substitute witnesses.
30963         * doc/posix-functions/pread.texi (pread): Update.
30964         * MODULES.html.sh: Add pread.
30965
30966 2009-11-25  Jim Meyering  <meyering@redhat.com>
30967
30968         tests/init.sh: new file to be used via most *.sh tests
30969         * tests/init.sh: New file.
30970
30971 2009-11-25  Eric Blake  <ebb9@byu.net>
30972
30973         utimens: work around older Linux failure with symlinks
30974         * lib/utimens.c (lutimensat_works_really): New variable.
30975         (fdutimens, lutimens): Use it to manage kernels that support
30976         nanosecond times on files, but not on symlinks.
30977         Reported by OndÅ™ej Vašík.
30978
30979         utimes: fix configure grammar
30980         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
30981
30982 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
30983
30984         regex: Fix fastmap for multibyte character ranges.
30985         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
30986         characters when a multibyte character range is included.
30987
30988 2009-11-22  Andy Wingo  <wingo@pobox.com>
30989
30990         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
30991         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
30992
30993 2009-11-24  Bruno Haible  <bruno@clisp.org>
30994
30995         doc: Most *_l functions exist in MacOS X 10.5.
30996         * doc/posix-functions/duplocale.texi: Update platforms list.
30997         * doc/posix-functions/freelocale.texi: Likewise.
30998         * doc/posix-functions/newlocale.texi: Likewise.
30999         * doc/posix-functions/uselocale.texi: Likewise.
31000         * doc/posix-functions/isalnum_l.texi: Likewise.
31001         * doc/posix-functions/isalpha_l.texi: Likewise.
31002         * doc/posix-functions/isblank_l.texi: Likewise.
31003         * doc/posix-functions/iscntrl_l.texi: Likewise.
31004         * doc/posix-functions/isdigit_l.texi: Likewise.
31005         * doc/posix-functions/isgraph_l.texi: Likewise.
31006         * doc/posix-functions/islower_l.texi: Likewise.
31007         * doc/posix-functions/isprint_l.texi: Likewise.
31008         * doc/posix-functions/ispunct_l.texi: Likewise.
31009         * doc/posix-functions/isspace_l.texi: Likewise.
31010         * doc/posix-functions/isupper_l.texi: Likewise.
31011         * doc/posix-functions/iswalnum_l.texi: Likewise.
31012         * doc/posix-functions/iswalpha_l.texi: Likewise.
31013         * doc/posix-functions/iswblank_l.texi: Likewise.
31014         * doc/posix-functions/iswcntrl_l.texi: Likewise.
31015         * doc/posix-functions/iswctype_l.texi: Likewise.
31016         * doc/posix-functions/iswdigit_l.texi: Likewise.
31017         * doc/posix-functions/iswgraph_l.texi: Likewise.
31018         * doc/posix-functions/iswlower_l.texi: Likewise.
31019         * doc/posix-functions/iswprint_l.texi: Likewise.
31020         * doc/posix-functions/iswpunct_l.texi: Likewise.
31021         * doc/posix-functions/iswspace_l.texi: Likewise.
31022         * doc/posix-functions/iswupper_l.texi: Likewise.
31023         * doc/posix-functions/iswxdigit_l.texi: Likewise.
31024         * doc/posix-functions/isxdigit_l.texi: Likewise.
31025         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
31026         * doc/posix-functions/strcasecmp_l.texi: Likewise.
31027         * doc/posix-functions/strcoll_l.texi: Likewise.
31028         * doc/posix-functions/strfmon_l.texi: Likewise.
31029         * doc/posix-functions/strftime_l.texi: Likewise.
31030         * doc/posix-functions/strncasecmp_l.texi: Likewise.
31031         * doc/posix-functions/strxfrm_l.texi: Likewise.
31032         * doc/posix-functions/tolower_l.texi: Likewise.
31033         * doc/posix-functions/toupper_l.texi: Likewise.
31034         * doc/posix-functions/towctrans_l.texi: Likewise.
31035         * doc/posix-functions/towlower_l.texi: Likewise.
31036         * doc/posix-functions/towupper_l.texi: Likewise.
31037         * doc/posix-functions/wcscoll_l.texi: Likewise.
31038         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
31039         * doc/posix-functions/wctrans_l.texi: Likewise.
31040         * doc/posix-functions/wctype_l.texi: Likewise.
31041         * doc/glibc-functions/strptime_l.texi: Likewise.
31042         * doc/glibc-functions/strtod_l.texi: Likewise.
31043         * doc/glibc-functions/strtof_l.texi: Likewise.
31044         * doc/glibc-functions/strtol_l.texi: Likewise.
31045         * doc/glibc-functions/strtold_l.texi: Likewise.
31046         * doc/glibc-functions/strtoll_l.texi: Likewise.
31047         * doc/glibc-functions/strtoul_l.texi: Likewise.
31048         * doc/glibc-functions/strtoull_l.texi: Likewise.
31049         * doc/glibc-functions/wcsftime_l.texi: Likewise.
31050         * doc/glibc-functions/wcstod_l.texi: Likewise.
31051         * doc/glibc-functions/wcstof_l.texi: Likewise.
31052         * doc/glibc-functions/wcstol_l.texi: Likewise.
31053         * doc/glibc-functions/wcstold_l.texi: Likewise.
31054         * doc/glibc-functions/wcstoll_l.texi: Likewise.
31055         * doc/glibc-functions/wcstoul_l.texi: Likewise.
31056         * doc/glibc-functions/wcstoull_l.texi: Likewise.
31057
31058 2009-11-24  Bruno Haible  <bruno@clisp.org>
31059
31060         duplocale: Fix logic bug.
31061         * lib/duplocale.c: Don't include <langinfo.h>.
31062         (_NL_LOCALE_NAME): Remove macro.
31063         (rpl_duplocale): Use setlocale instead of nl_langinfo.
31064         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
31065
31066 2009-11-23  Jim Meyering  <meyering@redhat.com>
31067
31068         test-update-copyright: don't hard-code /usr/bin/perl
31069         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
31070         perl to print the current year.  Gilles Espinasse reported that
31071         the replaced use of perl was hard-coded as /usr/bin/perl.
31072
31073 2009-11-23  Bruno Haible  <bruno@clisp.org>
31074
31075         duplocale: Add support for glibc 2.3.x.
31076         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
31077
31078 2009-11-22  Bruno Haible  <bruno@clisp.org>
31079
31080         vasnprintf: Tiny optimization.
31081         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
31082         MacOS X.
31083
31084 2009-11-22  Bruno Haible  <bruno@clisp.org>
31085
31086         Tests for module 'duplocale'.
31087         * modules/duplocale-tests: New file.
31088         * tests/test-duplocale.c: New file.
31089
31090         New module 'duplocale'.
31091         * m4/duplocale.m4: New file.
31092         * lib/locale.in.h (duplocale): New declaration.
31093         * lib/duplocale.c: New file.
31094         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
31095         gl_LOCALE_H_DEFAULTS): New macros.
31096         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
31097         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
31098         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
31099         REPLACE_DUPLOCALE.
31100         * modules/duplocale: New file.
31101         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
31102
31103 2009-11-22  Bruno Haible  <bruno@clisp.org>
31104
31105         * modules/locale-tests (configure.ac): Test for newlocale function.
31106         * tests/test-locale.c: When the system has extended locale functions,
31107         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
31108
31109         locale: Make locale_t available when possible.
31110         * lib/locale.in.h: Include <xlocale.h> when it exists.
31111         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
31112         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
31113         * modules/locale (Depends-on): Add extensions.
31114         (Makefile.am): Also substitute HAVE_XLOCALE_H.
31115         * doc/posix-headers/locale.texi: Document the problem with locale_t.
31116
31117 2009-11-22  Bruno Haible  <bruno@clisp.org>
31118
31119         Add comments.
31120         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
31121         invocation.
31122         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
31123         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
31124         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31125
31126 2009-11-22  Bruno Haible  <bruno@clisp.org>
31127
31128         error: account for the possibility of freopen (stdout).
31129         * lib/error.c: Include <unistd.h>.
31130         (flush_stdout): New function, extracted from error and error_at_line.
31131         Determine stdout's fd dynamically.
31132         (error, error_at_line): Invoke flush_stdout.
31133         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
31134         * modules/error (Depends-on): Add unistd.
31135
31136 2009-11-22  Bruno Haible  <bruno@clisp.org>
31137
31138         diffseq: Add comment.
31139         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
31140
31141 2009-11-22  Jim Meyering  <meyering@redhat.com>
31142
31143         c-stack: avoid defining an unused static function
31144         * lib/c-stack.c (find_stack_direction): Do not define this function
31145         when it will not be used.
31146
31147         diffseq: avoid spurious gcc warnings
31148         * lib/diffseq.h (IF_LINT2): Define.
31149         (compareseq): Use it to initialize two members of "part".
31150         This avoids two used-uninitialized warnings.
31151
31152 2009-11-21  Jim Meyering  <meyering@redhat.com>
31153
31154         c-stack: avoid "ignoring return value of `write'" warning
31155         * lib/c-stack.c: Include "ignore-value.h".
31156         (die): Explicitly ignore each write return value.
31157         * modules/c-stack (Depends-on): Add ignore-value.
31158
31159 2009-11-21  Bruno Haible  <bruno@clisp.org>
31160
31161         diffseq: reduce scope of variable 'best'.
31162         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
31163         variable, earlier used for two different purposes.
31164
31165 2009-11-21  Jim Meyering  <meyering@redhat.com>
31166
31167         diffseq: remove useless assignment to "best"
31168         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
31169         assignment.  At that point "best" is already guaranteed to be zero.
31170
31171 2009-11-20  Eric Blake  <ebb9@byu.net>
31172
31173         build: mention ftp redirector in release announcements
31174         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
31175         values that used to come from cfg.mk; mention FTP redirect URL.
31176         * build-aux/announce-gen: Mention the mirror list.
31177         Suggested by Karl Berry.
31178
31179         nanosleep: improve port to mingw
31180         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
31181         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
31182         LIB_NANOSLEEP, but only when needed.
31183         * modules/select (Link): Document LIBSOCKET.
31184         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
31185         enough.
31186
31187         nanosleep: work around cygwin bug
31188         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
31189         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
31190         bug.
31191         (getnow): Delete, not needed.
31192         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
31193         LIB_CLOCK_GETTIME.
31194         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
31195         clock-time, gettime.
31196         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
31197         bug.
31198         * modules/nanosleep-tests: New test.
31199         * tests/test-nanosleep.c: New file.
31200
31201         sleep: work around cygwin bug
31202         * lib/sleep.c (rpl_sleep): Work around the bug.
31203         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
31204         (gl_PREREQ_SLEEP): Delete unused macro.
31205         * modules/sleep (Depends-on): Add verify.
31206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
31207         * modules/unistd (Makefile.am): Substitute witness.
31208         * lib/unistd.in.h (sleep): Update prototype.
31209         * doc/posix-functions/sleep.texi (sleep): Document the bug.
31210         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
31211         * modules/sleep-tests (Depends-on): Check for alarm.
31212
31213 2009-11-20  Jim Meyering  <meyering@redhat.com>
31214
31215         maint.mk: improve sc_prohibit_magic_number_exit
31216         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
31217         so it does not match uses like System.exit(1).
31218         Add comments showing how to correct all offenders.
31219
31220 2009-11-19  Eric Blake  <ebb9@byu.net>
31221
31222         xalloc-die-tests: add missing library
31223         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
31224
31225         test-xvasprintf: silence compiler warnings
31226         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
31227         empty string from gcc.
31228
31229 2009-11-19  Jim Meyering  <meyering@redhat.com>
31230
31231         xfreopen: new module, from coreutils
31232         * modules/xfreopen: New module.
31233         * lib/xfreopen.c: New file.
31234         * lib/xfreopen.h: New file.
31235         * MODULES.html.sh (File stream based Input/Output"): Add it.
31236
31237 2009-11-19  Eric Blake  <ebb9@byu.net>
31238
31239         manywarnings: depend on warnings
31240         * modules/manywarnings (Depends-on): Add warnings.
31241
31242         build: avoid compiler warnings
31243         * lib/select.c (rpl_select): Delete unused variable.
31244         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
31245
31246 2009-11-18  Eric Blake  <ebb9@byu.net>
31247
31248         tests: avoid false negative with --with-packager
31249         * tests/test-version-etc.sh: Discard packager information.
31250         * tests/test-argp-version-etc-1.sh: Likewise.
31251         Reported by Mike Frysinger.
31252
31253         utimens: fix regression on Solaris
31254         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
31255         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
31256         can only change fd timestamps via futimesat.  Instead, use an
31257         additional witness macro to avoid BSD bug.
31258         Reported by Jim Meyering.
31259
31260 2009-11-17  Eric Blake  <ebb9@byu.net>
31261
31262         usleep: use it to simplify tests
31263         * modules/stat-time-tests (Depends-on): Add usleep.
31264         (configure.ac): Drop usleep check.
31265         * modules/chown-tests (Depends-on, configure.ac): Likewise.
31266         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
31267         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
31268         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
31269         * modules/openat-tests (Depends-on, configure.ac): Likewise.
31270         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
31271         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
31272         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
31273         Likewise.
31274         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
31275         * tests/test-lchown.h (nap): Likewise.
31276         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
31277         * tests/test-stat-time.c (nap): Likewise.
31278         * tests/test-utimens-common.h (nap): Update comments.
31279
31280         usleep: new module
31281         * modules/usleep: New file.
31282         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
31283         * lib/usleep.c (usleep): Likewise.
31284         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31285         * modules/unistd (Makefile.am): Substitute witnesses.
31286         * lib/unistd.in.h (usleep): Add declaration.
31287         * doc/pastposix-functions/usleep.texi (usleep): Document this.
31288         * MODULES.html.sh (Date and time): Likewise.
31289         * modules/usleep-tests (Depends-on): New test.
31290         * tests/test-usleep.c: New file.
31291
31292         chown: work around OpenBSD bug
31293         * lib/chown.c (rpl_chown): Work around the bug.
31294         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
31295         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
31296         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
31297         * modules/chown (Depends-on): Add stdbool.
31298         * modules/lchown (Depends-on): Likewise.
31299         * doc/posix-functions/chown.texi (chown): Document the bug.
31300         * doc/posix-functions/lchown.texi (lchown): Likewise.
31301         * tests/test-lchown.h (test_chown): Relax test.
31302
31303         mkstemp: avoid conflict with C++ keyword template
31304         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
31305         * lib/mkostemp.c (mkostemp): Likewise.
31306         * lib/mkostemps.c (mkostemps): Likewise.
31307         * lib/mkstemp.c (mkstemp): Likewise.
31308         * lib/mkstemps.c (mkstemps): Likewise.
31309
31310         xalloc-die-tests: optimize
31311         * tests/test-xalloc-die.sh: Reduce number of processes.
31312
31313 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31314
31315         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
31316         patch from ludo@gnu.org (Ludovic Courtès).
31317
31318 2009-11-17  Jim Meyering  <meyering@redhat.com>
31319
31320         version-etc: use proper license string
31321         * modules/version-etc (License): Use LGPL, not LGPLv3+.
31322         * modules/version-etc-fsf: Likewise.
31323
31324 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31325
31326         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
31327         printed to stdout.  Deal with EOL differences.
31328
31329 2009-11-17  Eric Blake  <ebb9@byu.net>
31330
31331         unsetenv: work around Solaris bug
31332         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
31333         * lib/unsetenv.c (rpl_unsetenv): Work around it.
31334         Reported by Jim Meyering.
31335
31336         vasnprintf: avoid compiler warnings
31337         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
31338         variables.
31339         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
31340
31341 2009-11-17  Simon Josefsson  <simon@josefsson.org>
31342
31343         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
31344         settings since xalloc-die is no longer the self test,
31345         xalloc-die.sh is.
31346
31347 2009-11-17  Jim Meyering  <meyering@redhat.com>
31348
31349         test-xalloc-die.sh: make the code agree with the commit log
31350         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
31351         at the end, just in case you happen to have a test-xalloc-die
31352         program in some other PATH directory.
31353
31354         test-xalloc-die.sh: fix a portability bug
31355         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
31356         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
31357         Otherwise, argv[0] (as often seen in diagnostics) would be too
31358         system-dependent, sometimes with, and sometimes without the leading "./".
31359
31360         version-etc-fsf: relax license to LGPLv3+
31361         * modules/version-etc-fsf (License): Relax license.
31362
31363 2009-11-16  Eric Blake  <ebb9@byu.net>
31364
31365         xalloc-die-tests: avoid printing null pointer
31366         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
31367         shell script.
31368         * tests/test-xalloc-die.c (program_name): Declare.
31369         * tests/test-xalloc-die.sh (tmpfiles): New file.
31370
31371         setenv, unsetenv: work around various bugs
31372         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
31373         (setenv) [HAVE_SETENV]: Work around bugs.
31374         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
31375         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
31376         for bugs.
31377         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
31378         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
31379         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
31380         * modules/stdlib (Makefile.am): Update substitutions.
31381         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
31382         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
31383         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
31384         * modules/setenv-tests: New test.
31385         * modules/unsetenv-tests: Likewise.
31386         * tests/test-setenv.c: New file.
31387         * tests/test-unsetenv.c: Likewise.
31388
31389 2009-11-16  Jim Meyering  <meyering@redhat.com>
31390
31391         version-etc: relax license to LGPLv3+
31392         * modules/version-etc (License): Relax license.
31393
31394         better AC_REQUIRE expanded-before-required-warning avoidance
31395         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
31396         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
31397         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
31398         which is no longer needed.
31399
31400 2009-11-16  Eric Blake  <ebb9@byu.net>
31401
31402         test-freading: clean up temporary file
31403         * tests/test-freading.c (main): Remove file on success, and use
31404         ASSERT more liberally.
31405         Reported by Jim Meyering.
31406
31407 2009-11-16  Jim Meyering  <meyering@redhat.com>
31408
31409         avoid new AC_REQUIRE expanded-before-required warnings
31410         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
31411         merely using it.
31412         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
31413         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
31414
31415 2009-11-15  Simon Josefsson  <simon@josefsson.org>
31416
31417         * tests/test-xalloc-die.c: New file.
31418         * modules/xalloc-die-tests: New file.
31419         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
31420         XFAIL_TESTS so it can be appended by modules.
31421
31422 2009-11-15  Simon Josefsson  <simon@josefsson.org>
31423
31424         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
31425         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
31426
31427 2009-11-14  Eric Blake  <ebb9@byu.net>
31428
31429         fnmatch: avoid compiler warning
31430         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
31431         to silence compiler warning about mismatch signedness in ?:.
31432         Reported by Robert Millan.
31433
31434         intprops: add double-inclusion guard
31435         * lib/intprops.h: Allow idempotent includes.
31436         Suggested by Bruce Korb.
31437
31438         openat: detect Solaris fchownat bug
31439         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
31440         penalizing glibc chownat when only lchownat is broken.
31441         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
31442         trailing slash bugs.
31443         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
31444         * modules/openat-tests (Files): Include more files.
31445         (Depends-on): Add mgetgroups, sleep, stat-time.
31446         (configure.ac): Add additional checks.
31447         (Makefile.am): Build new test.
31448         * tests/test-fchownat.c: New file.
31449
31450         lchown: detect Solaris and FreeBSD bug
31451         * lib/lchown.c (rpl_lchown): Work around bug.
31452         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
31453         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31454         * modules/unistd (Makefile.am): Populate it.
31455         * lib/unistd.in.h (lchown): Update declaration.
31456         * doc/posix-functions/lchown.texi (lchown): Document the bug.
31457         * modules/lchown-tests: New file.
31458         * tests/test-lchown.h (test_lchown): Likewise.
31459         * tests/test-lchown.c (main): Likewise.
31460
31461         chown: detect Solaris and FreeBSD bug
31462         * lib/chown.c (rpl_chown): Work around bug.
31463         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
31464         (gl_PREREQ_CHOWN): Delete.
31465         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31466         * modules/unistd (Makefile.am): Populate it.
31467         * lib/unistd.in.h (chown): Update declaration.
31468         * lib/lchown.c (chown): Update client.
31469         * modules/lchown (Depends-on): Add lstat.
31470         * doc/posix-functions/chown.texi (chown): Document the bug.
31471         * doc/posix-functions/getgroups.texi (getgroups): Document
31472         getgroups pitfall.
31473         * modules/chown-tests: New file.
31474         * tests/test-chown.h (test_chown): Likewise.
31475         * tests/test-chown.c (main): Likewise.
31476
31477 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
31478
31479         gnulib-tool: correctly detect absence of m4 directories
31480         * gnulib-tool: Avoid extra newline on data passed to wc -l.
31481
31482 2009-11-14  Jim Meyering  <meyering@redhat.com>
31483
31484         maint.mk: Prohibit inclusion of "xalloc.h" without use.
31485         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
31486
31487 2009-11-14  John W. Eaton  <jwe@gnu.org>
31488
31489         strftime.h: wrap funtion declaration in extern "C" block
31490         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
31491
31492 2009-11-13  Eric Blake  <ebb9@byu.net>
31493
31494         getgroups: avoid compiler warning
31495         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
31496
31497         getgroups: work around FreeBSD bug
31498         * lib/getgroups.c (rpl_getgroups): Work around the bug.
31499         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
31500         * doc/posix-functions/getgroups.texi (getgroups): Document it.
31501         * tests/test-getgroups.c (main): Fix buffer overrun.
31502
31503         getgroups: avoid compilation failure
31504         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
31505         * modules/getgroups (Depends-on): Add stdint.
31506
31507 2009-11-13  Jim Meyering  <meyering@redhat.com>
31508
31509         test-getgroups: avoid compilation failure
31510         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
31511
31512 2009-11-13  Eric Blake  <ebb9@byu.net>
31513
31514         mgetgroups: new module, taken from coreutils
31515         * modules/mgetgroups: New file.
31516         * lib/mgetgroups.h: Likewise.
31517         * lib/mgetgroups.c (mgetgroups): Likewise.
31518         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
31519         * MODULES.html.sh (Users and groups): Mention it.
31520
31521         getgroups: don't expose GETGROUPS_T to user
31522         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
31523         an element at a time if GETGROUPS_T is wrong size.
31524         * lib/getugroups.h (getugroups): Change signature.
31525         * lib/unistd.in.h (getgroups): Likewise.
31526         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
31527         signature needs fixing.
31528         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
31529         AC_TYPE_GETGROUPS.
31530         * modules/group-member (Depends-on): Add getgroups.
31531         * lib/group-member.c (group_info, get_group_info): Use gid_t.
31532         (group_member): Rely on getgroups replacement.
31533         * lib/getugroups.c (getugroups): Use gid_t.
31534         * tests/test-getgroups.c (main): Likewise.
31535         * NEWS: Mention the signature change.
31536         * doc/posix-functions/getgroups.texi (getgroups): Mention the
31537         problem with signature.
31538         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
31539         GETGROUPS_T is still useful for setgroups.
31540
31541         getgroups, getugroups: provide stubs for mingw
31542         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
31543         * lib/getugroups.c (getugroups): Likewise.
31544         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
31545         function.  Modernize replacement scheme.
31546         (gl_PREREQ_GETGROUPS): Delete.
31547         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
31548         * modules/getgroups (configure.ac): Declare witness.
31549         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
31550         * modules/unistd (Depends-on): Substitute witness.
31551         * lib/unistd.in.h (getgroups): Declare replacement.
31552
31553         getgroups: avoid calling exit
31554         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
31555         drop xalloc.
31556         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
31557         dependencies.
31558         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
31559         exiting, in the rare case of malloc failure.
31560
31561         getgroups: fix logic error
31562         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
31563         has more than 20 groups.
31564         * modules/getgroups-tests: New test.
31565         * tests/test-getgroups.c: New file.
31566
31567 2009-11-13  Simon Josefsson  <simon@josefsson.org>
31568
31569         * tests/test-base64.c: Improve.
31570
31571 2009-11-13  Simon Josefsson  <simon@josefsson.org>
31572
31573         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
31574         Blake <ebb9@byu.net>.
31575
31576 2009-11-13  Simon Josefsson  <simon@josefsson.org>
31577
31578         * tests/test-xvasprintf.c: Add %s%s related checks.
31579
31580 2009-11-12  Eric Blake  <ebb9@byu.net>
31581
31582         version-etc: match standards.texi style
31583         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
31584         and use <> only for URLs.
31585
31586 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
31587
31588         fts: do not fail on a submount during traversal
31589         * lib/fts.c (fts_build): Read the stat info again after opening
31590         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
31591         Original report at http://bugzilla.redhat.com/501848.
31592
31593 2009-11-12  Jim Meyering  <meyering@redhat.com>
31594
31595         bootstrap: sync from coreutils
31596         * build-aux/bootstrap (bootstrap_epilogue): New function.
31597         Use git_modules_config in one more place.  This make bootstrap's
31598         --gnulib-srcdir option more useful for testing.
31599
31600         bootstrap: generalize autoheader check
31601         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
31602         AC_CONFIG_HEADERS.
31603
31604 2009-11-11  Eric Blake  <ebb9@byu.net>
31605
31606         mkfifoat: use new modules for Solaris and BSD bugs
31607         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
31608         * lib/mkfifoat.c (mknodat): Split...
31609         * lib/mknodat.c (mknodat): ...into new file.
31610         * modules/mkfifoat (Files): Ship new file.
31611         (Depends-on): Add mkfifo, mknod.
31612         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
31613         (Depends-on): Add symlink.
31614         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
31615         redundant with test_mkfifo.h.
31616         (do_mkfifoat, do_mknodat): New helpers.
31617
31618         mknod: new module
31619         * modules/mknod: New file.
31620         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
31621         * lib/mknod.c (mknod): Likewise.
31622         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
31623         defaults.
31624         * modules/sys_stat (Makefile.am): Substitute them.
31625         * lib/sys_stat.in.h (mknod): Declare replacement.
31626         * MODULES.html.sh (Support for systems lacking POSIX:2008):
31627         Document it.
31628         * doc/posix-functions/mknod.texi (mknod): Likewise.
31629         * modules/mknod-tests: New test.
31630         * tests/test-mknod.c: Likewise.
31631
31632         mkfifo: new module
31633         * modules/mkfifo: New file.
31634         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
31635         * lib/mkfifo.c (mkfifo): Likewise.
31636         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
31637         defaults.
31638         * modules/sys_stat (Makefile.am): Substitute them.
31639         * lib/sys_stat.in.h (mkfifo): Declare replacement.
31640         * MODULES.html.sh (Support for systems lacking POSIX:2008):
31641         Document it.
31642         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
31643         * modules/mkfifo-tests: New test.
31644         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
31645         from test-mkfifoat.c.
31646         * tests/test-mkfifo.c: New file.
31647
31648         readlink: detect FreeBSD bug
31649         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
31650         slash on symlink.
31651         * doc/posix-functions/readlink.texi (readlink): Document the bug.
31652         * tests/test-readlink.h (test_readlink): Enhance test.
31653
31654         symlink: detect FreeBSD bug
31655         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
31656         slash on symlink.
31657         * doc/posix-functions/symlink.texi (symlink): Document the bug.
31658         * tests/test-symlink.h (test_symlink): Enhance test.
31659
31660 2009-11-10  Eric Blake  <ebb9@byu.net>
31661
31662         link: detect FreeBSD bug
31663         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
31664         symlink.
31665         * doc/posix-functions/link.texi (link): Document the bug.
31666         * tests/test-link.h (test_link): Enhance test.
31667         * tests/test-linkat.c (main): Update caller.
31668
31669         unlink, remove: detect FreeBSD bug
31670         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
31671         slash on symlink.
31672         * doc/posix-functions/unlink.texi (unlink): Document the bug.
31673         * doc/posix-functions/remove.texi (remove): Likewise.
31674         * tests/test-unlink.h (test_unlink): Enhance test.
31675         * tests/test-remove.c (main): Likewise.
31676
31677 2009-11-09  Eric Blake  <ebb9@byu.net>
31678
31679         rename: detect FreeBSD bug
31680         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
31681         slash on symlink.
31682         * modules/renameat-tests (Depends-on): Add filenamecat.
31683         * tests/test-rename.h (test_rename): Allow one more errno.
31684         * tests/test-renameat.c (main): Likewise.
31685         * doc/posix-functions/rename.texi (rename): Document the bug.
31686
31687         open: detect FreeBSD bug
31688         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
31689         symlink.
31690         * doc/posix-functions/open.texi (open): Document the bug.
31691         * doc/posix-functions/utimes.texi (utimes): Likewise.
31692         * tests/test-open.h (test_open): Add parameters, and test symlink
31693         handling.
31694         * tests/test-open.c (main): Adjust caller.
31695         * tests/test-fcntl-safer.c (main): Likewise.
31696         * modules/open-tests (Depends-on): Add stdbool, symlink.
31697         * modules/fcntl-safer-tests (Depends-on): Likewise.
31698         * tests/test-openat.c (main): Add test-open tests.
31699
31700         stat: detect FreeBSD bug
31701         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
31702         symlink.
31703         * doc/posix-functions/stat.texi (stat): Document the bug.
31704         * tests/test-stat.h (test_stat_func): Add argument.
31705         * tests/test-stat.c (main): Adjust caller.
31706         * tests/test-fstatat.c (main): Likewise.
31707         * modules/stat-tests (Depends-on): Add stdbool, symlink.
31708         Reported by Jim Meyering.
31709
31710 2009-11-09  James Youngman  <jay@gnu.org>
31711
31712         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
31713         * lib/strftime.c: Correct placement of #include "ignore-value.h".
31714
31715 2009-11-08  Jim Meyering  <meyering@redhat.com>
31716
31717         utimens: remove invalid futimesat call
31718         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
31719         It used the file descriptor of the target file as the DIR_FD
31720         parameter and NULL as the file name.  That caused failure with
31721         errno == EFAULT on FreeBSD-8.0-rc2
31722
31723 2009-11-07  Eric Blake  <ebb9@byu.net>
31724
31725         fflush, freadseek: use fseeko, not fseek
31726         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
31727         (clear_ungetc_buffer): Avoid potential problems on large files.
31728         * lib/freadseek.c (freadseek): Likewise.
31729         * modules/freadseek (Depends-on): Add fseeko.
31730         * modules/fseek (configure.ac): Set a witness.
31731         * tests/test-fflush.c (main): Use fseeko.
31732         * tests/test-fpurge.c (fseek): Disable link warning.
31733         * tests/test-freadable.c (fseek): Likewise.
31734         * tests/test-freading.c (fseek): Likewise.
31735         * tests/test-fseeko.c (fseek): Likewise.
31736         * tests/test-ftell.c (fseek): Likewise.
31737         * tests/test-ftello.c (fseek): Likewise.
31738         * tests/test-fwritable.c (fseek): Likewise.
31739         * tests/test-fwriting.c (fseek): Likewise.
31740
31741 2009-11-06  Simon Josefsson  <simon@josefsson.org>
31742
31743         * modules/memchr (Depends-on): Drop getpagesize dependency.
31744
31745 2009-11-06  Simon Josefsson  <simon@josefsson.org>
31746
31747         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
31748         Reported by Ludovic Courtès.
31749         * build-aux/pmccabe2html: Improve example usage.
31750         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
31751
31752 2009-11-06  Jim Meyering  <meyering@redhat.com>
31753
31754         do-release-commit-and-tag: New module.
31755         Automate the release-commit and tag process.
31756         * build-aux/do-release-commit-and-tag: New script, from coreutils.
31757         * modules/do-release-commit-and-tag: New file.
31758         * MODULES.html.sh (Support for maintaining and releasing): Add it.
31759
31760 2009-11-06  Simon Josefsson  <simon@josefsson.org>
31761
31762         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
31763         because test-select.c uses inet_pton.
31764
31765 2009-11-06  Simon Josefsson  <simon@josefsson.org>
31766
31767         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
31768         GETADDRINFO_LIB.  Bump serial number.
31769         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
31770         Suggested by Eric Blake <ebb9@byu.net>.
31771
31772 2009-11-05  Eric Blake  <ebb9@byu.net>
31773
31774         strtod: detect darwin bug
31775         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
31776         Reported by Leo Davis.
31777
31778         freopen-safer: new module
31779         * modules/freopen-safer: New module.
31780         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
31781         * lib/freopen-safer.c (freopen_safer): New file.
31782         * lib/stdio-safer.h (freopen_safer): New declaration.
31783         * lib/stdio--.h (freopen): New override.
31784         * MODULES.html.sh (File stream based Input/Output): Mention it.
31785         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
31786         freopen-safer module.
31787         * doc/posix-functions/stderr.texi (stderr): Likewise.
31788         * doc/posix-functions/stdin.texi (stdin): Likewise.
31789         * doc/posix-functions/stdout.texi (stdout): Likewise.
31790         * modules/freopen-safer-tests: New test.
31791         * tests/test-reopen-safer.c: New file.
31792
31793 2009-11-05  Jim Meyering  <meyering@redhat.com>
31794
31795         maint.mk: Prohibit inclusion of "close-stream.h" without use.
31796         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
31797
31798 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31799
31800         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
31801
31802 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31803
31804         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
31805
31806 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31807
31808         Fix link error.
31809         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
31810         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31811
31812 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31813
31814         * tests/test-func.c: Also test value of __func__.
31815
31816 2009-11-05  Simon Josefsson  <simon@josefsson.org>
31817
31818         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
31819         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
31820
31821 2009-11-05  Bruno Haible  <bruno@clisp.org>
31822
31823         Fix link error.
31824         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
31825         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31826         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
31827
31828 2009-11-05  Bruno Haible  <bruno@clisp.org>
31829
31830         Tests for module 'inet_pton'.
31831         * modules/inet_pton-tests: New file.
31832         * tests/test-inet_pton.c: New file.
31833
31834 2009-11-05  Bruno Haible  <bruno@clisp.org>
31835
31836         Tests for module 'inet_ntop'.
31837         * modules/inet_ntop-tests: New file.
31838         * tests/test-inet_ntop.c: New file.
31839
31840 2009-11-04  Eric Blake  <ebb9@byu.net>
31841
31842         stdlib-safer: wrap all mkstemp variants
31843         * modules/mkostemp (configure.ac): Set witness.
31844         * modules/mkostemps (configure.ac): Likewise.
31845         * modules/mkstemps (configure.ac): Likewise.
31846         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
31847         (mkstemps_safer): Wrap more functions.
31848         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
31849         wrapping.
31850         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
31851         (mkstemps_safer): Implement the wrappers.
31852
31853         mkstemps, mkostemps: new modules
31854         * modules/mkostemps: New module.
31855         * modules/mkstemps: Likewise.
31856         * lib/mkostemps.c (mkostemps): New file.
31857         * lib/mkstemps.c (mkstemps): Likewise.
31858         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
31859         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
31860         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
31861         * modules/stdlib (Makefile.am): Substitute them.
31862         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
31863         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
31864         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
31865         * doc/gnulib.texi (Glibc stdlib.h): Include them.
31866         * MODULES.html.sh (File system functions): Mention them.
31867
31868         tempname: resync from glibc
31869         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
31870         same values for __GT_FILE as glibc.  Abort even when assertions
31871         are disabled.
31872         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
31873         match its value otherwise.  Allow idempotent inclusion.
31874         * lib/mkdtemp.c (mkdtemp): Adjust caller.
31875         * lib/mkostemp.c (mkostemp): Likewise.
31876         * lib/mkstemp.c (mkstemp): Likewise.
31877         * lib/tmpfile.c (tmpfile): Likewise.
31878         * NEWS: Document this.
31879
31880         utimens: fix use of futimens on older Linux
31881         * lib/utimens.c (fdutimens): Use updated, rather than original,
31882         timespec to avoid bug in older Linux kernel.
31883         Reported by Simon Josefsson.
31884
31885 2009-11-04  Bruno Haible  <bruno@clisp.org>
31886
31887         Make num_processors more flexible and consistent.
31888         * lib/nproc.h (enum nproc_query): New type.
31889         (num_processors): Add a 'query' argument.
31890         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
31891         (num_processors): Add a 'query' argument. Test the value of the
31892         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
31893         mingw, count the number of CPUs available for the current process.
31894         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
31895         Check for sched_getaffinity and sched_getaffinity_np.
31896         * modules/nproc (Depends-on): Add c-ctype, extensions.
31897         * NEWS: Mention the change.
31898
31899 2009-11-03  Bruno Haible  <bruno@clisp.org>
31900
31901         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
31902
31903 2009-11-03  Jim Meyering  <meyering@redhat.com>
31904
31905         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
31906         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
31907         if it is defined.
31908
31909 2009-11-02  Eric Blake  <ebb9@byu.net>
31910
31911         mktime, timegm: share common declaration
31912         * lib/mktime-internal.h: New file.
31913         * lib/mktime.c: Use it rather than open-coding a declaration.
31914         * lib/timegm.c: Likewise.
31915         * modules/mktime (Files): Ship it.
31916         * modules/timegm (Files): Likewise.
31917         Suggested by Bruno Haible.
31918
31919         test-update-copyright: update test to match script changes
31920         * tests/test-update-copyright.sh: Avoid hard-coding perl
31921         location.  Don't update *.bak created by earlier runs.
31922
31923 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
31924             Simon Josefsson  <simon@josefsson.org>
31925             Bruno Haible  <bruno@clisp.org>
31926
31927         Fix link error on Solaris 8.
31928         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
31929         also in libnsl. Define also INET_PTON_LIB.
31930         * modules/inet_pton (Link): New section.
31931
31932 2009-11-02  Simon Josefsson  <simon@josefsson.org>
31933             Bruno Haible  <bruno@clisp.org>
31934
31935         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
31936         * modules/inet_ntop (Link): New section.
31937         Reported by Boyan Kasarov <bkasarov@gmail.com>.
31938
31939 2009-11-02  Eric Blake  <ebb9@byu.net>
31940
31941         maint: avoid compiler warnings in m4 macros
31942         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
31943         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
31944
31945 2009-11-02  Simon Josefsson  <simon@josefsson.org>
31946
31947         * m4/pmccabe2html.m4: Remove file.
31948         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
31949         function.  Change maintainer.
31950         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
31951         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
31952         Courtès).
31953
31954 2009-10-31  Eric Blake  <ebb9@byu.net>
31955
31956         fseeko: fix m4 regression
31957         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
31958         regression from 2009-10-27.
31959         Reported by Ralf Wildenhues.
31960
31961 2009-10-31  Jim Meyering  <meyering@redhat.com>
31962
31963         inttostr: aesthetics and improved (compile-time) safety
31964         Define inttype_is_signed rather than inttype_is_unsigned,
31965         since the sole use is via "#if inttype_is_signed".
31966         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
31967         inttype_is_unsigned.
31968         * lib/offtostr.c (inttype_is_signed): Likewise.
31969         * lib/uinttostr.c (inttype_is_signed): Likewise.
31970         * lib/umaxtostr.c (inttype_is_signed): Likewise.
31971         * lib/inttostr.c (inttostr): Use verify to cross-check the
31972         inttype_is_signed value and the signedness of the actual type.
31973         * modules/inttostr (Depends-on): Add verify.
31974
31975 2009-10-30  Eric Blake  <ebb9@byu.net>
31976
31977         build: avoid compiler warnings
31978         * lib/fchmodat.c (lchmod): Mark unused variables.
31979         * lib/getopt.c (_getopt_initialize): Likewise.
31980         * lib/mktime.c (__mktime_internal): Provide prototype.
31981         * lib/inttostr.c (inttostr): Avoid compiler warning even with
31982         older gcc that do not understand #pragma GCC diagnostic.
31983         * lib/uinttostr.c (inttype_is_unsigned): Define.
31984         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
31985
31986 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
31987
31988         stat: fix compilation on AIX
31989         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
31990         only see struct stat64.
31991
31992 2009-10-30  Eric Blake  <ebb9@byu.net>
31993
31994         exclude: make more robust
31995         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
31996         rather than masking a coding bug.
31997         Suggested by Bruno Haible.
31998
31999 2009-10-30  Jim Meyering  <meyering@redhat.com>
32000
32001         perl scripts: remove #!/usr/bin/perl in favor of more portable...
32002         Rather than putting #!/usr/bin/perl on the first line,
32003         start with a variant of what's recommended by "man perlrun" that
32004         invokes the first "perl" program from your shell's search path.
32005         * build-aux/gitlog-to-changelog: Replace #!... as above.
32006         Add a "Local Variables" perl mode setting.
32007         Prompted by a patch from Ludovic Courtès.
32008         Improved by Eric Blake.
32009         * build-aux/useless-if-before-free: Likewise.
32010         * build-aux/announce-gen: Likewise.
32011         * build-aux/update-copyright: Likewise.
32012
32013 2009-10-29  Eric Blake  <ebb9@byu.net>
32014
32015         filenamecat-lgpl: adjust clients
32016         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
32017         filenamecat.
32018         * modules/renameat (Depends-on): Likewise.
32019
32020         filenamecat: split into filenamecat-lgpl
32021         * modules/filenamecat-lgpl: New module.
32022         * modules/filenamecat (Files): Move library-safe files into
32023         filenamecat-lgpl.
32024         (Depends-on): Add filenamecat-lgpl.
32025         (configure.ac): Declare witness.
32026         * lib/filenamecat.h (file_name_concat): Only declare when using
32027         GPL module.
32028         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
32029         Move...
32030         * lib/filenamecat-lgpl.c: ...into new file.
32031         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
32032         (gl_FILE_NAME_CONCAT): Use it.
32033         * MODULES.html.sh (File system functions): Mention new module.
32034
32035         argp: avoid memory leak
32036         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
32037         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
32038         base_name, since the latter malloc()s and can call exit().
32039         Leak introduced 2006-07-03.
32040
32041         dirname-lgpl: adjust clients that don't need full dirname
32042         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
32043         * modules/filenamecat (Depends-on): Likewise.
32044         * modules/linkat (Depends-on): Likewise.
32045         * modules/mkancesdirs (Depends-on): Likewise.
32046         * modules/mkdir (Depends-on): Likewise.
32047         * modules/openat (Depends-on): Likewise.
32048         * modules/savewd (Depends-on): Likewise.
32049         * modules/rename (Depends-on): Likewise.
32050         (License): Relax license.
32051         * modules/mkdir-tests (Depends-on): Drop progname.
32052         (Makefile.am): Delete unneeded LDADD.
32053         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
32054
32055         dirname: split into dirname-lgpl
32056         * modules/dirname-lgpl: New module.
32057         * modules/dirname (Files): Move library-safe files into
32058         dirname-lgpl.
32059         (Depends-on): Add dirname-lgpl.
32060         (configure.ac): Declare witness.
32061         * modules/double-slash-root (License): Relax license.
32062         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
32063         module.
32064         * lib/dirname.c (dir_len, mdir_name): Move...
32065         * lib/dirname-lgpl.c: ...into new file.
32066         * lib/basename.c (last_component, base_len): Move...
32067         * lib/basename-lgpl.c: ...into new file.
32068         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
32069         (gl_DIRNAME): Use it.
32070         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
32071         Mention new module.
32072         * modules/dirname-tests (Depends-on): Add progname.
32073         * tests/test-dirname.c (program_name): Delete.
32074
32075         mkdir: make safe for libraries
32076         * modules/mkdir (Depends-on): Drop xalloc.
32077         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
32078         exit.
32079
32080         tests: avoid some compiler warnings
32081         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
32082         literals.
32083         * tests/test-memchr.c (main): Avoid type mismatch.
32084         * tests/test-arpa_inet.c (main): Avoid unused parameters.
32085         * tests/test-base64.c (main): Likewise.
32086         * tests/test-getdelim.c (main): Likewise.
32087         * tests/test-gethostname.c (main): Likewise.
32088         * tests/test-getline.c (main): Likewise.
32089         * tests/test-netinet_in.c (main): Likewise.
32090         * tests/test-select.c (open_server_socket, main): Likewise.
32091         * tests/test-select-stdin.c (main): Likewise.
32092         * tests/test-sockets.c (main): Likewise.
32093         * tests/test-strsignal.c (main): Likewise.
32094         * tests/test-sys_select.c (main): Likewise.
32095         * tests/test-sys_socket.c (main): Likewise.
32096         * tests/test-u64.c (main): Likewise.
32097         * tests/test-xfprintf-posix.c (main): Likewise.
32098         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
32099
32100         sockets: avoid compiler warning
32101         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
32102
32103         maint: detect usage(1) and other suspicious exits
32104         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
32105
32106 2009-10-29  Jim Meyering  <meyering@redhat.com>
32107
32108         timespec: long-to-int truncation could make timespec_cmp malfunction
32109         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
32110         a multiple of 2^32 nanoseconds as no difference.
32111
32112 2009-10-28  Jim Meyering  <meyering@redhat.com>
32113
32114         fprintftime: wrap macro code argument in "do {...} while(0)"
32115         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
32116         cpy macro must be a statement that can be followed by a semicolon.
32117         Now that the else clause contains a comment and is hence longer
32118         than one line, I require curly braces.  That in turn requires
32119         that we wrap this code block in the standard do...while(0).
32120
32121         fprintftime: remove stray semicolon from previous change
32122         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
32123
32124         fprintftime: avoid a warning about ignored fwrite return value
32125         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
32126         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
32127         that is unsafe.
32128         * modules/fprintftime (Depends-on): Add ignore-value.
32129
32130         exclude: avoid an unwarranted warning
32131         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
32132
32133 2009-10-27  Eric Blake  <ebb9@byu.net>
32134
32135         fseek: avoid compilation failure when fflush is replaced
32136         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
32137         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
32138         module is in use.
32139         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
32140         module is not in use; since REPLACE_FSEEK worked otherwise.
32141         (GNULIB_FTELLO): Likewise for ftell.
32142         Reported by Ian Beckwith and others.
32143
32144 2009-10-27  Bruno Haible  <bruno@clisp.org>
32145
32146         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
32147         Reported by Jim Meyering.
32148
32149 2009-10-27  Jim Meyering  <jim@meyering.net>
32150             Bruno Haible  <bruno@clisp.org>
32151
32152         Avoid warning despite dropping the return value of fwrite.
32153         * lib/unicodeio.c: Include ignore-value.h.
32154         (fwrite_success_callback): Explicitly ignore fwrite's return value.
32155         * modules/unicodeio (Depends-on): Add ignore-value.
32156
32157 2009-10-26  Eric Blake  <ebb9@byu.net>
32158
32159         areadlinkat: fix fallback path
32160         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
32161         pointer and zero.
32162
32163 2009-10-22  Pádraig Brady  <P@draigBrady.com>
32164
32165         Use a better IO block size for modern systems
32166         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
32167         * lib/md2.c: Likewise.
32168         * lib/md4.c: Likewise.
32169         * lib/md5.c: Likewise.
32170         * lib/sha1.c: Likewise.
32171         * lib/sha256.c: Likewise.
32172         * lib/sha512.c: Likewise.
32173
32174 2009-10-22  Eric Blake  <ebb9@byu.net>
32175
32176         tests: avoid several compiler warnings
32177         * tests/test-getcwd.c (main): Avoid buffer underflow.
32178         * tests/test-getdate.c (main): String literals are not safe with
32179         putenv, so use setenv.  Declare unused argument.
32180         * modules/getdate-tests (Depends-on): Add setenv.
32181         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
32182         problems with string literals in char *.
32183         * tests/test-hash.c (main): Avoid shadowing declaration.
32184         (insert_new): Treat string literals as char const *.
32185         * tests/test-getopt.h (test_getopt): Likewise.
32186         (getopt_loop): Alter types to minimize casting elsewhere.
32187         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
32188         (test_getopt_long_posix): Likewise.
32189         (do_getopt_long): Add wrapper to minimize casting.
32190         * tests/test-atexit.c (clear_temp_file): Use void.
32191         * tests/test-areadlink-with-size.c (main): Declare unused
32192         arguments.
32193         * tests/test-areadlink.c (main): Likewise.
32194         * tests/test-areadlinkat-with-size.c (main): Likewise.
32195         * tests/test-areadlinkat.c (main): Likewise.
32196         * tests/test-canonicalize-lgpl.c (main): Likewise.
32197         * tests/test-canonicalize.c (main): Likewise.
32198         * tests/test-dirent-safer.c (main): Likewise.
32199         * tests/test-dirname.c (main): Likewise.
32200         * tests/test-dup2.c (main): Likewise.
32201         * tests/test-fchdir.c (main): Likewise.
32202         * tests/test-fcntl-h.c (main): Likewise.
32203         * tests/test-fcntl-safer.c (main): Likewise.
32204         * tests/test-fdopendir.c (main): Likewise.
32205         * tests/test-fdutimensat.c (main): Likewise.
32206         * tests/test-fflush.c (main): Likewise.
32207         * tests/test-filenamecat.c (main): Likewise.
32208         * tests/test-filevercmp.c (main): Likewise.
32209         * tests/test-fopen-safer.c (main): Likewise.
32210         * tests/test-fopen.c (main): Likewise.
32211         * tests/test-fpending.c (main): Likewise.
32212         * tests/test-fpurge.c (main): Likewise.
32213         * tests/test-freading.c (main): Likewise.
32214         * tests/test-fstatat.c (main): Likewise.
32215         * tests/test-fsync.c (main): Likewise.
32216         * tests/test-futimens.c (main): Likewise.
32217         * tests/test-getndelim2.c (main): Likewise.
32218         * tests/test-gettimeofday.c (main): Likewise.
32219         * tests/test-getopt.c (main): Likewise.
32220         * tests/test-i-ring.c (main): Likewise.
32221         * tests/test-inttypes.c (main): Likewise.
32222         * tests/test-link.c (main): Likewise.
32223         * tests/test-lstat.c (main): Likewise.
32224         * tests/test-math.c (main): Likewise.
32225         * tests/test-md5.c (main): Likewise.
32226         * tests/test-memchr2.c (main): Likewise.
32227         * tests/test-memrchr.c (main): Likewise.
32228         * tests/test-mkdir.c (main): Likewise.
32229         * tests/test-mkdirat.c (main): Likewise.
32230         * tests/test-mkfifoat.c (main): Likewise.
32231         * tests/test-open.c (main): Likewise.
32232         * tests/test-openat-safer.c (main): Likewise.
32233         * tests/test-openat.c (main): Likewise.
32234         * tests/test-quotearg.c (main): Likewise.
32235         * tests/test-rawmemchr.c (main): Likewise.
32236         * tests/test-readlink.c (main): Likewise.
32237         * tests/test-remove.c (main): Likewise.
32238         * tests/test-rename.c (main): Likewise.
32239         * tests/test-renameat.c (main): Likewise.
32240         * tests/test-rmdir.c (main): Likewise.
32241         * tests/test-sha1.c (main): Likewise.
32242         * tests/test-signal.c (main): Likewise.
32243         * tests/test-sigaction.c (main): Likewise.
32244         * tests/test-stat.c (main): Likewise.
32245         * tests/test-stat-time.c (main): Likewise.
32246         * tests/test-stddef.c (main): Likewise.
32247         * tests/test-stdint.c (main): Likewise.
32248         * tests/test-stdio.c (main): Likewise.
32249         * tests/test-stdlib.c (main): Likewise.
32250         * tests/test-strchrnul.c (main): Likewise.
32251         * tests/test-strerror.c (main): Likewise.
32252         * tests/test-string.c (main): Likewise.
32253         * tests/test-strtod.c (main): Likewise.
32254         * tests/test-strverscmp.c (main): Likewise.
32255         * tests/test-symlink.c (main): Likewise.
32256         * tests/test-symlinkat.c (main): Likewise.
32257         * tests/test-sys_stat.c (main): Likewise.
32258         * tests/test-sys_time.c (main): Likewise.
32259         * tests/test-time.c (main): Likewise.
32260         * tests/test-unistd.c (main): Likewise.
32261         * tests/test-unlink.c (main): Likewise.
32262         * tests/test-unlinkat.c (main): Likewise.
32263         * tests/test-utimens.c (main): Likewise.
32264         * tests/test-utimensat.c (main): Likewise.
32265         * tests/test-version-etc.c (main): Likewise.
32266         * tests/test-wchar.c (main): Likewise.
32267         * tests/test-wctype.c (main): Likewise.
32268         * tests/test-xprintf-posix.c (main): Likewise.
32269         * tests/test-posixtm.c (main): Likewise.
32270         (STREQ): Delete unused macro.
32271         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
32272         shadowed variables.
32273         * tests/test-memchr.c (main): Likewise.
32274
32275 2009-10-21  Eric Blake  <ebb9@byu.net>
32276
32277         areadlinkat: avoid failure on older glibc
32278         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
32279         rather than mis-comparing 0 against FUNC_RESULT of char*.
32280
32281 2009-10-21  Bruno Haible  <bruno@clisp.org>
32282
32283         * modules/stpncpy (License): Relicense under LGPLv2+.
32284         Reported by David Lutterkort <lutter@redhat.com>.
32285
32286 2009-10-20  Eric Blake  <ebb9@byu.net>
32287
32288         utimensat: work around Solaris 9 bug
32289         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
32290         has trailing slash bugs.
32291         * tests/test-lutimens.h (test_lutimens): Enhance test.
32292         * tests/test-utimens.h (test_utimens): Likewise.
32293         * doc/posix-functions/utime.texi (utime): Enhance documentation.
32294         * doc/posix-functions/utimes.texi (utimes): Likewise.
32295         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32296         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
32297         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
32298         * doc/posix-functions/futimens.texi (futimens): Likewise.
32299
32300         fdutimensat: new module
32301         * modules/fdutimensat: New file.
32302         * lib/fdutimensat.c (fdutimensat): Likewise.
32303         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
32304         * MODULES.html.sh (File system functions): Mention module.
32305         * modules/fdutimensat-tests: New test.
32306         * tests/test-fdutimensat.c: Likewise.
32307
32308         doc: regenerate INSTALL
32309         * doc/INSTALL: Reflect recent autoconf update.
32310         * doc/INSTALL.ISO: Likewise.
32311         * doc/INSTALL.UTF-8: Likewise.
32312
32313 2009-10-20  Pádraig Brady  <P@draigBrady.com>
32314
32315         acl: warn if ACL support is not detected
32316         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
32317
32318 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
32319
32320         * lib/nproc.h: Add extern "C" block for C++.
32321
32322 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
32323             Bruno Haible  <bruno@clisp.org>
32324
32325         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
32326         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
32327         * doc/posix-functions/isalpha.texi: Likewise.
32328         * doc/posix-functions/isblank.texi: Likewise.
32329         * doc/posix-functions/iscntrl.texi: Likewise.
32330         * doc/posix-functions/isdigit.texi: Likewise.
32331         * doc/posix-functions/isgraph.texi: Likewise.
32332         * doc/posix-functions/islower.texi: Likewise.
32333         * doc/posix-functions/isprint.texi: Likewise.
32334         * doc/posix-functions/ispunct.texi: Likewise.
32335         * doc/posix-functions/isspace.texi: Likewise.
32336         * doc/posix-functions/isupper.texi: Likewise.
32337         * doc/posix-functions/isxdigit.texi: Likewise.
32338
32339 2009-10-18  Bruno Haible  <bruno@clisp.org>
32340
32341         Tests for module 'isblank'.
32342         * modules/isblank-tests: New file.
32343         * tests/test-isblank.c: New file.
32344
32345         New module 'isblank'.
32346         * lib/isblank.c: New file.
32347         * m4/isblank.m4: New file.
32348         * modules/isblank: New file.
32349         * doc/posix-functions/isblank.texi: Mention the new module.
32350
32351 2009-10-18  Bruno Haible  <bruno@clisp.org>
32352
32353         New module 'ctype'.
32354         * lib/ctype.in.h: New file.
32355         * m4/ctype.m4: New file.
32356         * modules/ctype: New file.
32357         * doc/posix-headers/ctype.texi: Mention the new module.
32358
32359 2009-10-18  Jim Meyering  <meyering@redhat.com>
32360
32361         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
32362         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
32363         right after its initialization, rather than farther down.
32364         Keeping these in close proximity makes it easier to ensure
32365         that each such variable is initialized.  E.g.,
32366
32367             LIB_CLOCK_GETTIME=
32368             AC_SUBST([LIB_CLOCK_GETTIME])
32369
32370         This change also increments these serial numbers.
32371         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
32372         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
32373         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32374
32375 2009-10-18  Bruno Haible  <bruno@clisp.org>
32376
32377         Don't let environment variables perturb build.
32378         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
32379         (gl_PREREQ_GETHRXTIME): ... not here.
32380
32381 2009-10-18  Bruno Haible  <bruno@clisp.org>
32382
32383         Avoid symlink attack in localcharset module.
32384         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
32385         (O_NOFOLLOW): Define fallback.
32386         (get_charset_aliases): Don't open the file if it is a symbolic link.
32387         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
32388         gl_FCNTL_H.
32389         (gl_FCNTL_H): Require it.
32390         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
32391         * modules/localcharset (Files): Add m4/fcntl_h.m4.
32392         Reported by Fergal Glynn <fglynn@veracode.com>.
32393
32394 2009-10-18  Bruno Haible  <bruno@clisp.org>
32395
32396         Implement nproc for mingw.
32397         * lib/nproc.c: Include <windows.h>
32398         (num_processors): On native Windows platforms, try GetSystemInfo.
32399
32400 2009-10-18  Bruno Haible  <bruno@clisp.org>
32401
32402         Implement nproc for IRIX.
32403         * lib/nproc.c: Include <sys/sysmp.h>.
32404         (num_processors): On IRIX systems, try sysmp.
32405         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
32406
32407 2009-10-18  Bruno Haible  <bruno@clisp.org>
32408
32409         Implement nproc for HP-UX.
32410         * lib/nproc.c: Include <sys/pstat.h>
32411         (num_processors): On HP-UX systems, try pstat_getdynamic.
32412         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
32413         pstat_getdynamic.
32414
32415 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
32416             Bruno Haible  <bruno@clisp.org>
32417
32418         Implement nproc for NetBSD, OpenBSD.
32419         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
32420         (ARRAY_SIZE): New macro.
32421         (num_processors): On BSD systems, try sysctl of HW_NCPU.
32422         * m4/nproc.m4: New file.
32423         * modules/nproc (Files): Add m4/nproc.m4.
32424         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
32425         (Makefile.am): Instead, augment lib_SOURCES.
32426
32427 2009-10-18  Bruno Haible  <bruno@clisp.org>
32428
32429         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
32430         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
32431         sys/param.h.
32432
32433 2009-10-16  Eric Blake  <ebb9@byu.net>
32434
32435         utimensat: new module
32436         * modules/utimensat: New file.
32437         * lib/utimensat.c (utimensat): Likewise.
32438         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32439         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
32440         so we can work around Linux bugs.
32441         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32442         * modules/sys_stat (Makefile.am): Substitute them.
32443         * lib/sys_stat.in.h (utimensat): Declare it.
32444         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32445         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32446         * modules/utimensat-tests: New test.
32447         * tests/test-utimensat.c: Likewise.
32448
32449         utimens: let lutimens work on non-symlinks
32450         * lib/utimens.c (lutimens): Fall back to utimens rather than
32451         failing with ENOSYS, when file is not a symlink.
32452         (utimens): Reduce redirection.
32453         * tests/test-lutimens.h (test_lutimens): Update test to cover
32454         non-symlinks.
32455         * tests/test-utimens.h (test_utimens): Update test to cover
32456         symlinks.
32457         * tests/test-utimens.c (main): Update caller.
32458
32459         utimens: cache whether utimensat syscall works
32460         * lib/utimens.c (utimensat_works_really): New cache variable.
32461         (fdutimens, lutimens): Use it to avoid failing syscall.
32462
32463         test-stat-time, test-utimens: improve portability
32464         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
32465         ext4 on alpha, and for cygwin.
32466         * tests/test-utimens-common.h: New file.
32467         (nap): Factor delays into single function.
32468         * tests/test-lutimens.h (test_lutimens): Use new header.
32469         * tests/test-futimens.h (test_futimens): Likewise.
32470         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
32471         timestamps to occur from same machine, as was done previously for
32472         test_utimens.
32473         * modules/utimens-tests (Files): Ship new file.
32474         * modules/futimens-tests (Files): Likewise.
32475         Reported in part by Jim Meyering.
32476
32477         sys_stat: sort replacement declarations
32478         * lib/sys_stat.in.h: Sort declarations.
32479         * lib/futimens.c (futimens): Fix typo.
32480
32481 2009-10-15  Jim Meyering  <meyering@redhat.com>
32482
32483         don't let environment settings perturb build
32484         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
32485         could cause a configure-time and/or build-time malfunction.
32486         Typically, a configure-time function-in-library test is performed
32487         via code like this:
32488
32489           LIB_VAR=
32490           AC_SUBST([LIB_VAR])
32491           prefix_saved_LIBS=$LIBS
32492             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
32493                        [test "$ac_cv_search_FUNC" = "none required" ||
32494                         LIB_VAR=$ac_cv_search_FUNC])
32495           LIBS=$prefix_saved_LIBS
32496
32497         However, in each of the files affected by this change, the LIB_VAR=
32498         initialization was omitted.  Thus, when set in the environment, its
32499         value would propagate into generated Makefiles when FUNC is not found
32500         in LIB_NAME.
32501         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
32502         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
32503         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
32504
32505 2009-10-14  Eric Blake  <ebb9@byu.net>
32506
32507         fchdir: avoid infinite recursion in mingw
32508         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
32509         recursing.
32510
32511         test-stat-time: port to mingw
32512         * tests/test-stat-time.c (force_unlink): Return a value.
32513         (test_ctime) [W32]: Fix compilation error.
32514         (nap): Don't call usleep with too large an argument.  Use
32515         force_unlink.
32516         * doc/pastposix-functions/usleep.texi (usleep): Document the
32517         portability issue.
32518
32519 2009-10-13  Jim Meyering  <meyering@redhat.com>
32520
32521         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
32522         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
32523         * modules/pipe-filter-ii: Likewise.
32524         * modules/sys_socket-tests: Likewise.
32525         * modules/tsearch-tests: Likewise.
32526         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
32527         (check): Depend on it.
32528
32529 2009-10-12  Eric Blake  <ebb9@byu.net>
32530
32531         utimens-tests: port to NFS file systems
32532         * tests/test-utimens.h (test_utimens): Refactor utimecmp
32533         comparisons to avoid spurious failures from timestamp drift
32534         between NFS machines.
32535
32536 2009-10-12  Eric Blake  <ebb9@byu.net>
32537
32538         stat-time-tests: minor cleanups
32539         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
32540         * tests/test-stat-time.c (nap): Separate assignment from call.
32541         Suggested by Paolo Bonzini and Bruno Haible.
32542
32543         sys_stat: guarantee struct timespec
32544         * lib/sys_stat.in.h (includes): Always include <time.h>
32545         * modules/sys_stat (Depends-on): Add time.
32546         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
32547         mode_t permission values.
32548         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
32549         get at subsecond timestamps.
32550
32551 2009-10-10  Eric Blake  <ebb9@byu.net>
32552
32553         futimens: new module
32554         * modules/futimens: New file.
32555         * lib/futimens.c (futimens): Likewise.
32556         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
32557         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
32558         we can work around Linux bugs.
32559         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32560         * modules/sys_stat (Makefile.am): Substitute them.
32561         * lib/sys_stat.in.h (futimens): Declare it.
32562         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
32563         * doc/posix-functions/futimens.texi (futimens): Likewise.
32564         * modules/futimens-tests: New test.
32565         * tests/test-futimens.c: Likewise.
32566
32567         utimens: introduce fdutimens
32568         * lib/utimens.h (fdutimens): New prototype.
32569         * lib/utimens.c (gl_futimens): Move guts...
32570         (fdutimens): ...to new interface.
32571         * tests/test-utimens.c (do_fdutimens): Use it.
32572
32573         utimens: add UTIME_NOW and UTIME_OMIT support
32574         * lib/utimens.c (validate_timespec, update_timespec): New helper
32575         functions.
32576         (gl_futimens, lutimens): Use them.
32577         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
32578         stdbool, sys_stat.
32579         (Link): Mention resulting library dependency.
32580         * modules/utimecmp (Link): Likewise.
32581         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
32582         (Makefile.am): Pick up library dependency.
32583         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
32584         definition.
32585         * tests/test-sys_stat.c: Test the definitions.
32586         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
32587         * NEWS: Document library dependency.
32588
32589         utimecmp: support symlink timestamps
32590         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
32591         hashing when possible.  Use pathconf when available.
32592         (SYSCALL_RESOLUTION): Recognize tighter resolution.
32593         * modules/utimecmp (Depends-on): Add lstat.
32594
32595         utimens: add lutimens interface
32596         * lib/utimens.c (lutimens): New function.
32597         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
32598         * lib/utimens.h (lutimens): Declare new interface.
32599         * tests/test-utimens.c (main): Enhance test.
32600         * tests/test-lutimens.h (test_lutimens): New file.
32601         * modules/utimens-tests (Files): Distribute it.
32602         (Depends-on): Add symlink.
32603         (configure.ac): Check for usleep.
32604
32605         utimens: validate futimens usage
32606         * lib/utimens.c (gl_futimens): Require valid fd up front, using
32607         fewer syscalls on failure later on.  Avoid compiler warning on
32608         mingw.
32609         * modules/utimens (Depends-on): Add dup2.
32610
32611         utimens: add test
32612         * modules/utimens-tests: New test.
32613         * tests/test-utimens.h: New file.
32614         * tests/test-futimens.h: Likewise.
32615         * tests/test-utimens.c: Likewise.
32616
32617         doc: mention timestamp portability issues
32618         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
32619         instead.
32620         * doc/posix-functions/utime.texi (utime): Likewise.
32621         * doc/posix-functions/utimes.texi (utimes): Likewise.
32622         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
32623         instead.
32624         * doc/posix-functions/futimens.texi (futimens): Mention utimens
32625         module.
32626         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32627         Mention weakness with symlink timestamps.
32628         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
32629         to utimensat/futimens instead.
32630         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
32631
32632         test-dup2: enhance test
32633         * tests/test-dup2.c (main): Also check AT_FDCWD.
32634
32635         test-stat-time: avoid more spurious failures
32636         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
32637         xfs; and avoid race if the two timestamps cross quantization edge.
32638
32639         relocatable: prefer 'file system' over 'filesystem'
32640         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
32641         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
32642         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
32643         * doc/relocatable.texi (Enabling Relocatability): Likewise.
32644         * lib/relocatable.c (compute_curr_prefix): Likewise.
32645
32646 2009-10-10  Jim Meyering  <meyering@redhat.com>
32647
32648         stat-time-tests: check for the usleep function
32649         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
32650
32651 2009-10-10  Bruno Haible  <bruno@clisp.org>
32652
32653         * modules/xnanosleep: Put the Link section after the Include section.
32654
32655 2009-10-09  Eric Blake  <ebb9@byu.net>
32656
32657         dup2: work around FreeBSD 6.1 bug
32658         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
32659         * doc/posix-functions/dup2.texi (dup2): Document it.
32660         Reported by Nelson H. F. Beebe and Jim Meyering.
32661
32662         test-stat-time: port to buggy NFS clients
32663         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
32664         (test_ctime): Also skip test if mtime and ctime are skewed.
32665
32666         maint: prefer 'file system' over 'filesystem'
32667         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
32668         * doc/posix-functions/lstat.texi (lstat): Likewise.
32669         * lib/file-has-acl.c (file_has_acl): Likewise.
32670         * lib/fwriteerror.c [TEST]: Likewise.
32671         * tests/test-areadlink.h (test_areadlink): Likewise.
32672         * tests/test-areadlinkat-with-size.c (main): Likewise.
32673         * tests/test-areadlinkat.c (main): Likewise.
32674         * tests/test-canonicalize-lgpl.c (main): Likewise.
32675         * tests/test-canonicalize.c (main): Likewise.
32676         * tests/test-fstatat.c (main): Likewise.
32677         * tests/test-linkat.c (main): Likewise.
32678         * tests/test-lstat.h (test_lstat_func): Likewise.
32679         * tests/test-mkdir.h (test_mkdir): Likewise.
32680         * tests/test-readlink.h (test_readlink): Likewise.
32681         * tests/test-remove.c (main): Likewise.
32682         * tests/test-rename.h (test_rename): Likewise.
32683         * tests/test-renameat.c (main): Likewise.
32684         * tests/test-rmdir.h (test_rmdir_func): Likewise.
32685         * tests/test-symlink.h (test_symlink): Likewise.
32686         * tests/test-symlinkat.c (main): Likewise.
32687         * tests/test-unlink.h (test_unlink_func): Likewise.
32688         * tests/test-unlinkat.c (main): Likewise.
32689
32690         maint: make realtime library usage explicit
32691         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
32692         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
32693         * modules/settime (Link): Likewise.
32694         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
32695
32696         test-stat-time: speed up execution
32697         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
32698         warning on mingw.
32699         (nap): New helper function.
32700         (prepare_test): Use it to reduce sleep time.
32701         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
32702         execution.
32703         * modules/stat-time-tests (configure.ac): Check for usleep.
32704
32705 2009-10-09  Jim Meyering  <meyering@redhat.com>
32706
32707         selinux-h: always use getfilecon wrappers
32708         * lib/getfilecon.c: New file.
32709         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
32710         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
32711         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
32712         (fgetfilecon): Provide a stub.
32713         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
32714         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
32715         file unconditionally.
32716         When <selinux/selinux.h> is found, arrange to use wrappers.
32717         * modules/selinux-h (Files): Add getfilecon.c.
32718         (Makefile.am): Substitute include-next-related bits
32719         into the now-always-generated selinux/selinux.h file.
32720         * doc/glibc-functions/lgetfilecon.texi: New file.
32721         * doc/glibc-functions/fgetfilecon.texi: New file.
32722         * doc/glibc-functions/getfilecon.texi: New file.
32723         * doc/glibc-functions/getfilecon-desc.texi: New file.
32724         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
32725         which to pull in the new files.
32726         * MODULES.html.sh (Misc): Add selinux-h.
32727
32728 2009-10-08  Jim Meyering  <meyering@redhat.com>
32729
32730         unistd: fix comment typo
32731         * lib/unistd.in.h (euidaccess): Fix a comment typo.
32732
32733 2009-10-08  Eric Blake  <ebb9@byu.net>
32734
32735         areadlink: use SIZE_MAX consistently
32736         * modules/areadlink (Depends-on): Add stdint.
32737         * modules/areadlink-with-size (Depends-on): Likewise.
32738         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
32739         gives NULL; drop sys/types, since unistd gives size_t; and add
32740         stdint for SIZE_MAX.
32741         (SIZE_MAX): Rely on headers.
32742         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
32743         and add stdint.
32744         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
32745         (SIZE_MAX): Likewise.
32746         (INITIAL_BUF_SIZE): Turn into enum.
32747         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
32748
32749 2009-10-08  Jim Meyering  <meyering@redhat.com>
32750
32751         areadlinkat: avoid compilation failure
32752         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
32753         Fix typo in comment.
32754
32755 2009-10-07  Eric Blake  <ebb9@byu.net>
32756
32757         areadlinkat-with-size: new module
32758         * modules/areadlinkat-with-size: New module.
32759         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
32760         * lib/areadlink.h (areadlinkat): Declare it.
32761         * MODULES.html.sh (File system functions): Mention it.
32762         * modules/areadlinkat-with-size-tests: New test.
32763         * tests/test-areadlinkat-with-size.c: New file.
32764
32765         xreadlinkat: new module
32766         * modules/xreadlinkat: New module.
32767         * lib/xreadlinkat.c (xreadlinkat): New file.
32768         * lib/xreadlink.h (xreadlinkat): Declare it.
32769         * MODULES.html.sh (File system functions): Mention it.
32770
32771         areadlinkat: new module
32772         * lib/at-func.c (FUNC_FAIL): New define.
32773         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
32774         * modules/areadlinkat: New module.
32775         * lib/linkat.c (areadlinkat): Move...
32776         * lib/areadlinkat.c (areadlinkat): ...to new file.
32777         * lib/areadlink.h (areadlinkat): Declare it.
32778         * modules/linkat (Depends-on): Add areadlinkat.
32779         * MODULES.html.sh (File system functions): Mention it.
32780         * modules/areadlinkat-tests: New test.
32781         * tests/test-areadlinkat.c: New file.
32782
32783         areadlink, areadlink-with-size: add tests
32784         * modules/areadlink-tests: New test.
32785         * modules/areadlink-with-size-tests: Likewise.
32786         * tests/test-areadlink.h: New file.
32787         * tests/test-areadlink.c: Likewise.
32788         * tests/test-areadlink-with-size.c: Likewise.
32789
32790         maint: minor cleanups
32791         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
32792         _UNUSED_PARAMETER_ instead.
32793         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
32794         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
32795         * modules/linkat-tests (Files): Distribute test-link.h.
32796
32797         openat, utimens: whitespace cleanup
32798         * lib/openat.c: Prefer space throughout, rather than mix of 8
32799         spaces vs. tabs.
32800         * lib/at-func.c: Likewise.
32801         * lib/utimens.c: Likewise.
32802
32803         openat: avoid using wrong fd
32804         * lib/openat.c (openat_permissive): Reject user's fd if saving the
32805         working directory chooses same fd.
32806         * lib/at-func.c (AT_FUNC_NAME): Likewise.
32807
32808         mkdir, mkdirat: fix cygwin 1.5.x bug
32809         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
32810         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
32811         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
32812         bug.
32813         (gl_PREREQ_MKDIR): Delete unused macro.
32814         * modules/mkdir (Files): Track file rename.
32815         (configure.ac): Update macro name.
32816         * modules/openat (Depends-on): Add mkdir.
32817         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
32818
32819         mkdir, mkdirat: add tests
32820         * modules/mkdir-tests: New test.
32821         * tests/test-mkdir.h: New file.
32822         * tests/test-mkdir.c: Likewise.
32823         * tests/test-mkdirat.c: Likewise.
32824         * modules/openat-tests (Files): Add new files.
32825         (Makefile.am): Run new test.
32826
32827 2009-10-06  Eric Blake  <ebb9@byu.net>
32828
32829         doc: tweak *at function documentation
32830         * doc/posix-functions/faccessat.texi (faccessat): Mention
32831         known issue with replacement.
32832         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
32833         * doc/posix-functions/linkat.texi (linkat): Likewise.
32834         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
32835         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
32836         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32837         * doc/posix-functions/renameat.texi (renameat): Likewise.
32838         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32839
32840         openat: fix GNU/Hurd bug in unlinkat
32841         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
32842         broken.
32843         * doc/posix-functions/unlink.texi (unlink): Document this.
32844         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
32845
32846         fdopendir: fix GNU/Hurd bug
32847         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
32848         allowing non-directory fds.
32849         * lib/fdopendir.c (rpl_fdopendir): Work around it.
32850         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
32851         * modules/dirent (Makefile.am): Substitute it.
32852         * lib/dirent.in.h (fdopendir): Declare replacement.
32853         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
32854         * tests/test-fdopendir.c (main): Test something other than
32855         /dev/null, since on Hurd that behaves like a directory.
32856
32857         test-symlink: port to GNU/Hurd
32858         * tests/test-symlink.h (test_symlink): Relax expected errno.
32859
32860         doc: tweak more cygwin information
32861         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
32862         now compatible with glibc.
32863         * doc/posix-functions/getopt.texi (getopt): Likewise.
32864
32865         getopt-gnu: add another test
32866         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
32867         guarantee behavior relied on by m4.
32868         * tests/test-getopt.c (main): Use it.
32869         * modules/getopt-posix-tests (Depends-on): Add setenv.
32870         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
32871
32872         getopt: fix compilation on darwin
32873         * lib/getopt.in.h (includes): Leave breadcrumbs during system
32874         include.
32875         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
32876         Reported by Ludovic Courtès.
32877
32878 2009-10-06  Bruno Haible  <bruno@clisp.org>
32879
32880         * modules/size_max (Description): Discourage its use.
32881         Reported by Simon Josefsson.
32882
32883 2009-10-06  Jim Meyering  <meyering@redhat.com>
32884
32885         linkat: avoid compilation failure
32886         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
32887
32888 2009-10-05  Eric Blake  <ebb9@byu.net>
32889
32890         linkat: support Linux 2.6.17
32891         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
32892         linkat on Linux, but allow cache variable override.
32893         * lib/linkat.c (rpl_linkat): Define override.
32894         * modules/linkat (Depends-on): Add symlinkat.
32895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
32896         * modules/unistd (Makefile.am): Substitute it.
32897         * lib/unistd.in.h (linkat): Declare replacement.
32898         Reported by Pádraig Brady.
32899
32900         quotearg: port test to systems with C.UTF-8 locale
32901         * tests/test-quotearg.c (struct result_strings): Add another
32902         member, differentiating between C.ASCII and C.UTF-8 handling.
32903         (compare_strings): Add parameter.
32904         (main): Adjust all callers.
32905
32906         getopt: avoid clash with FreeBSD _getopt_internal
32907         * lib/getopt.in.h (_getopt_internal): Override the name.
32908         * lib/getopt_int.h (includes): Pick up any overrides.
32909         Reported by Reuben Thomas.
32910
32911         hash: allow C89 compilation
32912         * lib/hash.c (check_tuning): Move declaration before statement.
32913         Reported by Reuben Thomas.
32914
32915 2009-10-05  Karl Berry  <karl@gnu.org>
32916
32917         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
32918
32919 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
32920             Bruno Haible  <bruno@clisp.org>
32921
32922         * lib/uname.c (uname): Use a table-driven algorithm to compute
32923         Windows NT versions.
32924
32925 2009-10-04  Bruno Haible  <bruno@clisp.org>
32926
32927         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
32928         program_invocation_short_name.
32929         * modules/progname (configure.ac): Test for presence of
32930         program_invocation_short_name.
32931         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
32932
32933 2009-10-04  Bruno Haible  <bruno@clisp.org>
32934
32935         * lib/progname.c (set_program_name): Fix comment.
32936         Reported by Jim Meyering.
32937
32938 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
32939             Bruno Haible  <bruno@clisp.org>
32940
32941         * lib/uname.c: Include <string.h>.
32942         (uname): Do only one call to GetVersionEx in the common case.
32943
32944 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
32945             Bruno Haible  <bruno@clisp.org>
32946
32947         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
32948         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
32949         (uname): Add support for Windows CE and various non-x86 CPU types.
32950
32951 2009-10-03  Bruno Haible  <bruno@clisp.org>
32952
32953         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
32954         invocation to tests/configure.ac.
32955         Reported by Ian Beckwith <ianb@erislabs.net>.
32956
32957 2009-10-02  Eric Blake  <ebb9@byu.net>
32958
32959         fchdir: avoid compiler warning
32960         * lib/fchdir.c (canonicalize_file_name)
32961         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
32962
32963         test-open: support mingw errno values
32964         * tests/test-open.h (test_open): Relax test.
32965         * tests/test-fopen.h (test_fopen): Likewise.
32966         * tests/test-openat-safer.c (main): Likewise.
32967
32968         open: fix opening directory on mingw
32969         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
32970
32971         test-open: on GNU/Hurd, /dev/null is a directory
32972         * tests/test-fopen.h (main): Rename...
32973         (test_fopen): ...to this.  Use a guaranteed non-directory when
32974         confirming open behavior on trailing slash.
32975         * tests/test-openat-safer.c (main): Likewise.
32976         * tests/test-open.h (main): Likewise....
32977         (test_open): ...to this.
32978         * tests/test-fopen.c (main): Adjust caller.
32979         * tests/test-fopen-safer.c (main): Likewise.
32980         * tests/test-open.c (main): Likewise.
32981         * tests/test-fcntl-safer.c (main): Likewise.
32982         Reported by Samuel Thibault.
32983
32984         rename, fchdir: don't ignore chdir failure
32985         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
32986         * lib/rename.c (rpl_rename) [W32]: Likewise.
32987         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
32988         an empty destination directory if source cannot be renamed,
32989         although there is still possibility for failure.
32990         * doc/posix-functions/rename.texi (rename): Document the race.
32991         Reported by Jim Meyering.
32992
32993         maint: cleanup whitespace in recent commits
32994         * lib/rename.c (rpl_rename): Remove tabs.
32995         * tests/test-link.h (test_link): Likewise.
32996         * lib/fchdir.c (get_name): Likewise.
32997         Reported by Jim Meyering.
32998
32999 2009-10-02  Ben Pfaff  <blp@gnu.org>
33000
33001         relocatable-prog-wrapper: Add missing dependency on
33002         double-slash-root.
33003         * modules/relocatable-prog-wrapper: Add dependency.
33004         Reported by Ian Beckwith <ianb@erislabs.net>.
33005
33006 2009-10-02  Eric Blake  <ebb9@byu.net>
33007
33008         renameat: fix Solaris bugs
33009         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
33010         needed fixing.
33011         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
33012         * modules/stdio (Makefile.am): Substitute it.
33013         * lib/stdio.in.h (renameat): Declare replacement.
33014         * lib/renameat.c (rpl_renameat): Implement fix.
33015
33016         renameat: new module
33017         * modules/renameat: New file.
33018         * lib/renameat.c (renameat): Likewise.
33019         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
33020         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
33021         * modules/stdio (Makefile.am): Substitute them.
33022         * lib/stdio.in.h (renameat): Declare it.
33023         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33024         * doc/posix-functions/renameat.texi (renameat): Likewise.
33025         * modules/renameat-tests: New test.
33026         * tests/test-renameat.c: Likewise.
33027
33028         rename: fix mingw bugs
33029         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
33030         directory overwrite bugs.
33031
33032         rename: fix another cygwin 1.5 bug
33033         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
33034         checks.
33035         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
33036         unnecessary cygwin workarounds.  Also work around bug with moving
33037         full directory onto an empty one.
33038         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
33039
33040         rename-dest-slash: merge into rename module
33041         * modules/rename-dest-slash (Status): Mark obsolete.
33042         (Depends-on): Add rename.
33043         (Files): Let rename do it all.
33044         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
33045         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
33046         * m4/rename-dest-slash.m4: ...so this file can be deleted.
33047         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
33048         * lib/rename.c (rpl_rename): Update comments.
33049
33050         rename: fix cygwin 1.5.x bugs
33051         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
33052         * lib/rename.c (rpl_rename): Work around them.
33053         * modules/rename (Depends-on): Add same-inode.
33054
33055         rename: fix Solaris 10 bug
33056         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
33057         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
33058         was the only bug.
33059
33060         rename: fix Solaris 9 bug
33061         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
33062         on non-directory.  Avoid calling exit.
33063         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
33064         strdup.
33065         * modules/rename-tests (Depends-on): Drop lstat.
33066         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
33067         (gl_PREREQ_RENAME): Delete unused macro.
33068
33069         rename-dest-slash: fix NetBSD bug
33070         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
33071         links.
33072         * modules/rename-dest-slash (Depends-on): Add same-inode.
33073
33074         rename-tests: new test, exposes several platform bugs
33075         * modules/rename-tests: New file.
33076         * tests/test-rename.h: Likewise.
33077         * tests/test-rename.c: Likewise.
33078         * doc/posix-functions/rename.texi (rename): Improve documentation,
33079         including bugs that will eventually be fixed in gnulib.
33080
33081 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
33082
33083         * lib/uname.c: Include <stdlib.h>
33084         (uname): Assume version info is available.
33085
33086 2009-10-02  Jim Meyering  <meyering@redhat.com>
33087
33088         gnu-web-doc-update: correct --help output
33089         * build-aux/gnu-web-doc-update: Make --help output relevant.
33090
33091         gnu-web-doc-update: add standard options
33092         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
33093
33094         gnu-web-doc-update: New module.
33095         Use this script to automatically update the on-line web documentation
33096         for your GNU project at http://www.gnu.org/software/$pkg/manual/
33097         * modules/gnu-web-doc-update: New file, from coreutils.
33098         * build-aux/gnu-web-doc-update: New script.
33099
33100 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
33101
33102         link: LoadLibrary is not needed.
33103         * lib/link.c: Use GetModuleHandle.
33104
33105 2009-10-01  Eric Blake  <ebb9@byu.net>
33106
33107         getopt: bump serial number
33108         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
33109         change.
33110
33111         tests: tighten link, rmdir, and remove tests
33112         * tests/test-link.h (includes): No need to use <config.h> here.
33113         Clean up if directory hard link was created, otherwise test for
33114         trailing '.'.
33115         * tests/test-linkat.c (main): Simplify.
33116         * tests/test-remove.c (main): Enhance test for trailing '.'.
33117         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33118
33119 2009-10-01  Jim Meyering  <meyering@redhat.com>
33120
33121         maint.mk: requiring "make major" was annoying, for a "minor" release.
33122         What is intended is "stable", to contrast with alpha and beta,
33123         so require "make stable", not "make major".
33124         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
33125         (get_tool_versions): Likewise.
33126         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
33127
33128 2009-09-30  Ben Pfaff  <blp@gnu.org>
33129
33130         Fix broken build of replacement for Windows tmpfile().
33131         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
33132         flags argument added along with the 'mkostemp' module.
33133
33134 2009-09-28  Bruno Haible  <bruno@clisp.org>
33135
33136         Avoid identifier clash with POSIX function 'remove' defined as a macro.
33137         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
33138         to 'remove_elt'.
33139         (gl_list_remove): Update.
33140         * lib/gl_list.c (gl_list_remove): Update.
33141         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
33142         to 'remove_elt'.
33143         (gl_oset_remove): Update.
33144         * lib/gl_list.c (gl_oset_remove): Update.
33145         Reported by Eric Blake.
33146
33147 2009-09-28  Eric Blake  <ebb9@byu.net>
33148
33149         doc: mention yet more cygwin 1.7 status
33150         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
33151         cygwin.
33152         * doc/glibc-functions/execvpe.texi (execvpe): New file.
33153         * doc/gnulib.texi (Glibc unistd.h): Mention it.
33154
33155         argp: fix test failure
33156         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
33157         that are not upper-case.  Pass correct range to tolower.
33158
33159 2009-09-27  Jim Meyering  <meyering@redhat.com>
33160
33161         test-yesno: work around sparc-dash here-document infelicity
33162         Without this change, the literal \177 byte in a here document
33163         would make dash 0.5.5.1-3 access uninitialized memory.
33164         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
33165         Instead, use a marker, "@", and filter through tr to create the desired
33166         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
33167
33168 2009-09-27  Bruno Haible  <bruno@clisp.org>
33169
33170         Disable untested support for new flavours of ACLs on AIX.
33171         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
33172         progress.
33173         * lib/set-mode-acl.c (qset_acl): Likewise.
33174
33175 2008-12-07  Bruno Haible  <bruno@clisp.org>
33176
33177         Add support for new flavours of ACLs on AIX. (Untested.)
33178         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
33179         (file_has_acl): Add support for newer AIX.
33180         * lib/set-mode-acl.c (qset_acl): Likewise.
33181         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
33182         Rainer Tammer <tammer@tammer.net>.
33183
33184 2009-09-26  Eric Blake  <ebb9@byu.net>
33185
33186         argp: fix compilation of getopt
33187         * lib/getopt.in.h (includes): Use different guard than glibc.
33188         Reported by Sergey Poznyakoff.
33189
33190         doc: mention more cygwin 1.7 status
33191         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
33192         bug.
33193         * doc/posix-functions/execl.texi (execl): Likewise.
33194         * doc/posix-functions/execle.texi (execle): Likewise.
33195         * doc/posix-functions/execlp.texi (execlp): Likewise.
33196         * doc/posix-functions/execv.texi (execv): Likewise.
33197         * doc/posix-functions/execve.texi (execve): Likewise.
33198         * doc/posix-functions/execvp.texi (execvp): Likewise.
33199         * doc/glibc-functions/canonicalize_file_name.texi
33200         (canonicalize_file_name): Cygwin 1.7 now provides this.
33201         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
33202         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
33203         on AT_SYMLINK_NOFOLLOW.
33204
33205 2009-09-24  Eric Blake  <ebb9@byu.net>
33206
33207         test-linkat: make test more robust
33208         * tests/test-linkat.c (main): Avoid collision with EEXIST.
33209
33210         getopt: fix inclusion guards for cygwin
33211         * modules/getopt-posix (Depends-on): Add include-next.
33212         (Makefile.am): Substitute more items in replacement header.
33213         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
33214         <getopt.h>.
33215         * lib/getopt.in.h (includes): Use split inclusion guard, and
33216         prefer <getopt.h> over include <unistd.h> when one is present.
33217         (option): Also override name of 'struct option'.
33218
33219         same-inode: revert prior change; it is not yet ready
33220         * NEWS: Undo mention of this change.
33221         * lib/same-inode.h (same-inode.h): Undo tri-state change.
33222         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
33223         * lib/cycle-check.c (cycle_check): Likewise.
33224         * lib/same.c (same_name): Likewise.
33225         * lib/at-func2.c (at_func2): Likewise.
33226
33227 2009-09-23  Eric Blake  <ebb9@byu.net>
33228
33229         linkat: new module
33230         * modules/linkat: New file.
33231         * lib/at-func2.c (at_func2): Likewise.
33232         * lib/linkat.c (linkat): Likewise.
33233         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
33234         * lib/openat-priv.h (at_func2): Add declaration.
33235         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33236         * modules/unistd (Makefile.am): Substitute them.
33237         * lib/unistd.in.h (linkat): Declare it.
33238         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33239         * doc/posix-functions/linkat.texi (linkat): Likewise.
33240         * doc/posix-functions/link.texi (link): Tweak wording.
33241         * tests/test-link.c (main): Move guts...
33242         * tests/test-link.h (test_link): ...into new file.
33243         * modules/linkat-tests: New test.
33244         * tests/test-linkat.c: Likewise.
33245         * modules/link-tests (Files): Ship new file.
33246         (Depends-on): Add stdbool.
33247
33248         dirname: add library-safe mdir_name
33249         * lib/dirname.h (mdir_name): New prototype.
33250         * lib/dirname.c (dir_name): Move guts...
33251         (mdir_name): ...to new function that avoids xalloc_die.
33252
33253         fchdir: another mingw fix
33254         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
33255         * lib/fchdir.c (get_name): New helper method; skips canonicalize
33256         on mingw (where it has not yet been ported), and make it optional
33257         elsewhere.
33258         (_gl_register_fd): Use it.
33259
33260         same-inode: make SAME_INODE tri-state, to port to mingw
33261         * NEWS: Mention this change.
33262         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
33263         st_ino always being 0.
33264         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
33265         * lib/cycle-check.c (cycle_check): Likewise.
33266         * lib/same.c (same_name): Likewise.
33267
33268         lstat: avoid mingw compilation error
33269         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
33270         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
33271         lstat ourselves.
33272         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
33273         was adequate.
33274         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
33275         the checks for lstat.
33276         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
33277
33278         link: fix test failure on Solaris 9
33279         * lib/link.c (rpl_link): Don't assume link will catch bogus
33280         trailing slash on source.
33281
33282         test-symlinkat: enhance test
33283         * tests/test-readlink.c (main): Move guts...
33284         * tests/test-readlink.h (test_readlink): ...into new file.
33285         * tests/test-symlink.c (main): Move guts...
33286         * tests/test-symlink.h (test_symlink): ...into new file.
33287         * tests/test-symlinkat.c (main): Use new files for further
33288         coverage.
33289         (do_symlink, do_readlink): New helper functions.
33290         * modules/symlink-tests (Files): Ship new file.
33291         (Depends-on): Add stdbool.
33292         * modules/readlink-tests (Files): Ship new file.
33293         (Depends-on): Add stdbool.
33294         * modules/symlinkat-tests (Files): Use new files.
33295
33296 2009-09-23  Eric Blake  <ebb9@byu.net>
33297
33298         readlink: document portability issue with symlink length
33299         * doc/posix-functions/lstat.texi (lstat): Mention that some file
33300         systems have bogus st_size on symlinks, and mention the
33301         areadlink-with-size module.
33302         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
33303         * doc/posix-functions/readlink.texi (readlink): Mention the
33304         areadlink module, and ERANGE failure.
33305         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
33306         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
33307
33308         readlink: fix Solaris 9 bug with trailing slash
33309         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
33310         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
33311         * doc/posix-functions/readlink.texi (readlink): Document this.
33312         * modules/readlink-tests: New test.
33313         * tests/test-readlink.c: Likewise.
33314
33315         readlink: fix cygwin 1.5.x bug with return type
33316         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
33317         * lib/unistd.in.h (readlink): Use ssize_t.
33318         * lib/readlink.c (readlink): Likewise.
33319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33320         * modules/unistd (Makefile.am): Substitute it.
33321         * lib/unistd.in.h (readlink): Declare replacement.
33322         * doc/posix-functions/readlink.texi (readlink): Document this.
33323
33324         symlink: use throughout gnulib
33325         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
33326         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
33327         symlink is not used.
33328         * modules/symlinkat (Depends-on): Add symlink.
33329         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33330         * modules/canonicalize-tests (Depends-on): Likewise.
33331         * modules/lstat-tests (Depends-on): Likewise.
33332         * modules/openat-tests (Depends-on): Likewise.
33333         * modules/remove-tests (Depends-on): Likewise.
33334         * modules/rmdir-tests (Depends-on): Likewise.
33335         * modules/unlink-tests (Depends-on): Likewise.
33336         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
33337         * tests/test-canonicalize.c (symlink): Likewise.
33338         * tests/test-fstatat.c (symlink): Likewise.
33339         * tests/test-lstat.c (symlink): Likewise.
33340         * tests/test-remove.c (symlink): Likewise.
33341         * tests/test-rmdir.c (symlink): Likewise.
33342         * tests/test-unlink.c (symlink): Likewise.
33343         * tests/test-unlinkat.c (symlink): Likewise.
33344
33345         symlink: new module, for Solaris 9 bug
33346         * modules/symlink: New file.
33347         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
33348         * lib/symlink.c: Likewise.
33349         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33350         * modules/unistd (Makefile.am): Substitute them.
33351         * lib/unistd.in.h (symlink): Declare replacement.
33352         * MODULES.html.sh (File system functions): Mention it.
33353         * doc/posix-functions/symlink.texi (symlink): Likewise.
33354         * modules/symlink-tests: New test.
33355         * tests/test-symlink.c: Likewise.
33356
33357 2009-09-23  Bruno Haible  <bruno@clisp.org>
33358
33359         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
33360         when needed.
33361         Test case: gnulib-tool --import --with-tests atexit inttypes.
33362         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
33363
33364 2009-09-23  Bruno Haible  <bruno@clisp.org>
33365
33366         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
33367         subcommand, not in a subshell.
33368
33369 2009-09-22  Eric Blake  <ebb9@byu.net>
33370
33371         unistd: sort replacement declarations
33372         * lib/unistd.in.h: Sort declarations.
33373
33374         open, openat: minor optimization
33375         * lib/open.c (open): If open succeeded, len is non-zero.
33376         * lib/openat.c (rpl_openat): Likewise.
33377
33378         link-follow: ensure correct result
33379         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
33380         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
33381         distinguish between possible failures.
33382
33383 2009-09-21  Eric Blake  <ebb9@byu.net>
33384
33385         fts: avoid compiler warning
33386         * lib/fts.c (dirent_inode_sort_may_be_useful)
33387         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
33388
33389 2009-09-19  Bruno Haible  <bruno@clisp.org>
33390
33391         * lib/progreloc.c (canonicalize_file_name): New declaration.
33392
33393 2009-09-19  Eric Blake  <ebb9@byu.net>
33394
33395         link: fix quoting
33396         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
33397
33398         openat: fix openat bugs on Solaris 9
33399         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
33400         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
33401         * modules/openat (Depends-on): Add open.
33402         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
33403         * modules/fcntl-h (Makefile.am): Substitute it.
33404         * lib/fcntl.in.h (openat): Declare replacement.
33405         * doc/posix-functions/openat.texi (openat): Document this.
33406
33407         openat: move fstatat and unlinkat into correct files
33408         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
33409         compiled.
33410         * lib/openat.c (fstatat, unlinkat): Move...
33411         * lib/fstatat.c (fstatat): ...into correct files.
33412         * lib/unlinkat.c (unlinkat): Likewise.
33413
33414         openat: fix unlinkat bugs on Solaris 9
33415         * lib/unlinkat.c (unlinkat): New file.
33416         * modules/openat (Depends-on): Add unlink.
33417         (Files): Distribute it.
33418         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
33419         trailing slash behavior is broken.
33420         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33421         * modules/unistd (Makefile.am): Substitute it.
33422         * lib/unistd.in.h (unlinkat): Declare replacement.
33423         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
33424
33425         openat: fix fstatat bugs on Solaris 9
33426         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
33427         stat.
33428         * doc/posix-functions/fstatat.texi (fstatat): Document this.
33429
33430         test-unlinkat: enhance test, to expose Solaris 9 bug
33431         * tests/test-unlink.c (main): Factor guts...
33432         * tests/test-unlink.h (test_rmdir_func): ...into new file.
33433         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
33434         * tests/test-rmdir.c (main): Adjust caller.
33435         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
33436         (unlinker): New helper function.
33437         (rmdirat): Enhance check.
33438         * modules/rmdir-tests (Depends-on): Add stdbool.
33439         * modules/unlink-tests (Depends-on): Likewise.
33440         (Files): Add test-unlink.h.
33441         * modules/openat-tests (Files): Likewise.
33442         (Depends-on): Add unlinkdir.
33443
33444         test-fstatat: new test, to expose Solaris 9 bugs
33445         * tests/test-stat.c (main): Factor guts...
33446         * tests/test-stat.h (test_stat_func): ...into new file.
33447         * tests/test-lstat.c (main): Factor guts...
33448         * tests/test-lstat.h (test_lstat_func): ...into new file.
33449         * tests/test-fstatat.c: New file.
33450         * modules/stat-tests (Files): Add test-stat.h.
33451         * modules/lstat-tests (Files): Add test-lstat.h.
33452         (Depends-on): Add stdbool.
33453         * modules/openat-tests (Depends-on): Add pathmax.
33454         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
33455         (Makefile.am): Run new test.
33456
33457         remove: new module, for mingw and Solaris 9 bugs
33458         * modules/remove: New file.
33459         * lib/remove.c: Likewise.
33460         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
33461         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
33462         * modules/stdio (Makefile.am): Use them.
33463         * lib/stdio.in.h (remove): Declare replacement.
33464         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33465         * doc/posix-functions/remove.texi (remove): Likewise.
33466         * modules/remove-tests: New test.
33467         * tests/test-remove.c: Likewise.
33468
33469         unlink: new module, for Solaris 9 bug
33470         * modules/unlink: New file.
33471         * lib/unlink.c: Likewise.
33472         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
33473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
33474         * modules/unistd (Makefile.am): Use them.
33475         * lib/unistd.in.h (stat): Declare replacement.
33476         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33477         * doc/posix-functions/unlink.texi (unlink): Likewise.
33478         * modules/unlink-tests: New test.
33479         * tests/test-unlink.c: Likewise.
33480
33481         lstat: fix Solaris 9 bug
33482         * lib/lstat.c (lstat): Also check for trailing slash on
33483         non-symlink, non-directories.  Use stat module to simplify logic.
33484         * doc/posix-functions/lstat.texi (lstat): Document it.
33485         * modules/lstat-tests (Depends-on): Add errno, same-inode.
33486         (configure.ac): Check for symlink.
33487         * tests/test-lstat.c (main): Add more tests.
33488
33489         stat: add as dependency to other modules
33490         * modules/chown (Depends-on): Add stat.
33491         * modules/euidaccess (Depends-on): Likewise.
33492         * modules/fchdir (Depends-on): Likewise.
33493         * modules/isdir (Depends-on): Likewise.
33494         * modules/link (Depends-on): Likewise.
33495         * modules/lstat (Depends-on): Likewise.
33496         * modules/mkdir-p (Depends-on): Likewise.
33497         * modules/modechange (Depends-on): Likewise.
33498         * modules/open (Depends-on): Likewise.
33499         * modules/readlink (Depends-on): Likewise.
33500         * modules/same (Depends-on): Likewise.
33501
33502         stat: fix Solaris 9 bug
33503         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
33504         slash.
33505         * lib/stat.c (rpl_stat): Work around it.
33506         * doc/posix-functions/stat.texi (stat): Update documentation.
33507
33508         stat: new module, for mingw bug
33509         * modules/stat: New file.
33510         * lib/stat.c: Likewise.
33511         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
33512         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
33513         * modules/sys_stat (Makefile.am): Use them.
33514         * lib/sys_stat.in.h (stat): Declare replacement.
33515         * lib/openat.c (fstatat): Deal with lstat and stat being function
33516         macros.
33517         * modules/openat (Depends-on): Add inline.
33518         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
33519         * doc/posix-functions/stat.texi (stat): Likewise.
33520         * modules/stat-tests: New test.
33521         * tests/test-stat.c: Likewise.
33522
33523 2009-09-19  Jim Meyering  <meyering@redhat.com>
33524
33525         syntax-check: detect unnecessary inclusion of canonicalize.h
33526         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
33527
33528 2009-09-19  Eric Blake  <ebb9@byu.net>
33529
33530         canonicalize-lgpl: adjust clients to use correct header
33531         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
33532         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
33533         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
33534         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
33535         * lib/progreloc.c (includes): Likewise.
33536
33537 2009-09-19  Jim Meyering  <meyering@redhat.com>
33538
33539         test-posixtm.c: correct a comment
33540         * tests/test-posixtm.c: Correct first-line comment.
33541         Spotted by Eric Blake.
33542
33543 2009-09-16  Jim Meyering  <meyering@redhat.com>
33544
33545         posixtm-tests: make T const-correct; add a test case
33546         * tests/test-posixtm.c (T): Declare const.
33547         Add a test for -(2^31+1).
33548         Remove useless can-succeed-only-in-2002 test.
33549
33550         posixtm-tests: adjust the sole failing test
33551         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
33552         expected output matches what mktime now produces.  Cross-checked via
33553         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
33554
33555         posixtm: move #ifdef'd tests into a new module
33556         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
33557         * tests/test-posixtm.c: ... this new file.
33558         * modules/posixtm-tests: New module.
33559
33560 2009-09-19  Eric Blake  <ebb9@byu.net>
33561
33562         openat: simplify use of at-func.c
33563         * lib/at-func.c (includes): Include prerequisites here, to
33564         simplify requirements on client files.
33565         * lib/openat-priv.h: Add double-inclusion guard.
33566         * lib/faccessat.c (includes): Simplify.
33567         * lib/fchmodat.c (includes): Likewise.
33568         * lib/fchownat.c (includes): Likewise.
33569         * lib/mkdirat.c (includes): Likewise.
33570         * lib/mkfifoat.c (includes): Likewise.
33571         * lib/symlinkat.c (includes): Likewise.
33572
33573         openat: allow return of fd 0
33574         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
33575         * modules/save-cwd (Depends-on): Replace fcntl-safer with
33576         unistd-safer.
33577         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
33578         <fcntl.h>; this module does not leak fds.
33579         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
33580         must be allowed to return 0, leaving openat_safer to add the
33581         safety.
33582         (openat_permissive): Avoid writing to just-opened fd 2 if
33583         restoring the current directory fails.
33584         * lib/openat-die.c (openat_restore_fail): Add comment.
33585         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
33586         (save_cwd): Guarantee safe fd, but without use of open_safer.
33587         * tests/test-openat.c: New test.
33588         * modules/openat-tests (Files, Makefile.am): Distribute and build
33589         new file.
33590
33591         relocatable-prog-wrapper: fix build
33592         * modules/relocatable-prog-wrapper (Files): Update name of
33593         canonicalize m4 file, broken on 2009-09-17.
33594         Reported by emad hajjar <aleppos@hotmail.com>.
33595
33596 2009-09-19  Bruno Haible  <bruno@clisp.org>
33597
33598         * lib/safe-alloc.h: Use the standard header with GPL copyright.
33599         * lib/safe-alloc.c: Likewise.
33600         Reported by Ian Beckwith <ianb@erislabs.net>.
33601
33602 2009-09-18  Bruno Haible  <bruno@clisp.org>
33603
33604         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
33605         Reported by <erobles@sensacd.com.mx>.
33606
33607 2009-09-17  Eric Blake  <ebb9@byu.net>
33608
33609         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
33610         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
33611         slashes when checking if last component is missing.
33612         * tests/test-canonicalize.c (main): Test this.
33613
33614         canonicalize, canonicalize-lgpl: honor // if distinct from /
33615         * modules/canonicalize (Files): Add double-slash-root.m4.
33616         * modules/canonicalize-lgpl (Files): Likewise.
33617         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
33618         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
33619         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
33620         fallback definition.
33621         (canonicalize_filename_mode): Use it to protect //.
33622         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
33623         (__realpath): Likewise.
33624         * tests/test-canonicalize.c (main): Test this.
33625         * tests/test-canonicalize-lgpl.c (main): Likewise.
33626         * modules/canonicalize-tests (Depends-on): Add same-inode.
33627         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33628
33629         canonicalize-lgpl: fix glibc bug with trailing slash
33630         * m4/canonicalize-lgpl.m4: Move contents...
33631         * m4/canonicalize.m4: ...here.
33632         (gl_CANONICALIZE_LGPL): Factor realpath check...
33633         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
33634         glibc 2.3.5 bug, fixed 2005-04-27.
33635         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
33636         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
33637         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
33638         * modules/canonicalize-lgpl (Files): Manage file rename.
33639         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
33640         * modules/stdlib (Makefile.am): Substitute witness.
33641         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
33642         is needed.
33643         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
33644         replacement is required.
33645         * lib/canonicalize.c (canonicalize_file_name): Likewise.
33646         * doc/glibc-functions/canonicalize_file_name.texi
33647         (canonicalize_file_name): Document this.
33648         * doc/posix-functions/realpath.texi (realpath): Likewise.
33649
33650         canonicalize-lgpl: reject non-directory with trailing slash
33651         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
33652         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
33653         catches failures in glibc 2.3.5.
33654         * tests/test-canonicalize.c (main): Likewise.
33655
33656         canonicalize-lgpl: use native realpath if it works
33657         * lib/canonicalize-lgpl.c (realpath): Guard with
33658         FUNC_REALPATH_WORKS.
33659         * lib/stdlib.in.h (realpath): Make declaration optional based on
33660         HAVE_REALPATH.
33661         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
33662         native realpath works.
33663         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
33664         * modules/stdlib (Makefile.am): Substitute witness.
33665
33666         canonicalize, canonicalize-lgpl: use <stdlib.h>
33667         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
33668         (Include): Mention <stdlib.h>.
33669         (configure.ac): Mention functions we provide.
33670         * modules/canonicalize (configure.ac): Likewise.
33671         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
33672         realpath if canonicalize_file_name is missing.
33673         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
33674         * modules/stdlib (Makefile.am): Substitute witnesses.
33675         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
33676         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
33677         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
33678         * NEWS: Document this.
33679         * doc/glibc-functions/canonicalize_file_name.texi
33680         (canonicalize_file_name): Likewise.
33681         * doc/posix-functions/realpath.texi (realpath): Likewise.
33682         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
33683
33684         test-canonicalize: consolidate into single C program
33685         * tests/test-canonicalize.sh: Delete; move setup into...
33686         * tests/test-canonicalize.c (main): ...the program, making it
33687         easier to run in debugger.  Add some tests.
33688         * modules/canonicalize-tests (Files): Remove unused file.
33689         (Depends-on): Add progname.
33690         (configure.ac, Makefile.am): Simplify.
33691
33692         test-canonicalize-lgpl: consolidate into single C program
33693         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
33694         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
33695         easier to run in debugger.  Add some tests.
33696         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
33697         (configure.ac, Makefile.am): Simplify.
33698
33699         canonicalize: avoid resolvepath
33700         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
33701         unnecessary checks.
33702         * lib/canonicalize.c (includes): Simplify.
33703         (canonicalize_file_name): Drop resolvepath implementation.
33704         * modules/canonicalize (Depends-on): Drop filenamecat.
33705
33706         canonicalize: don't lose errno
33707         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
33708         over calls to free.
33709
33710         canonicalize: simplify errno handling
33711         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
33712         assignment.
33713
33714         canonicalize, canonicalize-lgpl: update module dependencies
33715         * modules/canonicalize (Depends-on): Add extensions, lstat,
33716         pathmax, stdlib.
33717         (Files): Drop pathmax.h.
33718         (configure.ac): Adjust macro name.
33719         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
33720         lstat, stdlib, sys_stat.
33721         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
33722         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
33723         extensions.
33724         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
33725         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
33726         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
33727         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
33728         declaration, if available.
33729         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
33730         we can rely on the readlink module.
33731         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
33732         (includes): Use <unistd.h> unconditionally.
33733
33734 2009-09-17  Eric Blake  <ebb9@byu.net>
33735
33736         maint: make Include sections of modules consistent
33737         * modules/alloca: Use only header name; no need to list #include.
33738         * modules/alloca-opt: Likewise.
33739         * modules/arpa_inet: Likewise.
33740         * modules/canon-host: Likewise.
33741         * modules/configmake: Likewise.
33742         * modules/dirent: Likewise.
33743         * modules/eealloc: Likewise.
33744         * modules/environ: Likewise.
33745         * modules/fchdir: Likewise.
33746         * modules/fcntl: Likewise.
33747         * modules/fcntl-h: Likewise.
33748         * modules/gethrxtime: Likewise.
33749         * modules/gettime: Likewise.
33750         * modules/ignore-value: Likewise.
33751         * modules/inet_ntop: Likewise.
33752         * modules/inet_pton: Likewise.
33753         * modules/inttypes: Likewise.
33754         * modules/isnand-nolibm: Likewise.
33755         * modules/isnanf-nolibm: Likewise.
33756         * modules/mbchar: Likewise.
33757         * modules/mbfile: Likewise.
33758         * modules/mbiter: Likewise.
33759         * modules/mbuiter: Likewise.
33760         * modules/netdb: Likewise.
33761         * modules/netinet_in: Likewise.
33762         * modules/nproc: Likewise.
33763         * modules/pagealign_alloc: Likewise.
33764         * modules/poll: Likewise.
33765         * modules/printf-frexp: Likewise.
33766         * modules/pthread: Likewise.
33767         * modules/putenv: Likewise.
33768         * modules/random_r: Likewise.
33769         * modules/relocatable-prog: Likewise.
33770         * modules/search: Likewise.
33771         * modules/select: Likewise.
33772         * modules/selinux-h: Likewise.
33773         * modules/settime: Likewise.
33774         * modules/signal: Likewise.
33775         * modules/size_max: Likewise.
33776         * modules/socklen: Likewise.
33777         * modules/ssize_t: Likewise.
33778         * modules/stdarg: Likewise.
33779         * modules/stdbool: Likewise.
33780         * modules/stddef: Likewise.
33781         * modules/stdint: Likewise.
33782         * modules/stdio: Likewise.
33783         * modules/stdlib: Likewise.
33784         * modules/string: Likewise.
33785         * modules/strings: Likewise.
33786         * modules/sys_file: Likewise.
33787         * modules/sys_ioctl: Likewise.
33788         * modules/sys_select: Likewise.
33789         * modules/sys_socket: Likewise.
33790         * modules/sys_stat: Likewise.
33791         * modules/sys_time: Likewise.
33792         * modules/sys_times: Likewise.
33793         * modules/sys_utsname: Likewise.
33794         * modules/sys_wait: Likewise.
33795         * modules/sysexits: Likewise.
33796         * modules/time: Likewise.
33797         * modules/times: Likewise.
33798         * modules/tmpfile: Likewise.
33799         * modules/trim: Likewise.
33800         * modules/unistd: Likewise.
33801         * modules/wchar: Likewise.
33802         * modules/wctype: Likewise.
33803
33804 2009-09-17  Bruno Haible  <bruno@clisp.org>
33805
33806         Make getdate.y compile on QNX and NetBSD 5 / i386.
33807         * m4/getdate.m4 (gl_GETDATE): Conditionally define
33808         TIME_T_FITS_IN_LONG_INT.
33809         * lib/getdate.y (long_time_t): New type.
33810         (relative_time): Change type of 'seconds' field to long_time_t.
33811         (get_date): Update types of local variables. Check against overflow
33812         during conversion from long_time_t to time_t.
33813         Reported by Matt Kraai <kraai@ftbfs.org>
33814         and Hasso Tepper <hasso@netbsd.org>.
33815
33816 2009-09-17  Bruno Haible  <bruno@clisp.org>
33817
33818         * modules/COPYING: Update copyright years.
33819         * modules/README: Likeiwse.
33820         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
33821         Reported by Ian Beckwith <ianb@erislabs.net>.
33822
33823 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
33824
33825         * users.txt: Update references for gnuit package.
33826
33827 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
33828
33829         * m4/getdelim.m4: Fix typo in copyright line.
33830
33831 2009-09-17  Bruno Haible  <bruno@clisp.org>
33832
33833         * lib/atoll.c: Use the standard header with GPL copyright.
33834         * lib/argz.in.h: Likewise.
33835         * lib/glob.c: Likewise.
33836         * lib/glob-libc.h: Likewise.
33837         * lib/random_r.c: Likewise.
33838         * lib/siglist.h: Likewise.
33839         * lib/strsignal.c: Likewise.
33840         Reported by Ian Beckwith <ianb@erislabs.net>.
33841
33842 2009-09-17  Eric Blake  <ebb9@byu.net>
33843
33844         rmdir: ensure correct dependency order
33845         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
33846
33847 2009-09-17  Bruno Haible  <bruno@clisp.org>
33848
33849         Disable assertion that fails on NetBSD 5 / i386.
33850         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
33851         Reported by Sam Steingold <sds@gnu.org>
33852         and Hasso Tepper <hasso@netbsd.org>.
33853
33854 2009-09-16  Eric Blake  <ebb9@byu.net>
33855
33856         unlinkdir: port to mingw
33857         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
33858         on which no one can unlink a directory.
33859
33860         stdlib: sort witness names
33861         * modules/stdlib (Makefile.am): Sort replacements.
33862         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
33863         * lib/stdlib.in.h: Likewise.
33864
33865         parse-duration-tests: avoid link failure
33866         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
33867         LIBINTL.
33868         Reported by Tom G. Christensen.
33869
33870         openat-tests: ensure unlinkat behaves like rmdir
33871         * tests/test-rmdir.c (main): Factor guts...
33872         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
33873         * modules/rmdir-tests (Files): Ship new file.
33874         * modules/openat-tests: New test.
33875         * tests/test-unlinkat.c: Likewise.
33876
33877         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
33878         * modules/rmdir-errno (Status, Notice): Now obsolete.
33879
33880         rmdir: work around cygwin 1.5.x and mingw bugs
33881         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
33882         * lib/rmdir.c (rmdir): Work around it.
33883         * modules/rmdir (Status, Notice): No longer obsolete.
33884         (Files): Add dos.m4.
33885         (Depends-on): Add unistd.
33886         (configure.ac): Set witnesses.
33887         (License): Relax to LGPLv2+.
33888         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
33889         * modules/unistd (Makefile.am): Substitute witnesses.
33890         * lib/unistd.in.h (rmdir): Declare replacement.
33891         * doc/posix-functions/rmdir.texi (rmdir): Document this.
33892         * modules/rmdir-tests: New tests.
33893         * tests/test-rmdir.c: Likewise.
33894
33895 2009-09-15  Eric Blake  <ebb9@byu.net>
33896
33897         fchdir: improve use of replacement functions
33898         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
33899         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
33900         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
33901         REPLACE_CLOSEDIR.
33902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
33903         * modules/sys_stat (Makefile.am): Substitute correct witness.
33904         * modules/dirent (Makefile.am): Likewise.
33905         * modules/unistd (Makefile.am): Likewise.
33906         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
33907         * lib/unistd.in.h (dup): Likewise.
33908         * lib/sys_stat.in.h (fstat): Likewise.
33909
33910         maint: ignore gnulib-tool temp files
33911         * .gitignore: Ignore files created during gnulib-tool --test.
33912
33913 2009-09-13  Jim Meyering  <meyering@redhat.com>
33914
33915         posixtm: don't reject a time that specify "60" as the number of seconds
33916         * lib/posixtm.c (posixtime): The code to reject invalid dates
33917         would also reject a time specified with the .60 suffix.
33918         But POSIX allows that, in order to accommodate leap seconds.
33919         So don't reject it.
33920         (main): Adjust tests accordingly.
33921         * modules/posixtm (Depends-on): Add stpcpy.
33922
33923 2009-09-11  Jim Meyering  <meyering@redhat.com>
33924
33925         announce-gen: include [$release_type] in emitted Subject:
33926         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
33927         e.g., [stable] in the emitted Subject: line.
33928
33929 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33930
33931         Remove obsolete macros from several modules.
33932         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
33933         obsolete Autoconf macros with their modern counterparts.
33934         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
33935         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
33936         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
33937         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
33938         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
33939         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
33940         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
33941         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
33942         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
33943         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
33944         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
33945         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
33946         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
33947         * m4/sockets.m4 (gl_SOCKETS): Likewise.
33948         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
33949         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
33950         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
33951         * m4/time_r.m4 (gl_TIME_R): Likewise.
33952         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
33953         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
33954         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
33955
33956         Fix copyright header in build-aux scripts.
33957         * build-aux/git-version-gen: Fix copyright header to match GPLv3
33958         recommendation.
33959         * build-aux/ncftpput-ftp: Likewise.
33960         * build-aux/update-copyright: Likewise.
33961
33962 2009-09-09  Eric Blake  <ebb9@byu.net>
33963
33964         test-link: allow Linux choice of errno
33965         * tests/test-link.c (main): Relax test for alternate error.
33966
33967         strndup: fix improper m4 caching
33968         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
33969         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
33970         (gl_PREREQ_STRNDUP): Delete.
33971         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
33972         * modules/string (Makefile.am): Substitute it.
33973         * lib/string.in.h (strndup): Modernize prototype.
33974
33975         getcwd: port to mingw
33976         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
33977         different from the POSIX assumptions made throughout the getcwd
33978         module; fortunately, the mingw getcwd does not need replacement.
33979         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
33980         * modules/getcwd-tests: New test.
33981         * tests/test-getcwd.c: Likewise.
33982
33983         link: fix platform bugs
33984         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
33985         * lib/link.c (link): Work around them.  Fix related mingw bug.
33986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
33987         * modules/unistd (Makefile.am): Substitute it.
33988         * lib/unistd.in.h (link): Declare replacement.
33989         * doc/posix-functions/link.texi (link): Document this.
33990         * modules/link (Depends-on): Add strdup-posix, sys_stat.
33991
33992         test-link: consolidate into single C program, test more cases
33993         * tests/test-link.sh: Delete.
33994         * tests/test-link.c: Test more error conditions.  Exposes bugs on
33995         at least Cygwin and Solaris.
33996         * modules/link-tests (Files): Remove unused file.
33997         (Depends-on): Add errno, sys_stat.
33998         (Makefile.am): Simplify.
33999
34000 2009-09-08  Bruno Haible  <bruno@clisp.org>
34001
34002         Work around towlower, towupper bug on mingw.
34003         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
34004         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
34005         * doc/posix-functions/towlower.texi: Mention the mingw bug.
34006         * doc/posix-functions/towupper.texi: Likewise.
34007         Reported by Eric Blake.
34008
34009 2009-09-08  Jim Meyering  <meyering@redhat.com>
34010
34011         build: don't try to run autoheader if we don't use it
34012         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
34013         is not used in configure.ac.
34014
34015 2009-09-08  Eric Blake  <ebb9@byu.net>
34016
34017         euidaccess: fix compilation error
34018         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
34019
34020         rawmemchr: relax license
34021         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
34022         okay.
34023         Reported by Jim Meyering.
34024
34025         mkfifoat: new module
34026         * modules/mkfifoat: New file.
34027         * lib/mkfifoat.c: Likewise.
34028         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
34029         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34030         * modules/sys_stat (Makefile.am): Use them.
34031         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
34032         * MODULES.html.sh (File system functions): Mention module.
34033         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34034         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34035         * modules/mkfifoat-tests: New test.
34036         * tests/test-mkfifoat.c: Likewise.
34037
34038         strchrnul: relax license
34039         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
34040         okay.
34041         Reported by Jim Meyering.
34042
34043 2009-09-08  Eric Blake  <ebb9@byu.net>
34044
34045         fstatat: fix compilation on Solaris
34046         * lib/fstatat.c (includes): Add fcntl.h.
34047         Reported by Pádraig Brady.
34048
34049 2009-09-07  Eric Blake  <ebb9@byu.net>
34050
34051         rename: modernize replacement
34052         * modules/rename (Depends-on): Add stdio.
34053         (configure.ac): Declare witness.
34054         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
34055         stdio take care of replacement.
34056         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
34057         * modules/stdio (Makefile.am): Substitute them.
34058         * lib/stdio.in.h (rename): Declare replacement.
34059         * lib/rename.c (includes): Allow cross-compilation to non-windows
34060         machines.
34061         * doc/posix-functions/rename.texi (rename): Improve
34062         documentation.
34063
34064         stdio: sort witness names
34065         * modules/stdio (Makefile.am): Sort replacements.
34066         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34067         * lib/stdio.in.h: Likewise.
34068
34069         getcwd: minor cleanups
34070         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
34071         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
34072
34073         openat: provide more convenience names
34074         * modules/faccessat (configure.ac): Add C witness.
34075         * lib/unistd.in.h (readlinkat): Fix typo.
34076         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
34077         convenience wrappers.
34078         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
34079         wrappers in syntax checks.
34080
34081 2009-09-06  Eric Blake  <ebb9@byu.net>
34082
34083         doc: fix comments in recent patches
34084         * lib/faccessat.c: Mention correct function.
34085         * lib/fchmodat.c: Likewise.
34086         * lib/fchownat.c: Likewise.
34087         * lib/symlinkat.c: Likewise.
34088         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
34089         constants.
34090
34091         faccessat, symlinkat: continue cleanup of previous patch
34092         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
34093         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
34094         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
34095         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
34096         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
34097         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
34098         set.
34099
34100 2009-09-06  Bruno Haible  <bruno@clisp.org>
34101
34102         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
34103         (fstatat): Declare if GNULIB_FSTATAT is set.
34104         (mkdirat): Declare if GNULIB_MKDIRAT is set.
34105         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
34106         (unlinkat): Declare if GNULIB_UNLINKAT is set.
34107         * modules/fcntl-h (Files): Remove m4/openat.m4.
34108         * modules/sys_stat (Files): Remove m4/openat.m4.
34109         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
34110         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
34111         * modules/unistd (Files): Remove m4/openat.m4.
34112         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
34113         GNULIB_OPENAT.
34114         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
34115         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
34116         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
34117         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
34118         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
34119         gl_OPENAT_DEFAULTS.
34120         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
34121         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
34122         Don't require gl_OPENAT_DEFAULTS.
34123         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
34124         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
34125         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
34126         (gl_OPENAT_DEFAULTS): Remove macro.
34127
34128 2009-09-06  Bruno Haible  <bruno@clisp.org>
34129
34130         * modules/openat (configure.ac): Remove unneeded witness.
34131
34132 2009-09-06  Bruno Haible  <bruno@clisp.org>
34133
34134         Set errno to ENOSYS when a function is entirely unsupported.
34135         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
34136         EOPNOTSUPP.
34137         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
34138         * modules/chown (Depends-on): Remove errno.
34139
34140 2009-09-06  Bruno Haible  <bruno@clisp.org>
34141
34142         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
34143
34144 2009-09-06  Bruno Haible  <bruno@clisp.org>
34145
34146         * lib/sys_stat.in.h: Fix preprocessor command indentation.
34147
34148 2009-09-06  Ben Pfaff  <blp@gnu.org>
34149             Bruno Haible  <bruno@clisp.org>
34150
34151         Work around a glibc bug in strtok_r.
34152         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
34153         Undefine if UNDEFINE_STRTOK_R is set.
34154         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
34155         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34156         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
34157         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
34158         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
34159         UNDEFINE_STRTOK_R.
34160         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
34161
34162 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
34163
34164         exclude: minor fix
34165         * lib/exclude.c: Include wctype.h
34166
34167 2009-09-06  Akim Demaille  <demaille@gostai.com>
34168
34169         bootstrap: improve error message
34170         * build-aux/bootstrap (find_tool): Upon failure, report the list
34171         of candidates.
34172         Honor the initial value of the envvar.
34173
34174 2009-09-05  Eric Blake  <ebb9@byu.net>
34175
34176         symlinkat: new module
34177         * modules/symlinkat: New file.
34178         * lib/symlinkat.c: Likewise.
34179         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
34180         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
34181         * modules/unistd (Makefile.am): Use them.
34182         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
34183         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
34184         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
34185         * MODULES.html.sh (File system functions): Mention module.
34186         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34187         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34188         * modules/symlinkat-tests: New test.
34189         * tests/test-symlinkat.c: Likewise.
34190
34191         test-openat-safer: add more checks
34192         * tests/test-openat-safer.c (main): Check more code paths.
34193
34194 2009-09-05  Jim Meyering  <meyering@redhat.com>
34195
34196         syntax-check: detect unnecessary inclusion of openat.h
34197         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
34198
34199 2009-09-05  Bruno Haible  <bruno@clisp.org>
34200
34201         Support towlower, towupper.
34202         * doc/posix-functions/towlower.texi: Mention module wctype.
34203         * doc/posix-functions/towupper.texi: Likewise.
34204         * lib/wctype.in.h (towlower, towupper): New functions.
34205         * tests/test-wctype.c: Include stdio.h, stdlib.h.
34206         (ASSERT): New macro.
34207         (e): New variable.
34208         (main): Test also towlower, towupper. Test WEOF argument.
34209         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
34210
34211 2009-09-05  Bruno Haible  <bruno@clisp.org>
34212
34213         Fix conversion behaviour when the input is invalid.
34214         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
34215         mark occurring in first pass of indirect conversion.
34216         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
34217         input.
34218         Found by clang's static analyzer.
34219
34220 2009-09-05  Bruno Haible  <bruno@clisp.org>
34221
34222         * tests/test-striconveh.c (main): Test indirect conversion on platforms
34223         where direct conversion is possible.
34224
34225 2009-09-04  Eric Blake  <ebb9@byu.net>
34226
34227         openat: fail with ENOENT on empty name
34228         * lib/openat-proc.c (openat_proc_name): Special-case the empty
34229         buffer.
34230
34231         link-follow: fix logic bug in prior patch
34232         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
34233         reversed sense of yes and no in prior patch.  Avoid confusing
34234         compilation failure with desired semantics.
34235
34236         link-follow: accomodate mingw and cross-compilation
34237         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
34238         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
34239         cross-compilation results to -1, to make linkat easier to
34240         implement when cross-compiling.  Trivially support mingw.
34241         * modules/link-follow (configure.ac): Call new name.
34242         * NEWS: Mention this.
34243
34244 2009-09-03  Eric Blake  <ebb9@byu.net>
34245
34246         faccessat: compile replacement
34247         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
34248         needed.
34249
34250         fts: fix compilation error
34251         * lib/fts.c (includes): Re-add "openat.h", for
34252         openat_needs_fchdir.
34253
34254         faccessat: new module
34255         * modules/faccessat: New file.
34256         * lib/faccessat.c: Likewise.
34257         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
34258         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34259         * modules/unistd (Makefile.am): Use it.
34260         * lib/unistd.in.h (faccessat): Declare it.
34261         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
34262         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
34263         * MODULES.html.sh (File system functions): Mention it.
34264         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
34265         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
34266
34267         euidaccess: prefer POSIX over non-standard implementation
34268         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
34269         * lib/euidaccess.c (euidaccess): Use it if available.
34270
34271         openat: make template easier to use
34272         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
34273         AT_FUNC_F2 to be undefined.
34274         (VALIDATE_FLAG): New macro; use it to reject bad flags.
34275         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
34276         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
34277         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
34278         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
34279         Likewise.
34280         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
34281         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
34282         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
34283         Likewise.
34284
34285         openat: declare in POSIX headers
34286         * NEWS: Mention this.
34287         * modules/openat (configure.ac): Declare witnesses.
34288         (Depends-on): Add fcntl-h, sys_stat, unistd.
34289         (Include): Mention correct headers.
34290         * modules/fcntl-h (Depends-on): Add link-warning.
34291         (Files): Add openat.m4.
34292         (Makefile.am): Substitute witnesses.
34293         * modules/sys_stat (Files, Makefile.am): Likewise.
34294         * modules/unistd (Files, Makefile.am): Likewise.
34295         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
34296         (gl_OPENAT_DEFAULTS): New macro.
34297         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
34298         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
34299         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
34300         (SYS_STAT_H): Remove unused variable.
34301         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
34302         * lib/fcntl--.h (includes): Remove unneeded header.
34303         * lib/openat-safer.c (includes): Likewise.
34304         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
34305         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
34306         appropriate headers.
34307         (__OPENAT_PREFIX): Delete.
34308         * lib/fcntl.in.h (openat): Provide declaration.
34309         (AT_FDCWD): Fix Solaris bug.
34310         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
34311         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
34312         * lib/fchmodat.c (includes):  Adjust to find declaration.
34313         * lib/fchownat.c (includes): Likewise.
34314         * lib/mkdirat.c (includes): Likewise.
34315         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
34316         still visible.
34317
34318 2009-09-02  Eric Blake  <ebb9@byu.net>
34319
34320         errno: use consistently
34321         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
34322         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
34323         * lib/canonicalize.c (ELOOP): Likewise.
34324         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
34325         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
34326         * lib/lchown.c (EOPNOTSUPP): Likewise.
34327         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
34328         * lib/savewd.c (ESTALE): Likewise.
34329         * lib/settime.c (ENOSYS): Likewise.
34330         * lib/utimens.c (ENOSYS): Likewise.
34331         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
34332         * lib/chdir-safer.c (ELOOP): Likewise.
34333         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
34334         * modules/c-stack (Depends-on): Add errno.
34335         * modules/canonicalize (Depends-on): Likewise.
34336         * modules/chdir-safer (Depends-on): Likewise.
34337         * modules/fdopendir (Depends-on): Likewise.
34338         * modules/inet_ntop (Depends-on): Likewise.
34339         * modules/inet_pton (Depends-on): Likewise.
34340         * modules/lchown (Depends-on): Likewise.
34341         * modules/openat (Depends-on): Likewise.
34342         * modules/savewd (Depends-on): Likewise.
34343         * modules/settime (Depends-on): Likewise.
34344         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
34345
34346         fts: avoid leaking fds
34347         * modules/fts (Depends-on): Add cloexec.
34348         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
34349         flag.
34350
34351         fts: make directory fds more robust
34352         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
34353         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
34354
34355         backupfile, chdir-long, fts, savedir: make safer
34356         * lib/backupfile.c (includes): Use "dirent--.h", since
34357         numbered_backup can write to stderr during readdir.
34358         * lib/savedir.c (includes): Likewise.
34359         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
34360         emulation can write to stderr on failure.
34361         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
34362         * lib/getcwd.c: Document why opendir_safer is unused.
34363         * lib/glob.c: Likewise.
34364         * lib/scandir.c: Likewise.
34365         * lib/openat-proc.c: Likewise, for open_safer.
34366         * modules/backupfile (Depends-on): Add dirent-safer.
34367         * modules/savedir (Depends-on): Likewise.
34368         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
34369         * modules/chdir-long (Depends-on): Add openat-safer.
34370
34371         openat-safer: new module
34372         * modules/openat-safer: New file.
34373         * lib/openat-safer.c: Likewise.
34374         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
34375         * lib/fcntl-safer.h (openat_safer): Declare.
34376         * lib/fcntl--.h (openat): Override.
34377         * MODULES.html.sh (File descriptor based I/O): Mention it.
34378         * lib/openat.h: Add double-inclusion guards.
34379         * lib/openat.c (includes): Only include "fcntl-safer.h", not
34380         "fcntl--.h", so we can implement openat.
34381         * modules/openat-safer-tests: New test.
34382         * tests/test-openat-safer.c: New file.
34383
34384         dirent-safer: new module
34385         * modules/dirent-safer: New file.
34386         * lib/dirent--.h: Likewise.
34387         * lib/dirent-safer.h: Likewise.
34388         * lib/opendir-safer.c: Likewise.
34389         * m4/dirent-safer.m4: Likewise.
34390         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
34391         * modules/dirent-safer-tests: New test.
34392         * tests/test-dirent-safer.c: New file.
34393         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
34394
34395         fdopendir: optimize on mingw
34396         * lib/unistd.in.h (_gl_directory_name): New prototype.
34397         * lib/fchdir.c (_gl_directory_name): Implement it.
34398         (fchdir): Use it to simplify implementation.
34399         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
34400         fchdir, when available, to avoid calling [f]chdir().
34401
34402         fdopendir: split into its own module
34403         * lib/openat.c (fdopendir): Move...
34404         * lib/fdopendir.c: ...into new file.
34405         * modules/fdopendir: New module.
34406         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
34407         * modules/openat (Depends-on): Add fdopendir.
34408         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
34409         fdopendir here.
34410         * modules/savedir (Depends-on): Only need fdopendir, not full
34411         openat.
34412         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
34413         * lib/openat.h (fdopendir): Drop prototype.
34414         * lib/dirent.in.h (fdopendir): Provide prototype.
34415         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
34416         * modules/dirent (Makefile.am): Substitute them.
34417         * MODULES.html.sh (File system functions): Mention it.
34418         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
34419         * modules/fdopendir-tests: New file.
34420         * tests/test-fdopendir.c: Likewise.
34421
34422         fchdir: use more consistent macro convention
34423         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
34424         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
34425         REPLACE_FCHDIR, rather than relying on config.h macros.
34426         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
34427         inside a single make-time REPLACE_FCHDIR block, rather than using
34428         the config.h FCHDIR_REPLACEMENT.
34429         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
34430         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
34431         Manage fstat replacement.
34432         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
34433         REPLACE_FCHDIR.
34434         * modules/sys_stat (Files): Add m4/unistd_h.m4.
34435         (Makefile.am): Substitute REPLACE_FCHDIR.
34436         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
34437         FCHDIR_REPLACEMENT.
34438         * lib/dup-safer.c (dup_safer): Likewise.
34439         * lib/dup2.c (rpl_dup2): Likewise.
34440         * lib/dup3.c (rpl_dup3): Likewise.
34441         * lib/open.c (rpl_open): Likewise.
34442
34443         fchdir: simplify error handling, and support dup3
34444         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
34445         stdbool, malloc-posix, realloc-posix.
34446         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
34447         (ensure_dirs_slot): Return false on allocation failure.
34448         (rpl_dup2): Delete.
34449         (_gl_register_dup): New function.
34450         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
34451         (_gl_register_fd): Close fd on allocation failure.
34452         * lib/fcntl.in.h (_gl_register_fd): Update signature.
34453         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
34454         prototype.
34455         (rpl_dup2_fchdir): Delete prototype.
34456         * lib/open.c (open): Update caller.
34457         * lib/dup2.c (dup2): Track fchdir metadata.
34458         * lib/dup3.c (dup3): Likewise.
34459         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
34460         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
34461
34462 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34463
34464         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
34465         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
34466         don't pass arguments to AC_OUTPUT.
34467
34468 2009-09-02  Bruno Haible  <bruno@clisp.org>
34469
34470         * modules/mkdtemp (License): Relicense under LGPLv2+.
34471         Reported by Paolo Bonzini.
34472
34473 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34474
34475         Replace uses of obsolete autoconf macros in Jim's modules.
34476         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
34477         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
34478         can evoke a warning from autoconf when run with -Wobsolete
34479         enabled.  They were declared obsolete for good reasons (see
34480         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
34481         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
34482         should not continue using the deprecated macros.
34483         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
34484         obsolete Autoconf macros with modern counterparts.
34485         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
34486         * m4/dos.m4 (gl_AC_DOS): Likewise.
34487         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
34488         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
34489         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
34490         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
34491         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
34492         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
34493         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
34494         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
34495         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
34496         Likewise.
34497         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
34498         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
34499         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
34500         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
34501         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
34502         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
34503
34504 2009-09-01  Eric Blake  <ebb9@byu.net>
34505
34506         fchdir: fix off-by-one bug in previous patch
34507         * lib/fchdir.c (rpl_fstat): Use correct bounds.
34508         (_gl_unregister_fd): Delete useless if.
34509
34510 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
34511
34512         maint.mk: sort the list of syntax-check rules
34513         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
34514         easier to get a sense of progress when the rules are run sequentially
34515         and take a long time.
34516
34517 2009-09-01  Simon Josefsson  <simon@josefsson.org>
34518
34519         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
34520         * modules/netinet_in: Likewise.
34521         * modules/sys_file: Likewise.
34522         * modules/sys_ioctl: Likewise.
34523         * modules/sys_select: Likewise.
34524         * modules/sys_socket: Likewise.
34525         * modules/sys_stat: Likewise.
34526         * modules/sys_time: Likewise.
34527         * modules/sys_times: Likewise.
34528         * modules/sys_utsname: Likewise.
34529         * modules/sys_wait: Likewise.
34530
34531 2009-09-01  Jim Meyering  <meyering@redhat.com>
34532
34533         fts: help ensure that return values are not ignored
34534         * lib/fts_.h (__GNUC_PREREQ): Define.
34535         (__attribute_warn_unused_result__): Define.
34536         (fts_children, fts_close, fts_open, fts_read): Declare with
34537         __attribute_warn_unused_result__.
34538
34539         fts: fts_close now fails also when closing a dir file descriptor fails
34540         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
34541         and propagate to caller, along with errno.
34542
34543         announce-gen: correct formatting in --help output
34544         * build-aux/announce-gen (usage): Move the one-line description in
34545         --help output "up", to where it belongs, just after Usage:.
34546
34547 2009-08-31  Eric Blake  <ebb9@byu.net>
34548
34549         fchdir: port to mingw
34550         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
34551         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
34552         opened, then use a substitute.
34553         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
34554         replacement.
34555         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
34556         (_gl_register_fd): No need to check stat if open already filters
34557         all directories.
34558         (fchdir): Fix error condition to match POSIX.
34559         * modules/fchdir (Depends-on): Add sys_stat.
34560         * doc/posix-functions/open.texi (open): Document the limitation.
34561         * modules/fchdir-tests: New file.
34562         * tests/test-fchdir.c: Likewise.
34563
34564         canonicalize: allow cross-testing from cygwin to mingw
34565         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
34566         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
34567         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
34568         Likewise.
34569         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
34570         target does not support symlinks.
34571         * tests/test-canonicalize-lgpl.sh: Likewise.
34572
34573         chown: avoid compilation warning on mingw
34574         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
34575         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
34576         mingw.
34577         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
34578         * modules/chown (Depends-on): Add errno.
34579
34580 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
34581
34582         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
34583         command.
34584
34585 2009-08-31  Jim Meyering  <meyering@redhat.com>
34586
34587         canonicalize: remove useless initialization
34588         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
34589         initialization of local, "end".
34590
34591 2009-08-30  Bruno Haible  <bruno@clisp.org>
34592
34593         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
34594         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
34595         ENOSYS.
34596
34597 2009-08-30  Bruno Haible  <bruno@clisp.org>
34598
34599         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
34600         /usr/xpg4/bin/tr when it exists.
34601         * tests/test-pipe-filter-gi1.sh: Likewise.
34602
34603 2009-08-30  Bruno Haible  <bruno@clisp.org>
34604
34605         Work around deficient /usr/bin/id program on Solaris.
34606         * tests/test-file-has-acl.sh (ID): New variable.
34607         * tests/test-set-mode-acl.sh (ID): Likewise.
34608         * tests/test-copy-acl.sh (ID): Likewise.
34609         * tests/test-copy-file.sh (ID): Likewise.
34610
34611 2009-08-30  Bruno Haible  <bruno@clisp.org>
34612
34613         New module 'xstriconveh'.
34614         * lib/xstriconveh.h: New file.
34615         * lib/xstriconveh.c: New file.
34616         * modules/xstriconveh: New file.
34617
34618 2009-08-30  Bruno Haible  <bruno@clisp.org>
34619
34620         Make it easier to use mem_cd_iconveh.
34621         * lib/striconveh.h (iconveh_t): New type.
34622         (iconveh_open, iconveh_close): New declarations.
34623         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
34624         with a single 'const iconveh_t *' argument.
34625         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
34626         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
34627         with a single 'const iconveh_t *' argument.
34628         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
34629         * tests/test-striconveh.c (main): Update.
34630         * NEWS: Mention the change.
34631
34632 2009-08-30  Bruno Haible  <bruno@clisp.org>
34633
34634         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
34635         problem.
34636
34637 2009-08-30  Bruno Haible  <bruno@clisp.org>
34638
34639         Work around iconv_open problem on Solaris.
34640         * lib/iconv_open-solaris.gperf: New file.
34641         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
34642         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
34643         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
34644         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
34645         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
34646         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
34647
34648 2009-08-29  Jim Meyering  <meyering@redhat.com>
34649
34650         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
34651         * top/maint.mk (cvs-check): Remove target; it was just an alias
34652         to the better-named vc-diff-check.
34653         (maintainer-distcheck): Remove rule.  It was used only from
34654         the (alpha/beta/major) target, and all of its commands but one
34655         were coreutils-specific.
34656         (vc-dist): Remove rule.
34657         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
34658         Run vc-diff-check, not vc-dist.
34659         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
34660
34661 2009-08-27  Bruno Haible  <bruno@clisp.org>
34662
34663         * tests/test-bitrotate.c (main): Remove test that uses a shift count
34664         of 0.
34665
34666 2009-08-27  Bruno Haible  <bruno@clisp.org>
34667
34668         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
34669         compilers.
34670         * doc/func.texi: Document the SunPRO C bug.
34671
34672 2009-08-27  Bruno Haible  <bruno@clisp.org>
34673
34674         Fix link error on Solaris.
34675         * tests/test-parse-duration.c (xstrdup): Remove function.
34676
34677 2009-08-26  Pádraig Brady  <P@draigbrady.com>
34678
34679         ignore-value: handle pointer types, too
34680         * lib/ignore-value.h (__attribute__): Remove definition.
34681         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
34682         of a more concise and more-often effective "(void) i" statement.
34683         (ignore_ptr): New function to suppress warnings from functions that
34684         return pointers, and to make it explicit that one function doesn't
34685         handle all cases.
34686
34687 2009-08-25  Bruno Haible  <bruno@clisp.org>
34688
34689         dup2: work around a Linux bug.
34690         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
34691         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
34692         * doc/posix-functions/dup2.texi: Mention the Linux bug.
34693         Reported by Simon Josefsson.
34694
34695 2009-08-25  Jim Meyering  <meyering@redhat.com>
34696
34697         libguestfs uses gnulib
34698         * users.txt: Add libguestfs.
34699
34700 2009-08-24  Eric Blake  <ebb9@byu.net>
34701
34702         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
34703         * lib/pipe2.c (includes): Add binary-io.h.
34704         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
34705
34706 2009-08-24  Bruno Haible  <bruno@clisp.org>
34707
34708         Tolerate declared but missing accept4 syscall.
34709         * lib/accept4.c (accept4): Invoke original accept4 function first, if
34710         available.
34711         * lib/sys_socket.in.h (accept4): If the function is already present,
34712         override it.
34713         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
34714         * modules/accept4 (Makefile.am): Compile accept4.c always.
34715         Reported by Paolo Bonzini and Eric Blake.
34716
34717 2009-08-23  Bruno Haible  <bruno@clisp.org>
34718
34719         New module 'accept4'.
34720         * lib/sys_socket.in.h (accept4): New declaration.
34721         * lib/accept4.c: New file.
34722         * m4/accept4.m4: New file.
34723         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
34724         GNULIB_ACCEPT4, HAVE_ACCEPT4.
34725         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
34726         HAVE_ACCEPT4.
34727         * modules/accept4: New file.
34728         * doc/glibc-functions/accept4.texi: Mention the new module.
34729
34730 2009-08-24  Jim Meyering  <meyering@redhat.com>
34731
34732         progname: also set global program_invocation_name, when possible
34733         Before this change, a libtool-enabled program that calls glibc's
34734         error function would report the program name as
34735         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
34736         * modules/progname (configure.ac): Check for a declaration of
34737         program_invocation_name.
34738         * lib/progname.c:  Include <errno.h>.
34739         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
34740         Set program_invocation_name.
34741
34742 2009-08-23  Bruno Haible  <bruno@clisp.org>
34743
34744         * lib/dup3.c: Include <string.h>.
34745
34746 2009-08-23  Bruno Haible  <bruno@clisp.org>
34747
34748         * lib/dup3.c (dup3): Test only once whether the system actually exists.
34749         * lib/pipe2.c (pipe2): Likewise.
34750         Suggested by Eric Blake.
34751
34752 2009-08-23  Bruno Haible  <bruno@clisp.org>
34753
34754         Tolerate declared but missing dup3 syscall.
34755         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
34756         * lib/unistd.in.h (dup3): If the function is already present,
34757         override it.
34758         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
34759         * modules/dup3 (Makefile.am): Compile dup3.c always.
34760         Reported by Paolo Bonzini.
34761
34762 2009-08-23  Bruno Haible  <bruno@clisp.org>
34763
34764         Tolerate declared but missing pipe2 syscall.
34765         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
34766         available.
34767         * lib/unistd.in.h (pipe2): If the function is already present,
34768         override it.
34769         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
34770         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
34771         Reported by Paolo Bonzini.
34772
34773 2009-08-23  Bruno Haible  <bruno@clisp.org>
34774
34775         * lib/pipe2.c (pipe2): Move #ifs inside function.
34776
34777 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
34778
34779         quotearg: document limitations of quote_these_too
34780         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
34781         those limitations are created.
34782         * lib/quotearg.h (set_char_quoting): Document that digits and
34783         letters that are special after backslash are not permitted.
34784         (quotearg_char): Cross-reference set_char_quoting documentation.
34785
34786 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
34787
34788         quotearg: implement custom_quoting_style
34789         * lib/quotearg.c: (struct quoting_options): Add left_quote and
34790         right_quote fields.
34791         (set_custom_quoting): New public function.
34792         (quotearg_buffer_restyled): Add left_quote and right_quote
34793         arguments, handle them very much like locale quoting, and update
34794         all uses.
34795         (quotearg_n_custom): New public function.
34796         (quotearg_n_custom_mem): New public function.
34797         (quotearg_custom): New public function.
34798         (quotearg_custom_mem): New public function.
34799         * lib/quotearg.h: Prototype and document new public functions.
34800         (enum quoting_style): For escape_quoting_style and
34801         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
34802         ignored even though they're otherwise like c_quoting_style.
34803         Add custom_quoting_style member and document with comparison to
34804         clocale_quoting_style.
34805         * tests/test-quotearg.c (custom_quotes): New array.
34806         (custom_results): New array.
34807         (main): Extend to test custom quoting.
34808
34809 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
34810
34811         quotearg: fix right quote escaping when it's in quote_these_too
34812         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
34813         quote, be sure to prepend only one backslash.
34814         * tests/test-quotearg.c (use_quote_double_quotes): New function.
34815         (main): Test it.
34816
34817 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
34818
34819         quotearg-tests: test escaping of embedded locale quotes
34820         * tests/test-quotearg.c (struct result_strings): Add member for
34821         new input.
34822         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
34823         (inputs): Add new input.
34824         (results_g): Add expected results.
34825         (flag_results): Likewise.
34826         (locale_results): Likewise.
34827         (compare_strings): Check those.
34828
34829 2009-08-23  Bruno Haible  <bruno@clisp.org>
34830
34831         Tests for module 'dup3'.
34832         * modules/dup3-tests: New file.
34833         * tests/test-dup3.c: New file.
34834
34835         New module 'dup3'.
34836         * lib/unistd.in.h (dup3): New declaration.
34837         * lib/dup3.c: New file.
34838         * m4/dup3.m4: New file.
34839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
34840         HAVE_DUP3.
34841         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
34842         * modules/dup3: New file.
34843         * doc/glibc-functions/dup3.texi: Mention the new module.
34844
34845 2009-08-23  Bruno Haible  <bruno@clisp.org>
34846
34847         Tweak the dup2 test.
34848         * tests/test-dup2.c (main): Create the test file empty. Verify that an
34849         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
34850         the test file is still empty. Fix argument order of lseek.
34851
34852 2009-08-23  Bruno Haible  <bruno@clisp.org>
34853
34854         Avoid test link errors when the modules getopt-gnu, gettext are used.
34855         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
34856         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34857
34858 2009-08-23  Bruno Haible  <bruno@clisp.org>
34859
34860         Fix getdtablesize() on mingw.
34861         * lib/getdtablesize.c (getdtablesize): Implement differently.
34862         * lib/unistd.in.h (getdtablesize): Improve comment.
34863
34864 2009-08-23  Bruno Haible  <bruno@clisp.org>
34865
34866         New module 'mkostemp'.
34867         Based on Ulrich Drepper's 2007-08-10 change in glibc.
34868         * lib/stdlib.in.h (mksotemp): New declaration.
34869         * lib/mkostemp.c: New file, from glibc with modifications.
34870         * lib/tempname.h (GT_FILE): Remove outdated comment.
34871         (gen_tempname): Add flags argument.
34872         * lib/tempname.c (__GT_BIGFILE): Remove macro.
34873         (__GT_FILE): Map to 1.
34874         (small_open, large_open): Remove macros.
34875         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
34876         * lib/mkstemp.c (mkstemp): Update.
34877         * lib/mkdtemp.c (mkdtemp): Likewise.
34878         * m4/mkostemp.m4: New file.
34879         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
34880         HAVE_MKOSTEMP.
34881         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
34882         HAVE_MKOSTEMP.
34883         * modules/mkostemp: New file, based on modules/mkstemp.
34884         * doc/glibc-functions/mkostemp.texi: Mention the new module.
34885         * NEWS: Mention the change.
34886
34887 2009-08-23  Bruno Haible  <bruno@clisp.org>
34888
34889         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
34890         Reported by Eric Blake.
34891
34892 2009-08-23  Bruno Haible  <bruno@clisp.org>
34893
34894         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
34895         Reported by Eric Blake.
34896
34897 2009-08-23  Bruno Haible  <bruno@clisp.org>
34898
34899         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
34900         * modules/pipe2 (Depends-on): Likewise.
34901
34902 2009-08-23  Eric Blake  <ebb9@byu.net>
34903
34904         fcntl-h: add O_TTY_INIT support
34905         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
34906         * tests/test-fcntl-h.c (o): Test it.
34907         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
34908
34909         fcntl-h: rename from fcntl, in preparation for fcntl(2)
34910         * modules/fcntl: Move <fcntl.h> header replacement...
34911         * modules/fcntl-h: ...to new name, so as not to collide with
34912         like-named function.
34913         * tests/test-fcntl.c: Rename...
34914         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
34915         * modules/fcntl-tests: Rename...
34916         * modules/fcntl-h-tests: ...to this.  Update test file name.
34917         * modules/chdir-long (Depends-on): Update clients.
34918         * modules/chdir-safer (Depends-on): Likewise.
34919         * modules/fcntl-safer (Depends-on): Likewise.
34920         * modules/fts (Depends-on): Likewise.
34921         * modules/mkancesdirs (Depends-on): Likewise.
34922         * modules/mkdir-p (Depends-on): Likewise.
34923         * modules/open (Depends-on): Likewise.
34924         * modules/savewd (Depends-on): Likewise.
34925         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
34926         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
34927
34928 2009-08-22  Bruno Haible  <bruno@clisp.org>
34929
34930         * modules/binary-io (License): Relicense under LGPL.
34931         * modules/pipe2 (License): Likewise.
34932
34933 2009-08-22  Bruno Haible  <bruno@clisp.org>
34934
34935         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
34936         return value.
34937         * lib/pipe-filter-gi.c (filter_init): Likewise.
34938         Reported by Eric Blake.
34939
34940 2009-08-22  Bruno Haible  <bruno@clisp.org>
34941
34942         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
34943         * modules/pipe (Depends-on): Add pipe2.
34944
34945 2009-08-22  Bruno Haible  <bruno@clisp.org>
34946
34947         Tests for module 'pipe2'.
34948         * modules/pipe2-tests: New file.
34949         * tests/test-pipe2.c: New file.
34950
34951         New module 'pipe2'.
34952         * lib/unistd.in.h (pipe2): New declaration.
34953         * lib/pipe2.c: New file.
34954         * m4/pipe2.m4: New file.
34955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
34956         HAVE_PIPE2.
34957         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
34958         * modules/pipe2: New file.
34959         * doc/glibc-functions/pipe2.texi: Mention the new module.
34960
34961 2009-08-22  Bruno Haible  <bruno@clisp.org>
34962
34963         Reference some new glibc functions.
34964         * doc/glibc-functions/accept4.texi: New file.
34965         * doc/glibc-functions/dup3.texi: New file.
34966         * doc/glibc-functions/mkostemp.texi: New file.
34967         * doc/glibc-functions/pipe2.texi: New file.
34968         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
34969         (Glibc sys/socket.h): Refer to accept4.
34970         (Glibc unistd.h): Refer to dup3, pipe2.
34971         Reported by Eric Blake.
34972
34973 2009-08-22  Jim Meyering  <meyering@redhat.com>
34974             Bruno Haible  <bruno@clisp.org>
34975
34976         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
34977         This makes it so packages using automake-1.11's silent-rules option
34978         can print e.g., a single "GEN    configmake.h" line, rather than
34979         the 30+ statements that perform the job.  If you want to see the
34980         actual commands, you can still run "make V=1".
34981         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
34982         so that make output is abbreviated when those variables are defined
34983         appropriately.
34984         * modules/argz: Likewise.
34985         * modules/arpa_inet: Likewise.
34986         * modules/byteswap: Likewise.
34987         * modules/configmake: Likewise.
34988         * modules/dirent: Likewise.
34989         * modules/errno: Likewise.
34990         * modules/fcntl: Likewise.
34991         * modules/float: Likewise.
34992         * modules/fnmatch: Likewise.
34993         * modules/getopt-posix: Likewise.
34994         * modules/glob: Likewise.
34995         * modules/iconv_open: Likewise.
34996         * modules/inttypes: Likewise.
34997         * modules/localcharset: Likewise.
34998         * modules/locale: Likewise.
34999         * modules/math: Likewise.
35000         * modules/netdb: Likewise.
35001         * modules/netinet_in: Likewise.
35002         * modules/poll: Likewise.
35003         * modules/posix_spawnp-tests: Likewise.
35004         * modules/sched: Likewise.
35005         * modules/search: Likewise.
35006         * modules/selinux-h: Likewise.
35007         * modules/signal: Likewise.
35008         * modules/spawn: Likewise.
35009         * modules/stdarg: Likewise.
35010         * modules/stdbool: Likewise.
35011         * modules/stddef: Likewise.
35012         * modules/stdint: Likewise.
35013         * modules/stdio: Likewise.
35014         * modules/stdlib: Likewise.
35015         * modules/string: Likewise.
35016         * modules/strings: Likewise.
35017         * modules/sys_file: Likewise.
35018         * modules/sys_ioctl: Likewise.
35019         * modules/sys_select: Likewise.
35020         * modules/sys_socket: Likewise.
35021         * modules/sys_stat: Likewise.
35022         * modules/sys_time: Likewise.
35023         * modules/sys_times: Likewise.
35024         * modules/sys_utsname: Likewise.
35025         * modules/sys_wait: Likewise.
35026         * modules/sysexits: Likewise.
35027         * modules/time: Likewise.
35028         * modules/unistd: Likewise.
35029         * modules/wchar: Likewise.
35030         * modules/wctype: Likewise.
35031
35032 2009-08-22  Jim Meyering  <meyering@redhat.com>
35033
35034         announce-gen: detect write failure
35035         * build-aux/announce-gen: Add Coda at end.
35036         Remove equivalent-but-more-verbose block at top.
35037
35038 2009-08-19  Akim Demaille  <demaille@gostai.com>
35039
35040         bootstrap: --help to stdout.
35041         * bootstrap (usage): Don't send --help to stderr.
35042         Use a here doc instead of a long string.
35043
35044 2009-08-21  Eric Blake  <ebb9@byu.net>
35045
35046         test-popen-safer: split from test-popen
35047         * tests/test-popen.c (main): Move...
35048         * tests/test-popen.h: ...into new file.
35049         * tests/test-popen-safer2.c: New file.
35050         * modules/popen-tests (Files): Add test-popen.h.
35051         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
35052         Suggested by Bruno Haible.
35053
35054         test-fcntl-safer: split from test-open
35055         * tests/test-open.c (main): Move...
35056         * tests/test-open.h: ...into new file.
35057         * tests/test-fcntl-safer.c: New file.
35058         * modules/open-tests (Files): Add test-open.h.
35059         * modules/fcntl-safer-tests: New file.
35060         Suggested by Bruno Haible.
35061
35062         test-fopen-safer: split from test-fopen
35063         * tests/test-fopen.c (main): Move...
35064         * tests/test-fopen.h: ...into new file.
35065         * tests/test-fopen-safer.c: New file.
35066         * modules/fopen-tests (Files): Add test-fopen.h.
35067         * modules/fopen-safer-tests: New file.
35068         Suggested by Bruno Haible.
35069
35070 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
35071
35072         popen-safer: test O_CLOEXEC at run-time.
35073         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
35074
35075 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
35076
35077         fcntl: move more flags to the header
35078         * lib/cloexec.c: Do not define FD_CLOEXEC here.
35079         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
35080         * lib/fcntl.in.h: Do both things here.
35081
35082 2009-08-21  Jim Meyering  <meyering@redhat.com>
35083
35084         consistently remove $@-t before redirecting to it
35085         * modules/argz: Remove $@-t and $@ before redirecting to the former.
35086         * modules/alloca-opt: Likewise.
35087         * modules/byteswap: Likewise.
35088         * modules/fnmatch: Likewise.
35089         * modules/getopt-posix: Likewise.
35090         * modules/glob: Likewise.
35091         * modules/poll: Likewise.
35092         * modules/posix_spawnp-tests: Likewise.
35093         * modules/sys_socket: Likewise.
35094         * modules/sysexits: Likewise.
35095
35096 2009-08-21  Eric Blake  <ebb9@byu.net>
35097
35098         popen: simplify access to original popen
35099         * lib/popen.c (rpl_popen): No need to worry about popen being a
35100         macro.
35101         Reported by Bruno Haible.
35102
35103 2009-08-20  Eric Blake  <ebb9@byu.net>
35104
35105         build: avoid some compiler warnings
35106         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
35107         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
35108         type.
35109         (new_exclude_segment, excluded_file_pattern_p)
35110         (excluded_file_name_p): Reduce scope.
35111         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
35112         old-style declaration.
35113
35114 2009-08-20  Simon Josefsson  <simon@josefsson.org>
35115
35116         * tests/test-exclude1.sh: Handle Windows EOL.
35117         * tests/test-exclude2.sh: Likewise.
35118         * tests/test-exclude3.sh: Likewise.
35119         * tests/test-exclude4.sh: Likewise.
35120         * tests/test-exclude5.sh: Likewise.
35121         * tests/test-exclude6.sh: Likewise.
35122         * tests/test-exclude7.sh: Likewise.
35123
35124 2009-08-19  Akim Demaille  <demaille@gostai.com>
35125
35126         bootstrap: find sha1sum when named gsha1sum.
35127         * bootstrap (find_tool): New.
35128         ($SHA1SUM): New.
35129         Use it.
35130
35131 2009-08-20  Jim Meyering  <meyering@redhat.com>
35132
35133         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
35134         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
35135         expression that converts "." in a file name to "\." in the resulting
35136         regexp.  Start with a dummy statement, so that prior shell variable
35137         definitions are expanded portably.  Reported by Simon Josefsson.
35138
35139 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
35140
35141         Fix polling for writeability of a screen buffer.
35142         * lib/poll.c: Distinguish input and screen buffers for the
35143         Win32 implementation.
35144         * lib/select.c: Likewise.
35145
35146 2009-08-19  Eric Blake  <ebb9@byu.net>
35147
35148         popen-safer: prevent popen from clobbering std descriptors
35149         * modules/popen-safer: New file.
35150         * lib/popen-safer.c: Likewise.
35151         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
35152         * lib/stdio--.h (popen): Provide override.
35153         * lib/stdio-safer.h (popen_safer): Provide declaration.
35154         * tests/test-popen.c (includes): Partially test this.
35155         * modules/popen-safer-tests: New file, for more tests.
35156         * tests/test-popen-safer.c: Likewise.
35157         * MODULES.html.sh (file stream based Input/Output): Mention it.
35158
35159         tests: test some of the *-safer modules
35160         * modules/fopen-safer (Depends-on): Add fopen.
35161         * modules/fcntl-safer (Depends-on): Add fcntl.
35162         * modules/stdlib-safer (Depends-on): Add stdlib.
35163         (configure.ac): Set indicator.
35164         * modules/unistd-safer (configure.ac): Likewise.
35165         * modules/tmpfile-safer (configure.ac): Likewise.
35166         (Depends-on): Add tmpfile.
35167         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
35168         active.
35169         * tests/test-fopen.c (includes): Test safer versions when they are
35170         in use.
35171         * tests/test-open.c (includes): Likewise.
35172
35173         popen: fix cygwin 1.5 bug when stdin closed
35174         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
35175         * modules/popen: New file.
35176         * modules/popen-tests: Likewise.
35177         * tests/test-popen.c: Likewise.
35178         * m4/popen.m4: Likewise.
35179         * lib/popen.c: Likewise.
35180         * lib/stdio.in.h (popen): New declaration.
35181         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
35182         * modules/stdio (Makefile.am): Likewise.
35183         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
35184
35185 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
35186
35187         maint.mk: give full control over update-copyright exclusions
35188         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
35189         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
35190         (update-copyright): Don't force inclusion of top-level
35191         ChangeLog.  Don't force exclusion of all COPYING files, but make
35192         them the default exclusion instead.
35193
35194 2009-08-16  Bruno Haible  <bruno@clisp.org>
35195
35196         Fix test failures on Solaris 10.
35197         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
35198         tests when Solaris iconv() is used.
35199         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
35200         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
35201         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
35202         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
35203         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
35204
35205 2009-08-16  Bruno Haible  <bruno@clisp.org>
35206
35207         Fix test failures on Solaris 10.
35208         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
35209         'tr' program and pass it as first argument.
35210         * tests/test-pipe-filter-gi1.sh: Likewise.
35211         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
35212         program as first argument.
35213         * tests/test-pipe-filter-gi1.c (main): Likewise.
35214
35215 2009-08-16  Eric Blake  <ebb9@byu.net>
35216
35217         fpurge: fix previous commits
35218         * modules/fpurge (Makefile.am): Make replacement conditional,
35219         partially reverting 2007-04-29 change; missed in previous
35220         attempt.
35221         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
35222         is missing.
35223
35224 2009-08-16  Bruno Haible  <bruno@clisp.org>
35225
35226         Clarify fpurge's effect on the file position.
35227         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
35228         * tests/test-fpurge.c (main): Make a second pass for checking the file
35229         position.
35230
35231 2009-08-16  Bruno Haible  <bruno@clisp.org>
35232
35233         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
35234         declaration of fpurge is missing.
35235         * tests/test-fpurge.c (main): Check that the file has not more contents
35236         than expected. Close the file before removing it.
35237
35238 2009-08-15  Eric Blake  <ebb9@byu.net>
35239
35240         fpurge: don't wrap working cygwin implementation
35241         * lib/fpurge.c (fpurge): Fix comment typo.
35242         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
35243         1.7 to avoid replacement.
35244         * tests/test-fpurge.c (main): Enhance test.
35245
35246 2009-08-15  Eric Blake  <ebb9@byu.net>
35247         and Jim Meyering  <meyering@redhat.com>
35248
35249         test-update-copyright: skip if perl is insufficient
35250         * tests/test-update-copyright.sh: Failure to run maintainer tool
35251         should not cause testsuite failure on cygwin 1.5.
35252
35253 2009-08-14  Eric Blake  <ebb9@byu.net>
35254
35255         doc: mention more functions added in cygwin 1.7.0
35256         * doc/posix-headers/limits.texi (limits.h): Update for recent
35257         cygwin additions.
35258         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
35259         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
35260         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
35261         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
35262         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
35263
35264 2009-08-14  Eric Blake  <ebb9@byu.net>
35265
35266         maint.mk: simplify update-copyright rule
35267         * top/maint.mk (update-copyright-local): Delete, and document how
35268         to do it in cfg.mk instead.
35269         (update-copyright-exclude-regexp): Delete, and document how to do
35270         it in .x-update-copyright instead.
35271         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
35272         exclude ChangeLog.
35273
35274 2009-08-14  Bruno Haible  <bruno@clisp.org>
35275
35276         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
35277
35278 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35279
35280         maint.mk: support update-copyright-env
35281         * top/maint.mk (update-copyright-env): Define place-holder.
35282         (update-copyright): Expand $(update-copyright-env) before
35283         invoking update-copyright.
35284
35285 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35286
35287         update-copyright: implement forced reformatting
35288         * build-aux/update-copyright: Implement and document
35289         UPDATE_COPYRIGHT_FORCE.
35290         * tests/test-update-copyright.sh: Test it.
35291
35292 2009-08-14  Eric Blake  <ebb9@byu.net>
35293         and Bruno Haible  <bruno@clisp.org>
35294
35295         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
35296         * tests/test-locale.c: Revert previous patch related to NULL.
35297         * tests/test-stdio.c: Likewise.
35298         * tests/test-stdlib.c: Likewise.
35299         * tests/test-string.c: Likewise.
35300         * tests/test-unistd.c: Likewise.
35301         * modules/time-tests (Depends-on): Add verify.
35302         * modules/wchar-tests (Depends-on): Likewise.
35303         * tests/test-time.c: Test for NULL compliance.
35304         * tests/test-wchar.c: Likewise.
35305         * modules/locale (Depends-on): Add stddef.
35306         * modules/stdio (Depends-on): Likewise.
35307         * modules/stdlib (Depends-on): Likewise.
35308         * modules/string (Depends-on): Likewise.
35309         * modules/time (Depends-on): Likewise.
35310         * modules/unistd (Depends-on): Likewise.
35311         * modules/wchar (Depends-on): Likewise.
35312         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
35313         * lib/stdlib.in.h (includes): Likewise.
35314         * lib/string.in.h (includes): Likewise.
35315         * lib/time.in.h (includes): Likewise.
35316         * lib/unistd.in.h (includes): Likewise.
35317         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
35318         replaced.
35319         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35320         * m4/stddef_h.m4: New file.
35321         * modules/stddef: Likewise.
35322         * lib/stddef.in.h: Likewise.
35323         * modules/stddef-tests: Likewise.
35324         * tests/test-stddef.c: Likewise.
35325         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
35326         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
35327         * doc/posix-headers/locale.texi (locale.h): Likewise.
35328         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
35329         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
35330         * doc/posix-headers/string.texi (string.h): Likewise.
35331         * doc/posix-headers/time.texi (time.h): Likewise.
35332         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
35333         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
35334
35335 2009-08-14  Eric Blake  <ebb9@byu.net>
35336
35337         doc: improve git diff of texinfo files
35338         * .gitattributes: Add rule for *.texi files, with hint on how to
35339         use it.
35340         Copied from m4, and based on a report by Bruno Haible.
35341
35342 2009-08-14  Bruno Haible  <bruno@clisp.org>
35343
35344         Disable multithread support by default on Cygwin 1.5.x for real.
35345         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
35346
35347 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
35348
35349         update-copyright: much ado about intervals
35350         * build-aux/update-copyright: Implement and document
35351         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
35352         of copyright year intervals.
35353         Also, document UPDATE_COPYRIGHT_YEAR.
35354         * tests/test-update-copyright.sh: Test it.
35355
35356         update-copyright: convert 2-digit to 4-digit years
35357         * build-aux/update-copyright: Implement and document.
35358         * tests/test-update-copyright.sh: Update.
35359
35360 2009-08-14  Jim Meyering  <meyering@redhat.com>
35361
35362         test-exclude: avoid coreutils "make check" failure
35363         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
35364         just as in test-argmatch.c.
35365
35366 2009-08-13  Eric Blake  <ebb9@byu.net>
35367
35368         test-dup2: fix bad assumption
35369         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
35370         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
35371
35372         test-version-etc: fix CRLF portability issue
35373         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
35374         recognize \r.
35375         * tests/test-argp-version-etc-1.sh: Likewise.
35376
35377         getopt: update client modules
35378         * modules/argp (Depends-on): Use getopt-gnu.
35379         * modules/git-merge-changelog (Depends-on): Likewise.
35380         * modules/long-options (Depends-on): Likewise.
35381         * modules/xstrtol (Depends-on): Likewise.
35382
35383 2009-08-13  Simon Josefsson  <simon@josefsson.org>
35384
35385         * tests/test-version-etc.sh: Don't fail on different
35386         project/version.  Don't fail on CRLF differences.  Rewrite to use
35387         multiple -e instead of multiple sed forks, suggested by Eric Blake
35388         <ebb9@byu.net>.
35389         * tests/test-argp-version-etc-1.sh: Likewise.
35390
35391 2009-08-13  Simon Josefsson  <simon@josefsson.org>
35392
35393         * tests/test-version-etc.sh: Don't fail on different
35394         project/version.
35395
35396 2009-08-12  Bruno Haible  <bruno@clisp.org>
35397
35398         Tests for modules 'getopt-posix', 'getopt-gnu'.
35399         * modules/getopt-posix-tests: New file.
35400         * tests/test-getopt.c: New file.
35401         * tests/test-getopt.h: New file.
35402         * tests/test-getopt_long.h: New file.
35403
35404         New modules 'getopt-posix', 'getopt-gnu'.
35405         * modules/getopt-gnu: New file, renamed from modules/getopt.
35406         * modules/getopt-posix: New file.
35407         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
35408         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
35409         (gl_GETOPT): Remove macro.
35410         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
35411         Disable the test against BSD systems that declare optreset. Test
35412         against mingw bug. Test against lack of support of optional arguments
35413         on many platforms.
35414         * doc/glibc-headers/getopt.texi: Update module name and list of
35415         relevant platforms.
35416         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
35417         'getopt-gnu' and more portability problems.
35418         * NEWS: Mention the changes.
35419
35420 2009-08-12  Bruno Haible  <bruno@clisp.org>
35421
35422         Ensure that optarg etc. get declared by <unistd.h>.
35423         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
35424         AC_USE_SYSTEM_EXTENSIONS.
35425         * modules/getopt (Depends-on): Add 'extensions'.
35426
35427 2009-08-12  Bruno Haible  <bruno@clisp.org>
35428
35429         Avoid test link errors.
35430         * modules/pipe-filter-ii-tests (Makefile.am): Define
35431         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
35432         * modules/pipe-filter-gi-tests (Makefile.am): Define
35433         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
35434         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35435
35436 2009-08-12  Bruno Haible  <bruno@clisp.org>
35437
35438         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
35439         gl_GETOPT_SUBSTITUTE before.
35440         (gl_GETOPT): Use it.
35441         * m4/argp.m4 (gl_ARGP): Update.
35442         Reported by Sergey Poznyakoff.
35443
35444         * m4/getopt.m4: Reorder macros.
35445         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
35446         (gl_GETOPT_SUBSTITUTE): Remove macro.
35447
35448 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35449
35450         Minor improvement in gitlog-to-changelog
35451
35452         * build-aux/gitlog-to-changelog: New option `--format' makes
35453         output format string configurable.
35454
35455 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
35456
35457         Optimize exclude: use hash tables for non-wildcard patterns.
35458
35459         * lib/exclude.c: Include hash.h and mbuiter.h
35460         (struct exclude_pattern, exclude_segment): New data types.
35461         (struct exclude): Rewrite.
35462         (fnmatch_pattern_has_wildcards): New function.
35463         (new_exclude_segment, free_exclude_segment): New functions.
35464         (excluded_file_pattern_p, excluded_file_name_p): New functions.
35465         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
35466         * lib/exclude.h (is_fnmatch_pattern): New prototype.
35467         * modules/exclude: Depend on hash and mbuiter.
35468
35469         * modules/exclude-tests: New file.
35470         * tests/test-exclude.c: New file.
35471         * tests/test-exclude1.sh: New file.
35472         * tests/test-exclude2.sh: New file.
35473         * tests/test-exclude3.sh: New file.
35474         * tests/test-exclude4.sh: New file.
35475         * tests/test-exclude5.sh: New file.
35476         * tests/test-exclude6.sh: New file.
35477         * tests/test-exclude7.sh: New file.
35478
35479 2009-08-12  Bruno Haible  <bruno@clisp.org>
35480
35481         Ensure that getopt() gets declared by <unistd.h>.
35482         * lib/unistd.in.h: Conditionally include getopt.h.
35483         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
35484         Set GNULIB_UNISTD_H_GETOPT.
35485         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35486         GNULIB_UNISTD_H_GETOPT.
35487         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
35488
35489 2009-08-12  Bruno Haible  <bruno@clisp.org>
35490
35491         Clarify logic.
35492         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
35493         gl_replace_getopt instead of GETOPT_H.
35494
35495 2009-08-12  Bruno Haible  <bruno@clisp.org>
35496
35497         * m4/getopt.m4: Add comments.
35498
35499 2009-08-12  Bruno Haible  <bruno@clisp.org>
35500
35501         Disable multithread support by default on Cygwin 1.5.x.
35502         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
35503         set gl_use_threads=no if not specified otherwise.
35504
35505 2009-08-11  Bruno Haible  <bruno@clisp.org>
35506
35507         Avoid compilation error on NetBSD 5.0.
35508         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
35509         * tests/test-stdio.c: Likewise.
35510         * tests/test-stdlib.c: Likewise.
35511         * tests/test-string.c: Likewise.
35512         * tests/test-unistd.c: Likewise.
35513         Reported by Greg Troxel <gdt@ir.bbn.com>
35514         at <https://savannah.gnu.org/support/?106973>.
35515
35516 2009-08-11  Bruno Haible  <bruno@clisp.org>
35517
35518         * modules/dup2-tests (Depends-on): Remove close.
35519
35520         Undo 2009-07-19 commit.
35521         * modules/acl-tests (Depends-on): Remove close.
35522         * modules/binary-io-tests (Depends-on): Likewise.
35523         * modules/closein-tests (Depends-on): Likewise.
35524         * modules/flock-tests (Depends-on): Likewise.
35525         * modules/fsync-tests (Depends-on): Likewise.
35526         * modules/lseek-tests (Depends-on): Likewise.
35527         * modules/pipe-tests (Depends-on): Likewise.
35528         * modules/posix_spawn-tests (Depends-on): Likewise.
35529         * modules/posix_spawnp-tests (Depends-on): Likewise.
35530         * modules/stat-time-tests (Depends-on): Likewise.
35531         * modules/yesno-tests (Depends-on): Likewise.
35532
35533 2009-08-10  Bruno Haible  <bruno@clisp.org>
35534
35535         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
35536
35537 2009-08-10  Bruno Haible  <bruno@clisp.org>
35538
35539         Fix a gcc warning.
35540         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
35541
35542 2009-08-10  Bruno Haible  <bruno@clisp.org>
35543
35544         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
35545         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
35546         not only the first time.
35547         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
35548         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
35549         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
35550         is 1, not only the the first time.
35551
35552 2009-08-10  Bruno Haible  <bruno@clisp.org>
35553
35554         Make it possible to use module 'gethostname' without module 'close'.
35555         * lib/unistd.in.h (close): Evoke a link error only if
35556         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
35557         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35558         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35559         * modules/unistd (Makefile.am): Substitute
35560         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35561         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
35562         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
35563         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
35564         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35565         * modules/sys_ioctl (Makefile.am): Substitute
35566         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35567         * modules/socket (configure.ac): On native Windows, set
35568         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
35569         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
35570         Reported by Sam Steingold <sds@gnu.org>.
35571
35572 2009-08-10  Bruno Haible  <bruno@clisp.org>
35573
35574         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
35575         * modules/ioctl (configure.ac): Likewise.
35576
35577 2009-08-10  Bruno Haible  <bruno@clisp.org>
35578
35579         Avoid collision between gnulib wrapper and libintl wrapper.
35580         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
35581         already defined in intl/printf.c.
35582         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
35583         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
35584
35585 2009-08-09  Bruno Haible  <bruno@clisp.org>
35586
35587         Make <sys/select.h> really self-contained, also on Solaris 10.
35588         * lib/sys_select.in.h: Include <string.h>.
35589         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
35590         Solaris 10 problem.
35591         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
35592         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
35593         Reported by Jim Meyering.
35594
35595 2009-08-09  Bruno Haible  <bruno@clisp.org>
35596
35597         Avoid warnings from 'aclocal' that are due to a use of macro name
35598         AM_XGETTEXT_OPTION that is not defined in automake.
35599         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
35600         automake.
35601         * modules/error (configure.ac): Likewise.
35602         * modules/propername (configure.ac): Likewise.
35603         * modules/vasprintf (configure.ac): Likewise.
35604         * modules/verror (configure.ac): Likewise.
35605         * modules/xprintf (configure.ac): Likewise.
35606         * modules/xvasprintf (configure.ac): Likewise.
35607
35608 2009-08-08  Bruno Haible  <bruno@clisp.org>
35609
35610         Avoid compilation error in C++ mode.
35611         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
35612         Reported by Sam Steingold <sds@gnu.org>.
35613
35614 2009-08-08  Bruno Haible  <bruno@clisp.org>
35615
35616         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
35617         for the various Unix platforms.
35618         * doc/posix-headers/limits.texi: Update platforms list regarding
35619         HOST_NAME_MAX.
35620         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35621
35622 2009-08-07  Jim Meyering  <meyering@redhat.com>
35623
35624         selinux-at: fix typo in a comment
35625         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
35626         Spotted by Paolo Bonzini.
35627
35628         selinux-at: remove redundant m4 code, add documentation
35629         * modules/selinux-at (configure.ac): Remove redundant code.
35630         LIB_SELINUX is already set via the dependent module, selinux-h.
35631         (Include): Add quotes around selinux-at.h.
35632         * lib/selinux-at.h: Add documentation.
35633         Reported by Bruno Haible in
35634         http://marc.info/?l=gnulib-bug&m=124958988300749
35635
35636 2009-08-07  Bruno Haible  <bruno@clisp.org>
35637
35638         Avoid link error on MacOS X 10.3 and 10.4.
35639         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
35640         on non-ELF systems.
35641         * lib/argp-pv.c (argp_program_version): Likewise.
35642         Reported by Simon Josefsson.
35643
35644 2009-08-07  Simon Josefsson  <simon@josefsson.org>
35645
35646         * tests/test-version-etc.sh: Use $EXEEXT.
35647
35648 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
35649
35650         update-copyright: update documentation to point to maint.mk
35651         * build-aux/update-copyright: Here.
35652
35653 2009-08-06  Jim Meyering  <meyering@redhat.com>
35654
35655         maint.mk: support update-copyright-local
35656         * top/maint.mk (update-copyright-local): Define place-holder.
35657         (update-copyright): Depend on $(update-copyright-local).
35658
35659 2009-08-06  Jim Meyering  <meyering@redhat.com>
35660
35661         selinux-at: new module
35662         Initially written for coreutils, this module will soon be
35663         used by findutils, too.
35664         * MODULES.html.sh [Misc]: Add selinux-at.
35665         * lib/selinux-at.h: New file, from coreutils.
35666         * lib/selinux-at.c: Likewise.
35667         * modules/selinux-at: Likewise.
35668         (License): Change from LGPL to GPL, since it depends
35669         on the GPL'd openat module.
35670
35671         doc: update README
35672         * README: Remove references to cogito.
35673         Remove cvs-repo-updating instructions from 2007.
35674         Don't imply that CVS is better if you have limited disk space.
35675
35676 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35677
35678         update-copyright: support C-style comments
35679         * build-aux/update-copyright: Implement and document.
35680         * tests/test-update-copyright.sh: Test.
35681
35682 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35683
35684         update-copyright: support omitted "(C)"
35685         * build-aux/update-copyright: Implement and document.  Also,
35686         allow variable whitespace before "(C)".
35687         * tests/test-update-copyright.sh: Test.
35688
35689 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35690
35691         update-copyright: don't trip on non-FSF copyright statements
35692         * build-aux/update-copyright: Fix so that the first correctly
35693         formatted FSF copyright statement is recognized no matter what
35694         appears before it.  Update documentation.
35695         * tests/test-update-copyright.sh: Test that.
35696
35697 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35698
35699         update-copyright: clean up code a little
35700         * build-aux/update-copyright: Append "_re" to the name of any
35701         variable holding a regular expression.
35702         Replace "old" and "new" with "stmt" in variable names.
35703         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
35704         handled correctly.
35705         Format code more consistently.
35706
35707 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
35708
35709         update-copyright-tests: improve portability
35710         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
35711         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
35712
35713 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
35714
35715         update-copyright: support @copyright{} and &copy;
35716         * build-aux/update-copyright: Implement and document.
35717         * tests/test-update-copyright.sh: Test.
35718
35719 2009-08-04  Jim Meyering  <meyering@redhat.com>
35720
35721         update-copyright-tests: correctly test EOL=\r\n handling
35722         * tests/test-update-copyright.sh: Put \r at the end of some lines
35723         for the dos-eol tests.  Based on a patch by Joel E. Denny.
35724
35725         maint.mk: make update-copyright exclusion list more configurable
35726         * top/maint.mk (update-copyright): Default to excluding COPYING,
35727         but allow an override, in case someone does want to update that file.
35728
35729         maint.mk: don't update copyright date in COPYING
35730         * top/maint.mk (update-copyright): Exclude COPYING.
35731
35732         maint.mk: add a copyright-updating rule
35733         * top/maint.mk (update-copyright): New rule.
35734         Derived from coreutils/Makefile.am.
35735
35736         update-copyright: rename some variables
35737         * build-aux/update-copyright: Rename a few variables for clarity.
35738         Tweak syntax.  List Joel E. Denny as coauthor.
35739
35740 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
35741
35742         update-copyright: fix bug for 2-digit last year and add tests
35743         * build-aux/update-copyright: Fix bug.
35744         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
35745         specified.
35746         * modules/update-copyright-tests: New
35747         * tests/test-update-copyright.sh: New.
35748
35749 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
35750
35751         update-copyright: handle leading tabs in line prefix
35752         * build-aux/update-copyright: Count leading tabs as 8 spaces
35753         when computing margin.  This helps with the formatting of
35754         ChangeLogs, for example.
35755         Fix documentation a little.
35756
35757 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
35758
35759         update-copyright: support EOL=\r\n
35760         * build-aux/update-copyright: Implement that.
35761
35762 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
35763
35764         update-copyright: automatically format copyright statements
35765         * build-aux/update-copyright: Implement that.
35766         Also, be a little more predictable and safer by always failing
35767         when the full copyright format is not perfectly recognized as an
35768         unbroken whole.  Discussed at
35769         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
35770         Rewrite documentation.
35771
35772 2009-08-03  Bruno Haible  <bruno@clisp.org>
35773
35774         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
35775
35776 2009-08-02  Bruno Haible  <bruno@clisp.org>
35777
35778         Tests for module 'uname'.
35779         * modules/uname-tests: New file.
35780         * tests/test-uname.c: New file.
35781
35782         New module 'uname'.
35783         * lib/uname.c: New file.
35784         * m4/uname.m4: New file.
35785         * modules/uname: New file.
35786         * doc/posix-functions/uname.texi: Mention the new module.
35787
35788 2009-08-02  Bruno Haible  <bruno@clisp.org>
35789
35790         Tests for module 'sys_utsname'.
35791         * modules/sys_utsname-tests: New file.
35792         * tests/test-sys_utsname.c: New file.
35793
35794         New module 'sys_utsname'.
35795         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
35796         * m4/sys_utsname_h.m4: New file.
35797         * modules/sys_utsname: New file.
35798         * doc/posix-headers/sys_utsname.texi: Mention the new module.
35799
35800 2009-08-02  Bruno Haible  <bruno@clisp.org>
35801
35802         Implicitly initialize the sockets library.
35803         * lib/gethostname.c: Include sockets.h.
35804         (rpl_gethostname): Invoke gl_sockets_startup.
35805         * lib/socket.c: Include sockets.h.
35806         (rpl_socket): Invoke gl_sockets_startup.
35807         * modules/gethostname (Depends-on): Add sockets.
35808         * modules/socket (Depends-on): Likewise.
35809         * tests/test-poll.c: Don't include sockets.h.
35810         (main): Don't invoke gl_sockets_startup.
35811         * tests/test-select.c: Don't include sockets.h.
35812         (main): Don't invoke gl_sockets_startup.
35813
35814 2009-08-02  Bruno Haible  <bruno@clisp.org>
35815
35816         Allow multiple calls to gl_sockets_startup.
35817         * lib/sockets.c (initialized_sockets_version): New variable.
35818         (gl_sockets_startup): Do nothing if already called for this or a higher
35819         version.
35820         (gl_sockets_cleanup): Reset initialized_sockets_version.
35821
35822 2009-08-03  Simon Josefsson  <simon@josefsson.org>
35823
35824         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
35825         different project/version.
35826
35827 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
35828             Bruno Haible  <bruno@clisp.org>
35829
35830         Tests for module 'pipe-filter-gi'.
35831         * modules/pipe-filter-gi-tests: New file.
35832         * tests/test-pipe-filter-gi1.sh: New file.
35833         * tests/test-pipe-filter-gi1.c: New file.
35834         * tests/test-pipe-filter-gi2.sh: New file.
35835         * tests/test-pipe-filter-gi2-main.c: New file.
35836         * tests/test-pipe-filter-gi2-child.c: New file.
35837
35838         New module 'pipe-filter-gi'.
35839         * lib/pipe-filter-gi.c: New file.
35840         * modules/pipe-filter-gi: New file.
35841
35842 2009-08-02  Bruno Haible  <bruno@clisp.org>
35843             Paolo Bonzini  <bonzini@gnu.org>
35844
35845         Tests for module 'pipe-filter-ii'.
35846         * modules/pipe-filter-ii-tests: New file.
35847         * tests/test-pipe-filter-ii1.sh: New file.
35848         * tests/test-pipe-filter-ii1.c: New file.
35849         * tests/test-pipe-filter-ii2.sh: New file.
35850         * tests/test-pipe-filter-ii2-main.c: New file.
35851         * tests/test-pipe-filter-ii2-child.c: New file.
35852
35853         New module 'pipe-filter-ii'.
35854         * lib/pipe-filter.h: New file.
35855         * lib/pipe-filter-ii.c: New file.
35856         * lib/pipe-filter-aux.h: New file.
35857         * modules/pipe-filter-ii: New file.
35858
35859 2009-08-02  Simon Josefsson  <simon@josefsson.org>
35860
35861         * lib/gc-libgcrypt.c: Change copyright to FSF.
35862         * lib/gc-gnulib.c: Likewise.
35863
35864 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
35865
35866         * lib/gethostname.c: Include limits.h.
35867
35868 2009-08-02  Simon Josefsson  <simon@josefsson.org>
35869             Bruno Haible  <bruno@clisp.org>
35870
35871         Ensure HOST_NAME_MAX as part of the gethostname module.
35872         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
35873         define also HOST_NAME_MAX.
35874         * tests/test-gethostname.c: Include <limits.h>.
35875         (main): Check also HOST_NAME_MAX.
35876         * doc/posix-headers/limits.texi: Document the mingw problem.
35877
35878 2009-08-02  Bruno Haible  <bruno@clisp.org>
35879
35880         * lib/gethostname.c (gethostname): Fix handling of large len argument.
35881         Add comments.
35882
35883 2009-03-31  Simon Josefsson  <simon@josefsson.org>
35884
35885         * lib/gethostname.c: Add Windows wrapper.
35886         * m4/gethostname.m4: Look for gethostname in -lws2_32.
35887         * modules/gethostname: Depend on sys_socket & errno, for also
35888         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
35889         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
35890
35891 2009-07-31  Jim Meyering  <meyering@redhat.com>
35892
35893         getloadavg: fix symbol name in comment
35894         * lib/getloadavg.c: Correct a typo I introduced when adding
35895         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
35896         Matt Kraai spotted the problem.
35897
35898 2009-07-29  Matt Kraai  <mkraai@beckman.com>
35899
35900         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
35901         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
35902         code also if ! defined N_NAME_POINTER.
35903         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
35904         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
35905         but the n_name member is a 12-byte array.
35906
35907 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
35908
35909         update-copyright: generalize comment handling
35910         * build-aux/update-copyright: Handle copyright statements
35911         within more comment styles.
35912         Document usage.
35913         Report any file with an external copyright holder or parse failure.
35914
35915 2009-07-29  Jim Meyering  <meyering@redhat.com>
35916
35917         mktime: correct setting of REPLACE_MKTIME
35918         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
35919
35920         update-copyright: new module
35921         * modules/update-copyright: New file.
35922         * build-aux/update-copyright: New file.
35923         * MODULES.html.sh (maint+release support): Add update-copyright.
35924
35925 2009-07-27  Bruno Haible  <bruno@clisp.org>
35926
35927         Fix compilation error when <ctime> is used and mktime is replaced.
35928         * lib/time.in.h (mktime): New declaration.
35929         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
35930         REPLACE_MKTIME instead of defining mktime in config.h.
35931         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
35932         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
35933         Reported by Ross McFarland <rwmcfa1@neces.com>.
35934
35935 2009-07-27  Bruno Haible  <bruno@clisp.org>
35936
35937         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
35938         Reported by Matt Kraai <mkraai@beckman.com>.
35939
35940 2009-07-25  Jim Meyering  <meyering@redhat.com>
35941
35942         maint.mk: avoid warnings about missing files
35943         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
35944         diagnostic when .prev-version does not exist.
35945         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
35946         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
35947         nonexistent cfg.mk.
35948         Suggestions from Simon Josefsson.
35949
35950 2009-07-25  Bruno Haible  <bruno@clisp.org>
35951
35952         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
35953         defined as macros. Needed on QNX 6.4.1.
35954         Reported by Matt Kraai <mkraai@beckman.com>.
35955
35956 2009-07-23  Jim Meyering  <meyering@redhat.com>
35957
35958         maint.mk: invoke "make dist" with a working value of XZ_OPT
35959         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
35960
35961 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
35962
35963         Make fseeko.c compile on QNX.
35964         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
35965
35966 2009-07-22  Peter Simons  <simons@cryp.to>
35967
35968         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
35969         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
35970         * lib/md4.h: Likewise.
35971         * lib/md5.h: Likewise.
35972         * lib/sha1.h: Likewise.
35973         * lib/sha256.h: Likewise.
35974         * lib/sha512.h: Likewise.
35975
35976         tests-sha1: don't assign literal string to 'char *' variable
35977         * tests/test-sha1.c (main): Declare locals with "const" to match
35978         attributes of the right hand side.
35979
35980 2009-07-21  Eric Blake  <ebb9@byu.net>
35981
35982         dup2: fix more mingw problems
35983         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
35984         fd to itself.
35985         * doc/posix-functions/dup2.texi (dup2): Document the bug.
35986         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
35987         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
35988         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
35989         care of mingw bugs.
35990
35991 2009-07-21  Jim Meyering  <meyering@redhat.com>
35992
35993         vc-list-files: avoid failure when /bin/sh is dash
35994         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
35995         On some Debian based systems, /bin/sh is a symlink to dash, and running
35996         this command would omit the "/" following each 'tests' prefix:
35997           dash -x build-aux/vc-list-files -C . tests
35998         That is because bash and dash work differently:
35999           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
36000           bash ok
36001           dash odd
36002
36003 2009-07-21  Eric Blake  <ebb9@byu.net>
36004
36005         dup2-tests: test previous patch
36006         * modules/dup2-tests: New file.
36007         * tests/test-dup2.c: Likewise.
36008         * tests/test-open.c (main): Avoid unspecified behavior.
36009         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
36010         test.
36011
36012         dup2: work around mingw and cygwin 1.5 bug
36013         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
36014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36015         * modules/unistd (Makefile.am): Substitute it.
36016         * lib/unistd.in.h (dup2): Declare the replacement.
36017         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
36018         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
36019         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
36020         * modules/execute (Depends-on): Add dup2.
36021         * modules/fseterr (Depends-on): Likewise.
36022         * modules/pipe (Depends-on): Likewise.
36023         * modules/posix_spawn-internal (Depends-on): Likewise.
36024
36025 2009-07-21  Bruno Haible  <bruno@clisp.org>
36026
36027         * modules/.gitattributes: New file.
36028
36029 2009-07-20  Bruno Haible  <bruno@clisp.org>
36030
36031         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
36032         (main): Use it.
36033
36034 2009-07-20  Eric Blake  <ebb9@byu.net>
36035
36036         test-pipe: make a bit more robust.
36037         * tests/test-pipe.c (myerr): Allow error messages regardless of
36038         what we do to stderr.
36039         (test_pipe): Rearrange to avoid deadlock.
36040         (child_main): Try a larger read, to ensure we avoided deadlock.
36041         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
36042         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
36043         if misused.
36044
36045 2009-07-19  Jim Meyering  <meyering@redhat.com>
36046
36047         fts: avoid false-positive cycle-detection
36048         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
36049         for each new command line argument.
36050
36051 2009-07-19  Bruno Haible  <bruno@clisp.org>
36052
36053         Fix build error on mingw with the modules sys_select and unistd.
36054         * modules/acl-tests (Depends-on): Add close.
36055         * modules/binary-io-tests (Depends-on): Likewise.
36056         * modules/closein-tests (Depends-on): Likewise.
36057         * modules/flock-tests (Depends-on): Likewise.
36058         * modules/fsync-tests (Depends-on): Likewise.
36059         * modules/lseek-tests (Depends-on): Likewise.
36060         * modules/pipe-tests (Depends-on): Likewise.
36061         * modules/posix_spawn-tests (Depends-on): Likewise.
36062         * modules/posix_spawnp-tests (Depends-on): Likewise.
36063         * modules/stat-time-tests (Depends-on): Likewise.
36064         * modules/yesno-tests (Depends-on): Likewise.
36065
36066 2009-07-19  Bruno Haible  <bruno@clisp.org>
36067
36068         Unify conditionals.
36069         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
36070         macros, not at the compiler macros.
36071         * lib/pipe.c: Likewise.
36072         * lib/execute.c: Likewise.
36073         * lib/spawni.c: Likewise.
36074
36075 2009-07-19  Bruno Haible  <bruno@clisp.org>
36076
36077         Fix handling of closed stdin/stdout/stderr on mingw.
36078         * lib/w32spawn.h: Include unistd.h.
36079         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
36080         file descriptor with O_NOINHERIT flag.
36081         (fd_safer_noinherit): New function, based on fd-safer.c.
36082         (dup_safer_noinherit): New function, based on dup-safer.c.
36083         (undup_safer_noinherit): New function.
36084         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
36085         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
36086         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
36087         instead of fd_safer.
36088         * tests/test-pipe.c: Include <windows.h>.
36089         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
36090         result.
36091
36092         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
36093         from main.
36094         (test_pipe): Pass an extra argument for disambiguation.
36095         (main): Invoke parent_main or child_main.
36096
36097         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
36098         consistently.
36099
36100 2009-07-18  Eric Blake  <ebb9@byu.net>
36101
36102         test-pipe: fix mingw build
36103         * tests/test-pipe.c (main): Avoid fcntl on mingw.
36104
36105 2009-07-18  Bruno Haible  <bruno@clisp.org>
36106
36107         * modules/pipe-tests (Makefile.am): Fix typo.
36108
36109 2009-07-18  Eric Blake  <ebb9@byu.net>
36110
36111         error: fix mingw build
36112         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
36113         Reported by Bruno Haible.
36114
36115         error: avoid undefined use of stdout
36116         * lib/error.c (error, error_at_line): Check that fd 1 is open
36117         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
36118         is handling faults and the close_stdout module wants to report the
36119         detection of closed stdout as an error.
36120
36121 2009-07-17  Eric Blake  <ebb9@byu.net>
36122
36123         pipe: be robust in face of closed fds
36124         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
36125         should cause child to misbehave.
36126         * modules/pipe-tests: New module.
36127         * tests/test-pipe.c: New file.
36128         * tests/test-pipe.sh: New file.
36129         Reported by Akim Demaille.
36130
36131 2009-07-14  Bruno Haible  <bruno@clisp.org>
36132
36133         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
36134         Reported by anonymous kc.
36135
36136 2009-07-07  Jim Meyering  <meyering@redhat.com>
36137
36138         maint.mk: don't look for translatable strings in *.m4 or *.mk
36139         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
36140         when searching for translatable strings.
36141
36142 2009-07-05  Jim Meyering  <meyering@redhat.com>
36143
36144         remove superfluous parentheses in STREQ definition
36145         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
36146         * lib/getugroups.c (STREQ): Likewise.
36147         * lib/fnmatch.c (STREQ): Likewise.
36148         Spotted by Bruno Haible.
36149
36150 2009-07-04  Jim Meyering  <meyering@redhat.com>
36151
36152         argv-iter: new module
36153         * MODULES.html.sh: Add argv-iter.
36154         * lib/argv-iter.c, lib/argv-iter.h: New files.
36155         * modules/argv-iter: New file.
36156         * modules/argv-iter-tests: New file.
36157         * tests/test-argv-iter.c: Test it.
36158
36159 2009-07-04  Bruno Haible  <bruno@clisp.org>
36160
36161         Fix assertion.
36162         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
36163         contains more exact copies of a given entry than file2, leave the extra
36164         copies unpaired rather than aborting.
36165         Reported by Eric Blake.
36166
36167 2009-07-02  Bruno Haible  <bruno@clisp.org>
36168
36169         Speedup git-merge-changelog for git cherry-pick.
36170         * lib/git-merge-changelog.c (struct entries_mapping): New type.
36171         (entries_mapping_get): New function, extracted from compute_mapping.
36172         (entries_mapping_reverse_get): New function.
36173         (compute_mapping): Add a 'full' argument. Return the result in a
36174         'struct entries_mapping'.
36175         (main): Update. Access the mappings through entries_mapping_get.
36176         Reported by Eric Blake.
36177
36178 2009-07-02  Bruno Haible  <bruno@clisp.org>
36179
36180         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
36181         best_i.
36182
36183 2009-07-02  Bruno Haible  <bruno@clisp.org>
36184
36185         Speed up approximate search for matching ChangeLog entries.
36186         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
36187         argument. Call fstrcmp_bounded instead of fstrcmp.
36188         (compute_mapping, try_split_merged_entry, main): Update callers.
36189
36190 2009-07-02  Bruno Haible  <bruno@clisp.org>
36191
36192         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
36193
36194 2009-06-30  Bruno Haible  <bruno@clisp.org>
36195
36196         Reduce the number of uc_is_cased calls.
36197         * lib/unicase.h (casing_suffix_context_t): Add
36198         'first_char_except_ignorable' field.
36199         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
36200         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
36201         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
36202         Update initializer.
36203         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
36204         case-ignorable characters.
36205         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
36206         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
36207         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
36208         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
36209         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
36210
36211 2009-06-30  Bruno Haible  <bruno@clisp.org>
36212
36213         Tests for module 'unicase/ignorable'.
36214         * modules/unicase/ignorable-tests: New file.
36215         * tests/unicase/test-ignorable.c: New file, generated by
36216         gen-uni-tables.
36217
36218         Tests for module 'unicase/cased'.
36219         * modules/unicase/cased-tests: New file.
36220         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
36221         * tests/unicase/test-predicate-part1.h: New file, derived from
36222         tests/unictype/test-predicate-part1.h.
36223         * tests/unicase/test-predicate-part2.h: New file, same as
36224         tests/unictype/test-predicate-part2.h.
36225
36226         Fix evaluation of "Before C" condition of FINAL_SIGMA.
36227         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
36228         (output_casing_properties): New function.
36229         (main): Call it.
36230         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
36231         * lib/unicase/cased.c: Include unictype/bitmap.h.
36232         (uc_is_cased): Define through a bitmap lookup.
36233         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
36234         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
36235         (uc_is_case_ignorable): Define through a bitmap lookup.
36236         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
36237         lib/unictype/bitmap.h.
36238         (Depends-on): Add inline. Clean up.
36239         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
36240         lib/unictype/bitmap.h.
36241         (Depends-on): Add inline. Clean up.
36242         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
36243         recognition.
36244         * tests/unicase/test-u16-tolower.c (main): Likewise.
36245         * tests/unicase/test-u32-tolower.c (main): Likewise.
36246
36247 2009-06-30  Bruno Haible  <bruno@clisp.org>
36248
36249         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
36250         * lib/unicase/u16-casemap.c: Likewise.
36251         * lib/unicase/u32-casemap.c: Likewise.
36252
36253 2009-06-29  Bruno Haible  <bruno@clisp.org>
36254
36255         Define u32_casefold as a wrapper around u32_ct_casefold.
36256         * lib/unicase/u32-casefold.c: Update.
36257         * modules/unicase/u32-casefold (Depends-on): Add
36258         unicase/u32-ct-casefold, unicase/empty-prefix-context,
36259         unicase/empty-suffix-context. Clean up.
36260
36261         Define u16_casefold as a wrapper around u16_ct_casefold.
36262         * lib/unicase/u16-casefold.c: Update.
36263         * modules/unicase/u16-casefold (Depends-on): Add
36264         unicase/u16-ct-casefold, unicase/empty-prefix-context,
36265         unicase/empty-suffix-context. Clean up.
36266
36267         Define u8_casefold as a wrapper around u8_ct_casefold.
36268         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
36269         * lib/unicase/u8-casefold.c: Update.
36270         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
36271         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36272
36273         Define u32_totitle as a wrapper around u32_ct_totitle.
36274         * lib/unicase/u32-totitle.c: Update.
36275         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
36276         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36277
36278         Define u16_totitle as a wrapper around u16_ct_totitle.
36279         * lib/unicase/u16-totitle.c: Update.
36280         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
36281         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36282
36283         Define u8_totitle as a wrapper around u8_ct_totitle.
36284         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
36285         functions.
36286         (FUNC): Delegate to U_CT_TOTITLE.
36287         * lib/unicase/u8-totitle.c: Update.
36288         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
36289         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
36290
36291         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
36292         invocation.
36293         * modules/unicase/u32-tolower (Depends-on): Add
36294         unicase/empty-prefix-context, unicase/empty-suffix-context.
36295
36296         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
36297         invocation.
36298         * modules/unicase/u16-tolower (Depends-on): Add
36299         unicase/empty-prefix-context, unicase/empty-suffix-context.
36300
36301         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
36302         * modules/unicase/u8-tolower (Depends-on): Add
36303         unicase/empty-prefix-context, unicase/empty-suffix-context.
36304
36305         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
36306         invocation.
36307         * modules/unicase/u32-toupper (Depends-on): Add
36308         unicase/empty-prefix-context, unicase/empty-suffix-context.
36309
36310         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
36311         invocation.
36312         * modules/unicase/u16-toupper (Depends-on): Add
36313         unicase/empty-prefix-context, unicase/empty-suffix-context.
36314
36315         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
36316         * modules/unicase/u8-toupper (Depends-on): Add
36317         unicase/empty-prefix-context, unicase/empty-suffix-context.
36318
36319         New module 'unicase/u32-ct-casefold'.
36320         * lib/unicase/u32-ct-casefold.c: New file.
36321         * modules/unicase/u32-ct-casefold: New file.
36322
36323         New module 'unicase/u16-ct-casefold'.
36324         * lib/unicase/u16-ct-casefold.c: New file.
36325         * modules/unicase/u16-ct-casefold: New file.
36326
36327         New module 'unicase/u8-ct-casefold'.
36328         * lib/unicase/u8-ct-casefold.c: New file.
36329         * lib/unicase/u-ct-casefold.h: New file, derived from
36330         lib/unicase/u-casefold.h.
36331         * modules/unicase/u8-ct-casefold: New file.
36332
36333         New module 'unicase/u32-ct-totitle'.
36334         * lib/unicase/u32-ct-totitle.c: New file.
36335         * modules/unicase/u32-ct-totitle: New file.
36336
36337         New module 'unicase/u16-ct-totitle'.
36338         * lib/unicase/u16-ct-totitle.c: New file.
36339         * modules/unicase/u16-ct-totitle: New file.
36340
36341         New module 'unicase/u8-ct-totitle'.
36342         * lib/unicase/u8-ct-totitle.c: New file.
36343         * lib/unicase/u-ct-totitle.h: New file, derived from
36344         lib/unicase/u-totitle.h.
36345         * modules/unicase/u8-ct-totitle: New file.
36346
36347         New module 'unicase/u32-ct-tolower'.
36348         * lib/unicase/u32-ct-tolower.c: New file.
36349         * modules/unicase/u32-ct-tolower: New file.
36350
36351         New module 'unicase/u16-ct-tolower'.
36352         * lib/unicase/u16-ct-tolower.c: New file.
36353         * modules/unicase/u16-ct-tolower: New file.
36354
36355         New module 'unicase/u8-ct-tolower'.
36356         * lib/unicase/u8-ct-tolower.c: New file.
36357         * modules/unicase/u8-ct-tolower: New file.
36358
36359         New module 'unicase/u32-ct-toupper'.
36360         * lib/unicase/u32-ct-toupper.c: New file.
36361         * modules/unicase/u32-ct-toupper: New file.
36362
36363         New module 'unicase/u16-ct-toupper'.
36364         * lib/unicase/u16-ct-toupper.c: New file.
36365         * modules/unicase/u16-ct-toupper: New file.
36366
36367         New module 'unicase/u8-ct-toupper'.
36368         * lib/unicase/u8-ct-toupper.c: New file.
36369         * modules/unicase/u8-ct-toupper: New file.
36370
36371         Add context arguments to u*_casemap functions.
36372         * lib/unicase/unicasemap.h: Include unicase.h.
36373         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
36374         suffix_context arguments.
36375         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
36376         functions.
36377         (FUNC): Add prefix_context and suffix_context arguments. Use
36378         uc_is_cased and uc_is_case_ignorable.
36379         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
36380         * lib/unicase/u16-casemap.c: Likewise.
36381         * lib/unicase/u32-casemap.c: Likewise.
36382         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
36383         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36384         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
36385         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36386         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
36387         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
36388
36389         New module 'unicase/u32-suffix-context'.
36390         * lib/unicase/u32-suffix-context.c: New file.
36391         * modules/unicase/u32-suffix-context: New file.
36392
36393         New module 'unicase/u16-suffix-context'.
36394         * lib/unicase/u16-suffix-context.c: New file.
36395         * modules/unicase/u16-suffix-context: New file.
36396
36397         New module 'unicase/u8-suffix-context'.
36398         * lib/unicase/u8-suffix-context.c: New file.
36399         * lib/unicase/u-suffix-context.h: New file.
36400         * modules/unicase/u8-suffix-context: New file.
36401
36402         New module 'unicase/empty-suffix-context'.
36403         * lib/unicase/empty-suffix-context.c: New file.
36404         * modules/unicase/empty-suffix-context: New file.
36405
36406         New module 'unicase/u32-prefix-context'.
36407         * lib/unicase/u32-prefix-context.c: New file.
36408         * modules/unicase/u32-prefix-context: New file.
36409
36410         New module 'unicase/u16-prefix-context'.
36411         * lib/unicase/u16-prefix-context.c: New file.
36412         * modules/unicase/u16-prefix-context: New file.
36413
36414         New module 'unicase/u8-prefix-context'.
36415         * lib/unicase/u8-prefix-context.c: New file.
36416         * lib/unicase/u-prefix-context.h: New file.
36417         * lib/unicase/context.h: New file.
36418         * modules/unicase/u8-prefix-context: New file.
36419
36420         New module 'unicase/empty-prefix-context'.
36421         * lib/unicase/empty-prefix-context.c: New file.
36422         * modules/unicase/empty-prefix-context: New file.
36423
36424         New module 'unicase/ignorable'.
36425         * lib/unicase/ignorable.c: New file.
36426         * modules/unicase/ignorable: New file.
36427
36428         New module 'unicase/cased'.
36429         * lib/unicase/caseprop.h: New file.
36430         * lib/unicase/cased.c: New file.
36431         * modules/unicase/cased: New file.
36432
36433         New functions for case mapping of substrings.
36434         * lib/unicase.h (casing_prefix_context_t): New type.
36435         (unicase_empty_prefix_context): New variable.
36436         (u8_casing_prefix_context, u16_casing_prefix_context,
36437         u32_casing_prefix_context, u8_casing_prefixes_context,
36438         u16_casing_prefixes_context, u32_casing_prefixes_context): New
36439         declarations.
36440         (casing_suffix_context_t): New type.
36441         (unicase_empty_suffix_context): New variable.
36442         (u8_casing_suffix_context, u16_casing_suffix_context,
36443         u32_casing_suffix_context, u8_casing_suffixes_context,
36444         u16_casing_suffixes_context, u32_casing_suffixes_context,
36445         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
36446         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
36447         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
36448         declarations.
36449
36450 2009-06-28  Jim Meyering  <meyering@redhat.com>
36451
36452         boostrap: indent only with spaces
36453         * build-aux/bootstrap: Indent only with spaces, never TABs.
36454
36455         bootstrap: split long lines
36456         * build-aux/bootstrap: Keep line length < 80.
36457
36458         bootstrap: sync from coreutils
36459         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
36460         just as autoreconf does.  Verify a list of prerequisite
36461         package-name,version-number pairs if defined in bootstrap.conf.
36462         Refer to README-prereq, if prerequisites are not satisfied.
36463
36464 2009-06-27  Eric Blake  <ebb9@byu.net>
36465
36466         tests: add test for bogus NULL definition
36467         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
36468         * tests/test-stdlib.c: Likewise.
36469         * tests/test-string.c: Likewise.
36470         * tests/test-locale.c: Likewise.
36471         * tests/test-unistd.c: Likewise.
36472         * modules/stdio-tests (Depends-on): Add verify.
36473         * modules/stdlib-tests (Depends-on): Likewise.
36474         * modules/string-tests (Depends-on): Likewise.
36475         * modules/locale-tests (Depends-on): Likewise.
36476         * modules/unistd-tests (Depends-on): Likewise.
36477
36478 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
36479
36480         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
36481         self-explaining comment.
36482         * m4/selinux-selinux-h: Update serial.
36483         (gl_LIBSELINUX): New macro, adding a warning for missing development
36484         packages to code extracted from...
36485         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
36486         Add warning for missing development packages here, too.
36487
36488 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
36489
36490         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
36491
36492 2009-06-25  Eric Blake  <ebb9@byu.net>
36493
36494         version-etc: fix regression
36495         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
36496         gcc.
36497         (version_etc): Use it, to catch bugs with trailing NULL.
36498         * lib/version-etc.c (version_etc_arn): Delete unused argument.
36499         (version_etc_va): Fix logic bug.
36500         * modules/version-etc-tests: Add test.
36501         * tests/test-version-etc.c: New file.
36502         * tests/test-version-etc.sh: Likewise.
36503
36504 2009-06-25  Sam Steingold  <sds@gnu.org>
36505
36506         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
36507         mbtowc declaration.
36508
36509 2009-06-25  Eric Blake  <ebb9@byu.net>
36510
36511         fpurge: migrate into <stdio.h>
36512         * lib/fpurge.h: Delete...
36513         * lib/stdio.in.h (fpurge): ...and declare here, instead.
36514         * lib/fpurge.c (fpurge): Change declaring header.
36515         * modules/fpurge (Files): Drop deleted file.
36516         (Depends-on): Add stdio.
36517         (configure.ac): Set witness.
36518         * modules/stdio (Makefile.am): Support fpurge macros.
36519         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36520         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
36521         * lib/fflush.c: Update client.
36522         * tests/test-fpurge.c: Likewise.
36523         * NEWS: Mention the change.
36524
36525 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36526
36527         * lib/argp-version-etc.c (program_authors): Add const
36528         qualifier.
36529         * lib/version-etc.c: Fix typos in the comments.
36530         * modules/argp-version-etc: Depends on version-etc.
36531
36532 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36533
36534         argp-version-etc: new module.
36535
36536         * lib/argp-version-etc.c: New file.
36537         * lib/argp-version-etc.h: New file.
36538         * modules/argp-version-etc: New file.
36539         * modules/argp-version-etc-tests: New file.
36540         * tests/test-argp-version-etc.c: New test.
36541         * tests/test-argp-version-etc-1.sh: New test.
36542
36543 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36544
36545         Provide additional interfaces and documentation for version-etc
36546         module.
36547
36548         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
36549         interfaces.
36550         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
36551         prototypes.
36552
36553 2009-06-24  Bruno Haible  <bruno@clisp.org>
36554
36555         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
36556         HAVE_LIB${NAME} macro.
36557         Reported by Sam Steingold <sds@gnu.org>.
36558
36559 2009-06-23  Simon Josefsson  <simon@josefsson.org>
36560
36561         * modules/hash-tests (test_hash_LDADD): Link to libintl when
36562         needed.
36563
36564 2009-06-21  Bruno Haible  <bruno@clisp.org>
36565
36566         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
36567         work.
36568         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
36569         together with LIB${NAME}, LTLIB${NAME}.
36570         Reported by Sam Steingold <sds@gnu.org>.
36571
36572 2009-06-20  Jim Meyering  <meyering@redhat.com>
36573
36574         tests: make sc_require_test_exit_idiom more generic
36575         * top/maint.mk (Exit_witness_file): New overridable variable.
36576         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
36577         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
36578
36579 2009-06-19  Jim Meyering  <meyering@redhat.com>
36580
36581         hash: reverse order of src/dst parameters in an internal interface
36582         * lib/hash.c (transfer_entries): Reverse order of parameters to
36583         put DST before SRC.  Adjust callers.
36584
36585         tests: test-hash: avoid wholesale duplication
36586         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
36587         Instead, use a loop and add a single conditional.
36588
36589         tests: test-hash: allow seed selection via a command line argument
36590         * tests/test-hash.c (get_seed): New function.
36591         (main): Use it.
36592
36593 2009-06-19  Eric Blake  <ebb9@byu.net>
36594
36595         hash: avoid memory leak on allocation failure
36596         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
36597         failure.  Factor repeated algorithm...
36598         (transfer_entries): ...into new helper routine.
36599         (hash_delete): React to hash_rehash return value.
36600
36601         hash: reduce memory pressure in hash_rehash no-op case
36602         * lib/hash.c (next_prime): Avoid overflow.
36603         (hash_initialize): Factor bucket size computation...
36604         (compute_bucket_size): ...into new helper function.
36605         (hash_rehash): Use new function and open coding to reduce memory
36606         pressure, and avoid a memory leak in USE_OBSTACK code.
36607         Reported by Jim Meyering.
36608
36609 2009-06-18  Eric Blake  <ebb9@byu.net>
36610
36611         hash: make rotation more obvious
36612         * modules/hash (Depends-on): Add bitrotate and stdint.
36613         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
36614         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
36615         (SIZE_MAX): Rely on headers for definition.
36616         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
36617         (raw_hasher): Use rotr_sz.
36618         Suggested by Jim Meyering.
36619
36620         hash: fix memory leak in last patch
36621         * lib/hash.c (hash_rehash): Avoid memory leak.
36622
36623         hash: avoid no-op rehashing
36624         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
36625
36626         hash: provide default callback functions
36627         * lib/hash.c (raw_hasher, raw_comparator): New functions.
36628         (hash_initialize): Use them as defaults.
36629         * tests/test-hash.c (main): Test this.
36630
36631         hash: minor optimization
36632         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
36633         when possible.
36634         (hash_initialize): Document this promise.
36635         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
36636         * tests/test-hash.c (hash_compare_strings): Test this.
36637
36638 2009-06-18  Bruno Haible  <bruno@clisp.org>
36639
36640         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
36641         going to be replaced anyway.
36642
36643 2009-06-18  Bruno Haible  <bruno@clisp.org>
36644
36645         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
36646         in one place.
36647         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
36648         be replaced anyway.
36649
36650 2009-06-18  Eric Blake  <ebb9@byu.net>
36651
36652         hash: check for resize before insertion
36653         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
36654         threshold before insertion, so that a pathological hash_rehash
36655         that fills every bucket can still trigger another rehash.
36656
36657 2009-06-18  Jim Meyering  <meyering@redhat.com>
36658
36659         hash-tests: add a loop around the small tests
36660         * tests/test-hash.c (main): Repeat small tests with selected
36661         small initial table sizes.
36662
36663 2009-06-17  Eric Blake  <ebb9@byu.net>
36664
36665         hash: minor cleanups
36666         * lib/hash.h (hash_entry): Make opaque, by moving...
36667         * lib/hash.c (hash_entry): ...here.
36668         (hash_insert): Clarify restrictions on what can be inserted.
36669         (hash_get_next): Clarify when it is safe to remove an element
36670         during traversal.
36671         (check_tuning): Skip verification when tuning is known safe.
36672         (hash_initialize): Clarify restrictions on tuning.
36673
36674 2009-06-17  Jim Meyering  <jim@meyering.net>
36675         and Eric Blake  <ebb9@byu.net>
36676
36677         hash-tests: new module
36678         * modules/hash-tests: New file.
36679         * tests/test-hash.c: New file.
36680
36681 2009-06-17  Eric Blake  <ebb9@byu.net>
36682
36683         strstr-simple: document new module
36684         * MODULES.html.sh: Document new module.
36685
36686         strstr, strcasestr: replace on platforms with broken memchr
36687         * modules/strstr: Split into...
36688         * modules/strstr-simple: ...new module that does not care about
36689         performance, but does care about glibc bug.
36690         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
36691         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
36692         if platform memchr is broken, per Debian bug 521737.
36693         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
36694         memchr.
36695         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
36696         * doc/posix-functions/strstr.texi (strstr): Document the fix.
36697         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
36698         * modules/mountlist (Depends-on): Add strstr-simple.
36699         * modules/gen-uni-tables (Depends-on): Likewise.
36700         * modules/argz (Depends-on): Add strstr.
36701
36702 2009-06-17  Bruno Haible  <bruno@clisp.org>
36703
36704         * modules/posix_spawn-internal (Depends-on): Add errno.
36705
36706 2009-06-17  Bruno Haible  <bruno@clisp.org>
36707
36708         Define missing ESTALE on Interix 3.5.
36709         * lib/errno.in.h (ESTALE): Assign a value if missing.
36710         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
36711         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
36712         missing.
36713         * doc/posix-headers/errno.texi: Mention the Interix bug.
36714         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
36715
36716 2009-06-15  Eric Blake  <ebb9@byu.net>
36717
36718         memchr, memchr2: add valgrind exception
36719         * lib/memchr.valgrind: New file.
36720         * lib/memchr2.valgrind: New file.
36721         * modules/memchr (Files): Distribute valgrind file.
36722         * modules/memchr2 (Files): Likewise.
36723
36724         docs: memchr is no longer obsolete
36725         * MODULES.html.sh: Move memchr from obsolete to string.h section.
36726         * lib/string.in.h (memchr): Simplify logic.
36727
36728 2009-06-14  Jim Meyering  <meyering@redhat.com>
36729
36730         link-follow: fix the "checking..." message to not mention trailing slash
36731         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
36732         never considered trailing slashes.
36733
36734 2009-06-14  Bruno Haible  <bruno@clisp.org>
36735
36736         * m4/memchr.m4: Mention also the bug on IA-64.
36737         * doc/posix-functions/memchr.texi: Likewise.
36738
36739 2009-06-12  Eric Blake  <ebb9@byu.net>
36740
36741         memchr: detect broken x86_64 and alpha implementations
36742         * modules/memchr-tests (Depends-on): Move mmap detection...
36743         * modules/memchr (Depends-on): ...here.
36744         (configure.ac): Set indicator.
36745         * lib/string.in.h (memchr): Declare replacement.
36746         * modules/string (Makefile.am): Trigger replacement.
36747         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
36748         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
36749         bugs.
36750         * doc/posix-functions/memchr.texi (memchr): Document the bug.
36751         * modules/getpagesize (License): Relax license.
36752
36753 2009-06-11  Bruno Haible  <bruno@clisp.org>
36754
36755         * lib/idpriv.h: Add more references.
36756
36757 2009-06-08  Bruno Haible  <bruno@clisp.org>
36758
36759         Tests for module 'idpriv-droptemp'.
36760         * modules/idpriv-droptemp-tests: New file.
36761         * tests/test-idpriv-droptemp.sh: New file.
36762         * tests/test-idpriv-droptemp.su.sh: New file.
36763         * tests/test-idpriv-droptemp.c: New file.
36764
36765         New module 'idpriv-droptemp'.
36766         * lib/idpriv-droptemp.c: New file.
36767         * modules/idpriv-droptemp: New file.
36768
36769 2009-06-08  Bruno Haible  <bruno@clisp.org>
36770
36771         Tests for module 'idpriv-drop'.
36772         * modules/idpriv-drop-tests: New file.
36773         * tests/test-idpriv-drop.sh: New file.
36774         * tests/test-idpriv-drop.su.sh: New file.
36775         * tests/test-idpriv-drop.c: New file.
36776
36777         New module 'idpriv-drop'.
36778         * lib/idpriv.h: New file.
36779         * lib-idpriv-drop.c: New file.
36780         * m4/idpriv.m4: New file.
36781         * modules/idpriv-drop: New file.
36782
36783 2009-06-08  Bruno Haible  <bruno@clisp.org>
36784
36785         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
36786         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36787         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36788         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36789         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36790         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36791         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36792
36793 2009-06-08  Eric Blake  <ebb9@byu.net>
36794
36795         test-strstr: use memory fence, when possible
36796         * tests/test-strstr.c (main): Use memory fence, in order to be
36797         more likely to trigger Debian bug 521737.
36798         * modules/strstr-tests (Files): Pull in additional files.
36799
36800         memchr: no longer obsolete, for wider field testing
36801         * modules/memchr (Status, Notice): Delete, this module is no
36802         longer obsolete.
36803         * modules/vasnprintf (Depends-on): Add memchr.
36804
36805 2009-06-07  Jim Meyering  <meyering@redhat.com>
36806
36807         hash: declare some functions with the warn_unused_result attribute
36808         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
36809
36810 2009-06-07  Bruno Haible  <bruno@clisp.org>
36811
36812         * tests/test-alignof.c: Don't test int64_t if it does not exist.
36813         Reported by Eric Blake.
36814
36815 2009-06-06  Eric Blake  <ebb9@byu.net>
36816
36817         test-alignof: fix typo with long double
36818         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
36819         compiler error.
36820
36821 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
36822
36823         Escape non-texinfo { and }s.
36824         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
36825         markup error.
36826
36827 2009-06-04  Jim Meyering  <meyering@redhat.com>
36828
36829         gitlog-to-changelog: don't infloop on an empty commit log
36830         * build-aux/gitlog-to-changelog: Warn about an empty log message.
36831         Reported by Boris Petersen <transacid@centerim.org>.
36832
36833 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
36834
36835         version-etc: extend for packagers
36836         Add three new configure options, intended for packagers:
36837           --with-packager="packager name"
36838           --with-packager-version="packager-specific version"
36839           --with-packager-bug-reports="packager bug reporting"
36840         An example with coreutils:
36841           $ ./configure \
36842             --with-packager=Gentoo \
36843             --with-packager-bug-report=http://bugs.gentoo.org/ \
36844             --with-packager-version="patchset 1.6"
36845           $ ./src/ls --version | head -n2
36846           ls (GNU coreutils) 7.1-dirty
36847           Packaged by Gentoo (patchset 1.6)
36848         Note that the bug reporting info via --help doesn't show up because
36849         coreutils uses its own custom emit_bug_reporting_address() implementation
36850         in src/system.h.  If it didn't, it'd look like:
36851           $ ./src/ls --help | tail -n4
36852           Report bugs to <bug-coreutils@gnu.org>.
36853           Report Gentoo bugs to <http://bugs.gentoo.org/>.
36854           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
36855           General help using GNU software: <http://www.gnu.org/gethelp/>.
36856         * lib/version-etc.c: Print new information, if provided.
36857         * m4/version-etc.m4: New file.
36858         * modules/version-etc (Files): Add m4/version-etc.m4.
36859         (configure.ac): Add gl_VERSION_ETC.
36860
36861 2009-05-31  Bruno Haible  <bruno@clisp.org>
36862
36863         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
36864         and 'int64_t'.
36865         * modules/alignof-tests (Dependencies): Add stdint.
36866         Reported by Eric Blake.
36867
36868 2009-05-31  Bruno Haible  <bruno@clisp.org>
36869
36870         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
36871         restriction due to compiler bugs.
36872         Reported by Eric Blake.
36873
36874 2009-05-31  Simon Josefsson  <simon@josefsson.org>
36875             Bruno Haible  <bruno@clisp.org>
36876
36877         Fix test-alignof failure.
36878         * lib/alignof.h (alignof_slot): New macro.
36879         (alignof_type): New macro, with the same semantics as the previous
36880         'alignof'.
36881         (alignof): Alias to alignof_slot.
36882         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
36883         check that the results are usable as constant expressions.
36884
36885 2009-05-31  Bruno Haible  <bruno@clisp.org>
36886
36887         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
36888         * tests/test-memchr.c (main): Check that memchr does not read past the
36889         first occurrence of the byte.
36890         * tests/test-strstr.c (main): Update comment.
36891         Suggested by Eric Blake.
36892
36893 2009-05-30  Bruno Haible  <bruno@clisp.org>
36894
36895         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
36896         detail how to use dumpbin.
36897         Reported by David Byron <dbyron@dbyron.com>.
36898
36899 2009-06-02  Simon Josefsson  <simon@josefsson.org>
36900
36901         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
36902
36903 2009-06-02  Simon Josefsson  <simon@josefsson.org>
36904
36905         * m4/manywarnings.m4: Add GCC 4.4 warnings.
36906
36907 2009-05-28  Bruno Haible  <bruno@clisp.org>
36908
36909         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
36910         build-aux/ files.
36911
36912 2009-05-28  Simon Josefsson  <simon@josefsson.org>
36913
36914         * gnulib-tool (func_import): Transform license on build-aux/ files too.
36915
36916 2009-05-27  Simon Josefsson  <simon@josefsson.org>
36917
36918         * gnulib-tool (sed_transform_main_lib_file)
36919         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
36920         regexps.
36921
36922 2009-05-26  Simon Josefsson  <simon@josefsson.org>
36923
36924         * tests/test-strstr.c: Add another self-test.
36925         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
36926         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
36927
36928 2009-05-23  Bruno Haible  <bruno@clisp.org>
36929
36930         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
36931         change.
36932
36933 2009-05-21  Bruno Haible  <bruno@clisp.org>
36934
36935         Simplify use of mode_t varargs.
36936         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
36937         uses 'mode_t' or 'int'.
36938         * lib/openat.c (openat): Likewise.
36939         * lib/open-safer.c (open_safer): Likewise.
36940         * m4/mode_t.m4: New file.
36941         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
36942         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
36943         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
36944         * modules/open (Files): Add m4/mode_t.m4.
36945         * modules/openat (Files): Likewise.
36946         * modules/fcntl-safer (Files): Likewise.
36947         Suggested by Eric Blake.
36948
36949 2009-05-21  Pádraig Brady  <P@draigbrady.com>
36950
36951         * doc/glibc-functions/fallocate.texi: New file.
36952         * doc/gnulib.texi: Include it.
36953
36954 2009-05-21  Eric Blake  <ebb9@byu.net>
36955             Bruno Haible  <bruno@clisp.org>
36956
36957         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
36958         invocations.
36959         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
36960
36961 2009-05-21  Eric Blake  <ebb9@byu.net>
36962             Bruno Haible  <bruno@clisp.org>
36963
36964         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
36965         include_next. Fix of 2008-11-20 commit.
36966         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
36967         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
36968         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
36969         NEXT_MATH_H.
36970         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
36971         instead of NEXT_MATH_H.
36972
36973 2009-05-21  Bruno Haible  <bruno@clisp.org>
36974
36975         Avoid redefinition warnings for SIZE_MAX.
36976         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
36977         Reported by Simon Josefsson.
36978
36979 2009-05-21  Bruno Haible  <bruno@clisp.org>
36980
36981         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
36982         AC_CACHE_VAL.
36983
36984 2009-05-20  Bruno Haible  <bruno@clisp.org>
36985
36986         Make zeroptr.h work on mingw.
36987         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
36988         mprotect.
36989         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
36990         * modules/memchr2-tests (configure.ac): Likewise.
36991         * modules/memcmp-tests (configure.ac): Likewise.
36992         * modules/memmem-tests (configure.ac): Likewise.
36993         * modules/memrchr-tests (configure.ac): Likewise.
36994         Reported by Simon Josefsson.
36995
36996 2009-05-20  Simon Josefsson  <simon@josefsson.org>
36997
36998         * tests/test-glob.c: Include string.h for strcmp prototype.
36999
37000 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37001
37002         * modules/getdelim (Depends-on): Add explicit stdint, although it
37003         was implicitly already pulled in via realloc-posix.
37004         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
37005
37006 2009-05-20  Simon Josefsson  <simon@josefsson.org>
37007
37008         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
37009         G. Christensen" <tgc@jupiterrise.com>.
37010         * m4/sys_socket_h.m4: Check for sa_family_t.
37011         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
37012         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
37013         * tests/test-sys_socket.c: Check that sa_family_t works.
37014
37015 2009-05-18  Eric Blake  <ebb9@byu.net>
37016
37017         maint.mk: allow gnulib_dir in VPATH build
37018         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
37019
37020 2009-05-15  Jim Meyering  <meyering@redhat.com>
37021
37022         maint.mk: Give gnulib_dir a default definition.
37023         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
37024         Thus, most packages no longer need to specify this variable in cfg.mk
37025
37026 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
37027
37028         rename.m4: fix typos that would make non-mingw cross-configure fail
37029         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
37030
37031 2009-05-13  Eric Blake  <ebb9@byu.net>
37032
37033         mmap-anon: avoid out-of-order autoconf expansion
37034         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
37035         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
37036         * modules/memchr-tests (Depends-on): Add extensions.
37037         * modules/memchr2-tests (Depends-on): Add extensions.
37038         * modules/memcmp-tests (Depends-on): Add extensions.
37039         * modules/memmem-tests (Depends-on): Add extensions.
37040         * modules/memrchr-tests (Depends-on): Add extensions.
37041
37042 2009-05-13  Bruno Haible  <bruno@clisp.org>
37043
37044         Make some tests ISO C 99 compliant.
37045         * tests/zerosize-ptr.h: New file.
37046         * tests/test-memchr.c: Include zerosize-ptr.h.
37047         (main): Use a zero-size object pointer instead of NULL.
37048         * tests/test-memchr2.c: Include zerosize-ptr.h.
37049         (main): Use a zero-size object pointer instead of NULL.
37050         * tests/test-memcmp.c: Include zerosize-ptr.h.
37051         (main): Use a zero-size object pointer instead of NULL.
37052         * tests/test-memmem.c: Include zerosize-ptr.h.
37053         (main): Use a zero-size object pointer instead of NULL.
37054         * tests/test-memrchr.c: Include zerosize-ptr.h.
37055         (main): Use a zero-size object pointer instead of NULL.
37056         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
37057         m4/mmap-anon.m4.
37058         (Depends-on): Add getpagesize.
37059         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37060         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
37061         m4/mmap-anon.m4.
37062         (Depends-on): Add getpagesize.
37063         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37064         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
37065         m4/mmap-anon.m4.
37066         (Depends-on): Add getpagesize.
37067         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37068         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
37069         m4/mmap-anon.m4.
37070         (Depends-on): Add getpagesize.
37071         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37072         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
37073         m4/mmap-anon.m4.
37074         (Depends-on): Add getpagesize.
37075         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
37076
37077 2009-05-12  Bruno Haible  <bruno@clisp.org>
37078
37079         Tests for module 'alignof'.
37080         * modules/alignof-tests: New file.
37081         * tests/test-alignof.c: New file.
37082
37083 2009-05-12  Bruno Haible  <bruno@clisp.org>
37084
37085         Fix alignof macro.
37086         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
37087         vendor compilers that are always correct.
37088
37089 2009-05-12  Bruno Haible  <bruno@clisp.org>
37090
37091         Make the MAP_ANONYMOUS detection work on HP-UX 11.
37092         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
37093         not whether its fully works.
37094
37095 2009-05-12  Bruno Haible  <bruno@clisp.org>
37096
37097         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
37098
37099 2009-05-12  Jim Meyering  <meyering@redhat.com>
37100
37101         * top/maint.mk: Adjust backslash alignment.
37102
37103 2009-05-11  Simon Josefsson  <simon@josefsson.org>
37104
37105         * top/maint.mk: Make $(srcdir)/build-aux configurable.
37106
37107 2009-05-11  Eric Blake  <ebb9@byu.net>
37108
37109         argp: avoid undefined behavior
37110         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
37111         macros.
37112
37113 2009-05-08  Simon Josefsson  <simon@josefsson.org>
37114
37115         * tests/test-vc-list-files-git.sh: Do git config of user.email and
37116         user.name to prevent git commit from complaining.
37117
37118 2009-05-10  Bruno Haible  <bruno@clisp.org>
37119
37120         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
37121         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
37122         it rewrites every file name only once.
37123         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
37124
37125 2009-05-08  Bruno Haible  <bruno@clisp.org>
37126
37127         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
37128         instead of 'max'.
37129
37130 2009-05-08  Simon Josefsson  <simon@josefsson.org>
37131
37132         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
37133         sockaddr_storage test.
37134
37135 2009-05-07  Simon Josefsson  <simon@josefsson.org>
37136
37137         * modules/sys_socket (Makefile.am): Substitute
37138         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
37139         * m4/sys_socket_h.m4: Check for sockaddr_storage.
37140         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
37141         * tests/test-sys_socket.c: Check sockaddr_storage.
37142
37143 2009-05-08  Bruno Haible  <bruno@clisp.org>
37144
37145         New module 'alignof'.
37146         * lib/alignof.h: New file.
37147         * modules/alignof: New file.
37148
37149 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37150             Bruno Haible  <bruno@clisp.org>
37151
37152         Fix test-file-has-acl on FreeBSD.
37153         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
37154         mask is implicitly added.
37155         * tests/test-file-has-acl.c: Include <signal.h>.
37156         (main): Terminate the test after 5 seconds.
37157         * modules/acl-tests (configure.ac): Check for alarm function.
37158
37159 2009-05-04  Bruno Haible  <bruno@clisp.org>
37160
37161         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
37162         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
37163         * modules/errno (configure.ac): Drop AC_REQUIRE.
37164         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
37165         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
37166
37167 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37168
37169         * modules/glob-tests: New module.
37170         * tests/test-glob.c: Add.
37171
37172 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37173
37174         * modules/fnmatch-tests: New module.
37175         * tests/test-fnmatch.c: Add.
37176
37177 2009-05-04  Eric Blake  <ebb9@byu.net>
37178
37179         maint: make the new no-submodule-changes rule VPATH-safe
37180         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
37181
37182 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37183             Bruno Haible  <bruno@clisp.org>
37184
37185         acl: Fix infinite loop on FreeBSD.
37186         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
37187         of return value from acl_get_entry.
37188         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
37189         Likewise.
37190
37191 2009-05-03  Bruno Haible  <bruno@clisp.org>
37192
37193         * lib/acl-internal.h (acl_entries): Clarify return value.
37194         * lib/acl_entries.c (acl_entries): Likewise.
37195
37196 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37197
37198         Bug fix in acl module.
37199         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
37200
37201 2009-05-03  Bruno Haible  <bruno@clisp.org>
37202
37203         Create gperf-generated file in the source dir, not in the build dir.
37204         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
37205         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
37206         * modules/unicase/locale-language (unicase/locale-languages.h):
37207         Likewise.
37208         * modules/unicase/special-casing (unicase/special-casing-table.h):
37209         Likewise.
37210         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
37211         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
37212         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
37213         Reported by Ralf Wildenhues.
37214
37215 2009-05-03  Bruno Haible  <bruno@clisp.org>
37216
37217         * modules/fnmatch (Description, configure.ac): Taken from
37218         fnmatch-posix.
37219         * modules/fnmatch-posix: Turn into a symbolic reference to the
37220         'fnmatch' module, and deprecate.
37221         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
37222
37223 2009-05-03  Bruno Haible  <bruno@clisp.org>
37224
37225         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
37226         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
37227         Reported by Ralf Wildenhues.
37228
37229 2009-05-04  Simon Josefsson  <simon@josefsson.org>
37230
37231         * m4/fnmatch.m4: Fix fnmatch re-define.
37232
37233 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
37234
37235         priv-set: new module and tests; adapt write-any-file
37236         * lib/priv-set.c: New file.
37237         * lib/priv-set.h: New file.
37238         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
37239         * lib/write-any-file.c: Simplify by using priv-set module.
37240         * m4/priv-set.m4: New file.
37241         * modules/priv-set: New file.
37242         * modules/unlinkdir: Add dependency on priv-set module.
37243         * modules/write-any-file: Likewise.
37244
37245         Tests for module 'priv-set'.
37246         * modules/priv-set-tests: New file.
37247         * tests/test-priv-set.c: New file.
37248
37249 2009-05-03  Jim Meyering  <meyering@redhat.com>
37250             Bruno Haible  <bruno@clisp.org>
37251
37252         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
37253         use the converted UTF-8 variant of the name instead.
37254
37255 2009-05-03  Jim Meyering  <meyering@redhat.com>
37256
37257         tests: tighten some getdate tests
37258         * tests/test-getdate.c (main): Tighten tests: require equality,
37259         not just greater than.  Set TZ envvar to UTC0.
37260
37261 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
37262
37263         getdate: correctly interpret "next monday" when run on a Monday
37264         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
37265         that e.g., "next tues" (when run on a tuesday) results in a date
37266         that is one week in the future, and not today's date.
37267         I.e., add a week when the wday is the same as the current one.
37268         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
37269         and earlier by Martin Bernreuther and Jan Minář.
37270         * tests/test-getdate.c (main): Check that "next DAY" is always in
37271         the future and that "last DAY" is always in the past.
37272
37273 2009-05-02  Jim Meyering  <meyering@redhat.com>
37274
37275         build: ensure that a release build fails when a submodule is unclean
37276         * top/maint.mk (no-submodule-changes): New rule.
37277         (alpha beta major): Depend on it.
37278
37279 2009-05-02  Bruno Haible  <bruno@clisp.org>
37280
37281         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
37282         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
37283         shell variable gl_fnmatch_required to detect which variant is
37284         requested.
37285         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
37286         gl_FUNC_FNMATCH_POSIX.
37287         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
37288         exclude fnmatch-posix.
37289
37290 2009-05-02  Bruno Haible  <bruno@clisp.org>
37291
37292         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
37293         * modules/mbsrtowcs (License): Change to LGPLv2+.
37294         * modules/strnlen1 (License): Likewise.
37295         Reported by Simon Josefsson.
37296
37297 2009-05-02  Bruno Haible  <bruno@clisp.org>
37298
37299         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
37300         "cross".
37301         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
37302         gnulib-tool was called with option --source-base=lib.
37303
37304 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37305
37306         Use automake *-local hooks without commands, for extensibility.
37307         * modules/localcharset (Makefile.am): Rename install-exec-local
37308         rule to install-exec-localcharset, and make it a prerequisite of
37309         install-exec-local.  Likewise, rename the uninstall-local rule to
37310         uninstall-localcharset, and make it a prerequisite of the former.
37311
37312 2009-05-01  Bruno Haible  <bruno@clisp.org>
37313
37314         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
37315         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
37316         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
37317         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
37318         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
37319         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
37320         m4/locale-zh.m4, m4/codeset.m4.
37321
37322         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
37323         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
37324         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
37325         m4/locale-zh.m4.
37326
37327         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
37328         REPLACE_WCRTOMB if mbstate_t must be replaced.
37329         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
37330         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
37331
37332 2009-05-01  Bruno Haible  <bruno@clisp.org>
37333
37334         Avoid compiler warnings when redefining macros defined by <libintl.h>.
37335         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
37336         dngettext, dcngettext, textdomain, bindtextdomain,
37337         bind_textdomain_codeset): Undefine before redefining.
37338
37339 2009-04-30  Bruno Haible  <bruno@clisp.org>
37340
37341         Fix bug introduced on 2009-04-25.
37342         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
37343         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
37344         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
37345         is defined.
37346         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
37347         is defined.
37348         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
37349         is defined.
37350         Reported by Elbert_Pol <elbert.pol@gmail.com>.
37351
37352 2009-04-28  Bruno Haible  <bruno@clisp.org>
37353
37354         Comment tweaks.
37355         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
37356         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
37357         * lib/unicase.h (u*_casexfrm): Likewise.
37358         Reported by Paolo Bonzini.
37359
37360 2009-04-28  Bruno Haible  <bruno@clisp.org>
37361
37362         Fix a compilation error.
37363         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
37364         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
37365         Reported by Jim Meyering.
37366
37367 2009-04-27  Bruno Haible  <bruno@clisp.org>
37368
37369         New module 'libunistring'.
37370         * modules/libunistring: New file.
37371         * m4/libunistring.m4: New file.
37372         * MODULES.html.sh (Unicode string functions): Add it.
37373
37374 2009-04-27  Eric Blake  <ebb9@byu.net>
37375
37376         maint.mk: allow package-specific header to provide <config.h>
37377         * top/maint.mk (sc_require_config_h): New variable.
37378         (sc_require_config_h, sc_require_config_h_first): Use it.
37379
37380 2009-04-27  Simon Josefsson  <simon@josefsson.org>
37381
37382         * top/maint.mk (sc_avoid_if_before_free): Except
37383         useless-if-before-free script.
37384
37385 2009-04-27  Eric Blake  <ebb9@byu.net>
37386
37387         maintainer-makefile: depend on all required helper scripts
37388         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
37389         useless-if-before-free.
37390         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
37391         version, rather than assuming gnulib checkout is available.
37392         Reported by Simen Josefsson.
37393
37394 2009-04-26  Bruno Haible  <bruno@clisp.org>
37395
37396         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
37397         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
37398         "../" or "..".
37399
37400 2009-04-26  Bruno Haible  <bruno@clisp.org>
37401
37402         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
37403         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
37404         AC_LIB_HAVE_LINKFLAGS.
37405
37406 2009-04-26  Bruno Haible  <bruno@clisp.org>
37407
37408         Simplify calling convention of u*_conv_from_encoding.
37409         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
37410         u32_conv_from_encoding): Expect a resultbuf argument and return the
37411         result directly as a pointer.
37412         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
37413         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
37414         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
37415         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
37416         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
37417         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
37418         Update.
37419         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
37420         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
37421         * lib/vasnprintf.c (VASNPRINTF): Update.
37422         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
37423         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
37424         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
37425         * NEWS: Mention the change.
37426
37427 2009-04-26  Bruno Haible  <bruno@clisp.org>
37428
37429         Simplify calling convention of u*_conv_to_encoding.
37430         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
37431         u32_conv_to_encoding): Expect a resultbuf argument and return the
37432         result directly as a pointer.
37433         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
37434         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
37435         freeing scaled_offsets if mem_iconveha failed.
37436         * lib/unicase/u-casexfrm.h (FUNC): Update.
37437         * lib/uninorm/u-normxfrm.h (FUNC): Update.
37438         * lib/vasnprintf.c (VASNPRINTF): Update.
37439         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
37440         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
37441         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
37442         * NEWS: Mention the change.
37443
37444 2009-04-26  Bruno Haible  <bruno@clisp.org>
37445
37446         Avoid test failures on AIX and OSF/1.
37447         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
37448         malloc(0).
37449         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
37450         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
37451         Likewise.
37452         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
37453         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
37454         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
37455         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
37456         * doc/posix-functions/malloc.texi: Document the portability problem
37457         related to malloc(0).
37458
37459 2009-04-26  Bruno Haible  <bruno@clisp.org>
37460
37461         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
37462         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
37463         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
37464
37465 2009-04-25  Bruno Haible  <bruno@clisp.org>
37466
37467         Avoid link error when creating a namespace clean library.
37468         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
37469         as macro with arguments if already defined as an alias.
37470         * lib/signbitf.c (gl_signbitf): Don't undefine.
37471         * lib/signbitd.c (gl_signbitd): Don't undefine.
37472         * lib/signbitl.c (gl_signbitl): Don't undefine.
37473
37474 2009-04-25  Jim Meyering  <meyering@redhat.com>
37475
37476         vc-list-files: fix another quoting bug
37477         * build-aux/vc-list-files: Avoid sed backslash expansion
37478         of pathological directory names.
37479
37480 2009-04-25  Eric Blake  <ebb9@byu.net>
37481
37482         vc-list-files: fix shell quoting error
37483         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
37484         timestamp.
37485
37486 2009-04-25  Jim Meyering  <meyering@redhat.com>
37487
37488         vc-list-files: restore lost functionality with subdir argument
37489         * build-aux/vc-list-files: When given a non-"." sub-directory
37490         argument, substitute the $dir/ prefix back onto each resulting name.
37491         Otherwise, coreutils' root_tests check would fail.
37492
37493 2009-04-24  Eric Blake  <ebb9@byu.net>
37494
37495         vc-list-files: ignore git symlinks
37496         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
37497         than ls-files, to ignore git symlinks.
37498
37499         maint.mk: import improvements from m4
37500         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
37501         (move_if_change): Delete unused macro.
37502         (news-date-check, vc-diff-check): Support VPATH builds.
37503         (announcement): Likewise.  Split --bootstrap-tools list...
37504         (boostrap-tools): ...into separate list, which can be overridden
37505         in cfg.mk.
37506         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
37507         requiring dependency on useless-if-before-free module.
37508         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
37509         Support VPATH builds.
37510
37511 2009-04-24  Jim Meyering  <meyering@redhat.com>
37512
37513         maint.mk: remove coreutils-specific rules and variables
37514         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
37515         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
37516         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
37517
37518         maint.mk: remove obsolete rule
37519         * top/maint.mk (rel-check): Remove rule.
37520         (WGET, WGETFLAGS): Remove now-unused variables.
37521
37522 2009-04-24  Simon Josefsson  <simon@josefsson.org>
37523
37524         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
37525         consistency.
37526
37527         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
37528         '$(PATH_SEPARATOR)' instead of ':'.
37529
37530 2009-04-24  Simon Josefsson  <simon@josefsson.org>
37531
37532         * lib/getopt1.c (main): Use 'const' for static array.
37533
37534 2009-04-24  Simon Josefsson  <simon@josefsson.org>
37535
37536         * top/maint.mk: Sync with coreutils.
37537         * NEWS: Explain incompatibilities.
37538
37539 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37540             Bruno Haible  <bruno@clisp.org>
37541
37542         Fix cross-compilation results.
37543         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
37544         statement, as third argument of AC_TRY_RUN.
37545         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
37546         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
37547         Likewise.
37548         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
37549         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
37550         Likewise.
37551         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
37552         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
37553         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
37554
37555 2009-04-20  Bruno Haible  <bruno@clisp.org>
37556
37557         Avoid test failure on mingw.
37558         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
37559
37560 2009-04-20  Bruno Haible  <bruno@clisp.org>
37561
37562         Avoid compilation error on mingw.
37563         * modules/localename-tests (Depends-on): Add locale.
37564
37565 2009-04-19  Bruno Haible  <bruno@clisp.org>
37566
37567         Support for building a shared library on Windows platforms.
37568         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
37569         (main): Test the presence of UNINORM_NFC here.
37570         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
37571         (main): Test the presence of UNINORM_NFD here.
37572         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
37573         (main): Test the presence of UNINORM_NFKC here.
37574         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
37575         (main): Test the presence of UNINORM_NFKD here.
37576
37577 2009-04-19  Bruno Haible  <bruno@clisp.org>
37578
37579         Avoid a compiler warning.
37580         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
37581         Change type of variable 'sequence'.
37582
37583 2009-04-19  Bruno Haible  <bruno@clisp.org>
37584
37585         * modules/configmake (Makefile.am): When the contents of configmake.h
37586         does not change, arrange to preserve its modification time.
37587
37588 2009-04-17  Simon Josefsson  <simon@josefsson.org>
37589
37590         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
37591         gettext domain.
37592
37593 2009-04-16  Jim Meyering  <meyering@redhat.com>
37594
37595         useless-if-before-free: improve conversion code
37596         * build-aux/useless-if-before-free: Adjust code-in-comment to match
37597         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
37598
37599 2009-04-14  Bruno Haible  <bruno@clisp.org>
37600
37601         * modules/fcntl (Depends-on): Add extensions.
37602         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
37603
37604 2009-04-12  Ben Pfaff  <blp@gnu.org>
37605
37606         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
37607         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
37608
37609 2009-03-20  Ben Pfaff  <blp@gnu.org>
37610
37611         Make rename replace existing destinations on Windows.
37612         * m4/rename.m4: Add test for Mingw.
37613         * lib/rename.c: Add rename replacement that uses MoveFileEx with
37614         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
37615         * doc/posix-functions/rename.texi: Document.
37616
37617 2009-04-10  Bruno Haible  <bruno@clisp.org>
37618
37619         New include file "iconveh.h".
37620         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
37621         * lib/striconveh.h: Include it.
37622         (enum iconv_ilseq_handler): Remove definition.
37623         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
37624         striconveh.h.
37625         * lib/striconveha.c: Include striconveh.h.
37626         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
37627         * modules/striconveh (Files): Add lib/iconveh.h.
37628         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
37629         lib/striconveh.h.
37630
37631 2009-04-10  Bruno Haible  <bruno@clisp.org>
37632
37633         * lib/uniconv.h: Update comment.
37634
37635 2009-04-10  Bruno Haible  <bruno@clisp.org>
37636
37637         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
37638         always.
37639         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
37640         * lib/unistr/u16-mbtouc-aux.c: Likewise.
37641         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
37642         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
37643         "unistring-notinline.h", so that the function gets defined always.
37644         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
37645         * lib/unistr/u8-uctomb.c: Likewise.
37646         * lib/unistr/u16-mbtouc.c: Likewise.
37647         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
37648         * lib/unistr/u16-uctomb.c: Likewise.
37649         * lib/unistr/u32-mbtouc.c: Likewise.
37650         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
37651         * lib/unistr/u32-uctomb.c: Likewise.
37652
37653 2009-04-10  Bruno Haible  <bruno@clisp.org>
37654
37655         Mark 'utime' obsolete.
37656         * modules/utime (Status, Notice): New sections.
37657         Suggested by Jim Meyering.
37658
37659         Fix cross-compile guess for utime test.
37660         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
37661         autoconf.
37662         * doc/posix-functions/utime.texi: Give more precisions.
37663         Reported by Jan <ipif@ymail.com>.
37664
37665 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
37666
37667         filevercmp: correct today's change
37668         * lib/filevercmp.c: Also handle coreutils' test inputs.
37669         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
37670
37671         Fix regression in 'filevercmp' module. Thanks Sven Joachim
37672         for reporting it.
37673         * lib/filevercmp.c: Special handle for "", "." and "..".
37674         * tests/test-filevercmp.c: Enlarge the set suite.
37675
37676 2009-04-07  Jim Meyering  <meyering@redhat.com>
37677
37678         useless-if-before-free: show how to remove braced useless free, too
37679         * build-aux/useless-if-before-free: still only in a comment, though.
37680
37681 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
37682
37683         maint.mk: import changes to syntax-check macros from coreutils
37684         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
37685         Use them in the relevant macros.
37686
37687 2009-04-06  Bruno Haible  <bruno@clisp.org>
37688
37689         Fix unportable use of bit-fields.
37690         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
37691         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
37692         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
37693
37694 2009-04-06  Bruno Haible  <bruno@clisp.org>
37695
37696         Avoid test failures on AIX and OSF/1.
37697         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
37698         that malloc(0) = NULL.
37699         * tests/unicase/test-u8-tolower.c (check): Likewise.
37700         * tests/unicase/test-u8-totitle.c (check): Likewise.
37701         * tests/unicase/test-u8-toupper.c (check): Likewise.
37702         * tests/unicase/test-u16-casefold.c (check): Likewise.
37703         * tests/unicase/test-u16-tolower.c (check): Likewise.
37704         * tests/unicase/test-u16-totitle.c (check): Likewise.
37705         * tests/unicase/test-u16-toupper.c (check): Likewise.
37706         * tests/unicase/test-u32-casefold.c (check): Likewise.
37707         * tests/unicase/test-u32-tolower.c (check): Likewise.
37708         * tests/unicase/test-u32-totitle.c (check): Likewise.
37709         * tests/unicase/test-u32-toupper.c (check): Likewise.
37710         * tests/uninorm/test-u8-nfc.c (check): Likewise.
37711         * tests/uninorm/test-u8-nfd.c (check): Likewise.
37712         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
37713         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
37714         * tests/uninorm/test-u16-nfc.c (check): Likewise.
37715         * tests/uninorm/test-u16-nfd.c (check): Likewise.
37716         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
37717         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
37718         * tests/uninorm/test-u32-nfc.c (check): Likewise.
37719         * tests/uninorm/test-u32-nfd.c (check): Likewise.
37720         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
37721         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
37722
37723 2009-04-05  Bruno Haible  <bruno@clisp.org>
37724
37725         Work around an autoconf limitation.
37726         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
37727         comment line if it would be longer than 3 KB.
37728
37729 2009-04-05  Bruno Haible  <bruno@clisp.org>
37730
37731         Avoid test failure with libiconv-1.13.
37732         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
37733         of the expected test results.
37734
37735 2009-04-05  Bruno Haible  <bruno@clisp.org>
37736
37737         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
37738         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
37739         that it should be installed.
37740
37741 2009-04-05  Bruno Haible  <bruno@clisp.org>
37742
37743         * gnulib-tool: New option --copy-file.
37744         (func_usage): Document it.
37745         (func_dest_tmpfilename): Moved out of func_import.
37746         (func_add_file, func_update_file): New functions, extracted from
37747         func_import.
37748         (func_import): Update.
37749
37750 2009-04-05  Karl Berry  <karl@gnu.org>
37751
37752         * README: prominently mention gnulib-tool.
37753         Rearrange sections so getting the code is near the top.
37754
37755 2009-04-05  Bruno Haible  <bruno@clisp.org>
37756
37757         * lib/unicase.h: Mention u*_cmp2.
37758         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
37759         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
37760         * lib/unicase/ulc-casecmp.c: Likewise.
37761         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
37762         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
37763         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
37764         unistr/u8-cmp.
37765         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
37766         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
37767         unistr/u16-cmp.
37768         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
37769         unistr/u32-cmp.
37770
37771         * lib/uninorm.h: Mention u*_cmp2.
37772         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
37773         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
37774         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
37775         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
37776         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
37777         unistr/u8-cmp.
37778         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
37779         unistr/u16-cmp.
37780         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
37781         unistr/u32-cmp.
37782
37783         New module 'unistr/u32-cmp2'.
37784         * lib/unistr/u32-cmp2.c: New file.
37785         * modules/unistr/u32-cmp2: New file.
37786
37787         New module 'unistr/u16-cmp2'.
37788         * lib/unistr/u16-cmp2.c: New file.
37789         * modules/unistr/u16-cmp2: New file.
37790
37791         New module 'unistr/u8-cmp2'.
37792         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
37793         * lib/unistr/u8-cmp2.c: New file.
37794         * lib/unistr/u-cmp2.h: New file.
37795         * modules/unistr/u8-cmp2: New file.
37796
37797 2009-04-05  Bruno Haible  <bruno@clisp.org>
37798
37799         * lib/unictype.h (uc_property_is_valid): New macro.
37800         * tests/unictype/test-pr_byname.c (main): Use it.
37801
37802         * lib/unistr.h: Doc fixes.
37803         * lib/uniconv.h: Doc fixes.
37804         * lib/unictype.h: Doc fixes.
37805
37806 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
37807
37808         Port coreutils 7.2 to Solaris 8.
37809
37810         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
37811         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
37812         for Solaris 8.  This is a bit of a hack, as it means it's the
37813         caller's responsibility to add -lnsl if needed, but most likely it
37814         won't be needed since only getaddrinfo uses this and getaddrinfo
37815         isn't needed on Solaris 8.
37816
37817         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
37818         problem to Solaris 8 encountered with coreutils 7.2, which
37819         resulted in a message "fnmatch.c:292: warning: passing argument 4
37820         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
37821         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
37822
37823 2009-04-03  Simon Josefsson  <simon@josefsson.org>
37824
37825         * m4/ld-version-script.m4: Add FIXME comment.
37826
37827 2009-04-02  Simon Josefsson  <simon@josefsson.org>
37828
37829         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
37830         SOVERSION variable.
37831
37832 2009-04-02  Bruno Haible  <bruno@clisp.org>
37833
37834         * Makefile (info, html, dvi, pdf): Combine the rules.
37835         Suggested by Jim Meyering.
37836
37837 2009-04-01  Bruno Haible  <bruno@clisp.org>
37838
37839         * Makefile (info, html, dvi, pdf): New targets.
37840         Reported by Reuben Thomas <rrt@sc3d.org>.
37841
37842 2009-04-01  Bruno Haible  <bruno@clisp.org>
37843
37844         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
37845         can be put into PATH.
37846         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
37847
37848 2009-04-01  Bruno Haible  <bruno@clisp.org>
37849
37850         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
37851
37852 2009-04-01  Bruno Haible  <bruno@clisp.org>
37853
37854         Rename module 'visibility'.
37855         * modules/lib-symbol-visibility: Renamed from modules/visibility.
37856         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
37857         * doc/gnulib.texi: Update.
37858         * MODULES.html.sh (Misc): Update.
37859         * NEWS: Mention the change.
37860
37861 2009-04-01  Simon Josefsson  <simon@josefsson.org>
37862
37863         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
37864         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
37865         Eric Blake <ebb9@byu.net> for review.
37866         * MODULES.html.sh: Add lib-msvc-compat.
37867         * doc/gnulib.texi: Link to new section.
37868         * m4/ld-output-def.m4: New file.
37869         * doc/ld-output-def.texi: New file.
37870
37871 2009-04-01  Simon Josefsson  <simon@josefsson.org>
37872
37873         Rename ld-version-script to lib-symbol-versions.  Suggested by
37874         Bruno Haible <bruno@clisp.org>.
37875         * modules/ld-version-script: Renamed to lib-symbol-versions.
37876         * doc/ld-version-script.texi: Fix module name.
37877         * MODULES.html.sh: Add lib-symbol-versions.
37878
37879 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37880
37881         * modules/u64-tests: New file.
37882         * tests/test-u64.c: New file.
37883
37884 2009-03-04  Simon Josefsson  <simon@josefsson.org>
37885
37886         * MODULES.html.sh: Mention u64.
37887         * modules/u64: New module.
37888         * modules/crypto/sha512: Depend on u64 module instead of providing
37889         u64.h.
37890
37891 2009-03-27  Eric Blake  <ebb9@byu.net>
37892
37893         test-strerror: make debugging EAI_SYSTEM easier
37894         * modules/getaddrinfo-tests (Depends-on): Add strerror.
37895         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
37896         failure was EAI_SYSTEM.
37897
37898 2009-03-25  Bruno Haible  <bruno@clisp.org>
37899
37900         Fix a problem with --enable-relocatable on Solaris 7.
37901         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
37902         since 2008-02-24.
37903
37904 2009-03-25  Eric Blake  <ebb9@byu.net>
37905
37906         test-sockets: avoid gcc warning
37907         * tests/test-sockets.c (main): Silence compiler warning.
37908
37909 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
37910
37911         New modules nproc, pthread, contributed by Glen Lenker.
37912
37913         * MODULES.html.sh: Add pthread, nproc.
37914         * lib/nproc.c: New file.
37915         * lib/nproc.h: New file.
37916         * lib/pthread.in.h: New file.
37917         * m4/pthread.m4: New file.
37918         * modules/nproc: New file.
37919         * modules/pthread: New file.
37920
37921 2009-03-24  Simon Josefsson  <simon@josefsson.org>
37922
37923         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
37924         New variable.
37925
37926 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
37927
37928         filevercmp: handle simple~ and numbered.~3~ backup suffixes
37929         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
37930         * tests/test-filevercmp.c: Add tests for backup suffixes.
37931
37932 2009-03-24  Simon Josefsson  <simon@josefsson.org>
37933
37934         * modules/stdlib (Depends-on): Add stdint, needed when defining
37935         struct random_data on, for example, HP-UX 10.20.  Reported by
37936         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37937
37938 2009-03-24  Simon Josefsson  <simon@josefsson.org>
37939
37940         * lib/readline.c (readline): Call fflush on stdout after printing
37941         prompt.
37942
37943 2009-03-20  Bruno Haible  <bruno@clisp.org>
37944
37945         Remove dependency from 'close' module to -lws2_32 on native Windows.
37946         * lib/close-hook.h: New file.
37947         * lib/close-hook.c: New file.
37948         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
37949         w32sock.h.
37950         (_gl_close_fd_maybe_socket): Remove function.
37951         (rpl_close): Invoke execute_all_close_hooks instead of
37952         _gl_close_fd_maybe_socket.
37953         * lib/sockets.c: Include close-hook.h, w32sock.h.
37954         (close_fd_maybe_socket): New function, essentially from lib/close.c.
37955         (close_sockets_hook): New variable.
37956         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
37957         (gl_sockets_cleanup): Unregister it.
37958         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
37959         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
37960         * modules/close-hook: New file.
37961         * modules/close (Files): Remove lib/w32sock.h.
37962         (Depends-on): Add close-hook.
37963         (Link): Remove section.
37964         * modules/sockets (Files): Add lib/w32sock.h.
37965         (Depends-on): Add close-hook.
37966         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
37967         invocation.
37968         * NEWS: Mention that LIB_CLOSE is gone.
37969
37970 2009-03-23  Eric Blake  <ebb9@byu.net>
37971
37972         signal-tests: test previous patch
37973         * tests/test-signal.c: New file.
37974         * modules/signal-tests: Likewise.
37975
37976         signal.h: always support 'volatile sig_atomic_t'
37977         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
37978         (gl_SIGNAL_H_DEFAULTS): Add a default.
37979         * modules/signal (Makefile.am): Substitute if needed.
37980         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
37981         users can blindly add volatile.
37982         * doc/posix-headers/signal.texi (signal.h): Document it.
37983         Reported by Matthew Woehlke.
37984
37985 2009-03-23  Jim Meyering  <meyering@redhat.com>
37986
37987         pathmax: PATH_MAX: use pathconf only when available
37988         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
37989         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
37990         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
37991         This avoids a link failure in a PSP cross-compilation environment
37992         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
37993
37994         * lib/vasnprintf.c (divide): Fix typo in comment.
37995
37996 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37997
37998         * gnulib-tool (func_filter_filelist): Fix comment.
37999
38000 2009-03-20  Bruno Haible  <bruno@clisp.org>
38001
38002         Make sockets.h self-contained.
38003         * lib/sockets.c: Include sockets.h first.
38004         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
38005
38006 2009-03-19  Eric Blake  <ebb9@byu.net>
38007
38008         doc: mention more functions added in cygwin 1.7.0
38009         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
38010         addition.
38011         * doc/posix-functions/log2f.texi: Likewise.
38012
38013 2009-03-19  Jim Meyering  <meyering@redhat.com>
38014
38015         fsusage: avoid syntax error due to statement-before-declaration
38016         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
38017         after all declarations.  Reported by Matthew Woehlke in
38018         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
38019
38020 2009-03-18  Eric Blake  <ebb9@byu.net>
38021
38022         build-aux/compile: sync from automake
38023         * build-aux/compile: New file, from automake.
38024         * config/srclist.txt: Mention build-aux/compile.
38025
38026 2009-03-17  Bruno Haible  <bruno@clisp.org>
38027
38028         * lib/git-merge-changelog.c: Fix typo in comment.
38029         Reported by Reuben Thomas <rrt@sc3d.org>.
38030
38031 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
38032
38033         * m4/regex.m4: update and improve help for
38034         --without-included-regex.
38035
38036 2009-03-17  Simon Josefsson  <simon@josefsson.org>
38037
38038         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
38039         failure on missing include files.
38040
38041 2009-03-17  Eric Blake  <ebb9@byu.net>
38042
38043         doc: mention more functions added in cygwin 1.7.0
38044         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
38045         addition.
38046         * doc/posix-functions/fwscanf.texi: Likewise.
38047         * doc/posix-functions/swprintf.texi: Likewise.
38048         * doc/posix-functions/swscanf.texi: Likewise.
38049         * doc/posix-functions/vfwprintf.texi: Likewise.
38050         * doc/posix-functions/vfwscanf.texi: Likewise.
38051         * doc/posix-functions/vswprintf.texi: Likewise.
38052         * doc/posix-functions/vswscanf.texi: Likewise.
38053         * doc/posix-functions/vwprintf.texi: Likewise.
38054         * doc/posix-functions/vwscanf.texi: Likewise.
38055         * doc/posix-functions/wcscasecmp.texi: Likewise.
38056         * doc/posix-functions/wcsdup.texi: Likewise.
38057         * doc/posix-functions/wcsftime.texi: Likewise.
38058         * doc/posix-functions/wcsncasecmp.texi: Likewise.
38059         * doc/posix-functions/wprintf.texi: Likewise.
38060         * doc/posix-functions/wscanf.texi: Likewise.
38061         * doc/glibc-functions/gethostbyname2.texi: Likewise.
38062
38063 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38064
38065         maint.mk: really add $(AM_MAKEFLAGS)
38066         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
38067         was inadvertently omitted in the last commit.
38068         Spotted by Bruno Haible.
38069
38070         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
38071         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
38072         $(AM_MAKEFLAGS)' rather than plain `make'.
38073
38074         gnulib-tool: execute $MAKE not make
38075         * gnulib-tool: Default $MAKE to 'make'.
38076         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
38077         than make.  Initialize $MAKE in the do-autobuild script.
38078
38079         gnulib-tool: use $MAKE not make in generated files
38080         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
38081         make, in generated files.  Initialize $MAKE in the do-autobuild
38082         script.
38083
38084         * top/GNUmakefile (_have-git-version-gen): Fix typo.
38085
38086         GNUmakefile: disable parallelism only for multiple, recursive targets
38087         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
38088         additions in the Makefile.
38089         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
38090         by Automake.
38091         (.NOTPARALLEL): Only disable parallel builds if multiple targets
38092         are listed on the command line and at least one of them is
38093         listed in $(ALL_RECURSIVE_TARGETS).
38094
38095 2009-03-14  Bruno Haible  <bruno@clisp.org>
38096
38097         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
38098         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
38099         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
38100         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
38101         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
38102         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
38103         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
38104         unistr/u8-uctomb.
38105         * modules/unistr/u8-strchr (Depends-on): Likewise.
38106         * modules/unistr/u8-strrchr (Depends-on): Likewise.
38107         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
38108         unistr/u16-uctomb.
38109         * modules/unistr/u16-strchr (Depends-on): Likewise.
38110         * modules/unistr/u16-strrchr (Depends-on): Likewise.
38111
38112 2009-03-12  Bruno Haible  <bruno@clisp.org>
38113
38114         Work around select() bug on Interix 3.5.
38115         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
38116         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
38117         * m4/select.m4: New file.
38118         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
38119         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
38120         * modules/select (Files): Add m4/select.m4.
38121         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
38122         * modules/nanosleep (Depends-on): Add select.
38123         * modules/poll (Depends-on): Likewise.
38124         * doc/posix-functions/select.texi: Mention the Interix bug.
38125         Reported by Markus Duft <mduft@gentoo.org>.
38126
38127         * lib/select.c: Renamed from lib/winsock-select.c.
38128         * modules/select (Files): Add lib/select.c, remove
38129         lib/winsock-select.c.
38130         (configure.ac): Update.
38131
38132 2009-03-12  Jim Meyering  <meyering@redhat.com>
38133
38134         avoid gcc warnings about unused macro definitions
38135         * lib/readtokens.c (STREQ): Remove unused definition.
38136         * lib/xmalloc.c (SIZE_MAX): Likewise.
38137         * lib/openat-die.c (N_): Likewise.
38138         * lib/mountlist.c (SIZE_MAX): Remove definition.
38139         Instead, include <stdint.h>.
38140         * lib/readutmp.c: Likewise.
38141         * modules/readutmp (Depends-on): Add stdint.
38142         * modules/mountlist (Depends-on): Add stdint.
38143         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
38144
38145 2009-03-10  Bruno Haible  <bruno@clisp.org>
38146
38147         Tests for module 'mbmemcasecoll'.
38148         * modules/mbmemcasecoll-tests: New file.
38149         * tests/test-mbmemcasecoll1.sh: New file.
38150         * tests/test-mbmemcasecoll2.sh: New file.
38151         * tests/test-mbmemcasecoll3.sh: New file.
38152         * tests/test-mbmemcasecoll.c: New file.
38153
38154         New module 'mbmemcasecoll'.
38155         * lib/mbmemcasecoll.h: New file.
38156         * lib/mbmemcasecoll.c: New file.
38157         * modules/mbmemcasecoll: New file.
38158
38159         * tests/test-mbmemcasecmp.h: New file, extracted from
38160         tests/test-mbmemcasecmp.c.
38161         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
38162         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
38163         (main): Update.
38164         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
38165
38166 2009-03-09  Bruno Haible  <bruno@clisp.org>
38167
38168         Tests for module 'mbmemcasecmp'.
38169         * modules/mbmemcasecmp-tests: New file.
38170         * tests/test-mbmemcasecmp1.sh: New file.
38171         * tests/test-mbmemcasecmp2.sh: New file.
38172         * tests/test-mbmemcasecmp3.sh: New file.
38173         * tests/test-mbmemcasecmp.c: New file.
38174
38175         New module 'mbmemcasecmp'.
38176         * lib/mbmemcasecmp.h: New file.
38177         * lib/mbmemcasecmp.c: New file.
38178         * modules/mbmemcasecmp: New file.
38179
38180 2009-03-09  Bruno Haible  <bruno@clisp.org>
38181
38182         Tests for module 'unicase/ulc-casecoll'.
38183         * modules/unicase/ulc-casecoll-tests: New file.
38184         * tests/unicase/test-ulc-casecoll1.sh: New file.
38185         * tests/unicase/test-ulc-casecoll2.sh: New file.
38186         * tests/unicase/test-ulc-casecoll.c: New file.
38187
38188         New module 'unicase/ulc-casecoll'.
38189         * lib/unicase.h (ulc_casecoll): New declaration.
38190         * lib/unicase/ulc-casecoll.c: New file.
38191         * modules/unicase/ulc-casecoll: New file.
38192
38193         New module 'unicase/ulc-casexfrm'.
38194         * lib/unicase.h (ulc_casexfrm): New declaration.
38195         * lib/unicase/ulc-casexfrm.c: New file.
38196         * modules/unicase/ulc-casexfrm: New file.
38197
38198 2009-03-09  Bruno Haible  <bruno@clisp.org>
38199
38200         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
38201         invocations.
38202
38203         * m4/mbscasecmp.m4: Remove file.
38204         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
38205         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
38206
38207         * m4/mbscasestr.m4: Remove file.
38208         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
38209         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
38210
38211         * m4/mbschr.m4: Remove file.
38212         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
38213         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
38214
38215         * m4/mbscspn.m4: Remove file.
38216         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
38217         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
38218
38219         * m4/mbslen.m4: Remove file.
38220         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
38221         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
38222
38223         * m4/mbsncasecmp.m4: Remove file.
38224         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
38225         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
38226
38227         * m4/mbsnlen.m4: Remove file.
38228         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
38229         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
38230
38231         * m4/mbspbrk.m4: Remove file.
38232         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
38233         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
38234
38235         * m4/mbspcasecmp.m4: Remove file.
38236         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
38237         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
38238
38239         * m4/mbsrchr.m4: Remove file.
38240         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
38241         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
38242
38243         * m4/mbssep.m4: Remove file.
38244         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
38245         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
38246
38247         * m4/mbsspn.m4: Remove file.
38248         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
38249         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
38250
38251         * m4/mbsstr.m4: Remove file.
38252         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
38253         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
38254
38255         * m4/mbstok_r.m4: Remove file.
38256         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
38257         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
38258
38259         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
38260
38261         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
38262         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
38263
38264         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
38265
38266 2009-03-08  Bruno Haible  <bruno@clisp.org>
38267
38268         Tests for module 'unicase/ulc-casecmp'.
38269         * modules/unicase/ulc-casecmp-tests: New file.
38270         * tests/unicase/test-ulc-casecmp1.sh: New file.
38271         * tests/unicase/test-ulc-casecmp2.sh: New file.
38272         * tests/unicase/test-ulc-casecmp.c: New file.
38273
38274         New module 'unicase/ulc-casecmp'.
38275         * lib/unicase.h (ulc_casecmp): New declaration.
38276         * lib/unicase/ulc-casecmp.c: New file.
38277         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
38278         'const SRC_UNIT *'.
38279         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
38280         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
38281         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
38282         * modules/unicase/ulc-casecmp: New file.
38283
38284         Tests for module 'unicase/u32-is-cased'.
38285         * modules/unicase/u32-is-cased-tests: New file.
38286         * tests/unicase/test-u32-is-cased.c: New file.
38287
38288         Tests for module 'unicase/u16-is-cased'.
38289         * modules/unicase/u16-is-cased-tests: New file.
38290         * tests/unicase/test-u16-is-cased.c: New file.
38291
38292         Tests for module 'unicase/u8-is-cased'.
38293         * modules/unicase/u8-is-cased-tests: New file.
38294         * tests/unicase/test-u8-is-cased.c: New file.
38295         * tests/unicase/test-is-cased.h: New file.
38296
38297         New module 'unicase/u32-is-cased'.
38298         * lib/unicase/u32-is-cased.c: New file.
38299         * modules/unicase/u32-is-cased: New file.
38300
38301         New module 'unicase/u16-is-cased'.
38302         * lib/unicase/u16-is-cased.c: New file.
38303         * modules/unicase/u16-is-cased: New file.
38304
38305         New module 'unicase/u8-is-cased'.
38306         * lib/unicase/u8-is-cased.c: New file.
38307         * lib/unicase/u-is-cased.h: New file.
38308         * modules/unicase/u8-is-cased: New file.
38309
38310         Tests for module 'unicase/u32-is-casefolded'.
38311         * modules/unicase/u32-is-casefolded-tests: New file.
38312         * tests/unicase/test-u32-is-casefolded.c: New file.
38313
38314         Tests for module 'unicase/u16-is-casefolded'.
38315         * modules/unicase/u16-is-casefolded-tests: New file.
38316         * tests/unicase/test-u16-is-casefolded.c: New file.
38317
38318         Tests for module 'unicase/u8-is-casefolded'.
38319         * modules/unicase/u8-is-casefolded-tests: New file.
38320         * tests/unicase/test-u8-is-casefolded.c: New file.
38321         * tests/unicase/test-is-casefolded.h: New file.
38322
38323         New module 'unicase/u32-is-casefolded'.
38324         * lib/unicase/u32-is-casefolded.c: New file.
38325         * modules/unicase/u32-is-casefolded: New file.
38326
38327         New module 'unicase/u16-is-casefolded'.
38328         * lib/unicase/u16-is-casefolded.c: New file.
38329         * modules/unicase/u16-is-casefolded: New file.
38330
38331         New module 'unicase/u8-is-casefolded'.
38332         * lib/unicase/u8-is-casefolded.c: New file.
38333         * modules/unicase/u8-is-casefolded: New file.
38334
38335         Tests for module 'unicase/u32-is-titlecase'.
38336         * modules/unicase/u32-is-titlecase-tests: New file.
38337         * tests/unicase/test-u32-is-titlecase.c: New file.
38338
38339         Tests for module 'unicase/u16-is-titlecase'.
38340         * modules/unicase/u16-is-titlecase-tests: New file.
38341         * tests/unicase/test-u16-is-titlecase.c: New file.
38342
38343         Tests for module 'unicase/u8-is-titlecase'.
38344         * modules/unicase/u8-is-titlecase-tests: New file.
38345         * tests/unicase/test-u8-is-titlecase.c: New file.
38346         * tests/unicase/test-is-titlecase.h: New file.
38347
38348         New module 'unicase/u32-is-titlecase'.
38349         * lib/unicase/u32-is-titlecase.c: New file.
38350         * modules/unicase/u32-is-titlecase: New file.
38351
38352         New module 'unicase/u16-is-titlecase'.
38353         * lib/unicase/u16-is-titlecase.c: New file.
38354         * modules/unicase/u16-is-titlecase: New file.
38355
38356         New module 'unicase/u8-is-titlecase'.
38357         * lib/unicase/u8-is-titlecase.c: New file.
38358         * modules/unicase/u8-is-titlecase: New file.
38359
38360         Tests for module 'unicase/u32-is-lowercase'.
38361         * modules/unicase/u32-is-lowercase-tests: New file.
38362         * tests/unicase/test-u32-is-lowercase.c: New file.
38363
38364         Tests for module 'unicase/u16-is-lowercase'.
38365         * modules/unicase/u16-is-lowercase-tests: New file.
38366         * tests/unicase/test-u16-is-lowercase.c: New file.
38367
38368         Tests for module 'unicase/u8-is-lowercase'.
38369         * modules/unicase/u8-is-lowercase-tests: New file.
38370         * tests/unicase/test-u8-is-lowercase.c: New file.
38371         * tests/unicase/test-is-lowercase.h: New file.
38372
38373         New module 'unicase/u32-is-lowercase'.
38374         * lib/unicase/u32-is-lowercase.c: New file.
38375         * modules/unicase/u32-is-lowercase: New file.
38376
38377         New module 'unicase/u16-is-lowercase'.
38378         * lib/unicase/u16-is-lowercase.c: New file.
38379         * modules/unicase/u16-is-lowercase: New file.
38380
38381         New module 'unicase/u8-is-lowercase'.
38382         * lib/unicase/u8-is-lowercase.c: New file.
38383         * modules/unicase/u8-is-lowercase: New file.
38384
38385         Tests for module 'unicase/u32-is-uppercase'.
38386         * modules/unicase/u32-is-uppercase-tests: New file.
38387         * tests/unicase/test-u32-is-uppercase.c: New file.
38388
38389         Tests for module 'unicase/u16-is-uppercase'.
38390         * modules/unicase/u16-is-uppercase-tests: New file.
38391         * tests/unicase/test-u16-is-uppercase.c: New file.
38392
38393         Tests for module 'unicase/u8-is-uppercase'.
38394         * modules/unicase/u8-is-uppercase-tests: New file.
38395         * tests/unicase/test-u8-is-uppercase.c: New file.
38396         * tests/unicase/test-is-uppercase.h: New file.
38397
38398         New module 'unicase/u32-is-uppercase'.
38399         * lib/unicase/u32-is-uppercase.c: New file.
38400         * modules/unicase/u32-is-uppercase: New file.
38401
38402         New module 'unicase/u16-is-uppercase'.
38403         * lib/unicase/u16-is-uppercase.c: New file.
38404         * modules/unicase/u16-is-uppercase: New file.
38405
38406         New module 'unicase/u8-is-uppercase'.
38407         * lib/unicase/u8-is-uppercase.c: New file.
38408         * modules/unicase/u8-is-uppercase: New file.
38409
38410         New module 'unicase/u32-is-invariant'.
38411         * lib/unicase/u32-is-invariant.c: New file.
38412         * modules/unicase/u32-is-invariant: New file.
38413
38414         New module 'unicase/u16-is-invariant'.
38415         * lib/unicase/u16-is-invariant.c: New file.
38416         * modules/unicase/u16-is-invariant: New file.
38417
38418         New module 'unicase/u8-is-invariant'.
38419         * lib/unicase/u8-is-invariant.c: New file.
38420         * lib/unicase/invariant.h: New file.
38421         * lib/unicase/u-is-invariant.h: New file.
38422         * modules/unicase/u8-is-invariant: New file.
38423
38424         Tests for module 'unicase/u32-casecoll'.
38425         * modules/unicase/u32-casecoll-tests: New file.
38426         * tests/unicase/test-u32-casecoll.c: New file.
38427
38428         Tests for module 'unicase/u16-casecoll'.
38429         * modules/unicase/u16-casecoll-tests: New file.
38430         * tests/unicase/test-u16-casecoll.c: New file.
38431
38432         Tests for module 'unicase/u8-casecoll'.
38433         * modules/unicase/u8-casecoll-tests: New file.
38434         * tests/unicase/test-u8-casecoll.c: New file.
38435
38436         New module 'unicase/u32-casecoll'.
38437         * lib/unicase/u32-casecoll.c: New file.
38438         * modules/unicase/u32-casecoll: New file.
38439
38440         New module 'unicase/u16-casecoll'.
38441         * lib/unicase/u16-casecoll.c: New file.
38442         * modules/unicase/u16-casecoll: New file.
38443
38444         New module 'unicase/u8-casecoll'.
38445         * lib/unicase/u8-casecoll.c: New file.
38446         * lib/unicase/u-casecoll.h: New file.
38447         * modules/unicase/u8-casecoll: New file.
38448
38449         New module 'unicase/u32-casexfrm'.
38450         * lib/unicase/u32-casexfrm.c: New file.
38451         * modules/unicase/u32-casexfrm: New file.
38452
38453         New module 'unicase/u16-casexfrm'.
38454         * lib/unicase/u16-casexfrm.c: New file.
38455         * modules/unicase/u16-casexfrm: New file.
38456
38457         New module 'unicase/u8-casexfrm'.
38458         * lib/unicase/u8-casexfrm.c: New file.
38459         * lib/unicase/u-casexfrm.h: New file.
38460         * modules/unicase/u8-casexfrm: New file.
38461
38462         Tests for module 'unicase/u32-casecmp'.
38463         * modules/unicase/u32-casecmp-tests: New file.
38464         * tests/unicase/test-u32-casecmp.c: New file.
38465
38466         Tests for module 'unicase/u16-casecmp'.
38467         * modules/unicase/u16-casecmp-tests: New file.
38468         * tests/unicase/test-u16-casecmp.c: New file.
38469
38470         Tests for module 'unicase/u8-casecmp'.
38471         * modules/unicase/u8-casecmp-tests: New file.
38472         * tests/unicase/test-u8-casecmp.c: New file.
38473         * tests/unicase/test-casecmp.h: New file.
38474
38475         New module 'unicase/u32-casecmp'.
38476         * lib/unicase/u32-casecmp.c: New file.
38477         * modules/unicase/u32-casecmp: New file.
38478
38479         New module 'unicase/u16-casecmp'.
38480         * lib/unicase/u16-casecmp.c: New file.
38481         * modules/unicase/u16-casecmp: New file.
38482
38483         New module 'unicase/u8-casecmp'.
38484         * lib/unicase/u8-casecmp.c: New file.
38485         * lib/unicase/u-casecmp.h: New file.
38486         * modules/unicase/u8-casecmp: New file.
38487
38488         Tests for module 'unicase/u32-casefold'.
38489         * modules/unicase/u32-casefold-tests: New file.
38490         * tests/unicase/test-u32-casefold.c: New file.
38491
38492         Tests for module 'unicase/u16-casefold'.
38493         * modules/unicase/u16-casefold-tests: New file.
38494         * tests/unicase/test-u16-casefold.c: New file.
38495
38496         Tests for module 'unicase/u8-casefold'.
38497         * modules/unicase/u8-casefold-tests: New file.
38498         * tests/unicase/test-u8-casefold.c: New file.
38499
38500         New module 'unicase/u32-casefold'.
38501         * lib/unicase/u32-casefold.c: New file.
38502         * modules/unicase/u32-casefold: New file.
38503
38504         New module 'unicase/u16-casefold'.
38505         * lib/unicase/u16-casefold.c: New file.
38506         * modules/unicase/u16-casefold: New file.
38507
38508         New module 'unicase/u8-casefold'.
38509         * lib/unicase/u8-casefold.c: New file.
38510         * lib/unicase/u-casefold.h: New file.
38511         * modules/unicase/u8-casefold: New file.
38512
38513         New module 'unicase/tocasefold'.
38514         * lib/unicase/casefold.h: New file.
38515         * lib/unicase/tocasefold.c: New file.
38516         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
38517         * modules/unicase/tocasefold: New file.
38518
38519         Tests for module 'unicase/u32-totitle'.
38520         * modules/unicase/u32-totitle-tests: New file.
38521         * tests/unicase/test-u32-totitle.c: New file.
38522
38523         Tests for module 'unicase/u16-totitle'.
38524         * modules/unicase/u16-totitle-tests: New file.
38525         * tests/unicase/test-u16-totitle.c: New file.
38526
38527         Tests for module 'unicase/u8-totitle'.
38528         * modules/unicase/u8-totitle-tests: New file.
38529         * tests/unicase/test-u8-totitle.c: New file.
38530
38531         New module 'unicase/u32-totitle'.
38532         * lib/unicase/u32-totitle.c: New file.
38533         * modules/unicase/u32-totitle: New file.
38534
38535         New module 'unicase/u16-totitle'.
38536         * lib/unicase/u16-totitle.c: New file.
38537         * modules/unicase/u16-totitle: New file.
38538
38539         New module 'unicase/u8-totitle'.
38540         * lib/unicase/u8-totitle.c: New file.
38541         * lib/unicase/u-totitle.h: New file.
38542         * modules/unicase/u8-totitle: New file.
38543
38544         Tests for module 'unicase/u32-tolower'.
38545         * modules/unicase/u32-tolower-tests: New file.
38546         * tests/unicase/test-u32-tolower.c: New file.
38547
38548         Tests for module 'unicase/u16-tolower'.
38549         * modules/unicase/u16-tolower-tests: New file.
38550         * tests/unicase/test-u16-tolower.c: New file.
38551
38552         Tests for module 'unicase/u8-tolower'.
38553         * modules/unicase/u8-tolower-tests: New file.
38554         * tests/unicase/test-u8-tolower.c: New file.
38555
38556         New module 'unicase/u32-tolower'.
38557         * lib/unicase/u32-tolower.c: New file.
38558         * modules/unicase/u32-tolower: New file.
38559
38560         New module 'unicase/u16-tolower'.
38561         * lib/unicase/u16-tolower.c: New file.
38562         * modules/unicase/u16-tolower: New file.
38563
38564         New module 'unicase/u8-tolower'.
38565         * lib/unicase/u8-tolower.c: New file.
38566         * modules/unicase/u8-tolower: New file.
38567
38568         Tests for module 'unicase/u32-toupper'.
38569         * modules/unicase/u32-toupper-tests: New file.
38570         * tests/unicase/test-u32-toupper.c: New file.
38571
38572         Tests for module 'unicase/u16-toupper'.
38573         * modules/unicase/u16-toupper-tests: New file.
38574         * tests/unicase/test-u16-toupper.c: New file.
38575
38576         Tests for module 'unicase/u8-toupper'.
38577         * modules/unicase/u8-toupper-tests: New file.
38578         * tests/unicase/test-u8-toupper.c: New file.
38579
38580         New module 'unicase/u32-toupper'.
38581         * lib/unicase/u32-toupper.c: New file.
38582         * modules/unicase/u32-toupper: New file.
38583
38584         New module 'unicase/u16-toupper'.
38585         * lib/unicase/u16-toupper.c: New file.
38586         * modules/unicase/u16-toupper: New file.
38587
38588         New module 'unicase/u8-toupper'.
38589         * lib/unicase/u8-toupper.c: New file.
38590         * modules/unicase/u8-toupper: New file.
38591
38592         New module 'unicase/u32-casemap'.
38593         * lib/unicase/u32-casemap.c: New file.
38594         * modules/unicase/u32-casemap: New file.
38595
38596         New module 'unicase/u16-casemap'.
38597         * lib/unicase/u16-casemap.c: New file.
38598         * modules/unicase/u16-casemap: New file.
38599
38600         New module 'unicase/u8-casemap'.
38601         * lib/unicase/unicasemap.h: New file.
38602         * lib/unicase/u8-casemap.c: New file.
38603         * lib/unicase/u-casemap.h: New file.
38604         * modules/unicase/u8-casemap: New file.
38605
38606         New module 'unicase/special-casing'.
38607         * lib/unicase/special-casing.h: New file.
38608         * lib/unicase/special-casing.c: New file.
38609         * lib/unicase/special-casing-table.gperf: New file, generated by
38610         gen-uni-tables.c.
38611         * modules/unicase/special-casing: New file.
38612
38613         Tests for module 'unicase/locale-language'.
38614         * modules/unicase/locale-language-tests: New file.
38615         * tests/unicase/test-locale-language.sh: New file.
38616         * tests/unicase/test-locale-language.c: New file.
38617
38618         New module 'unicase/locale-language'.
38619         * lib/unicase/locale-language.c: New file.
38620         * lib/unicase/locale-languages.gperf: New file.
38621         * modules/unicase/locale-language: New file.
38622
38623         Generate more tables for case conversion and case folding.
38624         * lib/gen-uni-tables.c (SCC_*): New enum items.
38625         (struct special_casing_rule): New type.
38626         (casing_rules, num_casing_rules, allocated_casing_rules): New
38627         variables.
38628         (add_casing_rule, fill_casing_rules): New functions.
38629         (struct casefold_rule): New type.
38630         (casefolding_rules, num_casefolding_rules,
38631         allocated_casefolding_rules): New variables.
38632         (fill_casefolding_rules): New function.
38633         (unicode_casefold): New variable.
38634         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
38635         sort_casing_rules, output_casing_rules): New functions.
38636         (main): Accept to more arguments: SpecialCasing.txt and
38637         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
38638         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
38639         Output mapping for casefolding.
38640
38641         * lib/unicase.h: Include stdbool.h, uninorm.h.
38642         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
38643         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
38644         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
38645         arguments.
38646         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
38647         resultp arguments.
38648         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
38649         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
38650         resultp arguments.
38651         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
38652         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
38653         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
38654         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
38655         declarations.
38656         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
38657
38658 2009-03-08  Bruno Haible  <bruno@clisp.org>
38659
38660         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
38661         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
38662         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
38663         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
38664
38665 2009-03-07  Bruno Haible  <bruno@clisp.org>
38666
38667         Adjust u*_normcmp, u*_normcoll API.
38668         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
38669         u16_normcoll, u32_normcoll): Change failure conventions.
38670         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
38671         errno and return -1.
38672         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
38673
38674 2009-03-07  Bruno Haible  <bruno@clisp.org>
38675
38676         Tests for module 'uninorm/u32-normcoll'.
38677         * modules/uninorm/u32-normcoll-tests: New file.
38678         * tests/uninorm/test-u32-normcoll.c: New file.
38679
38680         Tests for module 'uninorm/u16-normcoll'.
38681         * modules/uninorm/u16-normcoll-tests: New file.
38682         * tests/uninorm/test-u16-normcoll.c: New file.
38683
38684         Tests for module 'uninorm/u8-normcoll'.
38685         * modules/uninorm/u8-normcoll-tests: New file.
38686         * tests/uninorm/test-u8-normcoll.c: New file.
38687
38688 2009-03-07  Bruno Haible  <bruno@clisp.org>
38689
38690         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
38691         tests/uninorm/test-u32-normcmp.c.
38692         * tests/uninorm/test-u32-normcmp.c: Include it.
38693         (test_nonascii): New function, extracted from main. Add some more
38694         tests.
38695         (main): Invoke test_ascii and test_nonascii.
38696         * modules/uninorm/u32-normcmp-tests (Files): Add
38697         tests/uninorm/test-u32-normcmp.h.
38698         (Depends-on): Remove uninorm/u32-normcmp.
38699
38700         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
38701         tests/uninorm/test-u16-normcmp.c.
38702         * tests/uninorm/test-u16-normcmp.c: Include it.
38703         (test_nonascii): New function, extracted from main. Add some more
38704         tests.
38705         (main): Invoke test_ascii and test_nonascii.
38706         * modules/uninorm/u16-normcmp-tests (Files): Add
38707         tests/uninorm/test-u16-normcmp.h.
38708         (Depends-on): Remove uninorm/u16-normcmp.
38709
38710         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
38711         tests/uninorm/test-u8-normcmp.c.
38712         * tests/uninorm/test-u8-normcmp.c: Include it.
38713         (test_nonascii): New function, extracted from main. Add some more
38714         tests.
38715         (main): Invoke test_ascii and test_nonascii.
38716         * modules/uninorm/u8-normcmp-tests (Files): Add
38717         tests/uninorm/test-u8-normcmp.h.
38718         (Depends-on): Remove uninorm/u8-normcmp.
38719
38720 2009-03-07  Bruno Haible  <bruno@clisp.org>
38721
38722         New module 'uninorm/u32-normcoll'.
38723         * lib/uninorm/u32-normcoll.c: New file.
38724         * modules/uninorm/u32-normcoll: New file.
38725
38726         New module 'uninorm/u16-normcoll'.
38727         * lib/uninorm/u16-normcoll.c: New file.
38728         * modules/uninorm/u16-normcoll: New file.
38729
38730         New module 'uninorm/u8-normcoll'.
38731         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
38732         declarations.
38733         * lib/uninorm/u8-normcoll.c: New file.
38734         * lib/uninorm/u-normcoll.h: New file.
38735         * modules/uninorm/u8-normcoll: New file.
38736
38737         New module 'uninorm/u32-normxfrm'.
38738         * lib/uninorm/u32-normxfrm.c: New file.
38739         * modules/uninorm/u32-normxfrm: New file.
38740
38741         New module 'uninorm/u16-normxfrm'.
38742         * lib/uninorm/u16-normxfrm.c: New file.
38743         * modules/uninorm/u16-normxfrm: New file.
38744
38745         New module 'uninorm/u8-normxfrm'.
38746         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
38747         declarations.
38748         * lib/uninorm/u8-normxfrm.c: New file.
38749         * lib/uninorm/u-normxfrm.h: New file.
38750         * modules/uninorm/u8-normxfrm: New file.
38751
38752 2009-03-07  Bruno Haible  <bruno@clisp.org>
38753
38754         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
38755         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
38756         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
38757
38758 2009-03-07  Bruno Haible  <bruno@clisp.org>
38759
38760         New module 'memxfrm'.
38761         * lib/memxfrm.h: New file.
38762         * lib/memxfrm.c: New file.
38763         * modules/memxfrm: New file.
38764
38765 2009-03-07  Bruno Haible  <bruno@clisp.org>
38766
38767         New module 'memcmp2'.
38768         * lib/memcmp2.h: New file.
38769         * lib/memcmp2.c: New file.
38770         * modules/memcmp2: New file.
38771
38772 2009-03-07  Bruno Haible  <bruno@clisp.org>
38773
38774         Tests for module 'uninorm/decomposing-form'.
38775         * modules/uninorm/decomposing-form-tests: New file.
38776         * tests/uninorm/test-decomposing-form.c: New file.
38777
38778         New module 'uninorm/decomposing-form'.
38779         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
38780         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
38781         Add 'decomposing_variant' field.
38782         * lib/uninorm/decomposing-form.c: New file.
38783         * lib/uninorm/nfc.c (uninorm_nfc): Update.
38784         * lib/uninorm/nfd.c (uninorm_nfd): Update.
38785         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
38786         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
38787         * modules/uninorm/decomposing-form: New file.
38788         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
38789         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
38790
38791 2009-03-07  Bruno Haible  <bruno@clisp.org>
38792
38793         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
38794         strings.
38795
38796 2009-03-06  Bruno Haible  <bruno@clisp.org>
38797
38798         Tests for module 'uninorm/u32-normcmp'.
38799         * tests/uninorm/test-u32-normcmp.c: New file.
38800         * modules/uninorm/u32-normcmp-tests: New file.
38801
38802         Tests for module 'uninorm/u16-normcmp'.
38803         * tests/uninorm/test-u16-normcmp.c: New file.
38804         * modules/uninorm/u16-normcmp-tests: New file.
38805
38806         Tests for module 'uninorm/u8-normcmp'.
38807         * tests/uninorm/test-u8-normcmp.c: New file.
38808         * modules/uninorm/u8-normcmp-tests: New file.
38809
38810         New module 'uninorm/u32-normcmp'.
38811         * lib/uninorm/u32-normcmp.c: New file.
38812         * modules/uninorm/u32-normcmp: New file.
38813
38814         New module 'uninorm/u16-normcmp'.
38815         * lib/uninorm/u16-normcmp.c: New file.
38816         * modules/uninorm/u16-normcmp: New file.
38817
38818         New module 'uninorm/u8-normcmp'.
38819         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
38820         declarations.
38821         * lib/uninorm/u8-normcmp.c: New file.
38822         * lib/uninorm/u-normcmp.h: New file.
38823         * modules/uninorm/u8-normcmp: New file.
38824
38825 2009-03-06  Bruno Haible  <bruno@clisp.org>
38826
38827         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
38828         Reported by Eric Blake.
38829
38830 2009-03-06  Eric Blake  <ebb9@byu.net>
38831             Bruno Haible  <bruno@clisp.org>
38832
38833         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
38834         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
38835         condition.
38836         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
38837         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
38838         condition.
38839         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
38840
38841 2009-03-06  Eric Blake  <ebb9@byu.net>
38842
38843         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
38844         to avoid compiler warnings.
38845         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
38846
38847 2009-03-05  Bruno Haible  <bruno@clisp.org>
38848
38849         * tests/test-ftell.c (main): Disable test beyond end of file on
38850         FreeMiNT.
38851         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
38852
38853 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
38854
38855         * lib/filevercmp.c: Move hidden files up in ordering.
38856         * tests/test-filevercmp.c: Add tests for hidden files.
38857
38858 2009-03-04  Bruno Haible  <bruno@clisp.org>
38859
38860         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
38861         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
38862         AM_CFLAGS.
38863         Reported by Simon Josefsson.
38864
38865 2009-03-03  Bruno Haible  <bruno@clisp.org>
38866
38867         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
38868         Reported by Simon Josefsson.
38869
38870         * doc/ld-version-script.texi: Update node reference.
38871
38872 2009-03-03  Bruno Haible  <bruno@clisp.org>
38873
38874         * modules/visibility (License): Change to 'unlimited'.
38875         Suggested by Simon Josefsson.
38876
38877 2009-03-03  Jim Meyering  <meyering@redhat.com>
38878
38879         unlinkdir: cannot_unlink_dir may modify process state
38880         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
38881         it's neither thread-safe nor appropriate for use in a library.
38882
38883 2009-03-03  Eric Blake  <ebb9@byu.net>
38884
38885         test-closein: silence test under Darwin
38886         * tests/test-closein.sh: Ignore stderr from cat, since we don't
38887         care if it dies from EPIPE or EBADF.
38888
38889 2009-03-03  Bruno Haible  <bruno@clisp.org>
38890
38891         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
38892         earlier.
38893         * doc/visibility.texi: Fix @node and @section.
38894
38895 2009-03-03  Simon Josefsson  <simon@josefsson.org>
38896
38897         * doc/gnulib.texi: Link to sections for ld version script and
38898         visibility.
38899         * doc/visibility.texi: Add @node and @section.
38900         * modules/ld-version-script: New module.
38901         * m4/ld-version-script.m4: New file.
38902         * doc/ld-version-script.texi: New file.
38903
38904 2009-03-02  David Lutterkort  <lutter@redhat.com>
38905
38906         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
38907         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38908
38909 2009-03-02  Bruno Haible  <bruno@clisp.org>
38910
38911         * doc/visibility.texi: Mention libtool's -export-symbols option.
38912
38913 2009-03-02  Jim Meyering  <meyering@redhat.com>
38914
38915         announce-gen: new option: --no-print-checksums
38916         * build-aux/announce-gen (usage): Describe it.
38917         (print_checksums): Print a newline here, not in the [*] footnote.
38918         (main): Honor it.
38919
38920 2009-03-01  Bruno Haible  <bruno@clisp.org>
38921
38922         Use socklen_t in the native Windows replacements prototypes.
38923         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
38924         instead of 'int'.
38925         * lib/getsockopt.c (rpl_getsockopt): Likewise.
38926         * lib/setsockopt.c (rpl_setsockopt): Likewise.
38927         * modules/getsockopt (Depends-on): Add socklen.
38928         * modules/setsockopt (Depends-on): Add socklen.
38929
38930 2009-03-01  Bruno Haible  <bruno@clisp.org>
38931
38932         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
38933         least 4.2.
38934
38935 2009-03-01  Eric Blake  <ebb9@byu.net>
38936             Bruno Haible  <bruno@clisp.org>
38937
38938         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
38939         error messages.
38940         * lib/wait-process.c (wait_subprocess): Omit error message about
38941         deadly signal sent to the child of termsigp != NULL.
38942
38943 2009-03-01  Eric Blake  <ebb9@byu.net>
38944
38945         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
38946
38947 2009-03-01  Bruno Haible  <bruno@clisp.org>
38948
38949         Avoid a gcc warning.
38950         * tests/test-sched.c (b): Make global.
38951         Reported by Eric Blake.
38952
38953 2009-01-19  Martin Lambers  <marlam@marlam.de>
38954
38955         Provide POSIX semantics for socket timeout options on W32.
38956         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
38957         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
38958         * modules/setsockopt: Depend on sys_time module for struct timeval.
38959         * modules/getsockopt: Depend on sys_time module for struct timeval.
38960
38961 2009-03-01  Simon Josefsson  <simon@josefsson.org>
38962
38963         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
38964         __USE_GNU, for consistency with netdb.in.h.
38965         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38966
38967 2009-03-01  Bruno Haible  <bruno@clisp.org>
38968
38969         More support for FreeMiNT.
38970         * lib/fseeko.c (rpl_fseeko): Complete last commit.
38971         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38972
38973 2009-03-01  Bruno Haible  <bruno@clisp.org>
38974
38975         More support for FreeMiNT.
38976         * lib/fpurge.c (fpurge): Correct last commit.
38977         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38978
38979 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38980
38981         Fix unportable awk script in vc-list-files.
38982         * build-aux/vc-list-files: In the replacement awk script, use
38983         substr with a second argument of 1, not zero.
38984         Report by Simon Josefsson.
38985
38986 2009-02-28  Bruno Haible  <bruno@clisp.org>
38987
38988         More support for FreeMiNT.
38989         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
38990         to FreeMiNT today.
38991         * lib/fwriting.c (fwriting): Likewise.
38992         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
38993
38994 2009-02-28  Bruno Haible  <bruno@clisp.org>
38995
38996         * tests/test-freadseek.c (main): Disable test beyond end of file on
38997         FreeMiNT.
38998         * tests/test-ftello.c (main): Likewise.
38999         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
39000
39001 2009-02-28  Bruno Haible  <bruno@clisp.org>
39002
39003         Add tentative support for FreeMiNT.
39004         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
39005         * lib/fpurge.c (fpurge): Likewise.
39006         * lib/freadable.c (freadable): Likewise.
39007         * lib/freading.c (freading): Likewise.
39008         * lib/freadptr.c (freadptr): Likewise.
39009         * lib/freadseek.c (freadptrinc): Likewise.
39010         * lib/fseeko.c (rpl_fseeko): Likewise.
39011         * lib/fseterr.c (fseterr): Likewise.
39012         * lib/fwritable.c (fwritable): Likewise.
39013         * lib/fwriting.c (fwriting): Likewise.
39014         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
39015         Hourihane.
39016         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
39017
39018 2009-02-28  Bruno Haible  <bruno@clisp.org>
39019
39020         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
39021         SIGCHLD.
39022         Reported by Jim Meyering.
39023
39024 2009-02-28  Bruno Haible  <bruno@clisp.org>
39025
39026         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
39027         Mention the results of these tests on various platforms.
39028         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
39029         order.
39030         * doc/posix-functions/printf.texi: Likewise.
39031         * doc/posix-functions/snprintf.texi: Likewise.
39032         * doc/posix-functions/sprintf.texi: Likewise.
39033         * doc/posix-functions/vfprintf.texi: Likewise.
39034         * doc/posix-functions/vprintf.texi: Likewise.
39035         * doc/posix-functions/vsnprintf.texi: Likewise.
39036         * doc/posix-functions/vsprintf.texi: Likewise.
39037         * doc/glibc-functions/obstack_printf.texi: Likewise.
39038         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
39039
39040 2009-02-28  Bruno Haible  <bruno@clisp.org>
39041
39042         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
39043         Reported by Loïc Minier <lool@dooz.org>.
39044
39045 2009-02-27  Bruno Haible  <bruno@clisp.org>
39046
39047         * gnulib-tool (func_import): Make the sed expression used to create the
39048         sed script for updating the .gitignore file POSIX compliant.
39049         Reported by Eric Blake.
39050
39051 2009-02-27  Bruno Haible  <bruno@clisp.org>
39052
39053         * gnulib-tool (sed): Don't alias as "sed --posix".
39054         Reported by Eric Blake.
39055
39056 2009-02-27  Bruno Haible  <bruno@clisp.org>
39057
39058         Avoid test link errors.
39059         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
39060         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
39061         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
39062         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
39063         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39064
39065 2009-02-27  Bruno Haible  <bruno@clisp.org>
39066
39067         Avoid spurious "(cached)" in configure output.
39068         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
39069         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
39070         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
39071         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
39072         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
39073         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
39074         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
39075         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
39076         Reported by Eric Blake.
39077
39078 2009-02-27  Eric Blake  <ebb9@byu.net>
39079
39080         printf: fix regression in previous patch
39081         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
39082
39083 2009-02-27  Bruno Haible  <bruno@clisp.org>
39084
39085         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
39086         value.
39087         * lib/stdint.in.h: Likewise.
39088         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
39089
39090 2009-02-27  Eric Blake  <ebb9@byu.net>
39091
39092         doc: mention more functions added in cygwin 1.7.0
39093         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
39094         addition.
39095         * doc/posix-functions/open_wmemstream.texi: Likewise.
39096         * doc/posix-functions/wcsnlen.texi: Likewise.
39097         * doc/posix-functions/wcsnrtombs.texi: Likewise.
39098         * doc/posix-functions/wcstod.texi: Likewise.
39099         * doc/posix-functions/wcstof.texi: Likewise.
39100         * doc/posix-functions/wcstoimax.texi: Likewise.
39101         * doc/posix-functions/wcstok.texi: Likewise.
39102         * doc/posix-functions/wcstoumax.texi: Likewise.
39103
39104         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
39105         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
39106         * doc/posix-functions/fprintf.texi: Update.
39107         * doc/posix-functions/printf.texi: Update.
39108         * doc/posix-functions/snprintf.texi: Update.
39109         * doc/posix-functions/sprintf.texi: Update.
39110         * doc/posix-functions/vfprintf.texi: Update.
39111         * doc/posix-functions/vprintf.texi: Update.
39112         * doc/posix-functions/vsnprintf.texi: Update.
39113         * doc/posix-functions/vsprintf.texi: Update.
39114         * doc/glibc-functions/obstack_printf.texi: Update.
39115         * doc/glibc-functions/obstack_vprintf.texi: Update.
39116
39117 2009-02-26  Eric Blake  <ebb9@byu.net>
39118
39119         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
39120         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
39121         compilation bug by using runtime conversion.
39122         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
39123         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
39124         * modules/ceill-tests (Files): Use nan.h.
39125         * modules/floorl-tests (Files): Likewise.
39126         * modules/frexpl-tests (Files): Likewise.
39127         * modules/isnanl-tests (Files): Likewise.
39128         * modules/ldexpl-tests (Files): Likewise.
39129         * modules/roundl-tests (Files): Likewise.
39130         * modules/truncl-tests (Files): Likewise.
39131         * tests/test-ceill.c (main): Use a working NaN.
39132         * tests/test-floorl.c (main): Likewise.
39133         * tests/test-frexpl.c (main): Likewise.
39134         * tests/test-isnan.c (test_long_double): Likewise.
39135         * tests/test-isnanl.h (main): Likewise.
39136         * tests/test-ldexpl.h (main): Likewise.
39137         * tests/test-roundl.h (main): Likewise.
39138         * tests/test-truncl.h (main): Likewise.
39139         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
39140
39141 2009-02-26  Eric Blake  <ebb9@byu.net>
39142             Bruno Haible  <bruno@clisp.org>
39143
39144         Work around a *printf bug with %ls on Solaris.
39145         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
39146         precision is specified, sprintf stops converting the wide string
39147         argument when the number of bytes that have been produced by this
39148         conversion equals or exceeds the precision.
39149         * doc/posix-functions/fprintf.texi: Update.
39150         * doc/posix-functions/printf.texi: Update.
39151         * doc/posix-functions/snprintf.texi: Update.
39152         * doc/posix-functions/sprintf.texi: Update.
39153         * doc/posix-functions/vfprintf.texi: Update.
39154         * doc/posix-functions/vprintf.texi: Update.
39155         * doc/posix-functions/vsnprintf.texi: Update.
39156         * doc/posix-functions/vsprintf.texi: Update.
39157         * doc/glibc-functions/obstack_printf.texi: Update.
39158         * doc/glibc-functions/obstack_vprintf.texi: Update.
39159
39160 2009-02-26  Eric Blake  <ebb9@byu.net>
39161
39162         stdlib: favor compiler check of random.h
39163         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
39164         to avoid an ObjC random.h installed by Swarm.
39165
39166 2009-02-26  Bruno Haible  <bruno@clisp.org>
39167
39168         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
39169         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
39170         Reported by Gary V. Vaughan <gary@gnu.org>.
39171
39172 2009-02-26  Bruno Haible  <bruno@clisp.org>
39173
39174         Fix *printf behaviour regarding the %ls directive.
39175         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
39176         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
39177         NEED_PRINTF_DIRECTIVE_LS.
39178         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
39179         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
39180         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39181         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
39182         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
39183         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
39184         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
39185         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39186         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39187         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39188         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39189         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
39190         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39191         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39192         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39193         * doc/posix-functions/fprintf.texi: Update.
39194         * doc/posix-functions/printf.texi: Update.
39195         * doc/posix-functions/snprintf.texi: Update.
39196         * doc/posix-functions/sprintf.texi: Update.
39197         * doc/posix-functions/vfprintf.texi: Update.
39198         * doc/posix-functions/vprintf.texi: Update.
39199         * doc/posix-functions/vsnprintf.texi: Update.
39200         * doc/posix-functions/vsprintf.texi: Update.
39201         * doc/glibc-functions/obstack_printf.texi: Update.
39202         * doc/glibc-functions/obstack_vprintf.texi: Update.
39203         Reported by Eric Blake.
39204
39205 2009-02-25  Bruno Haible  <bruno@clisp.org>
39206
39207         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
39208         with known value.
39209         Reported by Gary V. Vaughan <gary@gnu.org>.
39210
39211 2009-02-25  Bruno Haible  <bruno@clisp.org>
39212
39213         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
39214         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
39215         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
39216         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
39217         Reported by Gary V. Vaughan <gary@gnu.org>.
39218
39219 2009-02-25  Bruno Haible  <bruno@clisp.org>
39220
39221         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
39222         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
39223         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
39224         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
39225         Reported by Gary V. Vaughan <gary@gnu.org>.
39226
39227 2009-02-25  Eric Blake  <ebb9@byu.net>
39228
39229         tests: skip fseek/ftell tests if ungetc is broken
39230         * m4/ungetc.m4: New file.
39231         * modules/fseek-tests: Split test, so ungetc dependency is
39232         separate from rest of test.
39233         * modules/fseeko-tests: Likewise.
39234         * modules/ftell-tests: Likewise.
39235         * modules/ftello-tests: Likewise.
39236         * tests/test-fseek.c (main): Isolate ungetc dependency.
39237         * tests/test-fseeko.c (main): Likewise.
39238         * tests/test-ftell.c (main): Likewise.
39239         * tests/test-ftello.c (main): Likewise.
39240         * tests/test-fseek2.sh: New file.
39241         * tests/test-fseeko2.sh: Likewise.
39242         * tests/test-ftell2.sh: Likewise.
39243         * tests/test-ftello2.sh: Likewise.
39244
39245 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
39246
39247         test-getaddrinfo: fix usage of skip return code 77
39248         * tests/test-gettaddrinfo.c: Return skip code 77 only
39249         for first occurance of skip (4x77 is not 77)
39250
39251 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
39252
39253         strtod: avoid C99 decl-after-statement
39254         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
39255
39256 2009-02-24  Eric Blake  <ebb9@byu.net>
39257
39258         strtod: detect HP-UX 11.31 bug
39259         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
39260         Reported by Gary V. Vaughan.
39261
39262 2009-02-23  Bruno Haible  <bruno@clisp.org>
39263
39264         Fix invalid read past end of memory block.
39265         * lib/vasnprintf.c (DCHAR_SET): Define.
39266         (local_wcslen): Define only when needed.
39267         (local_strnlen, local_wcsnlen): New functions.
39268         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
39269         directives that involve a conversion ourselves.
39270         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
39271         wcsnlen, mbrtowc, wcrtomb.
39272         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
39273         * tests/test-vasprintf-posix.c (test_function): Likewise.
39274         * tests/test-snprintf-posix.h (test_function): Likewise.
39275         * tests/test-sprintf-posix.h (test_function): Likewise.
39276         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39277
39278 2009-02-22  Bruno Haible  <bruno@clisp.org>
39279
39280         Implement new clarified decomposition of Hangul syllables.
39281         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
39282         of type LTV, return only a pairwise decomposition.
39283         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
39284         Likewise.
39285         * tests/uninorm/test-decomposition.c (main): Updated expected result.
39286         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
39287         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
39288
39289 2009-02-22  Bruno Haible  <bruno@clisp.org>
39290
39291         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
39292         zero-length results and shrink excess allocated memory.
39293         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
39294         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
39295         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
39296         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
39297         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
39298         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
39299         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
39300         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
39301         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
39302         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
39303         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
39304         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
39305
39306 2009-02-21  Bruno Haible  <bruno@clisp.org>
39307
39308         * doc/gnulib.texi: Include safe-alloc.texi earlier.
39309         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
39310         spaces after a period. Put a space between a macro name and its
39311         argument list. Trivial rewordings.
39312         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
39313         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
39314         (main): Return 0 explicitly.
39315
39316 2009-02-21  Bruno Haible  <bruno@clisp.org>
39317
39318         Tests for module 'uninorm/filter'.
39319         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
39320         * modules/uninorm/filter-tests: New file.
39321
39322         New module 'uninorm/filter'.
39323         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
39324         uninorm_filter_flush, uninorm_filter_free): New declarations.
39325         * lib/uninorm/uninorm-filter.c: New file.
39326         * modules/uninorm/filter: New file.
39327
39328 2009-02-21  Bruno Haible  <bruno@clisp.org>
39329
39330         Tests for module 'uninorm/nfkc'.
39331         * tests/uninorm/test-nfkc.c: New file.
39332         * tests/uninorm/test-u8-nfkc.c: New file.
39333         * tests/uninorm/test-u16-nfkc.c: New file.
39334         * tests/uninorm/test-u32-nfkc.c: New file.
39335         * tests/uninorm/test-u32-nfkc-big.sh: New file.
39336         * tests/uninorm/test-u32-nfkc-big.c: New file.
39337         * modules/uninorm/nfkc-tests: New file.
39338
39339         New module 'uninorm/nfkc'.
39340         * lib/uninorm/nfkc.c: New file.
39341         * modules/uninorm/nfkc: New file.
39342
39343         Tests for module 'uninorm/nfkd'.
39344         * tests/uninorm/test-nfkd.c: New file.
39345         * tests/uninorm/test-u8-nfkd.c: New file.
39346         * tests/uninorm/test-u16-nfkd.c: New file.
39347         * tests/uninorm/test-u32-nfkd.c: New file.
39348         * tests/uninorm/test-u32-nfkd-big.sh: New file.
39349         * tests/uninorm/test-u32-nfkd-big.c: New file.
39350         * modules/uninorm/nfkd-tests: New file.
39351
39352         New module 'uninorm/nfkd'.
39353         * lib/uninorm/nfkd.c: New file.
39354         * modules/uninorm/nfkd: New file.
39355
39356         Tests for module 'uninorm/nfc'.
39357         * tests/uninorm/test-nfc.c: New file.
39358         * tests/uninorm/test-u8-nfc.c: New file.
39359         * tests/uninorm/test-u16-nfc.c: New file.
39360         * tests/uninorm/test-u32-nfc.c: New file.
39361         * tests/uninorm/test-u32-nfc-big.sh: New file.
39362         * tests/uninorm/test-u32-nfc-big.c: New file.
39363         * modules/uninorm/nfc-tests: New file.
39364
39365         New module 'uninorm/nfc'.
39366         * lib/uninorm/nfc.c: New file.
39367         * modules/uninorm/nfc: New file.
39368
39369         Tests for module 'uninorm/nfd'.
39370         * tests/uninorm/test-nfd.c: New file.
39371         * tests/uninorm/test-u8-nfd.c: New file.
39372         * tests/uninorm/test-u16-nfd.c: New file.
39373         * tests/uninorm/test-u32-nfd.c: New file.
39374         * tests/uninorm/test-u32-nfd-big.sh: New file.
39375         * tests/uninorm/test-u32-nfd-big.c: New file.
39376         * tests/uninorm/test-u32-normalize-big.h: New file.
39377         * tests/uninorm/test-u32-normalize-big.c: New file.
39378         * tests/uninorm/NormalizationTest.txt: New file, created from
39379         Unicode 5.1.0 NormalizationTest.txt.
39380         * modules/uninorm/nfd-tests: New file.
39381
39382         New module 'uninorm/nfd'.
39383         * lib/uninorm/nfd.c: New file.
39384         * modules/uninorm/nfd: New file.
39385
39386         New module 'uninorm/u32-normalize'.
39387         * lib/uninorm/u32-normalize.c: New file.
39388         * modules/uninorm/u32-normalize: New file.
39389
39390         New module 'uninorm/u16-normalize'.
39391         * lib/uninorm/u16-normalize.c: New file.
39392         * modules/uninorm/u16-normalize: New file.
39393
39394         New module 'uninorm/u8-normalize'.
39395         * lib/uninorm/u8-normalize.c: New file.
39396         * lib/uninorm/normalize-internal.h: New file.
39397         * lib/uninorm/u-normalize-internal.h: New file.
39398         * modules/uninorm/u8-normalize: New file.
39399
39400         New module 'uninorm/decompose-internal'.
39401         * lib/uninorm/decompose-internal.c: New file.
39402         * modules/uninorm/decompose-internal: New file.
39403
39404         Tests for module 'uninorm/composition'.
39405         * tests/uninorm/test-composition.c: New file.
39406         * modules/uninorm/composition-tests: New file.
39407
39408         New module 'uninorm/composition'.
39409         * lib/uninorm/composition.c: New file.
39410         * lib/uninorm/composition-table.gperf: New file, generated by
39411         gen-uni-tables.
39412         * modules/uninorm/composition: New file.
39413
39414         Tests for module 'uninorm/compat-decomposition'.
39415         * tests/uninorm/test-compat-decomposition.c: New file.
39416         * modules/uninorm/compat-decomposition-tests: New file.
39417
39418         New module 'uninorm/compat-decomposition'.
39419         * lib/uninorm/decompose-internal.h: New file.
39420         * lib/uninorm/compat-decomposition.c: New file.
39421         * modules/uninorm/compat-decomposition: New file.
39422
39423         Tests for module 'uninorm/canonical-decomposition'.
39424         * tests/uninorm/test-canonical-decomposition.c: New file.
39425         * modules/uninorm/canonical-decomposition-tests: New file.
39426
39427         New module 'uninorm/canonical-decomposition'.
39428         * lib/uninorm/canonical-decomposition.c: New file.
39429         * modules/uninorm/canonical-decomposition: New file.
39430
39431         Tests for module 'uninorm/decomposition'.
39432         * tests/uninorm/test-decomposition.c: New file.
39433         * modules/uninorm/decomposition-tests: New file.
39434
39435         New module 'uninorm/decomposition'.
39436         * lib/uninorm/decomposition.c: New file.
39437         * modules/uninorm/decomposition: New file.
39438
39439         New module 'uninorm/decomposition-table'.
39440         * lib/uninorm/decomposition-table.h: New file.
39441         * lib/uninorm/decomposition-table.c: New file.
39442         * lib/uninorm/decomposition-table1.h: New file, generated by
39443         gen-uni-tables.
39444         * lib/uninorm/decomposition-table2.h: New file, generated by
39445         gen-uni-tables.
39446         * modules/uninorm/decomposition-table: New file.
39447
39448         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
39449         (UC_DECOMP_*): New enumeration items.
39450         (get_decomposition): New function.
39451         (struct decomp_table): New type.
39452         (output_decomposition, output_decomposition_tables): New functions.
39453         (unicode_composition_exclusions): New variable.
39454         (fill_composition_exclusions, debug_output_composition_tables): New
39455         functions.
39456         (main): Accept one more argument. Invoke fill_composition_exclusions.
39457         Output decomposition and composition tables.
39458
39459         New module 'uninorm/base'.
39460         * lib/uninorm.h: New file.
39461         * lib/unictype.h: Update comment.
39462         * modules/uninorm/base: New file.
39463
39464 2009-02-21  David Lutterkort  <lutter@redhat.com>
39465
39466         Tests for module 'safe-alloc'.
39467         * tests/test-safe-alloc.c: New file.
39468         * modules/safe-alloc-tests: New file.
39469
39470         New module 'safe-alloc'.
39471         * lib/safe-alloc.h: New file.
39472         * lib/safe-alloc.c: New file.
39473         * m4/safe-alloc.m4: New file.
39474         * modules/safe-alloc: New file.
39475         * doc/safe-alloc.texi: New file.
39476         * doc/gnulib.texi: Include it.
39477         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
39478         safe-alloc.
39479
39480 2009-02-18  Bruno Haible  <bruno@clisp.org>
39481
39482         Fix link error on non-glibc systems.
39483         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
39484         variable.
39485         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39486
39487 2009-02-18  Jim Meyering  <meyering@redhat.com>
39488
39489         fts: avoid used-uninitialized error due to recent change
39490         * lib/fts.c (fts_read): Guard uses of the new member,
39491         parent->fts_n_dirs_remaining, since it's not relevant for
39492         the parent of a directory specified on the command-line.
39493
39494 2009-02-17  James Youngman  <jay@gnu.org>
39495             Bruno Haible  <bruno@clisp.org>
39496
39497         * m4/include_next.m4: Reformulate comment.
39498
39499 2009-02-16  Jim Meyering  <meyering@redhat.com>
39500
39501         fts: add #if guards so that the fts_lgpl module still builds
39502         * lib/fts.c: Guard just-added hash-table-using parts with
39503         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
39504         Reported by Simon Josefsson.
39505
39506 2009-02-15  Bruno Haible  <bruno@clisp.org>
39507
39508         * modules/array-mergesort-tests: New file.
39509         * tests/test-array-mergesort.c: New file.
39510
39511         New module 'array-mergesort'.
39512         * modules/array-mergesort: New file.
39513         * lib/array-mergesort.h: New file.
39514
39515 2009-02-15  Bruno Haible  <bruno@clisp.org>
39516
39517         Fix 2009-02-07 commit.
39518         * lib/gen-uni-tables.c (output_predicate, output_category,
39519         output_combclass, output_bidi_category, output_decimal_digit,
39520         output_digit, output_numeric, output_mirror, output_scripts,
39521         output_ident_category, output_simple_mapping): Fix format directives.
39522         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
39523
39524 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
39525
39526         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
39527         fixes are available from IBM.
39528
39529 2009-02-13  Jim Meyering  <meyering@redhat.com>
39530
39531         fts: arrange not to stat non-directories in more cases
39532         This makes GNU find (when it doesn't need to stat each file)
39533         *much* more efficient at traversing reiserfs file systems.
39534         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
39535         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
39536         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
39537         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
39538         (leaf_optimization_applies): New function.
39539         (LCO_hash, LCO_compare): New helper functions.
39540         (link_count_optimize_ok): New function.
39541         (fts_stat): Initialize new member (if dir).
39542         (fts_read): Decrement parent's fts_n_dirs_remaining count if
39543         we've just stat'ed a directory.  Skip the stat call when possible.
39544         ---
39545         Note this AFS-related exchange:
39546         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
39547         and note find's pioctl call in find/fstype.c.
39548         But that is necessary only if you want to enable the
39549         optimization for AFS, and for now, I don't.
39550
39551         fts: move a function definition "up" (no semantic change)
39552         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
39553         "up" to precede upcoming use of a related function.
39554
39555 2009-02-11  Jim Meyering  <meyering@redhat.com>
39556
39557         fts: correct internal computation of nlinks (optimization-related)
39558         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
39559         whether the current entry is a directory, so don't test it.
39560
39561 2009-02-10  Bruno Haible  <bruno@clisp.org>
39562
39563         Tests for module 'uniwbrk/ulc-wordbreaks'.
39564         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
39565         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
39566         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
39567
39568         Tests for module 'uniwbrk/u32-wordbreaks'.
39569         * modules/uniwbrk/u32-wordbreaks-tests: New file.
39570         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
39571
39572         Tests for module 'uniwbrk/u16-wordbreaks'.
39573         * modules/uniwbrk/u16-wordbreaks-tests: New file.
39574         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
39575
39576         Tests for module 'uniwbrk/u8-wordbreaks'.
39577         * modules/uniwbrk/u8-wordbreaks-tests: New file.
39578         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
39579
39580 2009-02-10  Bruno Haible  <bruno@clisp.org>
39581
39582         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
39583         property.
39584         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
39585         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
39586         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
39587
39588 2009-02-10  Simon Josefsson  <simon@josefsson.org>
39589
39590         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
39591         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
39592
39593 2009-02-10  Bruno Haible  <bruno@clisp.org>
39594
39595         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
39596         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
39597         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
39598         * lib/unilbrk/u8-possible-linebreaks.c: Update.
39599         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
39600         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
39601
39602 2009-02-09  Simon Josefsson  <simon@josefsson.org>
39603
39604         * lib/sockets.h (gl_fd_to_handle): New function.
39605
39606         * tests/test-sockets.c: Call gl_fd_to_handle.
39607
39608 2009-02-09  Bruno Haible  <bruno@clisp.org>
39609
39610         * doc/havelib.texi: Document the conventions on bi-arch systems.
39611
39612 2009-02-08  Bruno Haible  <bruno@clisp.org>
39613
39614         Document the AC_LIB_LINKFLAGS macro.
39615         * doc/havelib.texi: New file, mostly written on 2005-05-24.
39616         * doc/gnulib.texi: Include it.
39617
39618 2009-02-08  Bruno Haible  <bruno@clisp.org>
39619
39620         Fix wrong order of sections, compared to TOC.
39621         * doc/gnulib.texi: Include relocatable-maint.texi after the
39622         "Regular expressions" node, not before.
39623
39624 2009-02-08  Bruno Haible  <bruno@clisp.org>
39625
39626         Tests for module 'unicase/totitle'.
39627         * modules/unicase/totitle-tests: New file.
39628
39629         Tests for module 'unicase/tolower'.
39630         * modules/unicase/tolower-tests: New file.
39631
39632         Tests for module 'unicase/toupper'.
39633         * modules/unicase/toupper-tests: New file.
39634         * tests/unicase/test-mapping-part1.h: New file.
39635         * tests/unicase/test-mapping-part2.h: New file.
39636
39637         New module 'unicase/totitle'.
39638         * modules/unicase/totitle: New file.
39639         * lib/unicase/totitle.c: New file.
39640
39641         New module 'unicase/tolower'.
39642         * modules/unicase/tolower: New file.
39643         * lib/unicase/tolower.c: New file.
39644
39645         New module 'unicase/toupper'.
39646         * modules/unicase/toupper: New file.
39647         * lib/unicase/toupper.c: New file.
39648         * lib/unicase/simple-mapping.h: New file.
39649
39650         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
39651         (mapping_table): New structure.
39652         (output_simple_mapping): New function.
39653         (main): Invoke output_simple_mapping_test and output_simple_mapping.
39654         * modules/gen-uni-tables (Description): Update.
39655         * lib/unicase/toupper.h: New file, automatically generated by
39656         gen-uni-tables.
39657         * lib/unicase/tolower.h: New file, automatically generated by
39658         gen-uni-tables.
39659         * lib/unicase/totitle.h: New file, automatically generated by
39660         gen-uni-tables.
39661         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
39662         gen-uni-tables.
39663         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
39664         gen-uni-tables.
39665         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
39666         gen-uni-tables.
39667
39668         New module 'unicase/base'.
39669         * modules/unicase/base: New file.
39670         * lib/unicase.h: New file.
39671
39672 2009-02-08  Bruno Haible  <bruno@clisp.org>
39673
39674         New module 'uniwbrk/ulc-wordbreaks'.
39675         * modules/uniwbrk/ulc-wordbreaks: New file.
39676         * lib/uniwbrk/ulc-wordbreaks.c: New file.
39677
39678         New module 'uniwbrk/u32-wordbreaks'.
39679         * modules/uniwbrk/u32-wordbreaks: New file.
39680         * lib/uniwbrk/u32-wordbreaks.c: New file.
39681
39682         New module 'uniwbrk/u16-wordbreaks'.
39683         * modules/uniwbrk/u16-wordbreaks: New file.
39684         * lib/uniwbrk/u16-wordbreaks.c: New file.
39685
39686         New module 'uniwbrk/u8-wordbreaks'.
39687         * modules/uniwbrk/u8-wordbreaks: New file.
39688         * lib/uniwbrk/u8-wordbreaks.c: New file.
39689         * lib/uniwbrk/u-wordbreaks.h: New file.
39690
39691         New module 'uniwbrk/table'.
39692         * modules/uniwbrk/table: New file.
39693         * lib/uniwbrk/wbrktable.h: New file.
39694         * lib/uniwbrk/wbrktable.c: New file.
39695
39696         New module 'uniwbrk/wordbreak-property'.
39697         * modules/uniwbrk/wordbreak-property: New file.
39698         * lib/uniwbrk/wordbreak-property.c: New file.
39699
39700         * lib/gen-uni-tables.c (WBP_*): New enum items.
39701         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
39702         (unicode_org_wbp): New variable.
39703         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
39704         New functions.
39705         (wbp_table): New structure.
39706         (output_wbp, output_wbrk_tables): New functions.
39707         (main): Accept additional argument. Invoke fill_org_wbp,
39708         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
39709         output_wbrk_tables.
39710         * modules/gen-uni-tables (Description): Update.
39711         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
39712         gen-uni-tables.
39713
39714         New module 'uniwbrk/base'.
39715         * modules/uniwbrk/base: New file.
39716         * lib/uniwbrk.h: New file.
39717
39718 2009-02-08  Bruno Haible  <bruno@clisp.org>
39719
39720         Update to Unicode 5.1.0.
39721         * lib/gen-uni-tables.c (is_property_alphabetic): Include
39722         U+2185..U+2188.
39723         (is_property_default_ignorable_code_point): Don't include characters
39724         of category Cc or Cs and not-a-characters.
39725         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
39726         U+0D79, U+109E, U+109F, U+A60C.
39727         * lib/unictype/bidi_of.h: Regenerated.
39728         * lib/unictype/blocks.h: Regenerated.
39729         * lib/unictype/categ_C.h: Regenerated.
39730         * lib/unictype/categ_Cf.h: Regenerated.
39731         * lib/unictype/categ_Cn.h: Regenerated.
39732         * lib/unictype/categ_L.h: Regenerated.
39733         * lib/unictype/categ_Ll.h: Regenerated.
39734         * lib/unictype/categ_Lm.h: Regenerated.
39735         * lib/unictype/categ_Lo.h: Regenerated.
39736         * lib/unictype/categ_Lu.h: Regenerated.
39737         * lib/unictype/categ_M.h: Regenerated.
39738         * lib/unictype/categ_Mc.h: Regenerated.
39739         * lib/unictype/categ_Me.h: Regenerated.
39740         * lib/unictype/categ_Mn.h: Regenerated.
39741         * lib/unictype/categ_N.h: Regenerated.
39742         * lib/unictype/categ_Nd.h: Regenerated.
39743         * lib/unictype/categ_Nl.h: Regenerated.
39744         * lib/unictype/categ_No.h: Regenerated.
39745         * lib/unictype/categ_P.h: Regenerated.
39746         * lib/unictype/categ_Pd.h: Regenerated.
39747         * lib/unictype/categ_Pe.h: Regenerated.
39748         * lib/unictype/categ_Pf.h: Regenerated.
39749         * lib/unictype/categ_Pi.h: Regenerated.
39750         * lib/unictype/categ_Po.h: Regenerated.
39751         * lib/unictype/categ_Ps.h: Regenerated.
39752         * lib/unictype/categ_S.h: Regenerated.
39753         * lib/unictype/categ_Sk.h: Regenerated.
39754         * lib/unictype/categ_Sm.h: Regenerated.
39755         * lib/unictype/categ_So.h: Regenerated.
39756         * lib/unictype/categ_of.h: Regenerated.
39757         * lib/unictype/combining.h: Regenerated.
39758         * lib/unictype/ctype_alnum.h: Regenerated.
39759         * lib/unictype/ctype_alpha.h: Regenerated.
39760         * lib/unictype/ctype_graph.h: Regenerated.
39761         * lib/unictype/ctype_lower.h: Regenerated.
39762         * lib/unictype/ctype_print.h: Regenerated.
39763         * lib/unictype/ctype_punct.h: Regenerated.
39764         * lib/unictype/ctype_upper.h: Regenerated.
39765         * lib/unictype/decdigit.h: Regenerated.
39766         * lib/unictype/digit.h: Regenerated.
39767         * lib/unictype/mirror.h: Regenerated.
39768         * lib/unictype/numeric.h: Regenerated.
39769         * lib/unictype/pr_alphabetic.h: Regenerated.
39770         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
39771         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
39772         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
39773         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
39774         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
39775         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
39776         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
39777         * lib/unictype/pr_combining.h: Regenerated.
39778         * lib/unictype/pr_dash.h: Regenerated.
39779         * lib/unictype/pr_decimal_digit.h: Regenerated.
39780         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
39781         * lib/unictype/pr_deprecated.h: Regenerated.
39782         * lib/unictype/pr_diacritic.h: Regenerated.
39783         * lib/unictype/pr_extender.h: Regenerated.
39784         * lib/unictype/pr_format_control.h: Regenerated.
39785         * lib/unictype/pr_grapheme_base.h: Regenerated.
39786         * lib/unictype/pr_grapheme_extend.h: Regenerated.
39787         * lib/unictype/pr_grapheme_link.h: Regenerated.
39788         * lib/unictype/pr_id_continue.h: Regenerated.
39789         * lib/unictype/pr_id_start.h: Regenerated.
39790         * lib/unictype/pr_ideographic.h: Regenerated.
39791         * lib/unictype/pr_ignorable_control.h: Regenerated.
39792         * lib/unictype/pr_lowercase.h: Regenerated.
39793         * lib/unictype/pr_math.h: Regenerated.
39794         * lib/unictype/pr_numeric.h: Regenerated.
39795         * lib/unictype/pr_other_alphabetic.h: Regenerated.
39796         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
39797         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
39798         * lib/unictype/pr_other_id_continue.h: Regenerated.
39799         * lib/unictype/pr_other_lowercase.h: Regenerated.
39800         * lib/unictype/pr_other_math.h: Regenerated.
39801         * lib/unictype/pr_punctuation.h: Regenerated.
39802         * lib/unictype/pr_sentence_terminal.h: Regenerated.
39803         * lib/unictype/pr_soft_dotted.h: Regenerated.
39804         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
39805         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
39806         * lib/unictype/pr_unified_ideograph.h: Regenerated.
39807         * lib/unictype/pr_uppercase.h: Regenerated.
39808         * lib/unictype/pr_xid_continue.h: Regenerated.
39809         * lib/unictype/pr_xid_start.h: Regenerated.
39810         * lib/unictype/pr_zero_width.h: Regenerated.
39811         * lib/unictype/scripts.h: Regenerated.
39812         * lib/unictype/scripts_byname.gperf: Regenerated.
39813         * lib/unictype/sy_java_ident.h: Regenerated.
39814         * lib/unilbrk/lbrkprop1.h: Regenerated.
39815         * lib/unilbrk/lbrkprop2.h: Regenerated.
39816         * tests/unictype/test-categ_C.c: Regenerated.
39817         * tests/unictype/test-categ_Cf.c: Regenerated.
39818         * tests/unictype/test-categ_Cn.c: Regenerated.
39819         * tests/unictype/test-categ_L.c: Regenerated.
39820         * tests/unictype/test-categ_Ll.c: Regenerated.
39821         * tests/unictype/test-categ_Lm.c: Regenerated.
39822         * tests/unictype/test-categ_Lo.c: Regenerated.
39823         * tests/unictype/test-categ_Lu.c: Regenerated.
39824         * tests/unictype/test-categ_M.c: Regenerated.
39825         * tests/unictype/test-categ_Mc.c: Regenerated.
39826         * tests/unictype/test-categ_Me.c: Regenerated.
39827         * tests/unictype/test-categ_Mn.c: Regenerated.
39828         * tests/unictype/test-categ_N.c: Regenerated.
39829         * tests/unictype/test-categ_Nd.c: Regenerated.
39830         * tests/unictype/test-categ_Nl.c: Regenerated.
39831         * tests/unictype/test-categ_No.c: Regenerated.
39832         * tests/unictype/test-categ_P.c: Regenerated.
39833         * tests/unictype/test-categ_Pd.c: Regenerated.
39834         * tests/unictype/test-categ_Pe.c: Regenerated.
39835         * tests/unictype/test-categ_Pf.c: Regenerated.
39836         * tests/unictype/test-categ_Pi.c: Regenerated.
39837         * tests/unictype/test-categ_Po.c: Regenerated.
39838         * tests/unictype/test-categ_Ps.c: Regenerated.
39839         * tests/unictype/test-categ_S.c: Regenerated.
39840         * tests/unictype/test-categ_Sk.c: Regenerated.
39841         * tests/unictype/test-categ_Sm.c: Regenerated.
39842         * tests/unictype/test-categ_So.c: Regenerated.
39843         * tests/unictype/test-ctype_alnum.c: Regenerated.
39844         * tests/unictype/test-ctype_alpha.c: Regenerated.
39845         * tests/unictype/test-ctype_graph.c: Regenerated.
39846         * tests/unictype/test-ctype_lower.c: Regenerated.
39847         * tests/unictype/test-ctype_print.c: Regenerated.
39848         * tests/unictype/test-ctype_punct.c: Regenerated.
39849         * tests/unictype/test-ctype_upper.c: Regenerated.
39850         * tests/unictype/test-decdigit.h: Regenerated.
39851         * tests/unictype/test-digit.h: Regenerated.
39852         * tests/unictype/test-numeric.h: Regenerated.
39853         * tests/unictype/test-pr_alphabetic.c: Regenerated.
39854         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
39855         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
39856         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
39857         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
39858         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
39859         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
39860         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
39861         * tests/unictype/test-pr_combining.c: Regenerated.
39862         * tests/unictype/test-pr_dash.c: Regenerated.
39863         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
39864         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
39865         * tests/unictype/test-pr_deprecated.c: Regenerated.
39866         * tests/unictype/test-pr_diacritic.c: Regenerated.
39867         * tests/unictype/test-pr_extender.c: Regenerated.
39868         * tests/unictype/test-pr_format_control.c: Regenerated.
39869         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
39870         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
39871         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
39872         * tests/unictype/test-pr_id_continue.c: Regenerated.
39873         * tests/unictype/test-pr_id_start.c: Regenerated.
39874         * tests/unictype/test-pr_ideographic.c: Regenerated.
39875         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
39876         * tests/unictype/test-pr_lowercase.c: Regenerated.
39877         * tests/unictype/test-pr_math.c: Regenerated.
39878         * tests/unictype/test-pr_numeric.c: Regenerated.
39879         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
39880         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
39881         Regenerated.
39882         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
39883         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
39884         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
39885         * tests/unictype/test-pr_other_math.c: Regenerated.
39886         * tests/unictype/test-pr_punctuation.c: Regenerated.
39887         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
39888         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
39889         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
39890         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
39891         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
39892         * tests/unictype/test-pr_uppercase.c: Regenerated.
39893         * tests/unictype/test-pr_xid_continue.c: Regenerated.
39894         * tests/unictype/test-pr_xid_start.c: Regenerated.
39895         * tests/unictype/test-pr_zero_width.c: Regenerated.
39896
39897         Update to Unicode 5.1.0.
39898         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
39899         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
39900         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
39901         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
39902         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
39903         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
39904         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
39905         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
39906         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
39907         (nonspacing_table_ind): Update.
39908         * tests/uniwidth/test-uc_width2.sh: Update expected result.
39909
39910         Update to Unicode 5.1.0.
39911         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
39912         code transform.
39913         * lib/uniname/uniname.c (unicode_character_name,
39914         unicode_name_character): Add the range 0x1Fxxx to the code transform.
39915         * lib/uniname/uninames.h: Regenerated.
39916         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
39917
39918 2009-02-07  Bruno Haible  <bruno@clisp.org>
39919
39920         Merge gen-ctype and gen-lbrk into a single program.
39921         * lib/gen-uni-tables.c: New file, incorporating
39922         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
39923         Add directory prefixes to the names of the generated files.
39924         * lib/unictype/gen-ctype.c: Remove file.
39925         * lib/unilbrk/gen-lbrk.c: Remove file.
39926         * modules/gen-uni-tables: New file.
39927         * modules/unictype/gen-ctype: Remove file.
39928         * modules/unilbrk/gen-lbrk: Remove file.
39929
39930 2009-02-07  Bruno Haible  <bruno@clisp.org>
39931
39932         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
39933
39934         New module 'unistr/u32-strcoll'.
39935         * modules/unistr/u32-strcoll: New file.
39936         * lib/unistr/u32-strcoll.c: New file.
39937
39938         New module 'unistr/u16-strcoll'.
39939         * modules/unistr/u16-strcoll: New file.
39940         * lib/unistr/u16-strcoll.c: New file.
39941
39942         New module 'unistr/u8-strcoll'.
39943         * modules/unistr/u8-strcoll: New file.
39944         * lib/unistr/u8-strcoll.c: New file.
39945         * lib/unistr/u-strcoll.h: New file.
39946
39947 2009-02-07  Bruno Haible  <bruno@clisp.org>
39948
39949         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
39950         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
39951         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
39952         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
39953         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
39954         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
39955
39956 2009-02-07  Bruno Haible  <bruno@clisp.org>
39957
39958         Make 64-bit clean.
39959         * lib/unictype/gen-ctype.c (output_predicate, output_category,
39960         output_combclass, output_bidi_category, output_decimal_digit,
39961         output_digit, output_numeric, output_mirror, output_scripts,
39962         output_ident_category): Use proper width specifier in format strings.
39963
39964 2009-02-07  Bruno Haible  <bruno@clisp.org>
39965
39966         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
39967         failure behaviour.
39968
39969 2009-02-07  Jim Meyering  <meyering@redhat.com>
39970
39971         regex: avoid compilation failure with upcoming gcc-4.4
39972         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
39973         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
39974         "... error: integer overflow in preprocessor expression".
39975
39976 2009-02-05  Ben Pfaff  <blp@gnu.org>
39977
39978         Fix link errors on Windows when close module is used.
39979         * modules/close: Add $(LIB_CLOSE) to Link section.
39980         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
39981         $(LIB_CLOSE) on Windows.
39982
39983 2009-02-05  Jim Meyering  <meyering@redhat.com>
39984
39985         still avoid unused-parameter warnings, but do it cleanly
39986         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
39987         (get_fs_usage): Cast to void instead.
39988         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
39989         (dev_from_mount_options, read_file_system_list): Cast to void.
39990         Prompted by Bruno Haible.
39991
39992 2009-02-04  Jim Meyering  <meyering@redhat.com>
39993
39994         fsusage.c: correct copyright year
39995         * lib/fsusage.c: Reflect year in which the change is pushed into
39996
39997         avoid misc. warnings
39998         * lib/fsusage.c (UNUSED_PARAM): Define.
39999         (get_fs_usage): Mark parameter "disk" as unused.
40000         * lib/getugroups.c (getgrent): Use "void" in prototype.
40001         * lib/mountlist.c: Mark unused parameters.
40002         (read_file_system_list): Declare a local with "const".
40003         * lib/nanosleep.c (getnow): Declare static.
40004         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
40005
40006         dirfd: set errno upon failure
40007         * lib/dirfd.c: Include <errno.h>.
40008         Set errno to ENOTSUP when returning -1.
40009         * modules/dirfd (Depends-on): Add errno.
40010         Suggested by John Kodis <kodis@comcast.net>.
40011
40012 2009-02-01  Bruno Haible  <bruno@clisp.org>
40013
40014         Don't assume sizeof (long) >= sizeof (void *).
40015         * lib/memcmp.c: Include stdint.h.
40016         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
40017         srcp2 to 'const byte *'.
40018         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
40019         types to uintptr_t.
40020         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
40021         * modules/memcmp (Depends-on): Add stdint.
40022         Reported by Ozkan Sezer <sezeroz@gmail.com>.
40023
40024 2009-01-30  Eric Blake  <ebb9@byu.net>
40025
40026         fix more require-before-expand issues
40027         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
40028         expand, AC_PROG_AWK.
40029         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
40030
40031 2009-01-28  Eric Blake  <ebb9@byu.net>
40032
40033         version-etc: use consistent URL formatting
40034         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
40035         Improve formatting.  Use fputs for string without %.
40036
40037 2009-01-28  Jim Meyering  <meyering@redhat.com>
40038
40039         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
40040         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
40041         "underquoted definition of NAME" from autoconf-2.59.
40042
40043 2009-01-28  Bruno Haible  <bruno@clisp.org>
40044
40045         * doc/gnulib.texi: Add "Obsolete modules" to index.
40046
40047 2009-01-28  Jim Meyering  <meyering@redhat.com>
40048
40049         useless-if-before-free: recognize more variants
40050         * build-aux/useless-if-before-free: Also recognize e.g.,
40051         if (NULL != p) free (p);
40052
40053 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
40054
40055         test-getaddrinfo: skip (don't fail) this test when there's no network
40056         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
40057         on the presumption that it means you lack network access.
40058
40059 2009-01-26  Jim Meyering  <meyering@redhat.com>
40060
40061         fflush: avoid warnings on modern systems
40062         * lib/fflush.c (rpl_fflush): Move declarations of locals,
40063         pos and result, into scopes where they're used.
40064
40065 2009-01-26  Eric Blake  <ebb9@byu.net>
40066
40067         Silence warning reintroduced by recent extensions patch.
40068         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
40069         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
40070         autoconf.
40071
40072         Backport improved autoconf semantics of AC_DEFUN_ONCE.
40073         * m4/00gnulib.m4: New file.
40074         * gnulib-tool (func_get_filelist): Always use it.
40075         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
40076         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
40077
40078 2009-01-25  Bruno Haible  <bruno@clisp.org>
40079
40080         Make test-quotearg work on MacOS X and AIX.
40081         * tests/test-quotearg.sh: New file.
40082         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
40083         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
40084         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
40085         include <libintl.h>.
40086         (fake_locale): Remove variable.
40087         (gettext, dgettext, dcgettext): Remove functions.
40088         (main): Instead of setting a fake locale, set a real locale. Call
40089         textdomain and bindtextdomain.
40090         * modules/quotearg-tests (Files): Add the new files.
40091         (Depends-on): Add gettext, setenv, unsetenv.
40092         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
40093         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
40094         Augment TESTS_ENVIRONMENT.
40095
40096 2009-01-25  Bruno Haible  <bruno@clisp.org>
40097
40098         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
40099         fr_FR.ISO8859-1 locale on MacOS X.
40100         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
40101         ja_JP.eucJP locale on MacOS X.
40102         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
40103         zh_CN.GB18030 locale on MacOS X.
40104
40105 2009-01-25  Bruno Haible  <bruno@clisp.org>
40106
40107         Avoid link errors on MacOS X 10.3.
40108         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
40109         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
40110
40111 2009-01-25  Bruno Haible  <bruno@clisp.org>
40112
40113         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
40114         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
40115         * modules/pipe (Files): Remove m4/posix_spawn.m4.
40116         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
40117         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
40118         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
40119         posix_spawnattr_init, posix_spawnattr_setsigmask,
40120         posix_spawnattr_setflags, posix_spawnattr_destroy.
40121
40122         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
40123         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
40124         * modules/execute (Files): Remove m4/posix_spawn.m4.
40125         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
40126         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
40127         posix_spawnattr_init, posix_spawnattr_setsigmask,
40128         posix_spawnattr_setflags, posix_spawnattr_destroy.
40129
40130 2009-01-25  Bruno Haible  <bruno@clisp.org>
40131
40132         * lib/glthread/threadlib.c: Include <stdlib.h>.
40133
40134 2009-01-25  Bruno Haible  <bruno@clisp.org>
40135
40136         * lib/glthread/threadlib.c (dummy): New declaration.
40137
40138 2009-01-25  Bruno Haible  <bruno@clisp.org>
40139
40140         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
40141         multibyte characters also for the GB18030 encoding. Don't crash when
40142         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
40143
40144 2009-01-25  Bruno Haible  <bruno@clisp.org>
40145
40146         Avoid redefining 'struct random_data' on OSF/1 5.1.
40147         * lib/stdlib.in.h: Include <random.h> if it exists.
40148         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
40149         HAVE_RANDOM_H. Include <random.h> when testing whether
40150         'struct random_data' exists.
40151         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
40152
40153 2009-01-25  Bruno Haible  <bruno@clisp.org>
40154
40155         Don't install charset.alias on MacOS X >= 10.3.
40156         * lib/localcharset.c (DARWIN7): New macro.
40157         (get_charset_aliases): Hardcode the result for Darwin7.
40158         * modules/localcharset (install-exec-local): Don't install
40159         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
40160
40161 2009-01-25  Bruno Haible  <bruno@clisp.org>
40162
40163         Don't install charset.alias on mingw and Cygwin.
40164         * modules/localcharset (install-exec-local): Don't install
40165         charset.alias on mingw and Cygwin, if the file does not yet exist.
40166         The result for these platforms is hardcoded in localcharset.c.
40167
40168 2009-01-25  Bruno Haible  <bruno@clisp.org>
40169
40170         Make it possible again to use AC_GNU_SOURCE together with gnulib.
40171         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
40172         before requiring AC_USE_SYSTEM_EXTENSIONS.
40173
40174 2009-01-25  Jim Meyering  <meyering@redhat.com>
40175
40176         c-strtod: avoid warnings
40177         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
40178         "assignment discards qualifiers from pointer target type" warnings.
40179
40180 2009-01-24  Bruno Haible  <bruno@clisp.org>
40181
40182         Add support for non-UTF-8 locales on MacOS X.
40183         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
40184         canonical encodings. For Darwin 7 and newer, don't map traditional
40185         encodings to UTF-8.
40186         Reported by Vincent Lefevre <vincent@vinc17.org>
40187         at <http://savannah.gnu.org/bugs/?25235>.
40188
40189 2009-01-24  Bruno Haible  <bruno@clisp.org>
40190
40191         * doc/gnulib.texi (Obsolete modules): New section.
40192         Reported by Mike Frysinger <vapier@gentoo.org>.
40193
40194 2009-01-24  Bruno Haible  <bruno@clisp.org>
40195
40196         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
40197         (%.dvi): New rule.
40198
40199 2009-01-24  Bruno Haible  <bruno@clisp.org>
40200
40201         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
40202         Reported by Eric Blake.
40203
40204 2009-01-24  Bruno Haible  <bruno@clisp.org>
40205
40206         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
40207         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
40208         Reported by Gary V. Vaughan <gary@gnu.org>.
40209
40210 2009-01-24  Bruno Haible  <bruno@clisp.org>
40211
40212         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
40213
40214 2009-01-23  Bruno Haible  <bruno@clisp.org>
40215
40216         Make c-strtod, c-strtold usable in libraries.
40217         * lib/c-strtod.c: Include string.h instead of xalloc.h.
40218         (C_STRTOD): Call strdup instead of xstrdup.
40219         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
40220         * modules/c-strtold (Depends-on): Likewise.
40221         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
40222         * NEWS: Mention the change.
40223         Reported by Michael Gold <mgold@ncf.ca>.
40224
40225 2009-01-23  Jim Meyering  <meyering@redhat.com>
40226
40227         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
40228         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
40229         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
40230
40231 2009-01-23  Simon Josefsson  <simon@josefsson.org>
40232
40233         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
40234         GNU CoreUtils.
40235         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
40236         * modules/version-etc (Description): Update.
40237
40238 2009-01-22  Bruno Haible  <bruno@clisp.org>
40239
40240         Cache the C locale object.
40241         * lib/c-strtod.c (c_locale_cache): New variable.
40242         (c_locale): New function.
40243         (C_STRTOD): Use it, and don't call freelocale.
40244         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
40245         Suggested by Paolo Bonzini.
40246
40247 2009-01-21  Bruno Haible  <bruno@clisp.org>
40248
40249         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
40250         conditions other than overflow.
40251
40252 2009-01-21  Bruno Haible  <bruno@clisp.org>
40253
40254         * lib/c-strtod.c: Include errno.h.
40255         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
40256         value from STRTOD_L and STRTOD.
40257
40258 2009-01-21  Bruno Haible  <bruno@clisp.org>
40259         and Jim Meyering  <meyering@redhat.com>
40260
40261         nanosleep: skip configure test (fail it) for apple universal builds
40262         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
40263         universal builds, assume that nanosleep does not work.
40264         * modules/nanosleep (Depends-on): Add multiarch.
40265
40266         mktime: skip configure test (fail it) for apple universal builds
40267         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
40268         universal builds, assume that mktime does not work.
40269         * modules/mktime (Depends-on): Add multiarch.
40270
40271 2009-01-21  Eric Blake  <ebb9@byu.net>
40272
40273         multiarch: avoid expand-before-require warning
40274         * modules/multiarch (configure.ac): Require, rather than expand,
40275         gl_MULTIARCH.
40276         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
40277         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
40278         enforce that all clients require it.  Partial reversion of
40279         2008-12-29 patch.
40280
40281         error: avoid expand-before-require warning
40282         * modules/errno (configure.ac): Require, rather than expand,
40283         gl_HEADER_ERRNO_H.
40284         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
40285         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
40286         enforce that all clients require it.
40287
40288         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
40289         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
40290         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
40291         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
40292
40293 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
40294
40295         Revert:
40296         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
40297
40298         regex: do not depend on obsolete modules.
40299         * modules/regex: Remove memcmp and memmove.
40300
40301 2009-01-20  Bruno Haible  <bruno@clisp.org>
40302
40303         Make the 'link' module link on Windows NT 4.
40304         * lib/link.c (_WIN32_WINNT): Don't define.
40305         (CreateHardLinkFuncType): New type.
40306         (CreateHardLinkFunc, initialized): New variables.
40307         (initialize): New function.
40308         (link): Invoke CreateHardLink indirectly through the function pointer.
40309
40310 2009-01-20  Bruno Haible  <bruno@clisp.org>
40311
40312         Fix compilation failure on mingw.
40313         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
40314
40315 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
40316
40317         * doc/c-strtod.texi: Mention a couple of restrictions.
40318
40319 2009-01-20  Jim Meyering  <meyering@redhat.com>
40320
40321         gettimeofday: move more declarations out of functions
40322         * lib/gettimeofday.c: Move extern declarations of tzset and
40323         gmtime out of containing functions.  Prompted by Bruno Haible.
40324
40325 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
40326
40327         regex: do not depend on obsolete modules.
40328         * modules/regex: Remove memcmp and memmove.
40329
40330 2009-01-19  Bruno Haible  <bruno@clisp.org>
40331
40332         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
40333         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
40334         gl_BIGENDIAN, not AC_C_BIGENDIAN.
40335         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
40336         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
40337
40338 2009-01-19  Bruno Haible  <bruno@clisp.org>
40339
40340         * tests/test-link.c: Include <errno.h>.
40341         (main): Exit with code 77 when a hard link cannot be created due to
40342         the file system.
40343         * tests/test-link.sh: Skip test when a hard link cannot be created due
40344         to the file system.
40345         Suggested by Eric Blake.
40346
40347 2009-01-19  Martin Lambers  <marlam@marlam.de>
40348
40349         * modules/link-tests: New file.
40350         * tests/test-link.sh: New file.
40351         * tests/test-link.c: New file.
40352
40353 2009-01-19  Eric Blake  <ebb9@byu.net>
40354
40355         doc: mention another function added in cygwin 1.7.0
40356         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
40357         Another new function in cygwin 1.7.
40358
40359 2009-01-19  Bruno Haible  <bruno@clisp.org>
40360
40361         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
40362         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
40363         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
40364         gl_BIGENDIAN, not AC_C_BIGENDIAN.
40365         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40366         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
40367         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
40368         * m4/md4.m4 (gl_MD4): Likewise.
40369         * m4/md5.m4 (gl_MD5): Likewise.
40370         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
40371         * m4/sha1.m4 (gl_SHA1): Likewise.
40372         * m4/sha256.m4 (gl_SHA256): Likewise.
40373         * m4/sha512.m4 (gl_SHA512): Likewise.
40374
40375 2009-01-19  Bruno Haible  <bruno@clisp.org>
40376
40377         * modules/uniname/uniname-tests (Depends-on): Add progname.
40378         * tests/uniname/test-uninames.c: Include progname.h.
40379         (main): Call set_program_name.
40380
40381         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
40382         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
40383         (main): Call set_program_name.
40384
40385         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
40386         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
40387         (main): Call set_program_name.
40388
40389         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
40390         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
40391         (main): Call set_program_name.
40392
40393         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
40394         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
40395         (main): Call set_program_name.
40396
40397         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
40398         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
40399         (main): Call set_program_name.
40400
40401         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
40402         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
40403         (main): Call set_program_name.
40404
40405         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
40406         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
40407         (main): Call set_program_name.
40408
40409         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
40410         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
40411         (main): Call set_program_name.
40412
40413 2009-01-19  Eric Blake  <ebb9@byu.net>
40414
40415         test-unistd: test previous patch
40416         * tests/test-unistd.c: Test *_FILENO macros.
40417
40418         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
40419         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40420         Guarantee a definition.
40421         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
40422         * modules/unistd-safer (Depends-on): Add dependency on unistd.
40423         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
40424         * lib/dup-safer.c (STDERR_FILENO): Likewise.
40425         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40426         Likewise.
40427         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
40428         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
40429         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
40430         Likewise.
40431         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
40432         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
40433         (STDERR_FILENO): Likewise.
40434         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
40435         (STDERR_FILENO): Likewise.
40436         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
40437         (STDERR_FILENO): Likewise.
40438         Reported by Elbert Pol.
40439
40440 2009-01-19  Eric Blake  <ebb9@byu.net>
40441
40442         doc: mention more functions added in cygwin 1.7.0
40443         * doc/posix-functions/abort.texi (abort): Update wording related
40444         to cygwin.
40445         * doc/posix-functions/daylight.texi (daylight): Likewise.
40446         * doc/posix-functions/optarg.texi (optarg): Likewise.
40447         * doc/posix-functions/optarg.texi (opterr): Likewise.
40448         * doc/posix-functions/optarg.texi (optind): Likewise.
40449         * doc/posix-functions/optarg.texi (optopt): Likewise.
40450         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
40451         worked in 1.5.x, and was withdrawn in 1.7.
40452         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
40453         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
40454         cygwin versions.
40455         * doc/posix-functions/perror.texi (perror): Likewise.
40456         * doc/posix-functions/printf.texi (printf): Likewise.
40457         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
40458         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
40459         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
40460         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
40461         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
40462         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
40463         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
40464         Likewise.
40465         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
40466         Likewise.
40467         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
40468         this function.
40469         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
40470         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
40471         Likewise.
40472         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
40473         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
40474         * doc/posix-functions/confstr.texi (confstr): Likewise.
40475         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
40476         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
40477         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
40478         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
40479         * doc/posix-functions/fputws.texi (fputws): Likewise.
40480         * doc/posix-functions/fwide.texi (fwide): Likewise.
40481         * doc/posix-functions/getwc.texi (getwc): Likewise.
40482         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
40483         * doc/posix-functions/putwc.texi (putwc): Likewise.
40484         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
40485         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
40486         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
40487         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
40488         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
40489         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
40490         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
40491         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
40492         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
40493         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
40494         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
40495
40496 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
40497
40498         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
40499         * lib/ioctl.c: Include <sys/ioctl.h>.
40500
40501 2009-01-19  Simon Josefsson  <simon@josefsson.org>
40502
40503         * modules/getdate-tests (Depends-on): Add progname.
40504         * tests/test-getdate.c: Use progname module, to avoid link errors
40505         on non-glibc systems.
40506
40507 2009-01-18  Simon Josefsson  <simon@josefsson.org>
40508
40509         * modules/filenamecat-tests (Depends-on): Add progname.
40510         * modules/fstrcmp-tests (Depends-on): Likewise.
40511
40512         * tests/test-filenamecat.c: Use progname module, to avoid link
40513         errors on non-glibc systems.
40514         * tests/test-fstrcmp.c: Likewise.
40515
40516 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
40517
40518         gettimeofday: avoid warning: nested extern declaration of 'localtime'
40519         * lib/gettimeofday.c: Move extern declaration out of function.
40520
40521 2009-01-18  Bruno Haible  <bruno@clisp.org>
40522
40523         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
40524         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
40525         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
40526
40527 2009-01-18  Bruno Haible  <bruno@clisp.org>
40528
40529         * lib/strftime.c (MEMPCPY): Remove unused macro.
40530         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
40531
40532 2009-01-18  Martin Lambers  <marlam@marlam.de>
40533
40534         New module 'link'.
40535         * lib/unistd.in.h (link): New declaration.
40536         * lib/link.c: New file.
40537         * m4/link.m4: New file.
40538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
40539         HAVE_LINK.
40540         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
40541         * modules/link: New file.
40542         * doc/posix-functions/link.texi: Mention the new module.
40543
40544 2009-01-18  Bruno Haible  <bruno@clisp.org>
40545
40546         * tests/test-avltree_list.c (main): Call set_program_name.
40547         * tests/test-avltree_oset.c (main): Likewise.
40548         * tests/test-obstack-printf.c: Include progname.h.
40549         (main): Call set_program_name.
40550         * tests/test-quotearg.c: Include progname.h.
40551         (main): Call set_program_name.
40552         * tests/test-xmemdup0.c: Include progname.h.
40553         (main): Call set_program_name.
40554
40555 2009-01-18  Bruno Haible  <bruno@clisp.org>
40556
40557         New module 'alphasort'.
40558         * lib/dirent.in.h (alphasort): New declaration.
40559         * lib/alphasort.c: New file, from glibc with modifications.
40560         * m4/alphasort.m4: New file.
40561         * modules/alphasort: New file.
40562         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
40563         HAVE_ALPHASORT.
40564         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
40565         HAVE_ALPHASORT.
40566         * doc/posix-functions/alphasort.texi: Mention the new module and the
40567         portability problems.
40568
40569 2009-01-18  Bruno Haible  <bruno@clisp.org>
40570
40571         New module 'scandir'.
40572         * lib/dirent.in.h (scandir): New declaration.
40573         * lib/scandir.c: New file, from glibc with modifications.
40574         * m4/scandir.m4: New file.
40575         * modules/scandir: New file.
40576         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
40577         HAVE_SCANDIR.
40578         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
40579         HAVE_SCANDIR.
40580         * doc/posix-functions/scandir.texi: Mention the new module and the
40581         portability problems.
40582
40583 2009-01-17  Bruno Haible  <bruno@clisp.org>
40584
40585         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
40586         Update documentation.
40587         (func_remove_suffix): Escape all dots in the suffix. Update
40588         documentation.
40589         (func_filter_filelist): Update documentation.
40590         Reported by Ralf Wildenhues.
40591
40592 2009-01-17  Bruno Haible  <bruno@clisp.org>
40593
40594         * modules/dprintf-posix-tests: New file.
40595         * tests/test-dprintf-posix.sh: New file.
40596         * tests/test-dprintf-posix.c: New file.
40597
40598         New modules 'dprintf', 'dprintf-posix'.
40599         * lib/stdio.in.h (dprintf): New declaration.
40600         * lib/dprintf.c: New file.
40601         * m4/dprintf.m4: New file.
40602         * m4/dprintf-posix.m4: New file.
40603         * modules/dprintf: New file.
40604         * modules/dprintf-posix: New file.
40605         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
40606         HAVE_DPRINTF, REPLACE_DPRINTF.
40607         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
40608         HAVE_DPRINTF, REPLACE_DPRINTF.
40609         * doc/posix-functions/dprintf.texi: Mention the new modules.
40610
40611 2009-01-17  Bruno Haible  <bruno@clisp.org>
40612
40613         * modules/vdprintf-posix-tests: New file.
40614         * tests/test-vdprintf-posix.sh: New file.
40615         * tests/test-vdprintf-posix.c: New file.
40616
40617         New modules 'vdprintf', 'vdprintf-posix'.
40618         * lib/stdio.in.h (vdprintf): New declaration.
40619         * lib/vdprintf.c: New file.
40620         * m4/vdprintf.m4: New file.
40621         * m4/vdprintf-posix.m4: New file.
40622         * modules/vdprintf: New file.
40623         * modules/vdprintf-posix: New file.
40624         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
40625         HAVE_VDPRINTF, REPLACE_VDPRINTF.
40626         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
40627         HAVE_VDPRINTF, REPLACE_VDPRINTF.
40628         * doc/posix-functions/vdprintf.texi: Mention the new modules.
40629
40630 2009-01-17  Bruno Haible  <bruno@clisp.org>
40631
40632         Fix replacement of fopen on mingw.
40633         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
40634         mingw.
40635
40636 2009-01-17  Bruno Haible  <bruno@clisp.org>
40637
40638         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
40639         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
40640
40641 2009-01-17  Bruno Haible  <bruno@clisp.org>
40642
40643         Avoid test-fflush2.sh failure on mingw.
40644         * tests/test-fflush2.c: Include binary-io.h.
40645         (main): Put standard input into binary mode.
40646         * modules/fflush-tests (Depends-on): Add binary-io.
40647
40648 2009-01-17  Bruno Haible  <bruno@clisp.org>
40649
40650         * lib/wchar.in.h: In another particular situation, include only the
40651         system's <wchar.h> file.
40652         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
40653         Reported by Albert Chin-A-Young <china@thewrittenword.com>
40654         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
40655
40656 2009-01-17  Bruno Haible  <bruno@clisp.org>
40657
40658         Support for stripping executables in --enable-relocatable.
40659         * build-aux/install-reloc: Expect one more argument, or an environment
40660         variable RELOC_STRIP_PROG. If set, strip the destination program and
40661         its wrapper.
40662         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
40663         RELOC_STRIP_PROG.
40664         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
40665         to set RELOCATABLE_STRIP.
40666         * NEWS: Mention the new Makefile requirement.
40667
40668 2009-01-17  Bruno Haible  <bruno@clisp.org>
40669
40670         * build-aux/install-reloc: Remove debugging information left over by
40671         C compiler on MacOS X.
40672
40673 2009-01-17  Bruno Haible  <bruno@clisp.org>
40674
40675         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
40676         * lib/progreloc.c (find_executable): Fix type of pointer passed to
40677         _NSGetExecutablePath.
40678
40679 2009-01-16  Jim Meyering  <meyering@redhat.com>
40680
40681         strerror: avoid warnings about discarding "const"
40682         * lib/strerror.c (rpl_strerror): Instead of returning a const
40683         string from each and every "case", use a variable, and add a single
40684         cast after the switch.
40685
40686 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
40687
40688         * lib/arpa_inet.in.h: Add extern "C" block for C++.
40689
40690 2009-01-16  Bruno Haible  <bruno@clisp.org>
40691
40692         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
40693         array initializer syntax that also works in C++ mode.
40694         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40695
40696 2009-01-16  Jim Meyering  <meyering@redhat.com>
40697
40698         poll: suppress a warning
40699         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
40700         to ignore "...unsigned expression < 0 is always false" warnings.
40701
40702 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
40703
40704         poll: remove declarations of unused variables
40705         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
40706         sockbuf and optlen.
40707
40708 2009-01-15  Bruno Haible  <bruno@clisp.org>
40709
40710         Make fflush-after-ungetc POSIX compliant on BSD systems.
40711         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
40712         (clear_ungetc_buffer): Implement also for other systems.
40713         (rpl_fflush): On glibc systems, invoke
40714         clear_ungetc_buffer_preserving_position. Otherwise, invoke
40715         clear_ungetc_buffer after fetching the stream's position, not before.
40716
40717 2009-01-15  Bruno Haible  <bruno@clisp.org>
40718
40719         Make fflush-after-ungetc POSIX compliant on glibc systems.
40720         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
40721         after ungetc.
40722         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
40723         (rpl_fflush): On glibc systems, simply call the system's fflush
40724         function after clearing the ungetc buffer.
40725         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
40726         Instead, lseek only to the end of file, then use the system's fseeko
40727         for the rest. On glibc systems, reset the EOF indicator bit.
40728
40729 2009-01-15  Jim Meyering  <meyering@redhat.com>
40730
40731         openmp.m4: revert quote-adding change, for portability to older autoconf
40732         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
40733         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
40734         Simon Josefsson noticed the problem when using autoconf-2.61.
40735
40736 2009-01-15  Bruno Haible  <bruno@clisp.org>
40737
40738         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
40739         * tests/test-fflush2.c (ASSERT): Always fail.
40740         (main): Add two tests for fflush() after ungetc(), taking into account
40741         the Austin Group's clarification.
40742         Suggested by Eric Blake.
40743
40744 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
40745
40746         mktime.m4: remove K&R-style function prototypes
40747         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
40748         for the Sun C++ compiler.
40749
40750 2009-01-14  Bruno Haible  <bruno@clisp.org>
40751
40752         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
40753         while including <wchar.h>.
40754         * lib/wchar.in.h: In two particular situations on HP-UX, include only
40755         the system's <wchar.h> file.
40756         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40757
40758 2009-01-14  Bruno Haible  <bruno@clisp.org>
40759
40760         * m4/csharp.m4: Don't mention gettext on the serial number line.
40761         * m4/csharpexec.m4: Likewise.
40762         * m4/eaccess.m4: Likewise.
40763         * m4/javaexec.m4: Likewise.
40764         * m4/sig_atomic_t.m4: Likewise.
40765         * m4/tmpdir.m4: Likewise.
40766         * m4/intldir.m4: Bump gettext version.
40767         * m4/lib-ld.m4: Likewise.
40768
40769 2009-01-14  Bruno Haible  <bruno@clisp.org>
40770
40771         * lib/progname.c (set_program_name): Add more comments.
40772         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40773
40774 2009-01-14  Simon Josefsson  <simon@josefsson.org>
40775
40776         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
40777         were sys/stat.h does not define it.
40778
40779 2009-01-14  Jim Meyering  <meyering@redhat.com>
40780
40781         many *.m4 files: improve m4 quoting
40782         99% of this change was performed by running the following commands:
40783         git ls-files | grep '\.m4$' | xargs perl -pi \
40784           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
40785           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
40786           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
40787           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
40788         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
40789         The remainder were to add Copyright dates, increment serial numbers,
40790         undo some changes in comments, exclude m4/intl.m4, and add quotes
40791         around the "1" in ",1" where the unusual spacing prohibited the
40792         above regexps from doing the job.  For more details, see
40793         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
40794         * m4/acl.m4: Modified.
40795         * m4/afs.m4: Likewise.
40796         * m4/alloca.m4: Likewise.
40797         * m4/argp.m4: Likewise.
40798         * m4/argz.m4: Likewise.
40799         * m4/atexit.m4: Likewise.
40800         * m4/bison-i18n.m4: Likewise.
40801         * m4/bison.m4: Likewise.
40802         * m4/byteswap.m4: Likewise.
40803         * m4/c-stack.m4: Likewise.
40804         * m4/c-strtod.m4: Likewise.
40805         * m4/calloc.m4: Likewise.
40806         * m4/canonicalize-lgpl.m4: Likewise.
40807         * m4/chown.m4: Likewise.
40808         * m4/clock_time.m4: Likewise.
40809         * m4/codeset.m4: Likewise.
40810         * m4/copy-file.m4: Likewise.
40811         * m4/csharp.m4: Likewise.
40812         * m4/csharpcomp.m4: Likewise.
40813         * m4/csharpexec.m4: Likewise.
40814         * m4/d-ino.m4: Likewise.
40815         * m4/d-type.m4: Likewise.
40816         * m4/dirfd.m4: Likewise.
40817         * m4/double-slash-root.m4: Likewise.
40818         * m4/eaccess.m4: Likewise.
40819         * m4/eealloc.m4: Likewise.
40820         * m4/environ.m4: Likewise.
40821         * m4/errno_h.m4: Likewise.
40822         * m4/euidaccess.m4: Likewise.
40823         * m4/execute.m4: Likewise.
40824         * m4/fatal-signal.m4: Likewise.
40825         * m4/fchdir.m4: Likewise.
40826         * m4/fcntl_h.m4: Likewise.
40827         * m4/fileblocks.m4: Likewise.
40828         * m4/filenamecat.m4: Likewise.
40829         * m4/findprog.m4: Likewise.
40830         * m4/flexmember.m4: Likewise.
40831         * m4/fnmatch.m4: Likewise.
40832         * m4/fopen.m4: Likewise.
40833         * m4/fpending.m4: Likewise.
40834         * m4/fprintf-posix.m4: Likewise.
40835         * m4/free.m4: Likewise.
40836         * m4/frexp.m4: Likewise.
40837         * m4/frexpl.m4: Likewise.
40838         * m4/fsusage.m4: Likewise.
40839         * m4/ftruncate.m4: Likewise.
40840         * m4/gc-camellia.m4: Likewise.
40841         * m4/gc-random.m4: Likewise.
40842         * m4/gc.m4: Likewise.
40843         * m4/getaddrinfo.m4: Likewise.
40844         * m4/getcwd-abort-bug.m4: Likewise.
40845         * m4/getcwd-path-max.m4: Likewise.
40846         * m4/getdate.m4: Likewise.
40847         * m4/getdomainname.m4: Likewise.
40848         * m4/getgroups.m4: Likewise.
40849         * m4/gethostname.m4: Likewise.
40850         * m4/gethrxtime.m4: Likewise.
40851         * m4/getline.m4: Likewise.
40852         * m4/getloadavg.m4: Likewise.
40853         * m4/getndelim2.m4: Likewise.
40854         * m4/getpass.m4: Likewise.
40855         * m4/gettext.m4: Likewise.
40856         * m4/gettime.m4: Likewise.
40857         * m4/gettimeofday.m4: Likewise.
40858         * m4/gnulib-common.m4: Likewise.
40859         * m4/group-member.m4: Likewise.
40860         * m4/host-os.m4: Likewise.
40861         * m4/iconv.m4: Likewise.
40862         * m4/iconv_open.m4: Likewise.
40863         * m4/inet_ntop.m4: Likewise.
40864         * m4/inet_pton.m4: Likewise.
40865         * m4/inline.m4: Likewise.
40866         * m4/intldir.m4: Likewise.
40867         * m4/intlmacosx.m4: Likewise.
40868         * m4/intmax.m4: Likewise.
40869         * m4/intmax_t.m4: Likewise.
40870         * m4/inttypes.m4: Likewise.
40871         * m4/inttypes_h.m4: Likewise.
40872         * m4/inttypes-pri.m4: Likewise.
40873         * m4/isapipe.m4: Likewise.
40874         * m4/isnand.m4: Likewise.
40875         * m4/isnanf.m4: Likewise.
40876         * m4/isnanl.m4: Likewise.
40877         * m4/javacomp.m4: Likewise.
40878         * m4/javaexec.m4: Likewise.
40879         * m4/jm-winsz1.m4: Likewise.
40880         * m4/jm-winsz2.m4: Likewise.
40881         * m4/lchown.m4: Likewise.
40882         * m4/lcmessage.m4: Likewise.
40883         * m4/ldexpl.m4: Likewise.
40884         * m4/lib-ld.m4: Likewise.
40885         * m4/lib-link.m4: Likewise.
40886         * m4/libsigsegv.m4: Likewise.
40887         * m4/link-follow.m4: Likewise.
40888         * m4/localcharset.m4: Likewise.
40889         * m4/locale-fr.m4: Likewise.
40890         * m4/locale-ja.m4: Likewise.
40891         * m4/locale-tr.m4: Likewise.
40892         * m4/locale-zh.m4: Likewise.
40893         * m4/lock.m4: Likewise.
40894         * m4/longlong.m4: Likewise.
40895         * m4/ls-mntd-fs.m4: Likewise.
40896         * m4/lstat.m4: Likewise.
40897         * m4/malloc.m4: Likewise.
40898         * m4/mathl.m4: Likewise.
40899         * m4/mbrtowc.m4: Likewise.
40900         * m4/mbstate_t.m4: Likewise.
40901         * m4/mbswidth.m4: Likewise.
40902         * m4/memchr.m4: Likewise.
40903         * m4/memcmp.m4: Likewise.
40904         * m4/memcpy.m4: Likewise.
40905         * m4/memmem.m4: Likewise.
40906         * m4/memmove.m4: Likewise.
40907         * m4/mempcpy.m4: Likewise.
40908         * m4/memrchr.m4: Likewise.
40909         * m4/memset.m4: Likewise.
40910         * m4/minmax.m4: Likewise.
40911         * m4/mkdir-slash.m4: Likewise.
40912         * m4/mkdtemp.m4: Likewise.
40913         * m4/mktime.m4: Likewise.
40914         * m4/mmap-anon.m4: Likewise.
40915         * m4/mountlist.m4: Likewise.
40916         * m4/nanosleep.m4: Likewise.
40917         * m4/nls.m4: Likewise.
40918         * m4/nocrash.m4: Likewise.
40919         * m4/open.m4: Likewise.
40920         * m4/openat.m4: Likewise.
40921         * m4/openmp.m4: Likewise.
40922         * m4/pathmax.m4: Likewise.
40923         * m4/perl.m4: Likewise.
40924         * m4/physmem.m4: Likewise.
40925         * m4/pipe.m4: Likewise.
40926         * m4/po.m4: Likewise.
40927         * m4/poll.m4: Likewise.
40928         * m4/posixtm.m4: Likewise.
40929         * m4/posixver.m4: Likewise.
40930         * m4/printf-frexp.m4: Likewise.
40931         * m4/printf-frexpl.m4: Likewise.
40932         * m4/printf-posix.m4: Likewise.
40933         * m4/printf-posix-rpl.m4: Likewise.
40934         * m4/printf.m4: Likewise.
40935         * m4/progtest.m4: Likewise.
40936         * m4/putenv.m4: Likewise.
40937         * m4/readline.m4: Likewise.
40938         * m4/readlink.m4: Likewise.
40939         * m4/readutmp.m4: Likewise.
40940         * m4/realloc.m4: Likewise.
40941         * m4/regex.m4: Likewise.
40942         * m4/relocatable.m4: Likewise.
40943         * m4/relocatable-lib.m4: Likewise.
40944         * m4/rename-dest-slash.m4: Likewise.
40945         * m4/rename.m4: Likewise.
40946         * m4/rmdir-errno.m4: Likewise.
40947         * m4/rmdir.m4: Likewise.
40948         * m4/roundf.m4: Likewise.
40949         * m4/roundl.m4: Likewise.
40950         * m4/rpmatch.m4: Likewise.
40951         * m4/save-cwd.m4: Likewise.
40952         * m4/selinux-selinux-h.m4: Likewise.
40953         * m4/setenv.m4: Likewise.
40954         * m4/settime.m4: Likewise.
40955         * m4/sig2str.m4: Likewise.
40956         * m4/sig_atomic_t.m4: Likewise.
40957         * m4/signalblocking.m4: Likewise.
40958         * m4/signbit.m4: Likewise.
40959         * m4/sigpipe.m4: Likewise.
40960         * m4/sockets.m4: Likewise.
40961         * m4/sockpfaf.m4: Likewise.
40962         * m4/st_dm_mode.m4: Likewise.
40963         * m4/stat-time.m4: Likewise.
40964         * m4/stdbool.m4: Likewise.
40965         * m4/stdint.m4: Likewise.
40966         * m4/stdint_h.m4: Likewise.
40967         * m4/stpcpy.m4: Likewise.
40968         * m4/stpncpy.m4: Likewise.
40969         * m4/strcase.m4: Likewise.
40970         * m4/strchrnul.m4: Likewise.
40971         * m4/strcspn.m4: Likewise.
40972         * m4/strdup.m4: Likewise.
40973         * m4/strftime.m4: Likewise.
40974         * m4/strndup.m4: Likewise.
40975         * m4/strnlen.m4: Likewise.
40976         * m4/strpbrk.m4: Likewise.
40977         * m4/strptime.m4: Likewise.
40978         * m4/strsep.m4: Likewise.
40979         * m4/strtod.m4: Likewise.
40980         * m4/strtoimax.m4: Likewise.
40981         * m4/strtok_r.m4: Likewise.
40982         * m4/strtol.m4: Likewise.
40983         * m4/strtoll.m4: Likewise.
40984         * m4/strtoul.m4: Likewise.
40985         * m4/strtoull.m4: Likewise.
40986         * m4/strtoumax.m4: Likewise.
40987         * m4/strverscmp.m4: Likewise.
40988         * m4/threadlib.m4: Likewise.
40989         * m4/timegm.m4: Likewise.
40990         * m4/tm_gmtoff.m4: Likewise.
40991         * m4/tmpdir.m4: Likewise.
40992         * m4/tmpfile.m4: Likewise.
40993         * m4/tzset.m4: Likewise.
40994         * m4/uintmax_t.m4: Likewise.
40995         * m4/unlinkdir.m4: Likewise.
40996         * m4/unlocked-io.m4: Likewise.
40997         * m4/uptime.m4: Likewise.
40998         * m4/userspec.m4: Likewise.
40999         * m4/utimbuf.m4: Likewise.
41000         * m4/utime.m4: Likewise.
41001         * m4/utimes-null.m4: Likewise.
41002         * m4/utimes.m4: Likewise.
41003         * m4/vararrays.m4: Likewise.
41004         * m4/vasnprintf.m4: Likewise.
41005         * m4/vfprintf-posix.m4: Likewise.
41006         * m4/vprintf-posix.m4: Likewise.
41007         * m4/wait-process.m4: Likewise.
41008         * m4/wchar_t.m4: Likewise.
41009         * m4/wint_t.m4: Likewise.
41010         * m4/write-any-file.m4: Likewise.
41011         * m4/yield.m4: Likewise.
41012
41013 2009-01-13  Bruno Haible  <bruno@clisp.org>
41014
41015         Avoid test-copy-file.sh failures when ACL support insufficient.
41016         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
41017         TESTS_ENVIRONMENT.
41018         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
41019         Reported by Jim Meyering.
41020
41021 2009-01-13  Bruno Haible  <bruno@clisp.org>
41022
41023         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
41024         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
41025         * modules/unistdio/u8-printf-parse (Files): Likewise.
41026         * modules/unistdio/u32-printf-parse (Files): Likewise.
41027         * modules/unistdio/ulc-printf-parse (Files): Likewise.
41028
41029 2009-01-13  Simon Josefsson  <simon@josefsson.org>
41030
41031         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
41032         and m4/inttypes_h.m4 too.
41033
41034 2009-01-12  Eric Blake  <ebb9@byu.net>
41035
41036         tests: IRIX 6.2 cc can't compile -0.0 into .data
41037         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
41038         rather than at compile-time.
41039         * tests/test-floorl.c (minus_zero): Likewise.
41040         * tests/test-frexpl.c (minus_zero): Likewise.
41041         * tests/test-isnan.c (minus_zerol): Likewise.
41042         * tests/test-isnanl.h (minus_zero): Likewise.
41043         * tests/test-ldexpl.c (minus_zero): Likewise.
41044         * tests/test-roundl.c (minus_zero): Likewise.
41045         * tests/test-signbit.c (minus_zerol): Likewise.
41046         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41047         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41048         * tests/test-truncl.c (minus_zero): Likewise.
41049         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41050         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41051         Reported by Tom G. Christensen and Nelson H. F. Beebe.
41052
41053 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41054
41055         regex: fix glibc bug 9697
41056         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
41057         handling.
41058
41059 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41060
41061         regex: fix glibc bug 697
41062         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
41063         being NULL also if there are no backreferences.
41064
41065 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
41066
41067         regex: merge glibc changes
41068         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
41069         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
41070         re_string_skip_chars, re_string_reconstruct): Likewise.
41071         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
41072
41073 2009-01-07  Jim Meyering  <meyering@redhat.com>
41074
41075         poll: filter through cppi
41076         * lib/poll.c: Indent cpp directives to reflect nesting.
41077
41078 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
41079
41080         poll: don't return uninitialized
41081         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
41082
41083 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
41084
41085         avoid compile failure on AIX 6.1
41086         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
41087         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
41088
41089 2009-01-04  Jim Meyering  <meyering@redhat.com>
41090
41091         remove duplicate inclusion of <stdio.h>
41092         * tests/test-fprintf-posix.c: Likewise.
41093         * tests/test-printf-posix.c: Likewise.
41094         * tests/test-snprintf-posix.c: Likewise.
41095         * tests/test-sprintf-posix.c: Likewise.
41096         * tests/test-vasprintf-posix.c: Likewise.
41097         * tests/test-vfprintf-posix.c: Likewise.
41098         * tests/test-vprintf-posix.c: Likewise.
41099         * tests/test-vsnprintf-posix.c: Likewise.
41100         * tests/test-vsprintf-posix.c: Likewise.
41101
41102 2009-01-03  Jim Meyering  <meyering@redhat.com>
41103
41104         gnulib-tool: fix sed-based filtering
41105         * gnulib-tool (func_filter_filelist): Remove extra backslash
41106         in sed_fff_filter definition.
41107
41108 2009-01-02  Jim Meyering  <meyering@redhat.com>
41109
41110         strftime: avoid compilation failure on Solaris 2.6
41111         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
41112         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
41113         Don't #define mbrlen or mbsinit, since now they're guaranteed to
41114         be available.  Reported by Tom G. Christensen.  Details in
41115         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
41116
41117 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41118             Bruno Haible  <bruno@clisp.org>
41119
41120         Speed up gnulib-tool by doing more string processing through shell
41121         built-ins.
41122         * gnulib-tool (fast_func_append): New variable.
41123         (func_remove_prefix, func_remove_suffix): New functions.
41124         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
41125         (func_filter_filelist): New function.
41126         (func_get_dependencies): Use func_remove_suffix instead of sed.
41127         (func_get_automake_snippet): Use func_filter_filelist instead of a
41128         subshell and sed invocation.
41129
41130 2009-01-01  Bruno Haible  <bruno@clisp.org>
41131
41132         Fix a security bug.
41133         * gnulib-tool (func_import, import, update): Don't allow the characters
41134         '"', '$', '`', '\' in macro arguments that become part of commands that
41135         are evaluated.
41136
41137 2009-01-01  Bruno Haible  <bruno@clisp.org>
41138
41139         * gnulib-tool (func_reset_sigpipe): Add more comments.
41140
41141 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41142
41143         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
41144         func_emit_tests_Makefile_am, func_import): Abort loops early if we
41145         already know the answer.
41146
41147 2009-01-01  Jim Meyering  <meyering@redhat.com>
41148
41149         * lib/version-etc.c (version_etc_va): Update copyright year.
41150
41151 2008-12-30  Bruno Haible  <bruno@clisp.org>
41152
41153         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
41154         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
41155         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
41156
41157 2008-12-29  Eric Blake  <ebb9@byu.net>
41158
41159         multiarch: avoid autoconf AC_REQUIRE bug
41160         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
41161         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
41162         2.63 and older.
41163         Reported by Bruno Haible, and analyzed in
41164         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
41165
41166 2008-12-29  Bruno Haible  <bruno@clisp.org>
41167
41168         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
41169         files in subdirectories correctly.
41170         Reported by Ralf Wildenhues.
41171
41172 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41173
41174         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
41175         rather than 'join FILE -', for Solaris join.
41176
41177 2008-12-29  Bruno Haible  <bruno@clisp.org>
41178
41179         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
41180         quoting.
41181         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
41182         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
41183         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
41184         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
41185         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
41186         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
41187         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
41188         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
41189         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
41190         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
41191         * m4/nls.m4 (AM_NLS): Likewise.
41192         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
41193         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
41194         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
41195         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
41196         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
41197         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
41198         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
41199         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
41200         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
41201         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
41202         * m4/xsize.m4 (gl_XSIZE): Likewise.
41203         Suggested by Jim Meyering.
41204
41205 2008-11-17  Bruce Korb  <bkorb@gnu.org>
41206
41207         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
41208         * lib/parse-duration.c: use a switch instead of cascading if's.
41209
41210 2008-12-29  Eric Blake  <ebb9@byu.net>
41211
41212         wchar.h: supply WEOF on Irix 5.3
41213         * lib/wchar.in.h (wint_t): Also supply WEOF.
41214         * lib/wctype.in.h (wint_t): Likewise.
41215         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
41216         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
41217         Reported by Tom G. Christensen.
41218
41219 2008-12-26  Bruno Haible  <bruno@clisp.org>
41220
41221         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
41222         i486, i586, i686.
41223
41224 2008-12-26  Bruno Haible  <bruno@clisp.org>
41225
41226         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
41227
41228 2008-12-26  Bruno Haible  <bruno@clisp.org>
41229
41230         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
41231         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
41232         not __STDC_CONSTANT_MACROS.
41233         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
41234
41235 2008-12-25  Bruno Haible  <bruno@clisp.org>
41236
41237         Add support for universal builds to vasnprintf.
41238         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
41239         universal builds, guess no.
41240         * modules/vasnprintf-posix (Depends-on): Add multiarch.
41241         * modules/vasprintf-posix (Depends-on): Likewise.
41242         * modules/fprintf-posix (Depends-on): Likewise.
41243         * modules/vfprintf-posix (Depends-on): Likewise.
41244         * modules/snprintf-posix (Depends-on): Likewise.
41245         * modules/vsnprintf-posix (Depends-on): Likewise.
41246         * modules/sprintf-posix (Depends-on): Likewise.
41247         * modules/vsprintf-posix (Depends-on): Likewise.
41248         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41249         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41250         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41251         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41252         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41253         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41254         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41255
41256         Add support for universal builds to <inttypes.h>.
41257         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
41258         _SCNu64_PREFIX): In Apple
41259         universal builds, define directly, using _LP64.
41260         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
41261         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
41262         * modules/inttypes (Depends-on): Add multiarch.
41263         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
41264
41265         Add support for universal builds to <stdint.h>.
41266         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
41267         universal builds, define directly, using _LP64.
41268         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
41269         Apple universal builds, don't test for the size and suffix of ptrdiff_t
41270         and size_t.
41271         * modules/stdint (Depends-on): Add multiarch.
41272         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
41273
41274         New module 'multiarch'.
41275         * modules/multiarch: New file.
41276         * m4/multiarch.m4: New file.
41277
41278 2008-12-25  Bruno Haible  <bruno@clisp.org>
41279
41280         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
41281
41282 2008-12-25  Bruno Haible  <bruno@clisp.org>
41283
41284         * modules/btowc (License): Relicense under LGPLv2+.
41285         * modules/mbsinit (License): Likewise.
41286         * modules/mbrtowc (License): Likewise.
41287         * modules/wcrtomb (License): Likewise.
41288         * modules/streq (License): Likewise.
41289         Reported by David Lutterkort <lutter@redhat.com>.
41290
41291 2008-12-23  Bruno Haible  <bruno@clisp.org>
41292
41293         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
41294
41295 2008-12-23  Bruno Haible  <bruno@clisp.org>
41296
41297         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
41298         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
41299         GETADDRINFO_LIB, not in LIBS.
41300         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
41301         * modules/canon-host (Link): Likewise.
41302         * NEWS: Mention the change.
41303         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
41304         GETADDRINFO_LIB.
41305
41306 2008-12-22  Bruno Haible  <bruno@clisp.org>
41307
41308         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
41309         * doc/posix-functions/iswalpha_l.texi: Likewise.
41310         * doc/posix-functions/iswblank_l.texi: Likewise.
41311         * doc/posix-functions/iswcntrl_l.texi: Likewise.
41312         * doc/posix-functions/iswctype_l.texi: Likewise.
41313         * doc/posix-functions/iswdigit_l.texi: Likewise.
41314         * doc/posix-functions/iswgraph_l.texi: Likewise.
41315         * doc/posix-functions/iswlower_l.texi: Likewise.
41316         * doc/posix-functions/iswprint_l.texi: Likewise.
41317         * doc/posix-functions/iswpunct_l.texi: Likewise.
41318         * doc/posix-functions/iswspace_l.texi: Likewise.
41319         * doc/posix-functions/iswupper_l.texi: Likewise.
41320         * doc/posix-functions/iswxdigit_l.texi: Likewise.
41321         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
41322         * doc/posix-functions/open_wmemstream.texi: Likewise.
41323         * doc/posix-functions/swscanf.texi: Likewise.
41324         * doc/posix-functions/towctrans_l.texi: Likewise.
41325         * doc/posix-functions/towlower.texi: Likewise.
41326         * doc/posix-functions/towlower_l.texi: Likewise.
41327         * doc/posix-functions/towupper.texi: Likewise.
41328         * doc/posix-functions/towupper_l.texi: Likewise.
41329         * doc/posix-functions/vfwprintf.texi: Likewise.
41330         * doc/posix-functions/vfwscanf.texi: Likewise.
41331         * doc/posix-functions/vswscanf.texi: Likewise.
41332         * doc/posix-functions/vwprintf.texi: Likewise.
41333         * doc/posix-functions/vwscanf.texi: Likewise.
41334         * doc/posix-functions/wcpcpy.texi: Likewise.
41335         * doc/posix-functions/wcpncpy.texi: Likewise.
41336         * doc/posix-functions/wcscasecmp.texi: Likewise.
41337         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
41338         * doc/posix-functions/wcscoll_l.texi: Likewise.
41339         * doc/posix-functions/wcsdup.texi: Likewise.
41340         * doc/posix-functions/wcsncasecmp.texi: Likewise.
41341         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
41342         * doc/posix-functions/wcsnlen.texi: Likewise.
41343         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41344         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
41345         * doc/posix-functions/wctrans_l.texi: Likewise.
41346         * doc/posix-functions/wctype_l.texi: Likewise.
41347         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
41348         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
41349         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
41350         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
41351         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
41352         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
41353         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
41354         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
41355         * doc/glibc-functions/wcschrnul.texi: Likewise.
41356         * doc/glibc-functions/wcsftime_l.texi: Likewise.
41357         * doc/glibc-functions/wcstod_l.texi: Likewise.
41358         * doc/glibc-functions/wcstof_l.texi: Likewise.
41359         * doc/glibc-functions/wcstol_l.texi: Likewise.
41360         * doc/glibc-functions/wcstold_l.texi: Likewise.
41361         * doc/glibc-functions/wcstoll_l.texi: Likewise.
41362         * doc/glibc-functions/wcstoq.texi: Likewise.
41363         * doc/glibc-functions/wcstoul_l.texi: Likewise.
41364         * doc/glibc-functions/wcstoull_l.texi: Likewise.
41365         * doc/glibc-functions/wcstouq.texi: Likewise.
41366         * doc/glibc-functions/wmempcpy.texi: Likewise.
41367
41368 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
41369             Eric Blake  <ebb9@byu.net>
41370             Paolo Bonzini  <bonzini@gnu.org>
41371             Bruno Haible  <bruno@clisp.org>
41372
41373         Make c-stack work on Haiku.
41374         * lib/c-stack.c (SA_ONSTACK): Define fallback.
41375         (c_stack_action): Use SA_ONSTACK flag.
41376
41377 2008-12-22  Bruno Haible  <bruno@clisp.org>
41378
41379         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
41380
41381 2008-12-22  Bruno Haible  <bruno@clisp.org>
41382
41383         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
41384         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
41385         being overridden.
41386         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
41387         New macros.
41388         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
41389         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
41390         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
41391         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
41392
41393 2008-12-22  Bruno Haible  <bruno@clisp.org>
41394
41395         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
41396         from test code.
41397
41398 2008-12-22  Eric Blake  <ebb9@byu.net>
41399
41400         Avoid gcc warnings on cygwin.
41401         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
41402         Avoid unused variable.
41403         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
41404         Likewise.
41405
41406 2008-12-22  Bruno Haible  <bruno@clisp.org>
41407
41408         Remove HAVE_MBRTOWC conditionals.
41409         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
41410         (mbscasecmp): Assume mbrtowc function.
41411         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
41412         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
41413         * lib/mbschr.c: Include mbuiter.h unconditionally.
41414         (mbschr): Assume mbrtowc function.
41415         * lib/mbscspn.c: Include mbuiter.h unconditionally.
41416         (mbscspn): Assume mbrtowc function.
41417         * lib/mbslen.c: Include mbuiter.h unconditionally.
41418         (mbslen): Assume mbrtowc function.
41419         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
41420         (mbsncasecmp): Assume mbrtowc function.
41421         * lib/mbsnlen.c: Include mbiter.h unconditionally.
41422         (mbsnlen): Assume mbrtowc function.
41423         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
41424         (mbspbrk): Assume mbrtowc function.
41425         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
41426         (mbspcasecmp): Assume mbrtowc function.
41427         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
41428         (mbsrchr): Assume mbrtowc function.
41429         * lib/mbssep.c: Include mbuiter.h unconditionally.
41430         (mbssep): Assume mbrtowc function.
41431         * lib/mbsspn.c: Include mbuiter.h unconditionally.
41432         (mbsspn): Assume mbrtowc function.
41433         * lib/mbsstr.c: Include mbuiter.h unconditionally.
41434         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
41435         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
41436         (mbstok_r): Assume mbrtowc function.
41437         * lib/propername.c: Include mbuiter.h unconditionally.
41438         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
41439         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
41440         (trim2): Assume mbrtowc function.
41441         * lib/mbswidth.c (mbsinit): Remove fallback definition.
41442         (mbsnwidth): Assume mbrtowc function.
41443         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
41444         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
41445         fallback definitions.
41446         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
41447
41448 2008-12-22  Bruno Haible  <bruno@clisp.org>
41449
41450         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
41451
41452 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
41453
41454         * modules/regex: Request emulations for the mb*/wc* functions we need.
41455         * m4/regex.m4: Don't look for those functions here.
41456         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
41457
41458 2008-12-22  Bruno Haible  <bruno@clisp.org>
41459
41460         * modules/fnmatch (Depends-on): Remove duplicated dependency.
41461
41462 2008-12-21  Bruno Haible  <bruno@clisp.org>
41463
41464         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
41465         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
41466         (Include): Remove conditionalization.
41467         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
41468         (Include): Remove conditionalization.
41469         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
41470         (Include): Remove conditionalization.
41471         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
41472         * m4/mbfile.m4 (gl_MBFILE): Likewise.
41473         * NEWS: Mention the change.
41474         Reported by Alan Hourihane <alanh@fairlite.co.uk>
41475         via Sergey Poznyakoff <gray@gnu.org.ua>.
41476
41477 2008-12-21  Bruno Haible  <bruno@clisp.org>
41478
41479         * MODULES.html.sh (Extended multibyte and wide character utilities
41480         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
41481         wcrtomb, wcsrtombs.
41482         (Support for systems lacking POSIX:2008): Add accept, bind, close,
41483         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
41484         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
41485         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
41486
41487 2008-12-21  Bruno Haible  <bruno@clisp.org>
41488
41489         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
41490
41491 2008-12-21  Bruno Haible  <bruno@clisp.org>
41492
41493         * modules/wcsnrtombs-tests: New file.
41494         * tests/test-wcsnrtombs1.sh: New file.
41495         * tests/test-wcsnrtombs2.sh: New file.
41496         * tests/test-wcsnrtombs3.sh: New file.
41497         * tests/test-wcsnrtombs4.sh: New file.
41498         * tests/test-wcsnrtombs.c: New file.
41499
41500         New module 'wcsnrtombs'.
41501         * lib/wchar.in.h (wcsnrtombs): New declaration.
41502         * lib/wcsnrtombs.c: New file.
41503         * lib/wcsrtombs-state.c: New file.
41504         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
41505         (internal_state): Remove variable.
41506         * m4/wcsnrtombs.m4: New file.
41507         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
41508         compilation units.
41509         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
41510         HAVE_WCSNRTOMBS.
41511         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
41512         HAVE_WCSNRTOMBS.
41513         * modules/wcsnrtombs: New file.
41514         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
41515         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
41516
41517 2008-12-21  Bruno Haible  <bruno@clisp.org>
41518
41519         * modules/wcsrtombs-tests: New file.
41520         * tests/test-wcsrtombs1.sh: New file.
41521         * tests/test-wcsrtombs2.sh: New file.
41522         * tests/test-wcsrtombs3.sh: New file.
41523         * tests/test-wcsrtombs4.sh: New file.
41524         * tests/test-wcsrtombs.c: New file.
41525
41526         New module 'wcsrtombs'.
41527         * lib/wchar.in.h (wcsrtombs): New declaration.
41528         * lib/wcsrtombs.c: New file.
41529         * m4/wcsrtombs.m4: New file.
41530         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
41531         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
41532         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
41533         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
41534         * modules/wcsrtombs: New file.
41535         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
41536         bugs.
41537
41538 2008-12-21  Bruno Haible  <bruno@clisp.org>
41539
41540         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
41541         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
41542         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
41543         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
41544         if not correct.
41545         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
41546         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
41547         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
41548         m4/locale-zh.m4, m4/codeset.m4.
41549         * doc/posix-functions/wcrtomb.texi: Document the bug.
41550
41551 2008-12-21  Bruno Haible  <bruno@clisp.org>
41552
41553         Work around a btowc() bug on IRIX 6.5.
41554         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
41555         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
41556         REPLACE_WTOBC if not.
41557         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
41558         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
41559         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
41560
41561 2008-12-21  Bruno Haible  <bruno@clisp.org>
41562
41563         * modules/wcrtomb-tests: New file.
41564         * tests/test-wcrtomb.sh: New file.
41565         * tests/test-wcrtomb.c: New file.
41566
41567         New module 'wcrtomb'.
41568         * lib/wchar.in.h (wcrtomb): New declaration.
41569         * lib/wcrtomb.c: New file.
41570         * m4/wcrtomb.m4: New file.
41571         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
41572         HAVE_WCRTOMB.
41573         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
41574         HAVE_WCRTOMB.
41575         * modules/wcrtomb: New file.
41576         * doc/posix-functions/wcrtomb.texi: Mention the new module.
41577
41578 2008-12-21  Bruno Haible  <bruno@clisp.org>
41579
41580         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
41581         * modules/mbsrtowcs (Files): Likewise.
41582         * modules/wctob (Files): Likewise.
41583         * modules/c-strcase-tests (Files): Likewise.
41584         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
41585         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
41586         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
41587         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
41588         * modules/vasnprintf-posix-tests (Files): Likewise.
41589
41590 2008-12-21  William Pursell  <bill.pursell@gmail.com>
41591
41592         gitlog-to-changelog: pass all command-line arguments to git-log
41593         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
41594         it is sometimes convenient to filter the commits in various ways.
41595         gitlog-to-changelog only allows --since to specify a start date,
41596         but git-log itself supports many other filtering mechanisms.
41597         At the moment, I want to filter by branch name.  Rather than
41598         adding a --branch option to gitlog-to-changelog, it seems more
41599         flexible to simply pass all options directly to git-log and let
41600         git do the work.  Notice that this effectively makes --since a
41601         redundant option for gitlog-to-changelog, but removing it would
41602         require current usage to change since calls would then require
41603         an additional '--'.
41604
41605 2008-12-21  Bruno Haible  <bruno@clisp.org>
41606
41607         * modules/mbsnrtowcs-tests: New file.
41608         * tests/test-mbsnrtowcs1.sh: New file.
41609         * tests/test-mbsnrtowcs2.sh: New file.
41610         * tests/test-mbsnrtowcs3.sh: New file.
41611         * tests/test-mbsnrtowcs4.sh: New file.
41612         * tests/test-mbsnrtowcs.c: New file.
41613
41614         New module 'mbsnrtowcs'.
41615         * lib/wchar.in.h (mbsnrtowcs): New declaration.
41616         * lib/mbsnrtowcs.c: New file.
41617         * lib/mbsrtowcs-state.c: New file.
41618         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
41619         (internal_state): Remove variable.
41620         * m4/mbsnrtowcs.m4: New file.
41621         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
41622         compilation units.
41623         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
41624         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
41625         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
41626         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
41627         * modules/mbsnrtowcs: New file.
41628         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
41629         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
41630         portability problem.
41631
41632 2008-12-21  Bruno Haible  <bruno@clisp.org>
41633
41634         Work around mbsrtowcs bug.
41635         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
41636         (gl_FUNC_MBSRTOWCS): Invoke it.
41637         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
41638         m4/locale-zh.m4.
41639         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
41640
41641 2008-12-21  Bruno Haible  <bruno@clisp.org>
41642
41643         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
41644
41645 2008-12-21  Bruno Haible  <bruno@clisp.org>
41646
41647         Update doc for AIX.
41648         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
41649         16-bit wchar_t type.
41650         * doc/posix-functions/btowc.texi: Likewise.
41651         * doc/posix-functions/fgetwc.texi: Likewise.
41652         * doc/posix-functions/fgetws.texi: Likewise.
41653         * doc/posix-functions/fputwc.texi: Likewise.
41654         * doc/posix-functions/fputws.texi: Likewise.
41655         * doc/posix-functions/fwide.texi: Likewise.
41656         * doc/posix-functions/fwprintf.texi: Likewise.
41657         * doc/posix-functions/fwscanf.texi: Likewise.
41658         * doc/posix-functions/getwchar.texi: Likewise.
41659         * doc/posix-functions/getwc.texi: Likewise.
41660         * doc/posix-functions/iswalnum.texi: Likewise.
41661         * doc/posix-functions/iswalpha.texi: Likewise.
41662         * doc/posix-functions/iswblank.texi: Likewise.
41663         * doc/posix-functions/iswcntrl.texi: Likewise.
41664         * doc/posix-functions/iswctype.texi: Likewise.
41665         * doc/posix-functions/iswdigit.texi: Likewise.
41666         * doc/posix-functions/iswgraph.texi: Likewise.
41667         * doc/posix-functions/iswlower.texi: Likewise.
41668         * doc/posix-functions/iswprint.texi: Likewise.
41669         * doc/posix-functions/iswpunct.texi: Likewise.
41670         * doc/posix-functions/iswspace.texi: Likewise.
41671         * doc/posix-functions/iswupper.texi: Likewise.
41672         * doc/posix-functions/iswxdigit.texi: Likewise.
41673         * doc/posix-functions/mbrtowc.texi: Likewise.
41674         * doc/posix-functions/mbsrtowcs.texi: Likewise.
41675         * doc/posix-functions/mbstowcs.texi: Likewise.
41676         * doc/posix-functions/mbtowc.texi: Likewise.
41677         * doc/posix-functions/putwchar.texi: Likewise.
41678         * doc/posix-functions/putwc.texi: Likewise.
41679         * doc/posix-functions/swprintf.texi: Likewise.
41680         * doc/posix-functions/tolower.texi: Likewise.
41681         * doc/posix-functions/toupper.texi: Likewise.
41682         * doc/posix-functions/towctrans.texi: Likewise.
41683         * doc/posix-functions/ungetwc.texi: Likewise.
41684         * doc/posix-functions/vswprintf.texi: Likewise.
41685         * doc/posix-functions/wcrtomb.texi: Likewise.
41686         * doc/posix-functions/wcscat.texi: Likewise.
41687         * doc/posix-functions/wcschr.texi: Likewise.
41688         * doc/posix-functions/wcscmp.texi: Likewise.
41689         * doc/posix-functions/wcscoll.texi: Likewise.
41690         * doc/posix-functions/wcscpy.texi: Likewise.
41691         * doc/posix-functions/wcscspn.texi: Likewise.
41692         * doc/posix-functions/wcsftime.texi: Likewise.
41693         * doc/posix-functions/wcslen.texi: Likewise.
41694         * doc/posix-functions/wcsncat.texi: Likewise.
41695         * doc/posix-functions/wcsncmp.texi: Likewise.
41696         * doc/posix-functions/wcsncpy.texi: Likewise.
41697         * doc/posix-functions/wcspbrk.texi: Likewise.
41698         * doc/posix-functions/wcsrchr.texi: Likewise.
41699         * doc/posix-functions/wcsrtombs.texi: Likewise.
41700         * doc/posix-functions/wcsspn.texi: Likewise.
41701         * doc/posix-functions/wcsstr.texi: Likewise.
41702         * doc/posix-functions/wcstod.texi: Likewise.
41703         * doc/posix-functions/wcstof.texi: Likewise.
41704         * doc/posix-functions/wcstoimax.texi: Likewise.
41705         * doc/posix-functions/wcstok.texi: Likewise.
41706         * doc/posix-functions/wcstold.texi: Likewise.
41707         * doc/posix-functions/wcstoll.texi: Likewise.
41708         * doc/posix-functions/wcstol.texi: Likewise.
41709         * doc/posix-functions/wcstombs.texi: Likewise.
41710         * doc/posix-functions/wcstoull.texi: Likewise.
41711         * doc/posix-functions/wcstoul.texi: Likewise.
41712         * doc/posix-functions/wcstoumax.texi: Likewise.
41713         * doc/posix-functions/wcswidth.texi: Likewise.
41714         * doc/posix-functions/wcsxfrm.texi: Likewise.
41715         * doc/posix-functions/wctob.texi: Likewise.
41716         * doc/posix-functions/wctomb.texi: Likewise.
41717         * doc/posix-functions/wctrans.texi: Likewise.
41718         * doc/posix-functions/wctype.texi: Likewise.
41719         * doc/posix-functions/wcwidth.texi: Likewise.
41720         * doc/posix-functions/wmemchr.texi: Likewise.
41721         * doc/posix-functions/wmemcmp.texi: Likewise.
41722         * doc/posix-functions/wmemcpy.texi: Likewise.
41723         * doc/posix-functions/wmemmove.texi: Likewise.
41724         * doc/posix-functions/wmemset.texi: Likewise.
41725         * doc/posix-functions/wprintf.texi: Likewise.
41726         * doc/posix-functions/wscanf.texi: Likewise.
41727
41728 2008-12-21  Bruno Haible  <bruno@clisp.org>
41729
41730         Update doc for HP-UX 11.11.
41731         * doc/posix-functions/btowc.texi: Clarify that the function is missing
41732         in HP-UX version 11.00, not in all versions of HP-UX 11.
41733         * doc/posix-functions/fwide.texi: Likewise.
41734         * doc/posix-functions/fwprintf.texi: Likewise.
41735         * doc/posix-functions/fwscanf.texi: Likewise.
41736         * doc/posix-functions/inet_ntop.texi: Likewise.
41737         * doc/posix-functions/inet_pton.texi: Likewise.
41738         * doc/posix-functions/mbrlen.texi: Likewise.
41739         * doc/posix-functions/mbrtowc.texi: Likewise.
41740         * doc/posix-functions/mbsinit.texi: Likewise.
41741         * doc/posix-functions/mbsrtowcs.texi: Likewise.
41742         * doc/posix-functions/swprintf.texi: Likewise.
41743         * doc/posix-functions/swscanf.texi: Likewise.
41744         * doc/posix-functions/towctrans.texi: Likewise.
41745         * doc/posix-functions/vfwprintf.texi: Likewise.
41746         * doc/posix-functions/vswprintf.texi: Likewise.
41747         * doc/posix-functions/vwprintf.texi: Likewise.
41748         * doc/posix-functions/wcrtomb.texi: Likewise.
41749         * doc/posix-functions/wcsrtombs.texi: Likewise.
41750         * doc/posix-functions/wcsstr.texi: Likewise.
41751         * doc/posix-functions/wctob.texi: Likewise.
41752         * doc/posix-functions/wctrans.texi: Likewise.
41753         * doc/posix-functions/wmemchr.texi: Likewise.
41754         * doc/posix-functions/wmemcmp.texi: Likewise.
41755         * doc/posix-functions/wmemcpy.texi: Likewise.
41756         * doc/posix-functions/wmemmove.texi: Likewise.
41757         * doc/posix-functions/wmemset.texi: Likewise.
41758         * doc/posix-functions/wprintf.texi: Likewise.
41759         * doc/posix-functions/wscanf.texi: Likewise.
41760
41761 2008-12-21  Bruno Haible  <bruno@clisp.org>
41762
41763         Work around a portability problem.
41764         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
41765         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
41766
41767 2008-12-20  Bruno Haible  <bruno@clisp.org>
41768
41769         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
41770         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
41771         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
41772         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
41773         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
41774
41775         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
41776         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
41777         set.
41778         (GNULIB_defined_mbstate_t): New macro.
41779         (mbsinit): Redefine if REPLACE_MBSINIT is set.
41780         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
41781         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
41782         reuses the system's mbrtowc function but works around the bugs.
41783         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
41784         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
41785         macros.
41786         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
41787         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
41788         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
41789         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
41790         REPLACE_MBSINIT if mbsinit needs to be overridden.
41791         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
41792         REPLACE_MBSINIT, REPLACE_MBRTOWC.
41793         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
41794         REPLACE_MBSINIT, REPLACE_MBRTOWC.
41795         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
41796         m4/locale-zh.m4.
41797         (Depends): Add mbsinit.
41798         * modules/mbsinit (Depends): Add mbrtowc.
41799         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
41800
41801 2008-12-20  Bruno Haible  <bruno@clisp.org>
41802
41803         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
41804         so that there are no conversion errors on AIX.
41805         * tests/test-mbsrtowcs.c (main): LIkewise.
41806
41807 2008-12-20  Bruno Haible  <bruno@clisp.org>
41808
41809         Work around wctob bug on Solaris <= 9.
41810         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
41811         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
41812         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
41813         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
41814         * modules/wctob (Files): Add m4/locale-fr.m4.
41815         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
41816
41817 2008-12-20  Bruno Haible  <bruno@clisp.org>
41818
41819         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
41820         /dev/null.
41821         * tests/test-select-in.sh: Likewise.
41822         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41823
41824 2008-12-20  Bruno Haible  <bruno@clisp.org>
41825
41826         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
41827         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
41828         Cygwin 1.5.x.
41829
41830 2008-12-20  Bruno Haible  <bruno@clisp.org>
41831
41832         Ensure mbstate_t is defined on HP-UX 11.11.
41833         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
41834         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
41835         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
41836         AC_USE_SYSTEM_EXTENSIONS.
41837         * modules/fnmatch (Depends-on): Add extensions.
41838         * modules/mbrlen (Depends-on): Likewise.
41839         * modules/mbrtowc (Depends-on): Likewise.
41840         * modules/mbsinit (Depends-on): Likewise.
41841         * modules/mbsrtowcs (Depends-on): Likewise.
41842         * modules/mbswidth (Depends-on): Likewise.
41843         * modules/quotearg (Depends-on): Likewise.
41844         * modules/strftime (Depends-on): Likewise.
41845
41846 2008-12-20  Bruno Haible  <bruno@clisp.org>
41847
41848         Ensure wctob is declared on IRIX 6.5.
41849         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
41850         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
41851         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
41852         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
41853         of HAVE_WCTOB.
41854         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
41855         HAVE_WCTOB.
41856         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
41857
41858 2008-12-19  Bruno Haible  <bruno@clisp.org>
41859
41860         * modules/mbsrtowcs-tests: New file.
41861         * tests/test-mbsrtowcs1.sh: New file.
41862         * tests/test-mbsrtowcs2.sh: New file.
41863         * tests/test-mbsrtowcs3.sh: New file.
41864         * tests/test-mbsrtowcs4.sh: New file.
41865         * tests/test-mbsrtowcs.c: New file.
41866
41867         New module 'mbsrtowcs'.
41868         * lib/wchar.in.h (mbsrtowcs): New declaration.
41869         * lib/mbsrtowcs.c: New file.
41870         * m4/mbsrtowcs.m4: New file.
41871         * modules/mbsrtowcs: New file.
41872         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
41873         HAVE_MBSRTOWCS.
41874         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
41875         HAVE_MBSRTOWCS.
41876         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
41877
41878 2008-12-19  Bruno Haible  <bruno@clisp.org>
41879
41880         New module 'mbrlen'.
41881         * lib/wchar.in.h (mbrlen): New declaration.
41882         * lib/mbrlen.c: New file.
41883         * m4/mbrlen.m4: New file.
41884         * modules/mbrlen: New file.
41885         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
41886         HAVE_MBRLEN.
41887         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
41888         HAVE_MBRLEN.
41889         * doc/posix-functions/mbrlen.texi: Document the new module.
41890
41891 2008-12-19  Bruno Haible  <bruno@clisp.org>
41892
41893         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
41894         * modules/mbrtowc (Depends-on): Add verify.
41895         Suggested by Paul Eggert.
41896
41897 2008-12-18  Bruno Haible  <bruno@clisp.org>
41898
41899         * modules/mbsinit-tests: New file.
41900         * tests/test-mbsinit.sh: New file.
41901         * tests/test-mbsinit.c: New file.
41902
41903 2008-12-18  Bruno Haible  <bruno@clisp.org>
41904
41905         * modules/mbrtowc-tests: New file.
41906         * tests/test-mbrtowc1.sh: New file.
41907         * tests/test-mbrtowc2.sh: New file.
41908         * tests/test-mbrtowc3.sh: New file.
41909         * tests/test-mbrtowc4.sh: New file.
41910         * tests/test-mbrtowc.c: New file.
41911
41912         New module 'mbrtowc'.
41913         * lib/wchar.in.h (mbstate_t): Override when the system does not have
41914         mbsinit and mbrtowc.
41915         (mbrtowc): New declaration.
41916         * lib/mbrtowc.c: New file.
41917         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
41918         * modules/mbrtowc: New file.
41919         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
41920         HAVE_MBRTOWC.
41921         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
41922         HAVE_MBRTOWC.
41923         * doc/posix-functions/mbrtowc.texi: Document the new module.
41924
41925 2008-12-18  Bruno Haible  <bruno@clisp.org>
41926
41927         New module 'wctob'.
41928         * lib/wchar.in.h (wctob): New declaration.
41929         * lib/wctob.c: New file.
41930         * m4/wctob.m4: New file.
41931         * modules/wctob: New file.
41932         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
41933         HAVE_WCTOB.
41934         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
41935         * doc/posix-functions/wctob.texi: Document the new module.
41936
41937 2008-12-18  Bruno Haible  <bruno@clisp.org>
41938
41939         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
41940         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
41941
41942 2008-12-18  Simon Josefsson  <simon@josefsson.org>
41943
41944         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
41945         G. Christensen" <tgc@jupiterrise.com>.
41946
41947         * lib/flock.c: Need to include errno.h.  Reported by "Tom
41948         G. Christensen" <tgc@jupiterrise.com>.
41949
41950         * lib/flock.c: Need to include string.h.  Reported by "Tom
41951         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
41952         <ebb9@byu.net>.
41953
41954 2008-12-18  Bruno Haible  <bruno@clisp.org>
41955
41956         * m4/locale-ja.m4: New file, from GNU gettext.
41957
41958 2008-12-17  Bruno Haible  <bruno@clisp.org>
41959
41960         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
41961         Suggested by Eric Blake.
41962
41963 2008-12-17  Bruno Haible  <bruno@clisp.org>
41964
41965         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
41966
41967 2008-12-17  Bruno Haible  <bruno@clisp.org>
41968
41969         * lib/mbsinit.c: Include verify.h. Verify an assumption.
41970         * modules/mbsinit (Depends-on): Add verify.
41971         Suggested by Paul Eggert.
41972
41973 2008-12-17  Bruno Haible  <bruno@clisp.org>
41974
41975         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
41976         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
41977         gl_FUNC_MBRTOWC.
41978         * m4/mbiter.m4 (gl_MBITER): LIkewise.
41979         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
41980         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
41981         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
41982         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
41983         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
41984         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
41985         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
41986         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
41987         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
41988         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
41989         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
41990         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
41991         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
41992         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
41993         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41994         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
41995         * modules/trim (configure.ac): Likewise.
41996
41997 2008-12-17  Bruno Haible  <bruno@clisp.org>
41998
41999         * modules/btowc-tests: New file.
42000         * tests/test-btowc1.sh: New file.
42001         * tests/test-btowc2.sh: New file.
42002         * tests/test-btowc.c: New file.
42003
42004         New module 'btowc'.
42005         * lib/wchar.in.h (btowc): New declaration.
42006         * lib/btowc.c: New file.
42007         * m4/btowc.m4: New file.
42008         * modules/btowc: New file.
42009         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
42010         HAVE_BTOWC.
42011         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
42012         * doc/posix-functions/btowc.texi: Document the new module.
42013
42014 2008-12-17  Bruno Haible  <bruno@clisp.org>
42015
42016         New module 'mbsinit'.
42017         * lib/wchar.in.h (mbsinit): New declaration.
42018         * lib/mbsinit.c: New file.
42019         * m4/mbsinit.m4: New file.
42020         * modules/mbsinit: New file.
42021         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
42022         HAVE_MBSINIT.
42023         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
42024         HAVE_MBSINIT.
42025         * doc/posix-functions/mbsinit.texi: Document the new module.
42026
42027 2008-12-16  Bruno Haible  <bruno@clisp.org>
42028
42029         * lib/unistd.in.h: Add comment.
42030         * tests/test-environ.c: Don't include <stdlib.h>.
42031
42032 2008-12-16  Bruno Haible  <bruno@clisp.org>
42033
42034         * lib/parse-duration.h (parse_duration): Document return value
42035         convention.
42036         * lib/parse-duration.c: Include specification header first. Add
42037         comments.
42038         (_): Remove macro.
42039         (parse_year_month_day, parse_hour_minute_second): Move side effects
42040         outside of strchr call.
42041         (parse_non_iso8601): Move side effects outside of isspace call.
42042         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
42043         call.
42044
42045 2008-12-16  Bruno Haible  <bruno@clisp.org>
42046
42047         * tests/test-parse-duration.sh: Produce no output when the test
42048         succeeds.
42049
42050 2008-12-16  Bruno Haible  <bruno@clisp.org>
42051
42052         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
42053         expressions.
42054
42055 2008-12-15  Bruno Haible  <bruno@clisp.org>
42056
42057         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
42058         * doc/glibc-functions/flistxattr.texi: Likewise.
42059         * doc/glibc-functions/fopencookie.texi: Likewise.
42060         * doc/glibc-functions/fremovexattr.texi: Likewise.
42061         * doc/glibc-functions/fsetxattr.texi: Likewise.
42062         * doc/glibc-functions/getxattr.texi: Likewise.
42063         * doc/glibc-functions/lgetxattr.texi: Likewise.
42064         * doc/glibc-functions/listxattr.texi: Likewise.
42065         * doc/glibc-functions/llistxattr.texi: Likewise.
42066         * doc/glibc-functions/lremovexattr.texi: Likewise.
42067         * doc/glibc-functions/lsetxattr.texi: Likewise.
42068         * doc/glibc-functions/removexattr.texi: Likewise.
42069         * doc/glibc-functions/setxattr.texi: Likewise.
42070         * doc/posix-functions/open_memstream.texi: Likewise.
42071
42072 2008-12-15  Eric Blake  <ebb9@byu.net>
42073
42074         Update doc for cygwin 1.7.
42075         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
42076         functions.
42077         * doc/posix-functions/fchmodat.texi: Likewise.
42078         * doc/posix-functions/fchownat.texi: Likewise.
42079         * doc/posix-functions/fdopendir.texi: Likewise.
42080         * doc/posix-functions/fmemopen.texi: Likewise.
42081         * doc/posix-functions/freeaddrinfo.texi: Likewise.
42082         * doc/posix-functions/fstatat.texi: Likewise.
42083         * doc/posix-functions/futimens.texi: Likewise.
42084         * doc/posix-functions/gai_strerror.texi: Likewise.
42085         * doc/posix-functions/getaddrinfo.texi: Likewise.
42086         * doc/posix-functions/getnameinfo.texi: Likewise.
42087         * doc/posix-functions/if_freenameindex.texi: Likewise.
42088         * doc/posix-functions/if_indextoname.texi: Likewise.
42089         * doc/posix-functions/if_nameindex.texi: Likewise.
42090         * doc/posix-functions/if_nametoindex.texi: Likewise.
42091         * doc/posix-functions/insque.texi: Likewise.
42092         * doc/posix-functions/linkat.texi: Likewise.
42093         * doc/posix-functions/llrint.texi: Likewise.
42094         * doc/posix-functions/llrintf.texi: Likewise.
42095         * doc/posix-functions/llrintl.texi: Likewise.
42096         * doc/posix-functions/lockf.texi: Likewise.
42097         * doc/posix-functions/lrintl.texi: Likewise.
42098         * doc/posix-functions/mkdirat.texi: Likewise.
42099         * doc/posix-functions/mkfifoat.texi: Likewise.
42100         * doc/posix-functions/mknodat.texi: Likewise.
42101         * doc/posix-functions/mq_close.texi: Likewise.
42102         * doc/posix-functions/mq_getattr.texi: Likewise.
42103         * doc/posix-functions/mq_notify.texi: Likewise.
42104         * doc/posix-functions/mq_open.texi: Likewise.
42105         * doc/posix-functions/mq_receive.texi: Likewise.
42106         * doc/posix-functions/mq_send.texi: Likewise.
42107         * doc/posix-functions/mq_setattr.texi: Likewise.
42108         * doc/posix-functions/mq_timedreceive.texi: Likewise.
42109         * doc/posix-functions/mq_timedsend.texi: Likewise.
42110         * doc/posix-functions/mq_unlink.texi: Likewise.
42111         * doc/posix-functions/open_memstream.texi: Likewise.
42112         * doc/posix-functions/openat.texi: Likewise.
42113         * doc/posix-functions/posix_fadvise.texi: Likewise.
42114         * doc/posix-functions/posix_fallocate.texi: Likewise.
42115         * doc/posix-functions/posix_madvise.texi: Likewise.
42116         * doc/posix-functions/posix_memalign.texi: Likewise.
42117         * doc/posix-functions/posix_openpt.texi: Likewise.
42118         * doc/posix-functions/readlinkat.texi: Likewise.
42119         * doc/posix-functions/remque.texi: Likewise.
42120         * doc/posix-functions/renameat.texi: Likewise.
42121         * doc/posix-functions/rintl.texi: Likewise.
42122         * doc/posix-functions/sem_unlink.texi: Likewise.
42123         * doc/posix-functions/shm_open.texi: Likewise.
42124         * doc/posix-functions/shm_unlink.texi: Likewise.
42125         * doc/posix-functions/signgam.texi: Likewise.
42126         * doc/posix-functions/sigset.texi: Likewise.
42127         * doc/posix-functions/stpcpy.texi: Likewise.
42128         * doc/posix-functions/stpncpy.texi: Likewise.
42129         * doc/posix-functions/strerror.texi: Likewise.
42130         * doc/posix-functions/strtod.texi: Likewise.
42131         * doc/posix-functions/symlinkat.texi: Likewise.
42132         * doc/posix-functions/unlinkat.texi: Likewise.
42133         * doc/posix-functions/utimensat.texi: Likewise.
42134         * doc/glibc-functions/bindresvport.texi: Likewise.
42135         * doc/glibc-functions/dn_expand.texi: Likewise.
42136         * doc/glibc-functions/exp10.texi: Likewise.
42137         * doc/glibc-functions/exp10f.texi: Likewise.
42138         * doc/glibc-functions/fgetxattr.texi: Likewise.
42139         * doc/glibc-functions/flistxattr.texi: Likewise.
42140         * doc/glibc-functions/fopencookie.texi: Likewise.
42141         * doc/glibc-functions/freeifaddrs.texi: Likewise.
42142         * doc/glibc-functions/fremovexattr.texi: Likewise.
42143         * doc/glibc-functions/fsetxattr.texi: Likewise.
42144         * doc/glibc-functions/getifaddrs.texi: Likewise.
42145         * doc/glibc-functions/getxattr.texi: Likewise.
42146         * doc/glibc-functions/lgetxattr.texi: Likewise.
42147         * doc/glibc-functions/listxattr.texi: Likewise.
42148         * doc/glibc-functions/llistxattr.texi: Likewise.
42149         * doc/glibc-functions/lremovexattr.texi: Likewise.
42150         * doc/glibc-functions/lsetxattr.texi: Likewise.
42151         * doc/glibc-functions/pow10.texi: Likewise.
42152         * doc/glibc-functions/pow10f.texi: Likewise.
42153         * doc/glibc-functions/rcmd_af.texi: Likewise.
42154         * doc/glibc-functions/removexattr.texi: Likewise.
42155         * doc/glibc-functions/res_init.texi: Likewise.
42156         * doc/glibc-functions/res_mkquery.texi: Likewise.
42157         * doc/glibc-functions/res_query.texi: Likewise.
42158         * doc/glibc-functions/res_querydomain.texi: Likewise.
42159         * doc/glibc-functions/res_send.texi: Likewise.
42160         * doc/glibc-functions/rresvport_af.texi: Likewise.
42161         * doc/glibc-functions/setxattr.texi: Likewise.
42162         * doc/glibc-functions/strcasestr.texi: Likewise.
42163
42164 2008-12-15  Bruno Haible  <bruno@clisp.org>
42165
42166         Fix compilation error on OSF/1 4.0.
42167         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
42168         <sys/time.h>, simply delegate to the system header.
42169         Reported by Daniel Richard G. <oss@teragram.com>.
42170
42171 2008-12-15  Bruno Haible  <bruno@clisp.org>
42172
42173         * doc/posix-functions/openat.texi: Mention the 'openat' module.
42174         * doc/posix-functions/fchmodat.texi: Likewise.
42175         * doc/posix-functions/fchownat.texi: Likewise.
42176         * doc/posix-functions/fdopendir.texi: Likewise.
42177         * doc/posix-functions/fstatat.texi: Likewise.
42178         * doc/posix-functions/mkdirat.texi: Likewise.
42179         * doc/posix-functions/unlinkat.texi: Likewise.
42180
42181 2008-12-14  Bruno Haible  <bruno@clisp.org>
42182
42183         Update doc for POSIX:2008.
42184         * doc/posix-functions/faccessat.texi: New file.
42185         * doc/posix-functions/fchmodat.texi: New file.
42186         * doc/posix-functions/fchownat.texi: New file.
42187         * doc/posix-functions/fdopendir.texi: New file.
42188         * doc/posix-functions/fstatat.texi: New file.
42189         * doc/posix-functions/futimens.texi: New file.
42190         * doc/posix-functions/linkat.texi: New file.
42191         * doc/posix-functions/mkdirat.texi: New file.
42192         * doc/posix-functions/mkfifoat.texi: New file.
42193         * doc/posix-functions/mknodat.texi: New file.
42194         * doc/posix-functions/open_wmemstream.texi: New file.
42195         * doc/posix-functions/openat.texi: New file.
42196         * doc/posix-functions/psiginfo.texi: New file.
42197         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
42198         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
42199         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
42200         * doc/posix-functions/readlinkat.texi: New file.
42201         * doc/posix-functions/renameat.texi: New file.
42202         * doc/posix-functions/strerror_l.texi: New file.
42203         * doc/posix-functions/symlinkat.texi: New file.
42204         * doc/posix-functions/unlinkat.texi: New file.
42205         * doc/posix-functions/utimensat.texi: New file.
42206         * doc/gnulib.texi (Function Substitutes): Add these subsections.
42207
42208 2008-12-14  Bruno Haible  <bruno@clisp.org>
42209
42210         Update doc for POSIX:2008.
42211         * doc/posix-functions/alphasort.texi: Renamed from
42212         doc/glibc-functions/alphasort.texi.
42213         * doc/posix-functions/dirfd.texi: Renamed from
42214         doc/glibc-functions/dirfd.texi.
42215         * doc/posix-functions/dprintf.texi: Renamed from
42216         doc/glibc-functions/dprintf.texi.
42217         * doc/posix-functions/duplocale.texi: Renamed from
42218         doc/glibc-functions/duplocale.texi.
42219         * doc/posix-functions/fexecve.texi: Renamed from
42220         doc/glibc-functions/fexecve.texi.
42221         * doc/posix-functions/fmemopen.texi: Renamed from
42222         doc/glibc-functions/fmemopen.texi.
42223         * doc/posix-functions/freelocale.texi: Renamed from
42224         doc/glibc-functions/freelocale.texi.
42225         * doc/posix-functions/getdate_err.texi: Renamed from
42226         doc/glibc-functions/getdate_err.texi.
42227         * doc/posix-functions/isalnum_l.texi: Renamed from
42228         doc/glibc-functions/isalnum_l.texi.
42229         * doc/posix-functions/isalpha_l.texi: Renamed from
42230         doc/glibc-functions/isalpha_l.texi.
42231         * doc/posix-functions/isblank_l.texi: Renamed from
42232         doc/glibc-functions/isblank_l.texi.
42233         * doc/posix-functions/iscntrl_l.texi: Renamed from
42234         doc/glibc-functions/iscntrl_l.texi.
42235         * doc/posix-functions/isdigit_l.texi: Renamed from
42236         doc/glibc-functions/isdigit_l.texi.
42237         * doc/posix-functions/isgraph_l.texi: Renamed from
42238         doc/glibc-functions/isgraph_l.texi.
42239         * doc/posix-functions/islower_l.texi: Renamed from
42240         doc/glibc-functions/islower_l.texi.
42241         * doc/posix-functions/isprint_l.texi: Renamed from
42242         doc/glibc-functions/isprint_l.texi.
42243         * doc/posix-functions/ispunct_l.texi: Renamed from
42244         doc/glibc-functions/ispunct_l.texi.
42245         * doc/posix-functions/isspace_l.texi: Renamed from
42246         doc/glibc-functions/isspace_l.texi.
42247         * doc/posix-functions/isupper_l.texi: Renamed from
42248         doc/glibc-functions/isupper_l.texi.
42249         * doc/posix-functions/iswalnum_l.texi: Renamed from
42250         doc/glibc-functions/iswalnum_l.texi.
42251         * doc/posix-functions/iswalpha_l.texi: Renamed from
42252         doc/glibc-functions/iswalpha_l.texi.
42253         * doc/posix-functions/iswblank_l.texi: Renamed from
42254         doc/glibc-functions/iswblank_l.texi.
42255         * doc/posix-functions/iswcntrl_l.texi: Renamed from
42256         doc/glibc-functions/iswcntrl_l.texi.
42257         * doc/posix-functions/iswctype_l.texi: Renamed from
42258         doc/glibc-functions/iswctype_l.texi.
42259         * doc/posix-functions/iswdigit_l.texi: Renamed from
42260         doc/glibc-functions/iswdigit_l.texi.
42261         * doc/posix-functions/iswgraph_l.texi: Renamed from
42262         doc/glibc-functions/iswgraph_l.texi.
42263         * doc/posix-functions/iswlower_l.texi: Renamed from
42264         doc/glibc-functions/iswlower_l.texi.
42265         * doc/posix-functions/iswprint_l.texi: Renamed from
42266         doc/glibc-functions/iswprint_l.texi.
42267         * doc/posix-functions/iswpunct_l.texi: Renamed from
42268         doc/glibc-functions/iswpunct_l.texi.
42269         * doc/posix-functions/iswspace_l.texi: Renamed from
42270         doc/glibc-functions/iswspace_l.texi.
42271         * doc/posix-functions/iswupper_l.texi: Renamed from
42272         doc/glibc-functions/iswupper_l.texi.
42273         * doc/posix-functions/iswxdigit_l.texi: Renamed from
42274         doc/glibc-functions/iswxdigit_l.texi.
42275         * doc/posix-functions/isxdigit_l.texi: Renamed from
42276         doc/glibc-functions/isxdigit_l.texi.
42277         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
42278         doc/glibc-functions/mbsnrtowcs.texi.
42279         * doc/posix-functions/mkdtemp.texi: Renamed from
42280         doc/glibc-functions/mkdtemp.texi.
42281         * doc/posix-functions/newlocale.texi: Renamed from
42282         doc/glibc-functions/newlocale.texi.
42283         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
42284         doc/glibc-functions/nl_langinfo_l.texi.
42285         * doc/posix-functions/open_memstream.texi: Renamed from
42286         doc/glibc-functions/open_memstream.texi.
42287         * doc/posix-functions/opterr.texi: Renamed from
42288         doc/glibc-functions/opterr.texi.
42289         * doc/posix-functions/optind.texi: Renamed from
42290         doc/glibc-functions/optind.texi.
42291         * doc/posix-functions/optopt.texi: Renamed from
42292         doc/glibc-functions/optopt.texi.
42293         * doc/posix-functions/psignal.texi: Renamed from
42294         doc/glibc-functions/psignal.texi.
42295         * doc/posix-functions/scandir.texi: Renamed from
42296         doc/glibc-functions/scandir.texi.
42297         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
42298         doc/glibc-functions/sched_get_priority_min.texi.
42299         * doc/posix-functions/signgam.texi: Renamed from
42300         doc/glibc-functions/signgam.texi.
42301         * doc/posix-functions/stpcpy.texi: Renamed from
42302         doc/glibc-functions/stpcpy.texi.
42303         * doc/posix-functions/stpncpy.texi: Renamed from
42304         doc/glibc-functions/stpncpy.texi.
42305         * doc/posix-functions/strcasecmp_l.texi: Renamed from
42306         doc/glibc-functions/strcasecmp_l.texi.
42307         * doc/posix-functions/strcoll_l.texi: Renamed from
42308         doc/glibc-functions/strcoll_l.texi.
42309         * doc/posix-functions/strfmon_l.texi: Renamed from
42310         doc/glibc-functions/strfmon_l.texi.
42311         * doc/posix-functions/strftime_l.texi: Renamed from
42312         doc/glibc-functions/strftime_l.texi.
42313         * doc/posix-functions/strncasecmp_l.texi: Renamed from
42314         doc/glibc-functions/strncasecmp_l.texi.
42315         * doc/posix-functions/strndup.texi: Renamed from
42316         doc/glibc-functions/strndup.texi.
42317         * doc/posix-functions/strnlen.texi: Renamed from
42318         doc/glibc-functions/strnlen.texi.
42319         * doc/posix-functions/strsignal.texi: Renamed from
42320         doc/glibc-functions/strsignal.texi.
42321         * doc/posix-functions/strxfrm_l.texi: Renamed from
42322         doc/glibc-functions/strxfrm_l.texi.
42323         * doc/posix-functions/timer_gettime.texi: Renamed from
42324         doc/glibc-functions/timer_gettime.texi.
42325         * doc/posix-functions/tolower_l.texi: Renamed from
42326         doc/glibc-functions/tolower_l.texi.
42327         * doc/posix-functions/toupper_l.texi: Renamed from
42328         doc/glibc-functions/toupper_l.texi.
42329         * doc/posix-functions/towctrans_l.texi: Renamed from
42330         doc/glibc-functions/towctrans_l.texi.
42331         * doc/posix-functions/towlower_l.texi: Renamed from
42332         doc/glibc-functions/towlower_l.texi.
42333         * doc/posix-functions/towupper_l.texi: Renamed from
42334         doc/glibc-functions/towupper_l.texi.
42335         * doc/posix-functions/uselocale.texi: Renamed from
42336         doc/glibc-functions/uselocale.texi.
42337         * doc/posix-functions/vdprintf.texi: Renamed from
42338         doc/glibc-functions/vdprintf.texi.
42339         * doc/posix-functions/wcpcpy.texi:
42340         Renamed from doc/glibc-functions/wcpcpy.texi.
42341         * doc/posix-functions/wcpncpy.texi: Renamed from
42342         doc/glibc-functions/wcpncpy.texi.
42343         * doc/posix-functions/wcscasecmp.texi: Renamed from
42344         doc/glibc-functions/wcscasecmp.texi.
42345         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
42346         doc/glibc-functions/wcscasecmp_l.texi.
42347         * doc/posix-functions/wcscoll_l.texi: Renamed from
42348         doc/glibc-functions/wcscoll_l.texi.
42349         * doc/posix-functions/wcsdup.texi: Renamed from
42350         doc/glibc-functions/wcsdup.texi.
42351         * doc/posix-functions/wcsncasecmp.texi: Renamed from
42352         doc/glibc-functions/wcsncasecmp.texi.
42353         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
42354         doc/glibc-functions/wcsncasecmp_l.texi.
42355         * doc/posix-functions/wcsnlen.texi: Renamed from
42356         doc/glibc-functions/wcsnlen.texi.
42357         * doc/posix-functions/wcsnrtombs.texi: Renamed from
42358         doc/glibc-functions/wcsnrtombs.texi.
42359         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
42360         doc/glibc-functions/wcsxfrm_l.texi.
42361         * doc/posix-functions/wctrans_l.texi: Renamed from
42362         doc/glibc-functions/wctrans_l.texi.
42363         * doc/posix-functions/wctype_l.texi: Renamed from
42364         doc/glibc-functions/wctype_l.texi.
42365         * doc/gnulib.texi (Function Substitutes): Add these subsections.
42366         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
42367         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
42368         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
42369         these subsections.
42370         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
42371         Remove sections.
42372
42373 2008-12-14  Bruno Haible  <bruno@clisp.org>
42374
42375         Update doc for POSIX:2008.
42376         * doc/posix-functions/*.texi: Update URL of POSIX specification.
42377
42378 2008-12-14  Bruno Haible  <bruno@clisp.org>
42379
42380         Update doc for POSIX:2008.
42381         * doc/pastposix-functions/bcmp.texi: Renamed from
42382         doc/posix-functions/bcmp.texi.
42383         * doc/pastposix-functions/bcopy.texi: Renamed from
42384         doc/posix-functions/bcopy.texi.
42385         * doc/pastposix-functions/bsd_signal.texi: Renamed from
42386         doc/posix-functions/bsd_signal.texi.
42387         * doc/pastposix-functions/bzero.texi: Renamed from
42388         doc/posix-functions/bzero.texi.
42389         * doc/pastposix-functions/ecvt.texi: Renamed from
42390         doc/posix-functions/ecvt.texi.
42391         * doc/pastposix-functions/fcvt.texi: Renamed from
42392         doc/posix-functions/fcvt.texi.
42393         * doc/pastposix-functions/ftime.texi: Renamed from
42394         doc/posix-functions/ftime.texi.
42395         * doc/pastposix-functions/gcvt.texi: Renamed from
42396         doc/posix-functions/gcvt.texi.
42397         * doc/pastposix-functions/getcontext.texi: Renamed from
42398         doc/posix-functions/getcontext.texi.
42399         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
42400         doc/posix-functions/gethostbyaddr.texi.
42401         * doc/pastposix-functions/gethostbyname.texi: Renamed from
42402         doc/posix-functions/gethostbyname.texi.
42403         * doc/pastposix-functions/getwd.texi: Renamed from
42404         doc/posix-functions/getwd.texi.
42405         * doc/pastposix-functions/h_errno.texi: Renamed from
42406         doc/posix-functions/h_errno.texi.
42407         * doc/pastposix-functions/index.texi: Renamed from
42408         doc/posix-functions/index.texi.
42409         * doc/pastposix-functions/makecontext.texi: Renamed from
42410         doc/posix-functions/makecontext.texi.
42411         * doc/pastposix-functions/mktemp.texi: Renamed from
42412         doc/posix-functions/mktemp.texi.
42413         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
42414         doc/posix-functions/pthread_attr_getstackaddr.texi.
42415         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
42416         doc/posix-functions/pthread_attr_setstackaddr.texi.
42417         * doc/pastposix-functions/rindex.texi: Renamed from
42418         doc/posix-functions/rindex.texi.
42419         * doc/pastposix-functions/scalb.texi: Renamed from
42420         doc/posix-functions/scalb.texi.
42421         * doc/pastposix-functions/setcontext.texi: Renamed from
42422         doc/posix-functions/setcontext.texi.
42423         * doc/pastposix-functions/swapcontext.texi: Renamed from
42424         doc/posix-functions/swapcontext.texi.
42425         * doc/pastposix-functions/ualarm.texi: Renamed from
42426         doc/posix-functions/ualarm.texi.
42427         * doc/pastposix-functions/usleep.texi: Renamed from
42428         doc/posix-functions/usleep.texi.
42429         * doc/pastposix-functions/vfork.texi: Renamed from
42430         doc/posix-functions/vfork.texi.
42431         * doc/pastposix-functions/wcswcs.texi: Renamed from
42432         doc/posix-functions/wcswcs.texi.
42433         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
42434         (Function Substitutes): Update.
42435
42436 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42437
42438         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
42439         m4/strerror.m4.
42440
42441 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42442             Bruno Haible  <bruno@clisp.org>
42443
42444         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
42445
42446 2008-12-13  Bruno Haible  <bruno@clisp.org>
42447
42448         * modules/strtoull (Depends-on): Remove unistd.
42449
42450 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42451
42452         * modules/strtoull (Depends-on): Add stdlib.
42453
42454 2008-12-11  Simon Josefsson  <simon@josefsson.org>
42455
42456         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
42457
42458 2008-12-10  Jim Meyering  <meyering@redhat.com>
42459
42460         gl_ASSERT: don't say assertions are disabled when they're not
42461         * m4/assert.m4 (gl_ASSERT): Do not make configure report
42462         "checking whether to enable assertions... no", when they are in
42463         fact enabled.  This is solely a bug in the output of configure.
42464         In spite of saying "no", NDEBUG was not defined in that case.
42465         Also, as noted by Eric Blake, leave assertions enabled upon
42466         --enable-assert=INVALID.
42467
42468 2008-12-10  Bruno Haible  <bruno@clisp.org>
42469
42470         Change MODULES.html to refer to POSIX:2008 where possible.
42471         * MODULES.html.sh (POSIX2008_URL): New variable.
42472         (posix_headers): Remove sys/timeb, ucontext.
42473         (posix2001_headers): New variable.
42474         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
42475         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
42476         index, makecontext, mktemp, pthread_attr_getstackaddr,
42477         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
42478         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
42479         (posix2001_functions): New variable.
42480         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
42481         otherwise.
42482
42483 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42484
42485         add missing include to parse-duration.c
42486         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
42487         * modules/parse-duration (Depends-on): Add xalloc.
42488
42489         fix sed script reading maint.mk
42490         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
42491         (syntax-check-rules): Use it.
42492
42493 2008-12-09  Bruno Haible  <bruno@clisp.org>
42494
42495         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
42496         MacOS X 10.4/PowerPC.
42497         Reported by Simon Josefsson.
42498
42499 2008-12-08  Jim Meyering  <meyering@redhat.com>
42500
42501         work around mingw's lack of some S_IF definitions
42502         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
42503         Reported by Simon Josefsson.
42504
42505 2008-12-08  Bruno Haible  <bruno@clisp.org>
42506
42507         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
42508         applied to variables. Needed on MacOS X 10.4/PowerPC.
42509         Reported by Simon Josefsson.
42510
42511 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
42512         and Eric Blake  <ebb9@byu.net>
42513
42514         assert: honor --enable-assert
42515         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
42516         order to honor --enable-assert, rather than treating it as a
42517         synonym for --disable-assert.
42518
42519 2008-12-08  Jim Meyering  <meyering@redhat.com>
42520
42521         * lib/posixtm.c: Remove now-useless declaration of mktime.
42522
42523         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
42524
42525 2008-12-07  Bruno Haible  <bruno@clisp.org>
42526
42527         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
42528         test_once): Mark functions as static.
42529         * tests/test-tls.c (test_tls): Likewise.
42530
42531 2008-12-07  Bruno Haible  <bruno@clisp.org>
42532
42533         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
42534         iconv_register_autodetect.
42535
42536 2008-12-07  Jim Meyering  <meyering@redhat.com>
42537
42538         posixtm.c: avoid a warning
42539         * lib/posixtm.c (posixtime): Don't initialize tm0.
42540         It's no longer needed to placate gcc4's -Wuninitialized,
42541         and the attempt to placate would elicit a new warning.
42542
42543         unicodeio.c: mark unused parameters
42544         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
42545         (fallback_failure_callback): Likewise.
42546
42547 2008-12-07  Bruno Haible  <bruno@clisp.org>
42548
42549         * gnulib-tool (func_create_testdir): When building the tests
42550         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
42551         Reported by Simon Josefsson.
42552
42553 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42554
42555         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
42556
42557 2008-12-06  Bruno Haible  <bruno@clisp.org>
42558
42559         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
42560         Suggested by Eric Blake.
42561
42562 2008-12-06  Bruno Haible  <bruno@clisp.org>
42563
42564         Fix a c-stack test failure on MacOS X.
42565         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
42566         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
42567         handler for SIGBUS as well.
42568         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
42569         install a signal handler for SIGBUS as well.
42570         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
42571
42572 2008-12-06  Bruno Haible  <bruno@clisp.org>
42573
42574         Advocacy documentation.
42575         * doc/gnulib-intro.texi (Benefits): New section.
42576         * doc/gnulib.texi: Update.
42577
42578 2008-12-06  Bruno Haible  <bruno@clisp.org>
42579
42580         Document the 'manywarnings' module.
42581         * doc/manywarnings.texi: New file.
42582         * doc/gnulib.texi: Include it.
42583
42584 2008-12-05  Eric Blake  <ebb9@byu.net>
42585
42586         tests: silence some gcc warnings
42587         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
42588         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
42589         type mismatches.
42590
42591 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42592             Bruno Haible  <bruno@clisp.org>
42593
42594         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
42595
42596 2008-11-29  Jim Meyering  <meyering@redhat.com>
42597
42598         unicodeio.c: mark unused parameters
42599         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
42600         (fallback_failure_callback): Likewise.
42601
42602         fts: fix a thinko
42603         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
42604         (set_stat_type): Return S_IF*-valued "type" directly.
42605         Prompted by James Youngman's spotting a related bug.
42606         Confirmed by further testing through find.
42607
42608         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
42609         * lib/fts.c (D_TYPE): Define.
42610         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
42611         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
42612         (s_ifmt_shift_bits): New function.
42613         (set_stat_type): New function.
42614         (fts_build): When not calling fts_stat, call set_stat_type
42615         to propagate dirent.d_type info to fts_read caller.
42616         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
42617         fts_statp->st_mode type information may be valid.
42618
42619 2008-11-28  Simon Josefsson  <simon@josefsson.org>
42620
42621         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
42622         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
42623         <sds@gnu.org>.
42624
42625 2008-11-20  Bruno Haible  <bruno@clisp.org>
42626
42627         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
42628         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
42629         INCLUDE_NEXT.
42630         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
42631         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
42632         * modules/math (Makefile.am): Substitute
42633         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
42634         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42635
42636 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
42637             Bruno Haible  <bruno@clisp.org>
42638
42639         * lib/stdint.in.h: Define all type macros so that their expansion is
42640         a single typedef'ed token. Fixes a compilation failure in Boost which
42641         does "using ::int8_t;".
42642
42643 2008-11-18  Simon Josefsson  <simon@josefsson.org>
42644
42645         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
42646         gl_MANYWARN_ALL_GCC.
42647         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
42648         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
42649         * modules/manywarnings: New file.
42650         * MODULES.html.sh: Mention manywarnings module.
42651
42652 2008-11-18  Bruno Haible  <bruno@clisp.org>
42653
42654         * doc/gnulib-tool.texi (Unit tests): New section.
42655
42656 2008-11-18  Simon Josefsson  <simon@josefsson.org>
42657
42658         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
42659         paths like 'lib/po/foo.po'.
42660
42661 2008-11-17  Simon Josefsson  <simon@josefsson.org>
42662
42663         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
42664         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
42665
42666 2008-11-17  Simon Josefsson  <simon@josefsson.org>
42667
42668         * m4/warnings.m4: Use CPPFLAGS to really check whether the
42669         parameter works.
42670
42671 2008-11-17  Simon Josefsson  <simon@josefsson.org>
42672
42673         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
42674
42675 2008-11-17  Bruce Korb  <bkorb@gnu.org>
42676
42677         * modules/parse-duration-tests: New file.
42678         * tests/test-parse-duration.sh: New file.
42679         * tests/test-parse-duration.c: New file.
42680
42681         New module 'parse-duration'.
42682         * lib/parse-duration.h: New file.
42683         * lib/parse-duration.c: New file.
42684         * modules/parse-duration: New file.
42685
42686 2008-11-17  Bruno Haible  <bruno@clisp.org>
42687
42688         * tests/test-select-out.sh: Comment out the first pipe test.
42689         Reported by Simon Josefsson.
42690
42691 2008-11-17  Bruno Haible  <bruno@clisp.org>
42692
42693         * modules/getaddrinfo (Depends-on): Add servent, hostent.
42694         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
42695         gl_HOSTENT.
42696
42697 2008-11-17  Bruno Haible  <bruno@clisp.org>
42698
42699         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
42700         -lnetwork and -lnet. Needed for Haiku and BeOS.
42701
42702 2008-11-16  Bruno Haible  <bruno@clisp.org>
42703
42704         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
42705
42706 2008-11-16  Bruno Haible  <bruno@clisp.org>
42707
42708         Avoid test failure on Haiku.
42709         * tests/test-fsync.c: Include <errno.h>.
42710         (main): Don't require that fsync (0) fails.
42711
42712 2008-11-15  Bruno Haible  <bruno@clisp.org>
42713
42714         New module 'hostent'.
42715         * modules/hostent: New file.
42716         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
42717
42718 2008-11-15  Bruno Haible  <bruno@clisp.org>
42719
42720         New module 'servent'.
42721         * modules/servent: New file.
42722         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
42723
42724 2008-11-15  Bruno Haible  <bruno@clisp.org>
42725
42726         Avoid generating same test program with two different rules.
42727         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
42728         test-frexp to test-frexp-nolibm.
42729         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
42730         test-frexpl to test-frexpl-nolibm.
42731
42732 2008-11-15  Bruno Haible  <bruno@clisp.org>
42733
42734         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
42735         $(FREXPL_LIBM).
42736
42737 2008-11-15  Bruno Haible  <bruno@clisp.org>
42738
42739         * lib/netdb.in.h: Activate the definitions also when the system's
42740         <netdb.h> has 'struct addrinfo'.
42741         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
42742         EAI_OVERFLOW or AI_NUMERICSERV.
42743         * doc/posix-headers/netdb.texi: Document the problem.
42744
42745 2008-11-15  Bruno Haible  <bruno@clisp.org>
42746
42747         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
42748
42749         Make the 'sched' module work on platforms where <sched.h> exists but
42750         is incomplete (such as Haiku).
42751         * lib/sched.in.h; Include the system's <sched.h> if it exists.
42752         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
42753         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
42754         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
42755         HAVE_STRUCT_SCHED_PARAM.
42756         * modules/sched (Depends-on): Add include_next.
42757         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
42758         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
42759         * doc/posix-headers/sched.texi: Document the issue.
42760
42761 2008-11-13  Jim Meyering  <meyering@redhat.com>
42762
42763         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
42764         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
42765         test would fail due to the difference in the Report bugs to ...
42766         line.  The expected address is empty, "<>", while the actual
42767         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
42768
42769 2008-11-12  Bruno Haible  <bruno@clisp.org>
42770
42771         lstat: don't compile lstat.c on systems lacking lstat
42772         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
42773         which don't have lstat; this is handled by lib/sys_stat.in.h already.
42774         Reported by Daniel P. Berrange via Jim Meyering.
42775
42776 2008-11-12  Jim Meyering  <meyering@redhat.com>
42777
42778         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
42779
42780 2008-11-12  Simon Josefsson  <simon@josefsson.org>
42781
42782         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
42783         instead.
42784
42785 2008-11-12  Bruno Haible  <bruno@clisp.org>
42786
42787         * lib/unicodeio.c: Include unistr.h.
42788         (utf8_wctomb): Remove function.
42789         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
42790
42791 2008-11-12  Simon Josefsson  <simon@josefsson.org>
42792
42793         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
42794         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
42795         <bruno@clisp.org>.
42796         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
42797
42798 2008-11-12  Simon Josefsson  <simon@josefsson.org>
42799
42800         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
42801         * doc/gnulib.texi: Add section for warnings.
42802
42803 2008-11-11  Bruno Haible  <bruno@clisp.org>
42804
42805         * lib/sockets.h: Add a comment.
42806
42807 2008-11-11  Karl Berry  <karl@gnu.org>
42808
42809         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
42810
42811 2008-11-11  Eric Blake  <ebb9@byu.net>
42812
42813         fdl.texi: avoid git symlinks
42814         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
42815
42816 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
42817
42818         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
42819
42820 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
42821
42822         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
42823         (gl_WARN_ADD): Substitute $2 if literal.
42824
42825 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
42826
42827         * m4/warning.m4: Remove.
42828
42829 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
42830
42831         * m4/warnings.m4: Almost complete rewrite. :-)
42832
42833 2008-11-10  Simon Josefsson  <simon@josefsson.org>
42834
42835         * modules/warnings: New module.
42836         * m4/warnings.m4: New file.
42837         * MODULES.html.sh: Mention warnings module.
42838         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
42839         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42840
42841 2008-11-10  Eric Blake  <ebb9@byu.net>
42842
42843         fdl.texi: make a symlink to the latest version
42844         * doc/standards.texi: Revert today's earlier change.
42845         * doc/fdl-1.2.texi: Rename from old fdl.texi...
42846         * doc/fdl.texi: ...and replace this with a symlink to the newer
42847         fdl-1.3.texi.
42848
42849 2008-11-10  Bruno Haible  <bruno@clisp.org>
42850
42851         * tests/test-select-fd.c (main): Accept the result file name as fourth
42852         argument.
42853         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
42854         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
42855
42856 2008-11-10  Bruno Haible  <bruno@clisp.org>
42857
42858         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
42859         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
42860         as autoconf-substituted macros.
42861         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
42862         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
42863         gl_NETDB_H_DEFAULTS. Set these variables.
42864         * modules/netdb (Makefile.am): Substitute these variables.
42865
42866 2008-11-10  Eric Blake  <ebb9@byu.net>
42867
42868         standards.texi: include correct file for FDL 1.3
42869         * doc/standards.texi (GNU Free Documentation License): Change
42870         include file to pull in FDL 1.3, not 1.2.
42871
42872         fdl.texi: revert accidental change to license
42873         * doc/fdl.texi: This is FDL 1.2, not 1.3.
42874
42875 2008-11-10  Bruno Haible  <bruno@clisp.org>
42876
42877         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
42878         cross-compiling guesses also when the native compile gives no result.
42879
42880 2008-11-10  Bruno Haible  <bruno@clisp.org>
42881
42882         * lib/spawni.c (__spawni): Force variable into the stack.
42883
42884 2008-11-10  Bruno Haible  <bruno@clisp.org>
42885
42886         Add support for Haiku.
42887         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
42888         glibc and BeOS, but also on Haiku.
42889         * lib/fpurge.c (fpurge): Likewise.
42890         * lib/freadable.c (freadable): Likewise.
42891         * lib/freadahead.c (freadahead): Likewise.
42892         * lib/freading.c (freading): Likewise.
42893         * lib/freadptr.c (freadptr): Likewise.
42894         * lib/freadseek.c (freadptrinc): Likewise.
42895         * lib/fseeko.c (rpl_fseeko): Likewise.
42896         * lib/fseterr.c (fseterr): Likewise.
42897         * lib/fwritable.c (fwritable): Likewise.
42898         * lib/fwriting.c (fwriting): Likewise.
42899         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
42900
42901 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
42902
42903         * lib/config.charset: Treat Haiku like BeOS.
42904
42905 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
42906
42907         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
42908         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
42909
42910 2008-11-08  Bruno Haible  <bruno@clisp.org>
42911
42912         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
42913         AC_CACHE_CHECK.
42914
42915 2008-11-08  Bruno Haible  <bruno@clisp.org>
42916
42917         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
42918
42919 2008-11-08  Bruno Haible  <bruno@clisp.org>
42920
42921         * tests/test-select-fd.c: New file.
42922         * tests/test-select-in.sh: New file.
42923         * tests/test-select-out.sh: New file.
42924         * tests/test-select-stdin.c: New file.
42925         * modules/select-tests (Files): Add the new files.
42926         (Depends-on): Add gettimeofday.
42927         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
42928         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
42929         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
42930
42931 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
42932             Bruno Haible  <bruno@clisp.org>
42933
42934         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
42935
42936 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
42937
42938         * build-aux/pmccabe2html: Added support for C++ source files.
42939
42940 2008-11-05  Ben Pfaff  <blp@gnu.org>
42941
42942         Fix lib/close.c build on Windows.
42943         * modules/close (Files): Add lib/w32sock.h.
42944
42945 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
42946
42947         Accept Bison's NEWS format.
42948         * build-aux/announce-gen (print_news_deltas): Tweak
42949         $re_prefix.
42950
42951 2008-11-04  Bruno Haible  <bruno@clisp.org>
42952
42953         * modules/random_r (Maintainer): Add glibc.
42954
42955 2008-11-04  Simon Josefsson  <simon@josefsson.org>
42956
42957         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
42958         by karl@freefriends.org (Karl Berry).
42959         * doc/alloca.texi: Likewise.
42960         * doc/c-ctype.texi: Likewise.
42961         * doc/c-strcase.texi: Likewise.
42962         * doc/c-strcaseeq.texi: Likewise.
42963         * doc/c-strcasestr.texi: Likewise.
42964         * doc/c-strstr.texi: Likewise.
42965         * doc/c-strtod.texi: Likewise.
42966         * doc/c-strtold.texi: Likewise.
42967         * doc/ctime.texi: Likewise.
42968         * doc/error.texi: Likewise.
42969         * doc/fdl.texi: Likewise.
42970         * doc/gcd.texi: Likewise.
42971         * doc/getdate.texi: Likewise.
42972         * doc/gnulib-intro.texi: Likewise.
42973         * doc/gnulib-tool.texi: Likewise.
42974         * doc/gnulib.texi: Likewise.
42975         * doc/inet_ntoa.texi: Likewise.
42976         * doc/maintain.texi: Likewise.
42977         * doc/make-stds.texi: Likewise.
42978         * doc/quote.texi: Likewise.
42979         * doc/regexprops-generic.texi: Likewise.
42980         * doc/standards.texi: Likewise.
42981         * doc/verify.texi: Likewise.
42982         * doc/visibility.texi: Likewise.
42983         * doc/gnulib.texi (GNU Free Documentation License): Include
42984         fdl-1.3.texi instead of fdl.texi.
42985
42986 2008-11-04  Simon Josefsson  <simon@josefsson.org>
42987
42988         * doc/fdl-1.3.texi: New file, from
42989         <http://www.gnu.org/licenses/fdl-1.3.texi>.
42990         * modules/fdl-1.3: Add.
42991         * MODULES.html.sh: Add fdl-1.3.
42992
42993 2008-11-03  Bruno Haible  <bruno@clisp.org>
42994
42995         Make determination of absolute name of header file work with AIX xlc.
42996         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
42997         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
42998         preprocessing.
42999         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43000         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
43001
43002 2008-11-03  Simon Josefsson  <simon@josefsson.org>
43003
43004         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
43005         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
43006         <ludo@gnu.org>.
43007
43008 2008-11-02  Bruno Haible  <bruno@clisp.org>
43009
43010         Mark 'strpbrk' obsolete.
43011         * modules/strpbrk (Status, Notice): New sections.
43012         * modules/strtok_r (Depends-on): Add strpbrk.
43013
43014 2008-11-02  Bruno Haible  <bruno@clisp.org>
43015
43016         Mark 'strdup' obsolete.
43017         * modules/strdup (Status, Notice): New sections.
43018         * modules/findprog (Depends-on): Add strdup.
43019         * modules/getaddrinfo (Depends-on): Likewise.
43020         * modules/localename (Depends-on): Likewise.
43021         * modules/relocatable-lib (Depends-on): Likewise.
43022         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
43023         * modules/relocatable-prog (Depends-on): Likewise.
43024         * modules/trim (Depends-on): Likewise.
43025         * modules/unictype/gen-ctype (Depends-on): Likewise.
43026         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
43027
43028 2008-11-02  Bruno Haible  <bruno@clisp.org>
43029
43030         Mark 'strcspn' obsolete.
43031         * modules/strcspn (Status, Notice): New sections.
43032
43033 2008-11-02  Bruno Haible  <bruno@clisp.org>
43034
43035         Mark 'rmdir' obsolete.
43036         * modules/rmdir (Status, Notice): New sections.
43037         * modules/clean-temp (Depends-on): Add rmdir.
43038         * modules/openat (Depends-on): Likewise.
43039
43040 2008-11-02  Bruno Haible  <bruno@clisp.org>
43041
43042         Mark 'raise' obsolete.
43043         * modules/raise (Status, Notice): New sections.
43044         (Include): Specify <signal.h>.
43045         * modules/stdio (Depends-on): Add raise.
43046         * modules/write (Depends-on): Likewise.
43047
43048 2008-11-02  Bruno Haible  <bruno@clisp.org>
43049
43050         Mark 'memset' obsolete.
43051         * modules/memset (Status, Notice): New sections.
43052
43053 2008-11-02  Bruno Haible  <bruno@clisp.org>
43054
43055         Mark 'memmove' obsolete.
43056         * modules/memmove (Status, Notice): New sections.
43057         * modules/argp (Depends-on): Add memmove.
43058         * modules/argz (Depends-on): Likewise.
43059         * modules/canonicalize (Depends-on): Likewise.
43060         * modules/canonicalize-lgpl (Depends-on): Likewise.
43061         * modules/fts (Depends-on): Likewise.
43062         * modules/getcwd (Depends-on): Likewise.
43063         * modules/human (Depends-on): Likewise.
43064         * modules/regex (Depends-on): Likewise.
43065         * modules/striconveh (Depends-on): Likewise.
43066         * modules/trim (Depends-on): Likewise.
43067         * modules/unistr/u8-move (Depends-on): Likewise.
43068         * modules/unistr/u16-move (Depends-on): Likewise.
43069         * modules/unistr/u32-move (Depends-on): Likewise.
43070
43071 2008-11-02  Bruno Haible  <bruno@clisp.org>
43072
43073         Mark 'memcpy' obsolete.
43074         * modules/memcpy (Status, Notice): New sections.
43075
43076 2008-11-02  Bruno Haible  <bruno@clisp.org>
43077
43078         Mark 'memcmp' obsolete.
43079         * modules/memcmp (Status, Notice): New sections.
43080         * modules/argmatch (Depends-on): Add memchr.
43081         * modules/backupfile (Depends-on): Likewise.
43082         * modules/c-strcasestr (Depends-on): Likewise.
43083         * modules/crypto/des (Depends-on): Likewise.
43084         * modules/csharpcomp (Depends-on): Likewise.
43085         * modules/fnmatch (Depends-on): Likewise.
43086         * modules/git-merge-changelog (Depends-on): Likewise.
43087         * modules/isnand (Depends-on): Likewise.
43088         * modules/isnand-nolibm (Depends-on): Likewise.
43089         * modules/isnanf (Depends-on): Likewise.
43090         * modules/isnanf-nolibm (Depends-on): Likewise.
43091         * modules/isnanl (Depends-on): Likewise.
43092         * modules/isnanl-nolibm (Depends-on): Likewise.
43093         * modules/mbchar (Depends-on): Likewise.
43094         * modules/memcoll (Depends-on): Likewise.
43095         * modules/quotearg (Depends-on): Likewise.
43096         * modules/regex (Depends-on): Likewise.
43097         * modules/relocatable-prog (Depends-on): Likewise.
43098         * modules/same (Depends-on): Likewise.
43099         * modules/signbit (Depends-on): Likewise.
43100         * modules/strcasestr-simple (Depends-on): Likewise.
43101         * modules/unictype/gen-ctype (Depends-on): Likewise.
43102         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
43103         * modules/uniname/uniname (Depends-on): Likewise.
43104         * modules/unistr/u8-cmp (Depends-on): Likewise.
43105
43106 2008-11-02  Bruno Haible  <bruno@clisp.org>
43107
43108         Mark 'memchr' obsolete.
43109         * modules/memchr (Status, Notice): New sections.
43110         * modules/argp (Depends-on): Add memchr.
43111         * modules/base64 (Depends-on): Likewise.
43112         * modules/c-strcasestr (Depends-on): Likewise.
43113         * modules/chdir-long (Depends-on): Likewise.
43114         * modules/fnmatch (Depends-on): Likewise.
43115         * modules/getsubopt (Depends-on): Likewise.
43116         * modules/git-merge-changelog (Depends-on): Likewise.
43117         * modules/glob (Depends-on): Likewise.
43118         * modules/strcasestr-simple (Depends-on): Likewise.
43119         * modules/strnlen (Depends-on): Likewise.
43120
43121 2008-11-02  Bruno Haible  <bruno@clisp.org>
43122
43123         Mark 'atexit' obsolete.
43124         * modules/atexit (Status, Notice): New sections.
43125         * modules/chdir-long (Depends-on): Add atexit.
43126         * modules/wait-process (Depends-on): Likewise.
43127
43128 2008-11-02  Bruno Haible  <bruno@clisp.org>
43129
43130         * gnulib-tool: New option --with-obsolete.
43131         (func_usage): Document it.
43132         (func_modules_transitive_closure): Drop obsolete dependencies if
43133         incobsolete is not true.
43134         (func_import): Read and save the incobsolete variable to the cache.
43135
43136 2008-11-02  Bruno Haible  <bruno@clisp.org>
43137
43138         * modules/TEMPLATE-EXTENDED: New field 'Status'.
43139         * gnulib-tool: New option --extract-status.
43140         (func_usage): Document it.
43141         (sed_extract_prog): Recognize it.
43142         (func_get_status): New function.
43143
43144 2008-10-30  Simon Josefsson  <simon@josefsson.org>
43145
43146         * modules/sockets (License): Change from LGPL to LGPLv2+.
43147
43148 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43149
43150         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
43151
43152 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43153
43154         * MODULES.html.sh (Support for systems lacking POSIX:2001):
43155         Mention times and sys_times.
43156         * modules/sys_times, modules/sys_times-tests: New modules.
43157         * modules/times, modules/times-tests: Likewise
43158         * m4/sys_times_h.m4: New file.
43159         * lib/sys_times.in.h: Likewise
43160         * lib/times.c: Likewise.
43161         * tests/test-sys_times.c: Likewise.
43162         * tests/test-times.c: Likewise.
43163         * doc/posix-headers/sys_times.texi: Update.
43164         * doc/posix-functions/times.texi: Update.
43165
43166 2008-10-28  Jim Meyering  <meyering@redhat.com>
43167
43168         * modules/tempname (Depends-on): Add lstat.
43169
43170         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
43171
43172 2008-10-28  Simon Josefsson  <simon@josefsson.org>
43173
43174         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
43175         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
43176         using idiom used elsewhere in gnulib.
43177
43178 2008-10-27  Jim Meyering  <meyering@redhat.com>
43179
43180         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
43181
43182 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43183
43184         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
43185         TESTS_ENVIRONMENT, for shell scripts that needs to call built
43186         programs.
43187         * tests/test-argp-2.sh: Use $EXEEXT when needed.
43188
43189 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43190
43191         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
43192
43193 2008-10-27  Bruno Haible  <bruno@clisp.org>
43194
43195         * tests/test-lstat.c: Include <stdio.h>.
43196
43197 2008-10-27  Simon Josefsson  <simon@josefsson.org>
43198
43199         * modules/lstat-tests: New module.
43200         * tests/test-lstat.c: New file.
43201
43202 2008-10-26  Jim Meyering  <meyering@redhat.com>
43203
43204         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
43205
43206 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43207             Bruno Haible  <bruno@clisp.org>
43208
43209         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
43210         * modules/configmake (Include): Add a note that the include must come
43211         after all system headers.
43212         * lib/javaversion.c: Include configmake.h after all other includes.
43213
43214 2008-10-26  Bruno Haible  <bruno@clisp.org>
43215
43216         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
43217         HAVE_STRUCT_RANDOM_DATA to 1.
43218         (gl_STDLIB_H): Simplify.
43219
43220 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43221
43222         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
43223         substitute HAVE_STRUCT_RANDOM_DATA.
43224         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
43225         random_data.
43226         * modules/stdlib (Makefile.am): Substitute
43227         HAVE_STRUCT_RANDOM_DATA.
43228
43229 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43230
43231         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
43232         * doc/gnulib-intro.texi (Copyright): Likewise.
43233
43234 2008-10-26  Simon Josefsson  <simon@josefsson.org>
43235
43236         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
43237         findings.
43238
43239 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
43240             Bruno Haible  <bruno@clisp.org>
43241
43242         * lib/unistd.in.h: Include <winsock2.h>.
43243         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
43244         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
43245         Provide dummy declarations.
43246         (gethostname): Override.
43247         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
43248         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
43249         gl_PREREQ_SYS_H_WINSOCK2.
43250         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
43251         * doc/posix-functions/gethostname.texi: More details.
43252
43253 2008-10-25  Bruno Haible  <bruno@clisp.org>
43254
43255         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
43256         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
43257         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
43258
43259         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
43260         here ...
43261         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
43262         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
43263         gl_UNISTD_H_DEFAULTS.
43264
43265 2008-10-25  Eric Blake  <ebb9@byu.net>
43266
43267         signbit: avoid spurious compiler failure
43268         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
43269         declarations inside function.
43270
43271 2008-10-24  Simon Josefsson  <simon@josefsson.org>
43272             Bruno Haible  <bruno@clisp.org>
43273
43274         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
43275         * modules/random_r (Depends-on): Add stdint.
43276
43277 2008-10-24  Bruno Haible  <bruno@clisp.org>
43278
43279         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
43280         Eggert.
43281         * modules/strerror (License): Likewise.
43282
43283 2008-10-24  Jim Meyering  <meyering@redhat.com>
43284
43285         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
43286         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
43287
43288 2008-10-24  Eric Blake  <ebb9@byu.net>
43289
43290         getgroups: fix compilation when getgroups is available
43291         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
43292         but with <config.h> override of getgroups disabled.
43293
43294 2008-10-24  Simon Josefsson  <simon@josefsson.org>
43295
43296         * doc/gnulib.texi (Header files): Add note about C++ problems.
43297         Explained by Bruno Haible <bruno@clisp.org>.
43298
43299 2008-10-23  Bruno Haible  <bruno@clisp.org>
43300
43301         Define a dummy SA_NODEFER macro on Interix.
43302         * lib/signal.in.h (SA_NODEFER): Define fallback.
43303         Reported by Aleksey Cheusov <cheusov@tut.by> via
43304         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
43305
43306 2008-10-23  Bruno Haible  <bruno@clisp.org>
43307
43308         * modules/freadahead (License): Change to LGPLv2+.
43309         Suggested by Simon Josefsson.
43310
43311 2008-10-23  Jim Meyering  <meyering@redhat.com>
43312
43313         random_r: new module
43314         * modules/random_r: New file.
43315         * m4/random_r.m4: New file.
43316         * lib/random_r.c: New file, from glibc.
43317         * modules/random_r-tests: New file.
43318         * tests/test-random_r.c: New file.
43319         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
43320          Declare.
43321         (RAND_MAX): Define.
43322         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
43323         * modules/stdlib: Substitute them, too.
43324         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
43325         * doc/glibc-functions/initstate_r.texi: Mention the new module.
43326         * doc/glibc-functions/random_r.texi: Likewise.
43327         * doc/glibc-functions/setstate_r.texi: Likewise.
43328         * doc/glibc-functions/srandom_r.texi: Likewise.
43329         * config/srclist.txt: Mention it.
43330
43331 2008-10-23  David Lutterkort  <lutter@redhat.com>
43332
43333         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
43334         link requirement
43335
43336 2008-10-23  Jim Meyering  <meyering@redhat.com>
43337
43338         selinux-h: mark parameters of stub functions as intentionally unused
43339         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
43340         * lib/se-context.in.h: Likewise.
43341
43342 2008-10-22  Simon Josefsson  <simon@josefsson.org>
43343
43344         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
43345
43346 2008-10-22  Simon Josefsson  <simon@josefsson.org>
43347
43348         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
43349
43350 2008-10-22  Eric Blake  <ebb9@byu.net>
43351
43352         glthread/thread: avoid compiler warning
43353         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
43354         Add unreachable abort to silence compiler.
43355
43356 2008-10-22  Eric Blake  <ebb9@byu.net>
43357
43358         netdb: also supply struct addrinfo for cygwin 1.5.x
43359         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
43360         older cygwin.
43361         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
43362         cygwin.
43363         * doc/posix-headers/netdb.texi (netdb.h): Document this.
43364
43365 2008-10-22  Bruno Haible  <bruno@clisp.org>
43366
43367         * users.txt: Update entry about pspp.
43368
43369 2008-10-21  Bruno Haible  <bruno@clisp.org>
43370
43371         Simplification.
43372         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
43373         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
43374
43375         Simplification.
43376         * lib/ioctl.c (ioctl): Don't undefine.
43377         * lib/socket.c (socket): Don't undefine.
43378
43379         Remove unused module indicator macros.
43380         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
43381         GNULIB_$1 as a C macro.
43382
43383         * doc/posix-functions/close.texi: Undo last change.
43384         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
43385         Windows platforms.
43386
43387 2008-10-21  Bruno Haible  <bruno@clisp.org>
43388
43389         Add gethostname() declaration to <unistd.h>.
43390         * lib/unistd.in.h (gethostname): New declaration.
43391         * lib/gethostname.c: Include <unistd.h>.
43392         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
43393         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
43394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
43395         and HAVE_GETHOSTNAME.
43396         * modules/gethostname (Depends-on): Add unistd.
43397         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43398         (Include): Specify <unistd.h>.
43399         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
43400         HAVE_GETHOSTNAME.
43401         * tests/test-gethostname.c: Include <unistd.h> first.
43402
43403 2008-10-21  Bruno Haible  <bruno@clisp.org>
43404
43405         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
43406         * modules/select-tests (Depends-on): Likewise.
43407         Reported by Simon Josefsson.
43408
43409 2008-10-21  Simon Josefsson  <simon@josefsson.org>
43410
43411         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
43412         * lib/accept.c: New file, based on winsock.c.
43413         * lib/bind.c: New file, based on winsock.c.
43414         * lib/connect.c: New file, based on winsock.c.
43415         * lib/getpeername.c: New file, based on winsock.c.
43416         * lib/getsockname.c: New file, based on winsock.c.
43417         * lib/getsockopt.c: New file, based on winsock.c.
43418         * lib/ioctl.c: New file, based on winsock.c.
43419         * lib/listen.c: New file, based on winsock.c.
43420         * lib/recv.c: New file, based on winsock.c.
43421         * lib/recvfrom.c: New file, based on winsock.c.
43422         * lib/send.c: New file, based on winsock.c.
43423         * lib/sendto.c: New file, based on winsock.c.
43424         * lib/setsockopt.c: New file, based on winsock.c.
43425         * lib/shutdown.c: New file, based on winsock.c.
43426         * lib/socket.c: New file, based on winsock.c.
43427         * lib/w32sock.h: New file, based on winsock.c.
43428         * lib/winsock.c: Remove file.
43429         * modules/accept: Likewise.
43430         * modules/bind: Likewise.
43431         * modules/connect: Likewise.
43432         * modules/getpeername: Likewise.
43433         * modules/getsockname: Likewise.
43434         * modules/getsockopt: Likewise.
43435         * modules/ioctl: Likewise.
43436         * modules/listen: Likewise.
43437         * modules/recv: Likewise.
43438         * modules/recvfrom: Likewise.
43439         * modules/send: Likewise.
43440         * modules/sendto: Likewise.
43441         * modules/setsockopt: Likewise.
43442         * modules/shutdown: Likewise.
43443         * modules/socket: Use socket.c instead of winsock.c.
43444         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
43445         * doc/posix-functions/accept.texi: Doc fix.
43446         * doc/posix-functions/bind.texi: Doc fix.
43447         * doc/posix-functions/close.texi: Doc fix.
43448         * doc/posix-functions/connect.texi: Doc fix.
43449         * doc/posix-functions/getpeername.texi: Doc fix.
43450         * doc/posix-functions/getsockname.texi: Doc fix.
43451         * doc/posix-functions/getsockopt.texi: Doc fix.
43452         * doc/posix-functions/ioctl.texi: Doc fix.
43453         * doc/posix-functions/listen.texi: Doc fix.
43454         * doc/posix-functions/recv.texi: Doc fix.
43455         * doc/posix-functions/recvfrom.texi: Doc fix.
43456         * doc/posix-functions/send.texi: Doc fix.
43457         * doc/posix-functions/sendto.texi: Doc fix.
43458         * doc/posix-functions/setsockopt.texi: Doc fix.
43459         * doc/posix-functions/shutdown.texi: Doc fix.
43460         * doc/posix-functions/socket.texi: Doc fix.
43461
43462 2008-10-20  Bruno Haible  <bruno@clisp.org>
43463
43464         Take into account the role of SIGABRT_COMPAT on Windows 2008.
43465         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
43466         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
43467         as an alias for SIGABRT.
43468         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
43469         (sigaction): Map it to SIGABRT.
43470         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
43471
43472 2008-10-20  Bruno Haible  <bruno@clisp.org>
43473
43474         * lib/fts.c: Don't include lstat.h.
43475         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
43476
43477         Move the lstat() declaration to <sys/stat.h>.
43478         * lib/lstat.h: Remove file.
43479         * lib/sys_stat.in.h: Add special invocation convention.
43480         (lstat): New declaration.
43481         * lib/lstat.c (orig_lstat): New function.
43482         (rpl_lstat): Use orig_lstat instead of lstat.
43483         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
43484         AC_C_INLINE. Set REPLACE_LSTAT.
43485         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
43486         and REPLACE_LSTAT.
43487         * modules/lstat (Files): Remove lib/lstat.h.
43488         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
43489         (Include): Specify <sys/stat.h> instead of lstat.h.
43490         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
43491         REPLACE_LSTAT.
43492         * NEWS: Mention the change.
43493
43494 2008-10-20  Bruno Haible  <bruno@clisp.org>
43495
43496         * modules/posix_spawn-tests: New file.
43497         * tests/test-posix_spawn3.c: New file.
43498
43499 2008-10-20  Bruno Haible  <bruno@clisp.org>
43500
43501         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
43502         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
43503         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
43504         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
43505         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
43506
43507 2008-10-20  Bruno Haible  <bruno@clisp.org>
43508
43509         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
43510         of posix_spawn on AIX 5.3.
43511
43512 2008-10-20  Bruno Haible  <bruno@clisp.org>
43513
43514         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
43515
43516 2008-10-20  Bruno Haible  <bruno@clisp.org>
43517
43518         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
43519         of AC_LANG_PROGRAM.
43520
43521 2008-10-20  Simon Josefsson  <simon@josefsson.org>
43522
43523         * lib/netdb.in.h: Don't define GNU specific constants until they
43524         are supported or needed.  Reported by Bruno Haible
43525         <bruno@clisp.org>.
43526
43527 2008-10-20  Simon Josefsson  <simon@josefsson.org>
43528
43529         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
43530
43531 2008-10-20  Simon Josefsson  <simon@josefsson.org>
43532
43533         * lib/getaddrinfo.h: Remove file.
43534         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
43535         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
43536         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
43537         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
43538         * modules/netdb: Substitute GNULIB_GETADDRINFO.
43539         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
43540         * tests/test-getaddrinfo.c: Likewise.
43541         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
43542         * NEWS: Mention change.
43543
43544 2008-10-19  Bruno Haible  <bruno@clisp.org>
43545
43546         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
43547
43548 2008-10-19  Bruno Haible  <bruno@clisp.org>
43549
43550         * lib/wait-process.c: Include simply <sys/wait.h>.
43551         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
43552         WIFSTOPPED): Remove fallback definitions.
43553         * modules/wait-process (Depends-on): Add sys_wait.
43554
43555         New module 'sys_wait'.
43556         * modules/sys_wait: New file.
43557         * lib/sys_wait.in.h: New file, partially copied from
43558         lib/wait-process.c.
43559         * m4/sys_wait_h.m4: New file.
43560         * doc/posix-headers/sys_wait.texi: Mention the new module.
43561
43562 2008-10-19  Bruno Haible  <bruno@clisp.org>
43563
43564         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
43565
43566 2008-10-19  Bruno Haible  <bruno@clisp.org>
43567
43568         Assume that waitpid() fills an 'int' status, not a 'union wait'.
43569         * lib/wait-process.c (WAIT_T): Remove type.
43570         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
43571         (wait_subprocess): Update.
43572
43573 2008-10-19  Bruno Haible  <bruno@clisp.org>
43574
43575         New module 'atoll'.
43576         * modules/atoll: New file.
43577         * lib/stdlib.in.h (atoll): New declaration.
43578         * lib/atoll.c: New file, from glibc with modifications.
43579         * m4/atoll.m4: New file.
43580         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
43581         HAVE_ATOLL.
43582         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
43583         * doc/posix-functions/atoll.texi: Mention the new module.
43584
43585 2008-10-19  Bruno Haible  <bruno@clisp.org>
43586
43587         Add strtoull() declaration to <stdlib.h>.
43588         * lib/stdlib.in.h (strtoull): New declaration.
43589         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
43590         Set HAVE_STRTOULL.
43591         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
43592         HAVE_STRTOULL.
43593         * modules/strtoull (Depends-on): Add stdlib.
43594         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43595         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
43596         HAVE_STRTOULL.
43597
43598 2008-10-19  Bruno Haible  <bruno@clisp.org>
43599
43600         Add strtoll() declaration to <stdlib.h>.
43601         * lib/stdlib.in.h (strtoll): New declaration.
43602         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
43603         Set HAVE_STRTOLL.
43604         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
43605         HAVE_STRTOLL.
43606         * modules/strtoll (Depends-on): Add stdlib.
43607         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43608         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
43609
43610 2008-10-19  Bruno Haible  <bruno@clisp.org>
43611
43612         * modules/bcopy (Depends-on): Add strings.
43613         (Include): Specify <strings.h>.
43614
43615 2008-10-19  Bruno Haible  <bruno@clisp.org>
43616
43617         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
43618
43619 2008-10-19  Bruno Haible  <bruno@clisp.org>
43620
43621         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
43622         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
43623         mingw.
43624
43625 2008-10-19  Bruno Haible  <bruno@clisp.org>
43626
43627         * lib/atanl.c: Don't include isnanl.h.
43628         * lib/cosl.c: Likewise.
43629         * lib/ldexpl.c: Likewise.
43630         * lib/logl.c: Likewise.
43631         * lib/sinl.c: Likewise.
43632         * lib/sqrtl.c: Likewise.
43633         * lib/tanl.c: Likewise.
43634
43635         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
43636         * lib/isnanf.h: Remove file.
43637         * lib/isnand.h: Remove file.
43638         * lib/isnanl.h: Remove file.
43639         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
43640         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
43641         macros.
43642         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
43643         HAVE_ISNANF, don't define it as a C macro.
43644         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
43645         HAVE_ISNAND, don't define it as a C macro.
43646         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
43647         HAVE_ISNANL, don't define it as a C macro.
43648         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
43649         HAVE_ISNAN[FDL].
43650         * modules/isnanf (Files): Remove lib/isnanf.h.
43651         (Depends-on): Add math.
43652         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43653         (Include): Specify <math.h> instead of isnanf.h.
43654         * modules/isnand (Files): Remove lib/isnand.h.
43655         (Depends-on): Add math.
43656         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43657         (Include): Specify <math.h> instead of isnand.h.
43658         * modules/isnanl (Files): Remove lib/isnanl.h.
43659         (Depends-on): Add math.
43660         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
43661         (Include): Specify <math.h> instead of isnanl.h.
43662         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
43663         HAVE_ISNAN[FDL].
43664         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
43665         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
43666         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
43667         * NEWS: Mention the change.
43668
43669 2008-10-18  Bruno Haible  <bruno@clisp.org>
43670
43671         Add getusershell(), setusershell(), endusershell() declarations to
43672         <unistd.h>.
43673         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
43674         declarations.
43675         * lib/getusershell.c: Include unistd.h.
43676         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
43677         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
43678         HAVE_GETUSERSHELL.
43679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
43680         and HAVE_GETUSERSHELL.
43681         * modules/getusershell (Depends-on): Add unistd, extensions.
43682         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43683         (Include): Specify <unistd.h>.
43684         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
43685         HAVE_GETUSERSHELL.
43686
43687 2008-10-18  Bruno Haible  <bruno@clisp.org>
43688
43689         Add a getloadavg() declaration to <stdlib.h>.
43690         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
43691         getloadavg declaration.
43692         (getloadavg): New declaration.
43693         * lib/getloadavg.c: Include <stdlib.h> first.
43694         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
43695         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
43696         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
43697         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
43698         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
43699         * modules/getloadavg (Depends-on): Add stdlib, extensions.
43700         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43701         (Include): Specify <stdlib.h>.
43702         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
43703         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
43704
43705 2008-10-18  Bruno Haible  <bruno@clisp.org>
43706
43707         * lib/dirchownmod.c: Don't include lchmod.h.
43708
43709         Move the lchmod() declaration to <sys/stat.h>.
43710         * lib/lchmod.h: Remove file.
43711         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
43712         (lchmod): New declaration, moved here from lib/lchown.h.
43713         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
43714         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
43715         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
43716         and HAVE_LCHMOD.
43717         * modules/lchmod (Files): Remove lib/lchmod.h.
43718         (Depends-on): Add sys_stat, extensions.
43719         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
43720         (Include): Specify <sys/stat.h> instead of lchmod.h.
43721         * modules/sys_stat (Depends-on): Add link-warning.
43722         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
43723         definition of GL_LINK_WARNING.
43724         * NEWS: Mention the change.
43725
43726 2008-10-18  Bruno Haible  <bruno@clisp.org>
43727
43728         * lib/fchdir.c: Don't include dirfd.h.
43729         * lib/fts.c: Likewise.
43730         * lib/getcwd.c: Likewise.
43731         * lib/glob.c: Likewise.
43732
43733         Move the dirfd() declaration to <dirent.h>.
43734         * lib/dirfd.h: Remove file.
43735         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
43736         (dirfd): New declaration.
43737         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
43738         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
43739         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
43740         HAVE_DECL_DIRFD.
43741         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
43742         HAVE_DECL_DIRFD.
43743         * modules/dirfd (Files): Remove lib/dirfd.h.
43744         (Depends-on): Add dirent, extensions.
43745         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
43746         (Include): Specify <dirent.h> instead of dirfd.h.
43747         * modules/dirent (Depends-on): Add link-warning.
43748         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
43749         definition of GL_LINK_WARNING.
43750         * NEWS: Mention the change.
43751
43752 2008-10-18  Bruno Haible  <bruno@clisp.org>
43753
43754         Move the euidaccess() declaration to <unistd.h>.
43755         * lib/euidaccess.h: Remove file.
43756         * lib/unistd.in.h (euidaccess): New declaration.
43757         * lib/euidaccess.c: Don't include euidaccess.h.
43758         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
43759         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
43760         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
43761         and HAVE_EUIDACCESS.
43762         * modules/euidaccess (Files): Remove lib/euidaccess.h.
43763         (Depends-on): Add unistd.
43764         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43765         (Include): Specify <unistd.h> instead of euidaccess.h.
43766         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
43767         HAVE_EUIDACCESS.
43768         * NEWS: Mention the change.
43769
43770 2008-10-18  Bruno Haible  <bruno@clisp.org>
43771
43772         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
43773
43774         Move the getdomainname() declaration to <unistd.h>.
43775         * lib/getdomainname.h: Remove file.
43776         * lib/unistd.in.h (getdomainname): New declaration.
43777         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
43778         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
43779         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
43780         HAVE_GETDOMAINNAME.
43781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43782         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
43783         * modules/getdomainname (Files): Remove lib/getdomainname.h.
43784         (Depends-on): Add unistd, extensions.
43785         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43786         (Includes): Specify <unistd.h> instead of getdomainname.h.
43787         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
43788         HAVE_GETDOMAINNAME.
43789         * NEWS: Mention the change.
43790
43791 2008-10-18  Bruno Haible  <bruno@clisp.org>
43792
43793         * modules/dirent: New file.
43794         * m4/dirent_h.m4: New file.
43795         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
43796         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
43797         * modules/fchdir (Files): Remove lib/dirent.in.h.
43798         (Depends-on): Add dirent.
43799         (Makefile.am): Move rules to modules/dirent.
43800         * doc/posix-headers/dirent.texi: Mention the new module.
43801
43802 2008-10-18  Bruno Haible  <bruno@clisp.org>
43803
43804         Avoid -Wunused-parameter warnings in public gnulib header files.
43805         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
43806         macro.
43807         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
43808
43809 2008-10-18  Bruno Haible  <bruno@clisp.org>
43810
43811         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
43812         * doc/glibc-functions/error.texi: Mention the module 'error'.
43813         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
43814         * doc/glibc-functions/getdomainname.texi: Mention the module
43815         'getdomainname'.
43816         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
43817         * doc/glibc-functions/getpagesize.texi: Mention the module
43818         'getpagesize'.
43819         * doc/glibc-functions/getusershell.texi: Mention the module
43820         'getusershell'.
43821         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
43822         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
43823         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
43824         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
43825         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
43826         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
43827         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
43828         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
43829         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
43830         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
43831         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
43832         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
43833         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
43834         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
43835
43836 2008-10-17  Bruno Haible  <bruno@clisp.org>
43837
43838         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
43839         HP-UX and IRIX, use -0.0L.
43840         * tests/test-ceill.c (minus_zero): Likewise.
43841         * tests/test-floorl.c (minus_zero): Likewise.
43842         * tests/test-frexpl.c (minus_zero): Likewise.
43843         * tests/test-isnan.c (minus_zerol): Likewise.
43844         * tests/test-isnanl.h (minus_zero): Likewise.
43845         * tests/test-ldexpl.c (minus_zero): Likewise.
43846         * tests/test-roundl.c (minus_zero): Likewise.
43847         * tests/test-signbit.c (minus_zerol): Likewise.
43848         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
43849         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
43850         * tests/test-truncl.c (minus_zero): Likewise.
43851         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
43852         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
43853         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
43854         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
43855
43856 2008-10-17  Bruno Haible  <bruno@clisp.org>
43857
43858         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
43859         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
43860         that it gets activated only for gcc >= 3.0.
43861         * lib/dirent.in.h: Likewise.
43862         * lib/errno.in.h: Likewise.
43863         * lib/fcntl.in.h: Likewise.
43864         * lib/float.in.h: Likewise.
43865         * lib/iconv.in.h: Likewise.
43866         * lib/inttypes.in.h: Likewise.
43867         * lib/locale.in.h: Likewise.
43868         * lib/math.in.h: Likewise.
43869         * lib/netdb.in.h: Likewise.
43870         * lib/netinet_in.in.h: Likewise.
43871         * lib/search.in.h: Likewise.
43872         * lib/signal.in.h: Likewise.
43873         * lib/spawn.in.h: Likewise.
43874         * lib/stdarg.in.h: Likewise.
43875         * lib/stdint.in.h: Likewise.
43876         * lib/stdio.in.h: Likewise.
43877         * lib/stdlib.in.h: Likewise.
43878         * lib/string.in.h: Likewise.
43879         * lib/strings.in.h: Likewise.
43880         * lib/sys_file.in.h: Likewise.
43881         * lib/sys_ioctl.in.h: Likewise.
43882         * lib/sys_select.in.h: Likewise.
43883         * lib/sys_socket.in.h: Likewise.
43884         * lib/sys_stat.in.h: Likewise.
43885         * lib/sys_time.in.h: Likewise.
43886         * lib/sysexits.in.h: Likewise.
43887         * lib/time.in.h: Likewise.
43888         * lib/unistd.in.h: Likewise.
43889         * lib/wchar.in.h: Likewise.
43890         * lib/wctype.in.h: Likewise.
43891         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43892
43893 2008-10-17  Jim Meyering  <meyering@redhat.com>
43894
43895         ignore-value: don't depend on inline module
43896         * modules/ignore-value (Depends-on): Remove 'inline'.
43897         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
43898         Suggestion from Bruno Haible.
43899
43900 2008-10-17  Bruno Haible  <bruno@clisp.org>
43901
43902         New implementation of condition variables for Win32.
43903         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
43904         (gl_linked_waitqueue_t): New type.
43905         (gl_cond_t): Use it.
43906         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
43907         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
43908         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
43909         (glthread_cond_init_func, glthread_cond_wait_func,
43910         glthread_cond_timedwait_func, glthread_cond_signal_func,
43911         glthread_cond_broadcast_func, glthread_cond_destroy_func):
43912         Reimplemented on the basis of gl_linked_waitqueue_t.
43913         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
43914         gl_waitqueue_t.
43915         (gl_rwlock_t): Update.
43916         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
43917
43918 2008-10-17  Simon Josefsson  <simon@josefsson.org>
43919
43920         * modules/recvfrom (Depends-on): Add dependency on getpeername.
43921         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
43922
43923 2008-10-17  Jim Meyering  <meyering@redhat.com>
43924
43925         ignore-value: new module
43926         * modules/ignore-value: New file.
43927         * lib/ignore-value.h: New file.
43928         * MODULES.html.sh (Compiler warning management): New section,
43929         just for this module.  More to come.
43930
43931 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
43932
43933         open-safer.c: avoid 'signed and unsigned in conditional...' warning
43934         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
43935         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
43936
43937 2008-10-16  Jim Meyering  <meyering@redhat.com>
43938
43939         openat-die.c: avoid 'no previous prototype' warning
43940         * lib/openat-die.c: Include "openat.h".
43941         Reported by Reuben Thomas <rrt@sc3d.org>.
43942
43943 2008-10-16  Simon Josefsson  <simon@josefsson.org>
43944
43945         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
43946         * lib/netdb.in.h: Fix typo.
43947         Reported by Bruno Haible  <bruno@clisp.org>
43948
43949         * lib/netdb.in.h: Include sys/socket.h for platforms without
43950         netdb.h, to get structures like hostent on MinGW.
43951         * modules/netdb (Depends-on): Add sys_socket.
43952
43953 2008-10-15  Simon Josefsson  <simon@josefsson.org>
43954
43955         * modules/netdb, modules/netdb-tests: New file.
43956         * m4/netdb_h.m4: New file.
43957         * lib/netdb.in.h: Add, currently just an empty file pending
43958         definitions.
43959         * tests/test-netdb.c: New file.
43960         * doc/posix-headers/netdb.texi: Mention that we replace it if
43961         needed.
43962         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43963         netdb.
43964
43965 2008-10-15  Simon Josefsson  <simon@josefsson.org>
43966
43967         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
43968         with code.
43969
43970 2008-10-13  Bruno Haible  <bruno@clisp.org>
43971
43972         * lib/glthread/cond.c (glthread_cond_wait_func,
43973         glthread_cond_timedwait_func): Add a comment.
43974
43975 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43976
43977         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
43978         * tests/test-select.c: Likewise,
43979
43980 2008-10-13  Bruno Haible  <bruno@clisp.org>
43981
43982         * lib/glthread/cond.c (glthread_cond_wait_func,
43983         glthread_cond_timedwait_func): Fix variable name.
43984         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
43985
43986 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
43987
43988         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
43989         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
43990         struct sockaddr.sa_len.
43991         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
43992
43993 2008-10-13  Simon Josefsson  <simon@josefsson.org>
43994
43995         * build-aux/pmccabe2html: Add css and css_url parameters.
43996
43997 2008-10-12  Bruno Haible  <bruno@clisp.org>
43998
43999         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
44000         calling aclx_get.
44001         Reported by Rainer Tammer <tammer@tammer.net>.
44002
44003 2008-10-12  Bruno Haible  <bruno@clisp.org>
44004
44005         Use msvcrt aware primitives for creation/termination of Win32 threads.
44006         * lib/glthread/thread.c: Include <process.h>.
44007         (glthread_create_func): Use _beginthreadex instead of CreateThread.
44008         (wrapper_func): Update signature.
44009         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
44010
44011 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44012             Bruno Haible  <bruno@clisp.org>
44013
44014         Provide a Win32 implementation of the 'cond' module.
44015         * lib/glthread/cond.h [USE_WIN32]: New implementation.
44016         * lib/glthread/cond.c (glthread_cond_init_func,
44017         glthread_cond_wait_func, glthread_cond_timedwait_func,
44018         glthread_cond_signal_func, glthread_cond_broadcast_func,
44019         glthread_cond_destroy_func) [USE_WIN32]: New functions.
44020         * modules/cond (Dependencies): Add gettimeofday.
44021
44022 2008-10-11  Bruno Haible  <bruno@clisp.org>
44023
44024         Make sleep work on older versions of mingw.
44025         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
44026         only whether it exists.
44027         * doc/posix-functions/sleep.texi: Mention the problem with older
44028         versions of mingw.
44029
44030 2008-10-11  Bruno Haible  <bruno@clisp.org>
44031
44032         New module 'shutdown'.
44033         * modules/shutdown: New file.
44034         * lib/sys_socket.in.h (shutdown): New declaration.
44035         * lib/winsock.c (shutdown): New function.
44036         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44037         GNULIB_SHUTDOWN.
44038         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
44039         * doc/posix-functions/shutdown.texi: Document the new module.
44040
44041 2008-10-11  Jim Meyering  <meyering@redhat.com>
44042
44043         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
44044
44045 2008-10-11  Bruno Haible  <bruno@clisp.org>
44046
44047         New module 'fclose'.
44048         * modules/fclose: New file.
44049         * lib/stdio.in.h (fclose): New declaration.
44050         * lib/fclose.c: New file.
44051         * m4/fclose.m4: New file.
44052         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
44053         REPLACE_FCLOSE.
44054         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
44055         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
44056         REPLACE_FCLOSE.
44057         * modules/close (Depends-on): fclose.
44058         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
44059
44060 2008-10-11  Bruno Haible  <bruno@clisp.org>
44061
44062         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
44063         set errno and don't call _close.
44064
44065 2008-10-10  Bruno Haible  <bruno@clisp.org>
44066
44067         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
44068         ACL, not afterwards. Fixes test failure on Cygwin.
44069
44070 2008-10-09  Ben Pfaff  <blp@gnu.org>
44071
44072         * build-aux/announce-gen: Fix gnulib version related part of usage
44073         message.  Die with a useful error message if no tarballs are
44074         found.
44075
44076 2008-10-10  Jim Meyering  <meyering@redhat.com>
44077
44078         bootstrap: use git's --depth=N option only if it's supported
44079         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
44080         recognize the --depth option.  Reported by Pádraig Brady.
44081
44082 2008-10-09  Bruno Haible  <bruno@clisp.org>
44083
44084         New module 'ioctl'.
44085         * modules/ioctl: New file.
44086         * lib/sys_socket.in.h (ioctl): Remove declaration.
44087         * lib/winsock.c: Include <sys/ioctl.h>.
44088         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
44089         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
44090         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
44091         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
44092         * doc/posix-functions/ioctl.texi: Mention the new module.
44093
44094 2008-10-09  Bruno Haible  <bruno@clisp.org>
44095
44096         New module 'sys_ioctl'.
44097         * lib/sys_ioctl.in.h: New file.
44098         * m4/sys_ioctl_h.m4: New file.
44099         * modules/sys_ioctl: New file.
44100         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
44101
44102 2008-10-09  Bruno Haible  <bruno@clisp.org>
44103
44104         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
44105         * lib/winsock.c: Include <stdarg.h>.
44106         (rpl_ioctl): Change to second argument 'int' and then varargs.
44107
44108 2008-10-09  Bruno Haible  <bruno@clisp.org>
44109
44110         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
44111         when the sys_socket module is present and the system has <winsock2.h>.
44112
44113 2008-10-09  Bruno Haible  <bruno@clisp.org>
44114
44115         * doc/posix-functions/close.texi: Mention module 'close' instead of
44116         module 'sys_socket'.
44117
44118 2008-10-09  Bruno Haible  <bruno@clisp.org>
44119
44120         * doc/glibc-headers/sys_ioctl.texi: New file.
44121         * doc/gnulib.texi: Include it.
44122
44123 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44124             Bruno Haible  <bruno@clisp.org>
44125
44126         Combine the two replacements of 'close'.
44127         * lib/sys_socket.in.h (close): Define to a reminder to include
44128         <unistd.h>.
44129         (_gl_close_fd_maybe_socket): New declaration.
44130         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
44131         * lib/winsock.c (close): Remove undefinition.
44132         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
44133         needed for the gnulib module 'close'.
44134         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
44135         define to an error symbol or to a warning, if suitable.
44136         * lib/close.c: Include <sys/socket.h>.
44137         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
44138         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
44139         UNISTD_H_HAVE_WINSOCK2_H.
44140         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
44141         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44142         UNISTD_H_HAVE_WINSOCK2_H.
44143         * modules/sys_socket (Files): Add m4/unistd_h.m4.
44144         (configure.ac): Set a module indicator.
44145         (Makefile.am): Substitute GNULIB_CLOSE.
44146         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
44147         * modules/poll-tests (Depends-on): Add close.
44148         * modules/select-tests (Depends-on): Likewise.
44149
44150 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44151             Bruno Haible  <bruno@clisp.org>
44152
44153         New module 'close'.
44154         * modules/close: New file.
44155         * lib/unistd.in.h (close): Move declaration out of the
44156         FCHDIR_REPLACEMENT scope.
44157         (_gl_unregister_fd): New declaration.
44158         * lib/close.c: New file.
44159         * lib/fchdir.c (rpl_close): Remove function.
44160         * m4/close.m4: New file.
44161         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
44162         close.
44163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
44164         REPLACE_CLOSE.
44165         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
44166         REPLACE_CLOSE.
44167         * modules/fchdir (Depends-on): Add close.
44168
44169 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44170             Bruno Haible  <bruno@clisp.org>
44171
44172         * lib/fcntl.in.h (open): Simplify conditionals.
44173         (_gl_register_fd): New declaration.
44174         * lib/fchdir.c (rpl_open): Remove function.
44175         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
44176         also.
44177         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
44178         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
44179         open.
44180
44181 2008-10-09  Jim Meyering  <meyering@redhat.com>
44182
44183         GNUmakefile: use the more name-space-friendly "_version"
44184         * top/GNUmakefile (_dummy): Update.
44185         (_version): Rename from "version".
44186
44187 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44188             Bruno Haible  <bruno@clisp.org>
44189
44190         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
44191         rpl_close.
44192         (_gl_register_fd): New function, extracted from rpl_open.
44193         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
44194         (rpl_open, rpl_opendir): Use _gl_register_fd.
44195
44196 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
44197
44198         Fix organization of 'open' replacement.
44199         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
44200         (gl_FUNC_OPEN): Use it.
44201         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
44202
44203 2008-10-08  Bruno Haible  <bruno@clisp.org>
44204
44205         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
44206
44207 2008-10-08  Simon Josefsson  <simon@josefsson.org>
44208
44209         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
44210         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
44211         listen).
44212
44213 2008-10-08  Eric Blake  <ebb9@byu.net>
44214
44215         GNUmakefile: add 'make version' target
44216         * top/GNUmakefile (_curr-ver): Split version update rules...
44217         (version): ...into a target.
44218
44219 2008-10-07  Bruno Haible  <bruno@clisp.org>
44220
44221         Use a more portable replacement expression for -0.0L.
44222         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
44223         instead of -0.0L. Fix m4 quotation.
44224
44225         * tests/test-signbit.c: Include <float.h>.
44226         (minus_zero): New variable.
44227         (test_signbitl): Use minus_zero instead of -zero.
44228         * modules/signbit-tests (Depends-on): Add float.
44229
44230         * tests/test-ceill.c: Include <float.h>.
44231         (zero): Remove variable.
44232         (minus_zero): New variable.
44233         (main): Use minus_zero instead of -zero.
44234         * modules/ceill-tests (Depends-on): Add float.
44235
44236         * tests/test-floorl.c: Include <float.h>.
44237         (zero): Remove variable.
44238         (minus_zero): New variable.
44239         (main): Use minus_zero instead of -zero.
44240         * modules/floorl-tests (Depends-on): Add float.
44241
44242         * tests/test-roundl.c: Include <float.h>.
44243         (zero): Remove variable.
44244         (minus_zero): New variable.
44245         (main): Use minus_zero instead of -zero.
44246         * modules/roundl-tests (Depends-on): Add float.
44247
44248         * tests/test-truncl.c: Include <float.h>.
44249         (zero): Remove variable.
44250         (minus_zero): New variable.
44251         (main): Use minus_zero instead of -zero.
44252         * modules/truncl-tests (Depends-on): Add float.
44253
44254         * tests/test-frexpl.c (zero): Remove variable.
44255         (minus_zero): New variable.
44256         (main): Use minus_zero instead of -zero.
44257         * modules/frexpl-tests (Depends-on): Add float.
44258
44259         * tests/test-isnan.c (zerol): Remove variable.
44260         (minus_zerol): New variable.
44261         (test_long_double): Use minus_zerol instead of -zerol.
44262         * modules/isnan-tests (Depends-on): Add float.
44263
44264         * tests/test-isnanl.h (zero): Remove variable.
44265         (minus_zero): New variable.
44266         (main): Use minus_zero instead of -zero.
44267         * modules/isnanl-nolibm-tests (Depends-on): Add float.
44268         * modules/isnanl-tests (Depends-on): Add float.
44269
44270         * tests/test-ldexpl.c (zero): Remove variable.
44271         (minus_zero): New variable.
44272         (main): Use minus_zero instead of -zero.
44273         * modules/ldexpl-tests (Depends-on): Add float.
44274
44275         * tests/test-snprintf-posix.h (zerol): Remove variable.
44276         (minus_zerol): New variable.
44277         (test_function): Use minus_zerol instead of -zerol.
44278         * modules/snprintf-posix-tests (Depends-on): Add float.
44279         * modules/vsnprintf-posix-tests (Depends-on): Add float.
44280
44281         * tests/test-sprintf-posix.h (zerol): Remove variable.
44282         (minus_zerol): New variable.
44283         (test_function): Use minus_zerol instead of -zerol.
44284         * modules/sprintf-posix-tests (Depends-on): Add float.
44285         * modules/vsprintf-posix-tests (Depends-on): Add float.
44286
44287         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
44288         (minus_zerol): New variable.
44289         (test_function): Use minus_zerol instead of -zerol.
44290         * modules/vasnprintf-posix-tests (Depends-on): Add float.
44291
44292         * tests/test-vasprintf-posix.c (zerol): Remove variable.
44293         (minus_zerol): New variable.
44294         (test_function): Use minus_zerol instead of -zerol.
44295         * modules/vasprintf-posix-tests (Depends-on): Add float.
44296
44297 2008-10-07  Simon Josefsson  <simon@josefsson.org>
44298
44299         * MODULES.html.sh (Support for building documentation): Mention
44300         pmccabe2html.  Sort entries.
44301
44302         Add pmccabe2html module, from gnupdf.
44303         * build-aux/pmccabe.css: New file.
44304         * build-aux/pmccabe2html: New file.
44305         * m4/pmccabe2html.m4: New file.
44306         * modules/pmccabe2html: New file.
44307
44308 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
44309
44310         flock: new module
44311         * MODULES.html.sh: Add to list of modules.
44312         * lib/flock.c: flock implementation for Windows and Unix systems
44313         which have fcntl.
44314         * doc/glibc-functions/flock.texi: Update documentation.
44315         * lib/sys_file.in.h: <sys/file.h> header file.
44316         * m4/flock.m4: M4 macros.
44317         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
44318         * modules/flock: flock module.
44319         * modules/flock-tests: flock tests module.
44320         * modules/sys_file: sys/file.h module.
44321         * tests/test-flock.c: test suite for flock.
44322
44323 2008-10-06  Jim Meyering  <meyering@redhat.com>
44324
44325         bootstrap: check for LT_INIT more portably still ;-)
44326         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
44327         Spotted by Bruno Haible.
44328
44329 2008-10-06  Eric Blake  <ebb9@byu.net>
44330
44331         test-signbit: avoid tripping Irix cc bug on -0.0L
44332         * tests/test-signbit.c (minus_zerol): Delete, and replace with
44333         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
44334         entire testsuite consistent and avoids an Irix 6.2 bug.
44335
44336 2008-10-05  Bruno Haible  <bruno@clisp.org>
44337             Jim Meyering  <jim@meyering.net>
44338
44339         Add an option for ignoring EPIPE during close_stdout.
44340         * lib/closeout.h: Include <stdbool.h>.
44341         (close_stdout_set_ignore_EPIPE): New declaration.
44342         * lib/closeout.c: Include <stdbool.h>.
44343         (ignore_EPIPE): New variable.
44344         (close_stdout_set_ignore_EPIPE): New function.
44345         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
44346         * lib/close-stream.c (close_stream): Mention the possible EPIPE
44347         failure.
44348         * modules/closeout (Depends-on): Add stdbool.
44349
44350 2008-10-05  Bruno Haible  <bruno@clisp.org>
44351
44352         * modules/accept: New file.
44353         * modules/bind: New file.
44354         * modules/connect: New file.
44355         * modules/getpeername: New file.
44356         * modules/getsockname: New file.
44357         * modules/getsockopt: New file.
44358         * modules/listen: New file.
44359         * modules/recv: New file.
44360         * modules/recvfrom: New file.
44361         * modules/send: New file.
44362         * modules/sendto: New file.
44363         * modules/setsockopt: New file.
44364         * modules/socket: New file.
44365         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
44366         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
44367         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
44368         the particular module is requested. Add a link warning when the
44369         particular module is not requested.
44370         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
44371         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
44372         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
44373         the particular module is requested.
44374         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
44375         gl_SYS_SOCKET_H_DEFAULTS): New macros.
44376         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
44377         * modules/sys_socket (Depends-on): Add link-warning.
44378         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
44379         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
44380         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
44381         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
44382         GL_LINK_WARNING.
44383         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
44384         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
44385         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
44386         * doc/posix-functions/getpeername.texi: Mention the new module
44387         'getpeername'.
44388         * doc/posix-functions/getsockname.texi: Mention the new module
44389         'getsockname'.
44390         * doc/posix-functions/getsockopt.texi: Mention the new module
44391         'getsockopt'.
44392         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
44393         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
44394         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
44395         * doc/posix-functions/send.texi: Mention the new module 'send'.
44396         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
44397         * doc/posix-functions/setsockopt.texi: Mention the new module
44398         'setsockopt'.
44399         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
44400         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
44401         listen, connect, accept.
44402         * modules/select-tests (Depends-on): Likewise.
44403
44404 2008-10-05  Bruno Haible  <bruno@clisp.org>
44405
44406         * lib/winsock.c (strerror): Remove unused #undef.
44407         (rpl_close): Remove unused local variable.
44408
44409         * modules/sys_socket (Depends-on); Add errno.
44410
44411 2008-10-05  Bruno Haible  <bruno@clisp.org>
44412
44413         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
44414         (select): Add a link warning when the 'select' module is not used.
44415         * modules/sys_select (Depends-on): Add link-warning.
44416         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
44417         Suggested by Paolo Bonzini.
44418
44419 2008-10-05  Jim Meyering  <meyering@redhat.com>
44420
44421         bootstrap: check for LT_INIT more portably
44422         * build-aux/bootstrap: Avoid using grep -E, since it's not
44423         portable enough.  Suggestion from Bruno Haible.
44424
44425 2008-10-05  Bruno Haible  <bruno@clisp.org>
44426
44427         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
44428         as being fixed by gnulib.
44429
44430 2008-10-05  Bruno Haible  <bruno@clisp.org>
44431
44432         * modules/select-tests: New file, mostly copied from
44433         modules/sys_select-tests.
44434         * tests/test-select.c: New file, mostly copied from
44435         tests/test-sys_select.c.
44436         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
44437         * modules/sys_select-tests (Depends-on): Remove all dependencies.
44438         (Makefile.am): Remove test_sys_select_LDADD.
44439
44440         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
44441         to an undefined symbol, for an error message.
44442         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
44443         (gl_SYS_SELECT_H_DEFAULTS): New macro.
44444         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
44445         winsock-select.c here.
44446         * modules/sys_select (Files): Remove lib/winsock-select.c.
44447         (Depends-on): Remove alloca.
44448         (Makefile.am): Substitute GNULIB_SELECT.
44449         * modules/select: New file.
44450         * doc/posix-functions/select.texi: Update.
44451
44452 2008-10-05  Bruno Haible  <bruno@clisp.org>
44453
44454         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
44455         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
44456         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
44457         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
44458         getdtablesize.
44459         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
44460         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
44461
44462 2008-10-05  Bruno Haible  <bruno@clisp.org>
44463
44464         * modules/getdtablesize-tests: New file.
44465         * tests/test-getdtablesize.c: New file.
44466
44467         New module 'getdtablesize'.
44468         * lib/unistd.in.h (getdtablesize): New declaration.
44469         * lib/getdtablesize.c: New file.
44470         * m4/getdtablesize.m4: New file.
44471         * modules/getdtablesize: New file.
44472         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44473         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
44474         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
44475         HAVE_GETDTABLESIZE.
44476         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
44477
44478 2008-10-05  Bruno Haible  <bruno@clisp.org>
44479
44480         * modules/sched (Makefile.am): Fix typo.
44481         Reported by Simon Josefsson.
44482
44483 2008-10-05  Jim Meyering  <meyering@redhat.com>
44484
44485         bootstrap: check for LT_INIT, too
44486         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
44487         are deprecated.  Suggestion from Ralf Wildenhues.
44488
44489 2008-10-05  Bruno Haible  <bruno@clisp.org>
44490
44491         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
44492         overriding them by ours.
44493         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
44494
44495 2008-10-05  Jim Meyering  <meyering@redhat.com>
44496
44497         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
44498         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
44499         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
44500
44501 2008-10-04  Bruno Haible  <bruno@clisp.org>
44502
44503         * modules/dup2 (License): Change to LGPLv2+.
44504         * modules/sleep (License): Likewise.
44505         * modules/perror (License): Likewise.
44506         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
44507         Blake.
44508         * modules/signal (License): Likewise.
44509         * modules/sigprocmask (License): Likewise.
44510         * modules/raise (License): Change to LGPLv2+, with approval by Jim
44511         Meyering.
44512
44513 2008-10-04  Bruno Haible  <bruno@clisp.org>
44514
44515         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
44516         Reported by Rainer Tammer <tammer@tammer.net>.
44517
44518 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
44519             Bruno Haible  <bruno@clisp.org>
44520
44521         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
44522         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
44523         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
44524
44525 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
44526
44527         filevercmp: new module
44528         * lib/filevercmp.h: New function filevercmp comparing version strings.
44529         * lib/filevercmp.c: Implementation of filevercmp function.
44530         * modules/filevercmp: Module metadata.
44531         * tests/test-filevercmp.c: Unit test for new module.
44532         * modules/filevercmp-tests: Unit test metadata.
44533         * MODULES.html.sh: Add filevercmp module.
44534
44535 2008-10-03  Bruno Haible  <bruno@clisp.org>
44536
44537         * lib/c-ctype.h: Add comment.
44538         Reported by Jim Meyering.
44539
44540 2008-10-02  Bruno Haible  <bruno@clisp.org>
44541
44542         * modules/posix_spawn-internal (Depends-on): Add 'open'.
44543
44544 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
44545
44546         * build-aux/bootstrap: Allow renaming bootstrap, and change the
44547         name of bootstrap.conf accordingly.
44548
44549 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
44550
44551         * build-aux/bootstrap: Install git-merge-changelog configuration
44552         items into .gitconfig if needed.
44553
44554 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
44555
44556         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
44557         git repository, and initialize/update it accordingly.
44558
44559 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
44560
44561         * modules/fsync-tests: New file.
44562         * tests/test-fsync.c: New file.
44563
44564         New module 'fsync'.
44565         * lib/fsync.c: New file.
44566         * m4/fsync.m4: New file.
44567         * modules/fsync: New file.
44568         * lib/unistd.in.h (fsync): New declaration.
44569         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
44570         GNULIB_FSYNC and HAVE_FSYNC.
44571         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
44572         * MODULES.html.sh (posix_functions): Add fsync.
44573         * doc/posix-functions/fsync.texi: Mention the new module.
44574
44575 2008-10-02  Jim Meyering  <meyering@redhat.com>
44576
44577         fts.c: sync with similar code from coreutils' remove.c
44578         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
44579         Guard also with "#if defined __linux__", since for now at least,
44580         this code is Linux-kernel-specific.
44581
44582 2008-10-02  Jim Meyering  <meyering@redhat.com>
44583
44584         fts: bug fixes
44585         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
44586         Include <sys/vfs.h>, not <sys/statfs.h>.
44587
44588         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
44589         Include <sys/vfs.h>, not <sys/statfs.h>.
44590
44591 2008-10-01  Bruno Haible  <bruno@clisp.org>
44592
44593         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
44594         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
44595         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
44596         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
44597         * doc/posix-functions/posix_spawnp.texi: Likewise.
44598         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
44599         whether posix_spawn actually works.
44600         * m4/pipe.m4 (gl_PIPE): Likewise.
44601         * modules/execute (Files): Add m4/posix_spawn.m4.
44602         * modules/pipe (Files): Add m4/posix_spawn.m4.
44603         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
44604
44605 2008-10-01  Jim Meyering  <meyering@redhat.com>
44606
44607         remove trailing spaces
44608         * NEWS: Likewise.
44609         * lib/poll.c (poll): Likewise.
44610         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
44611         * lib/winsock.c (rpl_close): Likewise.
44612         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
44613         * modules/yield: Likewise.
44614         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
44615         * tests/test-sys_select.c (connect_to_socket): Likewise.
44616
44617         fts.c: adjust a new interface to be more generally useful
44618         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
44619         (fts_build): Adjust caller.
44620
44621 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44622
44623         * modules/cond-tests: New file.
44624         * tests/test-cond.c: New file.
44625
44626 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44627             Bruno Haible  <bruno@clisp.org>
44628
44629         * modules/cond (Dependencies): Add errno, time.
44630         * lib/glthread/cond.h: Include <time.h>.
44631         (gl_cond_define, gl_cond_define_initialized): Use the same definition
44632         across platforms.
44633
44634 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44635             Bruno Haible  <bruno@clisp.org>
44636
44637         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
44638
44639 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44640             Bruno Haible  <bruno@clisp.org>
44641
44642         * modules/tls-tests (Depends-on): Add thread, yield.
44643         (configure.ac): Remove all checks.
44644         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
44645         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
44646         gl_thread_self): Remove definitions. Include glthread/thread.h and
44647         glthread/yield.h instead.
44648         (test_tls): Pass an additional NULL argument to gl_thread_join.
44649
44650 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44651             Bruno Haible  <bruno@clisp.org>
44652
44653         * modules/lock-tests (Depends-on): Add thread, yield.
44654         (configure.ac): Remove all checks.
44655         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
44656         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
44657         gl_thread_self): Remove definitions. Include glthread/thread.h and
44658         glthread/yield.h instead.
44659         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
44660         additional NULL argument to gl_thread_join.
44661
44662 2008-09-30  Bruno Haible  <bruno@clisp.org>
44663
44664         Fix the Win32 implementation of the 'thread' module.
44665         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
44666         pointer type.
44667         (gl_thread_self): Invoke gl_thread_self_func.
44668         (gl_thread_self_func): New declaration.
44669         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
44670         (do_init_self_key, init_self_key): New functions.
44671         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
44672         Remove some fields.
44673         (running_threads, running_lock): Remove variables.
44674         (get_current_thread_handle): New function.
44675         (gl_thread_self_func, wrapper_func, glthread_create_func,
44676         glthread_join_func, gl_thread_exit_func): Largely rewritten and
44677         simplified.
44678
44679 2008-09-30  Bruno Haible  <bruno@clisp.org>
44680
44681         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
44682         files.
44683
44684 2008-09-30  Jim Meyering  <meyering@redhat.com>
44685
44686         fts.m4: correct the test for statfs.f_type
44687         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
44688         when checking for statfs.f_type.
44689
44690 2008-09-15  Simon Josefsson  <simon@josefsson.org>
44691
44692         tests: avoid some compiler warnings
44693         * tests/test-memchr.c (main): Pass NULL indirectly.
44694         * tests/test-getdate.c (main): Remove unused variable 'ret'.
44695
44696 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
44697
44698         getdate.y: disallow countable dayshifts like "4 yesterday ago"
44699         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
44700         exactly specified dayshifts.
44701         (dayshift): New rule.
44702         (rel): Add dayshift.
44703         (relative_time_table) [tomorrow, yesterday, today, now]:
44704         Use tDAY_SHIFT in place of tDAY_UNIT.
44705         * tests/test-getdate.c: Add tests for now-disallowed countable
44706         dayshifts, e.g., "4 yesterday ago".
44707
44708 2008-09-29  Bruno Haible  <bruno@clisp.org>
44709
44710         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
44711         * tests/test-posix_spawn1.in.sh: Renamed from
44712         tests/test-posix_spawn.in.sh.
44713         * tests/test-posix_spawn2.c: New file.
44714         * tests/test-posix_spawn2.in.sh: New file.
44715         * modules/posix_spawnp-tests (Files): Update.
44716         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
44717
44718 2008-09-29  Bruno Haible  <bruno@clisp.org>
44719
44720         Propagate effects of putenv/setenv/unsetenv to child processes.
44721         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
44722         * lib/pipe.c (create_pipe): Likewise.
44723
44724 2008-09-29  Bruno Haible  <bruno@clisp.org>
44725
44726         Enable use of shell scripts as executables in mingw.
44727         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
44728         run the program as a shell script.
44729         * lib/pipe.c (create_pipe): Likewise.
44730         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
44731         resulting array.
44732
44733 2008-09-29  Eric Blake  <ebb9@byu.net>
44734
44735         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
44736
44737 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
44738
44739         * doc/posix-functions/accept.texi: Update mingw problems.
44740         * doc/posix-functions/bind.texi: Update mingw problems.
44741         * doc/posix-functions/close.texi: Update mingw problems.
44742         * doc/posix-functions/connect.texi: Update mingw problems.
44743         * doc/posix-functions/getpeername.texi: Update mingw problems.
44744         * doc/posix-functions/getsockname.texi: Update mingw problems.
44745         * doc/posix-functions/getsockopt.texi: Update mingw problems.
44746         * doc/posix-functions/ioctl.texi: Update mingw problems.
44747         * doc/posix-functions/listen.texi: Update mingw problems.
44748         * doc/posix-functions/recv.texi: Update mingw problems.
44749         * doc/posix-functions/recvfrom.texi: Update mingw problems.
44750         * doc/posix-functions/select.texi: Update mingw problems.
44751         * doc/posix-functions/send.texi: Update mingw problems.
44752         * doc/posix-functions/sendto.texi: Update mingw problems.
44753         * doc/posix-functions/setsockopt.texi: Update mingw problems.
44754         * doc/posix-functions/socket.texi: Update mingw problems.
44755
44756 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
44757             Bruno Haible  <bruno@clisp.org>
44758
44759         * lib/sys_select.in.h: Include sys/time.h.
44760         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
44761         * modules/sys_select: Depend on sys_time.
44762         * tests/test-sys_select.c: Test that sys/select.h defines struct
44763         timeval fully.
44764
44765 2008-09-29  Bruno Haible  <bruno@clisp.org>
44766
44767         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
44768         * lib/sys_select.in.h: Likewise.
44769
44770 2008-09-29  Bruno Haible  <bruno@clisp.org>
44771
44772         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
44773
44774 2008-09-29  Bruno Haible  <bruno@clisp.org>
44775
44776         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
44777         Set LIBSOCKET instead of augmenting LIBS.
44778         * modules/sockets (Link): New section.
44779         * modules/sockets-tests (test_sockets_LDADD): New variable.
44780         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
44781         * modules/poll-tests (test_poll_LDADD): New variable.
44782         * NEWS: Document the change.
44783
44784 2008-09-29  Bruno Haible  <bruno@clisp.org>
44785
44786         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
44787         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
44788         ARPA_INET_H directly.
44789         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44790
44791 2008-09-28  Bruno Haible  <bruno@clisp.org>
44792
44793         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
44794         from gl_HEADER_SYS_SOCKET.
44795         (gl_HEADER_SYS_SOCKET): Invoke it.
44796         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44797
44798 2008-09-28  Bruno Haible  <bruno@clisp.org>
44799
44800         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
44801         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
44802         Needed on OSF/1 4.0.
44803
44804 2008-09-28  Bruno Haible  <bruno@clisp.org>
44805
44806         Override open more carefully.
44807         * lib/open.c (orig_open): New function.
44808         (rpl_open): Use orig_open instead of open.
44809         * lib/fcntl.in.h: Add special invocation convention.
44810         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
44811         (gl_FUNC_OPEN): Invoke it.
44812
44813         Override freopen more carefully.
44814         * lib/freopen.c (orig_freopen): New function.
44815         (rpl_freopen): Use orig_freopen instead of freopen.
44816         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
44817         (gl_FUNC_FREOPEN): Invoke it.
44818
44819         Override fopen more carefully.
44820         * lib/fopen.c (orig_fopen): New function.
44821         (rpl_fopen): Use orig_fopen instead of fopen.
44822         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
44823         (gl_FUNC_FOPEN): Invoke it.
44824         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
44825
44826 2008-09-28  Bruno Haible  <bruno@clisp.org>
44827
44828         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
44829         SIGPIPE.
44830
44831 2008-09-28  Bruno Haible  <bruno@clisp.org>
44832
44833         * tests/test-sigaction.c (handler, main): Disable the check whether
44834         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
44835         glibc systems with LinuxThreads.
44836
44837 2008-09-28  Bruno Haible  <bruno@clisp.org>
44838
44839         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
44840
44841         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
44842         with AIX xlc.
44843         * lib/fcntl.in.h (open): Likewise.
44844         Reported by Rainer Tammer <tammer@tammer.net>.
44845
44846 2008-09-28  Bruno Haible  <bruno@clisp.org>
44847
44848         * modules/posix_spawnp-tests: New file.
44849         * tests/test-posix_spawn.c: New file.
44850         * tests/test-posix_spawn.in.sh: New file.
44851
44852         New module 'posix_spawnp'.
44853         * modules/posix_spawnp: New file.
44854         * lib/spawnp.c: New file, from GNU libc with modifications.
44855         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
44856
44857         New module 'posix_spawn'.
44858         * modules/posix_spawn: New file.
44859         * lib/spawn.c: New file, from GNU libc with modifications.
44860         * doc/posix-functions/posix_spawn.texi: Mention the new module.
44861
44862         New module 'posix_spawnattr_destroy'.
44863         * modules/posix_spawnattr_destroy: New file.
44864         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
44865         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
44866         module.
44867
44868         New module 'posix_spawnattr_setsigmask'.
44869         * modules/posix_spawnattr_setsigmask: New file.
44870         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
44871         modifications.
44872         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
44873         new module.
44874
44875         New module 'posix_spawnattr_getsigmask'.
44876         * modules/posix_spawnattr_getsigmask: New file.
44877         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
44878         modifications.
44879         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
44880         new module.
44881
44882         New module 'posix_spawnattr_setsigdefault'.
44883         * modules/posix_spawnattr_setsigdefault: New file.
44884         * lib/spawnattr_setdefault.c: New file, from GNU libc with
44885         modifications.
44886         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
44887         new module.
44888
44889         New module 'posix_spawnattr_getsigdefault'.
44890         * modules/posix_spawnattr_getsigdefault: New file.
44891         * lib/spawnattr_getdefault.c: New file, from GNU libc with
44892         modifications.
44893         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
44894         new module.
44895
44896         New module 'posix_spawnattr_setschedpolicy'.
44897         * modules/posix_spawnattr_setschedpolicy: New file.
44898         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
44899         modifications.
44900         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
44901         new module.
44902
44903         New module 'posix_spawnattr_getschedpolicy'.
44904         * modules/posix_spawnattr_getschedpolicy: New file.
44905         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
44906         modifications.
44907         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
44908         new module.
44909
44910         New module 'posix_spawnattr_setschedparam'.
44911         * modules/posix_spawnattr_setschedparam: New file.
44912         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
44913         modifications.
44914         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
44915         new module.
44916
44917         New module 'posix_spawnattr_getschedparam'.
44918         * modules/posix_spawnattr_getschedparam: New file.
44919         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
44920         modifications.
44921         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
44922         new module.
44923
44924         New module 'posix_spawnattr_setpgroup'.
44925         * modules/posix_spawnattr_setpgroup: New file.
44926         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
44927         modifications.
44928         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
44929         module.
44930
44931         New module 'posix_spawnattr_getpgroup'.
44932         * modules/posix_spawnattr_getpgroup: New file.
44933         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
44934         modifications.
44935         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
44936         module.
44937
44938         New module 'posix_spawnattr_setflags'.
44939         * modules/posix_spawnattr_setflags: New file.
44940         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
44941         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
44942         module.
44943
44944         New module 'posix_spawnattr_getflags'.
44945         * modules/posix_spawnattr_getflags: New file.
44946         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
44947         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
44948         module.
44949
44950         New module 'posix_spawnattr_init'.
44951         * modules/posix_spawnattr_init: New file.
44952         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
44953         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
44954         module.
44955
44956         New module 'posix_spawn_file_actions_destroy'.
44957         * modules/posix_spawn_file_actions_destroy: New file.
44958         * lib/spawn_faction_destroy.c: New file, from GNU libc with
44959         modifications.
44960         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
44961         the new module.
44962
44963         New module 'posix_spawn_file_actions_addopen'.
44964         * modules/posix_spawn_file_actions_addopen: New file.
44965         * lib/spawn_faction_addopen.c: New file, from GNU libc with
44966         modifications.
44967         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
44968         the new module.
44969
44970         New module 'posix_spawn_file_actions_adddup2'.
44971         * modules/posix_spawn_file_actions_adddup2: New file.
44972         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
44973         modifications.
44974         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
44975         the new module.
44976
44977         New module 'posix_spawn_file_actions_addclose'.
44978         * modules/posix_spawn_file_actions_addclose: New file.
44979         * lib/spawn_faction_addclose.c: New file, from GNU libc with
44980         modifications.
44981         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
44982         the new module.
44983
44984         New module 'posix_spawn_file_actions_init'.
44985         * modules/posix_spawn_file_actions_init: New file.
44986         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
44987         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
44988         new module.
44989
44990         New module 'posix_spawn-internal'.
44991         * modules/posix_spawn-internal: New file.
44992         * lib/spawn_int.h: New file, from GNU libc with modifications.
44993         * lib/spawni.c: New file, from GNU libc with modifications.
44994         * m4/posix_spawn.m4: New file.
44995
44996         New module 'spawn'.
44997         * modules/spawn: New file.
44998         * lib/spawn.in.h: New file, from GNU libc with modifications.
44999         * m4/spawn_h.m4: New file.
45000         * doc/posix-headers/spawn.texi: Mention the new module.
45001
45002 2008-09-28  Bruno Haible  <bruno@clisp.org>
45003
45004         * modules/sched-tests: New file.
45005         * tests/test-sched.c: New file.
45006
45007         New module 'sched'.
45008         * modules/sched: New file.
45009         * lib/sched.in.h: New file.
45010         * m4/sched_h.m4: New file.
45011         * doc/posix-headers/sched.texi: Mention the new module.
45012
45013 2008-09-27  Eric Blake  <ebb9@byu.net>
45014
45015         Fix previous patch, and tweak references to $0.
45016         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
45017         (func_version, func_gnulib_dir): Don't call this program
45018         gnulib-tool.
45019         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
45020         with using $0 in function.
45021         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
45022         (func_fatal_error): Reuse the name the user invoked us with.
45023
45024 2008-09-27  Bruno Haible  <bruno@clisp.org>
45025
45026         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
45027         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
45028         (gl_ICONV_H): Not here.
45029         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
45030         instead of assigning ICONV_H directly.
45031
45032         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
45033         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
45034         WCHAR_H directly.
45035
45036 2008-09-27  Bruno Haible  <bruno@clisp.org>
45037
45038         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
45039         * modules/arpa_inet (Depends-on): Add link-warning.
45040         (Makefile.am): Insert the definition of GL_LINK-WARNING.
45041         * modules/unistd (Makefile.am): Likewise.
45042
45043 2008-09-26  Bruno Haible  <bruno@clisp.org>
45044
45045         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
45046         variables.
45047         (func_version): Essentially copied from gnulib-tool.
45048         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
45049         func_readlink): Copied from gnulib-tool.
45050
45051 2008-09-26  Bruno Haible  <bruno@clisp.org>
45052
45053         * gnulib-tool (func_version): Change directory to $gnulib_dir before
45054         invoking git-version-gen.
45055
45056 2008-09-26  Bruno Haible  <bruno@clisp.org>
45057
45058         * posix-modules: Update to directory names changed on 2008-01-19.
45059         Remove commas in output before splitting into words. No more need to
45060         avoid 'ftruncate' since 2007-02-19.
45061
45062 2008-09-26  Bruno Haible  <bruno@clisp.org>
45063
45064         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
45065
45066 2008-09-26  Bruno Haible  <bruno@clisp.org>
45067
45068         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
45069         * modules/fwriteerror (Depends-on): Add errno.
45070
45071 2008-09-26  Bruno Haible  <bruno@clisp.org>
45072
45073         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
45074         * tests/test-vc-list-files-cvs.sh: Likewise.
45075
45076 2008-09-26  Bruno Haible  <bruno@clisp.org>
45077
45078         * doc/posix-headers/sys_resource.texi: Reorder items.
45079
45080 2008-09-26  Jim Meyering  <meyering@redhat.com>
45081
45082         fts: tweak inode comparison function
45083         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
45084         inode numbers, as documented.
45085
45086         fts: sort dirent entries on inode number before traversing
45087         This avoids a quadratic, seek-related performance penalty when
45088         operating on a directory containing many entries (measurable at 10k;
45089         3.5 hours at 2 million entries with a cold cache) on certain types
45090         of file systems, including ext3 and ext4, but not tmpfs.
45091         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
45092         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
45093         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
45094         (fs_handles_readdir_ordered_dirents_efficiently): New function.
45095         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
45096         (fts_build): Set the stat.st_ino member from D_INO.
45097         If it is likely to be useful, sort dirent entries on inode number.
45098
45099         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
45100         and the struct statfs.f_type member.
45101         * modules/fts (Depends-on): Add d-ino.
45102
45103 2008-09-26  Bruno Haible  <bruno@clisp.org>
45104
45105         * modules/sigpipe-die (Depends-on): Add sigpipe.
45106
45107         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
45108         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
45109         and GNULIB_STDIO_H_SIGPIPE are set.
45110         * lib/stdio-write.c: New file.
45111         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
45112         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45113         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45114         REPLACE_STDIO_WRITE_FUNCS.
45115         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
45116         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45117         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45118         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
45119         * modules/stdio (Files): Add lib/stdio-write.c.
45120         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
45121         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
45122         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
45123         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
45124         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
45125         REPLACE_FPRINTF_POSIX.
45126         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
45127         REPLACE_PRINTF_POSIX.
45128         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
45129         REPLACE_VFPRINTF_POSIX.
45130         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
45131         REPLACE_VPRINTF_POSIX.
45132         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
45133         SIGPIPE issue.
45134         * doc/posix-functions/fputc.texi: Likewise.
45135         * doc/posix-functions/fputs.texi: Likewise.
45136         * doc/posix-functions/fwrite.texi: Likewise.
45137         * doc/posix-functions/printf.texi: Likewise.
45138         * doc/posix-functions/putc.texi: Likewise.
45139         * doc/posix-functions/putchar.texi: Likewise.
45140         * doc/posix-functions/puts.texi: Likewise.
45141         * doc/posix-functions/vfprintf.texi: Likewise.
45142         * doc/posix-functions/vprintf.texi: Likewise.
45143
45144         * modules/safe-write (Depends-on): Add write.
45145
45146         * modules/sigpipe-tests: New file.
45147         * tests/test-sigpipe.c: New file.
45148         * tests/test-sigpipe.sh: New file.
45149
45150         * modules/write: New file.
45151         * lib/unistd.in.h: Include <sys/types.h>.
45152         (write): New declaration.
45153         * lib/write.c: New file.
45154         * m4/write.m4: New file.
45155         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45156         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
45157         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
45158         GNULIB_WRITE, REPLACE_WRITE.
45159         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
45160         and the SIGPIPE issue.
45161
45162         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
45163         (raise): New declaration.
45164         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
45165         (ext_signal): New function.
45166         (rpl_raise): New function.
45167         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
45168         GNULIB_SIGNAL_H_SIGPIPE.
45169         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
45170         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
45171
45172         * modules/sigpipe: New file.
45173         * m4/sigpipe.m4: New file.
45174
45175 2008-09-25  Derek Price  <derek@ximbiot.com>
45176             Bruno Haible  <bruno@clisp.org>
45177
45178         * gnulib-tool (func_import): Report all license incompatibilities, not
45179         just the first one.
45180
45181 2008-09-25  Bruno Haible  <bruno@clisp.org>
45182
45183         * gnulib-tool (func_import): When computing the edits, consider not
45184         only the Makefile.ams that exist but also those that will be generated.
45185
45186 2008-09-25  Simon Josefsson  <simon@josefsson.org>
45187
45188         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
45189         fixes gnulib-tool --test warning about duplicate dependency.
45190
45191 2008-09-25  Bruno Haible  <bruno@clisp.org>
45192
45193         * gnulib-tool: Don't ask the user to perform edits in the generated
45194         Makefile.ams.
45195         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
45196         apply to the Makefile.am being generated.
45197         (func_emit_tests_Makefile_am): Execute edits that apply to the
45198         Makefile.am being generated.
45199         (func_import): Setup list of Makefile.am edits before emitting the
45200         Makefile.ams, not at the end.
45201         (func_create_testdir): Update.
45202         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45203
45204 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45205
45206         * gnulib-tool (func_import): Store the --tests-base option in the
45207         comment in gnulib-cache.m4.
45208
45209 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
45210
45211         * NEWS: Document increased portability that sys_select now provides.
45212
45213         * lib/sys_select.in.h: Install select wrapper.
45214         * lib/sys_socket.in.h: Use more descriptive name when there is no
45215         select wrapper.
45216         * lib/winsock-select.c: New.
45217         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
45218         Require gl_HEADER_SYS_SOCKET.
45219         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
45220         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
45221         * tests/test-sys_select.c: Add functional tests.
45222
45223 2008-09-24  Eric Blake  <ebb9@byu.net>
45224
45225         open, fopen: close fd leak in last patch
45226         * lib/open.c (rpl_open): Close fd before returning error.
45227         * lib/fopen.c (rpl_fopen): Close fd before returning error.
45228         * doc/posix-functions/open.texi (open): Document that Irix also
45229         has the bug.
45230         * doc/posix-functions/fopen.texi (fopen): Likewise.
45231         Reported by Paolo Bonzini.
45232
45233 2008-09-24  Bruno Haible  <bruno@clisp.org>
45234
45235         Ensure that a filename ending in a slash cannot be used to access a
45236         non-directory.
45237         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
45238         to check whether it's really a directory.
45239         * lib/fopen.c: Include fcntl.h, unistd.h.
45240         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
45241         and fdopen().
45242         * modules/fopen (Depends-on): Add unistd.
45243         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
45244         * tests/test-fopen.c (main): Likewise.
45245         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
45246         * doc/posix-functions/fopen.texi: Likewise.
45247         Reported by Eric Blake.
45248
45249 2008-09-23  Eric Blake  <ebb9@byu.net>
45250
45251         c-stack: avoid compiler optimizations when provoking overflow
45252         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
45253         recursion harder to optimize, to ensure a stack overflow occurs.
45254         * tests/test-c-stack.c (recurse): Likewise.
45255         Borrowed from libsigsegv.
45256
45257         c-stack: work around Irix sigaltstack bug
45258         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
45259         whether sigaltstack uses wrong end of stack_t (copied in part from
45260         libsigsegv).
45261         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
45262         Irix bug, without requiring an over-allocation.
45263         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
45264         bug.
45265
45266         fopen: document mingw bug on directories
45267         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
45268         not allowing a stream visiting a directory, even though reading
45269         from such a stream is not portable.
45270
45271 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45272
45273         * lib/poll.c: Rewrite.
45274         * modules/poll: Depend on alloca.
45275
45276 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45277
45278         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
45279         instead define prototypes for a full set of wrappers.  Ensure
45280         that Cygwin does not use the compatibility code, which is only
45281         for MinGW.
45282         * lib/winsock.c: New.
45283         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
45284         * modules/sys_socket: Add lib/winsock.c.
45285
45286         * modules/poll-tests: Add errno and perror.
45287         * tests/test-poll.c: Use ioctl, not ioctlsocket.
45288
45289 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
45290
45291         * tests/test-poll.c: Downgrade minimum needed Winsock version.
45292
45293 2008-09-23  Bruno Haible  <bruno@clisp.org>
45294
45295         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
45296         * doc/glibc-functions/*: Likewise.
45297
45298 2008-09-23  Simon Josefsson  <simon@josefsson.org>
45299
45300         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
45301         success.
45302
45303 2008-09-22  Eric Blake  <ebb9@byu.net>
45304             Bruno Haible  <bruno@clisp.org>
45305
45306         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
45307         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
45308         supply %A but mishandle pseudo-NaN.
45309         Reported by Simon Josefsson.
45310
45311 2008-09-21  Bruno Haible  <bruno@clisp.org>
45312
45313         * tests/test-lock.c (main): Tweak skip message.
45314         * tests/test-tls.c (main): Likewise.
45315
45316 2008-09-21  Bruno Haible  <bruno@clisp.org>
45317
45318         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
45319         whether 'struct sigaction' has sa_sigaction here...
45320         (gl_PREREQ_SIG_HANDLER_H): ... not here.
45321         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
45322
45323 2008-09-21  Bruno Haible  <bruno@clisp.org>
45324
45325         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
45326         section.
45327         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
45328         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
45329         the new section.
45330         (Support for obsolete systems lacking POSIX:2001): New section.
45331         (String handling <string.h>): Move strdup to the new section.
45332         Suggested by Simon Josefsson and Paolo Bonzini.
45333
45334 2008-09-21  Bruno Haible  <bruno@clisp.org>
45335
45336         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
45337         exponents in %e and %g results on 'long double'. Needed for mingw's
45338         improved *printf functions.
45339         * tests/test-vasprintf-posix.c (test_function): Likewise.
45340         * tests/test-snprintf-posix.h (test_function): Likewise.
45341         * tests/test-sprintf-posix.h (test_function): Likewise.
45342         Reported by Eric Blake.
45343
45344 2008-09-21  Bruno Haible  <bruno@clisp.org>
45345
45346         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
45347         * tests/test-sprintf-posix.h (test_function): Likewise.
45348
45349 2008-09-21  Bruno Haible  <bruno@clisp.org>
45350
45351         * modules/getpass (Depends-on): Add strdup-posix.
45352
45353         New module 'strdup-posix'.
45354         * modules/strdup-posix: New file.
45355         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
45356         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
45357         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45358         REPLACE_STRDUP.
45359         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
45360         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
45361         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45362         strdup-posix.
45363
45364         * modules/strdup (Depends-on): Remove malloc-posix.
45365
45366 2008-09-20  Bruno Haible  <bruno@clisp.org>
45367
45368         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
45369         Wildenhues.
45370
45371 2008-09-20  Bruno Haible  <bruno@clisp.org>
45372
45373         Ensure that wint_t gets defined on IRIX 5.3.
45374         * lib/wchar.in.h (wint_t): Define if not defined by the system.
45375         * lib/wctype.in.h (wint_t): Likewise.
45376         (__wctype_wint_t): Remove type.
45377         (isw*): Use wint_t instead of __wctype_wint_t.
45378         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
45379         * modules/wchar (Files): Add m4/wint_t.m4.
45380         (Makefile.am): Substitute HAVE_WINT_T.
45381         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
45382         * tests/test-wctype.c: Check that wint_t is defined.
45383         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
45384         * doc/posix-headers/wctype.texi: Likewise.
45385         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45386
45387 2008-09-18  Bruno Haible  <bruno@clisp.org>
45388
45389         * gnulib-tool (func_exit): Update comment.
45390
45391 2008-09-18  Simon Josefsson  <simon@josefsson.org>
45392
45393         * modules/getaddrinfo (Depends-on): Remove strdup, this module
45394         assumes strdup exists and does not depend on strdup to return
45395         ENOMEM on out of memory conditions.
45396
45397 2008-09-18  Bruno Haible  <bruno@clisp.org>
45398
45399         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
45400         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
45401         digits for the exponent.
45402
45403 2008-09-18  Jim Meyering  <meyering@redhat.com>
45404             Bruno Haible  <bruno@clisp.org>
45405
45406         * lib/vasnprintf.c (decimal_point_char): Define also if
45407         NEED_PRINTF_INFINITE_LONG_DOUBLE.
45408
45409 2008-09-16  Bruno Haible  <bruno@clisp.org>
45410         and Eric Blake  <ebb9@byu.net>
45411
45412         vasnprintf: support Irix 5.3
45413         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
45414         that mishandle long double infinity.
45415         Reported by Tom G. Christensen.
45416
45417 2008-09-16  Bruno Haible  <bruno@clisp.org>
45418
45419         * doc/glibc-functions/scandir.texi: Mention the function is missing on
45420         Solaris 9.
45421         * doc/glibc-functions/alphasort.texi: Likewise.
45422         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
45423
45424 2008-09-16  Jim Meyering  <meyering@redhat.com>
45425
45426         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
45427         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
45428         a umask modification leak out of a subshell.  Otherwise, the
45429         opensolaris /bin/sh would be accepted and thus cause unwarranted
45430         failures in the coreutils test suite.
45431
45432 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
45433
45434         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
45435         to succeed.
45436
45437 2008-09-16  Jim Meyering  <meyering@redhat.com>
45438
45439         avoid spurious test failure when library is built without ACL support
45440         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
45441         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
45442         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
45443         * tests/test-copy-acl.sh: Likewise.
45444
45445 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45446
45447         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
45448         based on character occurrence counts.
45449
45450 2008-09-15  Eric Blake  <ebb9@byu.net>
45451
45452         tests: avoid some compiler warnings
45453         * tests/test-memchr.c (main): Pass NULL indirectly.
45454         * tests/test-closein.c (main): Avoid unused variable.
45455
45456 2008-09-15  Bruno Haible  <bruno@clisp.org>
45457
45458         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
45459         are missing on OpenBSD 4.0 individually.
45460         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45461
45462 2008-09-15  Bruno Haible  <bruno@clisp.org>
45463
45464         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
45465         * doc/posix-functions/strerror.texi: Mention also Cygwin.
45466         * doc/posix-functions/perror.texi: Likewise.
45467         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
45468         is missing.
45469         Reported by Eric Blake.
45470
45471         * lib/errno.in.h: Use replacement values >= 2000.
45472         Reported by Eric Blake.
45473
45474 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45475
45476         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
45477         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
45478         limit.
45479         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
45480         compareseq was aborted.
45481
45482 2008-09-14  Bruno Haible  <bruno@clisp.org>
45483
45484         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
45485         yvec_edit_count.
45486         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
45487         (fstrcmp_bounded): Simplify result computation accordingly.
45488
45489 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45490
45491         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
45492         (fstrcmp): Define in terms of fstrcmp_bounded.
45493         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
45494         lower_bound argument.
45495         Return quickly if the result is certainly < lower_bound.
45496         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
45497
45498 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45499
45500         * lib/diffseq.h (EARLY_ABORT): New macro.
45501         (compareseq): Change return type to bool. Return true when EARLY_ABORT
45502         evaluates to true.
45503
45504 2008-09-14  Bruno Haible  <bruno@clisp.org>
45505
45506         * modules/perror-tests: New file.
45507         * tests/test-perror.sh: New file.
45508         * tests/test-perror.c: New file.
45509
45510         New module 'perror'.
45511         * lib/stdio.in.h (perror): New declaration.
45512         * lib/perror.c: New file.
45513         * m4/perror.m4: New file.
45514         * modules/perror: New file.
45515         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
45516         * doc/posix-functions/perror.texi: Mention the perror module.
45517         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
45518         REPLACE_PERROR.
45519         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
45520         REPLACE_PERROR.
45521
45522 2008-09-14  Bruno Haible  <bruno@clisp.org>
45523
45524         * modules/stdio (Makefile.am): Reorder to match the order in
45525         lib/stdio.in.h.
45526         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45527
45528 2008-09-13  Bruno Haible  <bruno@clisp.org>
45529
45530         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
45531
45532 2008-09-13  Bruno Haible  <bruno@clisp.org>
45533
45534         Extend strerror to cover the added errno values.
45535         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
45536         (rpl_strerror): Provide error messages for the added errno values and
45537         for the WSA* values.
45538         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
45539         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
45540         strerror.
45541         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
45542         * modules/strerror (Depends-on): Add errno.
45543         * doc/posix-functions/strerror.texi: Document the change.
45544         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
45545         and EOVERFLOW.
45546
45547 2008-09-13  Bruno Haible  <bruno@clisp.org>
45548
45549         * modules/EOVERFLOW: Remove file.
45550         * m4/eoverflow.m4: Remove file.
45551         * modules/EOVERFLOW-tests: Remove file.
45552         * tests/test-EOVERFLOW.c: Remove file.
45553         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
45554         * modules/ftell (Depends-on): Likewise.
45555         * modules/getdelim (Depends-on): Likewise.
45556         * modules/getugroups (Depends-on): Likewise.
45557         * modules/poll (Depends-on): Likewise.
45558         * modules/snprintf (Depends-on): Likewise.
45559         * modules/sprintf-posix (Depends-on): Likewise.
45560         * modules/vasnprintf (Depends-on): Likewise.
45561         * modules/vasprintf (Depends-on): Likewise.
45562         * modules/vfprintf-posix (Depends-on): Likewise.
45563         * modules/vsnprintf (Depends-on): Likewise.
45564         * modules/vsprintf-posix (Depends-on): Likewise.
45565         * modules/xvasprintf (Depends-on): Likewise.
45566         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45567         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
45568         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
45569         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
45570         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45571         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
45572         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
45573         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
45574         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45575         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
45576         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
45577         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
45578         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45579         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
45580         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
45581         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
45582         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45583         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
45584         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
45585         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
45586         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45587         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
45588         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
45589         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
45590         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
45591         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45592         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
45593         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
45594         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
45595         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
45596         * MODULES.html.sh: Remove EOVERFLOW.
45597         * NEWS: Mention the change.
45598
45599 2008-09-13  Bruno Haible  <bruno@clisp.org>
45600
45601         * modules/errno-tests: New file.
45602         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
45603
45604         * lib/errno.in.h: New file.
45605         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
45606         * modules/errno: New file.
45607         * doc/posix-headers/errno.texi: Update documentation.
45608         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
45609
45610 2008-09-13  Bruno Haible  <bruno@clisp.org>
45611
45612         * tests/test-poll.c: Use #if for native Windows, rather than testing
45613         __MSVCRT__.
45614
45615 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45616             Bruno Haible  <bruno@clisp.org>
45617
45618         * lib/glob.c: Don't include <pwd.h> on native Windows.
45619         (WINDOWS32): New macro.
45620         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
45621
45622 2008-09-13  Bruno Haible  <bruno@clisp.org>
45623
45624         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
45625         (ETIMEDOUT): Remove macro.
45626         (glthread_cond_timedwait_multithreaded): New declaration.
45627         (glthread_cond_timedwait): Use it.
45628         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
45629         (glthread_cond_timedwait_multithreaded): New function.
45630
45631 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
45632
45633         * modules/poll-tests: Do not check for io.h.
45634         * tests/test-poll.c: Check for __MSVCRT__ instead.
45635
45636 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
45637
45638         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
45639         * modules/poll-tests: Add inet_pton, stdbool, sockets.
45640         * tests/test-poll.c: Use them.  Use _pipe on Windows.
45641
45642 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
45643
45644         * modules/poll-tests: New.
45645         * tests/test-poll.c: New.
45646
45647 2008-09-12  Eric Blake  <ebb9@byu.net>
45648
45649         frexp: test for NetBSD failure on -0.0
45650         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
45651         not all, bugs from NetBSD 3.0 have been fixed.
45652         * doc/posix-functions/frexp.texi (frexp): Document bug.
45653         Reported by Thomas Klausner.
45654
45655         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
45656         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
45657         literal -0.0.
45658         Reported by Jonathan C. Patschke <jp@centtech.com>.
45659
45660 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45661
45662         * lib/glthread/cond.h: Use dummy implementation also if
45663         USE_WIN32_THREADS.
45664
45665 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45666
45667         * modules/fnmatch-posix (License): Change to LGPLv2+.
45668         * modules/fnmatch-gnu (License): Likewise.
45669
45670 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45671
45672         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
45673
45674 2008-09-11  Jim Meyering  <meyering@redhat.com>
45675
45676         * users.txt: Add gtk-vnc.
45677
45678 2008-09-08  Simon Josefsson  <simon@josefsson.org>
45679
45680         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
45681         rotate amounts.
45682
45683         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
45684         required for 16-bit and 8-bit rotates.
45685         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
45686         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
45687         UINT8_MAX instead of hard-coded constants.
45688         Suggested by Paul Eggert.
45689
45690 2008-09-07  Bruno Haible  <bruno@clisp.org>
45691
45692         * tests/test-striconveh.c (main): Check behaviour when converting from
45693         UTF-7.
45694
45695         Make striconveh work better with stateful encodings.
45696         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
45697         that iconv does not increment the inptr when returning -1/EINVAL.
45698
45699 2008-09-07  Bruno Haible  <bruno@clisp.org>
45700
45701         * build-aux/config.rpath: Update according to libtool-2.2.6.
45702         * build-aux/config.libpath: Likewise.
45703
45704 2008-09-06  Bruno Haible  <bruno@clisp.org>
45705
45706         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
45707         * lib/freadptr.c (freadptr): Likewise.
45708         * lib/freadseek.c (freadptrinc): Likewise.
45709         Reported by Simon Josefsson.
45710
45711 2008-09-06  Bruno Haible  <bruno@clisp.org>
45712
45713         * modules/freadptr (License): Change to LGPLv2+.
45714         * modules/freadseek (License): Likewise.
45715         Suggested by Eric Blake.
45716
45717         * modules/memchr2 (License): Change to LGPLv2+.
45718         Approved by Eric Blake.
45719
45720 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45721             Bruno Haible  <bruno@clisp.org>
45722
45723         Make gnulib-tool work with native 'sed' on AIX.
45724         * gnulib-tool (sed_noop): New variable.
45725         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
45726         func_add_or_update, func_create_testdir): Use it to initialize sed
45727         script variables.
45728         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45729
45730 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
45731             Bruno Haible  <bruno@clisp.org>
45732
45733         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
45734         also works after #include directives.
45735
45736 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
45737
45738         getdate.y: reject an out-of-range timezone value
45739         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
45740         the range [-24...+24].  When specified with only one or two digits,
45741         * tests/test-getdate.c: Tests for the fix.
45742         * doc/getdate.texi: Document this change.
45743
45744 2008-09-03  Bruno Haible  <bruno@clisp.org>
45745
45746         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
45747
45748 2008-09-02  Simon Josefsson  <simon@josefsson.org>
45749
45750         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
45751         <bruce.korb@gmail.com> with ideas from Ben Pfaff
45752         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
45753         Blake <ebb9@byu.net>.
45754
45755         * tests/test-bitrotate.c: Add more test vectors.
45756
45757 2008-09-02  Eric Blake  <ebb9@byu.net>
45758
45759         vasnprintf-posix: handle large precision via %.*d
45760         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
45761         when handling it ourselves.
45762         * tests/test-vasnprintf-posix.c (test_function): Add test.
45763         * tests/test-snprintf-posix.h (test_function): Likewise.
45764         * tests/test-sprintf-posix.h (test_function): Likewise.
45765         * tests/test-vasprintf-posix.c (test_function): Likewise.
45766         Reported by Alain Guibert.
45767
45768 2008-09-01  Eric Blake  <ebb9@byu.net>
45769
45770         c-stack: make configure-time check more robust
45771         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
45772         successful sigaction call.
45773         Reported by Tom G. Christensen.
45774
45775 2008-09-01  Bruno Haible  <bruno@clisp.org>
45776
45777         New module 'findprog-lgpl'.
45778         * modules/findprog-lgpl: New file.
45779         * lib/findprog-lgpl.c: New file.
45780         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
45781         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
45782         to decide whether to use strdup or xstrdup, concatenated_filename or
45783         xconcatenated_filename.
45784
45785 2008-09-01  Bruno Haible  <bruno@clisp.org>
45786
45787         Split module 'concat-filename' into 'concat-filename' (LGPL) and
45788         'xconcat-filename' (GPL).
45789         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
45790         (License): Change to LGPLv2+.
45791         * modules/xconcat-filename: New file.
45792         * lib/concat-filename.h (concatenated_filename): Change specification.
45793         (xconcatenated_filename): New declaration.
45794         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
45795         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
45796         memory situations.
45797         * lib/xconcat-filename.c: New file.
45798         * NEWS: Mention the change.
45799         * lib/findprog.c: Include concat-filename.h, not filename.h.
45800         (find_in_path): Use xconcatenated_filename instead of
45801         concatenated_filename.
45802         * lib/javacomp.c: Include concat-filename.h, not filename.h.
45803         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
45804         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
45805         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
45806         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
45807         instead of concatenated_filename.
45808         * lib/javaexec.c: Include concat-filename.h, not filename.h.
45809         (execute_java_class): Use xconcatenated_filename instead of
45810         concatenated_filename.
45811         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
45812         * modules/javacomp (Depends-on): Likewise.
45813         * modules/javaexec (Depends-on): Likewise.
45814
45815 2008-09-01  Bruno Haible  <bruno@clisp.org>
45816
45817         Split module 'filename' into 'filename' and 'concat-filename'.
45818         * modules/filename: Keep only lib/filename.h.
45819         (License): Change to LGPLv2+.
45820         * modules/concat-filename: New file, extracted from modules/filename.
45821         * lib/filename.h (concatenated_filename): Remove declaration.
45822         * lib/concat-filename.h: New file, extracted from lib/filename.h.
45823         * lib/concat-filename.c: Include concat-filename.h.
45824         * NEWS: Mention the change.
45825
45826 2008-09-01  Simon Josefsson  <simon@josefsson.org>
45827
45828         * lib/bitrotate.h (rotl8, rotr8): Add.
45829
45830         * modules/bitrotate (configure.ac): Need
45831         AC_REQUIRE([AC_C_INLINE]).
45832         (Description): Mention stdint.h.  Reported by Bruno Haible
45833         <bruno@clisp.org>.
45834
45835         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
45836         Paolo Bonzini <bonzini@gnu.org>.
45837
45838 2008-08-31  Bruno Haible  <bruno@clisp.org>
45839
45840         Assume Solaris specific bi-arch conventions on Solaris systems.
45841         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
45842         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
45843         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
45844         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
45845         like acl_libdirstem.
45846         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
45847         acl_libdirstem.
45848         * NEWS: Mention the change.
45849         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
45850
45851 2008-08-31  Jim Meyering  <meyering@redhat.com>
45852
45853         * lib/strftime.h: Add comments describing the two added arguments.
45854
45855         remove duplicate #include directives
45856         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
45857         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
45858
45859 2008-08-31  Bruno Haible  <bruno@clisp.org>
45860
45861         New module 'sigpipe-die'.
45862         * modules/sigpipe-die: New file.
45863         * lib/sigpipe-die.h: New file.
45864         * lib/sigpipe-die.c: New file.
45865         * MODULES.html.sh (Signal handling): Add sigpipe-die.
45866
45867 2008-08-31  Bruno Haible  <bruno@clisp.org>
45868
45869         Don't override previously installed signal handlers.
45870         * lib/fatal-signal.c (saved_sigactions): New variable.
45871         (uninstall_handlers): Reset the signal to the saved handler, not
45872         to SIG_DFL (except when ignored).
45873         (install_handlers): Save the previous handlers.
45874
45875 2008-08-30  Bruno Haible  <bruno@clisp.org>
45876
45877         * gnulib-tool (func_reset_sigpipe): New function.
45878         (func_get_automake_snippet, func_modules_transitive_closure,
45879         func_import): Invoke it before a join command that reads from stdin,
45880         to avoid "echo: write error: Broken pipe" error messages on stderr.
45881         Reported by Sam Steingold <sds@gnu.org>.
45882
45883 2008-08-30  Bruno Haible  <bruno@clisp.org>
45884
45885         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
45886         Code copied from m4/open.m4.
45887         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
45888         access and the filename ends in a slash. Code copied from lib/open.c.
45889         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
45890         * tests/test-fopen.c (main): Check against bug with trailing slash.
45891
45892 2008-08-29  Bruno Haible  <bruno@clisp.org>
45893
45894         Avoid some "gcc -pedantic" warnings.
45895         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
45896         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
45897         * lib/dirent.in.h: Likewise.
45898         * lib/fcntl.in.h: Likewise.
45899         * lib/float.in.h: Likewise.
45900         * lib/iconv.in.h: Likewise.
45901         * lib/inttypes.in.h: Likewise.
45902         * lib/locale.in.h: Likewise.
45903         * lib/math.in.h: Likewise.
45904         * lib/netinet_in.in.h: Likewise.
45905         * lib/search.in.h: Likewise.
45906         * lib/signal.in.h: Likewise.
45907         * lib/stdarg.in.h: Likewise.
45908         * lib/stdint.in.h: Likewise.
45909         * lib/stdio.in.h: Likewise.
45910         * lib/stdlib.in.h: Likewise.
45911         * lib/string.in.h: Likewise.
45912         * lib/strings.in.h: Likewise.
45913         * lib/sys_select.in.h: Likewise.
45914         * lib/sys_socket.in.h: Likewise.
45915         * lib/sys_stat.in.h: Likewise.
45916         * lib/sys_time.in.h: Likewise.
45917         * lib/sysexits.in.h: Likewise.
45918         * lib/time.in.h: Likewise.
45919         * lib/unistd.in.h: Likewise.
45920         * lib/wchar.in.h: Likewise.
45921         * lib/wctype.in.h: Likewise.
45922         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
45923         * modules/fchdir (Makefile.am): Likewise.
45924         * modules/fcntl (Makefile.am): Likewise.
45925         * modules/float (Makefile.am): Likewise.
45926         * modules/iconv_open (Makefile.am): Likewise.
45927         * modules/inttypes (Makefile.am): Likewise.
45928         * modules/locale (Makefile.am): Likewise.
45929         * modules/math (Makefile.am): Likewise.
45930         * modules/netinet_in (Makefile.am): Likewise.
45931         * modules/search (Makefile.am): Likewise.
45932         * modules/signal (Makefile.am): Likewise.
45933         * modules/stdarg (Makefile.am): Likewise.
45934         * modules/stdint (Makefile.am): Likewise.
45935         * modules/stdio (Makefile.am): Likewise.
45936         * modules/stdlib (Makefile.am): Likewise.
45937         * modules/string (Makefile.am): Likewise.
45938         * modules/strings (Makefile.am): Likewise.
45939         * modules/sys_select (Makefile.am): Likewise.
45940         * modules/sys_socket (Makefile.am): Likewise.
45941         * modules/sys_stat (Makefile.am): Likewise.
45942         * modules/sys_time (Makefile.am): Likewise.
45943         * modules/sysexits (Makefile.am): Likewise.
45944         * modules/time (Makefile.am): Likewise.
45945         * modules/unistd (Makefile.am): Likewise.
45946         * modules/wchar (Makefile.am): Likewise.
45947         * modules/wctype (Makefile.am): Likewise.
45948         Reported by Reuben Thomas <rrt@sc3d.org>.
45949
45950 2008-08-29  Bruno Haible  <bruno@clisp.org>
45951
45952         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
45953         any more.
45954
45955 2008-08-29  Simon Josefsson  <simon@josefsson.org>
45956
45957         * MODULES.html.sh (Misc): Add bitrotate.
45958
45959         * modules/bitrotate: New file.
45960
45961         * lib/bitrotate.h: New file.
45962
45963         * modules/bitrotate-tests: New file.
45964
45965         * tests/test-bitrotate.c: New file.
45966
45967         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
45968         on the bitrotate module.
45969
45970         * lib/arctwo.c: Use new bitrotate module.
45971
45972 2008-08-29  Jim Meyering  <meyering@redhat.com>
45973
45974         bootstrap: merge changes from coreutils
45975         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
45976         of copied files.  Remove a kludge, now that this is fixed.
45977         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
45978         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
45979         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
45980
45981 2008-08-29  Bruno Haible  <bruno@clisp.org>
45982
45983         * MODULES.html.sh: Remove --cvs-urls option.
45984
45985 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
45986
45987         maint.mk: adjust to file name change
45988         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
45989
45990 2008-08-28  Jim Meyering  <meyering@redhat.com>
45991
45992         * modules/getndelim2 (License): Relicense to LGPLv2+.
45993         Approved by Richard Stallman for the version of 1995, and by
45994         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
45995
45996 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
45997
45998         * lib/getdelim.c (flockfile, funlockfile): Make all of them
45999         dummy if one is not available.  Do not touch them if
46000         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
46001         (getc_maybe_unlocked): New.
46002         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
46003
46004 2008-08-26  Eric Blake  <ebb9@byu.net>
46005
46006         doc/INSTALL: resync from autoconf
46007         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
46008         (INSTALL_PRELUDE): Delete; this is done more efficiently by
46009         moving...
46010         * install.texi [!autoconf]: ...here.  Resync from autoconf.
46011         * INSTALL: Regenerate.
46012         * INSTALL.ISO: New file.
46013         * INSTALL.UTF-8: Likewise.
46014
46015 2008-08-26  Jim Meyering  <meyering@redhat.com>
46016
46017         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
46018         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
46019         these definitions conditional, so that they may be overridden, too.
46020
46021 2008-08-26  Bruno Haible  <bruno@clisp.org>
46022
46023         Generate INSTALL file variants with prettier quotes.
46024         * doc/Makefile (INSTALL_PRELUDE): New macro.
46025         (INSTALL): Use it.
46026         (INSTALL.ISO, INSTALL.UTF-8): New rules.
46027
46028 2008-08-26  Bruno Haible  <bruno@clisp.org>
46029
46030         Run makeinfo in an English locale.
46031         * doc/Makefile (MAKEINFO): New variable.
46032
46033 2008-08-26  Bruno Haible  <bruno@clisp.org>
46034
46035         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
46036         Suggested by Eric Blake.
46037
46038 2008-08-25  Bruno Haible  <bruno@clisp.org>
46039
46040         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
46041
46042 2008-08-25  Eric Blake  <ebb9@byu.net>
46043
46044         c-stack: test that stack overflow can be caught
46045         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
46046         that platform allows handling stack overflow; at least OS/2 EMX
46047         has sigaltstack, but crashes before transferring control to
46048         handler on stack overflow.
46049         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
46050         check for HAVE_STACK_OVERFLOW_HANDLING.
46051         Reported by Elbert Pol.
46052
46053 2008-08-25  Bruno Haible  <bruno@clisp.org>
46054
46055         * doc/posix-functions/strftime.texi: Fix description of strftime
46056         module.
46057
46058 2008-08-24  Bruno Haible  <bruno@clisp.org>
46059
46060         * tests/uniwidth/test-uc_width2.c: New file.
46061         * tests/uniwidth/test-uc_width2.sh: New file.
46062         * modules/uniwidth/width-tests (Files): Add the new files.
46063         (TESTS): Add uniwidth/test-uc_width2.sh.
46064         (TESTS_ENVIRONMENT): New variable.
46065         (check_PROGRAMS): Add test-uc_width2.
46066         (test_uc_width2_SOURCES): New variable.
46067
46068         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
46069         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
46070         not 0x00AB.
46071         Reported by Alexander V. Lukyanov <lav@netis.ru>.
46072
46073 2008-08-22  Eric Blake  <ebb9@byu.net>
46074
46075         test-lock, test-tls: mention why a test is skipped
46076         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
46077         skipped.
46078         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
46079
46080         count-one-bits: relax license
46081         * modules/count-one-bits (License): Relicense to LGPLv2+.
46082         Suggested by Ludovic Courtès, approved by Ben Pfaff.
46083
46084 2008-08-22  Andreas Schwab  <schwab@suse.de>
46085
46086         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
46087         Remove spurious space in assignment.
46088
46089 2008-08-21  Simon Josefsson  <simon@josefsson.org>
46090
46091         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
46092         Paul Eggert <eggert@CS.UCLA.EDU>.
46093
46094 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
46095
46096         * modules/gettext: Add m4/threadlib.m4.
46097
46098 2008-08-19  Eric Blake  <ebb9@byu.net>
46099
46100         test-c-stack: fix compilation failure on FreeBSD 5.0
46101         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
46102         headers before <sys/resource.h>.
46103         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
46104         the bug.
46105         Reported by Nelson H. F. Beebe.
46106
46107         strverscmp: migrate from "strverscmp.h" to <string.h>
46108         * modules/string (Makefile.am): Add new hooks.
46109         * modules/strverscmp (Files): Remove strverscmp.h.
46110         (Depends-on): Add string.
46111         (configure.ac): Add indicator.
46112         (Include): Mention new header.
46113         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
46114         defaults.
46115         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
46116         results.
46117         * lib/strverscmp.h: Delete.
46118         * lib/string.in.h (strverscmp): Provide declaration, when needed.
46119         * tests/test-strverscmp.c (includes): Adjust client.
46120         * lib/check-version.c (includes): Likewise.
46121         * NEWS: Document the change.
46122
46123         strverscmp: add unit test
46124         * modules/strverscmp-tests: New file.
46125         * tests/test-strverscmp.c: Likewise.
46126
46127 2008-08-19  Simon Josefsson  <simon@josefsson.org>
46128
46129         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
46130         regarding Windows crypto stuff, from Mono.
46131
46132 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
46133
46134         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
46135         if present, for intel RND.  Return error on failures.
46136
46137 2008-08-18  Ben Pfaff  <blp@gnu.org>
46138
46139         gitlog-to-changelog: give better diagnostic for failed pipe-open
46140         * build-aux/gitlog-to-changelog: Improve error message: suggest
46141         that the version of Git may be too old.
46142
46143 2008-08-18  Simon Josefsson  <simon@josefsson.org>
46144
46145         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
46146         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
46147
46148 2008-08-18  Bruno Haible  <bruno@clisp.org>
46149
46150         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
46151         pthread_in_use().
46152
46153 2008-08-18  Bruno Haible  <bruno@clisp.org>
46154
46155         * lib/glthread/threadlib.c: Include <pthread.h>.
46156
46157 2008-08-18  Bruno Haible  <bruno@clisp.org>
46158
46159         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
46160         glthread_recursive_lock_* macros.
46161         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
46162         Fix syntax error.
46163
46164 2008-08-18  Bruno Haible  <bruno@clisp.org>
46165
46166         * lib/glthread/thread.c: Avoid forcing a context switch right after
46167         thread creation.
46168
46169 2008-08-17  Bruno Haible  <bruno@clisp.org>
46170
46171         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
46172         * lib/glthread/thread.h: Provide Win32 specific implementation.
46173         * modules/thread (Files): Add lib/glthread/thread.c.
46174         (Depends-on): Add lock.
46175         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
46176
46177 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46178
46179         New module 'yield'.
46180         * modules/yield: New file.
46181         * lib/glthread/yield.h: New file.
46182         * m4/yield.m4: New file.
46183         * MODULES.html.sh (Multithreading): Add yield.
46184
46185 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46186
46187         New module 'thread'.
46188         * modules/thread: New file.
46189         * lib/glthread/thread.h: New file.
46190         * m4/thread.m4: New file.
46191         * MODULES.html.sh (Multithreading): Add thread.
46192
46193 2008-08-17  Bruno Haible  <bruno@clisp.org>
46194
46195         * lib/glthread/lock.h: Include <stdlib.h> always.
46196         * lib/glthread/tls.h: Likewise.
46197         * lib/glthread/cond.h: Likewise.
46198
46199 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46200
46201         New module 'cond'.
46202         * modules/cond: New file.
46203         * lib/glthread/cond.h: New file.
46204         * lib/glthread/cond.c: New file.
46205         * m4/cond.m4: New file.
46206         * MODULES.html.sh (Multithreading): Add cond.
46207
46208 2008-08-16  Eric Blake  <ebb9@byu.net>
46209
46210         c-stack: fix regression on Irix 5.3 from 2008-06-21
46211         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
46212         sa_sigaction...
46213         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
46214         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
46215         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
46216         * modules/signal (Makefile.am): Use the value.
46217         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
46218         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
46219         * doc/posix-headers/signal.texi (signal.h): Document this
46220         portability issue.
46221         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
46222         Reported by Tom G. Christensen.
46223
46224 2008-08-17  Bruno Haible  <bruno@clisp.org>
46225
46226         New module 'threadlib'.
46227         * modules/threadlib: New file.
46228         * lib/glthread/threadlib.c: New file, extracted from
46229         lib/glthread/lock.c.
46230         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
46231         functions.
46232         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
46233         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
46234         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
46235         macros.
46236         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
46237         (gl_DISABLE_THREADS): Remove macro.
46238         * modules/lock (Files): Remove build-aux/config.rpath.
46239         (Depends-on): Remove havelib. Add threadlib.
46240         (configure.ac-early): Remove section.
46241         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
46242         * modules/tls (Depends-on): Remove lock. Add threadlib.
46243         (Link): New section, copied from threadlib.
46244         * MODULES.html.sh (Multithreading): Add threadlib.
46245
46246 2008-08-14  Bruno Haible  <bruno@clisp.org>
46247
46248         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
46249         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
46250         glthread_rwlock_unlock, glthread_rwlock_destroy,
46251         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
46252         glthread_recursive_lock_destroy): Define as macros always.
46253         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
46254         glthread_lock_lock.
46255         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
46256         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
46257         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
46258         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
46259         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
46260         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
46261         (glthread_recursive_lock_lock_func): Renamed from
46262         glthread_recursive_lock_lock.
46263         (glthread_recursive_lock_unlock_func): Renamed from
46264         glthread_recursive_lock_unlock.
46265         (glthread_recursive_lock_destroy_func): Renamed from
46266         glthread_recursive_lock_destroy.
46267
46268 2008-08-14  Bruno Haible  <bruno@clisp.org>
46269
46270         * lib/glthread/lock.h: Renamed from lib/lock.h.
46271         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
46272         * lib/glthread/tls.h: Renamed from lib/tls.h.
46273         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
46274         * lib/fstrcmp.c: Update includes.
46275         * lib/strsignal.c: Update includes.
46276         * modules/lock (Files, Makefile.am): Update.
46277         (Include): Change to "glthread/lock.h".
46278         * modules/tls (Files, Makefile.am): Update.
46279         (Include): Change to "glthread/tls.h".
46280         * tests/test-lock.c: Update includes.
46281         * tests/test-tls.c: Update includes.
46282         * NEWS: Mention the renamed header files.
46283
46284 2008-08-11  Jim Meyering  <meyering@redhat.com>
46285
46286         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
46287
46288 2008-08-11  Eric Blake  <ebb9@byu.net>
46289
46290         test-c-stack: avoid C99-ism
46291         * tests/test-c-stack.c (main): Fix whitespace, move declaration
46292         before statement.
46293         Reported by Alain Guibert.
46294
46295 2008-08-10  Jim Meyering  <meyering@redhat.com>
46296
46297         ensure that return value of uinttostr et al are not ignored
46298         * lib/inttostr.h (__GNUC_PREREQ): Define.
46299         (__attribute_warn_unused_result__): Define.
46300         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
46301
46302 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
46303
46304         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
46305         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
46306
46307 2008-08-07  Jim Meyering  <meyering@redhat.com>
46308
46309         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
46310
46311         * modules/mkstemp (License): Relicense under LGPLv2+.
46312         * modules/tempname (License): Likewise.
46313
46314 2008-08-06  Bruno Haible  <bruno@clisp.org>
46315
46316         * lib/poll.c (poll): Further micro-optimization.
46317
46318 2008-08-06  Jim Meyering  <meyering@redhat.com>
46319
46320         inet_pton.c: use locale-independent tolower
46321         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
46322         (inet_pton6): Use c_tolower rather than tolower.
46323         * modules/inet_pton (Depends-on): Add c-ctype.
46324
46325 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
46326
46327         * lib/poll.c (poll): Avoid division when timeout is 0, cache
46328         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
46329
46330 2008-08-06  Jim Meyering  <meyering@redhat.com>
46331
46332         * modules/inet_pton (License): Relicense under LGPLv2+.
46333
46334 2008-08-03  Bruno Haible  <bruno@clisp.org>
46335
46336         Additional non-aborting API for lock and tls.
46337         * lib/lock.h: Include <errno.h>.
46338         (glthread_lock_init): New macro/function.
46339         (gl_lock_init): Define as wrapper around glthread_lock_init.
46340         (glthread_lock_lock): New macro/function.
46341         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
46342         (glthread_lock_unlock): New macro/function.
46343         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
46344         (glthread_lock_destroy): New macro/function.
46345         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
46346         (glthread_rwlock_init): New macro/function.
46347         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
46348         (glthread_rwlock_rdlock): New macro/function.
46349         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
46350         (glthread_rwlock_wrlock): New macro/function.
46351         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
46352         (glthread_rwlock_unlock): New macro/function.
46353         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
46354         (glthread_rwlock_destroy): New macro/function.
46355         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
46356         (glthread_recursive_lock_init): New macro/function.
46357         (gl_recursive_lock_init): Define as wrapper around
46358         glthread_recursive_lock_init.
46359         (glthread_recursive_lock_lock): New macro/function.
46360         (gl_recursive_lock_lock): Define as wrapper around
46361         glthread_recursive_lock_lock.
46362         (glthread_recursive_lock_unlock): New macro/function.
46363         (gl_recursive_lock_unlock): Define as wrapper around
46364         glthread_recursive_lock_unlock.
46365         (glthread_recursive_lock_destroy): New macro/function.
46366         (gl_recursive_lock_destroy): Define as wrapper around
46367         glthread_recursive_lock_destroy.
46368         (glthread_once): New macro/function.
46369         (gl_once): Define as wrapper around glthread_once.
46370         Update function declarations.
46371         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
46372         glthread_rwlock_init. Return error code.
46373         (glthread_rwlock_rdlock_multithreaded): Renamed from
46374         glthread_rwlock_rdlock. Return error code.
46375         (glthread_rwlock_wrlock_multithreaded): Renamed from
46376         glthread_rwlock_wrlock. Return error code.
46377         (glthread_rwlock_unlock_multithreaded): Renamed from
46378         glthread_rwlock_unlock. Return error code.
46379         (glthread_rwlock_destroy_multithreaded): Renamed from
46380         glthread_rwlock_destroy. Return error code.
46381         (glthread_recursive_lock_init_multithreaded): Renamed from
46382         glthread_recursive_lock_init. Return error code.
46383         (glthread_recursive_lock_lock_multithreaded): Renamed from
46384         glthread_recursive_lock_lock. Return error code.
46385         (glthread_recursive_lock_unlock_multithreaded): Renamed from
46386         glthread_recursive_lock_unlock. Return error code.
46387         (glthread_recursive_lock_destroy_multithreaded): Renamed from
46388         glthread_recursive_lock_destroy. Return error code.
46389         (glthread_once_call): Make static.
46390         (glthread_once_multithreaded): Renamed from glthread_once.
46391         * lib/tls.h: Include <errno.h>.
46392         (glthread_tls_key_init): New macro/function.
46393         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
46394         (glthread_tls_set): New macro/function.
46395         (gl_tls_set): Define as wrapper around glthread_tls_set.
46396         (glthread_tls_key_destroy): New macro/function.
46397         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
46398         Update function declarations.
46399         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
46400         glthread_tls_get.
46401         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46402
46403 2008-08-04  Eric Blake  <ebb9@byu.net>
46404
46405         gnumakefile: use space, not TAB, outside of targets
46406         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
46407
46408 2008-08-02  Jim Meyering  <meyering@redhat.com>
46409
46410         getdate.y: avoid locale-dependent date parsing failure
46411         In Turkish locales, getdate would fail to recognize keywords
46412         containing a lowercase "i".  The solution is not to rely on
46413         locale-sensitive case-conversion.
46414         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
46415         (lookup_word): Use c_toupper in place of toupper.
46416         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
46417         Reported by Vefa Bicakci <bicave@superonline.com> in
46418         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
46419         * modules/getdate (Depends-on): Add c-ctype.
46420
46421 2008-08-02  Bruno Haible  <bruno@clisp.org>
46422
46423         * gnulib-tool (func_import): When updating or creating a .gitignore
46424         file, prepend each added line with a slash, and ignore leading slashes
46425         from the existing lines.
46426         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
46427
46428 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46429
46430         Portability fix for GNU make 3.79.1.
46431         * top/GNUmakefile: Avoid 'else COND', which older GNU make
46432         versions do not understand.
46433
46434 2008-08-01  Bruno Haible  <bruno@clisp.org>
46435
46436         Work around bug of HP-UX 10.20 cc with -0.0 literal.
46437         * tests/test-isnanf.h (zero): New variable.
46438         (main): Avoid literal -0.0f.
46439         * tests/test-isnand.h (zero): New variable.
46440         (main): Avoid literal -0.0.
46441         * tests/test-isnanl.h (zero): New variable.
46442         (main): Avoid literal -0.0L.
46443         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
46444         (test_float, test_double, test_long_double): Avoid literals -0.0f,
46445         -0.0, -0.0L.
46446         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
46447         (test_signbitd): Avoid literal -0.0.
46448         (test_signbitl): Avoid literal -0.0L.
46449         * tests/test-ceilf1.c (zero): New variable.
46450         (main): Avoid literal -0.0f.
46451         * tests/test-ceill.c (zero): New variable.
46452         (main): Avoid literal -0.0L.
46453         * tests/test-floorf1.c (zero): New variable.
46454         (main): Avoid literal -0.0f.
46455         * tests/test-floorl.c (zero): New variable.
46456         (main): Avoid literal -0.0L.
46457         * tests/test-roundf1.c (zero): New variable.
46458         (main): Avoid literal -0.0f.
46459         * tests/test-round1.c (zero): New variable.
46460         (main): Avoid literal -0.0.
46461         * tests/test-roundl.c (zero): New variable.
46462         (main): Avoid literal -0.0L.
46463         * tests/test-truncf1.c (zero): New variable.
46464         (main): Avoid literal -0.0f.
46465         * tests/test-trunc1.c (zero): New variable.
46466         (main): Avoid literal -0.0.
46467         * tests/test-truncl.c (zero): New variable.
46468         (main): Avoid literal -0.0L.
46469         * tests/test-frexp.c (zero): New variable.
46470         (main): Avoid literal -0.0.
46471         * tests/test-frexpl.c (zero): New variable.
46472         (main): Avoid literal -0.0L.
46473         * tests/test-ldexpl.c (zero): New variable.
46474         (main): Avoid literal -0.0L.
46475         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
46476         (zerod, zerol): New variables.
46477         (test_function): Avoid literals -0.0, -0.0L.
46478         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
46479         (zerod, zerol): New variables.
46480         (test_function): Avoid literals -0.0, -0.0L.
46481         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
46482         (zerod, zerol): New variables.
46483         (test_function): Avoid literals -0.0, -0.0L.
46484         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
46485         (zerod, zerol): New variables.
46486         (test_function): Avoid literals -0.0, -0.0L.
46487         * tests/test-strtod.c (zero): New variable.
46488         (main): Avoid literal -0.0.
46489         Reported by Jonathan C. Patschke <jp@centtech.com>.
46490
46491 2008-07-31  Jim Meyering  <meyering@redhat.com>
46492
46493         sha256.h: correct definition of SHA224_DIGEST_SIZE
46494         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
46495         Reported by Paulie Pena IV <paulie4@gmail.com>.
46496         Define as 224 / 8, rather than as a literal.
46497         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
46498         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
46499         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
46500
46501 2008-07-31  Bruno Haible  <bruno@clisp.org>
46502
46503         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
46504         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
46505         Reported by Jonathan Patschke <jp@centtech.com>.
46506
46507 2008-07-31  Bruno Haible  <bruno@clisp.org>
46508
46509         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
46510         Reported by Paolo Bonzini <bonzini@gnu.org>.
46511
46512 2008-07-30  Eric Blake  <ebb9@byu.net>
46513
46514         test-strtod: allow compilation without -lm
46515         * tests/test-strtod.c (main): Avoid link dependence on fabs.
46516         Reported by Dennis Clarke <blastwave@gmail.com>.
46517
46518 2008-07-28  Jim Meyering  <meyering@redhat.com>
46519
46520         bootstrap: work also when there are no .po files in po/
46521         * build-aux/bootstrap (update_po_files): Complete the change
46522         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
46523
46524 2008-07-27  Jim Meyering  <meyering@redhat.com>
46525
46526         * users.txt: Add zile.
46527
46528 2008-07-26  Ben Pfaff  <blp@gnu.org>
46529
46530         Add missing dependencies on new m4/exponent[fdl].m4 files.
46531         * modules/isnanf-nolibm: Add m4/exponentf.m4.
46532         * modules/isnand-nolibm: Add m4/exponentd.m4.
46533         * modules/isnanl-nolibm: Add m4/exponentl.m4.
46534         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
46535         m4/isnan[fdl].m4, because the macros actually used moved.
46536         Reported by Jim Meyering.
46537
46538 2008-07-14  Ben Pfaff  <blp@gnu.org>
46539
46540         Add isinf module.
46541         * lib/isinf.c: New file.
46542         * lib/math.in.h: Define isinf macro if we have decided to replace
46543         it.
46544         * m4/isinf.m4: New file.
46545         * m4/math_h.m4: Initialize and substitute variables for isinf
46546         module.
46547         * modules/isinf: New file.
46548         * modules/isinf-tests: New file.
46549         * modules/math: Add substitutions for new module.
46550         * tests/test-isinf.c: New file.
46551         * doc/posix-functions/isinf.texi: Mention new module.
46552         * MODULES.html.sh: Mention new module.
46553
46554 2008-07-14  Ben Pfaff  <blp@gnu.org>
46555
46556         Factor out some macros for use by additional modules.
46557         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
46558         exponentf.m4.
46559         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
46560         exponentd.m4.
46561         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
46562         file exponentl.m4.
46563         * m4/exponentf.m4: New file.
46564         * m4/exponentd.m4: New file.
46565         * m4/exponentl.m4: New file.
46566         * modules/isnanf: Use new file m4/exponentf.m4.
46567         * modules/isnand: Use new file m4/exponentd.m4.
46568         * modules/isnanl: Use new file m4/exponentl.m4.
46569
46570 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
46571
46572         mktime.c: normalize tp->tm_isdst value to -1/0/1.
46573         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
46574         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
46575         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
46576
46577         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
46578         readlink on platforms without PATH_MAX.
46579
46580 2008-07-21  Eric Blake  <ebb9@byu.net>
46581
46582         Warn, not fail, on stale version.
46583         * top/GNUmakefile (_curr-ver): Tone down previous patch.
46584
46585         Don't allow installation with stale devel version number.
46586         * top/GNUmakefile (_is-install-target): New macro.
46587         (_curr-ver): Forbid installation with stale version number.
46588
46589 2008-07-20  Bruno Haible  <bruno@clisp.org>
46590
46591         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
46592         TESTS_ENVIRONMENT.
46593         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
46594
46595 2008-07-20  Bruno Haible  <bruno@clisp.org>
46596
46597         * lib/c-stack.h (c_stack_action): Add documentation.
46598         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
46599
46600 2008-07-20  Bruno Haible  <bruno@clisp.org>
46601
46602         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
46603         * modules/readlink (License): Likewise.
46604
46605 2008-07-17  Eric Blake  <ebb9@byu.net>
46606
46607         * modules/c-stack (Link): Fix typo.
46608
46609         Make c-stack use libsigsegv, when available.
46610         * modules/c-stack (Depends-on): Add libsigsegv.
46611         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
46612         needed.
46613         * lib/c-stack.c (SIGSTKSZ): Define fallback.
46614         (segv_handler, overflow_handler, c_stack_action)
46615         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
46616         implementation when libsigsegv is available, but only when using
46617         the library is necessary.
46618         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
46619         comment, explaining why XSI check fails on Linux.
46620         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
46621         * tests/test-c-stack2.sh: Tweak skip message.
46622         * NEWS: Document new link-time requirements.
46623
46624 2008-07-16  Eric Blake  <ebb9@byu.net>
46625
46626         c-stack: Expose false positives when not using libsigsegv.
46627         * modules/c-stack-tests (Files): Expand test.
46628         * tests/test-c-stack.c (main): Add means to conditionally trigger
46629         non-overflow SIGSEGV.
46630         * tests/test-c-stack2.sh: New file.
46631
46632 2008-07-14  Bruno Haible  <bruno@clisp.org>
46633
46634         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
46635         Reported by Eric Blake.
46636
46637 2008-07-14  Sam Steingold  <sds@gnu.org>
46638             Bruno Haible  <bruno@clisp.org>
46639
46640         New module libsigsegv.
46641         * modules/libsigsegv: New file.
46642         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
46643         modifications.
46644         * MODULES.html.sh (Signal handling): New section.
46645
46646 2008-07-14  Bruno Haible  <bruno@clisp.org>
46647
46648         * modules/unictype/ctype-* (Description): Add the word "function".
46649         Improves the resulting doc in MODULES.html.
46650
46651 2008-07-12  Ben Pfaff  <blp@gnu.org>
46652
46653         Add longlong module.
46654         * modules/longlong: New file.
46655
46656 2008-07-12  Bruno Haible  <bruno@clisp.org>
46657
46658         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
46659         to empty.
46660
46661 2008-07-10  Ben Pfaff  <blp@gnu.org>
46662
46663         Add isnan module.
46664         * doc/posix-functions/isnan.texi: Mention new module.
46665         * lib/math.in.h: Define isnan macro if we have decided to replace
46666         it.
46667         * m4/isnan.m4: New file.
46668         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
46669         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
46670         also.
46671         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
46672         redundancy.
46673         * m4/math_h.m4: Initialize and substitute variables for isnan
46674         module.
46675         * modules/isnan: New file.
46676         * modules/isnan-tests: New file.
46677         * modules/math: Add substitutions for new module.
46678         * tests/test-isnan.c: New file.
46679         * MODULES.html.sh: Mention new module.
46680
46681 2008-07-10  Ben Pfaff  <blp@gnu.org>
46682
46683         Add isnanf module.
46684         * lib/isnanf.m4: New file.
46685         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
46686         (gl_HAVE_ISNANF_IN_LIBM): New macro.
46687         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
46688         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
46689         * modules/isnanf: New file.
46690         * modules/isnanf-tests: New file.
46691         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
46692         files.
46693         * tests/test-isnanf-nolibm.c: factored most of its contents into
46694         new file tests/test-isnanf.h.
46695         * tests/test-isnanf.h: New file.
46696         * tests/test-isnanf.c: New file.
46697         * MODULES.html.sh: Mention new module.
46698         * doc/glibc-functions/isnanf.texi: Mention new module.
46699
46700 2008-07-10  Ben Pfaff  <blp@gnu.org>
46701
46702         Add isnand module.
46703         * lib/isnand.h: New file.
46704         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
46705         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
46706         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
46707         functionality also.
46708         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
46709         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
46710         (gl_HAVE_ISNAND_IN_LIBM): New macro.
46711         * modules/isnand: New file.
46712         * modules/isnand-tests: New file.
46713         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
46714         files.
46715         * tests/test-isnand-nolibm.c: factored most of its contents into
46716         new file tests/test-isnand.h.
46717         * tests/test-isnand.h: New file.
46718         * tests/test-isnand.c: New file.
46719         * MODULES.html.sh: Mention new module.
46720
46721 2008-07-10  Ben Pfaff  <blp@gnu.org>
46722
46723         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
46724         * lib/isnand.h: Rename lib/isnand-nolibm.h.
46725         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
46726         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
46727         * modules/isnanf-nolibm: Update references to renamed files.
46728         * modules/isnand-nolibm: Likewise.
46729         * modules/isnanf-nolibm-tests: Likewise.
46730         * modules/isnand-nolibm-tests: Likewise.
46731         * lib/frexp.c: Likewise.
46732         * lib/isfinite.c: Likewise.
46733         * lib/signbitd.c: Likewise.
46734         * lib/signbitf.c: Likewise.
46735         * lib/vasnprintf.c: Likewise.
46736         * tests/test-ceilf1.c: Likewise.
46737         * tests/test-ceilf2.c: Likewise.
46738         * tests/test-floorf1.c: Likewise.
46739         * tests/test-floorf2.c: Likewise.
46740         * tests/test-frexp.c: Likewise.
46741         * tests/test-round1.c: Likewise.
46742         * tests/test-round2.c: Likewise.
46743         * tests/test-roundf1.c: Likewise.
46744         * tests/test-strtod.c: Likewise.
46745         * tests/test-trunc1.c: Likewise.
46746         * tests/test-trunc2.c: Likewise.
46747         * tests/test-truncf1.c: Likewise.
46748         * tests/test-truncf2.c: Likewise.
46749         * NEWS: Mention the renamed header files.
46750
46751 2008-07-11  Jim Meyering  <meyering@redhat.com>
46752
46753         vc-list-files: make the last-resort awk code more portable
46754         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
46755         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
46756         does not support it.
46757
46758 2008-07-10  Eric Blake  <ebb9@byu.net>
46759
46760         Work with tar's bootstrap.
46761         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
46762         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
46763         an m4 comment.
46764
46765 2008-07-09  Jim Meyering  <meyering@redhat.com>
46766
46767         posix-shell.m4: fix typo that made this test malfunction
46768         * m4/posix-shell.m4: Remove capitalization in variable name.
46769
46770 2008-07-08  Bruno Haible  <bruno@clisp.org>
46771
46772         * m4/onceonly.m4: Update comments.
46773         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46774
46775 2008-07-04  Jim Meyering  <meyering@redhat.com>
46776
46777         * users.txt: Add vc-dwim.
46778         (bison, coreutils): Use the gitweb URL.
46779
46780 2008-07-03  Jim Meyering  <meyering@redhat.com>
46781
46782         * users.txt: Add libffcall.  From Sam Steingold.
46783
46784 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
46785
46786         getdate.y: do not ignore TZ with relative day, month or year offset
46787         * lib/getdate.y (get_date): Move the tz-handling block to follow the
46788         relative-date-handling, since otherwise, the latter would clobber the
46789         sole output (an updated Start value) of the tz-handling block.
46790         * tests/test-getdate.c: Tests for the fix
46791
46792 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46793
46794         Recognize 'foo_LIBRARIES += libgnu.a'.
46795         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
46796         makefile snippet has already specified an installation location,
46797         also using '+='.
46798
46799 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
46800
46801         getdate.y: factor out common actions
46802         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
46803         Use them in place of open-coded actions.
46804
46805 2008-07-01  Simon Josefsson  <simon@josefsson.org>
46806
46807         Add self-test for getdate module.
46808         * modules/getdate-tests: New file.
46809         * tests/test-getdate.c: New file.
46810
46811 2008-06-29  Bruno Haible  <bruno@clisp.org>
46812
46813         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
46814         .gitignore.
46815         Reported by Sylvain Beucler <beuc@beuc.net>.
46816
46817 2008-06-29  Bruno Haible  <bruno@clisp.org>
46818
46819         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
46820         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
46821
46822 2008-06-29  Bruno Haible  <bruno@clisp.org>
46823
46824         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
46825         EXTRA_DIST.
46826         Reported by Sylvain Beucler <beuc@beuc.net>.
46827
46828 2008-06-26  Jim Meyering  <meyering@redhat.com>
46829
46830         make several modules depend on the "open" module
46831         This provides slightly increased consistency when opening-for-write
46832         the name of a non-directory spelled with a trailing slash.
46833         * modules/chdir-safer: Likewise.
46834         * modules/chown: Likewise.
46835         * modules/clean-temp: Likewise.
46836         * modules/copy-file: Likewise.
46837         * modules/fchdir: Likewise.
46838         * modules/fcntl-safer: Likewise.
46839         * modules/pipe: Likewise.
46840         * modules/utime: Likewise.
46841         Prompted by Eric Blake and Bruno Haible.
46842
46843 2008-06-24  Andreas Schwab  <schwab@suse.de>
46844
46845         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
46846         literals can be used as initializers for global variables.
46847
46848 2008-06-23  Eric Blake  <ebb9@byu.net>
46849
46850         Make gnulib-cache.m4 easier to diff.
46851         * gnulib-tool (func_import): Allow newlines when reading cached
46852         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
46853
46854 2008-06-23  Bruno Haible  <bruno@clisp.org>
46855
46856         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
46857         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
46858         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
46859         m4/signalblocking.m4.
46860         (gl_PREREQ_SIGACTION): Don't invoke it.
46861         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
46862         gl_PREREQ_SIG_HANDLER_H.
46863         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
46864         Don't check for sigaction here.
46865
46866 2008-06-23  Bruno Haible  <bruno@clisp.org>
46867
46868         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
46869         (install_handlers): Don't set the SA_RESETHAND flag.
46870
46871 2008-06-23  Bruno Haible  <bruno@clisp.org>
46872
46873         * m4/sigaction.m4: Comment fixes.
46874         * lib/signal.in.h: Likewise.
46875
46876 2008-06-23  Eric Blake  <ebb9@byu.net>
46877
46878         Fix typo.
46879         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
46880
46881         Avoid SA_ namespace.
46882         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
46883         Reported by Ralf Wildenhues.
46884
46885         Avoid test failure due to SA_RESTORER.
46886         * tests/test-sigaction.c (SA_MASK): New macro.
46887         (main): Avoid failing due to extension flags being set.
46888         Reported by Jim Meyering.
46889
46890         Revert use of sig-handler.h in sigprocmask.c.
46891         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
46892         it requires the existence of struct sigaction.
46893         * lib/sigprocmask.c (handler_t): Restore typedef.
46894         (rpl_signal, old_handlers): Use local type.
46895
46896 2008-06-22  Bruno Haible  <bruno@clisp.org>
46897
46898         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
46899         conditionally.
46900         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46901
46902 2008-06-22  Bruno Haible  <bruno@clisp.org>
46903
46904         * doc/posix-functions/siginterrupt.texi: Move note.
46905
46906         * lib/signal.in.h (SA_RESTART): New macro.
46907         * lib/sigaction.c: Update comment.
46908
46909         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
46910
46911         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
46912         (gl_PREREQ_SIGPROCMASK): Invoke it.
46913         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
46914
46915         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
46916
46917         * lib/sigprocmask.c: Update a comment.
46918
46919 2008-06-21  Eric Blake  <ebb9@byu.net>
46920
46921         Use sigaction module rather than signal().
46922         * modules/c-stack (Depends-on): Add sigaction.
46923         * modules/fatal-signal (Depends-on): Likewise.
46924         * modules/nanosleep (Depends-on): Likewise.
46925         * modules/sigprocmask (Files): Add sig-handler.h.
46926         * modules/sigaction (Files): Likewise.
46927         * lib/sig-handler.h (get_handler): New file, suggested by Paul
46928         Eggert.
46929         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
46930         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
46931         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
46932         (init_fatal_signals): Likewise.
46933         * lib/nanosleep.c (rpl_nanosleep): Likewise.
46934         (siginterrupt): Delete fallback.
46935         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
46936         instead.
46937         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
46938         siginterrupt.
46939
46940         New module sigaction, for mingw.
46941         * modules/sigaction: New module...
46942         * modules/sigaction-tests: ...and its test.
46943         * m4/sigaction.m4: New file.
46944         * lib/sigaction.c: Likewise.
46945         * tests/test-sigaction.c: Likewise.
46946         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
46947         * modules/signal (Makefile.am): Likewise.
46948         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
46949         needed.
46950         * doc/posix-headers/signal.texi (signal.h): Mention provided
46951         types.
46952         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
46953         that sigaction is preferable.
46954         * doc/posix-functions/sigaction.texi (sigaction): Mention new
46955         module.
46956         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46957         sigaction.
46958
46959         Improve robustness of sigprocmask by overriding signal.
46960         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
46961         is in use.
46962         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
46963         (SIGKILL, SIGSTOP): Provide fallbacks.
46964         (rpl_signal): Implement.
46965         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
46966         signal can be called inside handlers.
46967
46968         Fix nanosleep module on mingw.
46969         * modules/nanosleep (Depends-on): Add sys_select.
46970         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
46971
46972         Fix licensing of sigprocmask.
46973         * modules/raise (License): Relicense as LGPL.
46974
46975 2008-06-21  Bruno Haible  <bruno@clisp.org>
46976
46977         * lib/propername.c (proper_name_utf8): Don't use the transliterated
46978         result if it contains question marks.
46979         Reported by Michael Geng <linux@michaelgeng.de>.
46980
46981 2008-06-19  Bruno Haible  <bruno@clisp.org>
46982
46983         Fix CVS-ism.
46984         * doc/gnulib.texi: Include updated-stamp.texi.
46985         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
46986         (updated-stamp.texi): New rule.
46987         (gnulib.info): Depend on it.
46988         * doc/.gitignore: Add updated-stamp.texi.
46989         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
46990
46991 2008-06-19  Bruno Haible  <bruno@clisp.org>
46992
46993         * doc/Makefile (gnulib.info): Update and simplify dependencies.
46994         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46995
46996 2008-06-19  Eric Blake  <ebb9@byu.net>
46997
46998         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
46999         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
47000         Reported by Stepan Kasal.
47001
47002 2008-06-18  Bruno Haible  <bruno@clisp.org>
47003
47004         * lib/fatal-signal.c (init_fatal_signals): Add comment.
47005         Reported by Eric Blake.
47006
47007 2008-06-18  Eric Blake  <ebb9@byu.net>
47008
47009         Work around cygwin 1.5.25 strsignal bug.
47010         * tests/test-strsignal.c: Allow for const char *.
47011         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
47012
47013 2008-06-18  Simon Josefsson  <simon@josefsson.org>
47014
47015         * users.txt: Update URL to article and add author/date
47016         information.
47017
47018 2008-06-17  Bruno Haible  <bruno@clisp.org>
47019
47020         New macro gl_DISABLE_THREADS.
47021         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
47022         if the user did not pass --enable-threads or --disable-threads option.
47023         (gl_DISABLE_THREADS): New macro.
47024         Reported by Eric Blake <ebb9@byu.net>.
47025
47026 2008-06-17  Bruno Haible  <bruno@clisp.org>
47027
47028         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
47029         when the macro ignores it.
47030         Based on a patch by Eric Blake <ebb9@byu.net>.
47031
47032 2008-06-17  Bruno Haible  <bruno@clisp.org>
47033
47034         * modules/tls (License): Change to LGPLv2+.
47035         Reported by Eric Blake.
47036
47037 2008-06-17  Eric Blake  <ebb9@byu.net>
47038
47039         Simplify c-stack prerequisites.
47040         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
47041         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
47042         no longer requires <ucontext.h> to exist.  Optimize setrlimit
47043         check.
47044         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
47045         <sys/resource.h>.
47046
47047         Move c-stack test into testsuite.
47048         * modules/c-stack-tests: New file.
47049         * lib/c-stack.c [DEBUG]: Move test program...
47050         * tests/test-c-stack.c: ...into this new file.  Skip rather than
47051         fail test if sigaltstack is lacking.
47052         * tests/test-c-stack.sh: New driver file.
47053
47054 2008-06-16  Eric Blake  <ebb9@byu.net>
47055
47056         Use raise module consistently.
47057         * modules/fatal-signal (Depends-on): Add raise.
47058         * modules/sigprocmask (Depends-on): Likewise.
47059         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
47060         * lib/sigprocmask.c (sigprocmask): Likewise.
47061         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
47062         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
47063
47064         Fix compliance bug in sigpending.
47065         * lib/sigprocmask.c (sigpending): Return pending array via
47066         parameter, not return value.
47067
47068 2008-06-14  Eric Blake  <ebb9@byu.net>
47069
47070         Improve obstack-printf test code.
47071         * tests/test-obstack-printf.c (test_function): Fix comment, and
47072         simplify usage of obstack_* in macros.  Add a test for coverage.
47073         Reported by Bruno Haible.
47074
47075 2008-06-14  Bruno Haible  <bruno@clisp.org>
47076
47077         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
47078         array size as a constant, not as a const variable.
47079         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
47080         AC_USE_SYSTEM_EXTENSIONS.
47081         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
47082         Test whether the obstack_printf function actually exists.
47083         * modules/obstack-printf (Depends-on): Add extensions.
47084         (Include): Remove obstack.h.
47085         * modules/obstack-printf-posix (Depends-on): Add extensions.
47086         (Include): Remove obstack.h.
47087
47088 2008-06-13  Eric Blake  <ebb9@byu.net>
47089
47090         Add obstack-printf and obstack-printf-posix modules.
47091         * modules/obstack-printf: New file.
47092         * modules/obstack-printf-posix: Likewise.
47093         * MODULES.html.sh (Misc): Mention them.
47094         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47095         Likewise.
47096         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47097         Likewise.
47098         * modules/stdio (Makefile.am): Accomodate new modules.
47099         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47100         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
47101         Declare.
47102         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
47103         functions.
47104         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
47105         (gl_REPLACE_OBSTACK_PRINTF): New macros
47106         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
47107         * tests/test-obstack-printf.c: New file.
47108         * modules/obstack-printf-tests: Likewise.
47109         * modules/obstack-printf-posix-tests: Likewise.
47110
47111 2008-06-11  Bruno Haible  <bruno@clisp.org>
47112
47113         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
47114         * lib/open.c: Include errno.h.
47115         (open): Fail when attempting to write to a file that has a trailing
47116         slash.
47117         * tests/test-open.c (main): Test against trailing slash bug.
47118         * doc/posix-functions/open.texi: Mention the trailing slash bug.
47119
47120 2008-06-10  Bruno Haible  <bruno@clisp.org>
47121
47122         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
47123         for $? to work inside the trap command, with various /bin/sh-s.
47124         * tests/test-vc-list-files-cvs.sh: Likewise.
47125
47126 2008-06-10  Bruno Haible  <bruno@clisp.org>
47127
47128         * lib/acl-internal.h: Don't include gettext.h here.
47129         * lib/set-mode-acl.c: Include gettext.h here.
47130         * lib/copy-acl.c: Likewise.
47131
47132 2008-06-10  Bruno Haible  <bruno@clisp.org>
47133
47134         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
47135         * lib/wait-process.c (wait_subprocess): Likewise.
47136         * lib/execute.h (execute): Add termsigp argument.
47137         * lib/execute.c (execute): Likewise.
47138         * lib/csharpcomp.c (compile_csharp_using_pnet,
47139         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
47140         * lib/csharpexec.c (execute_csharp_using_pnet,
47141         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
47142         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
47143         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
47144         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
47145         is_jikes_present): Update.
47146         * lib/javaexec.c (execute_java_class): Update.
47147         * lib/javaversion.c (execute_and_read_line): Update.
47148         * NEWS: Document the changes.
47149         Reported by Eric Blake.
47150
47151 2008-06-10  Eric Blake  <ebb9@byu.net>
47152
47153         Add missing include.
47154         * tests/test-strstr.c (includes): Add <signal.h>.
47155         * tests/test-strcasestr.c (includes): Likewise.
47156         * tests/test-memmem.c (includes): Likewise.
47157
47158 2008-06-10  Bruno Haible  <bruno@clisp.org>
47159
47160         * lib/wait-process.c (wait_subprocess): Add an assertion.
47161
47162 2008-06-10  Bruno Haible  <bruno@clisp.org>
47163
47164         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
47165
47166 2008-06-10  Bruno Haible  <bruno@clisp.org>
47167
47168         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
47169         using alarm().
47170         * tests/test-strcasestr.c (main): Likewise.
47171         * tests/test-strstr.c (main): Likewise.
47172
47173 2008-06-09  Bruno Haible  <bruno@clisp.org>
47174
47175         Work around the Solaris 10 ACE ACLs ABI change.
47176         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
47177         declare if ACL_NO_TRIVIAL is present.
47178         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
47179         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
47180         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
47181         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
47182         define if ACL_NO_TRIVIAL is present.
47183         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
47184         and use the current ABI.
47185         (file_has_acl): Use same #if condition as elsewhere.
47186         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
47187         in use, and use the current ABI.
47188         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
47189         Reported by Jim Meyering.
47190
47191 2008-06-09  Eric Blake  <ebb9@byu.net>
47192
47193         Work around environments that (stupidly) ignore SIGALRM.
47194         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
47195         before using alarm().
47196         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47197         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47198         Reported by Ian Beckwith <ianb@erislabs.net>.
47199
47200         Produce autobuild blurb earlier in log.
47201         * modules/autobuild (configure.ac-early): Move AB_INIT here.
47202
47203 2008-06-09  Jim Meyering  <meyering@redhat.com>
47204         and OndÅ™ej Vašík  <ovasik@redhat.com>
47205
47206         utimens.c: correct kernel bug work-around
47207         OndÅ™ej Vašík found that the invalid return value of 280 indicates
47208         failure, not success, and the kernel bug we're trying to work
47209         around affects not just the utimensat call, but also the fallback
47210         futimens call.
47211         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
47212         not success.
47213         [HAVE_FUTIMENS]: Use the same work-around, here.
47214
47215 2008-06-09  Jim Meyering  <meyering@redhat.com>
47216
47217         add more guards around definition of ACE_-related code
47218         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
47219         ALLOW and ACE_OWNER are also defined.
47220
47221 2008-06-08  Bruno Haible  <bruno@clisp.org>
47222
47223         * lib/acl-internal.h: Add me as co-author.
47224         * lib/file-has-acl.c: Likewise.
47225         * lib/set-mode-acl.c: Likewise.
47226         * lib/copy-acl.c: Likewise.
47227
47228 2008-06-08  Bruno Haible  <bruno@clisp.org>
47229
47230         Add support for AIX ACLs.
47231         * lib/acl-internal.h (acl_nontrivial): New declaration.
47232         * lib/file-has-acl.c (acl_nontrivial): New function.
47233         (file_has_acl): Add implementation using AIX 4 ACL API.
47234         * lib/set-mode-acl.c (qset_acl): Likewise.
47235         * lib/copy-acl.c (qcopy_acl): Likewise.
47236
47237 2008-06-08  Bruno Haible  <bruno@clisp.org>
47238
47239         Add support for HP-UX ACLs.
47240         * lib/acl-internal.h (acl_nontrivial): New declaration.
47241         * lib/file-has-acl.c (acl_nontrivial): New function.
47242         (file_has_acl): Add implementation using HP-UX 11 ACL API.
47243         * lib/set-mode-acl.c (qset_acl): Likewise.
47244         * lib/copy-acl.c (qcopy_acl): Likewise.
47245
47246 2008-06-08  Bruno Haible  <bruno@clisp.org>
47247
47248         Add support for Cygwin ACLs.
47249         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
47250         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
47251         the chmod_or_fchmod call.
47252         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
47253
47254 2008-06-08  Bruno Haible  <bruno@clisp.org>
47255
47256         Fix bug with setuid modes in Solaris 10+ code.
47257         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
47258         succeeded, when the mode contains some special bits.
47259
47260 2008-06-08  Bruno Haible  <bruno@clisp.org>
47261
47262         Add support for Solaris 7..10 ACLs.
47263         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
47264         declarations.
47265         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
47266         functions.
47267         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
47268         * lib/set-mode-acl.c (qset_acl): Likewise.
47269         * lib/copy-acl.c (qcopy_acl): Likewise.
47270
47271 2008-06-08  Bruno Haible  <bruno@clisp.org>
47272
47273         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
47274         declaration.
47275         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
47276         (acl_access_nontrivial): Remove MacOS X case.
47277         (file_has_acl): Use acl_extended_nontrivial.
47278         * lib/copy-acl.c (qcopy_acl): Likewise.
47279
47280 2008-06-08  Bruno Haible  <bruno@clisp.org>
47281
47282         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
47283
47284 2008-06-08  Jim Meyering  <meyering@redhat.com>
47285
47286         * modules/acl (Maintainer): Add Bruno Haible.
47287
47288 2008-06-07  Bruno Haible  <bruno@clisp.org>
47289
47290         Improve support for Tru64 ACLs.
47291         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
47292         ACL on OSF/1.
47293
47294 2008-06-07  Bruno Haible  <bruno@clisp.org>
47295
47296         Add support for MacOS X ACLs.
47297         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
47298         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
47299         * lib/set-mode-acl.c (qset_acl): Likewise.
47300         * lib/copy-acl.c (qcopy_acl): Likewise.
47301
47302 2008-06-07  Bruno Haible  <bruno@clisp.org>
47303
47304         Fix memory leak introduced on 2008-05-22.
47305         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
47306         use.
47307
47308 2008-06-07  Bruno Haible  <bruno@clisp.org>
47309
47310         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
47311         to construct an empty ACL.
47312
47313 2008-06-07  Bruno Haible  <bruno@clisp.org>
47314
47315         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
47316         precisely.
47317         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
47318
47319 2008-06-07  Bruno Haible  <bruno@clisp.org>
47320
47321         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
47322         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
47323
47324 2008-06-07  Bruno Haible  <bruno@clisp.org>
47325
47326         * doc/posix-functions/_setjmp.texi: Explain the use of this function
47327         regardless of POSIX.
47328         * doc/posix-functions/_longjmp.texi: Likewise.
47329         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
47330         SystemV platform in this case.
47331
47332 2008-06-06  Eric Blake  <ebb9@byu.net>
47333
47334         Document abort() bugs.
47335         * doc/posix-functions/abort.texi (abort): Mention anomalies.
47336
47337         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
47338         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
47339         sigsetjmp.
47340         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
47341         siglongjmp, but only as a macro.
47342         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
47343         is obsolete.
47344         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
47345
47346         Tweak documentation to cover cygwin argz bugs.
47347         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
47348         argz bug fix; no code change needed since no cygwin releases
47349         occurred between the last fix and the bug being tested.
47350         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
47351         module and recently fixed cygwin bugs.
47352         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
47353         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
47354         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
47355         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
47356         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
47357         Likewise.
47358         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
47359         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
47360         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
47361         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
47362         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
47363         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
47364         Likewise.
47365
47366         Avoid gcc warning on cygwin.
47367         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
47368         !ACL_NO_TRIVIAL]: Avoid unused variable.
47369
47370 2008-06-05  Eric Blake  <ebb9@byu.net>
47371
47372         Be tolerant of UNKNOWN version in gnulib-tool test dir.
47373         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
47374         git-version-gen fails to come up with a version.
47375         Reported by Simon Josefsson.
47376
47377 2008-06-05  Jim Meyering  <meyering@redhat.com>
47378             Paul Eggert  <eggert@cs.ucla.edu>
47379
47380         utimens.c: work around a probable Linux kernel bug
47381         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
47382         appears to be a kernel bug that causes utimensat to return 280
47383         instead of 0, indicating success.
47384
47385 2008-06-04  Bruno Haible  <bruno@clisp.org>
47386
47387         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
47388         2008-06-01 commit.
47389
47390 2008-06-04  Bruno Haible  <bruno@clisp.org>
47391
47392         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
47393         * lib/file-has-acl.c (acl_access_nontrivial): New function.
47394         (file_has_acl): Use it. Save errno afterwards.
47395         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
47396
47397 2008-06-03  Bruno Haible  <bruno@clisp.org>
47398
47399         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
47400         draft code. Simplify #ifs.
47401         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
47402         Put Solaris code after POSIX-draft code. Fix comments regarding
47403         Solaris 10, HP-UX. Mention Cygwin.
47404         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
47405
47406 2008-06-03  Eric Blake  <ebb9@byu.net>
47407
47408         Provide fallback for older kernels.
47409         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
47410         Provide runtime fallback if kernel lacks support.
47411         Reported by Mike Frysinger.
47412
47413 2008-06-02  Bruno Haible  <bruno@clisp.org>
47414
47415         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
47416         it exists.
47417
47418 2008-06-02  Bruno Haible  <bruno@clisp.org>
47419
47420         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
47421         * lib/copy-acl.c (qcopy_acl): Update comment.
47422
47423 2008-06-02  Bruno Haible  <bruno@clisp.org>
47424
47425         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
47426         like ACL APIs.
47427
47428 2008-06-02  Bruno Haible  <bruno@clisp.org>
47429
47430         * tests/test-file-has-acl.sh: Use different code for Cygwin.
47431         * tests/test-set-mode-acl.sh: Likewise.
47432         * tests/test-copy-acl.sh: Likewise.
47433         * tests/test-copy-file.sh: Likewise.
47434
47435 2008-06-02  Bruno Haible  <bruno@clisp.org>
47436
47437         * tests/test-file-has-acl.sh: Remove unused code.
47438
47439 2008-06-01  Bruno Haible  <bruno@clisp.org>
47440
47441         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
47442         (copy_acl): Just a wrapper around qcopy_acl that emits the error
47443         messages.
47444         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
47445
47446 2008-06-01  Bruno Haible  <bruno@clisp.org>
47447
47448         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
47449         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
47450         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
47451         APIs.
47452         * modules/acl-tests (configure.ac): Remove tests now contained in
47453         m4/acl.m4.
47454
47455 2008-06-02  Jim Meyering  <meyering@redhat.com>
47456
47457         announce-gen: use a better key-server host name
47458         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
47459         it may be more consistently reliable.  Suggested by Werner Koch
47460         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
47461
47462 2008-06-01  Bruno Haible  <bruno@clisp.org>
47463
47464         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
47465         Reported by Voroskoi Andras <voroskoi@gmail.com>.
47466
47467 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
47468
47469         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
47470
47471 2008-06-01  Bruno Haible  <bruno@clisp.org>
47472
47473         New ACL tests.
47474         * tests/test-file-has-acl.sh: New file.
47475         * tests/test-file-has-acl.c: New file.
47476         * tests/test-set-mode-acl.sh: New file.
47477         * tests/test-set-mode-acl.c: New file.
47478         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
47479         * tests/test-copy-acl.c: New file.
47480         * modules/acl-tests: New file, based on modules/copy-file-tests.
47481         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
47482         (Depends-on): Add acl-tests.
47483         (configure.ac): Remove checks.
47484         (Makefile.am): Don't create test-sameacls program here any more.
47485
47486 2008-06-01  Bruno Haible  <bruno@clisp.org>
47487
47488         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
47489         * tests/test-sameacls.c: Include progname.h.
47490         (main): Invoke set_program_name. Portability fixes for MacOS X,
47491         Solaris, HP-UX.
47492
47493 2008-06-01  Bruno Haible  <bruno@clisp.org>
47494
47495         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
47496         function.
47497         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
47498
47499 2008-06-01  Bruno Haible  <bruno@clisp.org>
47500
47501         * modules/rpmatch (Depends-on): Add strdup.
47502
47503 2008-06-01  Bruno Haible  <bruno@clisp.org>
47504
47505         * lib/pipe.c: Include unistd-safer.h.
47506         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
47507         * modules/pipe (Depends-on): Add unistd-safer.
47508
47509 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47510
47511         * modules/autobuild (configure.ac): Call AB_INIT.
47512
47513 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47514
47515         * tests/test-getaddrinfo.c: Don't print debug messages by default.
47516         Suggested by Bruno Haible <bruno@clisp.org>.
47517
47518 2008-05-30  Simon Josefsson  <simon@josefsson.org>
47519
47520         * tests/test-base64.c: Cast size_t to unsigned long when invoking
47521         printf.  Use %lu instead of %d.  Reported by Bruno Haible
47522         <bruno@clisp.org>.
47523
47524 2008-05-29  Eric Blake  <ebb9@byu.net>
47525
47526         Prefer new POSIX 200x interfaces over futimesat.
47527         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
47528         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
47529         when available.
47530         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
47531
47532 2008-05-28  Bruno Haible  <bruno@clisp.org>
47533
47534         * modules/stpcpy (License): Change to LGPLv2+.
47535         Requested by David Lutterkort <dlutter@redhat.com>.
47536
47537 2008-05-27  Bruno Haible  <bruno@clisp.org>
47538
47539         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
47540         current mingw.
47541         Reported by Jose E. Marchesi <jemarch@gnu.org>.
47542
47543 2008-05-27  Bruno Haible  <bruno@clisp.org>
47544
47545         * modules/iconv_open (Link): New section, from module 'iconv'.
47546         * modules/striconv (Link): Likewise.
47547         * modules/striconveh (Link): Likewise.
47548         * modules/xstriconv (Link): Likewise.
47549         * modules/unicodeio (Link): Likewise.
47550         * modules/propername (Link): Likewise.
47551         Reported by Jim Meyering.
47552
47553 2008-05-26  Jim Meyering  <meyering@redhat.com>
47554
47555         sha256: do not artificially restrict buffer length to be < 2^32
47556         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
47557         uint32_t to size_t.
47558         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
47559         to match.
47560
47561         avoid unaligned access errors, e.g., on sparc
47562         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
47563         direct access through a possibly-unaligned uint64* pointer.
47564         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
47565         direct access through a possibly-unaligned uint32* pointer.
47566         Prompted by this patch from Tom "spot" Callaway:
47567         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
47568
47569         sha512.c: fix typo in comment
47570         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
47571
47572 2008-05-25  Bruno Haible  <bruno@clisp.org>
47573
47574         * lib/set-mode-acl.c: Renamed from lib/acl.c.
47575         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
47576         (Makefile.am): Update lib_SOURCES.
47577
47578 2008-05-25  Bruno Haible  <bruno@clisp.org>
47579
47580         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
47581
47582 2008-05-25  Jim Meyering  <meyering@redhat.com>
47583
47584         useless-if-before-free: freed expr may have white-space differences
47585         * build-aux/useless-if-before-free: Recognize cases in which the
47586         freed expression differs from the tested one in embedded white
47587         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
47588         $1 was used, so we can't make any regexp shy.  Improved tests now
47589         detect this.
47590
47591         useless-if-before-free: accept white space in the expression.
47592         * build-aux/useless-if-before-free: For now, any white space
47593         in the expression must be identical in the free argument.
47594
47595         useless-if-before-free: efficiency tweak
47596         * build-aux/useless-if-before-free: Make the expression-matching
47597         regexp "shy".
47598         Make the *outer* regexp shy, not the expr-matching one.
47599
47600         update code-in-comment to accept cast of free arg
47601         * build-aux/useless-if-before-free: Update regexp.
47602
47603 2008-05-25  Bruno Haible  <bruno@clisp.org>
47604
47605         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
47606         * modules/copy-file-tests (Files, Makefile.am): Update.
47607         * tests/test-copy-file.c (func_test_copy): Update.
47608
47609 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
47610
47611         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
47612
47613 2008-05-23  Bruno Haible  <bruno@clisp.org>
47614
47615         Improve support for ACLs on OSF/1.
47616         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
47617         Remove fallback for unknown flavors of ACLs.
47618
47619 2008-05-22  Bruno Haible  <bruno@clisp.org>
47620
47621         Add support for ACLs on OSF/1.
47622         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
47623         replacements.
47624         (acl_free_text): New macro fallback.
47625         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
47626         acl_free.
47627         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
47628         acl_free_text function. Require AC_C_INLINE.
47629
47630 2008-05-22  Bruno Haible  <bruno@clisp.org>
47631
47632         Make copy_acl work on MacOS X 10.5.
47633         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
47634         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
47635         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
47636         If MODE_INSIDE_ACL, don't assume that every system has the same text
47637         representation for ACLs as FreeBSD.
47638         * lib/copy-acl.c (copy_acl): Add support for platforms with
47639         !MODE_INSIDE_ACL.
47640         * lib/file-has-acl.c (file_has_acl): Likewise.
47641         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
47642         FreeBSD, MacOS X, or IRIX, respectively.
47643
47644 2008-05-22  Bruno Haible  <bruno@clisp.org>
47645
47646         * lib/acl.h: Don't include <sys/acl.h>.
47647         (GETACLCNT): Move fallback to lib/acl-internal.h.
47648         * lib/acl-internal.h: Include <sys/acl.h> here.
47649         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
47650
47651 2008-05-22  Bruno Haible  <bruno@clisp.org>
47652
47653         Split off copy_acl function to separate file.
47654         * lib/copy-acl.c: New file, extracted from lib/acl.c.
47655         * lib/acl.c (copy_acl): Moved function to separate file.
47656         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
47657         * modules/acl (Files): Add lib/copy-acl.c.
47658         (Makefiles.am): Augment lib_SOURCES.
47659
47660 2008-05-22  Bruno Haible  <bruno@clisp.org>
47661
47662         * modules/copy-file-tests: New file.
47663         * tests/test-copy-file.sh: New file.
47664         * tests/test-copy-file.c: New file.
47665         * tests/test-copy-file-sameacls.c: New file.
47666
47667 2008-05-22  Eric Blake  <ebb9@byu.net>
47668
47669         Avoid gcc warning.
47670         * tests/test-memcmp.c (main): Pass NULL indirectly.
47671
47672 2008-05-21  Bruno Haible  <bruno@clisp.org>
47673
47674         Add reference doc about ACLs.
47675         * doc/acl-resources.txt: New file.
47676         * doc/acl-cygwin.txt: New file.
47677
47678 2008-05-21  Bruno Haible  <bruno@clisp.org>
47679
47680         Avoid one more warning from gcc.
47681         * lib/vasnprintf.c (IF_LINT): Update comments.
47682         (VASNPRINTF): Use it also for the 'prefix' array initializer.
47683
47684 2008-05-21  Jim Meyering  <meyering@redhat.com>
47685
47686         avoid a warning from gcc
47687         * lib/vasnprintf.c (IF_LINT): Define.
47688         (scale10_round_decimal_long_double):
47689         Use it to avoid a "may be used uninitialized" warning.
47690         (scale10_round_decimal_double): Likewise.
47691
47692 2008-05-21  Simon Josefsson  <simon@josefsson.org>
47693
47694         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
47695         declared.
47696
47697 2008-05-20  Bruno Haible  <bruno@clisp.org>
47698
47699         * tests/test-memcmp.c (main): Test also the sign of the result. Test
47700         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
47701
47702 2008-05-20  Simon Josefsson  <simon@josefsson.org>
47703
47704         * modules/memcmp-tests: New file.
47705         * tests/test-memcmp.c: New file.
47706
47707 2008-05-19  Bruno Haible  <bruno@clisp.org>
47708
47709         * modules/propername (Notice, configure.ac): Put quoted "..." into
47710         --keyword option.
47711         * lib/propername.h: Update comments accordingly.
47712         Reported by Eric Blake.
47713
47714 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
47715
47716         * modules/getpass-gnu (Depends-on): Add fseeko.
47717
47718 2008-05-19  Simon Josefsson  <simon@josefsson.org>
47719
47720         * modules/base64-tests: New file.
47721
47722 2008-05-19  Bo Borgerson <gigabo@gmail.com>
47723
47724         * lib/base64.c (base64_decode_ctx): If a decode context structure
47725         was passed in use it to ignore newlines.  If a context structure
47726         was _not_ passed in, continue to treat newlines as garbage (this
47727         is the historical behavior).  Formerly base64_decode.
47728         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
47729         takes a decode context structure.
47730         * lib/base64.h (base64_decode): Macro for four-argument calls.
47731         (base64_decode_alloc): Likewise.
47732         * lib/base64.c (base64_decode_ctx): If a decode context structure
47733         was passed in use it to ignore newlines.  If a context structure
47734         was _not_ passed in, continue to treat newlines as garbage (this
47735         is the historical behavior).  Formerly base64_decode.
47736         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
47737         takes a decode context structure.
47738         * lib/base64.h (base64_decode): Macro for four-argument calls.
47739         (base64_decode_alloc): Likewise.
47740
47741 2008-05-19  Jim Meyering  <meyering@redhat.com>
47742
47743         avoid a warning from gcc
47744         * lib/trim.c (IF_LINT): Define.
47745         (trim2): Use it to avoid a "may be used uninitialized" warning.
47746
47747         Fix doc typo.
47748         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
47749
47750 2008-05-19  Bruno Haible  <bruno@clisp.org>
47751
47752         * doc/glibc-functions/getpass.texi: Document limits of other
47753         implementations.
47754
47755 2008-05-19  Simon Josefsson  <simon@josefsson.org>
47756             Bruno Haible <bruno@clisp.org>
47757
47758         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
47759
47760 2008-05-18  Bruno Haible  <bruno@clisp.org>
47761
47762         * modules/propername: New file, from GNU gettext.
47763         * lib/propername.h: New file, from GNU gettext.
47764         * lib/propername.c: New file, from GNU gettext.
47765         * MODULES.html.sh (Internationalization functions): Add propername.
47766
47767 2008-05-16  Jim Meyering  <meyering@redhat.com>
47768             Bruno Haible  <bruno@clisp.org>
47769
47770         Avoid some warnings from "gcc -Wshadow".
47771         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
47772
47773 2008-05-15  Eric Blake  <ebb9@byu.net>
47774
47775         Extend previous patch to cygwin 1.7.0.
47776         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
47777         fast implementation in cygwin >= 1.7.0.
47778         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47779         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47780
47781 2008-05-15  Bruno Haible  <bruno@clisp.org>
47782
47783         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
47784         implementation in glibc >= 2.9.
47785         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47786         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47787
47788 2008-05-15  Bruno Haible  <bruno@clisp.org>
47789
47790         * MODULES.html.sh (Internationalization functions): Remove linebreak.
47791         (Unicode string functions): Add unilbrk/*.
47792         Reported by Karl Berry.
47793
47794 2008-05-15  Eric Blake  <ebb9@byu.net>
47795
47796         Fix violation of <stdbool.h> replacement in regex.
47797         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
47798         * lib/regexec.c (re_search_internal): Likewise.
47799         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
47800
47801 2008-05-15  Jim Meyering  <meyering@redhat.com>
47802
47803         avoid distracting test output when git or cvs is not found
47804         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
47805         * tests/test-vc-list-files-git.sh: Likewise.
47806
47807 2008-05-15  Eric Blake  <ebb9@byu.net>
47808
47809         Glibc finally accepted the memmem speedup code, bugzilla #5514.
47810         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
47811         glibc version.
47812         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
47813         * doc/posix-functions/strstr.texi (strstr): Likewise.
47814         * lib/str-two-way.h (MAX): Sychronize with glibc.
47815
47816 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
47817
47818         * lib/regcomp.c (optimize_utf8): Add a note on why we test
47819         opr.ctx_type.
47820         (calc_first): Initialize constraint field.
47821         (duplicate_node_closure): Use it instead of special casing ANCHORS.
47822         Fix grammar.
47823         (duplicate_node): Merge constraint field for all node types.
47824         (calc_eclosure_iter): Look at constraint field for all node types.
47825         * lib/regex_internal.c (create_cd_newstate): Don't look at
47826         opr.ctx_type.
47827
47828 2008-05-14  Bruno Haible  <bruno@clisp.org>
47829
47830         Help GCC to do better code generation.
47831         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
47832         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
47833         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
47834         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
47835         Declare with attribute 'malloc' if supported.
47836
47837 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
47838
47839         use "echo STR|wc -c" rather than unportable "expr length STR"
47840         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
47841         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
47842
47843 2008-05-14  Jim Meyering  <meyering@redhat.com>
47844
47845         use dd ibs=$n count=1 ... rather than less-portable head -c$n
47846         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
47847         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
47848         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
47849         via Collin Lasse.
47850
47851 2008-05-14  Eric Blake  <ebb9@byu.net>
47852
47853         Avoid quadratic growth in gl_LIBSOURCES.
47854         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
47855         Suggested by Bruno Haible.
47856
47857         Test xmemdup0.
47858         * modules/xmemdup0-tests: New file.
47859         * tests/test-xmemdup0.c: Likewise.
47860
47861 2008-05-13  Eric Blake  <ebb9@byu.net>
47862
47863         Split xmemdup0 into its own module.
47864         * modules/xmemdup0: New file.
47865         * lib/xmemdup0.h: Likewise.
47866         * lib/xmemdup0.c: Likewise.
47867         * MODULES.html.sh (Memory management functions): Add xmemdup0.
47868         * lib/xalloc.h (xmemdup0): Remove.
47869         * lib/xmalloc.c (xmemdup0): Likewise.
47870
47871 2008-05-13  Eric Blake  <ebb9@byu.net>
47872             Bruno Haible  <bruno@clisp.org>
47873
47874         Reduce number of forks required during autoconf.
47875         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
47876         and gl_LIBSOURCES_DIR.
47877         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
47878         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
47879         m4_syscmd per file.
47880         <m4_foreach_w>: Move...
47881         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
47882
47883 2008-05-13  Eric Blake  <ebb9@byu.net>
47884
47885         * gnulib-tool: Fix various comment typos.
47886
47887 2008-05-12  Bruno Haible  <bruno@clisp.org>
47888
47889         Tailor the linebreaking algorithm.
47890         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
47891
47892 2008-05-12  Bruno Haible  <bruno@clisp.org>
47893
47894         Update to Unicode 5.0.0.
47895         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
47896         LBP_JV, LBP_JT. Redistribute values.
47897         (unilbrk_table): Change size.
47898         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
47899         Unicode TR#14 rev. 22.
47900         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
47901         LBP_JV, LBP_JT. Redistribute values.
47902         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
47903         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
47904         Update.
47905         * lib/unilbrk/lbrkprop1.h: Regenerated.
47906         * lib/unilbrk/lbrkprop2.h: Regenerated.
47907         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
47908         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
47909         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
47910         Likewise.
47911         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
47912         Likewise.
47913         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
47914         result.
47915         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
47916         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
47917         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
47918         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
47919         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
47920         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
47921
47922 2008-05-11  Bruno Haible  <bruno@clisp.org>
47923
47924         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
47925
47926 2008-05-11  Bruno Haible  <bruno@clisp.org>
47927
47928         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
47929         * modules/unilbrk/gen-lbrk: New file.
47930
47931 2008-05-11  Bruno Haible  <bruno@clisp.org>
47932
47933         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
47934         * m4/sha512.m4 (gl_SHA512): Likewise.
47935
47936 2008-05-11  Jim Meyering  <meyering@redhat.com>
47937
47938         New modules: crypto/sha256, crypto/sha512 (from coreutils)
47939         * modules/crypto/sha256: New file.
47940         * modules/crypto/sha512: Likewise.
47941         * lib/sha256.c: Likewise.
47942         * lib/sha256.h: Likewise.
47943         * lib/sha512.c: Likewise.
47944         * lib/sha512.h: Likewise.
47945         * lib/u64.h: Likewise.
47946         * m4/sha256.m4: Likewise.
47947         * m4/sha512.m4: Likewise.
47948         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
47949
47950 2008-05-10  Bruno Haible  <bruno@clisp.org>
47951
47952         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
47953         (Input/Output <stdio.h>): Add xprintf.
47954         (Signal handling <signal.h>): Add strsignal.
47955         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
47956         (Core language properties): Add func.
47957         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
47958         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
47959         strings.
47960         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
47961         (Input/output): New section.
47962         (File system functions): Add openat-die, stat-macros.
47963         (Networking functions): Add sockets.
47964         (Unicode string functions): Add unictype/*.
47965         (Support for building libraries and executables): Add gperf.
47966         (Support for building documentation): Add agpl-3.0.
47967         (Misc): Add nocrash.
47968
47969 2008-05-10  Bruno Haible  <bruno@clisp.org>
47970
47971         * modules/unictype/gen-ctype: New file.
47972
47973 2008-05-10  Jim Meyering  <meyering@redhat.com>
47974
47975         Make chdir-safer.c more efficient on a system with no symlinks.
47976         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
47977         also if ELOOP is zero.  Suggested by Bruno Haible.
47978
47979         Make chdir-safer.c slightly safer.
47980         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
47981         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
47982
47983         Avoid compile failure on systems without ELOOP (like mingw).
47984         * lib/chdir-safer.c (ELOOP): Define if not already defined.
47985         Reported by Bruno Haible.
47986
47987 2008-05-10  Bruno Haible  <bruno@clisp.org>
47988
47989         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
47990         (is_utf8_encoding): Use a case-insensitive comparison.
47991         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
47992         streq.
47993
47994 2008-05-10  Bruno Haible  <bruno@clisp.org>
47995
47996         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
47997         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
47998         * lib/unilbrk/ulc-common.h (iconv_string_length,
47999         iconv_string_keeping_offsets): Remove declarations.
48000         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
48001         Don't include <iconv.h>, streq.h, xsize.h.
48002         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
48003         conversion.
48004         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
48005         <iconv.h>, streq.h, xsize.h.
48006         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
48007         conversion.
48008         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
48009         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
48010         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
48011         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
48012
48013 2008-05-10  Bruno Haible  <bruno@clisp.org>
48014
48015         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
48016         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
48017
48018         * modules/unilbrk/u32-width-linebreaks-tests: New file.
48019         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
48020
48021         * modules/unilbrk/u16-width-linebreaks-tests: New file.
48022         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
48023
48024         * modules/unilbrk/u8-width-linebreaks-tests: New file.
48025         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
48026
48027         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
48028         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
48029
48030         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
48031         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
48032
48033         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
48034         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
48035
48036         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
48037         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
48038
48039 2008-05-10  Bruno Haible  <bruno@clisp.org>
48040
48041         Split up 'linebreak' module.
48042         * lib/unilbrk.h: New file, based on lib/linebreak.h.
48043         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
48044         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
48045         modifications.
48046         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
48047         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
48048         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
48049         lib/linebreak.c.
48050         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
48051         lib/linebreak.c.
48052         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
48053         lib/linebreak.c.
48054         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
48055         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
48056         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
48057         lib/linebreak.c.
48058         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
48059         lib/linebreak.c.
48060         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
48061         lib/linebreak.c.
48062         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
48063         lib/linebreak.c.
48064         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
48065         lib/linebreak.c.
48066         * modules/unilbrk/base: New file.
48067         * modules/unilbrk/tables: New file.
48068         * modules/unilbrk/u8-possible-linebreaks: New file.
48069         * modules/unilbrk/u16-possible-linebreaks: New file.
48070         * modules/unilbrk/u32-possible-linebreaks: New file.
48071         * modules/unilbrk/ulc-common: New file.
48072         * modules/unilbrk/ulc-possible-linebreaks: New file.
48073         * modules/unilbrk/u8-width-linebreaks: New file.
48074         * modules/unilbrk/u16-width-linebreaks: New file.
48075         * modules/unilbrk/u32-width-linebreaks: New file.
48076         * modules/unilbrk/ulc-width-linebreaks: New file.
48077         * lib/linebreak.h: Remove file.
48078         * lib/linebreak.c: Remove file.
48079         * m4/linebreak.m4: Remove file.
48080         * modules/linebreak: Remove file.
48081         * NEWS: Mention the changes.
48082
48083 2008-05-09  Eric Blake  <ebb9@byu.net>
48084
48085         Add xmemdup0.
48086         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
48087         implementation.
48088         * lib/xmalloc.c (xmemdup0): New C implementation.
48089
48090 2008-05-08  Bruno Haible  <bruno@clisp.org>
48091
48092         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
48093
48094 2008-05-07  Eric Blake  <ebb9@byu.net>
48095
48096         Support cross-compilation of <wctype.h>.
48097         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
48098         AC_CACHE_CHECK.
48099
48100 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
48101
48102         * build-aux/vc-list-files: Add support for bzr.
48103
48104 2008-05-03  Jim Meyering  <meyering@redhat.com>
48105
48106         avoid failed assertion with tight malloc
48107         * tests/test-getndelim2.c: Correct an off-by-one assertion.
48108
48109 2008-05-03  Simon Josefsson  <simon@josefsson.org>
48110
48111         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
48112         are needed from arpa/inet.h.
48113         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
48114         Reported by Bruno Haible.
48115
48116 2008-05-02  Jim Meyering  <meyering@redhat.com>
48117
48118         avoid compilation error on FreeBSD 6
48119         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
48120
48121 2008-05-01  Jim Meyering  <meyering@redhat.com>
48122
48123         useless-if-before-free: correct --help's exit status description
48124         * build-aux/useless-if-before-free (usage): Like grep, exit 0
48125         for one or more matches, etc.  Reported by Bruno Haible.
48126
48127         vc-list-files: make the stand-alone gnulib test work
48128         * modules/vc-list-files-tests (configure.ac):
48129         Define and AC_SUBST abs_aux_dir.
48130         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
48131         $(abs_top_srcdir) to each script and having each of them
48132         duplicate the work of setting PATH, set PATH here, using
48133         the new variable, abs_aux_dir instead.
48134         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
48135         * tests/test-vc-list-files-git.sh: Likewise.
48136         Reported by Bruno Haible.
48137
48138 2008-05-01  Bruno Haible  <bruno@clisp.org>
48139
48140         * lib/getndelim2.c (getndelim2): Fix newsize computation during
48141         reallocation. Rename 'done' to 'found_delimiter'.
48142
48143 2008-05-01  Jim Meyering  <meyering@redhat.com>
48144
48145         vc-list-files: accommodate /bin/sh like the one from Solaris 10
48146         * build-aux/vc-list-files: Use `...`, not $(...).
48147
48148 2008-04-30  Jim Meyering  <meyering@redhat.com>
48149
48150         add tests for vc-list-files
48151         * modules/vc-list-files-tests: New module.
48152         * tests/test-vc-list-files-cvs.sh: New file.
48153         * tests/test-vc-list-files-git.sh: New file.
48154
48155         avoid a warning from gcc
48156         * lib/getndelim2.c (IF_LINT): Define.
48157         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
48158
48159         vc-list-files: work properly with build-aux/cvsu, too
48160         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
48161         to all cvs-based clauses.
48162
48163         vc-list-files: work properly in the CVS+awk case, too
48164         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
48165
48166         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
48167         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
48168         take more than one file argument, so .  Add quotes, just in case $dir
48169         ever contains a shell meta-character.  Prompted by Soren Hansen in
48170         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
48171
48172 2008-04-29  Eric Blake  <ebb9@byu.net>
48173
48174         Optimize getndelim2 to use block operations when possible.
48175         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
48176         freadseek, and memchr2.
48177         * lib/getndelim2.c (getndelim2): Use them for block reads.
48178
48179 2008-04-29  Bruno Haible  <bruno@clisp.org>
48180
48181         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
48182         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48183         * modules/inet_ntop (Depends-on): Add extensions.
48184         * modules/inet_pton (Depends-on): Likewise.
48185         Reported by Simon Josefsson.
48186
48187 2008-04-29  Jim Meyering  <meyering@redhat.com>
48188
48189         When the is more than one match in a block, match all of them.
48190         * build-aux/useless-if-before-free: Iterate through each block
48191         until there are no more matches.
48192
48193         Fix broken useless-if-before-free script.
48194         * build-aux/useless-if-before-free: Fix typo: missing "?" after
48195         the expression to match cast of argument to free-like function.
48196
48197 2008-04-29  Eric Blake  <ebb9@byu.net>
48198
48199         Use new header.
48200         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
48201
48202 2008-04-29  Jim Meyering  <meyering@redhat.com>
48203
48204         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
48205         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
48206         by gnulib to exist and to declare e.g., inet_ntop.
48207         Don't include "inet_ntop.h", now removed.
48208
48209         * m4/arpa_inet_h.m4: Remove trailing blanks.
48210
48211 2008-04-29  Eric Blake  <ebb9@byu.net>
48212
48213         Silence valgrind on safe reads beyond potential array bounds.
48214         * lib/rawmemchr.valgrind: New file.
48215         * lib/strchrnul.valgrind: Likewise.
48216         * modules/rawmemchr (Files): Distribute new file.
48217         * modules/strchrnul (Files): Likewise.
48218         Suggested by Bruno Haible.
48219
48220 2008-04-29  Bruno Haible  <bruno@clisp.org>
48221
48222         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
48223         (inet_ntop, inet_pton): Change portability warning's wording.
48224         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
48225         Invoke gl_CHECK_NEXT_HEADERS.
48226         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
48227         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
48228         set ARPA_INET_H.
48229         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48230         * modules/arpa_inet (Description): No longer only for systems that
48231         lack it.
48232         (Depends-on): Add include_next.
48233         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
48234         HAVE_ARPA_INET_H.
48235
48236 2008-04-29  Jim Meyering  <meyering@redhat.com>
48237
48238         * modules/mkdir (License): Re-license as LGPLv2+.
48239
48240 2008-04-29  Bruno Haible  <bruno@clisp.org>
48241
48242         * modules/rawmemchr (Maintainer): Set to Eric.
48243         * modules/strchrnul (Maintainer): Likewise.
48244
48245 2008-04-29  Simon Josefsson  <simon@josefsson.org>
48246
48247         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
48248         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
48249
48250         * modules/arpa_inet (arpa/inet.h): Use them.
48251
48252 2008-04-28  Eric Blake  <ebb9@byu.net>
48253
48254         Test getndelim2.
48255         * modules/getndelim2-tests: New file.
48256         * tests/test-getndelim2.c: Likewise.
48257         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
48258         stream.
48259         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
48260
48261         * MODULES.html.sh: Document new module.
48262
48263 2008-04-20  Bruno Haible  <bruno@clisp.org>
48264
48265         * lib/c-stack.c (die): Use raise.
48266         * modules/c-stack (Depends-on): Add raise.
48267
48268 2008-04-28  Bruno Haible  <bruno@clisp.org>
48269
48270         Expect rpmatch to be declared.
48271         * lib/yesno.c (rpmatch): Remove declaration.
48272
48273         Declare rpmatch.
48274         * lib/stdlib.in.h (rpmatch): New declaration.
48275         * lib/rpmatch.c: Include <stdlib.h> first.
48276         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
48277         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
48278         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
48279         HAVE_RPMATCH.
48280         * modules/rpmatch (Depends-on): Add stdlib, extensions.
48281         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
48282         (Include): Set to <stdlib.h>.
48283         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
48284         HAVE_RPMATCH.
48285         * NEWS: Document the change.
48286
48287 2008-04-28  Bruno Haible  <bruno@clisp.org>
48288
48289         Change rpmatch to use nl_langinfo when appropriate.
48290         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
48291         (N_): New macro.
48292         (localized_pattern): New function/macro.
48293         (try): Remove match, nomatch arguments. Copy the pattern into safe
48294         memory before caching it.
48295         (rpmatch): Use localized_pattern. Add translator comments.
48296         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
48297         Suggested by Eric Blake.
48298         * modules/rpmatch (Depends-on): Add stdbool.
48299
48300 2008-04-28  Eric Blake  <ebb9@byu.net>
48301
48302         Add rawmemchr module, matching glibc.
48303         * modules/string (Makefile.am): New indicator.
48304         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
48305         * lib/string.in.h (rawmemchr): Declare when appropriate.
48306         * modules/rawmemchr: New file.
48307         * m4/rawmemchr.m4: Likewise.
48308         * lib/rawmemchr.c: Likewise.
48309         * modules/rawmemchr-tests: Likewise.
48310         * tests/test-rawmemchr.c: Likewise.
48311         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
48312         module.
48313         * modules/strchrnul (Depends-on): Add rawmemchr.
48314         * lib/strchrnul.c (strchrnul): Optimize a corner case.
48315
48316         Whitespace cleanup.
48317         * tests/test-strchrnul.c: Reindent.
48318         * lib/strchrnul.c: Likewise.
48319
48320         Optimize and test strchrnul.
48321         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
48322         * modules/strchrnul-tests: New file.
48323         * tests/test-strchrnul.c: Likewise.
48324
48325         Remove intprops dependency.
48326         * modules/memchr (Depends-on): Remove intprops.
48327         * modules/memrchr (Depends-on): Likewise.
48328         * modules/memchr2 (Depends-on): Likewise.
48329         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
48330         * lib/memrchr.c (__memrchr): Likewise.
48331         * lib/memrchr2.c (memchr2): Likewise.
48332         Reported by Simon Josefsson.
48333
48334 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48335
48336         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
48337         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48338
48339 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48340
48341         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
48342
48343         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
48344
48345         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
48346
48347         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
48348         declarations.
48349         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
48350
48351         * m4/inet_pton.m4: Don't check for header files.
48352
48353         * m4/inet_ntop.m4: Don't check for header files.
48354
48355 2008-04-28  Simon Josefsson  <simon@josefsson.org>
48356
48357         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
48358         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
48359         trigger for cygwin).
48360         Reported by Bruno Haible  <bruno@clisp.org>.
48361
48362 2008-04-28  Bruno Haible  <bruno@clisp.org>
48363
48364         * doc/posix-functions/strdup.texi: Mention mingw problem.
48365
48366 2008-04-27  Bruno Haible  <bruno@clisp.org>
48367
48368         * modules/stat-time-tests (Depends-on): Add sleep.
48369         * tests/test-stat-time.c (force_unlink): New function.
48370         (cleanup): Use it.
48371         (test_mtime): Remove the ctime related tests.
48372         (test_ctime): New function, containing the ctime related tests.
48373         (main): Call test_ctime, except on native Windows platforms.
48374
48375 2008-04-27  Bruno Haible  <bruno@clisp.org>
48376
48377         * lib/rpmatch.c (rpmatch): Add some comments.
48378         Reported by James Youngman <jay@gnu.org>.
48379
48380 2008-04-27  Bruno Haible  <bruno@clisp.org>
48381
48382         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
48383         quiet NaNs.
48384
48385 2008-04-27  Bruno Haible  <bruno@clisp.org>
48386
48387         Make test-yesno.sh work on mingw.
48388         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
48389         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
48390         (main): Set stdin to binary mode.
48391         * modules/yesno-tests (Depends-on): Add binary-io.
48392
48393 2008-04-27  Bruno Haible  <bruno@clisp.org>
48394
48395         Fix 'isfinite' on x86, x86_64, ia64 platforms.
48396         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
48397         argument that lie outside the IEEE 854 domain.
48398         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
48399         (gl_ISFINITE): Use it.
48400         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
48401
48402 2008-04-27  Bruno Haible  <bruno@clisp.org>
48403
48404         Allow local renaming in config.h.
48405         * lib/memrchr.c (memrchr): Don't undefine outside libc.
48406
48407 2008-04-27  Bruno Haible  <bruno@clisp.org>
48408
48409         * lib/memchr.c (__memchr): Change type of 'i'.
48410         * lib/memchr2.c (memchr2): Likewise.
48411
48412 2008-04-26  Eric Blake  <ebb9@byu.net>
48413         and Bruno Haible  <bruno@clisp.org>
48414
48415         Optimize and test memrchr.
48416         * modules/memrchr (Depends-on): Add intprops.
48417         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
48418         * modules/memrchr-tests: New file.
48419         * tests/test-memrchr.c: New file.
48420
48421 2008-04-26  Bruno Haible  <bruno@clisp.org>
48422
48423         Add tentative support for DragonFly BSD.
48424         * lib/stdio-impl.h: Add macros for DragonFly BSD.
48425         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
48426         fp.
48427         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
48428         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
48429         * lib/fpurge.c (fpurge): Likewise.
48430         * lib/freadable.c (freaadable): Likewise.
48431         * lib/freadahead.c (freadahead): Likewise.
48432         * lib/freading.c (freading): Likewise.
48433         * lib/freadptr.c (freadptr): Likewise.
48434         * lib/freadseek.c (freadptrinc): Likewise.
48435         * lib/fseeko.c (fseeko): Likewise.
48436         * lib/fseterr.c (fseterr): Likewise.
48437         * lib/fwritable.c (fwritable): Likewise.
48438         * lib/fwriting.c (fwriting): Likewise.
48439
48440 2008-04-26  Bruno Haible  <bruno@clisp.org>
48441
48442         * lib/stdio-impl.h: New file.
48443         * lib/fbufmode.c: Include stdio-impl.h.
48444         (fbufmode): Use fp_, remove redundant #defines.
48445         * lib/fflush.c: Include stdio-impl.h.
48446         (clear_ungetc_buffer): Remove redundant #defines.
48447         * lib/fpurge.c: Include stdio-impl.h.
48448         (fpurge): Remove redundant #defines.
48449         * lib/freadable.c: Include stdio-impl.h.
48450         (freadable): Remove redundant #defines.
48451         * lib/freadahead.c: Include stdio-impl.h.
48452         (freadahead): Remove redundant #defines.
48453         * lib/freading.c: Include stdio-impl.h.
48454         (freading): Remove redundant #defines.
48455         * lib/freadptr.c: Include stdio-impl.h.
48456         (freadptr): Remove redundant #defines.
48457         * lib/freadseek.c: Include stdio-impl.h.
48458         (freadptrinc): Remove redundant #defines.
48459         * lib/fseeko.c: Include stdio-impl.h.
48460         (rpl_fseeko): Remove redundant #defines.
48461         * lib/fseterr.c: Include stdio-impl.h.
48462         (fseterr): Remove redundant #defines.
48463         * lib/fwritable.c: Include stdio-impl.h.
48464         (fwritable: Remove redundant #defines.
48465         * lib/fwriting.c: Include stdio-impl.h.
48466         (fwriting): Remove redundant #defines.
48467         * modules/fbufmode (Files): Add lib/stdio-impl.h.
48468         * modules/fflush (Files): Likewise.
48469         * modules/fpurge (Files): Likewise.
48470         * modules/freadable (Files): Likewise.
48471         * modules/freadahead (Files): Likewise.
48472         * modules/freading (Files): Likewise.
48473         * modules/freadptr (Files): Likewise.
48474         * modules/freadseek (Files): Likewise.
48475         * modules/fseeko (Files): Likewise.
48476         * modules/fseterr (Files): Likewise.
48477         * modules/fwritable (Files): Likewise.
48478         * modules/fwriting (Files): Likewise.
48479
48480 2008-04-26  Bruno Haible  <bruno@clisp.org>
48481
48482         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
48483         restore_seek_optimization, update_fpos_cache): New functions, extracted
48484         from rpl_fflush.
48485         (rpl_fflush): Use them.
48486         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
48487         (gl_REPLACE_FFLUSH): Use it.
48488
48489 2008-04-26  Bruno Haible  <bruno@clisp.org>
48490
48491         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
48492         on Solaris.
48493         * tests/test-xstrtoimax.sh: Likewise.
48494         * tests/test-xstrtoumax.sh: Likewise.
48495         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48496
48497 2008-04-26  Bruno Haible  <bruno@clisp.org>
48498
48499         * modules/memchr-tests: New file.
48500         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
48501
48502 2008-04-26  Eric Blake  <ebb9@byu.net>
48503             Bruno Haible  <bruno@clisp.org>
48504
48505         * lib/memchr.c: Include intprops.h.
48506         (__memchr): Optimize parallel detection of matching bytes. Rename local
48507         variables. Add explanatory comments.
48508
48509 2008-04-26  Bruno Haible  <bruno@clisp.org>
48510
48511         Fix module 'memchr', broken since 2000-10-28.
48512         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
48513
48514 2008-04-26  Bruno Haible  <bruno@clisp.org>
48515
48516         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
48517         comments.
48518
48519 2008-04-25  Eric Blake  <ebb9@byu.net>
48520
48521         Use native fstatat on cygwin 1.7.0.
48522         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
48523         first.
48524
48525 2008-04-23  Eric Blake  <ebb9@byu.net>
48526
48527         Improve memchr2 performance.
48528         * lib/memchr2.c (memchr2): Further optimize parallel detection of
48529         NUL bytes.
48530         * modules/memchr2 (Depends-on): Use intprops.h.
48531
48532 2008-04-23  Simon Josefsson  <simon@josefsson.org>
48533
48534         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
48535         an inline function instead of a CPP macro.  Patch by Ben Pfaff
48536         <blp@cs.stanford.edu>.
48537
48538 2008-04-23  Simon Josefsson  <simon@josefsson.org>
48539
48540         * lib/arpa_inet.in.h: New file.
48541
48542         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
48543         (Makefile.am): Sed in substitute header file.
48544
48545         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
48546         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
48547
48548         * modules/inet_ntop (configure.ac): Use
48549         gl_ARPA_INET_MODULE_INDICATOR.
48550
48551         * modules/inet_pton (configure.ac): Use
48552         gl_ARPA_INET_MODULE_INDICATOR.
48553
48554 2008-04-22  Jim Meyering  <meyering@redhat.com>
48555
48556         * modules/verify (License): Re-license as LGPLv2+.
48557
48558 2008-04-22  Simon Josefsson  <simon@josefsson.org>
48559
48560         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
48561         parameter to void* as per POSIX standard (MinGW uses char*).
48562
48563 2008-04-21  Bruno Haible  <bruno@clisp.org>
48564
48565         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
48566         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
48567         Define to replacements if REPLACE_ISWCNTRL is 1.
48568         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
48569         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
48570         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
48571         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
48572         what it fixes.
48573         * doc/posix-functions/iswalpha.texi: Likewise.
48574         * doc/posix-functions/iswblank.texi: Likewise.
48575         * doc/posix-functions/iswcntrl.texi: Likewise.
48576         * doc/posix-functions/iswdigit.texi: Likewise.
48577         * doc/posix-functions/iswgraph.texi: Likewise.
48578         * doc/posix-functions/iswlower.texi: Likewise.
48579         * doc/posix-functions/iswprint.texi: Likewise.
48580         * doc/posix-functions/iswpunct.texi: Likewise.
48581         * doc/posix-functions/iswspace.texi: Likewise.
48582         * doc/posix-functions/iswupper.texi: Likewise.
48583         * doc/posix-functions/iswxdigit.texi: Likewise.
48584         Reported by Alain Guibert.
48585
48586 2008-04-21  Bruno Haible  <bruno@clisp.org>
48587
48588         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
48589         Patch by Alain Guibert.
48590
48591 2008-04-21  Bruno Haible  <bruno@clisp.org>
48592
48593         Fix test failures on mingw.
48594         * tests/test-xstrtol.c (print_no_progname): New function.
48595         (main): Install it in error_print_progname hook.
48596         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
48597         * tests/test-xstrtoimax.sh: Likewise.
48598         * tests/test-xstrtoumax.sh: Likewise.
48599
48600 2008-04-21  Bruno Haible  <bruno@clisp.org>
48601
48602         Fix test failure on mingw.
48603         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
48604
48605 2008-04-21  Bruno Haible  <bruno@clisp.org>
48606
48607         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
48608         Actually assign a value.
48609
48610 2008-04-20  Bruno Haible  <bruno@clisp.org>
48611
48612         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
48613         take 2.
48614         * lib/canonicalize.c (canonicalize_file_name): Elide if the
48615         'canonicalize-lgpl' module is also used.
48616         * lib/canonicalize-lgpl.c: Undo last change.
48617         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
48618
48619 2008-04-20  Bruno Haible  <bruno@clisp.org>
48620
48621         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
48622         config.h. Provide _mkdir based fallback for mingw.
48623         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
48624         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
48625         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
48626         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
48627         rather than defining mkdir in config.h.
48628         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
48629         (gl_SYS_STAT_H_DEFAULTS): New macro.
48630         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
48631         HAVE_IO_H any more.
48632         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
48633         HAVE_DECL_MKDIR and HAVE_IO_H.
48634
48635 2008-04-20  Bruno Haible  <bruno@clisp.org>
48636
48637         * lib/isapipe.c: Port to native Windows platforms.
48638
48639 2008-04-20  Bruno Haible  <bruno@clisp.org>
48640
48641         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
48642
48643 2008-04-21  Eric Blake  <ebb9@byu.net>
48644
48645         Work around preprocessors that don't handle UINTMAX_MAX.
48646         * lib/memchr2.c (memchr2): Avoid embedded #if.
48647         Reported by Alain Guibert, fix suggested by Bruno Haible.
48648
48649 2008-04-21  Simon Josefsson  <simon@josefsson.org>
48650
48651         * doc/posix-functions/strftime.texi (strftime): Explain better
48652         Windows incompatibility.  Suggested by Micah Cowan
48653         <micah@cowan.name>.
48654
48655 2008-04-20  Bruno Haible  <bruno@clisp.org>
48656
48657         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
48658         unistr/u8-mblen.
48659
48660 2008-04-20  Bruno Haible  <bruno@clisp.org>
48661
48662         Fix test failure on platforms with non-GNU iconv.
48663         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
48664         (U_TO_U8): Use it, rather than u16_to_u8.
48665         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
48666         units at the end of the input string.
48667         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
48668
48669 2008-04-20  Bruno Haible  <bruno@clisp.org>
48670
48671         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
48672         when the resulting length is 0.
48673         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
48674
48675 2008-04-20  Bruno Haible  <bruno@clisp.org>
48676
48677         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
48678         works.
48679         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
48680
48681 2008-04-20  Bruno Haible  <bruno@clisp.org>
48682
48683         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
48684         * modules/tsearch-tests (configure.ac): Test for initstate function.
48685
48686 2008-04-20  Bruno Haible  <bruno@clisp.org>
48687
48688         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
48689         for nlink_t if missing.
48690         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
48691
48692 2008-04-19  Bruno Haible  <bruno@clisp.org>
48693
48694         Work around snprintf bug on Linux libc5.
48695         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
48696         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
48697         gl_SNPRINTF_SIZE1.
48698         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48699         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
48700         that test failed.
48701         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
48702         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
48703         * modules/snprintf (Files): Add m4/printf.m4.
48704         * modules/vsnprintf (Files): Likewise.
48705         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
48706         * doc/posix-functions/vsnprintf.texi: Likewise.
48707
48708 2008-04-19  Bruno Haible  <bruno@clisp.org>
48709
48710         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
48711         from 0.0058 to less than 10^-7.
48712
48713 2008-04-19  Bruno Haible  <bruno@clisp.org>
48714
48715         Fix rounding when a precision is given.
48716         * lib/vasnprintf.c (is_borderline): New function.
48717         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
48718         9...9x.
48719         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
48720         %e, %g.
48721         * tests/test-vasprintf-posix.c (test_function): Likewise.
48722         * tests/test-snprintf-posix.h (test_function): Likewise.
48723         * tests/test-sprintf-posix.h (test_function): Likewise.
48724         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
48725         * tests/test-printf-posix.h (test_function): Likewise.
48726         * tests/test-printf-posix.output: Update.
48727         Reported by John Darrington <john@darrington.wattle.id.au> via
48728         Ben Pfaff <blp@cs.stanford.edu>.
48729
48730 2008-04-18  Simon Josefsson  <simon@josefsson.org>
48731
48732         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
48733         Suggested by Bruno Haible <bruno@clisp.org>.
48734
48735 2008-04-17  Bruno Haible  <bruno@clisp.org>
48736
48737         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
48738         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
48739         implementation.
48740         Patch by Bruce Merry <bmerry@gmail.com>.
48741
48742 2008-04-17  Simon Josefsson  <simon@josefsson.org>
48743
48744         * doc/posix-functions/strftime.texi (strftime): Mention that %e
48745         doesn't work under Windows.
48746
48747 2008-04-16  Bruno Haible  <bruno@clisp.org>
48748
48749         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
48750         New macros.
48751         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
48752         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
48753         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
48754         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
48755         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
48756         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
48757         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
48758         macros.
48759         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
48760         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
48761         Northern Sotho, Uighur.
48762
48763 2008-04-16  Bruno Haible  <bruno@clisp.org>
48764
48765         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
48766         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
48767         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
48768         Reported by Daniel Bergström <daniel@octocode.com>.
48769
48770 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
48771             Bruno Haible  <bruno@clisp.org>
48772
48773         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
48774         function.
48775         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
48776         New functions, mostly extracted from gl_locale_name_default.
48777         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
48778
48779 2008-04-16  Eric Blake  <ebb9@byu.net>
48780
48781         Adjust strtod detection to catch glibc 2.7 bug.
48782         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
48783         Reported by John Gatewood Ham.
48784
48785 2008-04-16  Bruno Haible  <bruno@clisp.org>
48786
48787         Add tentative support for Linux libc5.
48788         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
48789         * lib/fpurge.c (fpurge): Likewise.
48790         * lib/freadable.c (freadable): Likewise.
48791         * lib/freadahead.c (freadahead): Likewise.
48792         * lib/freading.c (freading): Likewise.
48793         * lib/freadptr.c (freadptr): Likewise.
48794         * lib/freadseek.c (freadptrinc): Likewise.
48795         * lib/fseeko.c (rpl_fseeko): Likewise.
48796         * lib/fseterr.c (fseterr): Likewise.
48797         * lib/fwritable.c (fwritable): Likewise.
48798         * lib/fwriting.c (fwriting): Likewise.
48799         Reported by Alain Guibert <alguibert+bts@free.fr>.
48800
48801 2008-04-15  Bruno Haible  <bruno@clisp.org>
48802
48803         * modules/mathl (configure.ac): Define module indicator.
48804
48805 2008-04-15  Bruno Haible  <bruno@clisp.org>
48806
48807         * lib/logl.c (logl): Remove unused variables.
48808
48809 2008-04-15  Bruno Haible  <bruno@clisp.org>
48810
48811         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
48812         fails.
48813
48814 2008-04-15  Bruno Haible  <bruno@clisp.org>
48815
48816         * lib/trim.c (trim2): Fix argument of isspace() macro.
48817
48818 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
48819
48820         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
48821         to 0.
48822         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
48823
48824 2008-04-14  Bruno Haible  <bruno@clisp.org>
48825
48826         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
48827         AC_LANG_PROGRAM argument.
48828         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
48829         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
48830         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
48831         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
48832         * m4/math_h.m4 (gl_MATH_H): Likewise.
48833         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
48834         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48835         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
48836         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
48837         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
48838         * m4/regex.m4 (gl_REGEX): Likewise.
48839         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
48840         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
48841         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
48842         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
48843         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
48844         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
48845         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48846         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
48847
48848 2008-04-14  Jim Meyering  <meyering@redhat.com>
48849
48850         test-strtod: fix typos: s/abs/fabs/
48851         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
48852
48853 2008-04-13  Bruno Haible  <bruno@clisp.org>
48854
48855         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
48856         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
48857         module is also used and while not building the reloc-wrapper.
48858
48859 2008-04-13  Bruno Haible  <bruno@clisp.org>
48860
48861         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
48862
48863 2008-04-13  Bruno Haible  <bruno@clisp.org>
48864
48865         Fix AIX compilation failure introduced on 2008-04-02.
48866         * tests/test-frexp.c (exp): Undefine before redefining.
48867         * tests/test-frexpl.c (exp): Likewise.
48868
48869 2008-04-13  Bruno Haible  <bruno@clisp.org>
48870
48871         Work around a HP-UX stdio bug.
48872         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
48873         * tests/test-ftello.c (main): Likewise.
48874         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
48875         * doc/posix-functions/ftello.texi: Likewise.
48876
48877 2008-04-13  Bruno Haible  <bruno@clisp.org>
48878
48879         Make test-signbit pass on HP-UX/hppa.
48880         * tests/test-signbit.c (minus_zerol): New variable.
48881         (test_signbitl): Use it.
48882
48883 2008-04-13  Bruno Haible  <bruno@clisp.org>
48884
48885         Make truncl work on OSF/1 4.0.
48886         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
48887         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
48888         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
48889         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
48890         HAVE_DECL_TRUNCL.
48891         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
48892         HAVE_DECL_TRUNCL.
48893         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
48894
48895 2008-04-13  Bruno Haible  <bruno@clisp.org>
48896
48897         * lib/unictype.h: Remove trailing comma from enumeration definitions.
48898
48899 2008-04-13  Bruno Haible  <bruno@clisp.org>
48900
48901         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
48902         expression, so as to avoid HP-UX 11 cc compiler bug.
48903
48904 2008-04-13  Bruno Haible  <bruno@clisp.org>
48905
48906         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
48907
48908 2008-04-13  Bruno Haible  <bruno@clisp.org>
48909
48910         * lib/git-merge-changelog.c: Remove empty declaration outside of
48911         functions.
48912
48913 2008-04-13  Bruno Haible  <bruno@clisp.org>
48914
48915         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
48916
48917 2008-04-13  Bruno Haible  <bruno@clisp.org>
48918
48919         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
48920         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
48921         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
48922         also if it exists but lacks definitions of the SHUT_* macros.
48923         * modules/sys_socket (Description): Update.
48924         Reported by Elbert Pol <e.pol@chello.nl>.
48925
48926 2008-04-13  Bruno Haible  <bruno@clisp.org>
48927
48928         * lib/localcharset.c (OS2): Don't redefine if already defined.
48929         Reported by Elbert Pol <e.pol@chello.nl>.
48930
48931 2008-04-13  Bruno Haible  <bruno@clisp.org>
48932
48933         * lib/binary-io.h [__EMX__]: Include <io.h>.
48934         Reported by Elbert Pol <e.pol@chello.nl>.
48935
48936 2008-04-12  Bruno Haible  <bruno@clisp.org>
48937
48938         * lib/fpucw.h: Enable the definitions also for x86_64.
48939         Needed for NetBSD/x86_64.
48940         Reported by Thomas Klausner <tk@giga.or.at>.
48941
48942 2008-04-12  Bruno Haible  <bruno@clisp.org>
48943
48944         * tests/test-strtod.c: Include isnand.h.
48945         (main): Use isnand instead of isnan.
48946         Reported by Jim Meyering.
48947
48948 2008-04-12  Bruno Haible  <bruno@clisp.org>
48949
48950         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
48951         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
48952
48953 2008-04-12  Jim Meyering  <meyering@redhat.com>
48954
48955         * m4/math_h.m4 (gl_MATH_H): Fix typos.
48956
48957 2008-04-12  Bruno Haible  <bruno@clisp.org>
48958
48959         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
48960         Reported by Elbert Pol <e.pol@chello.nl>.
48961
48962 2008-04-12  Eric Blake  <ebb9@byu.net>
48963
48964         Work around Solaris 10 math.h bug.
48965         * m4/math_h.m4 (gl_MATH_H): Check for bug.
48966         (gl_MATH_H_DEFAULTS): Set up default.
48967         * modules/math (Makefile.am): Replace new indicators.
48968         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
48969         * tests/test-math.c (main): Test this.
48970         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
48971         * doc/posix-headers/math.texi (math.h): Mention bug.
48972         Reported by Nelson H. F. Beebe and Jim Meyering.
48973
48974 2008-04-11  Bruno Haible  <bruno@clisp.org>
48975
48976         Adapt to future versions of Apple GCC.
48977         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
48978         Reported by Peter O'Gorman <peter@pogma.com>.
48979
48980 2008-04-11  Bruno Haible  <bruno@clisp.org>
48981
48982         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
48983
48984 2008-04-11  Bruno Haible  <bruno@clisp.org>
48985
48986         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
48987
48988         * modules/getaddrinfo-tests (Makefile.am): Define
48989         test_getaddrinfo_LDADD.
48990
48991 2008-04-11  Bruno Haible  <bruno@clisp.org>
48992
48993         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
48994         (init): Fix syntax error.
48995         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
48996         is declared.
48997
48998 2008-04-11  Bruno Haible  <bruno@clisp.org>
48999
49000         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
49001         * modules/glob (Depends-on): Add stdbool.
49002
49003 2008-04-11  Bruno Haible  <bruno@clisp.org>
49004
49005         * lib/trim.c: Include <string.h>.
49006
49007 2008-04-11  Eric Blake  <ebb9@byu.net>
49008
49009         Avoid compile failure on OS/2.
49010         * lib/regex_internal.h (internal_function): Disable optimization
49011         on OS/2 (__EMX__), where it caused compiler error.
49012         Reported by Elbert Pol.
49013
49014 2008-04-11  Bruno Haible  <bruno@clisp.org>
49015
49016         Flush the standard error stream before aborting. Needed on mingw.
49017         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
49018         * tests/test-array_list.c (ASSERT): Likewise.
49019         * tests/test-array_oset.c (ASSERT): Likewise.
49020         * tests/test-avltree_list.c (ASSERT): Likewise.
49021         * tests/test-avltree_oset.c (ASSERT): Likewise.
49022         * tests/test-avltreehash_list.c (ASSERT): Likewise.
49023         * tests/test-binary-io.c (ASSERT): Likewise.
49024         * tests/test-byteswap.c (ASSERT): Likewise.
49025         * tests/test-c-ctype.c (ASSERT): Likewise.
49026         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
49027         * tests/test-c-strcasestr.c (ASSERT): Likewise.
49028         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
49029         * tests/test-c-strstr.c (ASSERT): Likewise.
49030         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
49031         * tests/test-canonicalize.c (ASSERT): Likewise.
49032         * tests/test-carray_list.c (ASSERT): Likewise.
49033         * tests/test-ceilf1.c (ASSERT): Likewise.
49034         * tests/test-ceilf2.c (ASSERT): Likewise.
49035         * tests/test-ceill.c (ASSERT): Likewise.
49036         * tests/test-count-one-bits.c (ASSERT): Likewise.
49037         * tests/test-fbufmode.c (ASSERT): Likewise.
49038         * tests/test-fflush2.c (ASSERT): Likewise.
49039         * tests/test-floorf1.c (ASSERT): Likewise.
49040         * tests/test-floorf2.c (ASSERT): Likewise.
49041         * tests/test-floorl.c (ASSERT): Likewise.
49042         * tests/test-fopen.c (ASSERT): Likewise.
49043         * tests/test-fpending.c (ASSERT): Likewise.
49044         * tests/test-fprintf-posix.c (ASSERT): Likewise.
49045         * tests/test-fpurge.c (ASSERT): Likewise.
49046         * tests/test-freadable.c (ASSERT): Likewise.
49047         * tests/test-freadahead.c (ASSERT): Likewise.
49048         * tests/test-freading.c (ASSERT): Likewise.
49049         * tests/test-freadptr.c (ASSERT): Likewise.
49050         * tests/test-freadptr2.c (ASSERT): Likewise.
49051         * tests/test-freadseek.c (ASSERT): Likewise.
49052         * tests/test-freopen.c (ASSERT): Likewise.
49053         * tests/test-frexp.c (ASSERT): Likewise.
49054         * tests/test-frexpl.c (ASSERT): Likewise.
49055         * tests/test-fseek.c (ASSERT): Likewise.
49056         * tests/test-fseeko.c (ASSERT): Likewise.
49057         * tests/test-fstrcmp.c (ASSERT): Likewise.
49058         * tests/test-ftell.c (ASSERT): Likewise.
49059         * tests/test-ftello.c (ASSERT): Likewise.
49060         * tests/test-func.c (ASSERT): Likewise.
49061         * tests/test-fwritable.c (ASSERT): Likewise.
49062         * tests/test-fwriting.c (ASSERT): Likewise.
49063         * tests/test-getdelim.c (ASSERT): Likewise.
49064         * tests/test-getline.c (ASSERT): Likewise.
49065         * tests/test-i-ring.c (ASSERT): Likewise.
49066         * tests/test-iconv-utf.c (ASSERT): Likewise.
49067         * tests/test-iconv.c (ASSERT): Likewise.
49068         * tests/test-isfinite.c (ASSERT): Likewise.
49069         * tests/test-isnand.c (ASSERT): Likewise.
49070         * tests/test-isnanf.c (ASSERT): Likewise.
49071         * tests/test-isnanl.h (ASSERT): Likewise.
49072         * tests/test-ldexpl.c (ASSERT): Likewise.
49073         * tests/test-linked_list.c (ASSERT): Likewise.
49074         * tests/test-linkedhash_list.c (ASSERT): Likewise.
49075         * tests/test-localename.c (ASSERT): Likewise.
49076         * tests/test-lseek.c (ASSERT): Likewise.
49077         * tests/test-mbscasecmp.c (ASSERT): Likewise.
49078         * tests/test-mbscasestr1.c (ASSERT): Likewise.
49079         * tests/test-mbscasestr2.c (ASSERT): Likewise.
49080         * tests/test-mbscasestr3.c (ASSERT): Likewise.
49081         * tests/test-mbscasestr4.c (ASSERT): Likewise.
49082         * tests/test-mbschr.c (ASSERT): Likewise.
49083         * tests/test-mbscspn.c (ASSERT): Likewise.
49084         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
49085         * tests/test-mbspbrk.c (ASSERT): Likewise.
49086         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
49087         * tests/test-mbsrchr.c (ASSERT): Likewise.
49088         * tests/test-mbsspn.c (ASSERT): Likewise.
49089         * tests/test-mbsstr1.c (ASSERT): Likewise.
49090         * tests/test-mbsstr2.c (ASSERT): Likewise.
49091         * tests/test-mbsstr3.c (ASSERT): Likewise.
49092         * tests/test-memchr2.c (ASSERT): Likewise.
49093         * tests/test-memmem.c (ASSERT): Likewise.
49094         * tests/test-open.c (ASSERT): Likewise.
49095         * tests/test-printf-frexp.c (ASSERT): Likewise.
49096         * tests/test-printf-frexpl.c (ASSERT): Likewise.
49097         * tests/test-printf-posix.c (ASSERT): Likewise.
49098         * tests/test-quotearg.c (ASSERT): Likewise.
49099         * tests/test-rbtree_list.c (ASSERT): Likewise.
49100         * tests/test-rbtree_oset.c (ASSERT): Likewise.
49101         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
49102         * tests/test-round1.c (ASSERT): Likewise.
49103         * tests/test-roundf1.c (ASSERT): Likewise.
49104         * tests/test-roundl.c (ASSERT): Likewise.
49105         * tests/test-signbit.c (ASSERT): Likewise.
49106         * tests/test-sleep.c (ASSERT): Likewise.
49107         * tests/test-snprintf-posix.c (ASSERT): Likewise.
49108         * tests/test-snprintf.c (ASSERT): Likewise.
49109         * tests/test-sprintf-posix.c (ASSERT): Likewise.
49110         * tests/test-stat-time.c (ASSERT): Likewise.
49111         * tests/test-strcasestr.c (ASSERT): Likewise.
49112         * tests/test-strerror.c (ASSERT): Likewise.
49113         * tests/test-striconv.c (ASSERT): Likewise.
49114         * tests/test-striconveh.c (ASSERT): Likewise.
49115         * tests/test-striconveha.c (ASSERT): Likewise.
49116         * tests/test-strsignal.c (ASSERT): Likewise.
49117         * tests/test-strstr.c (ASSERT): Likewise.
49118         * tests/test-strtod.c (ASSERT): Likewise.
49119         * tests/test-trunc1.c (ASSERT): Likewise.
49120         * tests/test-trunc2.c (ASSERT): Likewise.
49121         * tests/test-truncf1.c (ASSERT): Likewise.
49122         * tests/test-truncf2.c (ASSERT): Likewise.
49123         * tests/test-truncl.c (ASSERT): Likewise.
49124         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
49125         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
49126         * tests/test-vasnprintf.c (ASSERT): Likewise.
49127         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
49128         * tests/test-vasprintf.c (ASSERT): Likewise.
49129         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
49130         * tests/test-vprintf-posix.c (ASSERT): Likewise.
49131         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
49132         * tests/test-vsnprintf.c (ASSERT): Likewise.
49133         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
49134         * tests/test-wcwidth.c (ASSERT): Likewise.
49135         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
49136         * tests/test-xprintf-posix.c (ASSERT): Likewise.
49137         * tests/test-xvasprintf.c (ASSERT): Likewise.
49138         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
49139         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
49140         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
49141         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
49142         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
49143         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
49144         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
49145         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
49146         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
49147         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
49148         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
49149         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
49150         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
49151         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
49152         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
49153         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
49154         * tests/unictype/test-block_list.c (ASSERT): Likewise.
49155         * tests/unictype/test-block_of.c (ASSERT): Likewise.
49156         * tests/unictype/test-block_test.c (ASSERT): Likewise.
49157         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
49158         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
49159         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
49160         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
49161         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
49162         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
49163         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
49164         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
49165         * tests/unictype/test-combining.c (ASSERT): Likewise.
49166         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
49167         * tests/unictype/test-digit.c (ASSERT): Likewise.
49168         * tests/unictype/test-mirror.c (ASSERT): Likewise.
49169         * tests/unictype/test-numeric.c (ASSERT): Likewise.
49170         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
49171         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
49172         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
49173         * tests/unictype/test-scripts.c (ASSERT): Likewise.
49174         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
49175         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
49176         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
49177         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
49178         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
49179         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
49180         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
49181         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
49182         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
49183         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
49184         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
49185         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
49186         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
49187         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
49188         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
49189         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
49190         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
49191         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
49192         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
49193         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
49194         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
49195         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
49196         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
49197         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
49198         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
49199         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
49200         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
49201         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
49202         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
49203         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
49204         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
49205         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
49206         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
49207         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
49208         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
49209         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
49210         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
49211         Reported by Eric Blake.
49212
49213 2008-04-11  Bruno Haible  <bruno@clisp.org>
49214
49215         * lib/wchar.in.h: Tweak comment.
49216
49217 2008-04-11  Bruno Haible  <bruno@clisp.org>
49218
49219         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
49220         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
49221         gl_COMMON.
49222         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
49223
49224 2008-04-11  Bruno Haible  <bruno@clisp.org>
49225
49226         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
49227
49228 2008-04-11  Simon Josefsson  <simon@josefsson.org>
49229
49230         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
49231         of attempting to use non-existing /dev/*random.  Based on patch
49232         from Adam Strzelecki <ono@java.pl> in
49233         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
49234
49235 2008-04-08  Bruno Haible  <bruno@clisp.org>
49236
49237         Add tentative support for emx+gcc.
49238         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
49239         * lib/fpurge.c (fpurge): Likewise.
49240         * lib/freadable.c (freadable): Likewise.
49241         * lib/freadahead.c (freadahead): Likewise.
49242         * lib/freading.c (freading): Likewise.
49243         * lib/freadptr.c (freadptr): Likewise.
49244         * lib/freadseek.c (freadptrinc): Likewise.
49245         * lib/fseeko.c (rpl_fseeko): Likewise.
49246         * lib/fseterr.c (fseterr): Likewise.
49247         * lib/fwritable.c (fwritable): Likewise.
49248         * lib/fwriting.c (fwriting): Likewise.
49249         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
49250
49251 2008-04-09  Eric Blake  <ebb9@byu.net>
49252
49253         Avoid some autoconf warnings.
49254         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
49255         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
49256         * m4/afs.m4 (gl_AFS): Likewise.
49257         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
49258         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
49259         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49260         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
49261         (gl_INTEGER_TYPE_SUFFIX): Likewise.
49262         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
49263         (AC_CHECK_DECLS_ONCE): Likewise.
49264         Rename file...
49265         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
49266         gnulib-tool requires autoconf 2.59 or better.
49267         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
49268
49269 2008-04-08  Eric Blake  <ebb9@byu.net>
49270
49271         Use 'git describe --match' if present (added in git 1.5.5).
49272         * build-aux/git-version-gen: Limit result to tags that match 'v*'
49273         if possible.
49274
49275 2008-04-08  Bruno Haible  <bruno@clisp.org>
49276
49277         Add tentative support for OpenServer.
49278         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
49279         _ptr, _cnt.
49280         * lib/fpurge.c (fpurge): Likewise.
49281         * lib/freadable.c (freadable): Likewise.
49282         * lib/freadahead.c (freadahead): Likewise.
49283         * lib/freading.c (freading): Likewise.
49284         * lib/freadptr.c (freadptr): Likewise.
49285         * lib/freadseek.c (freadptrinc): Likewise.
49286         * lib/fseeko.c (rpl_fseeko): Likewise.
49287         * lib/fseterr.c (fseterr): Likewise.
49288         * lib/fwritable.c (fwritable): Likewise.
49289         * lib/fwriting.c (fwriting): Likewise.
49290         Reported by Roger Cornelius <rac@tenzing.org> and
49291         Brian K. White <brian@aljex.com>.
49292
49293 2008-04-06  Jim Meyering  <meyering@redhat.com>
49294
49295         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
49296
49297 2008-04-06  Bruno Haible  <bruno@clisp.org>
49298
49299         Avoid possible error with non-ASCII bytes in UTF-8 locales.
49300         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
49301         * tests/test-printf-posix.sh: Likewise.
49302         * tests/test-vfprintf-posix.sh: Likewise.
49303         * tests/test-vprintf-posix.sh: Likewise.
49304         * tests/test-xprintf-posix.sh: Likewise.
49305
49306 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49307
49308         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
49309         hide error from 'ls', needed on OS/2.
49310         Report by Elbert Pol <elbert.pol@gmail.com>.
49311
49312 2008-04-04  Eric Blake  <ebb9@byu.net>
49313
49314         Make test-fseeko.c failures meaningful.
49315         * tests/test-fseeko.c: Print line number on failure.
49316         * tests/test-fseek.c: Likewise.
49317         Reported by Nelson H. F. Beebe.
49318
49319         Improve strtod bug detection check.
49320         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
49321         required for Solaris 10.
49322         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
49323
49324 2008-04-04  Bruno Haible  <bruno@clisp.org>
49325
49326         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
49327         by m4/setenv.m4.
49328
49329 2008-04-03  Eric Blake  <ebb9@byu.net>
49330
49331         Ensure sane .version contents.
49332         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
49333         version string.
49334         * build-aux/git-version-gen: Improve documentation.
49335
49336         Make GNU make output nicer.
49337         * top/GNUmakefile [!_have-Makefile]: Add dependency on
49338         MAKECMDGOALS to enforce message for all command line targets.  Set
49339         srcdir for use in maint.mk.
49340
49341         Another maintainer tweak.
49342         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
49343         a target that regenerates version.
49344
49345 2008-04-03  Jim Meyering  <meyering@redhat.com>
49346
49347         vc-list-files: don't cause coreutils "make po-check" failure
49348         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
49349
49350 2008-04-03  Eric Blake  <ebb9@byu.net>
49351
49352         Allow VPATH usage of vc-list-files.
49353         * build-aux/vc-list-files (scriptversion): Add timestamp.
49354         (options): Add --help, --version, -C.
49355         (CVS): Support installed cvsu.
49356
49357 2008-04-02  Bruno Haible  <bruno@clisp.org>
49358
49359         Avoid some "statement with no effect" warnings from gcc.
49360         * tests/test-wctype.c (main): Explicitly ignore unused values.
49361         Reported by Jim Meyering.
49362
49363 2008-04-02  Jim Meyering  <meyering@redhat.com>
49364
49365         Avoid some warnings from "gcc -Wshadow".
49366         * tests/test-frexp.c (exp): Define to a different identifier.
49367         * tests/test-frexpl.c (exp): Likewise.
49368
49369 2008-04-03  Jim Meyering  <meyering@redhat.com>
49370
49371         bootstrap: remove dangling *.[ch] symlinks from lib
49372         * build-aux/bootstrap [dangling symlink removal]: Move find's
49373         -depth option to precede all others, to avoid a warning.
49374         Remove *.[ch] files too, and from "$source_base" (usually lib/).
49375
49376 2008-04-02  Bruno Haible  <bruno@clisp.org>
49377
49378         Avoid some warnings from "gcc -Wshadow".
49379         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
49380         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
49381         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
49382         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
49383         Reported by Jim Meyering.
49384
49385 2008-04-01  Bruno Haible  <bruno@clisp.org>
49386
49387         Fix test to work on IRIX 6.5 with cc.
49388         * tests/test-math.c (numeric_equal): New function.
49389         (main): Use it.
49390
49391 2008-04-01  Bruno Haible  <bruno@clisp.org>
49392
49393         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
49394
49395 2008-04-01  Bruno Haible  <bruno@clisp.org>
49396
49397         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
49398         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49399         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
49400         (Depends-on): Remove math.
49401
49402         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
49403         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49404         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
49405         (Depends-on): Remove math.
49406
49407         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
49408         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49409         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
49410         (Depends-on): Remove math.
49411         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
49412         (Depends-on): Remove math.
49413
49414         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
49415         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
49416         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
49417         (Depends-on): Remove math.
49418         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
49419         (Depends-on): Remove math.
49420
49421         * tests/test-round1.c: Include nan.h.
49422         (main): Use NaNd instead of NAN.
49423         * modules/round-tests (Files): Add tests/nan.h.
49424
49425         * tests/test-trunc1.c: Include nan.h.
49426         (main): Use NaNd instead of NAN.
49427         * modules/trunc-tests (Files): Add tests/nan.h.
49428
49429         * tests/test-roundf1.c: Include nan.h.
49430         (main): Use NaNf instead of NAN.
49431         * modules/roundf-tests (Files): Add tests/nan.h.
49432
49433         * tests/test-truncf1.c: Include nan.h.
49434         (main): Use NaNf instead of NAN.
49435         * modules/truncf-tests (Files): Add tests/nan.h.
49436
49437         * tests/test-ceilf1.c: Include nan.h.
49438         (main): Use NaNf instead of NAN.
49439         * modules/ceilf-tests (Files): Add tests/nan.h.
49440
49441         * tests/test-floorf1.c: Include nan.h.
49442         (main): Use NaNf instead of NAN.
49443         * modules/floorf-tests (Files): Add tests/nan.h.
49444
49445         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
49446         (main): Use NaNf instead of NAN.
49447         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
49448
49449         * tests/test-isnand.c: Include nan.h instead of <math.h>.
49450         (main): Use NaNd instead of NAN.
49451         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
49452
49453         * tests/test-frexp.c: Include nan.h.
49454         (main): Use NaNd instead of NAN.
49455         * modules/frexp-tests (Files): Add tests/nan.h.
49456
49457         * lib/isnan.c: Don't include <math.h>.
49458         (FUNC): Don't use NAN macro.
49459         * modules/isnand-nolibm (Depends-on): Remove math.
49460         * modules/isnanf-nolibm (Depends-on): Remove math.
49461         * modules/isnanl (Depends-on): Remove math.
49462         * modules/isnanl-nolibm (Depends-on): Remove math.
49463
49464         * tests/nan.h: New file.
49465
49466 2008-04-01  Eric Blake  <ebb9@byu.net>
49467
49468         Fix typos.
49469         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
49470         values to be the right type.
49471
49472         For now, cater to gnulib strtod inaccuracies.
49473         * tests/test-strtod.c (main): Allow 1-ulp error on expected
49474         fractional results.  While not as nice from a QoI perspective, it
49475         is a quicker patch than correctly implementing decimal to binary
49476         rounding.
49477
49478 2008-03-31  Eric Blake  <ebb9@byu.net>
49479
49480         Guarantee a definition of NAN.
49481         * lib/math.in.h (NAN): Define if missing.
49482         * tests/test-math.c (main): Test it.
49483         * doc/posix-headers/math.texi (math.h): Document this.
49484         * lib/isnan.c (rpl_isnand): Use it.
49485         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
49486         * tests/test-floorf1.c (NaN): Likewise.
49487         * tests/test-frexp.c (NaN): Likewise.
49488         * tests/test-isnand.c (NaN): Likewise.
49489         * tests/test-isnanf.c (NaN): Likewise.
49490         * tests/test-round1.c (NaN): Likewise.
49491         * tests/test-roundf1.c (NaN): Likewise.
49492         * tests/test-snprintf-posix.h (NaN): Likewise.
49493         * tests/test-sprintf-posix.h (NaN): Likewise.
49494         * tests/test-trunc1.c (NaN): Likewise.
49495         * tests/test-truncf1.c (NaN): Likewise.
49496         * tests/test-vasnprintf-posix.c (NaN): Likewise.
49497         * tests/test-vasprintf-posix.c (NaN): Likewise.
49498         * modules/isnand-nolibm (Depends-on): Add math.
49499         * modules/isnanf-nolibm (Depends-on): Likewise.
49500         * modules/isnanl (Depends-on): Likewise.
49501         * modules/isnanl-nolibm (Depends-on): Likewise.
49502         * modules/snprintf-posix-tests (Depends-on): Likewise.
49503         * modules/sprintf-posix-tests (Depends-on): Likewise.
49504         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
49505         * modules/vsprintf-posix-tests (Depends-on): Likewise.
49506         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
49507         * modules/vasprintf-posix-tests (Depends-on): Likewise.
49508
49509 2008-03-31  Bruno Haible  <bruno@clisp.org>
49510
49511         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
49512         * doc/posix-functions/strtod.texi: Likewise.
49513
49514 2008-03-31  Bruno Haible  <bruno@clisp.org>
49515
49516         * tests/test-strtod.c (main): Don't use C99 syntax.
49517
49518 2008-03-31  Bruno Haible  <bruno@clisp.org>
49519
49520         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
49521         Reported by Eric Blake.
49522
49523 2008-03-31  Jim Meyering  <meyering@redhat.com>
49524
49525         Don't compare actual signbit return values.
49526         * tests/test-strtod.c (main): Rather, compare only their
49527         zero/non-zero nature.
49528
49529 2008-03-31  Eric Blake  <ebb9@byu.net>
49530
49531         More strtod documentation.
49532         * doc/posix-functions/strtod.texi (strtod): Interpret more test
49533         failures as distinct bugs.
49534
49535 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
49536
49537         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
49538         Problem reported by Erik Benada in
49539         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
49540
49541 2008-03-30  Bruno Haible  <bruno@clisp.org>
49542
49543         * tests/test-strtod.c: Add comments about which assertion fails on which
49544         platform.
49545         * doc/posix-functions/strtod.texi: Add info about many more platforms.
49546
49547 2008-03-30  Eric Blake  <ebb9@byu.net>
49548
49549         Test signbit behavior on zeros.
49550         * tests/test-signbit.c (test_signbitf): Add tests for zero.
49551         (test_signbitd, test_signbitl): Likewise.
49552
49553         More strtod touchups.
49554         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
49555         sign of negative underflow, for now.  Use .5, not .1.
49556         * doc/posix-functions/strtod.texi (strtod): Mention these
49557         limitations.
49558         Reported by Jim Meyering.
49559
49560 2008-03-30  Bruno Haible  <bruno@clisp.org>
49561
49562         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
49563         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
49564
49565 2008-03-30  Bruno Haible  <bruno@clisp.org>
49566
49567         Avoid failure when attempting to return empty iconv results on some
49568         platforms.
49569         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
49570         allocation, don't report ENOMEM when the resulting string is empty.
49571
49572 2008-03-30  Bruno Haible  <bruno@clisp.org>
49573
49574         Fix buffer overrun.
49575         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
49576         Don't consider the width for tmp_length. Check count against tmp_length
49577         before doing the padding. Ensure enough allocation during padding.
49578
49579 2008-03-30  Eric Blake  <ebb9@byu.net>
49580
49581         strtod touchups.
49582         * lib/strtod.c (strtod): Avoid compiler warnings.
49583         Reported by Jim Meyering.
49584
49585 2008-03-30  Bruno Haible  <bruno@clisp.org>
49586
49587         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
49588         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
49589         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
49590         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
49591         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
49592         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
49593         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
49594         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
49595
49596         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
49597         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
49598         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
49599         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
49600         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
49601         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
49602         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
49603         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
49604
49605         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
49606         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
49607         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
49608         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
49609         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
49610         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
49611         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
49612         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
49613
49614         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
49615         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
49616
49617         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
49618         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
49619
49620         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
49621         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
49622
49623         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
49624         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
49625         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
49626
49627         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
49628         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
49629         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
49630
49631         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
49632         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
49633         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
49634
49635         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
49636         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
49637         * modules/vasprintf (Depends-on): Add EOVERFLOW.
49638
49639         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
49640         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
49641         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
49642         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
49643         (Depends-on): Add EOVERFLOW.
49644         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
49645         (Depends-on): Add EOVERFLOW.
49646         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
49647         (Depends-on): Add EOVERFLOW.
49648         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
49649         (Depends-on): Add EOVERFLOW.
49650         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
49651         (Depends-on): Add EOVERFLOW.
49652         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
49653         (Depends-on): Add EOVERFLOW.
49654         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
49655         (Depends-on): Add EOVERFLOW.
49656         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
49657         (Depends-on): Add EOVERFLOW.
49658
49659         * lib/sprintf.c (EOVERFLOW): Remove fallback.
49660         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
49661         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
49662
49663         * lib/snprintf.c (EOVERFLOW): Remove fallback.
49664         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
49665         * modules/snprintf (Depends-on): Add EOVERFLOW.
49666
49667         * lib/poll.c (EOVERFLOW): Remove fallback.
49668         * modules/poll (Depends-on): Add EOVERFLOW.
49669
49670         * lib/getugroups.c (EOVERFLOW): Remove fallback.
49671         * modules/getugroups (Depends-on): Add EOVERFLOW.
49672
49673         * lib/getdelim.c (EOVERFLOW): Remove fallback.
49674         * modules/getdelim (Depends-on): Add EOVERFLOW.
49675
49676         * lib/ftell.c (EOVERFLOW): Remove fallback.
49677         * modules/ftell (Depends-on): Add EOVERFLOW.
49678
49679         * lib/fprintf.c (EOVERFLOW): Remove fallback.
49680         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
49681         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
49682
49683         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
49684
49685         * modules/EOVERFLOW-tests: New file.
49686         * tests/test-EOVERFLOW.c: New file.
49687
49688         * modules/EOVERFLOW: New file.
49689         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
49690
49691 2008-03-30  Bruno Haible  <bruno@clisp.org>
49692
49693         Fix bug introduced on 2007-06-10.
49694         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
49695         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
49696
49697 2008-03-30  Bruno Haible  <bruno@clisp.org>
49698
49699         Improve freadseek's efficiency after ungetc.
49700         * lib/freadseek.c: Include freadahead.h.
49701         (freadptrinc): New function, extracted from freadseek.
49702         (freadseek): Use it in a loop. Use freadahead to determine the number
49703         of loop iterations.
49704         * modules/freadseek (Depends-on): Add freadahead.
49705         (configure.ac): Require AC_C_INLINE.
49706
49707 2008-03-30  Bruno Haible  <bruno@clisp.org>
49708
49709         * lib/freadseek.c (freadseek): Don't ignore the return value of
49710         freadptr.
49711
49712 2008-03-29  Eric Blake  <ebb9@byu.net>
49713
49714         Add hex float support.
49715         * modules/strtod (Depends-on): Add c-ctype.
49716         (Link): Mention POW_LIB.
49717         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
49718         whitespace between 'e' and exponent.
49719         * tests/test-strtod.c (main): Enable hex float tests.
49720         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
49721         now provides.
49722
49723         Document various strtod bugs, with some fixes.
49724         * doc/posix-functions/strtod.texi (strtod): Document bugs with
49725         "-0x", "inf", "nan", and hex constants.
49726         * doc/posix-functions/atof.texi (atof): Likewise.
49727         * modules/stdlib (Makefile.am): Support strtod.
49728         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
49729         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
49730         detect additional strtod bugs.
49731         * lib/stdlib.in.h (rpl_strtod): Add declarations.
49732         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
49733         bool where appropriate.  Parse 'inf' and 'nan'.
49734         * tests/test-strtod.c: New file.
49735         * modules/strtod (Depends-on): Add stdbool, stdlib.
49736         (configure.ac): Turn on module indicator.
49737         * modules/strtod-tests: New module.
49738
49739 2008-03-29  Eric Blake  <ebb9@byu.net>
49740
49741         Fix ftell on mingw.
49742         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
49743         * modules/ftell-tests (Depends-on): Add binary-io.
49744         * modules/ftello-tests (Depends-on): Likewise.
49745         * tests/test-ftell.c (main): Enhance test to cover behavior after
49746         ungetc.  Enforce binary mode.
49747         * tests/test-ftello.c (main): Likewise.
49748
49749         Pass test-freadseek on cygwin.
49750         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
49751         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
49752         ungetc buffer.
49753
49754         * tests/test-fflush2.c (main): Fix typo.
49755
49756 2008-03-29  Bruno Haible  <bruno@clisp.org>
49757
49758         * tests/test-fflush2.c (main): Temporarily disable the contents of
49759         this test.
49760         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
49761         Reported by Eric Blake.
49762
49763 2008-03-28  Simon Josefsson  <simon@josefsson.org>
49764
49765         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
49766         (GC_SHA224_DIGEST_SIZE): Add.
49767
49768         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
49769         (gc_hash_digest_length): Likewise.
49770         (gc_hash_buffer): Likewise.
49771
49772 2008-03-25  Bruno Haible  <bruno@clisp.org>
49773
49774         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
49775         detail which gettext release to use.
49776         Reported by Simon Josefsson.
49777
49778 2008-03-26  Jim Meyering  <meyering@redhat.com>
49779
49780         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
49781         * modules/gnumakefile (clean-GNUmakefile): Also, use
49782         test ... && ... || : syntax rather than if-then ... fi.
49783
49784         gnumakefile: Don't double-quote-expand $(VPATH) value.
49785         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
49786
49787 2008-03-24  Eric Blake  <ebb9@byu.net>
49788
49789         Alter GNUmakefile to install into top directory.
49790         * modules/maintainer-makefile: Split, and add dependency...
49791         * modules/gnumakefile: to this new module.
49792         * build-aux/GNUmakefile: Move...
49793         * top/GNUmakefile: ...here.
49794         * build-aux/maint.mk: Move...
49795         * top/maint.mk: ...here.
49796         * MODULES.html.sh (Support for maintaining...): Document new
49797         module.
49798
49799 2008-03-23  Bruno Haible  <bruno@clisp.org>
49800
49801         * gnulib-tool: New options --vc-files, --no-vc-files.
49802         (func_usage): Document them.
49803         (vc_files): New variable.
49804         (func_import): Consider vc_files.
49805         (func_create_testdir): Set vc_files to empty.
49806         Suggested by Jim Meyering and Karl Berry.
49807
49808 2008-03-23  Bruno Haible  <bruno@clisp.org>
49809
49810         Fix regex compilation error on HP-UX 11.
49811         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
49812         * modules/regex (Files): Add m4/mbstate_t.m4.
49813         Reported by Ton Voon <ton.voon@altinity.com>.
49814
49815 2008-03-23  Bruno Haible  <bruno@clisp.org>
49816
49817         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
49818
49819 2008-03-23  Eric Blake  <ebb9@byu.net>
49820             Bruno Haible  <bruno@clisp.org>
49821
49822         Install files from top/ in the destination directory.
49823         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
49824         augmentation also for the files from top/.
49825         (func_import, func_create_testdir): Rewrite file names:
49826         top/filename -> filename.
49827
49828 2008-03-23  Bruno Haible  <bruno@clisp.org>
49829
49830         Tweak "gnulib --version" output.
49831         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
49832
49833 2008-03-23  Bruno Haible  <bruno@clisp.org>
49834
49835         Tweak "gnulib --version" output.
49836         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
49837         rather than contents of ChangeLog, when possible.
49838
49839 2008-03-21  Eric Blake  <ebb9@byu.net>
49840
49841         More --version tweaks.
49842         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
49843         date of last ChangeLog entry.
49844
49845 2008-03-21  Jim Meyering  <meyering@redhat.com>
49846
49847         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
49848
49849 2008-03-20  Eric Blake  <ebb9@byu.net>
49850
49851         VPATH fix.
49852         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
49853
49854 2008-03-20  Simon Josefsson  <simon@josefsson.org>
49855
49856         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
49857         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
49858
49859 2008-03-20  Eric Blake  <ebb9@byu.net>
49860
49861         Sync GNUmakefile with coreutils.
49862         * build-aux/GNUmakefile (have-Makefile): Rename...
49863         (_have-Makefile): ...to this, for namespace consideration.
49864         (GNUmakefile.cfg): Include, if present.
49865         (_autoreconf): Define a default.
49866         (_is-dist-target): New rule for rebuilds to pick up intra-release
49867         version.
49868         (maint-cfg.mk): Rename...
49869         (cfg.mk): ...to this.
49870
49871 2008-03-18  Jim Meyering  <meyering@redhat.com>
49872
49873         New script and module: mktempd
49874         * MODULES.html.sh (maint+release support): Add mktempd.
49875         * build-aux/mktempd: New file.
49876         * modules/mktempd: New file.
49877
49878 2008-03-15  Jim Meyering  <meyering@redhat.com>
49879
49880         Undo last change.
49881         * lib/sha1.c, lib/md5.c: 63 != ~63.
49882         Reported by Andreas Schwab.
49883
49884         sha1.c, md5.c: Hoist a redundant expression.
49885         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
49886         "ctx->buflen" only once, before calling *_process_block.
49887         * lib/md5.c (md5_process_bytes): Likewise.
49888
49889 2008-03-14  Eric Blake  <ebb9@byu.net>
49890
49891         Bump copyright year in files generated by gnulib-tool.
49892         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
49893         gnulib-tool, rather than hard-coding it.
49894
49895         Fix 'gnulib-tool --version' output to work with git.
49896         * gnulib-tool (func_gnulib_dir): New function, extracted from...
49897         (startup): ...here.
49898         (func_version): Use it to invoke git-version-gen, rather than
49899         relying on CVS keyword expansion.  Modernize wording.
49900         (cvsdatestamp, last_checkin_date, version): Kill unused
49901         variables.
49902
49903 2008-03-12  Jim Meyering  <meyering@redhat.com>
49904
49905         Recognize optional cast of the argument to free.
49906         * build-aux/useless-if-before-free: Update regexps.
49907
49908         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
49909
49910 2008-03-11  Bruno Haible  <bruno@clisp.org>
49911
49912         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
49913         by a single package.
49914         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
49915         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
49916         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
49917         Reported by Sam Steingold <sds@gnu.org>.
49918
49919 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
49920
49921         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
49922         repositories.
49923
49924 2008-03-11  Bruno Haible  <bruno@clisp.org>
49925
49926         Avoid conflicts between local macro definitions.
49927         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
49928         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
49929
49930 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
49931             Bruno Haible  <bruno@clisp.org>
49932
49933         Make va_copy work with some version of xlc on AIX 5.1.
49934         * lib/stdarg.in.h: New file.
49935         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
49936         On AIX, use a <stdarg.h> file substitute.
49937         * modules/stdarg (Files): Add lib/stdarg.in.h.
49938         (Depends-on): Add include_next.
49939         (Makefile.am): Build a stdarg.h substitute if requested.
49940         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
49941
49942 2008-03-10  Bruno Haible  <bruno@clisp.org>
49943
49944         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
49945         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49946         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
49947
49948 2008-03-10  Bruno Haible  <bruno@clisp.org>
49949
49950         * modules/stdlib (Depends-on): Add include_next, remove
49951         absolute-header.
49952
49953 2008-03-09  Bruno Haible  <bruno@clisp.org>
49954
49955         * lib/freadahead.h (freadahead): Document more precisely.
49956         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
49957         the sum of both buffer sizes.
49958         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
49959         * NEWS: Document the change.
49960
49961 2008-03-09  Bruno Haible  <bruno@clisp.org>
49962
49963         Extend freadptr to return also the buffer size.
49964         * lib/freadptr.h (freadptr): Add sizep argument.
49965         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
49966         (freadptr): Add sizep argument. Determine buffer size like freadahead
49967         does.
49968         * tests/test-freadptr.c: Don't include freadahead.h.
49969         (main): Adapt for new calling convention of freadptr.
49970         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
49971         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
49972         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
49973         tests/test-freadptr2.sh.
49974         (Depends): Remove freadahead.
49975         (TESTS): Add test-freadptr2.sh.
49976         (check_PROGRAMS): Add test-freadptr2.
49977
49978 2008-03-09  Bruno Haible  <bruno@clisp.org>
49979
49980         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
49981         Report and solution by Simon Josefsson.
49982
49983 2008-03-06  Bruno Haible  <bruno@clisp.org>
49984
49985         Make fflush after ungetc work on BSD platforms.
49986         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
49987         * tests/test-fflush2.c: New file.
49988         * tests/test-fflush2.sh: New file.
49989         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
49990         tests/test-fflush2.c.
49991         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
49992         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
49993
49994 2008-03-06  Eric Blake  <ebb9@byu.net>
49995
49996         Likewise for ftello.
49997         * modules/ftello (Dependencies): Add extensions.
49998         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
49999
50000 2008-03-06  Bruno Haible  <bruno@clisp.org>
50001
50002         * modules/fseeko (Dependencies): Add extensions.
50003         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
50004         Needed on glibc systems.
50005
50006 2008-03-06  Bruno Haible  <bruno@clisp.org>
50007
50008         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
50009         email address.
50010         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50011
50012 2008-03-06  Bruno Haible  <bruno@clisp.org>
50013
50014         * users.txt: Add libgnupdf.
50015
50016 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50017
50018         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
50019         (Header File Substitutes, Function Substitutes,
50020         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
50021         (Build robot for gnulib): Fix typo.
50022
50023 2008-03-06  Bruno Haible  <bruno@clisp.org>
50024
50025         * doc/gnulib-tool.texi (VCS Issues): Small updates.
50026         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50027
50028 2008-03-06  Bruno Haible  <bruno@clisp.org>
50029
50030         * doc/func.texi: New file, extracted from doc/gnulib.texi.
50031         * doc/gnulib.texi: Include it.
50032
50033 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50034
50035         * modules/func (License): Change license to unlimited; there was
50036         no LGPL parts in the module anyway.
50037
50038 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50039
50040         * modules/__func__: Renamed to modules/func.
50041         * modules/__func__-tests: Renamed to modules/func-tests.
50042         * tests/test-__func__.c: Renamed to tests/test-func.c.
50043         * m4/__func__.m4: Renamed to m4/func.m4.
50044         * doc/gnulib.texi (__func__): Section renamed to func.
50045         Suggested by Eric Blake <ebb9@byu.net>.
50046
50047 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50048
50049         * doc/gnulib.texi (__func__): Use C99 terminology when talking
50050         about __func__.  Make example self-contained.  Suggested by Eric
50051         Blake <ebb9@byu.net>.
50052
50053         * tests/test-__func__.c (main): Avoid extraneous () around __func.
50054         Suggested by Eric Blake <ebb9@byu.net>.
50055
50056 2008-03-06  Simon Josefsson  <simon@josefsson.org>
50057
50058         * modules/__func__: New file.
50059         * modules/__func__-tests: New file.
50060         * tests/test-__func__.c: New file.
50061         * m4/__func__.m4: New file.
50062         * doc/gnulib.texi (__func__): Document __func__ module.
50063
50064 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50065
50066         * modules/byteswap (License): Re-license as LGPLv2+.
50067
50068 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50069
50070         * doc/Makefile: Add pdf target.
50071
50072 2008-03-05  Simon Josefsson  <simon@josefsson.org>
50073
50074         * modules/inline (License): Use 'unlimited', since there are only
50075         *.m4 files in this module.
50076
50077 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
50078             Bruno Haible  <bruno@clisp.org>
50079
50080         Add support for HP C 7.1 on OpenVMS 8.3.
50081         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
50082
50083 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
50084
50085         Update VMS specifics.
50086         * lib/getopt.c [VMS]: Remove include of unixlib.h.
50087
50088 2008-03-02  Jim Meyering  <meyering@redhat.com>
50089
50090         Remove the last dependency on the "free" module.
50091         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
50092         Reported by Bob Proulx.
50093
50094         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
50095
50096         Remove useless "if" tests before free.  Deprecate "free" module.
50097         * doc/posix-functions/free.texi: Mention that this
50098         module is no longer useful.
50099         * modules/free (Notice): Say this module is obsolete.
50100         * modules/readutmp (Depends-on): Remove free.
50101         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
50102         * lib/putenv.c (putenv): Likewise.
50103         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
50104         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
50105         * tests/test-c-strcasestr.c (main): Likewise.
50106         * tests/test-c-strstr.c (main): Likewise.
50107         * tests/test-mbscasestr1.c (main): Likewise.
50108         * tests/test-mbscasestr2.c (main): Likewise.
50109         * tests/test-mbsstr1.c (main): Likewise.
50110         * tests/test-mbsstr2.c (main): Likewise.
50111         * tests/test-memmem.c (main): Likewise.
50112         * tests/test-strcasestr.c (main): Likewise.
50113         * tests/test-striconv.c (main): Likewise.
50114         * tests/test-striconveh.c (main): Likewise.
50115         * tests/test-striconveha.c (main): Likewise.
50116         * tests/test-strstr.c (main): Likewise.
50117
50118         * build-aux/git-version-gen: Adjust a comment and the Usage string.
50119
50120         bootstrap: sync from coreutils again
50121         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
50122
50123 2008-03-01  Jim Meyering  <meyering@redhat.com>
50124
50125         bootstrap: sync from coreutils
50126         * build-aux/bootstrap (update_po_files): Copy a .po file into place
50127         also when the target doesn't exist.
50128
50129 2008-03-01  Eric Blake  <ebb9@byu.net>
50130
50131         Fix bugs in last patch.
50132         * lib/memchr2.c (memchr2): Fix typo.
50133         * tests/test-memchr2.c: Test previous bug, and don't use GNU
50134         extension.
50135         Reported by Bruce Korb.
50136
50137         New module 'memchr2'.
50138         * modules/memchr2: New file.
50139         * modules/memchr2-tests: Likewise.
50140         * lib/memchr2.h: Likewise.
50141         * lib/memchr2.c: Likewise, based on memchr.c.
50142         * tests/test-memchr2.c: New test.
50143         * MODULES.html.sh (String handling): Add memchr2.
50144
50145 2008-02-29  Bruno Haible  <bruno@clisp.org>
50146
50147         * modules/freadseek-tests: New file.
50148         * tests/test-freadseek.sh: New file.
50149         * tests/test-freadseek.c: New file.
50150
50151         New module 'freadseek'.
50152         * modules/freadseek: New file.
50153         * lib/freadseek.h: New file.
50154         * lib/freadseek.c: New file.
50155         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
50156
50157 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
50158
50159         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
50160         wydawca.
50161
50162         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
50163         program_invocation_name and program_invocation_short_name are
50164         present.
50165
50166 2008-02-28  Bruno Haible  <bruno@clisp.org>
50167
50168         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
50169         * tests/test-freadptr.sh: Also test non-seekable stdin.
50170
50171 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
50172
50173         * build-aux/bootstrap (source_base, m4_base)
50174         (doc_base, tests_base): New variables.
50175         (gnulib_tool_options): Do not hardcode base directories, use
50176         the above variables instead.
50177
50178 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
50179
50180         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
50181
50182 2008-02-28  Bruno Haible  <bruno@clisp.org>
50183
50184         * modules/freadptr-tests: New file.
50185         * tests/test-freadptr.sh: New file.
50186         * tests/test-freadptr.c: New file.
50187
50188         New module 'freadptr'.
50189         * modules/freadptr: New file.
50190         * lib/freadptr.h: New file.
50191         * lib/freadptr.c: New file.
50192         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
50193
50194 2008-02-26  Karl Berry  <karl@freefriends.org>
50195
50196         Sync from Libtool:
50197         * libltdl/argz.c (argz_add, argz_count): New functions.
50198         * libltdl/argz.in.h: Declare them.
50199         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
50200
50201 2008-02-22  Bruno Haible  <bruno@clisp.org>
50202
50203         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
50204         is a pointer type.  Needed for HP-UX 10.
50205         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
50206         * doc/posix-functions/gmtime_r.texi: Likewise.
50207         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
50208
50209 2008-02-24  Bruno Haible  <bruno@clisp.org>
50210
50211         * modules/environ-tests: New file.
50212         * tests/test-environ.c: New file.
50213
50214         New module 'environ'.
50215         * modules/environ: New file.
50216         * lib/unistd.in.h (environ): New declaration.
50217         * m4/environ.m4: New file.
50218         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
50219         after use.
50220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
50221         HAVE_DECL_ENVIRON.
50222         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
50223         HAVE_DECL_ENVIRON.
50224         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
50225         wrong claim that 'environ' is missing on some systems.
50226         * modules/execute (Depends-on): Add environ.
50227         * lib/execute.c (environ): Remove fallback declaration.
50228         * modules/pipe (Depends-on): Add environ.
50229         * lib/pipe.c (environ): Remove fallback declaration.
50230         * modules/setenv (Depends-on): Add environ.
50231         * lib/setenv.c (environ): Remove fallback declaration.
50232         * modules/unsetenv (Depends-on): Add environ.
50233         * lib/unsetenv.c (environ): Remove fallback declaration.
50234         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
50235         m4/environ.m4.
50236         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
50237         (gl_PREREQ_UNSETENV): Likewise.
50238
50239 2008-02-24  Bruno Haible  <bruno@clisp.org>
50240
50241         * doc/posix-functions/environ.texi: Document the MacOS X problem.
50242
50243 2008-02-20  Bob Proulx  <bob@proulx.com>
50244
50245         Enable use of older two part flavor 'git describe'.
50246         * build-aux/git-version-gen: If using the older two part flavor of
50247         git version then recreate the third part now present in the
50248         newer three part flavor of git describe.
50249
50250 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
50251
50252         * lib/fts.c (fts_build): Typo correction to comment.
50253
50254 2008-02-17  Bruno Haible  <bruno@clisp.org>
50255
50256         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
50257         generating no-op conflicts.
50258
50259 2008-02-17  Bruno Haible  <bruno@clisp.org>
50260
50261         Speed up by 10%.
50262         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
50263         result_entries, rather than an index-based loop.
50264
50265 2008-02-17  Bruno Haible  <bruno@clisp.org>
50266
50267         Speed up by 25%.
50268         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
50269         'hashcode_cached'.
50270         (entry_create): New function.
50271         (entry_hashcode): Use the cached hashcode if possible.
50272         (read_changelog_file, try_split_merged_entry): Use entry_create.
50273
50274 2008-02-17  Bruno Haible  <bruno@clisp.org>
50275
50276         Speed up from O(n^2) to O(n) for long ChangeLog files.
50277         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
50278         (read_changelog_file): Change implementation of entries_reversed list
50279         to rbtreehash.
50280         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
50281
50282 2008-02-17  Bruno Haible  <bruno@clisp.org>
50283
50284         New option --split-merged-entry.
50285         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
50286         (find_paragraph_end, try_split_merged_entry): New functions.
50287         (long_options): Add option --split-merged-entry.
50288         (usage): Document option --split-merged-entry.
50289         (main): Implement option --split-merged-entry.
50290         Reported by Eric Blake.
50291
50292 2008-02-17  Bruno Haible  <bruno@clisp.org>
50293
50294         * lib/git-merge-changelog.c: Include c-strstr.h.
50295         (main): Support the "git pull --rebase" situation.
50296         * modules/git-merge-changelog (Depends-on): Add c-strstr.
50297         Reported by Eric Blake.
50298
50299 2008-02-16  Eric Blake  <ebb9@byu.net>
50300
50301         Avoid doubling \ in common case of "c-maybe" quoting style.
50302         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
50303         eliding outer quotes.
50304         * lib/quotearg.h: Document this.
50305         * tests/test-quotearg.c (result_strings, inputs, results_g)
50306         (flag_results, locale_results): Test it by adding a new string to
50307         each test group.
50308         (compare_strings): Test new string.
50309
50310 2008-02-13  Eric Blake  <ebb9@byu.net>
50311
50312         Avoid trigraph quoting in default output.
50313         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
50314         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
50315         unless explicitly requested.
50316         * tests/test-quotearg.c (flag_results, main): Add additional tests.
50317
50318 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
50319
50320         Don't rely on signed integer overflowing to negative value.
50321         * lib/getugroups.c (getugroups): Include <limits.h>.
50322         Instead, compare against INT_MAX, and increment only if the test passes.
50323
50324 2008-02-13  Jim Meyering  <meyering@redhat.com>
50325         and Eric Blake  <ebb9@byu.net>
50326
50327         Avoid shadowing warning and compile errors on Linux.
50328         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
50329         forwarding macros on Linux.
50330         (dcgettext): Define a stub, for Linux.
50331         (results_g, main): Avoid warnings.
50332
50333 2008-02-12  Eric Blake  <ebb9@byu.net>
50334
50335         Silence warning in last patch.
50336         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
50337
50338         Quotearg part 4: add tests, fix c-maybe colon quoting.
50339         * lib/quotearg.h: Improve documentation.
50340         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
50341         escapes when adding outer quotes.  When quoting trigraphs, use
50342         valid C notation.  When quoting NUL, omit extra characters if next
50343         character is not digit.  Alter prototype.
50344         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
50345         callers.
50346         * modules/quotearg-tests: New module.
50347         * tests/test-quotearg.c: New test.
50348
50349 2008-02-07  Eric Blake  <ebb9@byu.net>
50350
50351         Quotearg part 3: add flag to control outer quote elision.
50352         * lib/quotearg.h (c_maybe_quoting_style): New style.
50353         (enum quoting_flags): Better documentation of flags.
50354         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
50355         c-maybe style.
50356         (quotearg_buffer_restyled): Handle new flag to elide outer
50357         quotes.
50358
50359         Quotearg part 2: add flag that can control NUL elision.
50360         * lib/quotearg.h (set_quoting_flags): New prototype.
50361         * lib/quotearg.c (struct quoting_options): Add flag field.
50362         (set_quoting_flags): New function.
50363         (quotearg_buffer_restyled): Add flags parameter.
50364         (quotearg_alloc_mem): Set the flag if length cannot be returned.
50365         (quotearg_n_options): Set the flag, since length cannot be
50366         returned.
50367         (quoting_options_from_style): Default flags correctly.
50368
50369         Quotearg part 1: more wrappers, restore quotearg_char state.
50370         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
50371         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
50372         (quotearg_colon_mem): New wrappers.
50373         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
50374         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
50375         functions.
50376         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
50377         (quotearg_colon_mem): New functions.
50378
50379 2008-02-11  Bruno Haible  <bruno@clisp.org>
50380
50381         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
50382         library in the current directory: it does not work with parallel make.
50383         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50384
50385 2008-02-11  Bruno Haible  <bruno@clisp.org>
50386
50387         * .gitattributes: New file.
50388
50389 2008-02-11  Jim Meyering  <meyering@redhat.com>
50390
50391         useless-if-before-free: Fix reversed exit values.
50392         * build-aux/useless-if-before-free: Use correct values
50393         for EXIT_MATCH and EXIT_NO_MATCH.
50394
50395         * build-aux/useless-if-before-free: Close stdout carefully.
50396
50397 2008-02-10  Bruno Haible  <bruno@clisp.org>
50398
50399         New module 'git-merge-changelog'.
50400         * modules/git-merge-changelog: New file.
50401         * lib/git-merge-changelog.c: New file.
50402
50403 2008-02-10  Jim Meyering  <meyering@redhat.com>
50404
50405         useless-if-before-free: New option: --list (-l).
50406
50407         useless-if-before-free: Don't exit immediately upon open failure.
50408         * build-aux/useless-if-before-free: Exit 2 for errors.
50409         Upon failure to open a file, don't exit immediately.
50410         Rather, just warn and continue with any remaining files.
50411
50412 2008-02-10  Bruno Haible  <bruno@clisp.org>
50413
50414         New abstract list operation 'node_set_value'.
50415         * lib/gl_list.h (gl_list_node_set_value): New function.
50416         (struct gl_list_implementation): New field node_set_value.
50417         * lib/gl_list.c (gl_list_node_set_value): New function.
50418         * lib/gl_array_list.c (gl_array_node_set_value): New function.
50419         (gl_array_list_implementation): Update.
50420         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
50421         (gl_carray_list_implementation): Update.
50422         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
50423         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
50424         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
50425         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
50426         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
50427         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
50428         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
50429         Update.
50430         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
50431         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
50432         (gl_sublist_list_implementation): Update.
50433
50434 2008-02-10  Bruno Haible  <bruno@clisp.org>
50435
50436         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
50437         Needed when ELEMENT is #defined to 'some_type *'.
50438
50439 2008-02-10  Jim Meyering  <meyering@redhat.com>
50440
50441         New script and module: useless-if-before-free
50442         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
50443         * build-aux/useless-if-before-free: New file.
50444         * modules/useless-if-before-free: New file.
50445
50446         * build-aux/gitlog-to-changelog: Use committer date, not author date.
50447
50448         xstrtol_error: Fix typo.
50449         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
50450         s/exit_failure/exit_status/.
50451
50452 2008-02-09  Jim Meyering  <meyering@redhat.com>
50453
50454         New script and module: gitlog-to-changelog
50455         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
50456         * modules/gitlog-to-changelog: New file.
50457         * build-aux/gitlog-to-changelog: New file.
50458
50459 2008-02-08  Jim Meyering  <meyering@redhat.com>
50460
50461         Avoid two "parameter unused" warnings.
50462         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
50463         Mark "st" as used.
50464
50465         Use "git COMMAND", not "git-COMMAND".
50466         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
50467         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
50468         * build-aux/git-version-gen: Use "git status", not "git-status".
50469
50470 2008-02-07  Bruno Haible  <bruno@clisp.org>
50471
50472         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
50473         Avoids a crash on Windows Vista.
50474         Reported by Adam Strzelecki <ono@java.pl> via
50475         Simon Josefsson <simon@josefsson.org>.
50476
50477 2008-02-06  Bruno Haible  <bruno@clisp.org>
50478
50479         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
50480         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
50481         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
50482         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
50483         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50484         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50485         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
50486         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
50487         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50488         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50489         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50490         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50491         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50492         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50493         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50494         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
50495         left-adjust flag.
50496         * tests/test-snprintf-posix.h (test_function): Likewise.
50497         * tests/test-sprintf-posix.h (test_function): Likewise.
50498         * tests/test-vasprintf-posix.c (test_function): Likewise.
50499         * doc/posix-functions/fprintf.texi: Update.
50500         * doc/posix-functions/printf.texi: Update.
50501         * doc/posix-functions/snprintf.texi: Update.
50502         * doc/posix-functions/sprintf.texi: Update.
50503         * doc/posix-functions/vfprintf.texi: Update.
50504         * doc/posix-functions/vprintf.texi: Update.
50505         * doc/posix-functions/vsnprintf.texi: Update.
50506         * doc/posix-functions/vsprintf.texi: Update.
50507         Reported by Peter Fales <psfales@alcatel-lucent.com>.
50508
50509 2008-02-06  Bruno Haible  <bruno@clisp.org>
50510
50511         Fix bug introduced on 2008-01-26.
50512         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
50513
50514 2008-02-06  Bruno Haible  <bruno@clisp.org>
50515
50516         Fix bug introduced on 2007-06-10.
50517         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
50518         !NEED_PRINTF_FLAG_ZERO.
50519
50520 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
50521
50522         getloadavg: use libperfstat on AIX5
50523         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
50524
50525 2008-02-03  Bruno Haible  <bruno@clisp.org>
50526
50527         * lib/diffseq.h: Add comments about required #includes.
50528         Reported by Michael Biggs <gnulib@doubleplum.net>.
50529
50530 2008-02-01  Bruno Haible  <bruno@clisp.org>
50531
50532         * users.txt: Add gnuit.
50533
50534 2008-01-31  Bruno Haible  <bruno@clisp.org>
50535
50536         * lib/md4.c (set_uint32): Mark as inline.
50537         * lib/md5.c (set_uint32): Likewise.
50538         * lib/sha1.c (set_uint32): Likewise.
50539         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
50540         * m4/md5.m4 (gl_MD5): Likewise.
50541         * m4/sha1.m4 (gl_SHA1): Likewise.
50542
50543 2008-01-31  Jim Meyering  <meyering@redhat.com>
50544
50545         Use "sizeof VAR", rather than a literal "4".
50546         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
50547         * lib/md4.c (md4_read_ctx): Likewise.
50548         * lib/sha1.c (sha1_read_ctx): Likewise.
50549
50550 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50551
50552         * tests/test-sha1.c: New file, based on test-md5.c.
50553
50554         * modules/crypto/sha1-tests: New file.
50555
50556 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50557
50558         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
50559
50560 2008-01-31  Jim Meyering  <meyering@redhat.com>
50561
50562         Prefer "sizeof v" over the equivalent "4".
50563         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
50564         * lib/md5.c (set_uint32): Likewise.
50565         * lib/sha1.c (set_uint32): Likewise.
50566
50567 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50568
50569         * lib/sha1.c (set_uint32): Mark function as static.
50570
50571 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50572
50573         md2: clarify comments to say that alignment is not required.
50574         * lib/md2.h: Remove warning about alignment in comment.
50575         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
50576         never been required.
50577
50578 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50579
50580         md4: adapt alignment constraint fix from sha1.
50581         * lib/md4.c (set_uint32): New function, from sha1.c
50582         (md4_read_ctx): Use it.
50583         (md4_finish_ctx): Doc fix.
50584         * lib/md4.h: Doc fix.
50585
50586 2008-01-31  Simon Josefsson  <simon@josefsson.org>
50587
50588         md5: adapt alignment constraint fix from sha1.
50589         * lib/md5.c (set_uint32): New function, from sha1.c
50590         (md5_read_ctx): Use it.
50591         (md5_finish_ctx): Doc fix.
50592         * lib/md5.h: Doc fix.
50593
50594 2008-01-30  Peter Palfrader  <weasel@debian.org>
50595
50596         sha1: remove the result buffer alignment constraint
50597         * lib/sha1.c (set_uint32): New function.
50598         (sha1_read_ctx): Rewrite to remove the result buffer alignment
50599         constraint.
50600         (sha1_finish_ctx): Remove comment warning about alignment constraint.
50601         * lib/sha1.h: Likewise.
50602
50603 2008-01-30  Andreas Schwab  <schwab@suse.de>
50604             Bruno Haible  <bruno@clisp.org>
50605
50606         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
50607         correct definition of LDBL_MIN_EXP.
50608
50609 2008-01-30  Karl Berry  <karl@gnu.org>
50610
50611         * config/srclist-update: try to preserve x bit on updates.
50612         * config/srclistvars.sh: update for karl.
50613
50614 2008-01-29  Jim Meyering  <meyering@redhat.com>
50615
50616         vasnprintf.c: Avoid warning about unused label
50617         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
50618         "overflow" label definition and associated code with the
50619         same cpp condition that guards the sole use of that label.
50620
50621 2008-01-26  Bruno Haible  <bruno@clisp.org>
50622
50623         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
50624         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
50625         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
50626         * lib/isnanl-nolibm.h (isnanl): Likewise.
50627         Reported by Paul Eggert <eggert@cs.ucla.edu>.
50628
50629 2008-01-26  Bruno Haible  <bruno@clisp.org>
50630
50631         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
50632         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
50633
50634 2008-01-26  Bruno Haible  <bruno@clisp.org>
50635
50636         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
50637         GCC >= 4.0 built-in.
50638         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
50639
50640 2008-01-26  Bruno Haible  <bruno@clisp.org>
50641
50642         Rename isnan, applicable to 'double' only, to isnand.
50643         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
50644         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
50645         (configure.ac): Update.
50646         (Include): Replace "isnan.h" with "isnand.h".
50647         * m4/isnand.m4: Renamed from m4/isnan.m4.
50648         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
50649         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
50650         instead of isnan.c.
50651         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
50652         instead of HAVE_ISNAN_IN_LIBC.
50653         (isnand): Renamed from isnan.
50654         * lib/isnand.c: New file.
50655         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
50656         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
50657         (Makefile.am): Update.
50658         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
50659         Include isnand.h instead of isnan.h.
50660         (main): Test isnand instead of isnan.
50661         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
50662         isnan-nolibm.
50663         * modules/frexp (Depends-on): Likewise.
50664         * modules/frexp-tests (Depends-on): Likewise.
50665         * modules/frexp-nolibm (Depends-on): Likewise.
50666         * modules/frexp-nolibm-tests (Depends-on): Likewise.
50667         * modules/isfinite (Depends-on): Likewise.
50668         * modules/round-tests (Depends-on): Likewise.
50669         * modules/signbit (Depends-on): Likewise.
50670         * modules/signbit-tests (Depends-on): Likewise.
50671         * modules/snprintf-posix (Depends-on): Likewise.
50672         * modules/sprintf-posix (Depends-on): Likewise.
50673         * modules/trunc-tests (Depends-on): Likewise.
50674         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50675         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50676         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50677         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50678         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50679         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50680         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50681         * modules/vasnprintf-posix (Depends-on): Likewise.
50682         * modules/vasprintf-posix (Depends-on): Likewise.
50683         * modules/vfprintf-posix (Depends-on): Likewise.
50684         * modules/vsnprintf-posix (Depends-on): Likewise.
50685         * modules/vsprintf-posix (Depends-on): Likewise.
50686         * lib/frexp.c: Include isnand.h instead of isnan.h.
50687         (ISNAN): Set to isnand instead of isnan.
50688         * lib/isfinite.c: Include isnand.h instead of isnan.h.
50689         (gl_isfinited): Use isnand instead of isnan.
50690         * lib/signbitd.c: Include isnand.h instead of isnan.h.
50691         (gl_signbitd): Use isnand instead of isnan.
50692         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
50693         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
50694         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
50695         (main): Use isnand instead of isnan.
50696         * tests/test-round1.c: Include isnand.h.
50697         (main): Use isnand instead of isnan.
50698         * tests/test-round2.c: Include isnand.h instead of isnan.h.
50699         (ISNAN): Set to isnand instead of isnan.
50700         * tests/test-trunc1.c: Include isnand.h.
50701         (main): Use isnand instead of isnan.
50702         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
50703         (equal): Use isnand instead of isnan.
50704         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
50705         isnand-nolibm.
50706         * NEWS: Mention the change.
50707
50708 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
50709             Bruno Haible  <bruno@clisp.org>
50710
50711         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
50712         the GCC builtins for signbits are present and set
50713         REPLACE_SIGNBIT_USING_GCC if so.
50714         * lib/math.in.h (signbit): Define using GCC builtins if
50715         REPLACE_SIGNBIT_USING_GCC is set.
50716         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
50717         REPLACE_SIGNBIT_USING_GCC.
50718         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
50719
50720 2008-01-25  Jim Meyering  <meyering@redhat.com>
50721
50722         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
50723         * lib/poll.c: Include <config.h>, not "config.h".
50724         * tests/test-getaddrinfo.c: Likewise.
50725
50726 2008-01-25  Simon Josefsson  <simon@josefsson.org>
50727
50728         * modules/sockets-tests: New file.
50729
50730 2008-01-24  Simon Josefsson  <simon@josefsson.org>
50731
50732         * modules/sockets: New module, can be used to call WSA_Startup and
50733         WSA_Cleanup when needed.
50734
50735         * lib/sockets.h, lib/sockets.c: New files.
50736
50737         * m4/sockets.m4: New file.
50738
50739         * tests/test-sockets.c: New file.
50740
50741 2008-01-19  Bruno Haible  <bruno@clisp.org>
50742
50743         * doc/posix-headers: Renamed from doc/headers.
50744         * doc/posix-functions: Renamed from doc/functions.
50745         * doc/gnulib.texi: Update.
50746
50747 2008-01-19  Bruno Haible  <bruno@clisp.org>
50748
50749         * doc/glibc-functions/strcasestr.texi: Include contents of
50750         doc/functions/strcasestr.texi, fixing the list of platforms.
50751         * doc/functions/strcasestr.texi: Remove file.
50752
50753 2008-01-19  Bruno Haible  <bruno@clisp.org>
50754
50755         * doc/glibc-functions/memmem.texi: Include contents of
50756         doc/functions/memmem.texi.
50757         * doc/functions/memmem.texi: Remove file.
50758
50759 2008-01-18  Bruno Haible  <bruno@clisp.org>
50760
50761         * doc/glibc-functions/*.texi: New files.
50762         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
50763         to use the new files.
50764
50765 2008-01-17  Bruno Haible  <bruno@clisp.org>
50766
50767         * tests/test-gethostname.c (main): Fix printf statement.
50768
50769 2008-01-17  Simon Josefsson  <simon@josefsson.org>
50770
50771         * modules/gethostname-tests: New file.
50772
50773         * tests/test-gethostname.c: New file.
50774
50775 2008-01-17  Simon Josefsson  <simon@josefsson.org>
50776
50777         * lib/gethostname.c: Include string.h unconditionally, strncpy is
50778         used by the UNAME case.  Reported by Bruno Haible
50779         <bruno@clisp.org>.
50780
50781 2008-01-17  Eric Blake  <ebb9@byu.net>
50782
50783         Convert c-strcasestr to be more efficient.
50784         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
50785         (Depends-on): Add c-strcase, remove malloca, strnlen.
50786         * tests/test-c-strcasestr.c (main): Enhance test.
50787         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
50788
50789 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
50790
50791         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
50792         Use it in creating po/Makevars.
50793
50794 2008-01-15  Simon Josefsson  <simon@josefsson.org>
50795
50796         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
50797         Applications that requires it should initialize libgcrypt
50798         manually.
50799
50800 2008-01-16  Simon Josefsson  <simon@josefsson.org>
50801
50802         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
50803
50804 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
50805
50806         Fix problem with getdate on mingw32 reported by Simon Josefsson
50807         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
50808         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
50809         tzname", when deciding whether to declare tzname.
50810         * lib/strftime.c (tzname): Likewise.
50811
50812 2008-01-15  Bruno Haible  <bruno@clisp.org>
50813
50814         Work around a MacOS X 10.5 bug in frexpl().
50815         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
50816         * doc/functions/frexpl.texi: Document the bug.
50817         Reported by Elias Pipping <pipping@gentoo.org>.
50818
50819 2008-01-14  Eric Blake  <ebb9@byu.net>
50820
50821         Touch up previous patch.
50822         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
50823         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
50824
50825         Convert strcasestr module to use Two-Way algorithm.
50826         * modules/strcasestr-simple: New module, based on the old
50827         strcasestr, but with Two-Way rather than KMP.
50828         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
50829         * lib/string.in.h (rpl_strcasestr): Declare.
50830         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
50831         performance.
50832         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
50833         * modules/string (Makefile.am): Support strcasestr.
50834         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
50835         * modules/strcasestr-tests (Depends-on): Check for alarm.
50836         * tests/test-strcasestr.c: Augment test.
50837         * lib/str-two-way.h: Clean up stray macro.
50838         * NEWS: Document new module.
50839         * MODULES.html.sh (string handling): Likewise.
50840         * doc/functions/strcasestr.texi: New file.
50841         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
50842         here, since it is not a POSIX function.
50843
50844 2008-01-14  Colin Watson  <cjwatson@debian.org>
50845             Bruno Haible  <bruno@clisp.org>
50846
50847         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
50848         works fine; if not, set REPLACE_STRSIGNAL.
50849         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
50850         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50851         REPLACE_STRSIGNAL.
50852         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
50853         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
50854         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
50855
50856 2008-01-14  Bruno Haible  <bruno@clisp.org>
50857
50858         * modules/strsignal (Include): Change to <string.h>.
50859
50860 2008-01-14  Colin Watson  <cjwatson@debian.org>
50861
50862         * modules/argp (Notice): Add a notice recommending to change
50863         XGETTEXT_OPTIONS.
50864         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
50865
50866 2008-01-13  Colin Watson  <cjwatson@debian.org>
50867
50868         * modules/strsignal-tests: New file.
50869         * tests/test-strsignal.c: New file.
50870
50871         * lib/strsignal.c: New file, from glibc with modifications.
50872         * lib/siglist.h: New file, from glibc with modifications.
50873         * lib/string.in.h (strsignal): New declaration.
50874         * m4/strsignal.m4: New file.
50875         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
50876         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
50877         * modules/strsignal: New file.
50878         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
50879         HAVE_DECL_STRSIGNAL.
50880
50881 2008-01-13  Bruno Haible  <bruno@clisp.org>
50882
50883         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
50884         locale encoding is not ASCII. Needed for OpenBSD 4.0.
50885         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
50886         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
50887
50888 2008-01-13  Bruno Haible  <bruno@clisp.org>
50889
50890         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
50891         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
50892         * lib/argp.h (__attribute__): Likewise.
50893         * lib/c-stack.c (__attribute__): Likewise.
50894         * lib/error.h (__attribute__): Likewise.
50895         * lib/fts.c (__attribute__): Likewise.
50896         * lib/openat.h (__attribute__): Likewise.
50897         * lib/stdio.in.h (__attribute__): Likewise.
50898         * lib/string.in.h (__attribute__): Likewise.
50899         * lib/utimens.c (__attribute__): Likewise.
50900         * lib/vasnprintf.h (__attribute__): Likewise.
50901         * lib/xalloc.h (__attribute__): Likewise.
50902         * lib/xprintf.h (__attribute__): Likewise.
50903         * lib/xstrtol.h (__attribute__): Likewise.
50904         * lib/xvasprintf.h (__attribute__): Likewise.
50905
50906 2008-01-12  Bruno Haible  <bruno@clisp.org>
50907
50908         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
50909         * doc/glibc-headers/a.out.texi: New file.
50910         * doc/glibc-headers/aliases.texi: New file.
50911         * doc/glibc-headers/alloca.texi: New file.
50912         * doc/glibc-headers/ar.texi: New file.
50913         * doc/glibc-headers/argp.texi: New file.
50914         * doc/glibc-headers/argz.texi: New file.
50915         * doc/glibc-headers/byteswap.texi: New file.
50916         * doc/glibc-headers/crypt.texi: New file.
50917         * doc/glibc-headers/endian.texi: New file.
50918         * doc/glibc-headers/envz.texi: New file.
50919         * doc/glibc-headers/err.texi: New file.
50920         * doc/glibc-headers/error.texi: New file.
50921         * doc/glibc-headers/execinfo.texi: New file.
50922         * doc/glibc-headers/fpu_control.texi: New file.
50923         * doc/glibc-headers/fstab.texi: New file.
50924         * doc/glibc-headers/fts.texi: New file.
50925         * doc/glibc-headers/getopt.texi: New file.
50926         * doc/glibc-headers/ieee754.texi: New file.
50927         * doc/glibc-headers/ifaddrs.texi: New file.
50928         * doc/glibc-headers/libintl.texi: New file.
50929         * doc/glibc-headers/mcheck.texi: New file.
50930         * doc/glibc-headers/mntent.texi: New file.
50931         * doc/glibc-headers/obstack.texi: New file.
50932         * doc/glibc-headers/paths.texi: New file.
50933         * doc/glibc-headers/printf.texi: New file.
50934         * doc/glibc-headers/pty.texi: New file.
50935         * doc/glibc-headers/resolv.texi: New file.
50936         * doc/glibc-headers/shadow.texi: New file.
50937         * doc/glibc-headers/sysexits.texi: New file.
50938         * doc/glibc-headers/ttyent.texi: New file.
50939
50940 2008-01-12  Jim Meyering  <meyering@redhat.com>
50941
50942         announce-gen: emit Gnulib's git-based version string.
50943         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
50944         New option --gnulib-version=V, where V is expected to be
50945         the output of running git describe in the gnulib directory.
50946         (get_tool_versions): Request feedback on xdelta.  I suspect it's
50947         not useful, and plan to stop publishing an xdelta file with each
50948         coreutils release.
50949
50950         * build-aux/announce-gen: Also check for lzma-compressed files.
50951
50952 2008-01-11  Bruno Haible  <bruno@clisp.org>
50953
50954         * tests/test-memmem.c (main): Increase maximum allowed time.
50955         * tests/test-strstr.c (main): Likewise.
50956
50957 2008-01-11  Bruno Haible  <bruno@clisp.org>
50958
50959         * doc/functions/memmem.texi: Add more precisions about platforms.
50960         * doc/functions/strstr.texi: Likewise.
50961
50962 2008-01-10  Eric Blake  <ebb9@byu.net>
50963
50964         * m4/strstr.m4: Delete cruft from copy-n-paste.
50965         Reported by Bruno Haible.
50966
50967 2008-01-10  Bruno Haible  <bruno@clisp.org>
50968
50969         Make c-strstr rely on strstr.
50970         * lib/c-strstr.c: Don't include str-kmp.h.
50971         (c_strstr): Define in terms of strstr.
50972         * modules/c-strstr (Files): Remove lib/str-kmp.h.
50973         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
50974
50975 2008-01-10  Bruno Haible  <bruno@clisp.org>
50976
50977         * doc/gnulib.texi (String Functions in C Locale): New section.
50978         * doc/c-ctype.texi: New file.
50979         * doc/c-strcase.texi: New file.
50980         * doc/c-strcaseeq.texi: New file.
50981         * doc/c-strcasestr.texi: New file.
50982         * doc/c-strstr.texi: New file.
50983         * doc/c-strtod.texi: New file.
50984         * doc/c-strtold.texi: New file.
50985
50986 2008-01-10  Eric Blake  <ebb9@byu.net>
50987
50988         * lib/relocatable.h: Fix a comment.
50989
50990 2008-01-10  Eric Blake  <ebb9@byu.net>
50991
50992         Share two-way algorithm.
50993         * lib/str-two-way.h: New file, merged from...
50994         * lib/memmem.c: ...here...
50995         * lib/strstr.c: ...and here.
50996         * modules/memmem (Files): Use it.
50997         * modules/strstr (Files): Likewise.
50998
50999         Avoid quadratic strstr implementations.
51000         * lib/strstr.c: New file.
51001         * m4/strstr.m4: Likewise.
51002         * modules/strstr: Likewise.
51003         * modules/strstr-tests: Likewise.
51004         * tests/test-strstr.c: Likewise.
51005         * lib/string.in.h (rpl_strstr): Declare.
51006         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
51007         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
51008         * modules/string (Makefile.am): Likewise.
51009         * MODULES.html.sh (string handling): Mention new module.
51010         * doc/functions/strstr.texi (strstr): Document the bug.
51011
51012 2008-01-10  Bruno Haible  <bruno@clisp.org>
51013
51014         * lib/relocatable.h (relocate): State whether result is freshly
51015         allocated or not.
51016         * lib/relocatable.c (relocate): Return a freshly allocated string
51017         instead of a pointer to a privately held string.
51018         Reported by Sylvain Beucler <beuc@gnu.org>.
51019
51020 2008-01-10  Colin Watson  <cjwatson@debian.org>
51021
51022         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
51023         s/S_ISNLK/S_ISLNK/.
51024
51025 2008-01-09  Bruno Haible  <bruno@clisp.org>
51026
51027         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
51028         and other files.
51029         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
51030         if it's only a guess.
51031         * modules/memmem: Simplify by depending on memmem-simple.
51032
51033 2008-01-09  Bruno Haible  <bruno@clisp.org>
51034
51035         Work around OpenBSD 4.0 tdelete() bug.
51036         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
51037         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
51038         macros and don't redefine the enum values.
51039         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
51040         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
51041         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
51042
51043 2008-01-09  Bruno Haible  <bruno@clisp.org>
51044
51045         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
51046         (main): Don't perform the tests if setlocale did not install a UTF-8
51047         locale. Needed on OpenBSD 4.0.
51048         * modules/wcwidth-tests (Depends-on): Add localcharset.
51049
51050 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
51051
51052         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
51053         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
51054         * NEWS: announce this.
51055         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
51056
51057 2008-01-09  Simon Josefsson  <simon@josefsson.org>
51058         and Eric Blake  <ebb9@byu.net>
51059
51060         Add memmem-simple module.
51061         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
51062         (gl_FUNC_MEMMEM): Separate performance from presence checks.
51063         * modules/memmem-simple: New file.
51064         * modules/memmem (Description): Tweak.
51065         * MODULES.html.sh (string handling): Mention new module.
51066         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
51067         addressed by memmem-simple.
51068         * NEWS: Document the difference.
51069
51070 2008-01-09  Eric Blake  <ebb9@byu.net>
51071
51072         Give gcc some memmem optimization hints.
51073         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
51074         (strcasestr): Declare as pure.
51075         * modules/memmem (Maintainer): Claim my implementation.
51076
51077 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51078
51079         Support AIX 6.1 and higher.
51080         * build-aux/config.libpath: Likewise.
51081         * build-aux/config.rpath: Likewise.
51082
51083 2008-01-08  Jim Meyering  <meyering@redhat.com>
51084             Bruno Haible  <bruno@clisp.org>
51085
51086         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
51087         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
51088         Reported by Peter Fales in
51089         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
51090
51091 2008-01-08  Bruno Haible  <bruno@clisp.org>
51092
51093         * modules/unictype/category-of (Depends-on): Add
51094         unictype/category-none.
51095         * modules/unictype/category-and-tests (Depends-on): Add
51096         unictype/category-{L,N,Lu,Nd}.
51097         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
51098         * modules/unictype/category-or-tests (Depends-on): Add
51099         unictype/category-{L,N}.
51100         * modules/unictype/category-name-tests (Depends-on): Add
51101         unictype/category-{Z,Nl}.
51102         Reported by Simon Josefsson.
51103
51104 2008-01-08  Bruno Haible  <bruno@clisp.org>
51105
51106         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
51107         convention better.
51108         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
51109         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
51110         Reported by Peter Miller <millerp@canb.auug.org.au>.
51111
51112 2008-01-08  Eric Blake  <ebb9@byu.net>
51113
51114         Rewrite memmem to guarantee linear complexity without malloc.
51115         * lib/memmem.c (memmem): Use Two-Way rather than
51116         Knuth-Morris-Pratt, to allow O(1) space usage.
51117         (critical_factorization, two_way_short_needle)
51118         (two_way_long_needle): New functions.
51119         (knuth_morris_pratt): Delete.
51120         * modules/memmem (Depends-on): No longer need malloca or stdbool.
51121         Add stdint.
51122         * tests/test-memmem.c (main): Add tests for periodic needle and
51123         sublinear performance.
51124         * doc/functions/memmem.texi (memmem): Document other deficiencies
51125         in cygwin and older glibc.
51126
51127 2008-01-08  Bruno Haible  <bruno@clisp.org>
51128
51129         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
51130         augmentation.
51131
51132 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
51133
51134         Add a configure time option: --disable-acl.
51135         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
51136         AC_ARG_ENABLE(acl).
51137
51138 2008-01-06  Simon Josefsson  <simon@josefsson.org>
51139
51140         * tests/test-localename.c: Don't include obsolete "setenv.h".
51141
51142         * modules/localename-tests (Depends-on): Need unsetenv.
51143
51144 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51145
51146         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
51147
51148 2008-01-06  Colin Watson  <cjwatson@debian.org>
51149
51150         * users.txt: Add man-db.
51151
51152 2008-01-07  Bruno Haible  <bruno@clisp.org>
51153
51154         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
51155         previous section name.
51156
51157 2008-01-07  Bruno Haible  <bruno@clisp.org>
51158
51159         * lib/progname.c (set_program_name): Don't strip off a leading
51160         "lt-" prefix outside a .libs directory.
51161         Suggested by Paul Eggert.
51162
51163 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
51164             Bruno Haible  <bruno@clisp.org>
51165
51166         Improve memory cleanup in 'relocatable' module.
51167         * lib/relocatable.h (compute_curr_prefix): Change return type to
51168         'char *'.
51169         * lib/relocatable.c (compute_curr_prefix): Change return type to
51170         'char *'. Free curr_installdir after use.
51171         (relocate): Free curr_prefix_better after use.
51172         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
51173
51174 2008-01-01  Bruno Haible  <bruno@clisp.org>
51175
51176         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
51177         failure on older glibc systems.
51178         Reported by Peter Fales <psfales@alcatel-lucent.com>.
51179
51180 2008-01-05  Eric Blake  <ebb9@byu.net>
51181
51182         Avoid quadratic system memmem.
51183         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
51184         Reported by Ralf Wildenhues.
51185
51186         Fix memmem test for mingw.
51187         * modules/memmem-tests (configure.ac): Check for alarm.
51188         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
51189         it.
51190         * doc/functions/memmem.texi: New file.
51191         * doc/gnulib.texi (Function Substitutes): Add memmem.
51192         Reported by Bruno Haible.
51193
51194 2008-01-04  Bruno Haible  <bruno@clisp.org>
51195
51196         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
51197         Require gl_HEADER_STRINGS_H_DEFAULTS, not
51198         gl_HEADER_STRING_H_DEFAULTS.
51199
51200 2008-01-04  Eric Blake  <ebb9@byu.net>
51201
51202         Shorten duration of memmem test.
51203         * tests/test-memmem.c (main): Use alarm to declare failure if test
51204         is taking too long.
51205         Reported by Ralf Wildenhues.
51206
51207 2007-12-21  Simon Josefsson  <simon@josefsson.org>
51208
51209         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
51210         string, needed by strerror.
51211
51212 2008-01-03  Colin Watson  <cjwatson@debian.org>
51213             Bruno Haible  <bruno@clisp.org>
51214
51215         * doc/gnulib-tool.texi (Localization): New section.
51216
51217 2008-01-02  Bruno Haible  <bruno@clisp.org>
51218
51219         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
51220         variables to 'unsigned char *' type.
51221         Reported by Paul Eggert.
51222
51223 2008-01-02  Jim Meyering  <jim@meyering.net>
51224
51225         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
51226
51227 2007-12-31  Jim Meyering  <jim@meyering.net>
51228
51229         Avoid use of private FTS type name.
51230         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
51231
51232 2007-12-30  Karl Berry  <karl@gnu.org>
51233
51234         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
51235         work around defect in Texinfo and/or the standalone Info browser.
51236
51237 2007-12-30  Bruno Haible  <bruno@clisp.org>
51238
51239         Unify 5 copies of the KMP code.
51240         * lib/str-kmp.h: New file.
51241         * lib/c-strcasestr.c: Include str-kmp.h.
51242         (knuth_morris_pratt): Remove function.
51243         (c_strcasestr): Update.
51244         * lib/c-strstr.c: Include str-kmp.h.
51245         (knuth_morris_pratt): Remove function.
51246         (c_strcasestr): Update.
51247         * lib/mbscasestr.c: Include str-kmp.h.
51248         (knuth_morris_pratt_unibyte): Remove function.
51249         * lib/mbsstr.c: Include str-kmp.h.
51250         (knuth_morris_pratt_unibyte): Remove function.
51251         * lib/strcasestr.c: Include str-kmp.h.
51252         (knuth_morris_pratt): Remove function.
51253         (strcasestr): Update.
51254         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
51255         * modules/c-strstr (Files): Likewise.
51256         * modules/mbscasestr (Files): Likewise.
51257         * modules/mbsstr (Files): Likewise.
51258         * modules/strcasestr (Files): Likewise.
51259         Suggested by Paul Eggert.
51260
51261 2007-12-30  Bruno Haible  <bruno@clisp.org>
51262
51263         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
51264         defined.
51265
51266 2007-12-30  Bruno Haible  <bruno@clisp.org>
51267
51268         * lib/xmalloca.h: Include xalloc.h.
51269         (xnmalloca): New macro.
51270
51271 2007-12-30  Bruno Haible  <bruno@clisp.org>
51272
51273         * lib/malloca.h (nmalloca): New macro.
51274         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
51275         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
51276         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
51277         knuth_morris_pratt_multibyte): Likewise.
51278         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
51279         knuth_morris_pratt_multibyte): Likewise.
51280         * lib/memmem.c (knuth_morris_pratt): Likewise.
51281         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
51282
51283 2007-12-25  Bruno Haible  <bruno@clisp.org>
51284
51285         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
51286         * lib/glob.c: Don't include openat.h.
51287         (link_exists2_p): Add back the code that deals with the
51288         !GLOB_ALTDIRFUNC case.
51289         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
51290         let it do the filename concatenation.
51291         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
51292         * modules/glob (Depends-on): Remove openat.
51293
51294 2007-12-31  Bruno Haible  <bruno@clisp.org>
51295
51296         * modules/dirfd (License): Change to LGPLv2+.
51297         Approved by Jim Meyering.
51298
51299 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
51300
51301         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
51302         when multiplying M by sizeof (size_t).
51303
51304 2007-12-10  Martin Lambers  <marlam@marlam.de>
51305
51306         Override getpagesize on mingw.
51307         * lib/getpagesize.c: New file.
51308         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
51309         * modules/getpagesize (Files): Add lib/getpagesize.c.
51310         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
51311         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51312         REPLACE_GETPAGESIZE.
51313         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
51314
51315 2007-12-25  Bruno Haible  <bruno@clisp.org>
51316
51317         * modules/localcharset (Notice): New field.
51318         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
51319         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
51320
51321 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
51322             Bruno Haible  <bruno@clisp.org>
51323
51324         Avoid using the syntax symbol() in formatted documentation.
51325         * MODULES.html.sh (func_module): When replacing symbol() with a
51326         hyperlink, remove the parentheses. Show an error if some remain.
51327         Recognize and render the '...' syntax.
51328         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
51329         Rework. Add paragraph about GCC's inlining.
51330         * doc/alloca.texi: Likewise.
51331         * doc/error.texi: Remove parentheses from symbol reference.
51332         * doc/gnulib-intro.texi: Likewise.
51333         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
51334         * modules/fnmatch (Description): Reword to say "the ... function".
51335         * modules/full-read (Description): Likewise.
51336         * modules/full-write (Description): Likewise.
51337         * modules/safe-read (Description): Likewise.
51338         * modules/safe-write (Description): Likewise.
51339         * modules/strchrnul (Description): Likewise.
51340         * modules/trim (Description): Likewise.
51341         * modules/error (Description): Remove parentheses from symbol
51342         references.
51343         * modules/verror (Description): Likewise.
51344         Reported by Karl Berry.
51345
51346 2007-12-25  Bruno Haible  <bruno@clisp.org>
51347
51348         Fixup after 2007-10-16 commit.
51349         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
51350
51351 2007-12-24  Bruno Haible  <bruno@clisp.org>
51352
51353         Make --enable-relocatable work with DESTDIR.
51354         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
51355         to compute installdir from destprog.
51356         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
51357         also set the RELOC_DESTDIR variable.
51358         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51359
51360 2007-12-24  Bruno Haible  <bruno@clisp.org>
51361
51362         Fix link error due to xalloc_die().
51363         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
51364         of xreadlink.
51365         * lib/relocwrapper.c: Update comments.
51366         * build-aux/install-reloc: Remove xreadlink.c from file list.
51367         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
51368         xreadlink.c.
51369         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51370
51371 2007-12-24  Bruno Haible  <bruno@clisp.org>
51372
51373         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
51374         * lib/setenv.h: Remove file.
51375         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
51376         lib/setenv.h.
51377         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
51378         (Depends-on): Add stdlib.
51379         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
51380         gl_FUNC_UNSETENV.
51381         (Include): Replace setenv.h with <stdlib.h>.
51382         * modules/unsetenv: New file.
51383         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
51384         * lib/unsetenv.c: Include <stdlib.h> first.
51385         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
51386         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
51387         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
51388         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
51389         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
51390         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
51391         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
51392         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
51393         * doc/functions/unsetenv.texi: Update.
51394         * modules/xsetenv (Depends-on): Add unsetenv.
51395         * modules/getdate (Depends-on): Likewise.
51396         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
51397         * lib/xsetenv.c: Don't include setenv.h.
51398         * lib/getdate.y: Likewise.
51399         * lib/relocwrapper.c: Likewise.
51400         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
51401         (Depends-on): Add stdlib.
51402         * NEWS: Mention the changes.
51403         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
51404
51405 2007-12-23  Bruno Haible  <bruno@clisp.org>
51406
51407         * lib/memmem.c (memmem): Use lowercase variable names. Tab
51408         indentation.
51409
51410 2007-12-23  Bruno Haible  <bruno@clisp.org>
51411
51412         * lib/c-strcasestr.c: Add more comments.
51413         * lib/c-strstr.c: Likewise.
51414         * lib/mbscasestr.c: Likewise.
51415         * lib/mbsstr.c: Likewise.
51416         * lib/strcasestr.c: Likewise.
51417         * lib/memmem.c: Likewise.
51418
51419 2007-12-23  Bruno Haible  <bruno@clisp.org>
51420
51421         * tests/test-memmem.c: Include <string.h> first.
51422
51423 2007-12-22  Bruno Haible  <bruno@clisp.org>
51424
51425         * gnulib-tool (func_create_testdir): Change $auxdir while generating
51426         the contents of $testsbase.
51427         Reported by Ralf Wildenhues.
51428
51429 2007-12-22  Bruno Haible  <bruno@clisp.org>
51430
51431         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
51432         two variables local_ldadd_before, local_ldadd_last.
51433
51434 2007-12-20  Eric Blake  <ebb9@byu.net>
51435
51436         Work around circular library issue when cross-compiling.
51437         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
51438         that progname.o does not need to pull in rpl_memcmp.
51439
51440 2007-12-19  Eric Blake  <ebb9@byu.net>
51441
51442         Fix memmem to avoid O(n^2) worst-case complexity.
51443         * lib/memmem.c (knuth_morris_pratt): New function.
51444         (memmem): Use it if first few naive iterations fail.
51445         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
51446         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
51447         * modules/memchr (License): Likewise.
51448         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
51449         malloca.
51450         * tests/test-memmem.c: Rewrite, borrowing ideas from
51451         test-mbsstr1.c; the old version wouldn't even compile!
51452         * modules/memmem-tests: New file.
51453         * lib/string.in.h (rpl_memmem): Add declaration.
51454         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
51455         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
51456         REPLACE_MEMMEM.
51457
51458 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
51459
51460         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
51461         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
51462         before any system include files, and undef after them all.  This
51463         should fix a problem on VMS reported by John E. Malmberg in
51464         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
51465
51466 2007-12-17  Eric Blake  <ebb9@byu.net>
51467
51468         Revert addition of verify, for BSD/OS.
51469         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
51470         can't handle large files, for the sake of obsolete platforms.
51471         * modules/fseeko (Depends-on): Remove verify.
51472         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
51473         * doc/functions/ftello.texi (ftello): Likewise.
51474         * doc/functions/fgetpos.texi (fgetpos): Likewise.
51475         Reported by Larry Jones.
51476
51477 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
51478
51479         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
51480         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
51481
51482 2007-12-17  Jim Meyering  <meyering@redhat.com>
51483
51484         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
51485         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
51486         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
51487         * modules/getcwd (Depends-on): Add openat.
51488         Reported by Petr Salinger.
51489
51490 2007-12-17  Bruno Haible  <bruno@clisp.org>
51491
51492         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
51493         avoid a segmentation fault of the configure test on x86_64 systems.
51494
51495 2007-12-15  Jim Meyering  <meyering@redhat.com>
51496
51497         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
51498
51499 2007-12-13  Eric Blake  <ebb9@byu.net>
51500
51501         Another fseek test.
51502         * tests/test-fseek.c (main): Also test ungetc handling.
51503         * tests/test-fseeko.c (main): Likewise.
51504         * modules/fseeko (Depends-on): Add verify.
51505         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
51506         large.
51507         Reported by Larry Jones.
51508
51509         Fix fseeko on mingw.
51510         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
51511         seek.
51512
51513         Beef up fseek tests.
51514         * tests/test-fseek.c (main): Also test eof handling.
51515         * tests/test-fseeko.c (main): Likewise.
51516         Reported by Larry Jones.
51517
51518 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
51519
51520         Fix fseeko on BSD-based platforms.
51521         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
51522         successful seek.
51523
51524 2007-12-12  Eric Blake  <ebb9@byu.net>
51525
51526         Allow circular dependency of separate libtests.a
51527         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
51528         when use_libtests.
51529
51530 2007-12-11  Eric Blake  <ebb9@byu.net>
51531
51532         Fix bug with -0.0L in previous patch.
51533         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
51534         * tests/test-isnan.c (main): Also test on zeroes.
51535         * tests/test-isnanf.c (main): Likewise.
51536         * tests/test-isnanl.h (main): Likewise.
51537
51538         Detect pseudo-denormals on x86 even when cross-compiling.
51539         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
51540         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
51541         invalid bit patterns that happen to satisfy ==.
51542
51543         Avoid link failures with separate libtests.a.
51544         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
51545         last, to satisfy circular dependencies.
51546
51547 2007-12-11  Eric Blake  <ebb9@byu.net>
51548         and Bruno Haible  <bruno@clisp.org>
51549
51550         Fix OpenBSD 4.0 <float.h> handling of long double.
51551         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
51552         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
51553         * doc/headers/float.texi (float.h): Document OpenBSD bug.
51554
51555 2007-12-11  Jim Meyering  <meyering@redhat.com>
51556
51557         * users.txt: Add libvirt.
51558
51559         Support versions of autoconf prior to 2.59c.
51560         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
51561         if it is not already defined.
51562
51563 2007-12-09  Bruno Haible  <bruno@clisp.org>
51564
51565         Let 'gnulib-tool --import' collect sources needed for the tests in
51566         tests/ rather than in lib/.
51567         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
51568         argument. If true, add rules to generate libtests.a, and put libtests.a
51569         into $(LDADD). Consider source files in subdirectories and set
51570         uses_subdirs.
51571         (func_emit_initmacro_start, func_emit_initmacro_end,
51572         func_emit_initmacro_done): Pass all arguments explicitly.
51573         (func_import): Determine two module lists main_modules,
51574         testsrelated_modules. Determine use_libtests. Determine two variables
51575         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
51576         instead of just sed_transform_lib_file. Determine two variables
51577         main_files and testsrelated_files. Compute 'files' as the union of
51578         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
51579         func_add_or_update. In the generated gnulib-comp.m4, collect the
51580         object files for tests/ in different variables than those for lib/.
51581         Substitute LIBTESTS_LIBDEPS.
51582         (func_create_testdir): Combine the uses_subdirs results from
51583         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
51584
51585 2007-12-09  Bruno Haible  <bruno@clisp.org>
51586
51587         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
51588         the build-aux directory.
51589
51590 2007-12-09  Bruno Haible  <bruno@clisp.org>
51591
51592         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
51593         introduced on 2006-09-09.
51594
51595 2007-12-07  Jim Meyering  <meyering@redhat.com>
51596
51597         Let these macros work also with autoconf-2.59.
51598         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
51599         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
51600         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
51601
51602 2007-12-06  Jim Meyering  <meyering@redhat.com>
51603
51604         Avoid a configure-time syntax error in gl_FUNC_ACL.
51605         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
51606         function in each branch, before testing the cache variable.
51607
51608 2007-12-04  Eric Blake  <ebb9@byu.net>
51609
51610         Make scripts executable.
51611         * build-aux/config.guess: Add execute permissions.
51612         * build-aux/config.sub: Likewise.
51613         * build-aux/gendocs.sh: Likewise.
51614
51615         Fix frexp on mingw.
51616         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
51617         cross-compiling.
51618         * doc/functions/frexp.texi (frexp): Document the bug.
51619
51620         Make cygwin fseeko check more reliable.
51621         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
51622         version numbers, rather than unrelated feature check.
51623         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
51624         * doc/functions/ftello.texi (ftello): Likewise.
51625         Reported by Bruno Haible.
51626
51627         * m4/strerror.m4: Bump version number.
51628
51629 2007-12-03  Bruno Haible  <bruno@clisp.org>
51630
51631         * doc/functions/mprotect.texi: Mention the mingw problem.
51632
51633 2007-12-03  Eric Blake  <ebb9@byu.net>
51634
51635         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
51636         REPLACE_STRERROR is initialized before this macro.
51637
51638 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
51639
51640         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
51641         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
51642         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
51643         put -lsec in even for programs other than 'ls'.  This fixes a problem
51644         for gettext reported by Bruno Haible in
51645         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
51646         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
51647         Add support for Solaris 10.  This isn't efficient, but should get the
51648         job done for now.
51649
51650 2007-12-03  James Youngman  <jay@gnu.org>
51651
51652         * doc/regexprops-generic.texi: change "an close-group" to "a
51653         close-group" and "illegal" to "not allowed".
51654
51655 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51656
51657         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
51658         pr_byname.h. Needed for the rare case when the maintainer has done
51659         "make maintainer-clean" in the source directory and then attempts a
51660         build outside the source directory.
51661         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
51662         scripts_byname.h.
51663
51664 2007-12-02  Martin Lambers <marlam@marlam.de>
51665             Bruno Haible  <bruno@clisp.org>
51666
51667         * lib/getpagesize.h: Remove file.
51668         * lib/unistd.in.h: Include declaration of getpagesize here.
51669         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
51670         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
51671         HAVE_SYS_PARAM_H.
51672         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
51673         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
51674         * modules/getpagesize (Files): Remove lib/getpagesize.h.
51675         (Depends-on): Add unistd.
51676         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51677         (Include): Use <unistd.h> instead of getpagesize.h.
51678         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
51679         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
51680         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
51681         gl_GETPAGESIZE invocation, already handled by module dependency.
51682         * lib/pagealign_alloc.c: Don't include getpagesize.h.
51683
51684 2007-12-02  Bruno Haible  <bruno@clisp.org>
51685
51686         * modules/strings-tests: New file.
51687         * tests/test-strings.c: New file.
51688
51689         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
51690         * lib/strings.in.h: New file.
51691         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
51692         * m4/strings_h.m4: New file.
51693         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
51694         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
51695         * modules/strings: New file.
51696         * modules/string (Makefile.am): Update.
51697         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
51698         Reported by Karl Berry.
51699
51700 2007-12-01  Eric Blake  <ebb9@byu.net>
51701
51702         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
51703         accomodate fix in cygwin 1.5.25.
51704
51705 2007-12-01  Jim Meyering  <meyering@redhat.com>
51706
51707         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
51708         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
51709         that would inhibit utf8-optimization of a regexp containing line-
51710         or buffer-anchors, e.g., `^', `$'.
51711
51712 2007-11-30  Bruno Haible  <bruno@clisp.org>
51713
51714         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
51715         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
51716         glthread_recursive_lock_init.
51717         * lib/lock.c (glthread_recursive_lock_init)
51718         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
51719         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51720
51721 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
51722
51723         New function qset_acl, like set_acl but with syscall semantics.
51724         * lib/acl.h (qset_acl): New decl.
51725         * lib/acl.c (qset_acl): New function.
51726         (set_acl): Use new function.  Use more-consistent diagnostics.
51727
51728 2007-11-28  Jim Meyering  <meyering@redhat.com>
51729
51730         * modules/physmem (License): Change from GPL to LGPLv2+.
51731
51732 2007-11-26  Bruno Haible  <bruno@clisp.org>
51733
51734         * lib/vasnprintf.c (decode_long_double): Don't abort if the
51735         'long double' type has excess precision.
51736         Reported by Jim Meyering in
51737         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
51738
51739 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51740
51741         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
51742         Sync from <http://gnu.org/licenses>.
51743         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
51744         with license text from same location.
51745         * doc/maintain.texi, doc/standards.texi:  Sync from
51746         <http://savannah.gnu.org/projects/gnustandards>.
51747
51748 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
51749         and Jim Meyering  <meyering@redhat.com>
51750
51751         Adjust getdate' grammar to accept a slightly more regular language.
51752         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
51753         Before, the former was rejected.
51754         * lib/getdate.y (digits_to_date_time): New function, factored
51755         out of ...
51756         (number): ...here.  Just call digits_to_date_time.
51757         (hybrid): New non-terminal to handle an <unsigned number,
51758         signed relative offset> sequence consistently.
51759
51760 2007-11-18  Jim Meyering  <meyering@redhat.com>
51761
51762         Pull my changes from coreutils:
51763         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
51764         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
51765         use of $gnulib_tool_option_extras, so that it's separated from the
51766         preceding argument.
51767
51768         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
51769         * build-aux/bootstrap (cp_mark_as_generated): Create any required
51770         parent destination directories before copying a file into place.
51771
51772 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
51773
51774         bootstrap: work also with 4-argument variant of AC_INIT
51775         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
51776
51777 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
51778
51779         Port test-getaddrinfo to Solaris.
51780         Problem reported by Bruno Haible in
51781         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
51782         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
51783         explanation of setting 'hints'.
51784         Don't reject an implementation merely because it returns EAI_SERVICE.
51785         (EAI_SERVICE): Define to 0 if not defined.
51786
51787 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
51788
51789         The license of gnu-make and posix-shell is now "GPLed build tool".
51790         * modules/gnu-make (License): Likewise.
51791         * modules/posix-shell (License): Likewise.
51792
51793         New module posix-shell, for determining a POSIX shell
51794         or perhaps something that is close enough to a POSIX shell.
51795         * m4/posix-shell.m4: New file.
51796         * modules/posix-shell: New file.
51797
51798         * MODULES.html.sh: Mention new module.
51799
51800         New module gnu-make, for determining whether we're using GNU Make.
51801         * m4/gnu-make.m4: New file.
51802         * modules/gnu-make: New file.
51803         * MODULES.html.sh: Mention new module.
51804
51805 2007-11-14  Jim Meyering  <meyering@redhat.com>
51806
51807         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
51808         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
51809         use this macro to create a function _definition_.
51810         Remove useless "#undef ARGMATCH_DIE".
51811
51812 2007-11-14  Bruno Haible  <bruno@clisp.org>
51813
51814         * lib/config.charset: Update for OpenBSD 4.1.
51815         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
51816
51817 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
51818
51819         Document 64-bit #if problems in stdint.texi.
51820         * doc/headers/stdint.texi (stdint.h): Mention problems with
51821         64-bit-#if, and how to work around them.
51822
51823         Don't insist on 'long long int' support in the preprocessor.  It
51824         breaks too many things.  For example, PRIdMAX still uses a 'long
51825         long int' format with the latest Sun compiler, even though
51826         HAVE_LONG_LONG_INT isn't defined due to that compiler's
51827         preprocessor problem.  This causes the latest coreutils to dump
51828         core on Solaris 10 sparc with the Sun C compiler.
51829         Instead, fix the 2007-10-16 problem in a different way, by evaluating
51830         the troublesome expressions at configure-time, not at #if-time.
51831         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
51832         preprocessor.
51833         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
51834         compile-time C checks, done at 'configure'-time.
51835         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
51836         * modules/inttypes (Makefile): Substitute the new symbols that
51837         gl_INTTYPES_H now generates.
51838         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
51839
51840 2007-11-12  Bruno Haible  <bruno@clisp.org>
51841
51842         Tests for Unicode character classification functions.
51843
51844         * modules/unictype/bidicategory-byname-tests: New file.
51845         * modules/unictype/bidicategory-name-tests: New file.
51846         * modules/unictype/bidicategory-of-tests: New file.
51847         * modules/unictype/bidicategory-test-tests: New file.
51848         * modules/unictype/block-list-tests: New file.
51849         * modules/unictype/block-of-tests: New file.
51850         * modules/unictype/block-test-tests: New file.
51851         * modules/unictype/category-C-tests: New file.
51852         * modules/unictype/category-Cc-tests: New file.
51853         * modules/unictype/category-Cf-tests: New file.
51854         * modules/unictype/category-Cn-tests: New file.
51855         * modules/unictype/category-Co-tests: New file.
51856         * modules/unictype/category-Cs-tests: New file.
51857         * modules/unictype/category-L-tests: New file.
51858         * modules/unictype/category-Ll-tests: New file.
51859         * modules/unictype/category-Lm-tests: New file.
51860         * modules/unictype/category-Lo-tests: New file.
51861         * modules/unictype/category-Lt-tests: New file.
51862         * modules/unictype/category-Lu-tests: New file.
51863         * modules/unictype/category-M-tests: New file.
51864         * modules/unictype/category-Mc-tests: New file.
51865         * modules/unictype/category-Me-tests: New file.
51866         * modules/unictype/category-Mn-tests: New file.
51867         * modules/unictype/category-N-tests: New file.
51868         * modules/unictype/category-Nd-tests: New file.
51869         * modules/unictype/category-Nl-tests: New file.
51870         * modules/unictype/category-No-tests: New file.
51871         * modules/unictype/category-P-tests: New file.
51872         * modules/unictype/category-Pc-tests: New file.
51873         * modules/unictype/category-Pd-tests: New file.
51874         * modules/unictype/category-Pe-tests: New file.
51875         * modules/unictype/category-Pf-tests: New file.
51876         * modules/unictype/category-Pi-tests: New file.
51877         * modules/unictype/category-Po-tests: New file.
51878         * modules/unictype/category-Ps-tests: New file.
51879         * modules/unictype/category-S-tests: New file.
51880         * modules/unictype/category-Sc-tests: New file.
51881         * modules/unictype/category-Sk-tests: New file.
51882         * modules/unictype/category-Sm-tests: New file.
51883         * modules/unictype/category-So-tests: New file.
51884         * modules/unictype/category-Z-tests: New file.
51885         * modules/unictype/category-Zl-tests: New file.
51886         * modules/unictype/category-Zp-tests: New file.
51887         * modules/unictype/category-Zs-tests: New file.
51888         * modules/unictype/category-and-not-tests: New file.
51889         * modules/unictype/category-and-tests: New file.
51890         * modules/unictype/category-byname-tests: New file.
51891         * modules/unictype/category-name-tests: New file.
51892         * modules/unictype/category-none-tests: New file.
51893         * modules/unictype/category-of-tests: New file.
51894         * modules/unictype/category-or-tests: New file.
51895         * modules/unictype/category-test-withtable-tests: New file.
51896         * modules/unictype/combining-class-tests: New file.
51897         * modules/unictype/ctype-alnum-tests: New file.
51898         * modules/unictype/ctype-alpha-tests: New file.
51899         * modules/unictype/ctype-blank-tests: New file.
51900         * modules/unictype/ctype-cntrl-tests: New file.
51901         * modules/unictype/ctype-digit-tests: New file.
51902         * modules/unictype/ctype-graph-tests: New file.
51903         * modules/unictype/ctype-lower-tests: New file.
51904         * modules/unictype/ctype-print-tests: New file.
51905         * modules/unictype/ctype-punct-tests: New file.
51906         * modules/unictype/ctype-space-tests: New file.
51907         * modules/unictype/ctype-upper-tests: New file.
51908         * modules/unictype/ctype-xdigit-tests: New file.
51909         * modules/unictype/decimal-digit-tests: New file.
51910         * modules/unictype/digit-tests: New file.
51911         * modules/unictype/mirror-tests: New file.
51912         * modules/unictype/numeric-tests: New file.
51913         * modules/unictype/property-alphabetic-tests: New file.
51914         * modules/unictype/property-ascii-hex-digit-tests: New file.
51915         * modules/unictype/property-bidi-arabic-digit-tests: New file.
51916         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
51917         * modules/unictype/property-bidi-block-separator-tests: New file.
51918         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
51919         * modules/unictype/property-bidi-common-separator-tests: New file.
51920         * modules/unictype/property-bidi-control-tests: New file.
51921         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
51922         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
51923         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
51924         * modules/unictype/property-bidi-european-digit-tests: New file.
51925         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
51926         * modules/unictype/property-bidi-left-to-right-tests: New file.
51927         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
51928         * modules/unictype/property-bidi-other-neutral-tests: New file.
51929         * modules/unictype/property-bidi-pdf-tests: New file.
51930         * modules/unictype/property-bidi-segment-separator-tests: New file.
51931         * modules/unictype/property-bidi-whitespace-tests: New file.
51932         * modules/unictype/property-byname-tests: New file.
51933         * modules/unictype/property-combining-tests: New file.
51934         * modules/unictype/property-composite-tests: New file.
51935         * modules/unictype/property-currency-symbol-tests: New file.
51936         * modules/unictype/property-dash-tests: New file.
51937         * modules/unictype/property-decimal-digit-tests: New file.
51938         * modules/unictype/property-default-ignorable-code-point-tests: New file.
51939         * modules/unictype/property-deprecated-tests: New file.
51940         * modules/unictype/property-diacritic-tests: New file.
51941         * modules/unictype/property-extender-tests: New file.
51942         * modules/unictype/property-format-control-tests: New file.
51943         * modules/unictype/property-grapheme-base-tests: New file.
51944         * modules/unictype/property-grapheme-extend-tests: New file.
51945         * modules/unictype/property-grapheme-link-tests: New file.
51946         * modules/unictype/property-hex-digit-tests: New file.
51947         * modules/unictype/property-hyphen-tests: New file.
51948         * modules/unictype/property-id-continue-tests: New file.
51949         * modules/unictype/property-id-start-tests: New file.
51950         * modules/unictype/property-ideographic-tests: New file.
51951         * modules/unictype/property-ids-binary-operator-tests: New file.
51952         * modules/unictype/property-ids-trinary-operator-tests: New file.
51953         * modules/unictype/property-ignorable-control-tests: New file.
51954         * modules/unictype/property-iso-control-tests: New file.
51955         * modules/unictype/property-join-control-tests: New file.
51956         * modules/unictype/property-left-of-pair-tests: New file.
51957         * modules/unictype/property-line-separator-tests: New file.
51958         * modules/unictype/property-logical-order-exception-tests: New file.
51959         * modules/unictype/property-lowercase-tests: New file.
51960         * modules/unictype/property-math-tests: New file.
51961         * modules/unictype/property-non-break-tests: New file.
51962         * modules/unictype/property-not-a-character-tests: New file.
51963         * modules/unictype/property-numeric-tests: New file.
51964         * modules/unictype/property-other-alphabetic-tests: New file.
51965         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
51966         * modules/unictype/property-other-grapheme-extend-tests: New file.
51967         * modules/unictype/property-other-id-continue-tests: New file.
51968         * modules/unictype/property-other-id-start-tests: New file.
51969         * modules/unictype/property-other-lowercase-tests: New file.
51970         * modules/unictype/property-other-math-tests: New file.
51971         * modules/unictype/property-other-uppercase-tests: New file.
51972         * modules/unictype/property-paired-punctuation-tests: New file.
51973         * modules/unictype/property-paragraph-separator-tests: New file.
51974         * modules/unictype/property-pattern-syntax-tests: New file.
51975         * modules/unictype/property-pattern-white-space-tests: New file.
51976         * modules/unictype/property-private-use-tests: New file.
51977         * modules/unictype/property-punctuation-tests: New file.
51978         * modules/unictype/property-quotation-mark-tests: New file.
51979         * modules/unictype/property-radical-tests: New file.
51980         * modules/unictype/property-sentence-terminal-tests: New file.
51981         * modules/unictype/property-soft-dotted-tests: New file.
51982         * modules/unictype/property-space-tests: New file.
51983         * modules/unictype/property-terminal-punctuation-tests: New file.
51984         * modules/unictype/property-test-tests: New file.
51985         * modules/unictype/property-titlecase-tests: New file.
51986         * modules/unictype/property-unassigned-code-value-tests: New file.
51987         * modules/unictype/property-unified-ideograph-tests: New file.
51988         * modules/unictype/property-uppercase-tests: New file.
51989         * modules/unictype/property-variation-selector-tests: New file.
51990         * modules/unictype/property-white-space-tests: New file.
51991         * modules/unictype/property-xid-continue-tests: New file.
51992         * modules/unictype/property-xid-start-tests: New file.
51993         * modules/unictype/property-zero-width-tests: New file.
51994         * modules/unictype/scripts-tests: New file.
51995         * modules/unictype/syntax-c-ident-tests: New file.
51996         * modules/unictype/syntax-c-whitespace-tests: New file.
51997         * modules/unictype/syntax-java-ident-tests: New file.
51998         * modules/unictype/syntax-java-whitespace-tests: New file.
51999         * tests/unictype/test-bidi_byname.c: New file.
52000         * tests/unictype/test-bidi_name.c: New file.
52001         * tests/unictype/test-bidi_of.c: New file.
52002         * tests/unictype/test-bidi_test.c: New file.
52003         * tests/unictype/test-block_list.c: New file.
52004         * tests/unictype/test-block_of.c: New file.
52005         * tests/unictype/test-block_test.c: New file.
52006         * tests/unictype/test-categ_and.c: New file.
52007         * tests/unictype/test-categ_and_not.c: New file.
52008         * tests/unictype/test-categ_byname.c: New file.
52009         * tests/unictype/test-categ_name.c: New file.
52010         * tests/unictype/test-categ_none.c: New file.
52011         * tests/unictype/test-categ_of.c: New file.
52012         * tests/unictype/test-categ_or.c: New file.
52013         * tests/unictype/test-categ_test_withtable.c: New file.
52014         * tests/unictype/test-combining.c: New file.
52015         * tests/unictype/test-decdigit.c: New file.
52016         * tests/unictype/test-digit.c: New file.
52017         * tests/unictype/test-mirror.c: New file.
52018         * tests/unictype/test-numeric.c: New file.
52019         * tests/unictype/test-pr_byname.c: New file.
52020         * tests/unictype/test-pr_test.c: New file.
52021         * tests/unictype/test-predicate-part1.h: New file.
52022         * tests/unictype/test-predicate-part2.h: New file.
52023         * tests/unictype/test-scripts.c: New file.
52024         * tests/unictype/test-sy_c_ident.c: New file.
52025         * tests/unictype/test-sy_java_ident.c: New file.
52026
52027         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
52028         for Unicode 5.0.0.
52029         * tests/unictype/test-categ_Cc.c: Likewise.
52030         * tests/unictype/test-categ_Cf.c: Likewise.
52031         * tests/unictype/test-categ_Cn.c: Likewise.
52032         * tests/unictype/test-categ_Co.c: Likewise.
52033         * tests/unictype/test-categ_Cs.c: Likewise.
52034         * tests/unictype/test-categ_L.c: Likewise.
52035         * tests/unictype/test-categ_Ll.c: Likewise.
52036         * tests/unictype/test-categ_Lm.c: Likewise.
52037         * tests/unictype/test-categ_Lo.c: Likewise.
52038         * tests/unictype/test-categ_Lt.c: Likewise.
52039         * tests/unictype/test-categ_Lu.c: Likewise.
52040         * tests/unictype/test-categ_M.c: Likewise.
52041         * tests/unictype/test-categ_Mc.c: Likewise.
52042         * tests/unictype/test-categ_Me.c: Likewise.
52043         * tests/unictype/test-categ_Mn.c: Likewise.
52044         * tests/unictype/test-categ_N.c: Likewise.
52045         * tests/unictype/test-categ_Nd.c: Likewise.
52046         * tests/unictype/test-categ_Nl.c: Likewise.
52047         * tests/unictype/test-categ_No.c: Likewise.
52048         * tests/unictype/test-categ_P.c: Likewise.
52049         * tests/unictype/test-categ_Pc.c: Likewise.
52050         * tests/unictype/test-categ_Pd.c: Likewise.
52051         * tests/unictype/test-categ_Pe.c: Likewise.
52052         * tests/unictype/test-categ_Pf.c: Likewise.
52053         * tests/unictype/test-categ_Pi.c: Likewise.
52054         * tests/unictype/test-categ_Po.c: Likewise.
52055         * tests/unictype/test-categ_Ps.c: Likewise.
52056         * tests/unictype/test-categ_S.c: Likewise.
52057         * tests/unictype/test-categ_Sc.c: Likewise.
52058         * tests/unictype/test-categ_Sk.c: Likewise.
52059         * tests/unictype/test-categ_Sm.c: Likewise.
52060         * tests/unictype/test-categ_So.c: Likewise.
52061         * tests/unictype/test-categ_Z.c: Likewise.
52062         * tests/unictype/test-categ_Zl.c: Likewise.
52063         * tests/unictype/test-categ_Zp.c: Likewise.
52064         * tests/unictype/test-categ_Zs.c: Likewise.
52065         * tests/unictype/test-ctype_alnum.c: Likewise.
52066         * tests/unictype/test-ctype_alpha.c: Likewise.
52067         * tests/unictype/test-ctype_blank.c: Likewise.
52068         * tests/unictype/test-ctype_cntrl.c: Likewise.
52069         * tests/unictype/test-ctype_digit.c: Likewise.
52070         * tests/unictype/test-ctype_graph.c: Likewise.
52071         * tests/unictype/test-ctype_lower.c: Likewise.
52072         * tests/unictype/test-ctype_print.c: Likewise.
52073         * tests/unictype/test-ctype_punct.c: Likewise.
52074         * tests/unictype/test-ctype_space.c: Likewise.
52075         * tests/unictype/test-ctype_upper.c: Likewise.
52076         * tests/unictype/test-ctype_xdigit.c: Likewise.
52077         * tests/unictype/test-decdigit.h: Likewise.
52078         * tests/unictype/test-digit.h: Likewise.
52079         * tests/unictype/test-numeric.h: Likewise.
52080         * tests/unictype/test-pr_alphabetic.c: Likewise.
52081         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
52082         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
52083         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
52084         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
52085         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
52086         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
52087         * tests/unictype/test-pr_bidi_control.c: Likewise.
52088         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
52089         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
52090         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
52091         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
52092         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
52093         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
52094         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
52095         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
52096         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
52097         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
52098         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
52099         * tests/unictype/test-pr_combining.c: Likewise.
52100         * tests/unictype/test-pr_composite.c: Likewise.
52101         * tests/unictype/test-pr_currency_symbol.c: Likewise.
52102         * tests/unictype/test-pr_dash.c: Likewise.
52103         * tests/unictype/test-pr_decimal_digit.c: Likewise.
52104         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
52105         * tests/unictype/test-pr_deprecated.c: Likewise.
52106         * tests/unictype/test-pr_diacritic.c: Likewise.
52107         * tests/unictype/test-pr_extender.c: Likewise.
52108         * tests/unictype/test-pr_format_control.c: Likewise.
52109         * tests/unictype/test-pr_grapheme_base.c: Likewise.
52110         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
52111         * tests/unictype/test-pr_grapheme_link.c: Likewise.
52112         * tests/unictype/test-pr_hex_digit.c: Likewise.
52113         * tests/unictype/test-pr_hyphen.c: Likewise.
52114         * tests/unictype/test-pr_id_continue.c: Likewise.
52115         * tests/unictype/test-pr_id_start.c: Likewise.
52116         * tests/unictype/test-pr_ideographic.c: Likewise.
52117         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
52118         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
52119         * tests/unictype/test-pr_ignorable_control.c: Likewise.
52120         * tests/unictype/test-pr_iso_control.c: Likewise.
52121         * tests/unictype/test-pr_join_control.c: Likewise.
52122         * tests/unictype/test-pr_left_of_pair.c: Likewise.
52123         * tests/unictype/test-pr_line_separator.c: Likewise.
52124         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
52125         * tests/unictype/test-pr_lowercase.c: Likewise.
52126         * tests/unictype/test-pr_math.c: Likewise.
52127         * tests/unictype/test-pr_non_break.c: Likewise.
52128         * tests/unictype/test-pr_not_a_character.c: Likewise.
52129         * tests/unictype/test-pr_numeric.c: Likewise.
52130         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
52131         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
52132         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
52133         * tests/unictype/test-pr_other_id_continue.c: Likewise.
52134         * tests/unictype/test-pr_other_id_start.c: Likewise.
52135         * tests/unictype/test-pr_other_lowercase.c: Likewise.
52136         * tests/unictype/test-pr_other_math.c: Likewise.
52137         * tests/unictype/test-pr_other_uppercase.c: Likewise.
52138         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
52139         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
52140         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
52141         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
52142         * tests/unictype/test-pr_private_use.c: Likewise.
52143         * tests/unictype/test-pr_punctuation.c: Likewise.
52144         * tests/unictype/test-pr_quotation_mark.c: Likewise.
52145         * tests/unictype/test-pr_radical.c: Likewise.
52146         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
52147         * tests/unictype/test-pr_soft_dotted.c: Likewise.
52148         * tests/unictype/test-pr_space.c: Likewise.
52149         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
52150         * tests/unictype/test-pr_titlecase.c: Likewise.
52151         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
52152         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
52153         * tests/unictype/test-pr_uppercase.c: Likewise.
52154         * tests/unictype/test-pr_variation_selector.c: Likewise.
52155         * tests/unictype/test-pr_white_space.c: Likewise.
52156         * tests/unictype/test-pr_xid_continue.c: Likewise.
52157         * tests/unictype/test-pr_xid_start.c: Likewise.
52158         * tests/unictype/test-pr_zero_width.c: Likewise.
52159         * tests/unictype/test-sy_c_whitespace.c: Likewise.
52160         * tests/unictype/test-sy_java_whitespace.c: Likewise.
52161
52162 2007-11-12  Bruno Haible  <bruno@clisp.org>
52163
52164         Unicode character classification functions.
52165         * lib/unictype.h: New file.
52166         * modules/unictype/base: New file.
52167         * modules/unictype/category-L: New file.
52168         * modules/unictype/category-Lu: New file.
52169         * modules/unictype/category-Ll: New file.
52170         * modules/unictype/category-Lt: New file.
52171         * modules/unictype/category-Lm: New file.
52172         * modules/unictype/category-Lo: New file.
52173         * modules/unictype/category-M: New file.
52174         * modules/unictype/category-Mn: New file.
52175         * modules/unictype/category-Mc: New file.
52176         * modules/unictype/category-Me: New file.
52177         * modules/unictype/category-N: New file.
52178         * modules/unictype/category-Nd: New file.
52179         * modules/unictype/category-Nl: New file.
52180         * modules/unictype/category-No: New file.
52181         * modules/unictype/category-P: New file.
52182         * modules/unictype/category-Pc: New file.
52183         * modules/unictype/category-Pd: New file.
52184         * modules/unictype/category-Ps: New file.
52185         * modules/unictype/category-Pe: New file.
52186         * modules/unictype/category-Pi: New file.
52187         * modules/unictype/category-Pf: New file.
52188         * modules/unictype/category-Po: New file.
52189         * modules/unictype/category-S: New file.
52190         * modules/unictype/category-Sm: New file.
52191         * modules/unictype/category-Sc: New file.
52192         * modules/unictype/category-Sk: New file.
52193         * modules/unictype/category-So: New file.
52194         * modules/unictype/category-Z: New file.
52195         * modules/unictype/category-Zs: New file.
52196         * modules/unictype/category-Zl: New file.
52197         * modules/unictype/category-Zp: New file.
52198         * modules/unictype/category-C: New file.
52199         * modules/unictype/category-Cc: New file.
52200         * modules/unictype/category-Cf: New file.
52201         * modules/unictype/category-Cs: New file.
52202         * modules/unictype/category-Co: New file.
52203         * modules/unictype/category-Cn: New file.
52204         * modules/unictype/category-or: New file.
52205         * modules/unictype/category-of: New file.
52206         * modules/unictype/category-test: New file.
52207         * modules/unictype/category-test-withtable: New file.
52208         * modules/unictype/category-byname: New file.
52209         * modules/unictype/category-none: New file.
52210         * modules/unictype/category-and: New file.
52211         * modules/unictype/category-and-not: New file.
52212         * modules/unictype/category-name: New file.
52213         * modules/unictype/combining-class: New file.
52214         * modules/unictype/category-all: New file.
52215         * modules/unictype/bidicategory-all: New file.
52216         * modules/unictype/bidicategory-byname: New file.
52217         * modules/unictype/bidicategory-name: New file.
52218         * modules/unictype/bidicategory-of: New file.
52219         * modules/unictype/bidicategory-test: New file.
52220         * modules/unictype/decimal-digit: New file.
52221         * modules/unictype/digit: New file.
52222         * modules/unictype/numeric: New file.
52223         * modules/unictype/mirror: New file.
52224         * modules/unictype/property-white-space: New file.
52225         * modules/unictype/property-alphabetic: New file.
52226         * modules/unictype/property-other-alphabetic: New file.
52227         * modules/unictype/property-not-a-character: New file.
52228         * modules/unictype/property-default-ignorable-code-point: New file.
52229         * modules/unictype/property-other-default-ignorable-code-point: New
52230         file.
52231         * modules/unictype/property-deprecated: New file.
52232         * modules/unictype/property-logical-order-exception: New file.
52233         * modules/unictype/property-variation-selector: New file.
52234         * modules/unictype/property-private-use: New file.
52235         * modules/unictype/property-unassigned-code-value: New file.
52236         * modules/unictype/property-uppercase: New file.
52237         * modules/unictype/property-other-uppercase: New file.
52238         * modules/unictype/property-lowercase: New file.
52239         * modules/unictype/property-other-lowercase: New file.
52240         * modules/unictype/property-titlecase: New file.
52241         * modules/unictype/property-soft-dotted: New file.
52242         * modules/unictype/property-id-start: New file.
52243         * modules/unictype/property-other-id-start: New file.
52244         * modules/unictype/property-id-continue: New file.
52245         * modules/unictype/property-other-id-continue: New file.
52246         * modules/unictype/property-xid-start: New file.
52247         * modules/unictype/property-xid-continue: New file.
52248         * modules/unictype/property-pattern-white-space: New file.
52249         * modules/unictype/property-pattern-syntax: New file.
52250         * modules/unictype/property-join-control: New file.
52251         * modules/unictype/property-grapheme-base: New file.
52252         * modules/unictype/property-grapheme-extend: New file.
52253         * modules/unictype/property-other-grapheme-extend: New file.
52254         * modules/unictype/property-grapheme-link: New file.
52255         * modules/unictype/property-bidi-control: New file.
52256         * modules/unictype/property-bidi-left-to-right: New file.
52257         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
52258         * modules/unictype/property-bidi-arabic-right-to-left: New file.
52259         * modules/unictype/property-bidi-european-digit: New file.
52260         * modules/unictype/property-bidi-eur-num-separator: New file.
52261         * modules/unictype/property-bidi-eur-num-terminator: New file.
52262         * modules/unictype/property-bidi-arabic-digit: New file.
52263         * modules/unictype/property-bidi-common-separator: New file.
52264         * modules/unictype/property-bidi-block-separator: New file.
52265         * modules/unictype/property-bidi-segment-separator: New file.
52266         * modules/unictype/property-bidi-whitespace: New file.
52267         * modules/unictype/property-bidi-non-spacing-mark: New file.
52268         * modules/unictype/property-bidi-boundary-neutral: New file.
52269         * modules/unictype/property-bidi-pdf: New file.
52270         * modules/unictype/property-bidi-embedding-or-override: New file.
52271         * modules/unictype/property-bidi-other-neutral: New file.
52272         * modules/unictype/property-hex-digit: New file.
52273         * modules/unictype/property-ascii-hex-digit: New file.
52274         * modules/unictype/property-ideographic: New file.
52275         * modules/unictype/property-unified-ideograph: New file.
52276         * modules/unictype/property-radical: New file.
52277         * modules/unictype/property-ids-binary-operator: New file.
52278         * modules/unictype/property-ids-trinary-operator: New file.
52279         * modules/unictype/property-zero-width: New file.
52280         * modules/unictype/property-space: New file.
52281         * modules/unictype/property-non-break: New file.
52282         * modules/unictype/property-iso-control: New file.
52283         * modules/unictype/property-format-control: New file.
52284         * modules/unictype/property-dash: New file.
52285         * modules/unictype/property-hyphen: New file.
52286         * modules/unictype/property-punctuation: New file.
52287         * modules/unictype/property-line-separator: New file.
52288         * modules/unictype/property-paragraph-separator: New file.
52289         * modules/unictype/property-quotation-mark: New file.
52290         * modules/unictype/property-sentence-terminal: New file.
52291         * modules/unictype/property-terminal-punctuation: New file.
52292         * modules/unictype/property-currency-symbol: New file.
52293         * modules/unictype/property-math: New file.
52294         * modules/unictype/property-other-math: New file.
52295         * modules/unictype/property-paired-punctuation: New file.
52296         * modules/unictype/property-left-of-pair: New file.
52297         * modules/unictype/property-combining: New file.
52298         * modules/unictype/property-composite: New file.
52299         * modules/unictype/property-decimal-digit: New file.
52300         * modules/unictype/property-numeric: New file.
52301         * modules/unictype/property-diacritic: New file.
52302         * modules/unictype/property-extender: New file.
52303         * modules/unictype/property-ignorable-control: New file.
52304         * modules/unictype/property-test: New file.
52305         * modules/unictype/property-byname: New file.
52306         * modules/unictype/property-all: New file.
52307         * modules/unictype/scripts: New file.
52308         * modules/unictype/scripts-all: New file.
52309         * modules/unictype/block-of: New file.
52310         * modules/unictype/block-test: New file.
52311         * modules/unictype/block-list: New file.
52312         * modules/unictype/block-all: New file.
52313         * modules/unictype/syntax-c-whitespace: New file.
52314         * modules/unictype/syntax-java-whitespace: New file.
52315         * modules/unictype/syntax-c-ident: New file.
52316         * modules/unictype/syntax-java-ident: New file.
52317         * modules/unictype/ctype-alnum: New file.
52318         * modules/unictype/ctype-alpha: New file.
52319         * modules/unictype/ctype-cntrl: New file.
52320         * modules/unictype/ctype-digit: New file.
52321         * modules/unictype/ctype-graph: New file.
52322         * modules/unictype/ctype-lower: New file.
52323         * modules/unictype/ctype-print: New file.
52324         * modules/unictype/ctype-punct: New file.
52325         * modules/unictype/ctype-space: New file.
52326         * modules/unictype/ctype-upper: New file.
52327         * modules/unictype/ctype-xdigit: New file.
52328         * modules/unictype/ctype-blank: New file.
52329         * lib/unictype/bidi_byname.c: New file.
52330         * lib/unictype/bidi_name.c: New file.
52331         * lib/unictype/bidi_of.c: New file.
52332         * lib/unictype/bidi_test.c: New file.
52333         * lib/unictype/bitmap.h: New file.
52334         * lib/unictype/block_test.c: New file.
52335         * lib/unictype/blocks.c: New file.
52336         * lib/unictype/categ_C.c: New file.
52337         * lib/unictype/categ_Cc.c: New file.
52338         * lib/unictype/categ_Cf.c: New file.
52339         * lib/unictype/categ_Cn.c: New file.
52340         * lib/unictype/categ_Co.c: New file.
52341         * lib/unictype/categ_Cs.c: New file.
52342         * lib/unictype/categ_L.c: New file.
52343         * lib/unictype/categ_Ll.c: New file.
52344         * lib/unictype/categ_Lm.c: New file.
52345         * lib/unictype/categ_Lo.c: New file.
52346         * lib/unictype/categ_Lt.c: New file.
52347         * lib/unictype/categ_Lu.c: New file.
52348         * lib/unictype/categ_M.c: New file.
52349         * lib/unictype/categ_Mc.c: New file.
52350         * lib/unictype/categ_Me.c: New file.
52351         * lib/unictype/categ_Mn.c: New file.
52352         * lib/unictype/categ_N.c: New file.
52353         * lib/unictype/categ_Nd.c: New file.
52354         * lib/unictype/categ_Nl.c: New file.
52355         * lib/unictype/categ_No.c: New file.
52356         * lib/unictype/categ_P.c: New file.
52357         * lib/unictype/categ_Pc.c: New file.
52358         * lib/unictype/categ_Pd.c: New file.
52359         * lib/unictype/categ_Pe.c: New file.
52360         * lib/unictype/categ_Pf.c: New file.
52361         * lib/unictype/categ_Pi.c: New file.
52362         * lib/unictype/categ_Po.c: New file.
52363         * lib/unictype/categ_Ps.c: New file.
52364         * lib/unictype/categ_S.c: New file.
52365         * lib/unictype/categ_Sc.c: New file.
52366         * lib/unictype/categ_Sk.c: New file.
52367         * lib/unictype/categ_Sm.c: New file.
52368         * lib/unictype/categ_So.c: New file.
52369         * lib/unictype/categ_Z.c: New file.
52370         * lib/unictype/categ_Zl.c: New file.
52371         * lib/unictype/categ_Zp.c: New file.
52372         * lib/unictype/categ_Zs.c: New file.
52373         * lib/unictype/categ_and.c: New file.
52374         * lib/unictype/categ_and_not.c: New file.
52375         * lib/unictype/categ_byname.c: New file.
52376         * lib/unictype/categ_name.c: New file.
52377         * lib/unictype/categ_none.c: New file.
52378         * lib/unictype/categ_of.c: New file.
52379         * lib/unictype/categ_or.c: New file.
52380         * lib/unictype/categ_test.c: New file.
52381         * lib/unictype/combining.c: New file.
52382         * lib/unictype/ctype_alnum.c: New file.
52383         * lib/unictype/ctype_alpha.c: New file.
52384         * lib/unictype/ctype_blank.c: New file.
52385         * lib/unictype/ctype_cntrl.c: New file.
52386         * lib/unictype/ctype_digit.c: New file.
52387         * lib/unictype/ctype_graph.c: New file.
52388         * lib/unictype/ctype_lower.c: New file.
52389         * lib/unictype/ctype_print.c: New file.
52390         * lib/unictype/ctype_punct.c: New file.
52391         * lib/unictype/ctype_space.c: New file.
52392         * lib/unictype/ctype_upper.c: New file.
52393         * lib/unictype/ctype_xdigit.c: New file.
52394         * lib/unictype/decdigit.c: New file.
52395         * lib/unictype/digit.c: New file.
52396         * lib/unictype/identsyntaxmap.h: New file.
52397         * lib/unictype/mirror.c: New file.
52398         * lib/unictype/numeric.c: New file.
52399         * lib/unictype/pr_alphabetic.c: New file.
52400         * lib/unictype/pr_ascii_hex_digit.c: New file.
52401         * lib/unictype/pr_bidi_arabic_digit.c: New file.
52402         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
52403         * lib/unictype/pr_bidi_block_separator.c: New file.
52404         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
52405         * lib/unictype/pr_bidi_common_separator.c: New file.
52406         * lib/unictype/pr_bidi_control.c: New file.
52407         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
52408         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
52409         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
52410         * lib/unictype/pr_bidi_european_digit.c: New file.
52411         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
52412         * lib/unictype/pr_bidi_left_to_right.c: New file.
52413         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
52414         * lib/unictype/pr_bidi_other_neutral.c: New file.
52415         * lib/unictype/pr_bidi_pdf.c: New file.
52416         * lib/unictype/pr_bidi_segment_separator.c: New file.
52417         * lib/unictype/pr_bidi_whitespace.c: New file.
52418         * lib/unictype/pr_byname.c: New file.
52419         * lib/unictype/pr_byname.gperf: New file.
52420         * lib/unictype/pr_combining.c: New file.
52421         * lib/unictype/pr_composite.c: New file.
52422         * lib/unictype/pr_currency_symbol.c: New file.
52423         * lib/unictype/pr_dash.c: New file.
52424         * lib/unictype/pr_decimal_digit.c: New file.
52425         * lib/unictype/pr_default_ignorable_code_point.c: New file.
52426         * lib/unictype/pr_deprecated.c: New file.
52427         * lib/unictype/pr_diacritic.c: New file.
52428         * lib/unictype/pr_extender.c: New file.
52429         * lib/unictype/pr_format_control.c: New file.
52430         * lib/unictype/pr_grapheme_base.c: New file.
52431         * lib/unictype/pr_grapheme_extend.c: New file.
52432         * lib/unictype/pr_grapheme_link.c: New file.
52433         * lib/unictype/pr_hex_digit.c: New file.
52434         * lib/unictype/pr_hyphen.c: New file.
52435         * lib/unictype/pr_id_continue.c: New file.
52436         * lib/unictype/pr_id_start.c: New file.
52437         * lib/unictype/pr_ideographic.c: New file.
52438         * lib/unictype/pr_ids_binary_operator.c: New file.
52439         * lib/unictype/pr_ids_trinary_operator.c: New file.
52440         * lib/unictype/pr_ignorable_control.c: New file.
52441         * lib/unictype/pr_iso_control.c: New file.
52442         * lib/unictype/pr_join_control.c: New file.
52443         * lib/unictype/pr_left_of_pair.c: New file.
52444         * lib/unictype/pr_line_separator.c: New file.
52445         * lib/unictype/pr_logical_order_exception.c: New file.
52446         * lib/unictype/pr_lowercase.c: New file.
52447         * lib/unictype/pr_math.c: New file.
52448         * lib/unictype/pr_non_break.c: New file.
52449         * lib/unictype/pr_not_a_character.c: New file.
52450         * lib/unictype/pr_numeric.c: New file.
52451         * lib/unictype/pr_other_alphabetic.c: New file.
52452         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
52453         * lib/unictype/pr_other_grapheme_extend.c: New file.
52454         * lib/unictype/pr_other_id_continue.c: New file.
52455         * lib/unictype/pr_other_id_start.c: New file.
52456         * lib/unictype/pr_other_lowercase.c: New file.
52457         * lib/unictype/pr_other_math.c: New file.
52458         * lib/unictype/pr_other_uppercase.c: New file.
52459         * lib/unictype/pr_paired_punctuation.c: New file.
52460         * lib/unictype/pr_paragraph_separator.c: New file.
52461         * lib/unictype/pr_pattern_syntax.c: New file.
52462         * lib/unictype/pr_pattern_white_space.c: New file.
52463         * lib/unictype/pr_private_use.c: New file.
52464         * lib/unictype/pr_punctuation.c: New file.
52465         * lib/unictype/pr_quotation_mark.c: New file.
52466         * lib/unictype/pr_radical.c: New file.
52467         * lib/unictype/pr_sentence_terminal.c: New file.
52468         * lib/unictype/pr_soft_dotted.c: New file.
52469         * lib/unictype/pr_space.c: New file.
52470         * lib/unictype/pr_terminal_punctuation.c: New file.
52471         * lib/unictype/pr_test.c: New file.
52472         * lib/unictype/pr_titlecase.c: New file.
52473         * lib/unictype/pr_unassigned_code_value.c: New file.
52474         * lib/unictype/pr_unified_ideograph.c: New file.
52475         * lib/unictype/pr_uppercase.c: New file.
52476         * lib/unictype/pr_variation_selector.c: New file.
52477         * lib/unictype/pr_white_space.c: New file.
52478         * lib/unictype/pr_xid_continue.c: New file.
52479         * lib/unictype/pr_xid_start.c: New file.
52480         * lib/unictype/pr_zero_width.c: New file.
52481         * lib/unictype/scripts.c: New file.
52482         * lib/unictype/sy_c_ident.c: New file.
52483         * lib/unictype/sy_c_whitespace.c: New file.
52484         * lib/unictype/sy_java_ident.c: New file.
52485         * lib/unictype/sy_java_whitespace.c: New file.
52486
52487         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
52488         Unicode 5.0.0.
52489         * lib/unictype/blocks.h: Likewise.
52490         * lib/unictype/categ_C.h: Likewise.
52491         * lib/unictype/categ_Cc.h: Likewise.
52492         * lib/unictype/categ_Cf.h: Likewise.
52493         * lib/unictype/categ_Cn.h: Likewise.
52494         * lib/unictype/categ_Co.h: Likewise.
52495         * lib/unictype/categ_Cs.h: Likewise.
52496         * lib/unictype/categ_L.h: Likewise.
52497         * lib/unictype/categ_Ll.h: Likewise.
52498         * lib/unictype/categ_Lm.h: Likewise.
52499         * lib/unictype/categ_Lo.h: Likewise.
52500         * lib/unictype/categ_Lt.h: Likewise.
52501         * lib/unictype/categ_Lu.h: Likewise.
52502         * lib/unictype/categ_M.h: Likewise.
52503         * lib/unictype/categ_Mc.h: Likewise.
52504         * lib/unictype/categ_Me.h: Likewise.
52505         * lib/unictype/categ_Mn.h: Likewise.
52506         * lib/unictype/categ_N.h: Likewise.
52507         * lib/unictype/categ_Nd.h: Likewise.
52508         * lib/unictype/categ_Nl.h: Likewise.
52509         * lib/unictype/categ_No.h: Likewise.
52510         * lib/unictype/categ_P.h: Likewise.
52511         * lib/unictype/categ_Pc.h: Likewise.
52512         * lib/unictype/categ_Pd.h: Likewise.
52513         * lib/unictype/categ_Pe.h: Likewise.
52514         * lib/unictype/categ_Pf.h: Likewise.
52515         * lib/unictype/categ_Pi.h: Likewise.
52516         * lib/unictype/categ_Po.h: Likewise.
52517         * lib/unictype/categ_Ps.h: Likewise.
52518         * lib/unictype/categ_S.h: Likewise.
52519         * lib/unictype/categ_Sc.h: Likewise.
52520         * lib/unictype/categ_Sk.h: Likewise.
52521         * lib/unictype/categ_Sm.h: Likewise.
52522         * lib/unictype/categ_So.h: Likewise.
52523         * lib/unictype/categ_Z.h: Likewise.
52524         * lib/unictype/categ_Zl.h: Likewise.
52525         * lib/unictype/categ_Zp.h: Likewise.
52526         * lib/unictype/categ_Zs.h: Likewise.
52527         * lib/unictype/categ_of.h: Likewise.
52528         * lib/unictype/combining.h: Likewise.
52529         * lib/unictype/ctype_alnum.h: Likewise.
52530         * lib/unictype/ctype_alpha.h: Likewise.
52531         * lib/unictype/ctype_blank.h: Likewise.
52532         * lib/unictype/ctype_cntrl.h: Likewise.
52533         * lib/unictype/ctype_digit.h: Likewise.
52534         * lib/unictype/ctype_graph.h: Likewise.
52535         * lib/unictype/ctype_lower.h: Likewise.
52536         * lib/unictype/ctype_print.h: Likewise.
52537         * lib/unictype/ctype_punct.h: Likewise.
52538         * lib/unictype/ctype_space.h: Likewise.
52539         * lib/unictype/ctype_upper.h: Likewise.
52540         * lib/unictype/ctype_xdigit.h: Likewise.
52541         * lib/unictype/decdigit.h: Likewise.
52542         * lib/unictype/digit.h: Likewise.
52543         * lib/unictype/mirror.h: Likewise.
52544         * lib/unictype/numeric.h: Likewise.
52545         * lib/unictype/pr_alphabetic.h: Likewise.
52546         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
52547         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
52548         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
52549         * lib/unictype/pr_bidi_block_separator.h: Likewise.
52550         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
52551         * lib/unictype/pr_bidi_common_separator.h: Likewise.
52552         * lib/unictype/pr_bidi_control.h: Likewise.
52553         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
52554         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
52555         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
52556         * lib/unictype/pr_bidi_european_digit.h: Likewise.
52557         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
52558         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
52559         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
52560         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
52561         * lib/unictype/pr_bidi_pdf.h: Likewise.
52562         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
52563         * lib/unictype/pr_bidi_whitespace.h: Likewise.
52564         * lib/unictype/pr_combining.h: Likewise.
52565         * lib/unictype/pr_composite.h: Likewise.
52566         * lib/unictype/pr_currency_symbol.h: Likewise.
52567         * lib/unictype/pr_dash.h: Likewise.
52568         * lib/unictype/pr_decimal_digit.h: Likewise.
52569         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
52570         * lib/unictype/pr_deprecated.h: Likewise.
52571         * lib/unictype/pr_diacritic.h: Likewise.
52572         * lib/unictype/pr_extender.h: Likewise.
52573         * lib/unictype/pr_format_control.h: Likewise.
52574         * lib/unictype/pr_grapheme_base.h: Likewise.
52575         * lib/unictype/pr_grapheme_extend.h: Likewise.
52576         * lib/unictype/pr_grapheme_link.h: Likewise.
52577         * lib/unictype/pr_hex_digit.h: Likewise.
52578         * lib/unictype/pr_hyphen.h: Likewise.
52579         * lib/unictype/pr_id_continue.h: Likewise.
52580         * lib/unictype/pr_id_start.h: Likewise.
52581         * lib/unictype/pr_ideographic.h: Likewise.
52582         * lib/unictype/pr_ids_binary_operator.h: Likewise.
52583         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
52584         * lib/unictype/pr_ignorable_control.h: Likewise.
52585         * lib/unictype/pr_iso_control.h: Likewise.
52586         * lib/unictype/pr_join_control.h: Likewise.
52587         * lib/unictype/pr_left_of_pair.h: Likewise.
52588         * lib/unictype/pr_line_separator.h: Likewise.
52589         * lib/unictype/pr_logical_order_exception.h: Likewise.
52590         * lib/unictype/pr_lowercase.h: Likewise.
52591         * lib/unictype/pr_math.h: Likewise.
52592         * lib/unictype/pr_non_break.h: Likewise.
52593         * lib/unictype/pr_not_a_character.h: Likewise.
52594         * lib/unictype/pr_numeric.h: Likewise.
52595         * lib/unictype/pr_other_alphabetic.h: Likewise.
52596         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
52597         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
52598         * lib/unictype/pr_other_id_continue.h: Likewise.
52599         * lib/unictype/pr_other_id_start.h: Likewise.
52600         * lib/unictype/pr_other_lowercase.h: Likewise.
52601         * lib/unictype/pr_other_math.h: Likewise.
52602         * lib/unictype/pr_other_uppercase.h: Likewise.
52603         * lib/unictype/pr_paired_punctuation.h: Likewise.
52604         * lib/unictype/pr_paragraph_separator.h: Likewise.
52605         * lib/unictype/pr_pattern_syntax.h: Likewise.
52606         * lib/unictype/pr_pattern_white_space.h: Likewise.
52607         * lib/unictype/pr_private_use.h: Likewise.
52608         * lib/unictype/pr_punctuation.h: Likewise.
52609         * lib/unictype/pr_quotation_mark.h: Likewise.
52610         * lib/unictype/pr_radical.h: Likewise.
52611         * lib/unictype/pr_sentence_terminal.h: Likewise.
52612         * lib/unictype/pr_soft_dotted.h: Likewise.
52613         * lib/unictype/pr_space.h: Likewise.
52614         * lib/unictype/pr_terminal_punctuation.h: Likewise.
52615         * lib/unictype/pr_titlecase.h: Likewise.
52616         * lib/unictype/pr_unassigned_code_value.h: Likewise.
52617         * lib/unictype/pr_unified_ideograph.h: Likewise.
52618         * lib/unictype/pr_uppercase.h: Likewise.
52619         * lib/unictype/pr_variation_selector.h: Likewise.
52620         * lib/unictype/pr_white_space.h: Likewise.
52621         * lib/unictype/pr_xid_continue.h: Likewise.
52622         * lib/unictype/pr_xid_start.h: Likewise.
52623         * lib/unictype/pr_zero_width.h: Likewise.
52624         * lib/unictype/scripts.h: Likewise.
52625         * lib/unictype/scripts_byname.gperf: Likewise.
52626         * lib/unictype/sy_c_ident.h: Likewise.
52627         * lib/unictype/sy_c_whitespace.h: Likewise.
52628         * lib/unictype/sy_java_ident.h: Likewise.
52629         * lib/unictype/sy_java_whitespace.h: Likewise.
52630
52631         * lib/unictype/Makefile: New file.
52632         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
52633         glibc.
52634         * lib/unictype/3level.h: New file, copied from glibc.
52635         * lib/unictype/3levelbit.h: New file.
52636
52637 2007-11-11  Bruno Haible  <bruno@clisp.org>
52638
52639         * modules/gperf: New file.
52640         * modules/iconv_open (Depends-on): Add it.
52641         (Makefile.am): Remove the GPERF definition.
52642
52643 2007-11-11  Bruno Haible  <bruno@clisp.org>
52644
52645         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
52646         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
52647
52648 2007-11-11  Bruno Haible  <bruno@clisp.org>
52649
52650         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
52651         (usage): Remove function.
52652
52653 2007-11-11  Bruno Haible  <bruno@clisp.org>
52654
52655         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
52656         gl_FUNC_CEILF_LIBS.
52657         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
52658         gl_FUNC_CEIL_LIBS.
52659         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
52660         gl_FUNC_CEILL_LIBS.
52661         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
52662         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
52663         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
52664
52665 2007-11-11  Bruno Haible  <bruno@clisp.org>
52666
52667         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
52668         roundf were declared but do not exist on functions.
52669         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
52670         roundl were declared but do not exist on functions.
52671         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
52672         HAVE_FLOORL_AND_CEILL, respectively.
52673         Needed for Sun C on Solaris 10.
52674
52675 2007-11-11  Bruno Haible  <bruno@clisp.org>
52676
52677         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
52678         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
52679         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
52680         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
52681         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
52682         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
52683         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
52684         HAVE_DECL_ROUNDF.
52685         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
52686         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
52687         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
52688         of HAVE_DECL_ROUND*.
52689         * modules/math (Makefile.am): Update.
52690
52691 2007-11-10  Bruno Haible  <bruno@clisp.org>
52692
52693         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
52694         ptrdiff_t as m4/intl.m4.
52695
52696 2007-11-10  Jim Meyering  <meyering@redhat.com>
52697
52698         Avoid link failure for the argmatch test.
52699         * tests/test-argmatch.c (usage): Define function to avoid a link
52700         failure: argmatch_die requires a usage function.
52701
52702 2007-11-09  Bruno Haible  <bruno@clisp.org>
52703
52704         * doc/functions/snprintf.texi: Mention BeOS deficiency.
52705         * doc/functions/vsnprintf.texi: Likewise.
52706         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
52707         with a size argument < 2.
52708
52709 2007-11-09  Bruno Haible  <bruno@clisp.org>
52710
52711         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
52712         buffer. Fixes an inefficiency introduced on 2007-11-03.
52713
52714 2007-11-09  Bruno Haible  <bruno@clisp.org>
52715
52716         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
52717         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
52718
52719 2007-11-08  Jim Meyering  <meyering@redhat.com>
52720
52721         Change cache variable name prefix "jm_" to "gl_" everywhere.
52722         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
52723         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
52724         * m4/uptime.m4: s/gl_/jm_/
52725
52726 2007-11-07  Bruno Haible  <bruno@clisp.org>
52727
52728         Update to GNU gettext 0.17.
52729         * m4/intl.m4: Update to GNU gettext 0.17.
52730         * m4/po.m4: Likewise.
52731         * modules/gettext (Files): Remove m4/ulonglong.m4.
52732         (configure.ac): Require gettext infrastructure from version 0.17.
52733
52734 2007-11-06  Bruno Haible  <bruno@clisp.org>
52735
52736         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
52737         symbolic values are not defined in a public header.
52738         * lib/freadable.c (freadable) [QNX]: Likewise.
52739         * lib/freadahead.c (freadahead) [QNX]: Likewise.
52740         * lib/freading.c (freading) [QNX]: Likewise.
52741         * lib/fseterr.c (fseterr) [QNX]: Likewise.
52742         * lib/fwritable.c (fwritable) [QNX]: Likewise.
52743         * lib/fwriting.c (fwriting) [QNX]: Likewise.
52744         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
52745         Reported by Alain Magloire.
52746
52747         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
52748
52749 2007-11-05  Bruno Haible  <bruno@clisp.org>
52750
52751         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
52752         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
52753         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
52754         Reported by Eric Blake.
52755
52756 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52757             Bruno Haible  <bruno@clisp.org>
52758
52759         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
52760         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
52761         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
52762         (malloc): Undefine also before including <stdlib.h>.
52763         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
52764         Needed on OSF/1 4.0.
52765
52766 2007-11-05  Jim Meyering  <meyering@redhat.com>
52767
52768         git-version-gen: sync from coreutils.
52769         * build-aux/git-version-gen: Add comments.
52770         Change the first '-' to '.' in the snapshot version string,
52771         e.g., 6.9-377-08144 -> 6.9.377-08144
52772         Remove first parameter.
52773         Don't declare a version "-dirty" merely because a time
52774         stamp has changed.
52775
52776 2007-11-04  Bruno Haible  <bruno@clisp.org>
52777
52778         * lib/lock.h: Protect all macro definitions containing an 'if'
52779         statement through a "do { ... } while (0)".
52780         * lib/tls.h: Likewise.
52781
52782 2007-11-04  Bruno Haible  <bruno@clisp.org>
52783
52784         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
52785
52786 2007-11-04  Bruno Haible  <bruno@clisp.org>
52787
52788         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
52789         * modules/fprintf-posix (Depends-on): Add nocrash.
52790         * modules/snprintf-posix (Depends-on): Likewise.
52791         * modules/sprintf-posix (Depends-on): Likewise.
52792         * modules/vasnprintf-posix (Depends-on): Likewise.
52793         * modules/vasprintf-posix (Depends-on): Likewise.
52794         * modules/vfprintf-posix (Depends-on): Likewise.
52795         * modules/vsnprintf-posix (Depends-on): Likewise.
52796         * modules/vsprintf-posix (Depends-on): Likewise.
52797         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52798         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52799         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52800         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52801         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52802         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52803         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52804
52805 2007-11-04  Bruno Haible  <bruno@clisp.org>
52806
52807         * modules/nocrash: New file.
52808         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
52809         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
52810
52811 2007-11-04  Bruno Haible  <bruno@clisp.org>
52812
52813         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
52814         precision handling.
52815         * tests/test-vasprintf-posix.c (test_function): Likewise.
52816         * tests/test-snprintf-posix.h (test_function): Likewise.
52817         * tests/test-sprintf-posix.h (test_function): Likewise.
52818
52819         Fix *printf behaviour for large precisions on mingw and BeOS.
52820         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
52821         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
52822         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
52823         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52824         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52825         gl_PRINTF_PRECISION and test its result. Invoke
52826         gl_PREREQ_VASNPRINTF_PRECISION.
52827         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52828         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52829         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52830         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52831         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52832         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52833         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52834         * doc/functions/fprintf.texi: Update.
52835         * doc/functions/printf.texi: Update.
52836         * doc/functions/snprintf.texi: Update.
52837         * doc/functions/sprintf.texi: Update.
52838         * doc/functions/vfprintf.texi: Update.
52839         * doc/functions/vprintf.texi: Update.
52840         * doc/functions/vsnprintf.texi: Update.
52841         * doc/functions/vsprintf.texi: Update.
52842
52843 2007-11-04  Bruno Haible  <bruno@clisp.org>
52844
52845         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
52846
52847 2007-11-04  Bruno Haible  <bruno@clisp.org>
52848
52849         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
52850         Reported by Sylvain Beucler <beuc@gnu.org>.
52851
52852 2007-11-03  Bruno Haible  <bruno@clisp.org>
52853
52854         * tests/test-fprintf-posix2.sh: New file.
52855         * tests/test-fprintf-posix2.c: New file.
52856         * modules/fprintf-posix-tests (Files): Add them.
52857         (TESTS): Add test-fprintf-posix2.sh.
52858         (configure.ac): Check for getrlimit and setrlimit.
52859         (check_PROGRAMS): Add test-fprintf-posix2.
52860
52861         * tests/test-printf-posix2.sh: New file.
52862         * tests/test-printf-posix2.c: New file.
52863         * modules/printf-posix-tests (Files): Add them.
52864         (TESTS): Add test-printf-posix2.sh.
52865         (configure.ac): Check for getrlimit and setrlimit.
52866         (check_PROGRAMS): Add test-printf-posix2.
52867
52868         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
52869         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
52870         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
52871         (decode_double): New function, copied from decode_long_double.
52872         (scale10_round_decimal_decoded): New function, extracted from
52873         scale10_round_decimal_long_double.
52874         (scale10_round_decimal_long_double): Use it.
52875         (scale10_round_decimal_double): New function.
52876         (floorlog10): New function.
52877         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
52878         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
52879         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52880         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52881         gl_PRINTF_ENOMEM and test its result. Invoke
52882         gl_PREREQ_VASNPRINTF_ENOMEM.
52883         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52884         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52885         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52886         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52887         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52888         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52889         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52890         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
52891         * modules/snprintf-posix (Depends-on): Likewise.
52892         * modules/sprintf-posix (Depends-on): Likewise.
52893         * modules/vasnprintf-posix (Depends-on): Likewise.
52894         * modules/vasprintf-posix (Depends-on): Likewise.
52895         * modules/vfprintf-posix (Depends-on): Likewise.
52896         * modules/vsnprintf-posix (Depends-on): Likewise.
52897         * modules/vsprintf-posix (Depends-on): Likewise.
52898         * doc/functions/fprintf.texi: Update.
52899         * doc/functions/printf.texi: Update.
52900         * doc/functions/snprintf.texi: Update.
52901         * doc/functions/sprintf.texi: Update.
52902         * doc/functions/vfprintf.texi: Update.
52903         * doc/functions/vprintf.texi: Update.
52904         * doc/functions/vsnprintf.texi: Update.
52905         * doc/functions/vsprintf.texi: Update.
52906
52907 2007-11-03  Bruno Haible  <bruno@clisp.org>
52908
52909         * modules/frexp-nolibm-tests: New file.
52910
52911         * modules/frexp-nolibm: New file.
52912         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
52913
52914 2007-11-03  Bruno Haible  <bruno@clisp.org>
52915
52916         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
52917         value is C99 compliant.
52918         Needed for OSF/1 5.1.
52919
52920 2007-11-03  Bruno Haible  <bruno@clisp.org>
52921
52922         Fix out-of-memory handling of vasnprintf.
52923         * lib/printf-parse.c: Include <errno.h>.
52924         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
52925         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
52926         is already set.
52927
52928 2007-11-02  Eric Blake  <ebb9@byu.net>
52929
52930         Fix tests on cygwin.
52931         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
52932
52933 2007-11-01  Bruno Haible  <bruno@clisp.org>
52934
52935         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
52936         warning.
52937         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
52938         needed for POSIX compatibility.
52939
52940 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
52941
52942         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
52943         for compatibility with GNU.
52944
52945 2007-11-01  Bruno Haible  <bruno@clisp.org>
52946
52947         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
52948         (putenv): Renamed from rpl_putenv. Change argument type from
52949         'const char *' to 'char *'.
52950         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
52951         of defining putenv in config.h, just set REPLACE_PUTENV.
52952         * modules/putenv (Depends-on): Add stdlib.
52953         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52954         (Include): Use <stdlib.h>.
52955         * lib/stdlib.in.h (putenv): New declaration.
52956         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
52957         REPLACE_PUTENV.
52958         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
52959         REPLACE_PUTENV.
52960         Needed for MacOS X 10.5.0.
52961         Reported by Peter O'Gorman <peter@pogma.com>.
52962
52963 2007-11-01  Jim Meyering  <meyering@redhat.com>
52964
52965         Treat an empty date string exactly like "0".
52966         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
52967         if the remaining date string (to be parsed) is empty, use "0".
52968         Reported by Mischa Molhoek and discussed in this thread:
52969         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
52970
52971 2007-10-31  Bruno Haible  <bruno@clisp.org>
52972
52973         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
52974         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
52975         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
52976         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
52977         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
52978         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
52979
52980 2007-10-31  Bruno Haible  <bruno@clisp.org>
52981
52982         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
52983         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
52984         (AC_TYPE_LONG_LONG_INT): Use it.
52985         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
52986         it as well.
52987         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
52988         to m4/longlong.m4.
52989         * modules/stdint (Files): Remove m4/ulonglong.m4.
52990         * modules/strtoull (Files): Use m4/longlong.m4 instead of
52991         m4/ulonglong.m4.
52992         * modules/strtoumax (Files): Likewise.
52993
52994 2007-10-30  Bruno Haible  <bruno@clisp.org>
52995
52996         * modules/xvasprintf-posix: New file.
52997         Suggested by Eric Blake.
52998
52999 2007-10-30  Bruno Haible  <bruno@clisp.org>
53000
53001         * modules/xprintf-posix-tests: New file.
53002         * tests/test-xprintf-posix.sh: New file.
53003         * tests/test-xprintf-posix.c: New file.
53004         * tests/test-xfprintf-posix.c: New file.
53005
53006         * modules/xprintf-posix: New file.
53007
53008 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53009
53010         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
53011         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
53012         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
53013
53014 2007-10-29  Bruno Haible  <bruno@clisp.org>
53015
53016         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
53017         contain the special marker '_cv_'.
53018         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
53019         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
53020         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
53021         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
53022         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
53023         Reported by Ralf Wildenhues.
53024
53025 2007-10-29  Bruno Haible  <bruno@clisp.org>
53026
53027         * gnulib-tool (func_import): When --lgpl is not specified, set
53028         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
53029         GPLv3.
53030         Reported by Simon Josefsson.
53031
53032 2007-10-28  Bruno Haible  <bruno@clisp.org>
53033
53034         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
53035         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
53036         HAVE_DECL_ISFINITE.
53037         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
53038         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
53039         HAVE_DECL_ISFINITE.
53040
53041 2007-10-28  Bruno Haible  <bruno@clisp.org>
53042
53043         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
53044         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
53045
53046 2007-10-28  Bruno Haible  <bruno@clisp.org>
53047
53048         Fix link errors with Sun C 5.0 on Solaris 10.
53049         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
53050         function is declared but not present in the compiler's libm.
53051         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
53052         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
53053         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
53054         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
53055         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
53056         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
53057         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
53058         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
53059         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
53060         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
53061         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
53062         HAVE_DECL_FLOORL.
53063
53064 2007-10-28  Bruno Haible  <bruno@clisp.org>
53065
53066         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
53067         gl_FUNC_FLOORL. Cache the result.
53068         (gl_FUNC_FLOORL): Use it.
53069         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
53070         gl_FUNC_CEILL. Cache the result.
53071         (gl_FUNC_CEILL): Use it.
53072
53073         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
53074         gl_FUNC_FLOOR. Cache the result.
53075         (gl_FUNC_FLOOR): Use it.
53076         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
53077         gl_FUNC_CEIL. Cache the result.
53078         (gl_FUNC_CEIL): Use it.
53079
53080         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
53081         gl_FUNC_FLOORF. Cache the result.
53082         (gl_FUNC_FLOORF): Use it.
53083         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
53084         gl_FUNC_CEILF. Cache the result.
53085         (gl_FUNC_CEILF): Use it.
53086
53087 2007-10-28  Bruno Haible  <bruno@clisp.org>
53088
53089         * gnulib-tool: Allow specifying the LGPL version number through
53090         --lgpl=2 or --lgpl=3.
53091         (func_usage): Document --lgpl with argument.
53092         Handle --lgpl=... arguments.
53093         (func_import): Recognize also gl_LGPL calls with an argument. When
53094         --lgpl=2 is used and the module's license is just LGPL, report an
53095         error. Set sed_transform_lib_file according to the lgpl variable. In
53096         the generated files, use --lgpl or gl_LGPL invocations with argument,
53097         if necessary.
53098         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
53099         an LGPv2+ license.
53100         * doc/gnulib-tool.texi (Modified imports): Update explanation of
53101         gl_LGPL macro.
53102
53103 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53104             Bruno Haible  <bruno@clisp.org>
53105
53106         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
53107         (u16_uctomb_aux): Likewise.
53108         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
53109         !HAVE_INLINE.
53110         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
53111
53112 2007-10-28  Bruno Haible  <bruno@clisp.org>
53113
53114         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
53115         Invoke AM_GETTEXT_OPTION if it exists.
53116         * modules/vasprintf: Likewise.
53117         * modules/verror: Likewise.
53118         * modules/xprintf: Likewise.
53119         * modules/xvasprintf: Likewise.
53120
53121 2007-10-27  Ben Pfaff  <blp@gnu.org>
53122
53123         * lib/math.in.h: Define isfinite macro and prototypes for
53124         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
53125         implementations.
53126         * m4/math_h.m4: New substitutions for isfinite module.
53127         * lib/isfinite.c: New file.
53128         * m4/isfinite.m4: New file.
53129         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
53130         * modules/isfinite: New file.
53131         * modules/isfinite-tests: New file.
53132         * tests/tests-isfinite.c: New file.
53133         * doc/functions/isfinite.texi: Mention isfinite module.
53134         * MODULES.html.sh: Mention new module.
53135
53136 2007-10-27  Ben Pfaff  <blp@gnu.org>
53137
53138         Ralf Wildenhues reported that Tru64 4.0D declares the round
53139         functions but does not have definitions.
53140         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
53141         cannot be found in any library, set the output variable to
53142         "missing" instead of "".
53143         * m4/round.m4: Also use our substitute if we cannot find round in
53144         any library, even if it is declared.
53145         * m4/roundf.m4: Likewise for roundf.
53146         * m4/roundl.m4: Likewise for roundl.
53147         * lib/math.in.h: Undefine roundf, round, roundl before defining
53148         their replacements, to allow for hypothetical systems where these
53149         may be defined as macros but not available in libraries.
53150
53151 2007-10-27  Bruno Haible  <bruno@clisp.org>
53152
53153         * doc/gnulib.texi: Invoke @firstparagraphindent.
53154         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
53155         changes in gnulib.
53156         (Source changes): New section.
53157
53158 2007-10-26  Bruno Haible  <bruno@clisp.org>
53159
53160         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
53161         borrowed from autoconf.
53162
53163 2007-10-26  Bruno Haible  <bruno@clisp.org>
53164
53165         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
53166         strerror returned the empty string. Needed on HP-UX 11.00.
53167
53168 2007-10-24  Micah Cowan  <micah@cowan.name>
53169
53170         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
53171         * build-aux/bootstrap: Remove support for now-unnecessary option,
53172         --cvs-user, and envvars CVS_USER, CVS_RSH.
53173
53174 2007-10-24  Jim Meyering  <meyering@redhat.com>
53175
53176         Avoid diagnostics from sha1sum when there is no cached checksum.
53177         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
53178         if the po.s1 file hasn't been created yet.
53179
53180         * build-aux/bootstrap: Sync from coreutils:
53181         2007-10-24  Jim Meyering  <meyering@redhat.com>
53182         Get gnulib from the git repository, not from an obsolete cvs one.
53183         * build-aux/bootstrap: Suggestion from Micah Cowan.
53184         2007-10-04  Jim Meyering  <jim@meyering.net>
53185         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
53186         (update_po_files): Work also when there are no .po files in po/.
53187
53188 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
53189
53190         * README: Append ".git" to git and cg examples.
53191         Problem reported by Benoit Sigoure.
53192
53193 2007-10-23  Micah Cowan  <micah@cowan.name>
53194
53195         * users.txt: Add wget.
53196
53197 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53198
53199         Fix linking of some unistdio tests on FreeBSD.
53200         * modules/unistdio/u16-vsnprintf-tests
53201         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
53202         * modules/unistdio/u16-vsprintf-tests
53203         (test_u16_vsnprintf1_LDADD): Likewise.
53204         * modules/unistdio/u32-vsnprintf-tests
53205         (test_u32_vsnprintf1_LDADD): Likewise.
53206         * modules/unistdio/u32-vsprintf-tests
53207         (test_u32_vsprintf1_LDADD): Likewise.
53208         * modules/unistdio/u8-vsnprintf-tests
53209         (test_u8_vsnprintf1_LDADD): Likewise.
53210         * modules/unistdio/u8-vsprintf-tests
53211         (test_u8_vsprintf1_LDADD): Likewise.
53212         * modules/unistdio/ulc-vsnprintf-tests
53213         (test_ulc_vsnprintf1_LDADD): Likewise.
53214         * modules/unistdio/ulc-vsprintf-tests
53215         (test_ulc_vsprintf1_LDADD): Likewise.
53216
53217         Fix linking of some uniconv tests on FreeBSD.
53218         * modules/uniconv/u16-conv-from-enc-tests
53219         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
53220         * modules/uniconv/u16-conv-to-enc-tests
53221         (test_u16_conv_to_enc_LDADD): Likewise.
53222         * modules/uniconv/u16-strconv-from-enc-tests
53223         (test_u16_strconv_from_enc_LDADD): Likewise.
53224         * modules/uniconv/u16-strconv-to-enc-tests
53225         (test_u16_strconv_to_enc_LDADD): Likewise.
53226         * modules/uniconv/u32-conv-from-enc-tests
53227         (test_u32_conv_from_enc_LDADD): Likewise.
53228         * modules/uniconv/u32-conv-to-enc-tests
53229         (test_u32_conv_to_enc_LDADD): Likewise.
53230         * modules/uniconv/u32-strconv-from-enc-tests
53231         (test_u32_strconv_from_enc_LDADD): Likewise.
53232         * modules/uniconv/u32-strconv-to-enc-tests
53233         (test_u32_strconv_to_enc_LDADD): Likewise.
53234         * modules/uniconv/u8-conv-from-enc-tests
53235         (test_u8_conv_from_enc_LDADD): Likewise.
53236         * modules/uniconv/u8-conv-to-enc-tests
53237         (test_u8_conv_to_enc_LDADD): Likewise.
53238         * modules/uniconv/u8-strconv-from-enc-tests
53239         (test_u8_strconv_from_enc_LDADD): Likewise.
53240         * modules/uniconv/u8-strconv-to-enc-tests
53241         (test_u8_strconv_to_enc_LDADD): Likewise.
53242
53243 2007-10-22  Bruno Haible  <bruno@clisp.org>
53244
53245         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
53246         size.
53247
53248 2007-10-22  Eric Blake  <ebb9@byu.net>
53249
53250         Tweak x*printf documentation.
53251         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
53252         variable name and comments.
53253         Suggested by Bruno Haible.
53254
53255 2007-10-22  Bruno Haible  <bruno@clisp.org>
53256
53257         * lib/acl.c (copy_acl): Fix file name in comment.
53258
53259 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53260
53261         Fix Tru64 problem with stdbool.h.
53262         * lib/stdbool.in.h (false, true):
53263         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
53264         Don't declare as an enum in this situation; it runs afoul of Tru64.
53265         Problem reported by Steven M. Schweda in
53266         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
53267
53268 2007-10-22  Eric Blake  <ebb9@byu.net>
53269
53270         Also wrap vf?printf.
53271         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
53272         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
53273         (xvprintf, xvfprintf): New functions.
53274
53275 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53276
53277         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
53278         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
53279
53280         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
53281         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
53282
53283 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53284
53285         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
53286         by Bruno Haible.
53287
53288 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53289
53290         * lib/getloadavg.c
53291         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
53292         Undef `sys' after including sys/table.h, for Tru64 4.0D.
53293
53294         * tests/test-i-ring.c: Work for C89.
53295
53296 2007-10-22  Bruno Haible  <bruno@clisp.org>
53297
53298         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
53299         -1u, in preprocessor expression, so that we don't test for the bug
53300         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
53301         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
53302
53303 2007-10-22  Eric Blake  <ebb9@byu.net>
53304
53305         * tests/test-yesno.sh: Silence stderr during test.
53306
53307 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53308
53309         * modules/crypto/gc-camellia: New file.
53310
53311         * m4/gc-camellia.m4: New file.
53312
53313         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
53314
53315         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
53316
53317 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53318
53319         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
53320         --help to stdout.  Reported by sms@antinode.org (Steven
53321         M. Schweda).
53322
53323 2007-10-22  Simon Josefsson  <simon@josefsson.org>
53324
53325         * users.txt: Fix link to libksba.
53326
53327 2007-10-21  Ben Pfaff  <blp@gnu.org>
53328
53329         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
53330         round.c roundf implementation that depends on floorf and ceilf to
53331         be tested unconditionally.
53332
53333 2007-10-21  Ben Pfaff  <blp@gnu.org>
53334
53335         * m4/check-libm-func.m4: Removed.
53336         * m4/check-math-lib.m4: New file.
53337         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
53338         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
53339         definition and lack of AC_LIBOBJ([roundf]).
53340         * m4/roundl.m4: Ditto, and similarly for roundl.
53341         * modules/round: Reference new m4 file.
53342         * modules/roundf: Ditto.
53343         * modules/roundl: Ditto.
53344         * tests/test-round2.c (main): Use ROUND instead of round.
53345         Bug report from Bruno Haible.
53346
53347 2007-10-21  Bruno Haible  <bruno@clisp.org>
53348
53349         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
53350         context.
53351
53352 2007-10-21  Bruno Haible  <bruno@clisp.org>
53353
53354         * tests/test-wcwidth.c (main): Allow negative result for some control
53355         characters.
53356
53357         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
53358         Needed on OSF/1 5.1.
53359
53360 2007-10-21  Bruno Haible  <bruno@clisp.org>
53361
53362         * tests/test-floorf1.c: Include isnanf.h.
53363         (main): Use isnanf() instead of isnan().
53364         * tests/test-ceilf1.c: Include isnanf.h.
53365         (main): Use isnanf() instead of isnan().
53366         * tests/test-truncf1.c: Include isnanf.h.
53367         (main): Use isnanf() instead of isnan().
53368         * tests/test-roundf1.c: Include isnanf.h.
53369         (main): Use isnanf() instead of isnan().
53370
53371 2007-10-21  Eric Blake  <ebb9@byu.net>
53372
53373         * users.txt: Update URL for m4.
53374
53375 2007-10-21  Bruno Haible  <bruno@clisp.org>
53376
53377         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
53378
53379 2007-10-21  Bruno Haible  <bruno@clisp.org>
53380
53381         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
53382         Git's management files if the CVS files are not present.
53383
53384 2007-10-20  Bruno Haible  <bruno@clisp.org>
53385
53386         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
53387         gcc-3.4.x.
53388
53389 2007-10-20  Ben Pfaff  <blp@gnu.org>
53390
53391         * lib/math.in.h: Declare round, roundf, roundl if we are providing
53392         implementations.
53393         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
53394         * lib/round.c: New file.
53395         * lib/roundf.c: New file.
53396         * lib/roundl.c: New file.
53397         * m4/round.m4: New file.
53398         * m4/roundf.m4: New file.
53399         * m4/roundl.m4: New file.
53400         * m4/check-libm-func-m4: New file.
53401         * modules/math: Replace round, roundf, roundl related @VARS@ in
53402         math.in.h.
53403         * modules/round: New file.
53404         * modules/round-tests: New file.
53405         * modules/roundf: New file.
53406         * modules/roundf-tests: New file.
53407         * modules/roundl: New file.
53408         * modules/roundl-tests: New file.
53409         * tests/test-round1.c: New file.
53410         * tests/test-round2.c: New file.
53411         * tests/test-roundf1.c: New file.
53412         * tests/test-roundf2.c: New file.
53413         * tests/test-roundl.c: New file.
53414         * doc/functions/round.texi: Mention round module.
53415         * doc/functions/roundf.texi: Mention roundf module.
53416         * doc/functions/roundl.texi: Mention roundl module.
53417         * MODULES.html.sh: Mention new modules.
53418         Thanks to Bruno Haible for suggestions.
53419
53420 2007-10-20  Jim Meyering  <meyering@redhat.com>
53421
53422         * lib/xprintf.c: Include <config.h> unconditionally.
53423
53424         Change xprintf's license to GPL.
53425         * modules/xprintf (License): s/LGPL/GPL/, since this module
53426         depends on modules (exit and exitfail) which are GPL.
53427         Suggestion from Bruno Haible.
53428
53429         xprintf fixes.
53430         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
53431         Use a clearer diagnostic.
53432         Patch from Bruno Haible.
53433
53434 2007-10-20  Bruno Haible  <bruno@clisp.org>
53435
53436         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
53437         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
53438         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53439
53440 2007-10-20  Bruno Haible  <bruno@clisp.org>
53441
53442         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
53443         precision in the comparison result > x - 1 or similar.
53444         * tests/test-ceilf2.c (correct_result_p): Likewise.
53445         * tests/test-truncf2.c (correct_result_p): Likewise.
53446         * tests/test-trunc2.c (correct_result_p): Likewise.
53447         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53448
53449 2007-10-20  Bruno Haible  <bruno@clisp.org>
53450
53451         * modules/ceil: New file.
53452         * m4/ceil.m4: New file.
53453         * doc/functions/ceil.texi: Mention the 'ceil' module.
53454
53455 2007-10-20  Bruno Haible  <bruno@clisp.org>
53456
53457         * modules/floor: New file.
53458         * m4/floor.m4: New file.
53459         * doc/functions/floor.texi: Mention the 'floor' module.
53460
53461 2007-10-20  Bruno Haible  <bruno@clisp.org>
53462
53463         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
53464         of %a.
53465         * modules/floorf-tests (Depends-on): Likewise.
53466         * modules/truncf-tests (Depends-on): Likewise.
53467         * modules/trunc-tests (Depends-on): Likewise.
53468         Reported by Ben Pfaff.
53469
53470 2007-10-19  Jim Meyering  <meyering@redhat.com>
53471
53472         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
53473         Don't bother testing specific errno values.  Just test ferror.
53474
53475         New module: xprintf
53476         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
53477
53478 2007-10-19  Bruno Haible  <bruno@clisp.org>
53479
53480         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
53481         syntax.
53482         * modules/javaexec (Makefile.am): Likewise.
53483         * modules/relocatable-prog (Makefile.am): Likewise.
53484         Suggested by Jim Meyering.
53485
53486 2007-10-18  Bruno Haible  <bruno@clisp.org>
53487
53488         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
53489         Reported by Jim Meyering.
53490
53491 2007-10-18  Eric Blake  <ebb9@byu.net>
53492
53493         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
53494
53495 2007-10-18  Bruno Haible  <bruno@clisp.org>
53496
53497         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
53498         the format string into writable memory. Needed in Fortify conditions.
53499
53500 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
53501             Bruno Haible  <bruno@clisp.org>
53502
53503         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
53504         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
53505         * modules/trim (Depends-on): Add mbchar.
53506         (configure.ac): Add gl_FUNC_MBRTOWC.
53507         (Makefile.am): Augment lib_SOURCES.
53508
53509 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
53510
53511         Modify glob.c to use fstatat and dirfd, to simplify it.
53512         Suggested by Eric Blake.
53513         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
53514         Don't include <stdbool.h>; not used.
53515         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
53516         (link_exists_p): Simplify implementation, since we can now assume
53517         dirfd and fstatat.
53518         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
53519
53520 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53521
53522         * gnulib-tool (func_get_dependencies): Fix sed script to
53523         match only tests.
53524
53525 2007-10-17  Bruno Haible  <bruno@clisp.org>
53526
53527         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
53528         allow locale names without encoding suffix.
53529         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
53530         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53531
53532 2007-10-16  Bruno Haible  <bruno@clisp.org>
53533
53534         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
53535         * lib/getgroups.c (getgroups): Likewise.
53536         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
53537
53538 2007-10-16  Bruno Haible  <bruno@clisp.org>
53539
53540         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
53541         * modules/malloc-posix (License): Likewise.
53542         * modules/realloc-posix (License): Likewise.
53543         * modules/calloc-posix (License): Likewise.
53544         * modules/intprops (License): Change from GPL to LGPL, with
53545         Paul Eggert's approval.
53546
53547 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53548
53549         Merge glibc changes into lib/glob.c.
53550
53551         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
53552         2007-10-15 04:59:03 UTC.  Here are the changes:
53553
53554         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
53555
53556         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
53557
53558         * lib/glob.c: Add some branch prediction throughout.
53559
53560         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
53561
53562         [BZ #5103]
53563         * lib/glob.c (glob): Recognize patterns starting \/.
53564
53565         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
53566
53567         [BZ #3996]
53568         * lib/glob.c (attribute_hidden): Define if not defined.
53569         (glob): Unescape dirname, filename or username when needed and not
53570         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
53571         is NULL.  Handle unescaped [ in pattern without closing ].
53572         Don't pass GLOB_CHECK down to recursive glob for directories.
53573         (__glob_pattern_type): New function.
53574         (__glob_pattern_p): Implement using __glob_pattern_type.
53575         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
53576         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
53577         Remove unreachable code.
53578
53579         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
53580
53581         * lib/glob.c (glob_in_dir): Add some comments and asserts to
53582         explain why there are no leaks.
53583
53584         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
53585
53586         [BZ #3253]
53587         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
53588         time, rather allocate increasingly bigger arrays of pointers, if
53589         possible with alloca, if too large with malloc.
53590
53591 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53592
53593         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
53594         Problem reported by H.Merijn Brand in
53595         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
53596         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
53597         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
53598
53599 2007-10-15  Bruno Haible  <bruno@clisp.org>
53600
53601         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
53602         with explicit rpl_ prefix.
53603         * lib/fopen.c (fopen): Likewise.
53604         * lib/freopen.c (freopen): Likewise.
53605         * lib/iconv.c (iconv): Likewise.
53606         * lib/iconv_close.c (iconv_close): Likewise.
53607
53608 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53609
53610         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
53611
53612 2007-10-15  Bruno Haible  <bruno@clisp.org>
53613
53614         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
53615         <stddef.h> instead of <stdlib.h> since we only need NULL.
53616         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53617
53618 2007-10-15  Bruno Haible  <bruno@clisp.org>
53619
53620         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
53621         Replace paragraph talking about LIBOBJS.
53622         Reported by Colin Watson <cjwatson@debian.org>.
53623
53624 2007-10-15  Bruno Haible  <bruno@clisp.org>
53625
53626         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
53627         <stdlib.h> before using NULL.
53628
53629 2007-10-15  Simon Josefsson  <simon@josefsson.org>
53630
53631         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
53632         Reported by Albert Chin <china@thewrittenword.com>.
53633
53634 2007-10-14  Bruno Haible  <bruno@clisp.org>
53635
53636         * modules/iconv_open-utf-tests: New file.
53637         * tests/test-iconv-utf.c: New file.
53638
53639         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
53640         * modules/iconv_open-utf: New file.
53641         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
53642         (iconv, iconv_close): New declarations.
53643         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
53644         be defined.
53645         (iconv_open): Add special handling of conversion between UTF-8 and
53646         UTF-{16,32}{BE,LE}.
53647         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
53648         * lib/iconv_close.c: New file.
53649         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
53650         gl_FUNC_ICONV_OPEN.
53651         (gl_FUNC_ICONV_OPEN): Use it.
53652         (gl_FUNC_ICONV_OPEN_UTF): New macro.
53653         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
53654         and REPLACE_ICONV_UTF.
53655         * modules/iconv_open (Depends-on): Add c-strcase.
53656         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
53657         ICONV_CONST.
53658         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
53659
53660 2007-10-13  Albert Chin  <china@thewrittenword.com>
53661             Bruno Haible  <bruno@clisp.org>
53662
53663         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
53664         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
53665
53666 2007-10-13  Bruno Haible  <bruno@clisp.org>
53667
53668         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
53669         defined, use the ISO C99 inline semantics.
53670         * lib/argp.h (ARGP_EI): Likewise.
53671
53672 2007-10-13  Bruno Haible  <bruno@clisp.org>
53673
53674         Handle 'inline' change in gcc 4.3.0.
53675         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
53676         argp_fmtstream_write, argp_fmtstream_set_lmargin,
53677         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
53678         argp_fmtstream_point): Disable 'extern' declaration if the function
53679         definition is going to be provided inline.
53680         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
53681         semantics, not the ISO C99 inline semantics.
53682         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
53683         'extern' declaration if the function definition is going to be provided
53684         inline.
53685         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
53686         the GNU C inline semantics, not the ISO C99 inline semantics. With
53687         GCC 4.2, avoid a warning.
53688
53689 2007-10-13  Bruno Haible  <bruno@clisp.org>
53690
53691         * lib/freading.h (freading): Enable the use of __freading for
53692         glibc >= 2.7.
53693         * lib/freading.c (freading): Likewise.
53694
53695 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
53696
53697         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
53698         "warning: C99 inline functions are not supported; using GNU89".
53699
53700 2007-10-12  Bruno Haible  <bruno@clisp.org>
53701
53702         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
53703         of 2.
53704         * tests/test-ceilf2.c: New file.
53705         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
53706
53707         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
53708         * modules/ceilf-tests: Update.
53709
53710 2007-10-12  Bruno Haible  <bruno@clisp.org>
53711
53712         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
53713         of 2.
53714         * tests/test-floorf2.c: New file.
53715         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
53716
53717         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
53718         * modules/floorf-tests: Update.
53719
53720 2007-10-12  Bruno Haible  <bruno@clisp.org>
53721
53722         * tests/test-trunc2.c: New file.
53723         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
53724
53725         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
53726         * modules/trunc-tests: Update.
53727
53728 2007-10-12  Bruno Haible  <bruno@clisp.org>
53729
53730         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
53731         of 2.
53732         * tests/test-truncf2.c: New file.
53733         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
53734
53735         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
53736         * modules/truncf-tests: Update.
53737
53738 2007-10-11  Eric Blake  <ebb9@byu.net>
53739
53740         Don't claim strerror is broken on Interix.
53741         * doc/functions/strerror.texi (strerror): Known broken systems are
53742         now Solaris 8, and not Interix.
53743         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
53744         Interix on cross-compile.
53745         Reported by Martin Koeppe in
53746         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
53747
53748 2007-10-11  Bruno Haible  <bruno@clisp.org>
53749
53750         * modules/i-ring-tests: New file.
53751         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
53752         instead of assert.
53753
53754 2007-10-11  Bruno Haible  <bruno@clisp.org>
53755
53756         * modules/filenamecat-tests: New file.
53757         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
53758         * lib/filenamecat.c: Remove test code.
53759
53760 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
53761
53762         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
53763
53764         * lib/strerror.c: Include <string.h> always, to test interface,
53765         and to remove the need for the dummy.
53766         Include intprops.h to compute width instead of doing it ourselves
53767         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
53768         (strerror): Define it to return NULL if there's no system strerror.
53769         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
53770         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
53771         ancient pre-strerror Unix systems well any more.  Saying "unknown
53772         system error" is enough.
53773         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
53774         simpler strerror.c implementation.
53775         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
53776         Simplify the tests to reflect the simpler strerror implementation.
53777         * modules/strerror (Depends-on): Add intprops.
53778
53779 2007-10-09  Eric Blake  <ebb9@byu.net>
53780
53781         Silence test-fpending.
53782         * modules/fpending-tests (Files): Add wrapper script.
53783         * tests/test-fpending.sh: New file.
53784
53785 2007-10-09  Bruno Haible  <bruno@clisp.org>
53786
53787         * MODULES.html.sh (func_module): Don't create a hyperlink for
53788         function names like 'printf_frexp'.
53789         (Misc): Add crc, memxor.
53790         (Characteristics of floating types): New section.
53791         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
53792         isnanf-nolibm, signbit, trunc, truncf, truncl.
53793         (Enhancements for ISO C 99 functions): New subsection Input/output.
53794         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
53795         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
53796         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
53797         (Compatibility checks for POSIX:2001 functions): Add clock-time.
53798         (Enhancements for POSIX:2001 functions): Add chdir-long.
53799         (File system functions): Add areadlink, chdir-safer, read-file.
53800         Remove cycle-check.
53801         (File system as inode set): New section.
53802         (Date and time): Add gethrxtime.
53803         (Multithreading): Add openmp.
53804         (Internationalization functions): Add localename.
53805         (Unicode string functions): Add unistr/u*-mbsnlen.
53806         (Support for maintaining and releasing projects): Add git-version-gen.
53807         (Lone files): Remove directories.
53808
53809 2007-10-08  Ben Pfaff  <blp@gnu.org>
53810
53811         * lib/xmalloca.h: Fix typo in comment.
53812
53813 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
53814
53815         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
53816         when avoiding problems with integer overflow.  Use a portable test
53817         instead.
53818
53819 2007-10-08  Simon Josefsson  <simon@josefsson.org>
53820
53821         * modules/dummy (License): Change to LGPLv2+.
53822         * modules/float (License): Likewise
53823         * modules/realloc (License): Likewise
53824         * modules/stdlib (License): Likewise
53825
53826 2007-10-07  Bruno Haible  <bruno@clisp.org>
53827
53828         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
53829         * floor.c (TWO_MANT_DIG): Likewise.
53830         * ceil.c (TWO_MANT_DIG): Likewise.
53831         Reported by Ben Pfaff.
53832
53833 2007-10-07  Bruno Haible  <bruno@clisp.org>
53834
53835         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
53836         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
53837         * lib/frexp.c (FUNC): Likewise.
53838         * lib/printf-frexp.h (printf_frexp): Likewise.
53839         * lib/printf-frexpl.h (printf_frexpl): Likewise.
53840         * lib/printf-frexp.c (FUNC): Likewise.
53841         Suggested by Jim Meyering.
53842
53843 2007-10-07  Jim Meyering  <meyering@redhat.com>
53844
53845         Make xnanosleep's integer overflow test more robust.
53846         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
53847         so that gcc-4.3.0 doesn't optimize away this test for overflow.
53848
53849 2007-10-07  Bruno Haible  <bruno@clisp.org>
53850
53851         * NEWS: Mention the license change.
53852
53853         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
53854         abbreviations in the modules files.
53855
53856         Change copyright notice from GPLv2+ to GPLv3+.
53857         * README: Change copyright notice.
53858         * MODULES.html.sh: Likewise.
53859         * build-aux/bootstrap.conf: Likewise.
53860         * build-aux/config.libpath: Likewise.
53861         * build-aux/csharpcomp.sh.in: Likewise.
53862         * build-aux/csharpexec.sh.in: Likewise.
53863         * build-aux/install-reloc: Likewise.
53864         * build-aux/javacomp.sh.in: Likewise.
53865         * build-aux/javaexec.sh.in: Likewise.
53866         * build-aux/ldd.sh.in: Likewise.
53867         * build-aux/reloc-ldflags: Likewise.
53868         * build-aux/relocatable.sh.in: Likewise.
53869         * build-aux/x-to-1.in: Likewise.
53870         * check-module: Likewise.
53871         * config/srclistvars.sh: Likewise.
53872         * gnulib-tool: Likewise.
53873         * lib/acl-internal.h: Likewise.
53874         * lib/acl.c: Likewise.
53875         * lib/acl.h: Likewise.
53876         * lib/acl_entries.c: Likewise.
53877         * lib/areadlink-with-size.c: Likewise.
53878         * lib/areadlink.c: Likewise.
53879         * lib/areadlink.h: Likewise.
53880         * lib/argmatch.c: Likewise.
53881         * lib/argmatch.h: Likewise.
53882         * lib/argp-ba.c: Likewise.
53883         * lib/argp-eexst.c: Likewise.
53884         * lib/argp-fmtstream.c: Likewise.
53885         * lib/argp-fmtstream.h: Likewise.
53886         * lib/argp-fs-xinl.c: Likewise.
53887         * lib/argp-help.c: Likewise.
53888         * lib/argp-namefrob.h: Likewise.
53889         * lib/argp-parse.c: Likewise.
53890         * lib/argp-pin.c: Likewise.
53891         * lib/argp-pv.c: Likewise.
53892         * lib/argp-pvh.c: Likewise.
53893         * lib/argp-xinl.c: Likewise.
53894         * lib/argp.h: Likewise.
53895         * lib/at-func.c: Likewise.
53896         * lib/atanl.c: Likewise.
53897         * lib/backupfile.c: Likewise.
53898         * lib/backupfile.h: Likewise.
53899         * lib/basename.c: Likewise.
53900         * lib/binary-io.h: Likewise.
53901         * lib/byteswap.in.h: Likewise.
53902         * lib/c-stack.c: Likewise.
53903         * lib/c-stack.h: Likewise.
53904         * lib/c-strcasestr.c: Likewise.
53905         * lib/c-strcasestr.h: Likewise.
53906         * lib/c-strstr.c: Likewise.
53907         * lib/c-strstr.h: Likewise.
53908         * lib/c-strtod.c: Likewise.
53909         * lib/calloc.c: Likewise.
53910         * lib/canon-host.c: Likewise.
53911         * lib/canon-host.h: Likewise.
53912         * lib/canonicalize-lgpl.c: Likewise.
53913         * lib/canonicalize.c: Likewise.
53914         * lib/canonicalize.h: Likewise.
53915         * lib/ceil.c: Likewise.
53916         * lib/ceilf.c: Likewise.
53917         * lib/ceill.c: Likewise.
53918         * lib/chdir-long.c: Likewise.
53919         * lib/chdir-long.h: Likewise.
53920         * lib/chdir-safer.c: Likewise.
53921         * lib/chdir-safer.h: Likewise.
53922         * lib/chown.c: Likewise.
53923         * lib/classpath.c: Likewise.
53924         * lib/classpath.h: Likewise.
53925         * lib/clean-temp.c: Likewise.
53926         * lib/clean-temp.h: Likewise.
53927         * lib/cloexec.c: Likewise.
53928         * lib/close-stream.c: Likewise.
53929         * lib/closein.c: Likewise.
53930         * lib/closein.h: Likewise.
53931         * lib/closeout.c: Likewise.
53932         * lib/closeout.h: Likewise.
53933         * lib/concat-filename.c: Likewise.
53934         * lib/copy-file.c: Likewise.
53935         * lib/copy-file.h: Likewise.
53936         * lib/count-one-bits.h: Likewise.
53937         * lib/crc.c: Likewise.
53938         * lib/crc.h: Likewise.
53939         * lib/creat-safer.c: Likewise.
53940         * lib/csharpcomp.c: Likewise.
53941         * lib/csharpcomp.h: Likewise.
53942         * lib/csharpexec.c: Likewise.
53943         * lib/csharpexec.h: Likewise.
53944         * lib/cycle-check.c: Likewise.
53945         * lib/cycle-check.h: Likewise.
53946         * lib/diacrit.c: Likewise.
53947         * lib/diacrit.h: Likewise.
53948         * lib/diffseq.h: Likewise.
53949         * lib/dirchownmod.c: Likewise.
53950         * lib/dirent.in.h: Likewise.
53951         * lib/dirfd.c: Likewise.
53952         * lib/dirfd.h: Likewise.
53953         * lib/dirname.c: Likewise.
53954         * lib/dirname.h: Likewise.
53955         * lib/dummy.c: Likewise.
53956         * lib/dup-safer.c: Likewise.
53957         * lib/dup2.c: Likewise.
53958         * lib/eealloc.h: Likewise.
53959         * lib/error.c: Likewise.
53960         * lib/error.h: Likewise.
53961         * lib/euidaccess.c: Likewise.
53962         * lib/exclude.c: Likewise.
53963         * lib/exclude.h: Likewise.
53964         * lib/execute.c: Likewise.
53965         * lib/execute.h: Likewise.
53966         * lib/exitfail.c: Likewise.
53967         * lib/exitfail.h: Likewise.
53968         * lib/expl.c: Likewise.
53969         * lib/fatal-signal.c: Likewise.
53970         * lib/fatal-signal.h: Likewise.
53971         * lib/fbufmode.c: Likewise.
53972         * lib/fbufmode.h: Likewise.
53973         * lib/fchdir.c: Likewise.
53974         * lib/fchmodat.c: Likewise.
53975         * lib/fchownat.c: Likewise.
53976         * lib/fcntl--.h: Likewise.
53977         * lib/fcntl-safer.h: Likewise.
53978         * lib/fcntl.in.h: Likewise.
53979         * lib/fd-safer.c: Likewise.
53980         * lib/fflush.c: Likewise.
53981         * lib/file-has-acl.c: Likewise.
53982         * lib/file-set.c: Likewise.
53983         * lib/file-type.c: Likewise.
53984         * lib/file-type.h: Likewise.
53985         * lib/fileblocks.c: Likewise.
53986         * lib/filemode.c: Likewise.
53987         * lib/filemode.h: Likewise.
53988         * lib/filename.h: Likewise.
53989         * lib/filenamecat.c: Likewise.
53990         * lib/filenamecat.h: Likewise.
53991         * lib/findprog.c: Likewise.
53992         * lib/findprog.h: Likewise.
53993         * lib/float.in.h: Likewise.
53994         * lib/floor.c: Likewise.
53995         * lib/floorf.c: Likewise.
53996         * lib/floorl.c: Likewise.
53997         * lib/fopen-safer.c: Likewise.
53998         * lib/fopen.c: Likewise.
53999         * lib/fpending.c: Likewise.
54000         * lib/fpending.h: Likewise.
54001         * lib/fprintf.c: Likewise.
54002         * lib/fprintftime.h: Likewise.
54003         * lib/fpucw.h: Likewise.
54004         * lib/fpurge.c: Likewise.
54005         * lib/fpurge.h: Likewise.
54006         * lib/freadable.c: Likewise.
54007         * lib/freadable.h: Likewise.
54008         * lib/freadahead.c: Likewise.
54009         * lib/freadahead.h: Likewise.
54010         * lib/freading.c: Likewise.
54011         * lib/freading.h: Likewise.
54012         * lib/free.c: Likewise.
54013         * lib/freopen.c: Likewise.
54014         * lib/frexp.c: Likewise.
54015         * lib/frexpl.c: Likewise.
54016         * lib/fseek.c: Likewise.
54017         * lib/fseterr.c: Likewise.
54018         * lib/fseterr.h: Likewise.
54019         * lib/fstatat.c: Likewise.
54020         * lib/fstrcmp.c: Likewise.
54021         * lib/fstrcmp.h: Likewise.
54022         * lib/fsusage.c: Likewise.
54023         * lib/fsusage.h: Likewise.
54024         * lib/ftell.c: Likewise.
54025         * lib/ftello.c: Likewise.
54026         * lib/fts-cycle.c: Likewise.
54027         * lib/fts.c: Likewise.
54028         * lib/fts_.h: Likewise.
54029         * lib/full-read.c: Likewise.
54030         * lib/full-read.h: Likewise.
54031         * lib/full-write.c: Likewise.
54032         * lib/full-write.h: Likewise.
54033         * lib/fwritable.c: Likewise.
54034         * lib/fwritable.h: Likewise.
54035         * lib/fwriteerror.c: Likewise.
54036         * lib/fwriteerror.h: Likewise.
54037         * lib/fwriting.c: Likewise.
54038         * lib/fwriting.h: Likewise.
54039         * lib/gcd.c: Likewise.
54040         * lib/gcd.h: Likewise.
54041         * lib/getcwd.c: Likewise.
54042         * lib/getdate.h: Likewise.
54043         * lib/getdate.y: Likewise.
54044         * lib/getdomainname.c: Likewise.
54045         * lib/getdomainname.h: Likewise.
54046         * lib/getgroups.c: Likewise.
54047         * lib/gethostname.c: Likewise.
54048         * lib/gethrxtime.c: Likewise.
54049         * lib/gethrxtime.h: Likewise.
54050         * lib/getloadavg.c: Likewise.
54051         * lib/getndelim2.c: Likewise.
54052         * lib/getndelim2.h: Likewise.
54053         * lib/getnline.c: Likewise.
54054         * lib/getnline.h: Likewise.
54055         * lib/getopt.c: Likewise.
54056         * lib/getopt.in.h: Likewise.
54057         * lib/getopt1.c: Likewise.
54058         * lib/getopt_int.h: Likewise.
54059         * lib/getpagesize.h: Likewise.
54060         * lib/getsubopt.c: Likewise.
54061         * lib/gettime.c: Likewise.
54062         * lib/getugroups.c: Likewise.
54063         * lib/getugroups.h: Likewise.
54064         * lib/getusershell.c: Likewise.
54065         * lib/gl_anyavltree_list1.h: Likewise.
54066         * lib/gl_anyavltree_list2.h: Likewise.
54067         * lib/gl_anyhash_list1.h: Likewise.
54068         * lib/gl_anyhash_list2.h: Likewise.
54069         * lib/gl_anylinked_list1.h: Likewise.
54070         * lib/gl_anylinked_list2.h: Likewise.
54071         * lib/gl_anyrbtree_list1.h: Likewise.
54072         * lib/gl_anyrbtree_list2.h: Likewise.
54073         * lib/gl_anytree_list1.h: Likewise.
54074         * lib/gl_anytree_list2.h: Likewise.
54075         * lib/gl_anytree_oset.h: Likewise.
54076         * lib/gl_anytreehash_list1.h: Likewise.
54077         * lib/gl_anytreehash_list2.h: Likewise.
54078         * lib/gl_array_list.c: Likewise.
54079         * lib/gl_array_list.h: Likewise.
54080         * lib/gl_array_oset.c: Likewise.
54081         * lib/gl_array_oset.h: Likewise.
54082         * lib/gl_avltree_list.c: Likewise.
54083         * lib/gl_avltree_list.h: Likewise.
54084         * lib/gl_avltree_oset.c: Likewise.
54085         * lib/gl_avltree_oset.h: Likewise.
54086         * lib/gl_avltreehash_list.c: Likewise.
54087         * lib/gl_avltreehash_list.h: Likewise.
54088         * lib/gl_carray_list.c: Likewise.
54089         * lib/gl_carray_list.h: Likewise.
54090         * lib/gl_linked_list.c: Likewise.
54091         * lib/gl_linked_list.h: Likewise.
54092         * lib/gl_linkedhash_list.c: Likewise.
54093         * lib/gl_linkedhash_list.h: Likewise.
54094         * lib/gl_list.c: Likewise.
54095         * lib/gl_list.h: Likewise.
54096         * lib/gl_oset.c: Likewise.
54097         * lib/gl_oset.h: Likewise.
54098         * lib/gl_rbtree_list.c: Likewise.
54099         * lib/gl_rbtree_list.h: Likewise.
54100         * lib/gl_rbtree_oset.c: Likewise.
54101         * lib/gl_rbtree_oset.h: Likewise.
54102         * lib/gl_rbtreehash_list.c: Likewise.
54103         * lib/gl_rbtreehash_list.h: Likewise.
54104         * lib/gl_sublist.c: Likewise.
54105         * lib/gl_sublist.h: Likewise.
54106         * lib/group-member.c: Likewise.
54107         * lib/group-member.h: Likewise.
54108         * lib/hard-locale.c: Likewise.
54109         * lib/hard-locale.h: Likewise.
54110         * lib/hash-pjw.c: Likewise.
54111         * lib/hash-pjw.h: Likewise.
54112         * lib/hash-triple.c: Likewise.
54113         * lib/hash.c: Likewise.
54114         * lib/hash.h: Likewise.
54115         * lib/human.c: Likewise.
54116         * lib/human.h: Likewise.
54117         * lib/i-ring.c: Likewise.
54118         * lib/i-ring.h: Likewise.
54119         * lib/idcache.c: Likewise.
54120         * lib/imaxabs.c: Likewise.
54121         * lib/imaxdiv.c: Likewise.
54122         * lib/inet_pton.c: Likewise.
54123         * lib/inet_pton.h: Likewise.
54124         * lib/intprops.h: Likewise.
54125         * lib/inttostr.c: Likewise.
54126         * lib/inttostr.h: Likewise.
54127         * lib/inttypes.in.h: Likewise.
54128         * lib/isapipe.c: Likewise.
54129         * lib/isdir.c: Likewise.
54130         * lib/isnan.c: Likewise.
54131         * lib/isnan.h: Likewise.
54132         * lib/isnanf.c: Likewise.
54133         * lib/isnanf.h: Likewise.
54134         * lib/isnanl-nolibm.h: Likewise.
54135         * lib/isnanl.c: Likewise.
54136         * lib/isnanl.h: Likewise.
54137         * lib/javacomp.c: Likewise.
54138         * lib/javacomp.h: Likewise.
54139         * lib/javaexec.c: Likewise.
54140         * lib/javaexec.h: Likewise.
54141         * lib/javaversion.c: Likewise.
54142         * lib/javaversion.h: Likewise.
54143         * lib/javaversion.java: Likewise.
54144         * lib/lbrkprop.h: Likewise.
54145         * lib/lchmod.h: Likewise.
54146         * lib/lchown.c: Likewise.
54147         * lib/ldexpl.c: Likewise.
54148         * lib/linebreak.c: Likewise.
54149         * lib/linebreak.h: Likewise.
54150         * lib/linebuffer.c: Likewise.
54151         * lib/linebuffer.h: Likewise.
54152         * lib/locale.in.h: Likewise.
54153         * lib/logl.c: Likewise.
54154         * lib/long-options.c: Likewise.
54155         * lib/long-options.h: Likewise.
54156         * lib/lstat.c: Likewise.
54157         * lib/lstat.h: Likewise.
54158         * lib/math.in.h: Likewise.
54159         * lib/mbchar.c: Likewise.
54160         * lib/mbchar.h: Likewise.
54161         * lib/mbfile.h: Likewise.
54162         * lib/mbiter.h: Likewise.
54163         * lib/mbscasecmp.c: Likewise.
54164         * lib/mbscasestr.c: Likewise.
54165         * lib/mbschr.c: Likewise.
54166         * lib/mbscspn.c: Likewise.
54167         * lib/mbslen.c: Likewise.
54168         * lib/mbsncasecmp.c: Likewise.
54169         * lib/mbsnlen.c: Likewise.
54170         * lib/mbspbrk.c: Likewise.
54171         * lib/mbspcasecmp.c: Likewise.
54172         * lib/mbsrchr.c: Likewise.
54173         * lib/mbssep.c: Likewise.
54174         * lib/mbsspn.c: Likewise.
54175         * lib/mbsstr.c: Likewise.
54176         * lib/mbstok_r.c: Likewise.
54177         * lib/mbswidth.c: Likewise.
54178         * lib/mbswidth.h: Likewise.
54179         * lib/mbuiter.h: Likewise.
54180         * lib/memcasecmp.c: Likewise.
54181         * lib/memcasecmp.h: Likewise.
54182         * lib/memchr.c: Likewise.
54183         * lib/memcmp.c: Likewise.
54184         * lib/memcoll.c: Likewise.
54185         * lib/memcoll.h: Likewise.
54186         * lib/memcpy.c: Likewise.
54187         * lib/memrchr.c: Likewise.
54188         * lib/mkancesdirs.c: Likewise.
54189         * lib/mkdir-p.c: Likewise.
54190         * lib/mkdir-p.h: Likewise.
54191         * lib/mkdir.c: Likewise.
54192         * lib/mkdirat.c: Likewise.
54193         * lib/mkdtemp.c: Likewise.
54194         * lib/mkstemp-safer.c: Likewise.
54195         * lib/mkstemp.c: Likewise.
54196         * lib/modechange.c: Likewise.
54197         * lib/modechange.h: Likewise.
54198         * lib/mountlist.c: Likewise.
54199         * lib/mountlist.h: Likewise.
54200         * lib/mpsort.c: Likewise.
54201         * lib/nanosleep.c: Likewise.
54202         * lib/obstack.c: Likewise.
54203         * lib/obstack.h: Likewise.
54204         * lib/open-safer.c: Likewise.
54205         * lib/open.c: Likewise.
54206         * lib/openat-die.c: Likewise.
54207         * lib/openat-priv.h: Likewise.
54208         * lib/openat-proc.c: Likewise.
54209         * lib/openat.c: Likewise.
54210         * lib/openat.h: Likewise.
54211         * lib/pagealign_alloc.c: Likewise.
54212         * lib/pagealign_alloc.h: Likewise.
54213         * lib/physmem.c: Likewise.
54214         * lib/physmem.h: Likewise.
54215         * lib/pipe-safer.c: Likewise.
54216         * lib/pipe.c: Likewise.
54217         * lib/pipe.h: Likewise.
54218         * lib/posixtm.c: Likewise.
54219         * lib/posixtm.h: Likewise.
54220         * lib/posixver.c: Likewise.
54221         * lib/printf-frexp.c: Likewise.
54222         * lib/printf-frexp.h: Likewise.
54223         * lib/printf-frexpl.c: Likewise.
54224         * lib/printf-frexpl.h: Likewise.
54225         * lib/printf.c: Likewise.
54226         * lib/progname.c: Likewise.
54227         * lib/progname.h: Likewise.
54228         * lib/progreloc.c: Likewise.
54229         * lib/putenv.c: Likewise.
54230         * lib/quote.c: Likewise.
54231         * lib/quote.h: Likewise.
54232         * lib/quotearg.c: Likewise.
54233         * lib/quotearg.h: Likewise.
54234         * lib/raise.c: Likewise.
54235         * lib/readline.c: Likewise.
54236         * lib/readline.h: Likewise.
54237         * lib/readlink.c: Likewise.
54238         * lib/readtokens.c: Likewise.
54239         * lib/readtokens.h: Likewise.
54240         * lib/readtokens0.c: Likewise.
54241         * lib/readtokens0.h: Likewise.
54242         * lib/readutmp.c: Likewise.
54243         * lib/readutmp.h: Likewise.
54244         * lib/realloc.c: Likewise.
54245         * lib/relocwrapper.c: Likewise.
54246         * lib/rename-dest-slash.c: Likewise.
54247         * lib/rename.c: Likewise.
54248         * lib/rmdir.c: Likewise.
54249         * lib/rpmatch.c: Likewise.
54250         * lib/safe-read.c: Likewise.
54251         * lib/safe-read.h: Likewise.
54252         * lib/safe-write.c: Likewise.
54253         * lib/safe-write.h: Likewise.
54254         * lib/same-inode.h: Likewise.
54255         * lib/same.c: Likewise.
54256         * lib/same.h: Likewise.
54257         * lib/save-cwd.c: Likewise.
54258         * lib/save-cwd.h: Likewise.
54259         * lib/savedir.c: Likewise.
54260         * lib/savedir.h: Likewise.
54261         * lib/savewd.c: Likewise.
54262         * lib/savewd.h: Likewise.
54263         * lib/search.in.h: Likewise.
54264         * lib/setenv.c: Likewise.
54265         * lib/setenv.h: Likewise.
54266         * lib/settime.c: Likewise.
54267         * lib/sh-quote.c: Likewise.
54268         * lib/sh-quote.h: Likewise.
54269         * lib/sig2str.c: Likewise.
54270         * lib/sig2str.h: Likewise.
54271         * lib/signal.in.h: Likewise.
54272         * lib/signbitd.c: Likewise.
54273         * lib/signbitf.c: Likewise.
54274         * lib/signbitl.c: Likewise.
54275         * lib/sigprocmask.c: Likewise.
54276         * lib/sincosl.c: Likewise.
54277         * lib/sleep.c: Likewise.
54278         * lib/sprintf.c: Likewise.
54279         * lib/sqrtl.c: Likewise.
54280         * lib/stat-time.h: Likewise.
54281         * lib/stdio--.h: Likewise.
54282         * lib/stdio-safer.h: Likewise.
54283         * lib/stdlib--.h: Likewise.
54284         * lib/stdlib-safer.h: Likewise.
54285         * lib/stdlib.in.h: Likewise.
54286         * lib/stpcpy.c: Likewise.
54287         * lib/stpncpy.c: Likewise.
54288         * lib/strchrnul.c: Likewise.
54289         * lib/strcspn.c: Likewise.
54290         * lib/strerror.c: Likewise.
54291         * lib/strftime.c: Likewise.
54292         * lib/strftime.h: Likewise.
54293         * lib/striconveh.c: Likewise.
54294         * lib/striconveh.h: Likewise.
54295         * lib/striconveha.c: Likewise.
54296         * lib/striconveha.h: Likewise.
54297         * lib/stripslash.c: Likewise.
54298         * lib/strnlen1.c: Likewise.
54299         * lib/strnlen1.h: Likewise.
54300         * lib/strtod.c: Likewise.
54301         * lib/strtoimax.c: Likewise.
54302         * lib/strtok_r.c: Likewise.
54303         * lib/strtol.c: Likewise.
54304         * lib/strtoll.c: Likewise.
54305         * lib/strtoul.c: Likewise.
54306         * lib/strtoull.c: Likewise.
54307         * lib/sysexits.in.h: Likewise.
54308         * lib/tempname.c: Likewise.
54309         * lib/tempname.h: Likewise.
54310         * lib/timespec.h: Likewise.
54311         * lib/tls.c: Likewise.
54312         * lib/tls.h: Likewise.
54313         * lib/tmpdir.c: Likewise.
54314         * lib/tmpdir.h: Likewise.
54315         * lib/tmpfile-safer.c: Likewise.
54316         * lib/tmpfile.c: Likewise.
54317         * lib/trigl.c: Likewise.
54318         * lib/trigl.h: Likewise.
54319         * lib/trim.c: Likewise.
54320         * lib/trim.h: Likewise.
54321         * lib/trunc.c: Likewise.
54322         * lib/truncf.c: Likewise.
54323         * lib/truncl.c: Likewise.
54324         * lib/tsearch.c: Likewise.
54325         * lib/unicodeio.c: Likewise.
54326         * lib/unicodeio.h: Likewise.
54327         * lib/unistd--.h: Likewise.
54328         * lib/unistd-safer.h: Likewise.
54329         * lib/unistdio/ulc-fprintf.c: Likewise.
54330         * lib/unistdio/ulc-vfprintf.c: Likewise.
54331         * lib/unlinkdir.c: Likewise.
54332         * lib/unlinkdir.h: Likewise.
54333         * lib/unlocked-io.h: Likewise.
54334         * lib/unsetenv.c: Likewise.
54335         * lib/userspec.c: Likewise.
54336         * lib/utime.c: Likewise.
54337         * lib/utimecmp.c: Likewise.
54338         * lib/utimecmp.h: Likewise.
54339         * lib/utimens.c: Likewise.
54340         * lib/verify.h: Likewise.
54341         * lib/verror.c: Likewise.
54342         * lib/verror.h: Likewise.
54343         * lib/version-etc-fsf.c: Likewise.
54344         * lib/version-etc.c: Likewise.
54345         * lib/version-etc.h: Likewise.
54346         * lib/vfprintf.c: Likewise.
54347         * lib/vprintf.c: Likewise.
54348         * lib/vsprintf.c: Likewise.
54349         * lib/w32spawn.h: Likewise.
54350         * lib/wait-process.c: Likewise.
54351         * lib/wait-process.h: Likewise.
54352         * lib/wcwidth.c: Likewise.
54353         * lib/write-any-file.c: Likewise.
54354         * lib/xalloc-die.c: Likewise.
54355         * lib/xalloc.h: Likewise.
54356         * lib/xasprintf.c: Likewise.
54357         * lib/xgetcwd.c: Likewise.
54358         * lib/xgetcwd.h: Likewise.
54359         * lib/xgetdomainname.c: Likewise.
54360         * lib/xgetdomainname.h: Likewise.
54361         * lib/xgethostname.c: Likewise.
54362         * lib/xmalloc.c: Likewise.
54363         * lib/xmalloca.c: Likewise.
54364         * lib/xmalloca.h: Likewise.
54365         * lib/xmemcoll.c: Likewise.
54366         * lib/xnanosleep.c: Likewise.
54367         * lib/xreadlink.c: Likewise.
54368         * lib/xreadlink.h: Likewise.
54369         * lib/xsetenv.c: Likewise.
54370         * lib/xsetenv.h: Likewise.
54371         * lib/xstriconv.c: Likewise.
54372         * lib/xstriconv.h: Likewise.
54373         * lib/xstrndup.c: Likewise.
54374         * lib/xstrndup.h: Likewise.
54375         * lib/xstrtod.c: Likewise.
54376         * lib/xstrtod.h: Likewise.
54377         * lib/xstrtol-error.c: Likewise.
54378         * lib/xstrtol.c: Likewise.
54379         * lib/xstrtol.h: Likewise.
54380         * lib/xtime.h: Likewise.
54381         * lib/xvasprintf.c: Likewise.
54382         * lib/xvasprintf.h: Likewise.
54383         * lib/yesno.c: Likewise.
54384         * lib/yesno.h: Likewise.
54385         * posix-modules: Likewise.
54386         * tests/test-alloca-opt.c: Likewise.
54387         * tests/test-arcfour.c: Likewise.
54388         * tests/test-arctwo.c: Likewise.
54389         * tests/test-argmatch.c: Likewise.
54390         * tests/test-argp-2.sh: Likewise.
54391         * tests/test-argp.c: Likewise.
54392         * tests/test-arpa_inet.c: Likewise.
54393         * tests/test-array_list.c: Likewise.
54394         * tests/test-array_oset.c: Likewise.
54395         * tests/test-atexit.c: Likewise.
54396         * tests/test-avltree_list.c: Likewise.
54397         * tests/test-avltree_oset.c: Likewise.
54398         * tests/test-avltreehash_list.c: Likewise.
54399         * tests/test-base64.c: Likewise.
54400         * tests/test-binary-io.c: Likewise.
54401         * tests/test-byteswap.c: Likewise.
54402         * tests/test-c-ctype.c: Likewise.
54403         * tests/test-c-strcasecmp.c: Likewise.
54404         * tests/test-c-strcasestr.c: Likewise.
54405         * tests/test-c-strncasecmp.c: Likewise.
54406         * tests/test-c-strstr.c: Likewise.
54407         * tests/test-canonicalize-lgpl.c: Likewise.
54408         * tests/test-canonicalize.c: Likewise.
54409         * tests/test-carray_list.c: Likewise.
54410         * tests/test-ceilf.c: Likewise.
54411         * tests/test-ceill.c: Likewise.
54412         * tests/test-count-one-bits.c: Likewise.
54413         * tests/test-crc.c: Likewise.
54414         * tests/test-dirname.c: Likewise.
54415         * tests/test-fbufmode.c: Likewise.
54416         * tests/test-fcntl.c: Likewise.
54417         * tests/test-fflush.c: Likewise.
54418         * tests/test-floorf.c: Likewise.
54419         * tests/test-floorl.c: Likewise.
54420         * tests/test-fopen.c: Likewise.
54421         * tests/test-fprintf-posix.c: Likewise.
54422         * tests/test-fprintf-posix.h: Likewise.
54423         * tests/test-fpurge.c: Likewise.
54424         * tests/test-freadable.c: Likewise.
54425         * tests/test-freadahead.c: Likewise.
54426         * tests/test-freading.c: Likewise.
54427         * tests/test-freopen.c: Likewise.
54428         * tests/test-frexp.c: Likewise.
54429         * tests/test-frexpl.c: Likewise.
54430         * tests/test-fseek.c: Likewise.
54431         * tests/test-fseeko.c: Likewise.
54432         * tests/test-fseterr.c: Likewise.
54433         * tests/test-fstrcmp.c: Likewise.
54434         * tests/test-ftell.c: Likewise.
54435         * tests/test-ftello.c: Likewise.
54436         * tests/test-fwritable.c: Likewise.
54437         * tests/test-fwriting.c: Likewise.
54438         * tests/test-getaddrinfo.c: Likewise.
54439         * tests/test-getpass.c: Likewise.
54440         * tests/test-gettimeofday.c: Likewise.
54441         * tests/test-hmac-md5.c: Likewise.
54442         * tests/test-hmac-sha1.c: Likewise.
54443         * tests/test-iconv.c: Likewise.
54444         * tests/test-iconvme.c: Likewise.
54445         * tests/test-inttypes.c: Likewise.
54446         * tests/test-isnan.c: Likewise.
54447         * tests/test-isnanf.c: Likewise.
54448         * tests/test-isnanl-nolibm.c: Likewise.
54449         * tests/test-isnanl.c: Likewise.
54450         * tests/test-isnanl.h: Likewise.
54451         * tests/test-ldexpl.c: Likewise.
54452         * tests/test-linked_list.c: Likewise.
54453         * tests/test-linkedhash_list.c: Likewise.
54454         * tests/test-locale.c: Likewise.
54455         * tests/test-localename.c: Likewise.
54456         * tests/test-lock.c: Likewise.
54457         * tests/test-lseek.c: Likewise.
54458         * tests/test-malloca.c: Likewise.
54459         * tests/test-math.c: Likewise.
54460         * tests/test-mbscasecmp.c: Likewise.
54461         * tests/test-mbscasestr1.c: Likewise.
54462         * tests/test-mbscasestr2.c: Likewise.
54463         * tests/test-mbscasestr3.c: Likewise.
54464         * tests/test-mbscasestr4.c: Likewise.
54465         * tests/test-mbschr.c: Likewise.
54466         * tests/test-mbscspn.c: Likewise.
54467         * tests/test-mbsncasecmp.c: Likewise.
54468         * tests/test-mbspbrk.c: Likewise.
54469         * tests/test-mbspcasecmp.c: Likewise.
54470         * tests/test-mbsrchr.c: Likewise.
54471         * tests/test-mbsspn.c: Likewise.
54472         * tests/test-mbsstr1.c: Likewise.
54473         * tests/test-mbsstr2.c: Likewise.
54474         * tests/test-mbsstr3.c: Likewise.
54475         * tests/test-md5.c: Likewise.
54476         * tests/test-memmem.c: Likewise.
54477         * tests/test-netinet_in.c: Likewise.
54478         * tests/test-open.c: Likewise.
54479         * tests/test-printf-frexp.c: Likewise.
54480         * tests/test-printf-frexpl.c: Likewise.
54481         * tests/test-printf-posix.c: Likewise.
54482         * tests/test-printf-posix.h: Likewise.
54483         * tests/test-rbtree_list.c: Likewise.
54484         * tests/test-rbtree_oset.c: Likewise.
54485         * tests/test-rbtreehash_list.c: Likewise.
54486         * tests/test-read-file.c: Likewise.
54487         * tests/test-rijndael.c: Likewise.
54488         * tests/test-search.c: Likewise.
54489         * tests/test-signbit.c: Likewise.
54490         * tests/test-sleep.c: Likewise.
54491         * tests/test-snprintf-posix.c: Likewise.
54492         * tests/test-snprintf-posix.h: Likewise.
54493         * tests/test-snprintf.c: Likewise.
54494         * tests/test-sprintf-posix.c: Likewise.
54495         * tests/test-sprintf-posix.h: Likewise.
54496         * tests/test-stat-time.c: Likewise.
54497         * tests/test-stdbool.c: Likewise.
54498         * tests/test-stdint.c: Likewise.
54499         * tests/test-stdio.c: Likewise.
54500         * tests/test-stdlib.c: Likewise.
54501         * tests/test-stpncpy.c: Likewise.
54502         * tests/test-strcasestr.c: Likewise.
54503         * tests/test-striconv.c: Likewise.
54504         * tests/test-striconveh.c: Likewise.
54505         * tests/test-striconveha.c: Likewise.
54506         * tests/test-string.c: Likewise.
54507         * tests/test-sys_select.c: Likewise.
54508         * tests/test-sys_socket.c: Likewise.
54509         * tests/test-sys_stat.c: Likewise.
54510         * tests/test-sys_time.c: Likewise.
54511         * tests/test-sysexits.c: Likewise.
54512         * tests/test-time.c: Likewise.
54513         * tests/test-tls.c: Likewise.
54514         * tests/test-trunc.c: Likewise.
54515         * tests/test-truncf.c: Likewise.
54516         * tests/test-truncl.c: Likewise.
54517         * tests/test-unistd.c: Likewise.
54518         * tests/test-vasnprintf-posix.c: Likewise.
54519         * tests/test-vasnprintf-posix2.c: Likewise.
54520         * tests/test-vasnprintf.c: Likewise.
54521         * tests/test-vasprintf-posix.c: Likewise.
54522         * tests/test-vasprintf.c: Likewise.
54523         * tests/test-verify.c: Likewise.
54524         * tests/test-vfprintf-posix.c: Likewise.
54525         * tests/test-vprintf-posix.c: Likewise.
54526         * tests/test-vsnprintf-posix.c: Likewise.
54527         * tests/test-vsnprintf.c: Likewise.
54528         * tests/test-vsprintf-posix.c: Likewise.
54529         * tests/test-wchar.c: Likewise.
54530         * tests/test-wctype.c: Likewise.
54531         * tests/test-wcwidth.c: Likewise.
54532         * tests/test-xstrtol.c: Likewise.
54533         * tests/test-xvasprintf.c: Likewise.
54534         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
54535         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
54536         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
54537         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
54538         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
54539         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
54540         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
54541         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
54542         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
54543         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
54544         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
54545         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
54546         * tests/uniname/test-uninames.c: Likewise.
54547         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
54548         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
54549         * tests/unistdio/test-u16-printf1.h: Likewise.
54550         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
54551         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
54552         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
54553         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
54554         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
54555         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
54556         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
54557         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
54558         * tests/unistdio/test-u32-printf1.h: Likewise.
54559         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
54560         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
54561         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
54562         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
54563         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
54564         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
54565         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
54566         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
54567         * tests/unistdio/test-u8-printf1.h: Likewise.
54568         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
54569         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
54570         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
54571         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
54572         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
54573         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
54574         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
54575         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
54576         * tests/unistdio/test-ulc-printf1.h: Likewise.
54577         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
54578         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
54579         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
54580         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
54581         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
54582         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
54583         * tests/uniwidth/test-u16-strwidth.c: Likewise.
54584         * tests/uniwidth/test-u16-width.c: Likewise.
54585         * tests/uniwidth/test-u32-strwidth.c: Likewise.
54586         * tests/uniwidth/test-u32-width.c: Likewise.
54587         * tests/uniwidth/test-u8-strwidth.c: Likewise.
54588         * tests/uniwidth/test-u8-width.c: Likewise.
54589         * tests/uniwidth/test-uc_width.c: Likewise.
54590         * config/srclist-update: Likewise.
54591         (fixlicense): Update to GPLv3+.
54592
54593         Change copyright notice from LGPLv2.1+ to LGPLv3+.
54594         * tests/test-tsearch.c: Change copyright notice.
54595
54596         Change copyright notice from LGPLv2.0+ to LGPLv3+.
54597         * lib/c-strcaseeq.h: Change copyright notice.
54598         * lib/streq.h: Likewise.
54599         * lib/uniconv.h: Likewise.
54600         * lib/uniconv/u-conv-from-enc.h: Likewise.
54601         * lib/uniconv/u-conv-to-enc.h: Likewise.
54602         * lib/uniconv/u-strconv-from-enc.h: Likewise.
54603         * lib/uniconv/u-strconv-to-enc.h: Likewise.
54604         * lib/uniconv/u16-conv-from-enc.c: Likewise.
54605         * lib/uniconv/u16-conv-to-enc.c: Likewise.
54606         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
54607         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
54608         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
54609         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
54610         * lib/uniconv/u32-conv-from-enc.c: Likewise.
54611         * lib/uniconv/u32-conv-to-enc.c: Likewise.
54612         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
54613         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
54614         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
54615         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
54616         * lib/uniconv/u8-conv-from-enc.c: Likewise.
54617         * lib/uniconv/u8-conv-to-enc.c: Likewise.
54618         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
54619         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
54620         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
54621         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
54622         * lib/uniname.h: Likewise.
54623         * lib/uniname/uniname.c: Likewise.
54624         * lib/unistdio.h: Likewise.
54625         * lib/unistdio/u-asnprintf.h: Likewise.
54626         * lib/unistdio/u-asprintf.h: Likewise.
54627         * lib/unistdio/u-printf-args.c: Likewise.
54628         * lib/unistdio/u-printf-args.h: Likewise.
54629         * lib/unistdio/u-printf-parse.h: Likewise.
54630         * lib/unistdio/u-snprintf.h: Likewise.
54631         * lib/unistdio/u-sprintf.h: Likewise.
54632         * lib/unistdio/u-vasprintf.h: Likewise.
54633         * lib/unistdio/u-vsnprintf.h: Likewise.
54634         * lib/unistdio/u-vsprintf.h: Likewise.
54635         * lib/unistdio/u16-asnprintf.c: Likewise.
54636         * lib/unistdio/u16-asprintf.c: Likewise.
54637         * lib/unistdio/u16-printf-parse.c: Likewise.
54638         * lib/unistdio/u16-snprintf.c: Likewise.
54639         * lib/unistdio/u16-sprintf.c: Likewise.
54640         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
54641         * lib/unistdio/u16-u16-asprintf.c: Likewise.
54642         * lib/unistdio/u16-u16-snprintf.c: Likewise.
54643         * lib/unistdio/u16-u16-sprintf.c: Likewise.
54644         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
54645         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
54646         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
54647         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
54648         * lib/unistdio/u16-vasnprintf.c: Likewise.
54649         * lib/unistdio/u16-vasprintf.c: Likewise.
54650         * lib/unistdio/u16-vsnprintf.c: Likewise.
54651         * lib/unistdio/u16-vsprintf.c: Likewise.
54652         * lib/unistdio/u32-asnprintf.c: Likewise.
54653         * lib/unistdio/u32-asprintf.c: Likewise.
54654         * lib/unistdio/u32-printf-parse.c: Likewise.
54655         * lib/unistdio/u32-snprintf.c: Likewise.
54656         * lib/unistdio/u32-sprintf.c: Likewise.
54657         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
54658         * lib/unistdio/u32-u32-asprintf.c: Likewise.
54659         * lib/unistdio/u32-u32-snprintf.c: Likewise.
54660         * lib/unistdio/u32-u32-sprintf.c: Likewise.
54661         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
54662         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
54663         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
54664         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
54665         * lib/unistdio/u32-vasnprintf.c: Likewise.
54666         * lib/unistdio/u32-vasprintf.c: Likewise.
54667         * lib/unistdio/u32-vsnprintf.c: Likewise.
54668         * lib/unistdio/u32-vsprintf.c: Likewise.
54669         * lib/unistdio/u8-asnprintf.c: Likewise.
54670         * lib/unistdio/u8-asprintf.c: Likewise.
54671         * lib/unistdio/u8-printf-parse.c: Likewise.
54672         * lib/unistdio/u8-snprintf.c: Likewise.
54673         * lib/unistdio/u8-sprintf.c: Likewise.
54674         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
54675         * lib/unistdio/u8-u8-asprintf.c: Likewise.
54676         * lib/unistdio/u8-u8-snprintf.c: Likewise.
54677         * lib/unistdio/u8-u8-sprintf.c: Likewise.
54678         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
54679         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
54680         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
54681         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
54682         * lib/unistdio/u8-vasnprintf.c: Likewise.
54683         * lib/unistdio/u8-vasprintf.c: Likewise.
54684         * lib/unistdio/u8-vsnprintf.c: Likewise.
54685         * lib/unistdio/u8-vsprintf.c: Likewise.
54686         * lib/unistdio/ulc-asnprintf.c: Likewise.
54687         * lib/unistdio/ulc-asprintf.c: Likewise.
54688         * lib/unistdio/ulc-printf-parse.c: Likewise.
54689         * lib/unistdio/ulc-snprintf.c: Likewise.
54690         * lib/unistdio/ulc-sprintf.c: Likewise.
54691         * lib/unistdio/ulc-vasnprintf.c: Likewise.
54692         * lib/unistdio/ulc-vasprintf.c: Likewise.
54693         * lib/unistdio/ulc-vsnprintf.c: Likewise.
54694         * lib/unistdio/ulc-vsprintf.c: Likewise.
54695         * lib/unistr.h: Likewise.
54696         * lib/unistr/u-cpy-alloc.h: Likewise.
54697         * lib/unistr/u-cpy.h: Likewise.
54698         * lib/unistr/u-endswith.h: Likewise.
54699         * lib/unistr/u-move.h: Likewise.
54700         * lib/unistr/u-set.h: Likewise.
54701         * lib/unistr/u-startswith.h: Likewise.
54702         * lib/unistr/u-stpcpy.h: Likewise.
54703         * lib/unistr/u-stpncpy.h: Likewise.
54704         * lib/unistr/u-strcat.h: Likewise.
54705         * lib/unistr/u-strcpy.h: Likewise.
54706         * lib/unistr/u-strcspn.h: Likewise.
54707         * lib/unistr/u-strdup.h: Likewise.
54708         * lib/unistr/u-strlen.h: Likewise.
54709         * lib/unistr/u-strncat.h: Likewise.
54710         * lib/unistr/u-strncpy.h: Likewise.
54711         * lib/unistr/u-strnlen.h: Likewise.
54712         * lib/unistr/u-strpbrk.h: Likewise.
54713         * lib/unistr/u-strspn.h: Likewise.
54714         * lib/unistr/u-strstr.h: Likewise.
54715         * lib/unistr/u-strtok.h: Likewise.
54716         * lib/unistr/u16-check.c: Likewise.
54717         * lib/unistr/u16-chr.c: Likewise.
54718         * lib/unistr/u16-cmp.c: Likewise.
54719         * lib/unistr/u16-cpy-alloc.c: Likewise.
54720         * lib/unistr/u16-cpy.c: Likewise.
54721         * lib/unistr/u16-endswith.c: Likewise.
54722         * lib/unistr/u16-mblen.c: Likewise.
54723         * lib/unistr/u16-mbsnlen.c: Likewise.
54724         * lib/unistr/u16-mbtouc-aux.c: Likewise.
54725         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
54726         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
54727         * lib/unistr/u16-mbtouc.c: Likewise.
54728         * lib/unistr/u16-mbtoucr.c: Likewise.
54729         * lib/unistr/u16-move.c: Likewise.
54730         * lib/unistr/u16-next.c: Likewise.
54731         * lib/unistr/u16-prev.c: Likewise.
54732         * lib/unistr/u16-set.c: Likewise.
54733         * lib/unistr/u16-startswith.c: Likewise.
54734         * lib/unistr/u16-stpcpy.c: Likewise.
54735         * lib/unistr/u16-stpncpy.c: Likewise.
54736         * lib/unistr/u16-strcat.c: Likewise.
54737         * lib/unistr/u16-strchr.c: Likewise.
54738         * lib/unistr/u16-strcmp.c: Likewise.
54739         * lib/unistr/u16-strcpy.c: Likewise.
54740         * lib/unistr/u16-strcspn.c: Likewise.
54741         * lib/unistr/u16-strdup.c: Likewise.
54742         * lib/unistr/u16-strlen.c: Likewise.
54743         * lib/unistr/u16-strmblen.c: Likewise.
54744         * lib/unistr/u16-strmbtouc.c: Likewise.
54745         * lib/unistr/u16-strncat.c: Likewise.
54746         * lib/unistr/u16-strncmp.c: Likewise.
54747         * lib/unistr/u16-strncpy.c: Likewise.
54748         * lib/unistr/u16-strnlen.c: Likewise.
54749         * lib/unistr/u16-strpbrk.c: Likewise.
54750         * lib/unistr/u16-strrchr.c: Likewise.
54751         * lib/unistr/u16-strspn.c: Likewise.
54752         * lib/unistr/u16-strstr.c: Likewise.
54753         * lib/unistr/u16-strtok.c: Likewise.
54754         * lib/unistr/u16-to-u32.c: Likewise.
54755         * lib/unistr/u16-to-u8.c: Likewise.
54756         * lib/unistr/u16-uctomb-aux.c: Likewise.
54757         * lib/unistr/u16-uctomb.c: Likewise.
54758         * lib/unistr/u32-check.c: Likewise.
54759         * lib/unistr/u32-chr.c: Likewise.
54760         * lib/unistr/u32-cmp.c: Likewise.
54761         * lib/unistr/u32-cpy-alloc.c: Likewise.
54762         * lib/unistr/u32-cpy.c: Likewise.
54763         * lib/unistr/u32-endswith.c: Likewise.
54764         * lib/unistr/u32-mblen.c: Likewise.
54765         * lib/unistr/u32-mbsnlen.c: Likewise.
54766         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
54767         * lib/unistr/u32-mbtouc.c: Likewise.
54768         * lib/unistr/u32-mbtoucr.c: Likewise.
54769         * lib/unistr/u32-move.c: Likewise.
54770         * lib/unistr/u32-next.c: Likewise.
54771         * lib/unistr/u32-prev.c: Likewise.
54772         * lib/unistr/u32-set.c: Likewise.
54773         * lib/unistr/u32-startswith.c: Likewise.
54774         * lib/unistr/u32-stpcpy.c: Likewise.
54775         * lib/unistr/u32-stpncpy.c: Likewise.
54776         * lib/unistr/u32-strcat.c: Likewise.
54777         * lib/unistr/u32-strchr.c: Likewise.
54778         * lib/unistr/u32-strcmp.c: Likewise.
54779         * lib/unistr/u32-strcpy.c: Likewise.
54780         * lib/unistr/u32-strcspn.c: Likewise.
54781         * lib/unistr/u32-strdup.c: Likewise.
54782         * lib/unistr/u32-strlen.c: Likewise.
54783         * lib/unistr/u32-strmblen.c: Likewise.
54784         * lib/unistr/u32-strmbtouc.c: Likewise.
54785         * lib/unistr/u32-strncat.c: Likewise.
54786         * lib/unistr/u32-strncmp.c: Likewise.
54787         * lib/unistr/u32-strncpy.c: Likewise.
54788         * lib/unistr/u32-strnlen.c: Likewise.
54789         * lib/unistr/u32-strpbrk.c: Likewise.
54790         * lib/unistr/u32-strrchr.c: Likewise.
54791         * lib/unistr/u32-strspn.c: Likewise.
54792         * lib/unistr/u32-strstr.c: Likewise.
54793         * lib/unistr/u32-strtok.c: Likewise.
54794         * lib/unistr/u32-to-u16.c: Likewise.
54795         * lib/unistr/u32-to-u8.c: Likewise.
54796         * lib/unistr/u32-uctomb.c: Likewise.
54797         * lib/unistr/u8-check.c: Likewise.
54798         * lib/unistr/u8-chr.c: Likewise.
54799         * lib/unistr/u8-cmp.c: Likewise.
54800         * lib/unistr/u8-cpy-alloc.c: Likewise.
54801         * lib/unistr/u8-cpy.c: Likewise.
54802         * lib/unistr/u8-endswith.c: Likewise.
54803         * lib/unistr/u8-mblen.c: Likewise.
54804         * lib/unistr/u8-mbsnlen.c: Likewise.
54805         * lib/unistr/u8-mbtouc-aux.c: Likewise.
54806         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
54807         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
54808         * lib/unistr/u8-mbtouc.c: Likewise.
54809         * lib/unistr/u8-mbtoucr.c: Likewise.
54810         * lib/unistr/u8-move.c: Likewise.
54811         * lib/unistr/u8-next.c: Likewise.
54812         * lib/unistr/u8-prev.c: Likewise.
54813         * lib/unistr/u8-set.c: Likewise.
54814         * lib/unistr/u8-startswith.c: Likewise.
54815         * lib/unistr/u8-stpcpy.c: Likewise.
54816         * lib/unistr/u8-stpncpy.c: Likewise.
54817         * lib/unistr/u8-strcat.c: Likewise.
54818         * lib/unistr/u8-strchr.c: Likewise.
54819         * lib/unistr/u8-strcmp.c: Likewise.
54820         * lib/unistr/u8-strcpy.c: Likewise.
54821         * lib/unistr/u8-strcspn.c: Likewise.
54822         * lib/unistr/u8-strdup.c: Likewise.
54823         * lib/unistr/u8-strlen.c: Likewise.
54824         * lib/unistr/u8-strmblen.c: Likewise.
54825         * lib/unistr/u8-strmbtouc.c: Likewise.
54826         * lib/unistr/u8-strncat.c: Likewise.
54827         * lib/unistr/u8-strncmp.c: Likewise.
54828         * lib/unistr/u8-strncpy.c: Likewise.
54829         * lib/unistr/u8-strnlen.c: Likewise.
54830         * lib/unistr/u8-strpbrk.c: Likewise.
54831         * lib/unistr/u8-strrchr.c: Likewise.
54832         * lib/unistr/u8-strspn.c: Likewise.
54833         * lib/unistr/u8-strstr.c: Likewise.
54834         * lib/unistr/u8-strtok.c: Likewise.
54835         * lib/unistr/u8-to-u16.c: Likewise.
54836         * lib/unistr/u8-to-u32.c: Likewise.
54837         * lib/unistr/u8-uctomb-aux.c: Likewise.
54838         * lib/unistr/u8-uctomb.c: Likewise.
54839         * lib/unitypes.h: Likewise.
54840         * lib/uniwidth.h: Likewise.
54841         * lib/uniwidth/cjk.h: Likewise.
54842         * lib/uniwidth/u16-strwidth.c: Likewise.
54843         * lib/uniwidth/u16-width.c: Likewise.
54844         * lib/uniwidth/u32-strwidth.c: Likewise.
54845         * lib/uniwidth/u32-width.c: Likewise.
54846         * lib/uniwidth/u8-strwidth.c: Likewise.
54847         * lib/uniwidth/u8-width.c: Likewise.
54848         * lib/uniwidth/width.c: Likewise.
54849
54850 2007-10-07  Bruno Haible  <bruno@clisp.org>
54851
54852         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
54853         The file is still under LGPL (see modules/inttypes).
54854
54855 2007-10-06  Bruno Haible  <bruno@clisp.org>
54856
54857         * modules/trunc (Dependencies): Add 'extensions'.
54858         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
54859         Reported by Ben Pfaff <blp@gnu.org>.
54860
54861 2007-10-06  Bruno Haible  <bruno@clisp.org>
54862
54863         * modules/freopen-tests: New file.
54864         * tests/test-freopen.c: New file.
54865
54866         * modules/fopen-tests: New file.
54867         * tests/test-fopen.c: New file.
54868
54869         * modules/fopen: New file.
54870         * lib/fopen.c: New file.
54871         * m4/fopen.m4: New file.
54872         * modules/freopen: New file.
54873         * lib/freopen.c: New file.
54874         * m4/freopen.m4: New file.
54875         * lib/stdio.in.h (fopen, freopen): New declarations.
54876         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
54877         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
54878         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
54879         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
54880         * doc/functions/fopen.texi: Mention the 'fopen' module.
54881         * doc/functions/freopen.texi: Mention the 'freopen' module.
54882
54883 2007-10-06  Bruno Haible  <bruno@clisp.org>
54884
54885         * modules/open-tests: New file.
54886         * tests/test-open.c: New file.
54887
54888         * modules/open: New file.
54889         * lib/open.c: New file.
54890         * m4/open.m4: New file.
54891         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
54892         lib/open.c does.
54893         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
54894         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
54895         macros.
54896         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
54897         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
54898         REPLACE_OPEN.
54899         * doc/functions/open.texi: Mention the 'open' module.
54900
54901 2007-10-04  Bruno Haible  <bruno@clisp.org>
54902
54903         * modules/ceill-tests: New file.
54904         * tests/test-ceill.c: New file.
54905
54906         * modules/ceill: New file.
54907         * lib/ceill.c: Replace entire file.
54908         * m4/ceill.m4: New file.
54909         * lib/math.in.h (ceill): Replace declaration.
54910         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
54911         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
54912         * doc/functions/ceill.texi: Mention the 'ceill' module.
54913         * modules/mathl (Files): Remove lib/ceill.c.
54914         (Depends-on): Add ceill.
54915
54916 2007-10-04  Bruno Haible  <bruno@clisp.org>
54917
54918         * modules/ceilf-tests: New file.
54919         * tests/test-ceilf.c: New file.
54920
54921         * modules/ceilf: New file.
54922         * lib/ceil.c: New file.
54923         * lib/ceilf.c: New file.
54924         * m4/ceilf.m4: New file.
54925         * lib/math.in.h (ceilf): New declaration.
54926         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
54927         HAVE_DECL_CEILF.
54928         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
54929         HAVE_DECL_CEILF.
54930         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
54931
54932 2007-10-04  Bruno Haible  <bruno@clisp.org>
54933
54934         * modules/floorl-tests: New file.
54935         * tests/test-floorl.c: New file.
54936
54937         * modules/floorl: New file.
54938         * lib/floorl.c: Replace entire file.
54939         * m4/floorl.m4: New file.
54940         * lib/math.in.h (floorl): Replace declaration.
54941         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
54942         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
54943         * doc/functions/floorl.texi: Mention the 'floorl' module.
54944         * modules/mathl (Files): Remove lib/floorl.c.
54945         (Depends-on): Add floorl.
54946
54947 2007-10-04  Bruno Haible  <bruno@clisp.org>
54948
54949         * modules/floorf-tests: New file.
54950         * tests/test-floorf.c: New file.
54951
54952         * modules/floorf: New file.
54953         * lib/floor.c: New file.
54954         * lib/floorf.c: New file.
54955         * m4/floorf.m4: New file.
54956         * lib/math.in.h (floorf): New declaration.
54957         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
54958         HAVE_DECL_FLOORF.
54959         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
54960         HAVE_DECL_FLOORF.
54961         * doc/functions/floorf.texi: Mention the 'floorf' module.
54962
54963 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
54964             Bruno Haible  <bruno@clisp.org>
54965
54966         Advertise for the Git server instead of the CVS server.
54967         * doc/gnulib-intro.texi (Steady Development): Mention the Git
54968         repository instead of the CVS one.
54969         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
54970         about all VCS systems generically.
54971         * doc/gnulib.texi (Introduction): Capitalize `Git'.
54972
54973 2007-10-04  Bruno Haible  <bruno@clisp.org>
54974
54975         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
54976         means.
54977         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
54978
54979 2007-10-04  Bruno Haible  <bruno@clisp.org>
54980
54981         * modules/truncl-tests: New file.
54982         * tests/test-truncl.c: New file.
54983
54984         * modules/truncl: New file.
54985         * lib/truncl.c: New file.
54986         * m4/truncl.m4: New file.
54987         * lib/math.in.h (truncl): New declaration.
54988         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
54989         HAVE_DECL_TRUNCL.
54990         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
54991         HAVE_DECL_TRUNCL.
54992         * doc/functions/truncl.texi: Mention the 'truncl' module.
54993
54994 2007-10-04  Bruno Haible  <bruno@clisp.org>
54995
54996         * modules/truncf-tests: New file.
54997         * tests/test-truncf.c: New file.
54998
54999         * modules/truncf: New file.
55000         * lib/trunc.c: Make paramerizable through USE_* macros.
55001         * lib/truncf.c: New file.
55002         * m4/truncf.m4: New file.
55003         * lib/math.in.h (truncf): New declaration.
55004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
55005         HAVE_DECL_TRUNCF.
55006         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
55007         HAVE_DECL_TRUNCF.
55008         * doc/functions/truncf.texi: Mention the 'truncf' module.
55009
55010 2007-10-03  Bruno Haible  <bruno@clisp.org>
55011
55012         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
55013         augmentation also for tests modules.
55014         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
55015         * modules/atexit-tests (Makefile.am): Likewise.
55016         * modules/binary-io-tests (Makefile.am): Likewise.
55017         * modules/c-strcase-tests (Makefile.am): Likewise.
55018         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
55019         * modules/canonicalize-tests (Makefile.am): Likewise.
55020         * modules/closein-tests (Makefile.am): Likewise.
55021         * modules/fprintf-posix-tests (Makefile.am): Likewise.
55022         * modules/freadahead-tests (Makefile.am): Likewise.
55023         * modules/fseek-tests (Makefile.am): Likewise.
55024         * modules/fseeko-tests (Makefile.am): Likewise.
55025         * modules/ftell-tests (Makefile.am): Likewise.
55026         * modules/ftello-tests (Makefile.am): Likewise.
55027         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
55028         * modules/isnanl-tests (Makefile.am): Likewise.
55029         * modules/lseek-tests (Makefile.am): Likewise.
55030         * modules/mbscasecmp-tests (Makefile.am): Likewise.
55031         * modules/mbscasestr-tests (Makefile.am): Likewise.
55032         * modules/mbschr-tests (Makefile.am): Likewise.
55033         * modules/mbscspn-tests (Makefile.am): Likewise.
55034         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
55035         * modules/mbspbrk-tests (Makefile.am): Likewise.
55036         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
55037         * modules/mbsrchr-tests (Makefile.am): Likewise.
55038         * modules/mbsspn-tests (Makefile.am): Likewise.
55039         * modules/mbsstr-tests (Makefile.am): Likewise.
55040         * modules/printf-posix-tests (Makefile.am): Likewise.
55041         * modules/snprintf-posix-tests (Makefile.am): Likewise.
55042         * modules/sprintf-posix-tests (Makefile.am): Likewise.
55043         * modules/tsearch-tests (Makefile.am): Likewise.
55044         * modules/uniname/uniname-tests (Makefile.am): Likewise.
55045         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
55046         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
55047         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
55048         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
55049         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
55050         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
55051         * modules/vprintf-posix-tests (Makefile.am): Likewise.
55052         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
55053         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
55054         * modules/xstrtoimax-tests (Makefile.am): Likewise.
55055         * modules/xstrtol-tests (Makefile.am): Likewise.
55056         * modules/xstrtoumax-tests (Makefile.am): Likewise.
55057         * modules/yesno-tests (Makefile.am): Likewise.
55058
55059 2007-10-03  Bruno Haible  <bruno@clisp.org>
55060
55061         * modules/trunc-tests: New file.
55062         * tests/test-trunc.c: New file.
55063
55064         * modules/trunc: New file.
55065         * lib/trunc.c: New file.
55066         * m4/trunc.m4: New file.
55067         * lib/math.in.h (trunc): New declaration.
55068         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
55069         HAVE_DECL_TRUNC.
55070         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
55071         HAVE_DECL_TRUNC.
55072         * doc/functions/trunc.texi: Mention the 'trunc' module.
55073
55074 2007-10-03  Bruno Haible  <bruno@clisp.org>
55075
55076         * tests/test-fpending.c: New file, mostly copied
55077         from coreutils/lib/t-fpending.c.
55078         * modules/fpending-tests: New file.
55079
55080 2007-10-03  Bruno Haible  <bruno@clisp.org>
55081
55082         Port the stdio extensions to QNX (untested).
55083         * lib/fseterr.c (fseterr): Add support for QNX.
55084         * lib/fbufmode.c (fbufmode): Likewise.
55085         * lib/freadable.c (freadable): Likewise.
55086         * lib/fwritable.c (fwritable): Likewise.
55087         * lib/freading.c (freading): Likewise.
55088         * lib/fwriting.c (fwriting): Likewise.
55089         * lib/freadahead.c (freadahed): Likewise.
55090         * lib/fpurge.c (fpurge): Likewise.
55091         * lib/fseeko.c (rpl_fseeko): Likewise.
55092
55093 2007-10-03  Bruno Haible  <bruno@clisp.org>
55094             Jim Meyering  <jim@meyering.net>
55095             Eric Blake  <ebb9@byu.net>
55096
55097         * doc/relocatable.texi: Use @command instead of @program.
55098
55099 2007-10-02  Jim Meyering  <jim@meyering.net>
55100
55101         Perform one more "_.h" -> ".in.h" substitution.
55102         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
55103         instead of unistd_.h here, too.
55104
55105 2007-10-01  Bruno Haible  <bruno@clisp.org>
55106
55107         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
55108         Needed for the alloca-opt module.
55109
55110 2007-09-30  Bruno Haible  <bruno@clisp.org>
55111
55112         * lib/alloca.in.h: Renamed from lib/alloca_.h.
55113         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
55114         alloca_.h.
55115         * lib/argz.in.h: Renamed from lib/argz_.h.
55116         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
55117         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
55118         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
55119         byteswap_.h.
55120         * lib/dirent.in.h: Renamed from lib/dirent_.h.
55121         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
55122         dirent_.h.
55123         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
55124         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
55125         fcntl_.h.
55126         * lib/float.in.h: Renamed from lib/float_.h.
55127         * modules/float (Files, Makefile.am): Use float.in.h instead of
55128         float_.h.
55129         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
55130         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
55131         fnmatch_.h.
55132         * lib/getopt.in.h: Renamed from lib/getopt_.h.
55133         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
55134         getopt_.h.
55135         * lib/glob.in.h: Renamed from lib/glob_.h.
55136         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
55137         * lib/iconv.in.h: Renamed from lib/iconv_.h.
55138         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
55139         iconv_.h.
55140         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
55141         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
55142         inttypes_.h.
55143         * lib/locale.in.h: Renamed from lib/locale_.h.
55144         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
55145         locale_.h.
55146         * lib/math.in.h: Renamed from lib/math_.h.
55147         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
55148         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
55149         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
55150         of netinet_in_.h. Add dependency.
55151         * lib/poll.in.h: Renamed from lib/poll_.h.
55152         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
55153         * lib/search.in.h: Renamed from lib/search_.h.
55154         * modules/search (Files, Makefile.am): Use search.in.h instead of
55155         search_.h.
55156         * lib/signal.in.h: Renamed from lib/signal_.h.
55157         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
55158         _signal.h.
55159         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
55160         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
55161         stdbool_.h.
55162         * lib/stdint.in.h: Renamed from lib/stdint_.h.
55163         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
55164         stdint_.h.
55165         * lib/stdio.in.h: Renamed from lib/stdio_.h.
55166         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
55167         stdio_.h.
55168         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
55169         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
55170         stdlib_.h.
55171         * lib/string.in.h: Renamed from lib/string_.h.
55172         * modules/string (Files, Makefile.am): Use string.in.h instead of
55173         string_.h.
55174         * doc/gnulib-tool.texi (Initial import): Update.
55175         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
55176         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
55177         of sys_select_.h. Add dependency.
55178         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
55179         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
55180         of sys_socket_.h.
55181         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
55182         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
55183         sys_stat_.h.
55184         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
55185         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
55186         sys_time_.h.
55187         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
55188         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
55189         sysexits_.h.
55190         * lib/time.in.h: Renamed from lib/time_.h.
55191         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
55192         * lib/unistd.in.h: Renamed from lib/unistd_.h.
55193         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
55194         unistd_.h.
55195         * lib/wchar.in.h: Renamed from lib/wchar_.h.
55196         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
55197         wchar_.h.
55198         * lib/wctype.in.h: Renamed from lib/wctype_.h.
55199         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
55200         wctype_.h.
55201         * build-aux/bootstrap (slurp): Update.
55202         * lib/.cppi-disable: Update.
55203
55204 2007-09-30  Bruno Haible  <bruno@clisp.org>
55205
55206         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
55207         Needed on BeOS.
55208
55209 2007-09-30  Bruno Haible  <bruno@clisp.org>
55210
55211         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
55212
55213 2007-09-29  Bruno Haible  <bruno@clisp.org>
55214
55215         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
55216
55217 2007-09-29  Bruno Haible  <bruno@clisp.org>
55218
55219         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
55220         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
55221         * build-aux/install-reloc: Compile also areadlink.c.
55222         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
55223
55224 2007-09-29  Bruno Haible  <bruno@clisp.org>
55225
55226         * gnulib-tool (func_emit_initmacro_done): Indentation.
55227
55228 2007-09-29  Bruno Haible  <bruno@clisp.org>
55229
55230         * README: Add CVS checkout update instructions.
55231         Info from Bob Proulx <bob@proulx.com>.
55232
55233 2007-09-28  Eric Blake  <ebb9@byu.net>
55234
55235         Provide move-if-change.
55236         * build-aux/move-if-change: New file, based on best practice
55237         rather than any canonical upstream location.
55238
55239 2007-09-28  Jim Meyering  <jim@meyering.net>
55240
55241         Fix canonicalize loop-detection corner case.
55242         Do not attempt to stat the symlink values stored via seen_triple.
55243         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
55244         on linux-2.6.18, (but not 2.6.22).
55245         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
55246         triple_compare.  The former compares dev,ino,filename, while the latter
55247         would actually stat dirname(filename) when dev and ino were equal.
55248         * lib/hash-triple.c: Install <string.h>.
55249         (STREQ): Define.
55250         (triple_compare_ino_str): New function.
55251         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
55252
55253 2007-09-28  Eric Blake  <ebb9@byu.net>
55254
55255         Enforce that AC_REPLACE_FUNCS files exist.
55256         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
55257         override check for typos.
55258
55259         Fix test-closein on Solaris 10.
55260         * tests/test-closein.c (main): Don't assume stdin can be inherited
55261         closed on all systems.
55262         * tests/test-closein.sh: Likewise.
55263         Reported by Piotr Tarnowski.
55264
55265 2007-09-28  Jim Meyering  <jim@meyering.net>
55266
55267         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
55268
55269 2007-09-27  Jim Meyering  <jim@meyering.net>
55270
55271         canonicalize: Avoid a false-positive cycle failure.
55272         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
55273         Sort.  Remove cycle-check.
55274         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
55275         not cycle-check.h.
55276         (seen_triple): New function.
55277         (canonicalize_filename_mode): Use it instead of cycle-check.
55278         * tests/test-canonicalize.c: Add a test for this bug.
55279         * tests/test-canonicalize.sh: Set up and run the test.
55280
55281         New module, file-set, from coreutils.
55282         * modules/file-set: Define it.
55283         * lib/file-set.c, lib/file-set.h: Implement.
55284
55285         New module, hash-triple, from coreutils.
55286         * modules/hash-triple: Define it.
55287         * lib/hash-triple.c, lib/hash-triple.h: Implement.
55288
55289 2007-09-25  Eric Blake  <ebb9@byu.net>
55290
55291         Fix strerror on Interix.
55292         * lib/string_.h (strerror): Declare replacement.
55293         * doc/functions/strerror.texi (strerror): Document the Interix
55294         shortcoming.
55295         * modules/string (Makefile.am): Support new hooks.
55296         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
55297         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
55298         gl_FUNC_STRERROR_SEPARATE.
55299         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
55300         * lib/strerror.c (rpl_strerror): Provide replacement.
55301         * modules/strerror (Depends-on): Add string.
55302         (configure.ac): Detect use of module.
55303         * tests/test-strerror.c: New file.
55304         * modules/strerror-tests: New test module.
55305         * modules/argp (Depends-on): Add strerror.
55306         * modules/error (Depends-on): Likewise.
55307         Reported by Martin Koeppe.
55308
55309 2007-09-24  Bruno Haible  <bruno@clisp.org>
55310
55311         * README: Update git instructions.
55312
55313 2007-09-24  Eric Blake  <ebb9@byu.net>
55314
55315         Revert fpending breakage from 2007-09-08.
55316         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
55317         __fpending.c.
55318
55319 2007-09-24  Jim Meyering  <jim@meyering.net>
55320
55321         filenamecat.c: Add a test.
55322         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
55323         showing how the function works when DIR is the empty string.
55324
55325 2007-09-21  Simon Josefsson  <simon@josefsson.org>
55326
55327         * tests/test-canonicalize.sh: Turn on executable bit.
55328
55329 2007-09-19  Eric Blake  <ebb9@byu.net>
55330
55331         * README: Update CVS instructions.
55332
55333 2007-09-18  Bruno Haible  <bruno@clisp.org>
55334
55335         * modules/areadlink: New file.
55336         * lib/areadlink.h (areadlink): New declaration.
55337         * lib/areadlink.c: New file, based on lib/xreadlink.c.
55338
55339 2007-09-17  Jim Meyering  <jim@meyering.net>
55340
55341         * lib/savewd.c (ESTALE) [!defined]: Define.
55342         Reported to be required on Interix by Martin Koeppe.
55343
55344 2007-09-17  Bruno Haible  <bruno@clisp.org>
55345
55346         * gnulib-tool (func_version): Use $version.
55347
55348 2007-09-16  Bruno Haible  <bruno@clisp.org>
55349
55350         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
55351         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
55352         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
55353         Reported by Greg Schafer <gschafer@zip.com.au>.
55354
55355 2007-09-15  Bruno Haible  <bruno@clisp.org>
55356
55357         * gnulib-tool (sed): Try a little harder to make bash understand the
55358         alias.
55359         Reported by Bruce Korb <bruce.korb@gmail.com>.
55360
55361 2007-09-13  Eric Blake  <ebb9@byu.net>
55362
55363         * ChangeLog: Remove conflict markers.
55364
55365 2007-09-13  Simon Josefsson  <simon@josefsson.org>
55366
55367         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
55368         Reported by Bruno Haible <bruno@clisp.org>.
55369
55370 2007-09-12  Bruno Haible  <bruno@clisp.org>
55371
55372         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
55373         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
55374         is not defined.
55375
55376 2007-09-12  Eric Blake  <ebb9@byu.net>
55377
55378         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
55379         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
55380         Autoconf definition.
55381         * modules/euidaccess (Depends-on): Add extensions, for
55382         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
55383         * modules/fnmatch (Depends-on): Likewise.
55384         * modules/getaddrinfo (Depends-on): Likewise.
55385         * modules/getdelim (Depends-on): Likewise.
55386         * modules/getline (Depends-on): Likewise.
55387         * modules/getsubopt (Depends-on): Likewise.
55388         * modules/gettext (Depends-on): Likewise.
55389         * modules/group-member (Depends-on): Likewise.
55390         * modules/mbchar (Depends-on): Likewise.
55391         * modules/memmem (Depends-on): Likewise.
55392         * modules/mempcpy (Depends-on): Likewise.
55393         * modules/memrchr (Depends-on): Likewise.
55394         * modules/pagealign_alloc (Depends-on): Likewise.
55395         * modules/readutmp (Depends-on): Likewise.
55396         * modules/stpcpy (Depends-on): Likewise.
55397         * modules/stpncpy (Depends-on): Likewise.
55398         * modules/strchrnul (Depends-on): Likewise.
55399         * modules/strndup (Depends-on): Likewise.
55400         * modules/strsep (Depends-on): Likewise.
55401         * modules/strverscmp (Depends-on): Likewise.
55402         * modules/vasprintf (Depends-on): Likewise.
55403         * modules/wcwidth (Depends-on): Likewise.
55404         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
55405         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
55406         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
55407         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
55408         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
55409         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
55410         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
55411         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
55412         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
55413         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
55414         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55415         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
55416         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
55417         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
55418         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
55419         * m4/readutmp.m4 (gl_READUTMP): Likewise.
55420         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55421         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
55422         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55423         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
55424         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55425         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
55426         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
55427         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
55428         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
55429         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55430         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
55431         so that lock.m4 can be used in gettext without extensions module.
55432
55433 2007-09-11  Bruno Haible  <bruno@clisp.org>
55434
55435         * m4/isc-posix.m4: Remove file.
55436         Suggested by Eric Blake.
55437
55438 2007-09-11  Eric Blake  <ebb9@byu.net>
55439
55440         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
55441
55442 2007-09-10  Bruno Haible  <bruno@clisp.org>
55443
55444         * posix-modules: Fix typo in error message.
55445         Reported by Matt <mkraai@beckman.com>.
55446
55447 2007-09-09  Bruno Haible  <bruno@clisp.org>
55448
55449         * doc/functions/getdelim.texi: Update list of platforms lacking the
55450         function.
55451         * doc/functions/getline.texi: Likewise.
55452
55453 2007-09-09  Jim Meyering  <jim@meyering.net>
55454
55455         * lib/hash.c (hash_initialize): Detect calloc failure.
55456         Reported by Bruno Haible.
55457
55458 2007-09-09  Bruno Haible  <bruno@clisp.org>
55459
55460         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
55461         malloc or realloc fails.
55462
55463 2007-09-09  Bruno Haible  <bruno@clisp.org>
55464
55465         * modules/getcwd (Depends-on): Add malloc-posix.
55466         * modules/glob (Depends-on): Likewise.
55467         * modules/putenv (Depends-on): Likewise.
55468         * modules/strdup (Depends-on): Likewise.
55469         * modules/getdelim (Depends-on): Add realloc-posix.
55470         * modules/read-file (Depends-on): Likewise.
55471
55472 2007-09-09  Bruno Haible  <bruno@clisp.org>
55473
55474         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
55475         (gl_FUNC_MALLOC_POSIX): Require it.
55476         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
55477         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
55478         * modules/realloc (Files): Add m4/malloc.m4.
55479         * modules/calloc (Files): Likewise.
55480
55481 2007-09-09  Bruno Haible  <bruno@clisp.org>
55482
55483         * modules/malloc-posix: New file.
55484         * modules/malloc (Depends-on): Add malloc-posix.
55485         * lib/malloc.c: Include errno.h.
55486         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
55487         and a POSIX-compatible malloc into a single function. Set ENOMEM
55488         when returning NULL.
55489         * m4/malloc.m4: New file.
55490         * doc/functions/malloc.texi: Mention the malloc-posix module.
55491         * lib/stdlib_.h (malloc): New declaration.
55492         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55493         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
55494         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
55495         and HAVE_MALLOC_POSIX.
55496
55497 2007-09-09  Bruno Haible  <bruno@clisp.org>
55498
55499         * modules/realloc-posix: New file.
55500         * modules/realloc (Depends-on): Add realloc-posix.
55501         * lib/realloc.c: Include errno.h.
55502         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
55503         and a POSIX-compatible realloc into a single function. Set ENOMEM
55504         when returning NULL.
55505         * m4/realloc.m4: New file.
55506         * doc/functions/realloc.texi: Mention the realloc-posix module.
55507         * lib/stdlib_.h (realloc): New declaration.
55508         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55509         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
55510         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
55511         and HAVE_REALLOC_POSIX.
55512
55513 2007-09-09  Bruno Haible  <bruno@clisp.org>
55514
55515         * modules/calloc-posix: New file.
55516         * modules/calloc (Depends-on): Add calloc-posix.
55517         * lib/calloc.c: Include errno.h.
55518         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
55519         and a POSIX-compatible calloc into a single function. Set ENOMEM
55520         when returning NULL.
55521         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
55522         * doc/functions/calloc.texi: Mention the calloc-posix module.
55523         * lib/stdlib_.h (calloc): New declaration.
55524         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
55525         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
55526         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
55527         and HAVE_CALLOC_POSIX.
55528
55529 2007-09-09  Bruno Haible  <bruno@clisp.org>
55530
55531         Allow for modules to show an arbitrary notice.
55532         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
55533         * gnulib-tool: New option --extract-notice.
55534         (func_usage): Document it.
55535         (sed_extract_prog): Update.
55536         (func_get_notice): New function.
55537         (func_modules_notice): New function.
55538         (func_import, func_create_testdir): Invoke it.
55539         Suggested by Jim Meyering.
55540
55541 2007-09-09  Bruno Haible  <bruno@clisp.org>
55542
55543         * gnulib-tool: New options --verbose, --quiet.
55544         (func_usage): Document them.
55545         (verbose): New variable.
55546         (func_execute_command): New function.
55547         (func_import): Don't show the module list and the file list if
55548         $verbose < 0.
55549         (func_create_testdir): Likewise. Use func_execute_command.
55550         (func_create_megatestdir): Use func_execute_command.
55551
55552 2007-09-08  Bruno Haible  <bruno@clisp.org>
55553
55554         * gnulib-tool (func_import): Prefer rsync over wget when available,
55555         for fetching the PO files.
55556
55557 2007-09-08  Bruno Haible  <bruno@clisp.org>
55558
55559         * posix-modules: New file. Portions copied from gnulib-tool.
55560         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
55561
55562 2007-09-08  Jim Meyering  <jim@meyering.net>
55563
55564         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
55565         * lib/fpending.h: Rename from __fpending.h.
55566         * lib/fpending.c: Rename from __fpending.c.
55567         Include "fpending.h", not "__fpending.h".
55568         * lib/__fpending.h, lib/__fpending.c: Remove files.
55569         * modules/fpending (Files): Reflect new file names.
55570         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
55571
55572 2007-09-08  Bruno Haible  <bruno@clisp.org>
55573
55574         * m4/inttypes-h.m4: Remove stub file.
55575
55576 2007-09-07  Simon Josefsson  <simon@josefsson.org>
55577
55578         * doc/headers/stdint.texi: Discuss #include_next issue.
55579
55580 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55581
55582         * build-aux/bootstrap: Remove obsolete comment about wget --help.
55583
55584 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55585
55586         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
55587         in variable name.
55588
55589 2007-09-03  Jim Meyering  <jim@meyering.net>
55590
55591         New module: git-version-gen.
55592         * modules/git-version-gen: New file.
55593
55594         Import changes from coreutils for bootstrap script.
55595
55596         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
55597
55598         bootstrap: uses rsync to download the .po files
55599         * build-aux/bootstrap (po_download_command_format): New global.
55600         (download_po_files): Use rsync.
55601         (update_po_files): Don't remove .po files after download,
55602         so future rsync runs can take advantage of the copies.
55603
55604         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
55605
55606         Solve the unnecessary-.po-file-regeneration problem once and for all.
55607         * build-aux/bootstrap (download_po_files): New function, renamed from
55608         get_translations.  Now, downloads, but doesn't update LINGUAS.
55609         (update_po_files): New function.
55610
55611         bootstrap: Ignore more.
55612         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
55613         uniwidth to e.g., lib/.gitignore.
55614         (slurp): Handle the sys_stat_.h -> sys mapping, too.
55615
55616         * build-aux/bootstrap: New setting: vc_ignore.
55617         (insert_sorted_if_absent): Create $file if absent.
55618         Adapt to new, possibly empty, list: $vc_ignore.
55619
55620         bootstrap: generate more ignorable names
55621         * build-aux/bootstrap (slurp): When generating ignorable names,
55622         also map .sin to .sed, .gperf to .c, and .y to .c.
55623
55624 2007-09-03  Jim Meyering  <jim@meyering.net>
55625
55626         * build-aux/git-version-gen: New file, from coreutils.  For details, see
55627         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
55628
55629 2007-09-02  Bruno Haible  <bruno@clisp.org>
55630
55631         Fix mis-recognition of 'mcs' on QNX 6.
55632         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
55633         output contains the string "Mono".
55634         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
55635         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
55636
55637 2007-09-01  Bruno Haible  <bruno@clisp.org>
55638
55639         Fix collision between uniwidth/* and linebreak modules.
55640         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
55641         u32_width): Remove declarations.
55642         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
55643         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
55644         streq3, streq2, streq1, streq0): Remove functions.
55645         (STREQ): Remove macro.
55646         (is_cjk_encoding): Remove function.
55647         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
55648         (uc_width, u8_width, u16_width, u32_width): Remove functions.
55649         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
55650         * NEWS: Document the change.
55651
55652 2007-09-01  Bruno Haible  <bruno@clisp.org>
55653
55654         * lib/streq.h: Add double-inclusion guard.
55655
55656 2007-09-01  Karl Berry  <karl@gnu.org>
55657
55658         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
55659
55660 2007-08-28  Jim Meyering  <jim@meyering.net>
55661
55662         Rename mreadlink_with_size to areadlink_with_size.
55663         * NEWS: Document the change.
55664         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
55665         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
55666         * lib/mreadlink.h: Rename this to...
55667         * lib/areadlink.h: ...this.
55668         * modules/mreadlink-with-size: Rename this to...
55669         * modules/areadlink-with-size: ...this.
55670         * lib/canonicalize.c: Reflect the renaming.
55671         * modules/canonicalize: Likewise.
55672
55673 2007-08-26  Bruno Haible  <bruno@clisp.org>
55674
55675         * gnulib-tool (func_import): When deciding which files to remove,
55676         consider also dangling symbolic links.
55677         Reported by Eric Blake.
55678
55679 2007-08-26  Bruno Haible  <bruno@clisp.org>
55680
55681         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
55682
55683 2007-08-23  Simon Josefsson  <simon@josefsson.org>
55684
55685         * lib/readline.c: Don't include getline.h, the prototype is now
55686         found in stdio.h.
55687
55688 2007-08-23  Jim Meyering  <jim@meyering.net>
55689
55690         Getdelim touchup.
55691         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
55692         around the funlockfile call, since funlockfile never sets errno.
55693         Don't set errno upon failed realloc.
55694
55695 2007-08-22  Eric Blake  <ebb9@byu.net>
55696
55697         Getline touchups.
55698         * lib/getdelim.c (getdelim): Revert regression that required *n to
55699         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
55700         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
55701         getdelim, rather than whether implementation is missing.
55702         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
55703         * lib/stdio_.h (getline): Also declare if replacement is
55704         required.
55705         * doc/functions/getdelim.texi: New file.
55706         * doc/functions/getline.texi: Likewise.
55707         * doc/gnulib.texi (Function Substitutes): Add new files.
55708         Reported by Bruno Haible.
55709
55710 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
55711
55712         * users.txt: Add Guile.
55713
55714 2007-08-22  Eric Blake  <ebb9@byu.net>
55715
55716         * tests/test-getdelim.c (main): Use remove, not unlink.
55717         * tests/test-getline.c (main): Likewise.
55718
55719         Move getline and getdelim into stdio.h, per POSIX 200x.
55720         * modules/getline (Files): Remove getline.h.
55721         (Depends-on): Add stdio.
55722         (configure.ac): Add module indicator.
55723         * modules/getdelim (Files): Remove getdelim.h.
55724         (Depends-on): Add stdio.
55725         (configure.ac): Add module indicator.
55726         * modules/stdio (Makefile.am): Work with new indicators.
55727         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
55728         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
55729         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
55730         * lib/getdelim.h: Delete.
55731         * lib/getline.h: Delete.
55732         * lib/stdio_.h (getdelim, getline): Declare.
55733         * modules/getdelim-tests: New module.
55734         * modules/getline-tests: Likewise.
55735         * tests/test-getdelim.c: New file.
55736         * tests/test-getline.c: Likewise.
55737         * NEWS: Document the change.
55738         * lib/getline.c: Update choice of header.
55739         * lib/csharpcomp.c: Likewise.
55740         * lib/getpass.c: Likewise.
55741         * lib/javacomp.c: Likewise.
55742         * lib/javaversion.c: Likewise.
55743         * lib/yesno.c: Likewise.
55744         * lib/getdelim.c: Likewise.
55745         (getdelim): Set errno on failure, and avoid memory leak.
55746
55747 2007-08-19  Bruno Haible  <bruno@clisp.org>
55748
55749         * modules/closein (Depends-on): Add freadahead.
55750         * lib/closein.c: Include freadahead.h.
55751         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
55752         is zero.
55753
55754 2007-08-19  Bruno Haible  <bruno@clisp.org>
55755
55756         * modules/freadahead-tests: New file.
55757         * tests/test-freadahead.sh: New file.
55758         * tests/test-freadahead.c: New file.
55759
55760         * modules/freadahead: New file.
55761         * lib/freadahead.h: New file.
55762         * lib/freadahead.c: New file.
55763         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
55764         fbufmode, fpurge, freadable, fwritable.
55765
55766 2007-08-19  Eric Blake  <ebb9@byu.net>
55767
55768         Test yesno in combination with closein.
55769         * lib/yesno.c (yesno): Document use of stdin.
55770         * modules/yesno-tests (Files): New module.
55771         * tests/test-yesno.c (main): New file.
55772         * tests/test-yesno.sh: Likewise.
55773
55774 2007-08-19  Bruno Haible  <bruno@clisp.org>
55775
55776         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
55777         * lib/fseeko.c (rpl_fseeko): Likewise.
55778         * lib/fseterr.c (fseterr): Likewise.
55779
55780 2007-08-19  Bruno Haible  <bruno@clisp.org>
55781
55782         * tests/test-lseek.c (main): Disable a test for BeOS.
55783         * doc/functions/lseek.texi: Document the BeOS bug.
55784
55785 2007-08-19  Bruno Haible  <bruno@clisp.org>
55786             Eric Blake  <ebb9@byu.net>
55787
55788         * lib/lseek.c: Include <sys/stat.h>.
55789         (rpl_lseek): Add workaround code also for Unix platforms.
55790         Needed for BeOS.
55791         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
55792         * doc/functions/lseek.texi: Document BeOS definiency.
55793
55794 2007-08-18  Bruno Haible  <bruno@clisp.org>
55795
55796         * modules/fstrcmp-tests: New file.
55797         * tests/test-fstrcmp.c: New file.
55798
55799 2007-08-18  Bruno Haible  <bruno@clisp.org>
55800
55801         * modules/fstrcmp: New file, from GNU gettext with modifications.
55802         * lib/fstrcmp.h: New file, from GNU gettext.
55803         * lib/fstrcmp.c: New file, from GNU gettext.
55804         * MODULES.html.sh (String handling): Add fstrcmp.
55805
55806 2007-08-18  Bruno Haible  <bruno@clisp.org>
55807
55808         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
55809         'bool'.
55810         (diag, compareseq): Remove const from the ctxt argument.
55811         (USE_HEURISTIC): Undefine at the end.
55812
55813 2007-08-18  Jim Meyering  <jim@meyering.net>
55814
55815         New file: lib/idcache.h
55816         * NEWS: Mention the addition.
55817         * modules/idcache (Files): Add lib/idcache.h
55818         * lib/idcache.c: Include "idcache.h".
55819         Don't include <sys/types.h>.
55820         Add a FIXME comment.
55821         Move file-scoped "static" declarations to the top.
55822         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
55823
55824 2007-08-17  Bruno Haible  <bruno@clisp.org>
55825         and Paul Eggert  <eggert@cs.ucla.edu>
55826
55827         * MODULES.html.sh: Add diffseq.
55828         * modules/diffseq: New file.
55829         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
55830         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
55831
55832 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
55833
55834         Import changes from coreutils for bootstrap script.
55835
55836         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
55837
55838         * build-aux/bootstrap (slurp): Work even in environments where
55839         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
55840         current code does not slurp files whose names start with ".", and
55841         this looks like it might be a troublesome area.
55842
55843         2007-07-11  Jim Meyering  <jim@meyering.net>
55844
55845         If there's a GPL vN copyright comment, require that N == 3.
55846
55847         2007-07-08  Jim Meyering  <jim@meyering.net>
55848
55849         Run the coreutils-specific code only if tests/Makefile.am.in exists.
55850         * build-aux/bootstrap (mam_template): Move definition out of loop.
55851
55852         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
55853
55854         * build-aux/bootstrap (symlink_to_dir): Rename function from
55855         symlink_to_gnulib.  Add a directory parameter.  Update all
55856         callers.
55857         (cp_mark_as_generated): Also check for -- and link to -- files in
55858         gl/.
55859
55860         2007-07-08  Jim Meyering  <jim@meyering.net>
55861
55862         Adapt to deeper hierarchy in gnulib.
55863         * build-aux/bootstrap (symlink_to_dir): If the destination
55864         directory doesn't exist, create it. This is required at least for
55865         "lib/uniwidth/cjk.h".
55866
55867         2007-05-15  Jim Meyering  <jim@meyering.net>
55868
55869         * build-aux/bootstrap: Now that generated Makefile.am files
55870         are no longer under version control, they must be created at
55871         bootstrap time.
55872
55873 2007-08-14  Ben Pfaff  <blp@gnu.org>
55874
55875         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
55876
55877 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
55878
55879         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
55880         given the changes below.
55881         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
55882         even on hosts that have padding bits beyond the supported 64.
55883
55884 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
55885
55886         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
55887         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
55888         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
55889         depends on it.
55890         (xstrtol_error): Remove.
55891         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
55892         but with a different signature.
55893         (ATTRIBUTE_NORETURN, __attribute__): New macros.
55894         * lib/xstrtol-error.c: Include exitfail.h.
55895         (xstrtol_fatal): New function, with a different signature from the
55896         old xstrtol_error, so that the caller need not worry about passing
55897         in an exit status, or about storage management of the option argument.
55898         (xstrtol_error): Now a static function.  Redo signature to
55899         implement xstrtol_fatal.  Output the correct number of hyphens in
55900         front of the option so that the caller need not worry about
55901         storage management.
55902         (N_): New macro.
55903         (_): Remove; not used now.
55904         * modules/xstrtol: Depend on getopt.
55905         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
55906         of old STRTOL_FATAL_ERROR macro.
55907         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
55908         of test program.
55909         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
55910         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
55911
55912 2007-08-08  Eric Blake  <ebb9@byu.net>
55913
55914         * lib/xstrtol-error.c: Add missing include.
55915
55916         Move xstrtol messages into gnulib domain, when --pobase is used.
55917         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
55918         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
55919         * modules/xstrtol (Files): Distribute new file.
55920         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
55921         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
55922         * tests/test-xstrtol.c: ...into new file.
55923         * tests/test-xstrtoul.c: Also test xstrtoul.
55924         * tests/test-xstrtoimax.c: Also test xstrtoimax.
55925         * tests/test-xstrtoumax.c: Also test xstrtoumax.
55926         * tests/test-xstrtol.sh: Drive the tests.
55927         * tests/test-xstrtoimax.sh: Likewise.
55928         * tests/test-xstrtoumax.sh: Likewise.
55929         * modules/xstrtol-tests: New module.
55930         * modules/xstrtoimax-tests: Likewise.
55931         * modules/xstrtoumax-tests: Likewise.
55932
55933 2007-08-08  Jim Meyering  <jim@meyering.net>
55934
55935         New function: mfile_name_concat.
55936         * lib/filenamecat.c (mfile_name_concat): New function, just like
55937         file_name_concat, but return NULL upon failure rather than exiting
55938         with a diagnostic.
55939         * lib/filenamecat.h: Declare it.
55940
55941 2007-08-07  Bruno Haible  <bruno@clisp.org>
55942
55943         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
55944         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
55945         warning from gcc.
55946         Reported by Eric Blake.
55947
55948 2007-08-07  Simon Josefsson  <simon@josefsson.org>
55949
55950         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
55951         * modules/crypto/arcfour (License): Likewise.
55952         * modules/crypto/des-tests (License): Likewise.
55953         * modules/crypto/gc-arctwo-tests (License): Likewise.
55954         * modules/crypto/gc-des-tests (License): Likewise.
55955         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
55956         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
55957         * modules/crypto/gc-md2-tests (License): Likewise.
55958         * modules/crypto/gc-md4-tests (License): Likewise.
55959         * modules/crypto/gc-md5-tests (License): Likewise.
55960         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
55961         * modules/crypto/gc-rijndael-tests (License): Likewise.
55962         * modules/crypto/gc-sha1-tests (License): Likewise.
55963         * modules/crypto/gc-tests (License): Likewise.
55964         * modules/crypto/hmac-md5 (License): Likewise.
55965         * modules/crypto/hmac-sha1 (License): Likewise.
55966         * modules/crypto/md2-tests (License): Likewise.
55967         * modules/crypto/md4-tests (License): Likewise.
55968         * modules/crypto/md5 (License): Likewise.
55969         * modules/crypto/rijndael (License): Likewise.
55970         * modules/crypto/sha1 (License): Likewise.
55971         * modules/memxor (License): Likewise.
55972
55973 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
55974         and Bruno Haible  <bruno@clisp.org>
55975
55976         * NEWS: Describe interface changes to human, xstrtol.
55977         * lib/human.h: Include <xstrtol.h>.
55978         (human_options): Return enum strtol_error, not int.  Remove
55979         bool arg; take int * instead.
55980         * lib/human.c: Don't include "gettext.h".
55981         (_): Remove; no longer used.
55982         Don't include <xstrtol.h>, since human.h does it.
55983         (human_options): Adjust to abovementioned interface changes.
55984         Do not report error to stderr; that's now the caller's
55985         responsibility.
55986         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
55987         interface change.
55988         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
55989         Str, Argument_type_string.  All uses changed.  Put " argument"
55990         in diagnostics to make them clearer.  Change wording of suffix
55991         message for clarity.
55992         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
55993         Argument_type_string.
55994         (STRTOL_FATAL_WARN): Remove; no longer used.
55995         * modules/human (Depends-on): Remove gettext-h.
55996
55997 2007-08-06  Simon Josefsson  <simon@josefsson.org>
55998
55999         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
56000
56001 2007-07-31  Bruno Haible  <bruno@clisp.org>
56002
56003         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
56004         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
56005         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
56006
56007 2007-07-31  Bruno Haible  <bruno@clisp.org>
56008
56009         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
56010         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
56011
56012 2007-07-30  Bruno Haible  <bruno@clisp.org>
56013
56014         * modules/base64 (License): Use the synonymous term "LGPLv2+".
56015         * modules/c-ctype (License): Likewise.
56016         * modules/c-strcase (License): Likewise.
56017         * modules/check-version (License): Likewise.
56018         * modules/iconv (License): Likewise.
56019         * modules/iconv_open (License): Likewise.
56020         * modules/read-file (License): Likewise.
56021         * modules/striconv (License): Likewise.
56022         * modules/strverscmp (License): Likewise.
56023         * modules/vasprintf (License): Likewise.
56024         * modules/crypto/des (License): Likewise.
56025         * modules/crypto/gc (License): Likewise.
56026         * modules/crypto/gc-arcfour (License): Likewise.
56027         * modules/crypto/gc-arctwo (License): Likewise.
56028         * modules/crypto/gc-des (License): Likewise.
56029         * modules/crypto/gc-hmac-md5 (License): Likewise.
56030         * modules/crypto/gc-hmac-sha1 (License): Likewise.
56031         * modules/crypto/gc-md2 (License): Likewise.
56032         * modules/crypto/gc-md4 (License): Likewise.
56033         * modules/crypto/gc-md5 (License): Likewise.
56034         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
56035         * modules/crypto/gc-random (License): Likewise.
56036         * modules/crypto/gc-rijndael (License): Likewise.
56037         * modules/crypto/gc-sha1 (License): Likewise.
56038         * modules/crypto/md2 (License): Likewise.
56039         * modules/crypto/md4 (License): Likewise.
56040
56041 2007-07-30  Jim Meyering  <jim@meyering.net>
56042
56043         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
56044         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
56045         it has valid stat data.  This bug would cause du not to count the
56046         sizes of inaccessible directories.
56047         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
56048         in <http://bugzilla.redhat.com/250077>.
56049
56050 2007-07-25  Peter O'Gorman  <peter@pogma.com>
56051             Bruno Haible  <bruno@clisp.org>
56052
56053         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
56054         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
56055         #include_next, gives a diagnostic about it, but reports no error in
56056         the exit code.
56057         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
56058
56059 2007-07-24  Ben Pfaff  <blp@gnu.org>
56060
56061         Improve name: "count-one-bits" is better than "popcount".
56062         * MODULES.html.sh: Update name.
56063         * lib/popcount.h: Renamed lib/count-one-bits.h.
56064         (popcount): Renamed count_one_bits.
56065         (popcountl): Renamed count_one_bits_l.
56066         (popcountll): Renamed count_one_bits_ll.
56067         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
56068         * modules/popcount: Renamed module/count-one-bits.
56069         * modules/popcount-tests: Renamed module/count-one-bits-tests.
56070         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
56071
56072 2007-07-23  Ben Pfaff  <blp@gnu.org>
56073
56074         * lib/popcount.h (popcount32): Reduce size of constants, to allow
56075         better code generation, and add U to large constants to avoid
56076         warnings, in non-GCC case.
56077         Suggested by Bruno Haible.
56078
56079 2007-07-23  Ben Pfaff  <blp@gnu.org>
56080
56081         * lib/popcount.h: Use verify_true instead of if...abort.
56082         * modules/popcount: Depend on verify module.
56083         Suggested by Jim Meyering.
56084
56085 2007-07-23  Bruno Haible  <bruno@clisp.org>
56086
56087         * gnulib-tool (func_import): Create a .cvsignore file also when the
56088         directory is not yet in CVS but the toplevel directory is. When
56089         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
56090         Reported by Karl Berry.
56091
56092 2007-07-22  Ben Pfaff  <blp@gnu.org>
56093
56094         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
56095         case.
56096         Suggested by Eric Blake.
56097
56098 2007-07-22  Ben Pfaff  <blp@gnu.org>
56099
56100         New module: popcount.
56101         * MODULES.html.sh: Add popcount.
56102         * modules/popcount: New file.
56103         * modules/popcount-tests: New file.
56104         * tests/test-popcount.c: New file.
56105         * lib/popcount.h: New file.
56106         * m4/popcount.m4: New file.
56107
56108 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
56109
56110         * build-aux/announce-gen: Update to GPLv3.
56111
56112         * build-aux/config.guess: Update from config.
56113
56114 2007-07-21  Bruno Haible  <bruno@clisp.org>
56115
56116         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
56117         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
56118
56119 2007-07-20  Jim Meyering  <jim@meyering.net>
56120
56121         * check-module: Diagnose a self-dependency.
56122
56123 2007-07-19  Bruno Haible  <bruno@clisp.org>
56124
56125         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
56126         empty.
56127         Reported by Eric Blake.
56128
56129 2007-07-18  Bruno Haible  <bruno@clisp.org>
56130
56131         * gnulib-tool: New options --po-base, --po-domain.
56132         (func_usage): Document them.
56133         (pobase, po_domain): New variables.
56134         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
56135         DEFAULT_TEXT_DOMAIN.
56136         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
56137         (func_import): Consider pobase and po_domain. Create a po/ directory.
56138         (func_create_testdir): Set pobase and po_domain to empty.
56139         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
56140         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
56141
56142 2007-07-18  Bruno Haible  <bruno@clisp.org>
56143
56144         * gnulib-tool (func_get_automake_snippet): Synthesize also an
56145         EXTRA_DIST augmentation for files in build-aux/.
56146
56147 2007-07-16  Bruno Haible  <bruno@clisp.org>
56148
56149         * modules/lseek (License): Use the synonymous term "LGPLv2+".
56150         * modules/getdelim (License): Likewise.
56151
56152 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56153
56154         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
56155         * modules/d-type (License): Likewise.
56156         * modules/extensions (License): Likewise.
56157         * modules/fnmatch (License): Likewise.
56158         * modules/fseeko (License): Likewise.
56159         * modules/getaddrinfo (License): Likewise.
56160         * modules/getline (License): Likewise.
56161         * modules/getlogin_r (License): Likewise.
56162         * modules/getpass (License): Likewise.
56163         * modules/gettimeofday (License): Likewise.
56164         * modules/glob (License): Likewise.
56165         * modules/inet_ntop (License): Likewise.
56166         * modules/malloc (License): Likewise.
56167         * modules/malloca (License): Likewise.
56168         * modules/memmem (License): Likewise.
56169         * modules/mempcpy (License): Likewise.
56170         * modules/memset (License): Likewise.
56171         * modules/minmax (License): Likewise.
56172         * modules/mktime (License): Likewise.
56173         * modules/netinet_in (License): Likewise.
56174         * modules/pathmax (License): Likewise.
56175         * modules/poll (License): Likewise.
56176         * modules/regex (License): Likewise.
56177         * modules/snprintf (License): Likewise.
56178         * modules/stdbool (License): Likewise.
56179         * modules/stdint (License): Likewise.
56180         * modules/stdio (License): Likewise.
56181         * modules/strcase (License): Likewise.
56182         * modules/strcasestr (License): Likewise.
56183         * modules/strdup (License): Likewise.
56184         * modules/string (License): Likewise.
56185         * modules/strndup (License): Likewise.
56186         * modules/strnlen (License): Likewise.
56187         * modules/strpbrk (License): Likewise.
56188         * modules/strptime (License): Likewise.
56189         * modules/strsep (License): Likewise.
56190         * modules/sys_select (License): Likewise.
56191         * modules/sys_socket (License): Likewise.
56192         * modules/sys_stat (License): Likewise.
56193         * modules/sys_time (License): Likewise.
56194         * modules/time (License): Likewise.
56195         * modules/time_r (License): Likewise.
56196         * modules/timegm (License): Likewise.
56197         * modules/unistd (License): Likewise.
56198         * modules/vsnprintf (License): Likewise.
56199         * modules/wctype (License): Likewise.
56200
56201 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56202
56203         * modules/argz (License): LGPLv2+.
56204
56205 2007-07-15  Karl Berry  <karl@gnu.org>
56206
56207         * doc/gnulib.texi: revise node structure per new fdl.texi.
56208
56209 2007-07-14  Bruno Haible  <bruno@clisp.org>
56210
56211         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
56212         the output file.
56213         * lib/uniname/uninames.h: Regenerated.
56214
56215 2007-07-14  Karl Berry  <karl@gnu.org>
56216
56217         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
56218         omitting sectioning and index commands.
56219
56220 2007-07-13  Bruno Haible  <bruno@clisp.org>
56221
56222         New gnulib-tool option --more-symlinks.
56223         * gnulib-tool (func_usage): Document --more-symlinks.
56224         (do_copyrights): New variable.
56225         Recognize option --more-symlinks.
56226         (func_import): Don't add a copyright notice transform to
56227         sed_transform_lib_file if do_copyrights is empty.
56228
56229 2007-07-13  Bruno Haible  <bruno@clisp.org>
56230
56231         * lib/vasnprintf.c (decimal_point_char): Define also if
56232         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
56233         && !NEED_PRINTF_DIRECTIVE_A.
56234         Reported by Clemens Koller <clemens.koller@anagramm.de> via
56235         Gary V. Vaughan <gary@gnu.org>.
56236
56237 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
56238
56239         * lib/inttypes_.h: Undo previous change, since it was fixed
56240         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
56241
56242 2007-07-13  Bruno Haible  <bruno@clisp.org>
56243
56244         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
56245         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
56246
56247 2007-07-13  Jim Meyering  <jim@meyering.net>
56248
56249         df: Don't fail for Tru64's "file-on-file mount".
56250         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
56251         so we fall through and use statfs instead.  Details here:
56252         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
56253         Reported by Albert Chin.
56254
56255 2007-07-13  Bruno Haible  <bruno@clisp.org>
56256
56257         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
56258         * modules/configmake (License): Likewise.
56259         * modules/gettext (License): Likewise.
56260         * modules/gettext-h (License): Likewise.
56261         * modules/include_next (License): Likewise.
56262         * modules/link-warning (License): Likewise.
56263         * modules/localcharset (License): Likewise.
56264         * modules/localename (License): Likewise.
56265         * modules/lock (License): Likewise.
56266         * modules/relocatable-lib-lgpl (License): Likewise.
56267         * modules/size_max (License): Likewise.
56268         * modules/vasnprintf (License): Likewise.
56269         * modules/wchar (License): Likewise.
56270         * modules/xsize (License): Likewise.
56271
56272 2007-07-13  Bruno Haible  <bruno@clisp.org>
56273
56274         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
56275         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
56276
56277 2007-07-12  Bruno Haible  <bruno@clisp.org>
56278
56279         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
56280         in the modules files.
56281
56282 2007-07-11  Karl Berry  <karl@gnu.org>
56283
56284         * MODULES.html.sh (func_module): use
56285          sed -e '\|^'"${includefile}"'$|d'
56286          instead of /.../d, to avoid errors on $includefile's containing /.
56287
56288 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56289
56290         * gnulib-tool (func_import): Avoid duplication of --avoid
56291         statements
56292         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
56293         names to `_' in variable names.
56294
56295 2007-07-10  Eric Blake  <ebb9@byu.net>
56296
56297         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
56298         * NEWS: Document this change.
56299
56300 2007-07-08  Bruno Haible  <bruno@clisp.org>
56301
56302         Update to Unicode 5.0.
56303         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
56304         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
56305         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
56306         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
56307         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
56308         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
56309         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
56310         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
56311         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
56312         U+10A3F, U+1D242..U+1D244.
56313         (nonspacing_table_ind): Update.
56314         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
56315         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
56316
56317 2007-07-08  Bruno Haible  <bruno@clisp.org>
56318
56319         Update to Unicode 5.0.
56320         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
56321         code transform. Extend the name index field of unicode_name_to_code and
56322         unicode_code_to_name from 16 to 24 bits.
56323         * lib/uniname/uniname.c (unicode_character_name,
56324         unicode_name_character): Add the range 0x12xxx to the code transform.
56325         * lib/uniname/uninames.h: Regenerated.
56326         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
56327
56328 2007-07-07  Bruno Haible  <bruno@clisp.org>
56329
56330         * modules/wcwidth-tests: New file.
56331         * tests/test-wcwidth.c: New file.
56332
56333         Work around MacOS X wcwidth() bug.
56334         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
56335         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
56336         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
56337         original wcwidth in non-UTF-8 locales.
56338         * modules/wcwidth (Depends-on): Add localcharset, streq,
56339         uniwidth/width.
56340         * doc/functions/wcwidth.texi: Update.
56341
56342 2007-07-07  Bruno Haible  <bruno@clisp.org>
56343
56344         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
56345         (wcwidth): New declaration.
56346         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
56347         macros.
56348         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
56349         here. Prepare for creating <wchar.h> unconditionally.
56350         * modules/wchar (Depends-on): Add link-warning.
56351         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
56352         REPLACE_WCWIDTH, and GL_LINK_WARNING.
56353         * lib/wcwidth.h: Remove file.
56354         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
56355         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
56356         * modules/wcwidth (Files): Remove lib/wcwidth.h.
56357         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
56358         (Include): Replace wcwidth.h with <wchar.h>.
56359         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
56360         * lib/mbchar.h: Don't include wcwidth.h.
56361         * lib/mbswidth.c: Likewise.
56362         * NEWS: Mention the change.
56363
56364 2007-07-07  Bruno Haible  <bruno@clisp.org>
56365
56366         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
56367         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
56368         definition with an external declaration.
56369         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
56370         defined as a function. Remove AC_C_INLINE requirement.
56371         * modules/wcwidth (Files): Add lib/wcwidth.c.
56372         (Makefile.am): Remove redundant statement.
56373
56374 2007-07-07  Bruno Haible  <bruno@clisp.org>
56375
56376         * MODULES.html.sh (Unicode string functions): Add the new modules.
56377
56378         * tests/uniwidth/test-u32-strwidth.c: New file.
56379         * modules/uniwidth/u32-strwidth-tests: New file.
56380
56381         * lib/uniwidth/u32-strwidth.c: New file.
56382         * modules/uniwidth/u32-strwidth: New file.
56383
56384         * tests/uniwidth/test-u16-strwidth.c: New file.
56385         * modules/uniwidth/u16-strwidth-tests: New file.
56386
56387         * lib/uniwidth/u16-strwidth.c: New file.
56388         * modules/uniwidth/u16-strwidth: New file.
56389
56390         * tests/uniwidth/test-u8-strwidth.c: New file.
56391         * modules/uniwidth/u8-strwidth-tests: New file.
56392
56393         * lib/uniwidth/u8-strwidth.c: New file.
56394         * modules/uniwidth/u8-strwidth: New file.
56395
56396         * tests/uniwidth/test-u32-width.c: New file.
56397         * modules/uniwidth/u32-width-tests: New file.
56398
56399         * lib/uniwidth/u32-width.c: New file.
56400         * modules/uniwidth/u32-width: New file.
56401
56402         * tests/uniwidth/test-u16-width.c: New file.
56403         * modules/uniwidth/u16-width-tests: New file.
56404
56405         * lib/uniwidth/u16-width.c: New file.
56406         * modules/uniwidth/u16-width: New file.
56407
56408         * tests/uniwidth/test-u8-width.c: New file.
56409         * modules/uniwidth/u8-width-tests: New file.
56410
56411         * lib/uniwidth/u8-width.c: New file.
56412         * modules/uniwidth/u8-width: New file.
56413
56414         * tests/uniwidth/test-uc_width.c: New file.
56415         * modules/uniwidth/width-tests: New file.
56416
56417         * lib/uniwidth/width.c: New file, from GNU libiconv.
56418         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
56419         * modules/uniwidth/width: New file.
56420
56421         * lib/uniwidth.h: New file, from GNU libiconv.
56422         * modules/uniwidth/base: New file.
56423
56424 2007-07-07  Bruno Haible  <bruno@clisp.org>
56425
56426         * lib/uniname.h: New file, from GNU gettext.
56427         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
56428         * lib/uniname/uninames.h: New file, from GNU gettext.
56429         * lib/uniname/uniname.c: New file, from GNU gettext.
56430         * tests/uniname/test-uninames.sh: New file.
56431         * tests/uniname/test-uninames.c: New file, from GNU gettext.
56432         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
56433         * modules/uniname/base: New file.
56434         * modules/uniname/uniname: New file.
56435         * modules/uniname/uniname-tests: New file.
56436         * MODULES.html.sh (Unicode string functions): Add the new modules.
56437
56438 2007-07-06  Bruno Haible  <bruno@clisp.org>
56439
56440         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
56441
56442 2007-07-06  Bruno Haible  <bruno@clisp.org>
56443
56444         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
56445         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
56446         includes <cygwin/sys_time.h> which includes <sys/select.h> which
56447         include <sys/time.h>.
56448         Reported by Eric Blake.
56449
56450 2007-07-06  Eric Blake  <ebb9@byu.net>
56451
56452         Fix testing canonicalize on cygwin.
56453         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
56454         Revert patch from 2007-06-19.
56455         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
56456         canonicalize module is also in use.
56457         * tests/test-canonicalize.c: New file.
56458         * tests/test-canonicalize.sh: Likewise.
56459         * modules/canonicalize-tests: Likewise.
56460
56461 2007-07-06  Jim Meyering  <jim@meyering.net>
56462
56463         * lib/getugroups.c (getugroups): Detect getgrent failure.
56464         Adjust comment to reflect reality: this function may return -1.
56465
56466 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
56467
56468         * build-aux/bootstrap (TP_URL,get_translations): Update to use
56469         the new TP address.
56470         (usage): Fix typo
56471         (gnulib_mk): New variable.
56472
56473 2007-07-05  Jim Meyering  <jim@meyering.net>
56474
56475         Don't let endgrent clobber errno, no matter how improbable.
56476         * lib/getugroups.c (getugroups): Save and restore errno around
56477         endgrent call.
56478
56479         Close the group DB even when failing with 2^31 or more members.
56480         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
56481
56482 2007-07-04  Jim Meyering  <jim@meyering.net>
56483
56484         * lib/getugroups.h: New file.
56485         * lib/getugroups.c: Include "getugroups.h".
56486         Remove uses of "register" keyword.
56487         Move local variable, "cp", down into scope where used.
56488         Give "username" parameter the "const" attribute.
56489         * modules/getugroups (Files): Add lib/getugroups.h
56490
56491 2007-07-04  Karl Berry  <karl@gnu.org>
56492
56493         * MODULES.html.sh (func_all_modules): Complete rename of
56494         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
56495
56496 2007-07-02  Bruno Haible  <bruno@clisp.org>
56497
56498         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
56499         mode, when inttypes.h comes from gnulib.
56500         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56501
56502 2007-07-02  Simon Josefsson  <simon@josefsson.org>
56503
56504         * NEWS: Mention lgpl module name change.
56505
56506         * modules/lgpl-2.1: Renamed from lgpl.
56507
56508         * NEWS: Mention gpl module name change.
56509
56510         * modules/gpl-3.0: New file, based on gpl-2.0.
56511
56512         * modules/gpl-2.0: Renamed from gpl.
56513
56514         * modules/gpl: Fix filename, doc/gpl.texi is now found at
56515         doc/gpl-2.0.texi.
56516
56517 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
56518
56519         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
56520         #define __STDC_LIMIT_MACROS temporarily while including
56521         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
56522         Problem reported by Joel E. Denny in
56523         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
56524
56525 2007-07-01  Bruno Haible  <bruno@clisp.org>
56526
56527         * lib/unistdio.h: New file.
56528         * lib/unistdio/u-asnprintf.h: New file.
56529         * lib/unistdio/u-asprintf.h: New file.
56530         * lib/unistdio/u-printf-args.c: New file.
56531         * lib/unistdio/u-printf-args.h: New file.
56532         * lib/unistdio/u-printf-parse.h: New file.
56533         * lib/unistdio/u-snprintf.h: New file.
56534         * lib/unistdio/u-sprintf.h: New file.
56535         * lib/unistdio/u-vasprintf.h: New file.
56536         * lib/unistdio/u-vsnprintf.h: New file.
56537         * lib/unistdio/u-vsprintf.h: New file.
56538         * lib/unistdio/ulc-asnprintf.c: New file.
56539         * lib/unistdio/ulc-asprintf.c: New file.
56540         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
56541         * lib/unistdio/ulc-printf-parse.c: New file.
56542         * lib/unistdio/ulc-snprintf.c: New file.
56543         * lib/unistdio/ulc-sprintf.c: New file.
56544         * lib/unistdio/ulc-vasnprintf.c: New file.
56545         * lib/unistdio/ulc-vasprintf.c: New file.
56546         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
56547         * lib/unistdio/ulc-vsnprintf.c: New file.
56548         * lib/unistdio/ulc-vsprintf.c: New file.
56549         * lib/unistdio/u8-asnprintf.c: New file.
56550         * lib/unistdio/u8-asprintf.c: New file.
56551         * lib/unistdio/u8-printf-parse.c: New file.
56552         * lib/unistdio/u8-snprintf.c: New file.
56553         * lib/unistdio/u8-sprintf.c: New file.
56554         * lib/unistdio/u8-vasnprintf.c: New file.
56555         * lib/unistdio/u8-vasprintf.c: New file.
56556         * lib/unistdio/u8-vsnprintf.c: New file.
56557         * lib/unistdio/u8-vsprintf.c: New file.
56558         * lib/unistdio/u8-u8-asnprintf.c: New file.
56559         * lib/unistdio/u8-u8-asprintf.c: New file.
56560         * lib/unistdio/u8-u8-snprintf.c: New file.
56561         * lib/unistdio/u8-u8-sprintf.c: New file.
56562         * lib/unistdio/u8-u8-vasnprintf.c: New file.
56563         * lib/unistdio/u8-u8-vasprintf.c: New file.
56564         * lib/unistdio/u8-u8-vsnprintf.c: New file.
56565         * lib/unistdio/u8-u8-vsprintf.c: New file.
56566         * lib/unistdio/u16-asnprintf.c: New file.
56567         * lib/unistdio/u16-asprintf.c: New file.
56568         * lib/unistdio/u16-printf-parse.c: New file.
56569         * lib/unistdio/u16-snprintf.c: New file.
56570         * lib/unistdio/u16-sprintf.c: New file.
56571         * lib/unistdio/u16-vasnprintf.c: New file.
56572         * lib/unistdio/u16-vasprintf.c: New file.
56573         * lib/unistdio/u16-vsnprintf.c: New file.
56574         * lib/unistdio/u16-vsprintf.c: New file.
56575         * lib/unistdio/u16-u16-asnprintf.c: New file.
56576         * lib/unistdio/u16-u16-asprintf.c: New file.
56577         * lib/unistdio/u16-u16-snprintf.c: New file.
56578         * lib/unistdio/u16-u16-sprintf.c: New file.
56579         * lib/unistdio/u16-u16-vasnprintf.c: New file.
56580         * lib/unistdio/u16-u16-vasprintf.c: New file.
56581         * lib/unistdio/u16-u16-vsnprintf.c: New file.
56582         * lib/unistdio/u16-u16-vsprintf.c: New file.
56583         * lib/unistdio/u32-asnprintf.c: New file.
56584         * lib/unistdio/u32-asprintf.c: New file.
56585         * lib/unistdio/u32-printf-parse.c: New file.
56586         * lib/unistdio/u32-snprintf.c: New file.
56587         * lib/unistdio/u32-sprintf.c: New file.
56588         * lib/unistdio/u32-vasnprintf.c: New file.
56589         * lib/unistdio/u32-vasprintf.c: New file.
56590         * lib/unistdio/u32-vsnprintf.c: New file.
56591         * lib/unistdio/u32-vsprintf.c: New file.
56592         * lib/unistdio/u32-u32-asnprintf.c: New file.
56593         * lib/unistdio/u32-u32-asprintf.c: New file.
56594         * lib/unistdio/u32-u32-snprintf.c: New file.
56595         * lib/unistdio/u32-u32-sprintf.c: New file.
56596         * lib/unistdio/u32-u32-vasnprintf.c: New file.
56597         * lib/unistdio/u32-u32-vasprintf.c: New file.
56598         * lib/unistdio/u32-u32-vsnprintf.c: New file.
56599         * lib/unistdio/u32-u32-vsprintf.c: New file.
56600         * tests/unistdio/test-ulc-asnprintf1.c: New file.
56601         * tests/unistdio/test-ulc-asnprintf1.h: New file.
56602         * tests/unistdio/test-ulc-printf1.h: New file.
56603         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
56604         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
56605         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
56606         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
56607         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
56608         * tests/unistdio/test-ulc-vasprintf1.c: New file.
56609         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
56610         * tests/unistdio/test-ulc-vsprintf1.c: New file.
56611         * tests/unistdio/test-u8-asnprintf1.c: New file.
56612         * tests/unistdio/test-u8-asnprintf1.h: New file.
56613         * tests/unistdio/test-u8-printf1.h: New file.
56614         * tests/unistdio/test-u8-vasnprintf1.c: New file.
56615         * tests/unistdio/test-u8-vasnprintf2.c: New file.
56616         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
56617         * tests/unistdio/test-u8-vasnprintf3.c: New file.
56618         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
56619         * tests/unistdio/test-u8-vasprintf1.c: New file.
56620         * tests/unistdio/test-u8-vsnprintf1.c: New file.
56621         * tests/unistdio/test-u8-vsprintf1.c: New file.
56622         * tests/unistdio/test-u16-asnprintf1.c: New file.
56623         * tests/unistdio/test-u16-asnprintf1.h: New file.
56624         * tests/unistdio/test-u16-printf1.h: New file.
56625         * tests/unistdio/test-u16-vasnprintf1.c: New file.
56626         * tests/unistdio/test-u16-vasnprintf2.c: New file.
56627         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
56628         * tests/unistdio/test-u16-vasnprintf3.c: New file.
56629         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
56630         * tests/unistdio/test-u16-vasprintf1.c: New file.
56631         * tests/unistdio/test-u16-vsnprintf1.c: New file.
56632         * tests/unistdio/test-u16-vsprintf1.c: New file.
56633         * tests/unistdio/test-u32-asnprintf1.c: New file.
56634         * tests/unistdio/test-u32-asnprintf1.h: New file.
56635         * tests/unistdio/test-u32-printf1.h: New file.
56636         * tests/unistdio/test-u32-vasnprintf1.c: New file.
56637         * tests/unistdio/test-u32-vasnprintf2.c: New file.
56638         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
56639         * tests/unistdio/test-u32-vasnprintf3.c: New file.
56640         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
56641         * tests/unistdio/test-u32-vasprintf1.c: New file.
56642         * tests/unistdio/test-u32-vsnprintf1.c: New file.
56643         * tests/unistdio/test-u32-vsprintf1.c: New file.
56644         * modules/unistdio/base: New file.
56645         * modules/unistdio/u-printf-args: New file.
56646         * modules/unistdio/ulc-asnprintf: New file.
56647         * modules/unistdio/ulc-asprintf: New file.
56648         * modules/unistdio/ulc-fprintf: New file.
56649         * modules/unistdio/ulc-printf-parse: New file.
56650         * modules/unistdio/ulc-snprintf: New file.
56651         * modules/unistdio/ulc-sprintf: New file.
56652         * modules/unistdio/ulc-vasnprintf: New file.
56653         * modules/unistdio/ulc-vasprintf: New file.
56654         * modules/unistdio/ulc-vfprintf: New file.
56655         * modules/unistdio/ulc-vsnprintf: New file.
56656         * modules/unistdio/ulc-vsprintf: New file.
56657         * modules/unistdio/u8-asnprintf: New file.
56658         * modules/unistdio/u8-asprintf: New file.
56659         * modules/unistdio/u8-printf-parse: New file.
56660         * modules/unistdio/u8-snprintf: New file.
56661         * modules/unistdio/u8-sprintf: New file.
56662         * modules/unistdio/u8-vasnprintf: New file.
56663         * modules/unistdio/u8-vasprintf: New file.
56664         * modules/unistdio/u8-vsnprintf: New file.
56665         * modules/unistdio/u8-vsprintf: New file.
56666         * modules/unistdio/u8-u8-asnprintf: New file.
56667         * modules/unistdio/u8-u8-asprintf: New file.
56668         * modules/unistdio/u8-u8-snprintf: New file.
56669         * modules/unistdio/u8-u8-sprintf: New file.
56670         * modules/unistdio/u8-u8-vasnprintf: New file.
56671         * modules/unistdio/u8-u8-vasprintf: New file.
56672         * modules/unistdio/u8-u8-vsnprintf: New file.
56673         * modules/unistdio/u8-u8-vsprintf: New file.
56674         * modules/unistdio/u16-asnprintf: New file.
56675         * modules/unistdio/u16-asprintf: New file.
56676         * modules/unistdio/u16-printf-parse: New file.
56677         * modules/unistdio/u16-snprintf: New file.
56678         * modules/unistdio/u16-sprintf: New file.
56679         * modules/unistdio/u16-vasnprintf: New file.
56680         * modules/unistdio/u16-vasprintf: New file.
56681         * modules/unistdio/u16-vsnprintf: New file.
56682         * modules/unistdio/u16-vsprintf: New file.
56683         * modules/unistdio/u16-u16-asnprintf: New file.
56684         * modules/unistdio/u16-u16-asprintf: New file.
56685         * modules/unistdio/u16-u16-snprintf: New file.
56686         * modules/unistdio/u16-u16-sprintf: New file.
56687         * modules/unistdio/u16-u16-vasnprintf: New file.
56688         * modules/unistdio/u16-u16-vasprintf: New file.
56689         * modules/unistdio/u16-u16-vsnprintf: New file.
56690         * modules/unistdio/u16-u16-vsprintf: New file.
56691         * modules/unistdio/u32-asnprintf: New file.
56692         * modules/unistdio/u32-asprintf: New file.
56693         * modules/unistdio/u32-printf-parse: New file.
56694         * modules/unistdio/u32-snprintf: New file.
56695         * modules/unistdio/u32-sprintf: New file.
56696         * modules/unistdio/u32-vasnprintf: New file.
56697         * modules/unistdio/u32-vasprintf: New file.
56698         * modules/unistdio/u32-vsnprintf: New file.
56699         * modules/unistdio/u32-vsprintf: New file.
56700         * modules/unistdio/u32-u32-asnprintf: New file.
56701         * modules/unistdio/u32-u32-asprintf: New file.
56702         * modules/unistdio/u32-u32-snprintf: New file.
56703         * modules/unistdio/u32-u32-sprintf: New file.
56704         * modules/unistdio/u32-u32-vasnprintf: New file.
56705         * modules/unistdio/u32-u32-vasprintf: New file.
56706         * modules/unistdio/u32-u32-vsnprintf: New file.
56707         * modules/unistdio/u32-u32-vsprintf: New file.
56708         * modules/unistdio/ulc-asnprintf-tests: New file.
56709         * modules/unistdio/ulc-vasnprintf-tests: New file.
56710         * modules/unistdio/ulc-vasprintf-tests: New file.
56711         * modules/unistdio/ulc-vsnprintf-tests: New file.
56712         * modules/unistdio/ulc-vsprintf-tests: New file.
56713         * modules/unistdio/u8-asnprintf-tests: New file.
56714         * modules/unistdio/u8-vasnprintf-tests: New file.
56715         * modules/unistdio/u8-vasprintf-tests: New file.
56716         * modules/unistdio/u8-vsnprintf-tests: New file.
56717         * modules/unistdio/u8-vsprintf-tests: New file.
56718         * modules/unistdio/u16-asnprintf-tests: New file.
56719         * modules/unistdio/u16-vasnprintf-tests: New file.
56720         * modules/unistdio/u16-vasprintf-tests: New file.
56721         * modules/unistdio/u16-vsnprintf-tests: New file.
56722         * modules/unistdio/u16-vsprintf-tests: New file.
56723         * modules/unistdio/u32-asnprintf-tests: New file.
56724         * modules/unistdio/u32-vasnprintf-tests: New file.
56725         * modules/unistdio/u32-vasprintf-tests: New file.
56726         * modules/unistdio/u32-vsnprintf-tests: New file.
56727         * modules/unistdio/u32-vsprintf-tests: New file.
56728         * MODULES.html.sh (Unicode string functions): Add the new modules.
56729
56730 2007-07-01  Bruno Haible  <bruno@clisp.org>
56731
56732         * lib/sprintf.c (sprintf): Limit the available length estimation,
56733         to avoid address wraparound.
56734         * lib/vsprintf.c (vsprintf): Likewise.
56735         * modules/sprintf-posix (Dependencies): Add stdint.
56736         * modules/vsprintf-posix (Dependencies): Likewise.
56737
56738 2007-07-01  Bruno Haible  <bruno@clisp.org>
56739
56740         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
56741         Windows PATH as well. Conservative double-quoting. Comments.
56742
56743 2007-07-01  Bruno Haible  <bruno@clisp.org>
56744             Eric Blake  <ebb9@byu.net>
56745             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56746
56747         * gnulib-tool (self_abspathname): Fix algorithm to cope with
56748         empty components in $PATH, denoting '.'.
56749
56750 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56751
56752         * gnulib-tool: Fix indentation.
56753         (func_create_megatestdir): Likewise.
56754         Report by Bruno Haible.
56755
56756 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56757
56758         Sync from Automake.
56759         * build-aux/gnupload: Fix shell portability issues with for loops.
56760         Report by Karl Berry.
56761
56762 2007-06-29  Simon Josefsson  <simon@josefsson.org>
56763
56764         * build-aux/maint.mk (POURL): Use translationproject.org.
56765
56766 2007-06-27  Simon Josefsson  <simon@josefsson.org>
56767             Bruno Haible  <bruno@clisp.org>
56768
56769         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
56770         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
56771         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
56772         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
56773         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
56774
56775 2007-06-27  Bruno Haible  <bruno@clisp.org>
56776
56777         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
56778         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
56779
56780 2007-06-26  Karl Berry  <karl@gnu.org>
56781
56782         * MODULES.html.sh: remove xreadlink-with-size.
56783
56784 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
56785
56786         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
56787         method that I hope also handles the double-include problem noted
56788         by Bruno Haible in
56789         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
56790
56791 2007-06-23  Bruno Haible  <bruno@clisp.org>
56792
56793         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56794         Don't let the 'mostlyclean' target fail if the last subdirectory could
56795         not be removed.
56796         Reported by Karl Berry.
56797
56798 2007-06-23  Bruno Haible  <bruno@clisp.org>
56799
56800         * gnulib-tool (echo): Add a speedier workaround for ksh.
56801         * tests/test-echo.sh: Likewise.
56802
56803 2007-06-23  Bruno Haible  <bruno@clisp.org>
56804
56805         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
56806         * tests/test-echo.sh: Likewise.
56807
56808 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56809
56810         * gnulib-tool (IFS): Initialize early, so we don't set it to
56811         empty later.
56812         (self_abspathname): Rewrite algorithm to set it, reindent.
56813         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
56814         (func_create_megatestdir): Merge some sed scripts.
56815
56816 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
56817
56818         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
56819         exposed by Sun Studio 11 cc on Solaris 8.
56820
56821 2007-06-22  Bruno Haible  <bruno@clisp.org>
56822
56823         * gnulib-tool (echo): Ensure the echo primitive does not interpret
56824         backslashes.
56825         * tests/test-echo.sh: New file.
56826
56827 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56828
56829         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
56830         simplify `sed_replace_build_aux' scripts, they are portable but
56831         echoing them with `echo' is not.
56832         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
56833
56834 2007-06-21  Karl Berry  <karl@gnu.org>
56835
56836         * config/srclist.txt: guess we can't handle the licenses via
56837         srclist at the moment.
56838
56839 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
56840
56841         * MODULES.html.sh: Add include_next.
56842         * modules/include_next: New file.
56843
56844 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
56845
56846         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
56847         INCLUDE_NEXT.
56848         (gl_CHECK_NEXT_HEADERS): New macro.
56849         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
56850         the obsolescent gl_ABSOLUTE_HEADER.
56851         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
56852         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
56853         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
56854         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56855         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
56856         * m4/math_h.m4 (gl_MATH_H): Likewise.
56857         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
56858         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
56859         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
56860         * m4/stdint.m4 (gl_STDINT_H): Likewise.
56861         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
56862         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
56863         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
56864         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56865         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56866         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
56867         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
56868         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
56869         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
56870         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
56871         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
56872         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
56873         * m4/inttypes.m4 (gl_INTTYPES_H): Define
56874         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
56875         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
56876         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
56877         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
56878         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
56879         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
56880         * lib/float_.h: Likewise.
56881         * lib/inttypes_.h: Likewise.
56882         * lib/math_.h: Likewise.
56883         * lib/search_.h: Likewise.
56884         * lib/signal_.h: Likewise.
56885         * lib/stdint_.h: Likewise.
56886         * lib/stdio_.h: Likewise.
56887         * lib/stdlib_.h: Likewise.
56888         * lib/string_.h: Likewise.
56889         * lib/sys_stat_.h: Likewise.
56890         * lib/sys_time_.h: Likewise.
56891         * lib/time_.h: Likewise.
56892         * lib/unistd_.h: Likewise.
56893         * lib/wchar_.h: Likewise.
56894         * lib/wctype_.h: Likewise.
56895         * lib/dirent_.h: Likewise.
56896         * lib/iconv_.h: Likewise.
56897         * lib/locale_.h: Likewise.
56898         * lib/netinet_in_.h: Likewise.
56899         * lib/sys_select_.h: Likewise.
56900         * lib/sys_socket_.h: Likewise.
56901         * lib/sysexits_.h: Likewise.
56902         * modules/fcntl (Depends-on): Depend on include_next, not
56903         absolute_header.
56904         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
56905         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
56906         * modules/fchdir: Likewise.
56907         * modules/float: Likewise.
56908         * modules/iconv_open: Likewise.
56909         * modules/inttypes: Likewise.
56910         * modules/locale: Likewise.
56911         * modules/math: Likewise.
56912         * modules/netinet_in: Likewise.
56913         * modules/search: Likewise.
56914         * modules/signal: Likewise.
56915         * modules/stdint: Likewise.
56916         * modules/stdio: Likewise.
56917         * modules/stdlib: Likewise.
56918         * modules/string: Likewise.
56919         * modules/sys_select: Likewise.
56920         * modules/sys_socket: Likewise.
56921         * modules/sys_stat: Likewise.
56922         * modules/sys_time: Likewise.
56923         * modules/sysexits: Likewise.
56924         * modules/time: Likewise.
56925         * modules/unistd: Likewise.
56926         * modules/wchar: Likewise.
56927         * modules/wctype: Likewise.
56928         * modules/sys_stat: Change maintainer to "all".
56929         * modules/unistd: Likewise.
56930
56931 2007-06-20  Karl Berry  <karl@gnu.org>
56932
56933         * config/srclist.txt: track www changes in license files.
56934
56935 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
56936
56937         * build-aux/bootstrap: Remove stray dot.
56938         Make sure build_aux settings are honored when linking
56939         gnulib_extra_files.
56940
56941 2007-06-19  Eric Blake  <ebb9@byu.net>
56942
56943         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
56944         Allow compilation on cygwin.
56945
56946 2007-06-19  Jim Meyering  <jim@meyering.net>
56947
56948         xreadlink-with-size: Remove module.  No longer used.
56949         Ex-callers now use xreadlink or mreadlink-with-size.
56950         * modules/xreadlink-with-size: Remove module.
56951         * lib/xreadlink-with-size.c: Remove file.
56952         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
56953         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
56954         just before the function definition *is* accurate.
56955
56956         Eliminate one way canonicalize_filename_mode could exit.
56957         * lib/canonicalize.c (canonicalize_filename_mode):
56958         Use mreadlink_with_size, not xreadlink_with_size.
56959
56960 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
56961
56962         Detect porting problems to FreeBSD/arm, which has time_t wider than
56963         long int.  Original problem reported for GNU diff by Xin Li in
56964         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
56965         * modules/getdate (Depends-on): Add intprops, verify.
56966         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
56967         is an integer type no wider than long int.
56968
56969 2007-06-18  Jim Meyering  <jim@meyering.net>
56970
56971         New module: mreadlink-with-size.
56972         * MODULES.html.sh: Add mreadlink-with-size.
56973         * modules/mreadlink-with-size: New module
56974         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
56975         not xreadlink-with-size.
56976         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
56977
56978 2007-06-16  Bruno Haible  <bruno@clisp.org>
56979
56980         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
56981         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
56982         Reported by Gary V. Vaughan <gary@gnu.org>.
56983
56984 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
56985
56986         Revamp lchown so that it lives in unistd.h where it belongs.
56987         * lib/lchown.h: Remove.
56988         * lib/dirchownmod.c: Don't include lib/lchown.h.
56989         * lib/fchownat.c: Likewise.
56990         * lib/openat.c: Likewise.
56991         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
56992         does not follow symlinks.
56993         (EOPNOTSUPP): Define if not defined.
56994         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
56995         is defined to 0.
56996         (lchown): New decl.
56997         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
56998         Do not check for lchown decl.
56999         Set REPLACE_LCHOWN.
57000         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
57001         REPLACE_LCHOWN.
57002         * modules/chown: Make it clear it follows symlinks.
57003         * modules/lchown: Make it clear it doesn't follow symlinks.
57004         (Files): Remove lib/lchown.h
57005         (Depends-on): Add unistd.
57006         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
57007         (Include): Include <unistd.h>, not "lchown.h".
57008         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
57009         REPLACE_LCHOWN.
57010
57011 2007-06-15  Jim Meyering  <jim@meyering.net>
57012
57013         Change license (GPL to LGPL) of fsusage and dependents.
57014         * modules/fsusage (License): Change to LGPL.
57015         * modules/full-read (License): Likewise.
57016         * modules/full-write (License): Likewise.
57017         * modules/safe-read (License): Likewise.
57018         * modules/safe-write (License): Likewise.
57019
57020 2007-06-14  Ben Pfaff  <blp@gnu.org>
57021
57022         Missing part of allocsa -> malloca transition.
57023         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
57024         gl_MALLOCA.
57025
57026 2007-06-12  Bruno Haible  <bruno@clisp.org>
57027
57028         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
57029         to ia64, x86_64, i386.
57030         Reported by Eric Blake.
57031
57032 2007-06-12  Bruno Haible  <bruno@clisp.org>
57033
57034         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
57035         cross-compiling to x86_64.
57036
57037 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
57038
57039         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
57040         glitch reported by Ralf Wildenhues in
57041         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
57042
57043         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
57044         Vin Shelton.
57045
57046 2007-06-11  Bruno Haible  <bruno@clisp.org>
57047
57048         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
57049         replacement string.
57050         Reported by Eric Blake.
57051
57052 2007-06-10  Bruno Haible  <bruno@clisp.org>
57053
57054         Prepare vasnprintf code for use with Unicode strings.
57055         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
57056         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
57057         TYPE_U32_STRING.
57058         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
57059         a_u32_string variants.
57060         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
57061         * lib/printf-args.c: Don't include config.h and the specification
57062         header if PRINTF_FETCHARGS is already defined.
57063         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
57064         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
57065         TYPE_U16_STRING, TYPE_U32_STRING.
57066         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
57067         u16_directive, u16_directives, u32_directive, u32_directives): New
57068         types.
57069         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
57070         New declarations.
57071         * lib/printf-parse.c: Don't include config.h and the specification
57072         header if PRINTF_PARSE is already defined. Eliminate the set of
57073         parameters for WIDE_CHAR_VERSION; the user of this file must provide
57074         them now. Include c-ctype.h.
57075         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
57076         directive and CHAR_T_ONLY_ASCII.
57077         * lib/vasnprintf.c: Don't include config.h and the specification header
57078         if VASNPRINTF is already defined.
57079         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
57080         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
57081         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
57082         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
57083         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
57084         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
57085         code accordingly.
57086         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
57087         pad_ourselves also in this case, with the 'c' and 's' directives, and
57088         with a different notion of "width".
57089         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
57090
57091 2007-06-10  Bruno Haible  <bruno@clisp.org>
57092
57093         * modules/unistr/u32-mbsnlen: New file.
57094         * lib/unistr/u32-mbsnlen.c: New file.
57095
57096         * modules/unistr/u16-mbsnlen: New file.
57097         * lib/unistr/u16-mbsnlen.c: New file.
57098
57099         * modules/unistr/u8-mbsnlen: New file.
57100         * lib/unistr/u8-mbsnlen.c: New file.
57101
57102         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
57103         declarations.
57104
57105 2007-06-10  Bruno Haible  <bruno@clisp.org>
57106
57107         * lib/string_.h (mbsnlen): New declaration.
57108         * lib/mbsnlen.c: New file.
57109         * m4/mbsnlen.m4: New file.
57110         * modules/mbsnlen: New file.
57111         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
57112         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
57113         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
57114
57115 2007-06-10  Bruno Haible  <bruno@clisp.org>
57116
57117         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
57118
57119 2007-06-10  Bruno Haible  <bruno@clisp.org>
57120
57121         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
57122         * lib/mbuiter.h: Likewise.
57123
57124 2007-06-10  Bruno Haible  <bruno@clisp.org>
57125
57126         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
57127         declaration.
57128
57129 2007-06-10  Karl Berry  <karl@gnu.org>
57130
57131         * config/srclist.txt: remove gettext entries, Bruno prefers
57132         to update individually.
57133
57134 2007-06-10  Bruno Haible  <bruno@clisp.org>
57135
57136         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
57137         'maxlen'. Ensure only length + width bytes are allocated, not
57138         length + 1 + width.
57139
57140 2007-06-09  Bruno Haible  <bruno@clisp.org>
57141
57142         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
57143         (CHAR_T): Remove macro.
57144         (VASNPRINTF): Update.
57145
57146 2007-06-09  Bruno Haible  <bruno@clisp.org>
57147
57148         * MODULES.html.sh (Unicode string functions): Add the new modules.
57149
57150         * modules/uniconv/u32-conv-to-enc: New file.
57151         * lib/uniconv/u32-conv-to-enc.c: New file.
57152         * modules/uniconv/u32-conv-to-enc-tests: New file.
57153         * tests/uniconv/test-u32-conv-to-enc.c: New file.
57154
57155         * modules/uniconv/u16-conv-to-enc: New file.
57156         * lib/uniconv/u16-conv-to-enc.c: New file.
57157         * lib/uniconv/u-conv-to-enc.h: New file.
57158         * modules/uniconv/u16-conv-to-enc-tests: New file.
57159         * tests/uniconv/test-u16-conv-to-enc.c: New file.
57160
57161         * modules/uniconv/u8-conv-to-enc: New file.
57162         * lib/uniconv/u8-conv-to-enc.c: New file.
57163         * modules/uniconv/u8-conv-to-enc-tests: New file.
57164         * tests/uniconv/test-u8-conv-to-enc.c: New file.
57165
57166         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
57167         u32_conv_to_encoding): New declarations.
57168
57169 2007-06-09  Bruno Haible  <bruno@clisp.org>
57170
57171         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
57172
57173 2007-06-09  Bruno Haible  <bruno@clisp.org>
57174
57175         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
57176         * modules/malloca: Renamed from modules/allocsa, updated.
57177         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
57178         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
57179         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
57180         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
57181         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
57182         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
57183         * modules/xmalloca: Renamed from modules/xallocsa, updated.
57184         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
57185         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
57186         * modules/c-strcasestr (Depends-on): Update.
57187         * lib/c-strcasestr.c: Update.
57188         * modules/c-strstr (Depends-on): Update.
57189         * lib/c-strstr.c: Update.
57190         * modules/canonicalize-lgpl (Depends-on): Update.
57191         * lib/canonicalize-lgpl.c: Update.
57192         * modules/clean-temp (Depends-on): Update.
57193         * lib/clean-temp.c: Update.
57194         * modules/csharpcomp (Depends-on): Update.
57195         * lib/csharpcomp.c: Update.
57196         * modules/csharpexec (Depends-on): Update.
57197         * lib/csharpexec.c: Update.
57198         * modules/javacomp (Depends-on): Update.
57199         * lib/javacomp.c: Update.
57200         * modules/javaexec (Depends-on): Update.
57201         * lib/javaexec.c: Update.
57202         * modules/mbscasestr (Depends-on): Update.
57203         * lib/mbscasestr.c: Update.
57204         * modules/mbsstr (Depends-on): Update.
57205         * lib/mbsstr.c: Update.
57206         * modules/setenv (Depends-on): Update.
57207         * lib/setenv.c: Update.
57208         * modules/strcasestr (Depends-on): Update.
57209         * lib/strcasestr.c: Update.
57210         * modules/striconveha (Depends-on): Update.
57211         * lib/striconveha.c: Update.
57212         * modules/relocatable-prog-wrapper (Files): Update.
57213         * lib/relocwrapper.c: Update.
57214         * build-aux/install-reloc: Update.
57215         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
57216
57217 2007-06-08  Bruno Haible  <bruno@clisp.org>
57218
57219         Port to uClibc.
57220         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
57221         * lib/fpurge.c (fpurge): Likewise.
57222         * lib/freading.c (freading): Likewise.
57223         * lib/fseeko.c (rpl_fseeko): Likewise.
57224         * lib/fseterr.c (fseterr): Likewise.
57225         * lib/fwriting.c (fwriting): Likewise.
57226         * tests/test-fflush.c (main): Avoid a failure on uClibc.
57227
57228 2007-06-08  Bruno Haible  <bruno@clisp.org>
57229
57230         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
57231         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
57232         * modules/gettext (Files): Add m4/intlmacosx.m4.
57233
57234 2007-06-07  Bruno Haible  <bruno@clisp.org>
57235
57236         * modules/localename-tests: New file.
57237         * tests/test-localename.c: New file.
57238
57239         New module 'localename'.
57240         * lib/localename.h: New file.
57241         * lib/localename.c: New file, from GNU gettext.
57242         * m4/localename.m4: New file.
57243         * modules/localename: New file.
57244
57245 2007-06-07  Bruno Haible  <bruno@clisp.org>
57246
57247         Work around the lack of <wchar.h> on some builds of uClibc.
57248         * doc/headers/wchar.texi: Update.
57249         * lib/wchar_.h: Include <wchar.h> only if it exists.
57250         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
57251         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
57252         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
57253         doesn't exist.
57254         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
57255         * modules/mbfile (Depends-on): Add wchar.
57256         * modules/mbiter (Depends-on): Likewise.
57257         * modules/mbuiter (Depends-on): Likewise.
57258         Reported by Simon Josefsson.
57259
57260 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
57261
57262         Work around problem reported by Steven M. Schweda in
57263         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
57264         Tru64 5.1B with the Compaq compiler environment installed declares
57265         an 'isblank' function but does not define it in the C library.
57266         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
57267         * lib/regex_internal.h (isblank): Likewise.
57268         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
57269         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57270
57271 2007-06-05  Bruno Haible  <bruno@clisp.org>
57272
57273         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
57274         ia64.
57275         * modules/printf-safe: New file.
57276         * modules/fprintf-posix (Depends-on): Add printf-safe.
57277         * modules/printf-posix (Depends-on): Likewise.
57278         * modules/snprintf-posix (Depends-on): Likewise.
57279         * modules/sprintf-posix (Depends-on): Likewise.
57280         * modules/vasnprintf-posix (Depends-on): Likewise.
57281         * modules/vasprintf-posix (Depends-on): Likewise.
57282         * modules/vfprintf-posix (Depends-on): Likewise.
57283         * modules/vprintf-posix (Depends-on): Likewise.
57284         * modules/vsnprintf-posix (Depends-on): Likewise.
57285         * modules/vsprintf-posix (Depends-on): Likewise.
57286         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
57287         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
57288         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
57289         "no" on i386, x86_64, ia64.
57290         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
57291         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57292         on i386, x86_64, ia64.
57293         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
57294         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57295         on i386, x86_64, ia64.
57296         * tests/test-vasnprintf-posix.c: Include float.h.
57297         (LDBL80_WORDS): New macro.
57298         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57299         on i386, x86_64, ia64.
57300         * tests/test-vasprintf-posix.c: Include float.h.
57301         (LDBL80_WORDS): New macro.
57302         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
57303         on i386, x86_64, ia64.
57304         * tests/test-snprintf-posix.c: Include float.h.
57305         * tests/test-sprintf-posix.c: Likewise.
57306         * tests/test-vsnprintf-posix.c: Likewise.
57307         * tests/test-vsprintf-posix.c: Likewise.
57308
57309 2007-06-05  Bruno Haible  <bruno@clisp.org>
57310
57311         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
57312         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
57313         non-IEEE numbers on i386, x86_64, ia64.
57314         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
57315         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
57316         * tests/test-isnanl.h: Include float.h.
57317         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
57318
57319 2007-06-05  Bruno Haible  <bruno@clisp.org>
57320
57321         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
57322         also the %a / %A. Handle the %a / %A code before this extra handling.
57323
57324 2007-06-05  Bruno Haible  <bruno@clisp.org>
57325
57326         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
57327         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
57328
57329 2007-06-05  Bruno Haible  <bruno@clisp.org>
57330
57331         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
57332         typo in variable name.
57333
57334 2007-06-05  Eric Blake  <ebb9@byu.net>
57335
57336         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
57337         Reported by Simon Josefsson.
57338
57339 2007-06-04  Bruno Haible  <bruno@clisp.org>
57340
57341         Avoid test failures on some PowerPC platforms.
57342         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
57343         Define differently for PowerPC.
57344         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
57345         Reported by Gary V. Vaughan <gary@gnu.org>.
57346
57347 2007-06-02  Bruno Haible  <bruno@clisp.org>
57348
57349         Fix test-stdint failure on FreeBSD/ia64.
57350         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
57351         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
57352         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
57353         * doc/headers/stdint.texi: Update.
57354
57355 2007-06-01  Bruno Haible  <bruno@clisp.org>
57356
57357         * tests/test-binary-io.c (main): Pass a third argument to open().
57358         Reported by Gary V. Vaughan <gary@gnu.org>.
57359
57360 2007-06-01  Bruno Haible  <bruno@clisp.org>
57361
57362         * doc/functions/frexpl.texi: Update for mingw.
57363
57364 2007-06-01  Bruno Haible  <bruno@clisp.org>
57365
57366         * tests/test-lseek.c (main): Disable test of errno for invalid third
57367         argument.
57368         * doc/functions/lseek.texi: Update.
57369         Reported by Gary V. Vaughan <gary@gnu.org>.
57370
57371 2007-05-28  Bruno Haible  <bruno@clisp.org>
57372
57373         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
57374
57375 2007-05-31  Eric Blake  <ebb9@byu.net>
57376
57377         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
57378         cross compiling.
57379
57380 2007-05-30  Eric Blake  <ebb9@byu.net>
57381         and Bruno Haible  <bruno@clisp.org>
57382
57383         Work around mingw test failures exposed by m4-1.4.9b.
57384         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
57385         * tests/test-unistd.c: Disable uid_t and git_t tests for the
57386         moment.
57387
57388 2007-05-30  Bruno Haible  <bruno@clisp.org>
57389
57390         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
57391         assuming that they are closed. Needed on HP-UX 11.
57392
57393 2007-05-29  Bruno Haible  <bruno@clisp.org>
57394
57395         Fix a problem with #include_next.
57396         * lib/dirent_.h: Split the double-inclusion guard.
57397         * lib/fcntl_.h: Likewise.
57398         * lib/float_.h: Likewise.
57399         * lib/iconv_.h: Likewise.
57400         * lib/inttypes_.h: Likewise.
57401         * lib/locale_.h: Likewise.
57402         * lib/math_.h: Likewise.
57403         * lib/netinet_in_.h: Likewise.
57404         * lib/search_.h: Likewise.
57405         * lib/signal_.h: Likewise.
57406         * lib/stdint_.h: Likewise.
57407         * lib/stdio_.h: Likewise.
57408         * lib/stdlib_.h: Likewise.
57409         * lib/string_.h: Likewise.
57410         * lib/sys_select_.h: Likewise.
57411         * lib/sys_socket_.h: Likewise.
57412         * lib/sys_stat_.h: Likewise.
57413         * lib/sys_time_.h: Likewise.
57414         * lib/sysexits_.h: Likewise.
57415         * lib/time_.h: Likewise.
57416         * lib/unistd_.h: Likewise.
57417         * lib/wchar_.h: Likewise.
57418         * lib/wctype_.h: Likewise.
57419
57420 2007-05-29  Bruno Haible  <bruno@clisp.org>
57421
57422         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
57423         for the moment.
57424
57425 2007-05-29  Bruno Haible  <bruno@clisp.org>
57426
57427         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
57428         invocation.
57429         Reported by Eric Blake.
57430
57431 2007-05-29  Bruno Haible  <bruno@clisp.org>
57432
57433         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
57434         compiling case.
57435
57436 2007-05-29  Eric Blake  <ebb9@byu.net>
57437             Bruno Haible  <bruno@clisp.org>
57438
57439         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
57440         cross compiles.
57441
57442 2007-05-28  Eric Blake  <ebb9@byu.net>
57443
57444         * modules/closein-tests (test_closein_LDADD): Support test on
57445         cygwin with libtool.
57446
57447 2007-05-28  Bruno Haible  <bruno@clisp.org>
57448
57449         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
57450         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57451         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57452         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57453         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57454         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57455         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57456         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57457         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57458
57459 2007-05-28  Eric Blake  <ebb9@byu.net>
57460
57461         Unconditionally include <config.h> in unit tests.
57462         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
57463         * tests/test-allocsa.c, tests/test-arcfour.c,
57464         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
57465         tests/test-array_list.c, tests/test-array_oset.c,
57466         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
57467         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
57468         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
57469         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
57470         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
57471         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
57472         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
57473         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
57474         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
57475         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
57476         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
57477         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
57478         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
57479         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
57480         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
57481         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
57482         test-md5.c, test-memmem.c, test-printf-posix.c,
57483         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
57484         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
57485         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
57486         test-strcasestr.c, test-striconv.c, test-striconveh.c,
57487         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
57488         test-vasnprintf-posix2.c, test-vasnprintf.c,
57489         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
57490         test-vfprintf-posix.c, test-vprintf-posix.c,
57491         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
57492         test-xvasprintf.c: Likewise.
57493
57494 2007-05-28  Bruno Haible  <bruno@clisp.org>
57495
57496         * gnulib-tool (func_import): Remember the --with-tests command-line
57497         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
57498         Reported by Eric Blake.
57499
57500 2007-05-28  Bruno Haible  <bruno@clisp.org>
57501
57502         * modules/ftell-tests: New file.
57503         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
57504         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
57505
57506         * lib/ftell.c: New file.
57507         * modules/ftell: New file.
57508         * m4/ftell.m4: New file.
57509         * doc/functions/ftell.texi: Update.
57510         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
57511         REPLACE_FTELL.
57512         * lib/stdio_.h (rpl_ftell): New declaration.
57513         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
57514         REPLACE_FTELL.
57515
57516 2007-05-28  Eric Blake  <ebb9@byu.net>
57517
57518         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
57519
57520 2007-05-28  Bruno Haible  <bruno@clisp.org>
57521
57522         * modules/fseek-tests: New file.
57523         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
57524         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
57525
57526         * lib/fseek.c: New file.
57527         * modules/fseek: New file.
57528         * m4/fseek.m4: New file.
57529         * doc/functions/fseek.texi: Update.
57530         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
57531         REPLACE_FSEEK.
57532         * lib/stdio_.h (rpl_fseek): New declaration.
57533         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
57534         REPLACE_FSEEK.
57535
57536 2007-05-28  Bruno Haible  <bruno@clisp.org>
57537
57538         * lib/stdio_.h (fflush): More comments.
57539
57540 2007-05-28  Bruno Haible  <bruno@clisp.org>
57541
57542         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
57543         runtime test.
57544
57545 2007-05-28  Eric Blake  <ebb9@byu.net>
57546
57547         Improve lseek module.
57548         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
57549         * lib/unistd_.h (lseek): Scale back link warning message.
57550         * tests/test-lseek.c: Beef up test.
57551         * tests/test-lseek.sh: Exercise more facets of lseek.
57552         Reported by Bruno Haible.
57553
57554 2007-05-28  Bruno Haible  <bruno@clisp.org>
57555
57556         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
57557         to define.
57558
57559 2007-05-27  Bruno Haible  <bruno@clisp.org>
57560
57561         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
57562
57563 2007-05-27  Bruno Haible  <bruno@clisp.org>
57564
57565         * modules/openmp: New file.
57566         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
57567         Noah Misch.
57568
57569 2007-05-26  Bruno Haible  <bruno@clisp.org>
57570
57571         * modules/chdir-long (Depends-on): Add fchdir.
57572         * modules/chdir-safer (Depends-on): Likewise.
57573         * modules/fts (Depends-on): Likewise.
57574         * modules/fts-lgpl (Depends-on): Likewise.
57575         * modules/openat (Depends-on): Likewise.
57576         * modules/savewd (Depends-on): Likewise.
57577
57578 2007-05-24  Eric Blake  <ebb9@byu.net>
57579
57580         Fix lseek on mingw.
57581         * modules/lseek: New module.
57582         * m4/lseek.m4: New file.
57583         * lib/lseek.c: New file.
57584         * modules/lseek-tests: New file.
57585         * tests/test-lseek.c: New file.
57586         * tests/test-lseek.sh: New file.
57587         * MODULES.html.sh: Document lseek module.
57588         * modules/fflush (Depends-on): Add lseek, fseeko.
57589         * modules/fseeko (Depends-on): Likewise.
57590         * modules/ftello (Depends-on): Likewise.
57591         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
57592         broken.
57593         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
57594         broken.
57595         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
57596         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
57597         * lib/ftello.c (rpl_ftello): Likewise.
57598         * tests/test-fseeko.c (main): Test this.
57599         * tests/test-fseeko.sh: Likewise.
57600         * tests/test-ftello.c (main): Likewise.
57601         * tests/test-ftello.sh: Likewise.
57602         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
57603         implies replacing fseek.
57604         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
57605         HAVE_FTELLO.
57606         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
57607         * modules/unistd (Makefile.am): Likewise.
57608         * lib/unistd_.h (lseek): Declare a replacement.
57609         * doc/functions/lseek.texi (lseek): Document this fix.
57610         * doc/functions/fseek.texi (fseek): Likewise.
57611         * doc/functions/ftell.texi (ftell): Likewise.
57612
57613 2007-05-24  Bruno Haible  <bruno@clisp.org>
57614
57615         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
57616         in the printed representation of a NaN.
57617         * tests/test-vasprintf-posix.c (test_function): Likewise.
57618         * tests/test-snprintf-posix.h (test_function): Likewise.
57619         * tests/test-sprintf-posix.h (test_function): Likewise.
57620         Reported by Eric Blake.
57621
57622 2007-05-23  Eric Blake  <ebb9@byu.net>
57623
57624         Fix fseeko/ftello on cygwin 1.5.24.
57625         * doc/functions/fseeko.texi (fseeko): Document the fix.
57626         * doc/functions/ftello.texi (ftello): Document the fix.
57627         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
57628         * doc/functions/stdout.text (stdout): New file.
57629         * doc/functions/stderr.text (stderr): New file.
57630         * doc/gnulib.texi (Function Substitutes): Use new files.
57631         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
57632         prior to 1.7.0.
57633         * tests/test-ftello.c (main): Likewise for ftello.
57634         * tests/test-fseeko.sh: New file.
57635         * tests/test-ftello.sh: New file.
57636         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
57637         with seekable stdin.
57638         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
57639         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
57640         (gl_REPLACE_FSEEKO): New macro.
57641         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
57642         * modules/fseeko (Files): Distribute fseeko.c.
57643         * modules/ftello (Files): Distribute ftello.c.
57644         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
57645         mode.
57646         * lib/ftello.c (rpl_ftello): New file.
57647         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
57648         fseeko, ftello.
57649         (gl_STDIN_LARGE_OFFSET): New macro.
57650         * modules/stdio (Makefile.am): Perform the replacement.
57651         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
57652
57653 2007-05-23  Bruno Haible  <bruno@clisp.org>
57654
57655         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
57656         GNULIB_POSIXCHECK is defined.
57657
57658 2007-05-21  Bruno Haible  <bruno@clisp.org>
57659
57660         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
57661         Check also the output for NaN arguments. When cross-compiling, guess
57662         no on IRIX.
57663         * lib/vasnprintf.c: Update comments.
57664         * tests/test-vasnprintf-posix.c (strisnan): New function.
57665         (test_function): Use it.
57666         * tests/test-vasprintf-posix.c (strisnan): New function.
57667         (test_function): Use it.
57668         * tests/test-snprintf-posix.h (strisnan): New function.
57669         (test_function): Use it.
57670         * tests/test-sprintf-posix.h (strisnan): New function.
57671         (test_function): Use it.
57672         Reported by Eric Blake.
57673
57674 2007-05-20  Bruno Haible  <bruno@clisp.org>
57675
57676         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
57677         numbers that fails on BeOS.
57678         * doc/functions/frexpl.texi: Update.
57679
57680 2007-05-20  Jim Meyering  <jim@meyering.net>
57681
57682         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
57683         forced upon us by glibc-2.6.
57684
57685 2007-05-20  Bruno Haible  <bruno@clisp.org>
57686
57687         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
57688         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
57689         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
57690         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
57691         NEED_PRINTF_INFINITE.
57692         (is_infinitel): New function.
57693         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
57694         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
57695         gl_PREREQ_VASNPRINTF_INFINITE.
57696         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
57697         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57698         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
57699         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
57700         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
57701         gl_PREREQ_VASNPRINTF_INFINITE.
57702         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57703         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57704         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57705         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57706         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57707         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57708         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57709         * doc/functions/fprintf.texi: Update.
57710         * doc/functions/printf.texi: Update.
57711         * doc/functions/snprintf.texi: Update.
57712         * doc/functions/sprintf.texi: Update.
57713         * doc/functions/vfprintf.texi: Update.
57714         * doc/functions/vprintf.texi: Update.
57715         * doc/functions/vsnprintf.texi: Update.
57716         * doc/functions/vsprintf.texi: Update.
57717
57718 2007-05-20  Bruno Haible  <bruno@clisp.org>
57719
57720         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
57721         was not found in libc.
57722         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
57723
57724 2007-05-20  Bruno Haible  <bruno@clisp.org>
57725
57726         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
57727         printed as "-nan" instead of "nan".
57728         * tests/test-vasprintf-posix.c (test_function): Likewise.
57729         * tests/test-snprintf-posix.h (test_function): Likewise.
57730         * tests/test-sprintf-posix.h (test_function): Likewise.
57731         Needed for HP-UX 11.
57732
57733 2007-05-20  Jim Meyering  <jim@meyering.net>
57734
57735         Fix buggy test for the fchownat-deref bug.
57736         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
57737         symlink required for the run-test.  Without it, this test would
57738         always declare that fchownat doesn't work, and client code would
57739         unnecessarily use the replacement function with fixed libc.
57740         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
57741         Reported by Greg Schafer.
57742
57743 2007-05-19  Bruno Haible  <bruno@clisp.org>
57744
57745         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
57746         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
57747         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
57748         Needed for IRIX 6.5 and Solaris 2.5.1.
57749
57750 2007-05-19  Bruno Haible  <bruno@clisp.org>
57751
57752         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
57753         (test_function): Skip tests involving -0.0 on platforms where
57754         -0.0 = 0.0.
57755         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
57756         (test_function): Skip tests involving -0.0 on platforms where
57757         -0.0 = 0.0.
57758         * tests/test-snprintf-posix.h (have_minus_zero): New function.
57759         (test_function): Skip tests involving -0.0 on platforms where
57760         -0.0 = 0.0.
57761         * tests/test-sprintf-posix.h (have_minus_zero): New function.
57762         (test_function): Skip tests involving -0.0 on platforms where
57763         -0.0 = 0.0.
57764         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
57765         tests.
57766         * tests/test-printf-posix.h (test_function): Likewise.
57767         * tests/test-printf-posix.output: Remove all -0.0 related results.
57768         Needed for IRIX 6.5.
57769
57770 2007-05-19  Bruno Haible  <bruno@clisp.org>
57771
57772         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
57773         printed as "nan0x7fffffff" instead of "nan".
57774         * tests/test-vasprintf-posix.c (test_function): Likewise.
57775         * tests/test-snprintf-posix.h (test_function): Likewise.
57776         * tests/test-sprintf-posix.h (test_function): Likewise.
57777         * tests/test-fprintf-posix.h (NaN): Remove macro.
57778         (test_function): Remove all NaN related tests.
57779         * tests/test-printf-posix.h (NaN): Remove macro.
57780         (test_function): Remove all NaN related tests.
57781         * tests/test-printf-posix.output: Remove all NaN related results.
57782         Needed for IRIX 6.5.
57783
57784 2007-05-19  Bruno Haible  <bruno@clisp.org>
57785
57786         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
57787         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
57788
57789 2007-05-19  Bruno Haible  <bruno@clisp.org>
57790
57791         * lib/float_.h: New file.
57792         * m4/float_h.m4: New file.
57793         * modules/float: New file.
57794         * modules/isnanl (Dependencies): Add float.
57795         * modules/isnanl-nolibm (Dependencies): Likewise.
57796         * modules/mathl (Dependencies): Likewise.
57797         * modules/printf-frexpl (Dependencies): Likewise.
57798         * modules/signbit (Dependencies): Likewise.
57799         * modules/vasnprintf (Dependencies): Likewise.
57800         * doc/headers/float.texi: Update.
57801
57802 2007-05-19  Jim Meyering  <jim@meyering.net>
57803
57804         * lib/utimens.c (gl_futimens): Rename from futimens,
57805         now that glibc-2.6 declares futimens.
57806         * lib/utimens.h: Likewise.
57807
57808 2007-05-19  Bruno Haible  <bruno@clisp.org>
57809
57810         Avoid test failures on mingw.
57811         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
57812         * tests/test-printf-posix.sh: Likewise.
57813         * tests/test-vfprintf-posix.sh: Likewise.
57814         * tests/test-vprintf-posix.sh: Likewise.
57815
57816 2007-05-19  Bruno Haible  <bruno@clisp.org>
57817
57818         Fix *printf result for NaN, Inf, -0.0 on mingw.
57819         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
57820         * lib/vasnprintf.c: Include math.h and isnan.h.
57821         (is_infinite_or_zero): New function.
57822         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
57823         values in the %f, %F, %e, %E, %g, %G directives.
57824         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
57825         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57826         gl_PRINTF_INFINITE and test its result. Invoke
57827         gl_PREREQ_VASNPRINTF_INFINITE.
57828         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57829         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57830         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57831         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57832         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57833         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57834         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57835         * doc/functions/fprintf.texi: Update.
57836         * doc/functions/printf.texi: Update.
57837         * doc/functions/snprintf.texi: Update.
57838         * doc/functions/sprintf.texi: Update.
57839         * doc/functions/vfprintf.texi: Update.
57840         * doc/functions/vprintf.texi: Update.
57841         * doc/functions/vsnprintf.texi: Update.
57842         * doc/functions/vsprintf.texi: Update.
57843
57844 2007-05-19  Bruno Haible  <bruno@clisp.org>
57845
57846         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
57847         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
57848         Instead of multiplying with 10^k, set extra_zeroes to k.
57849         (scale10_round_long_double): Remove function.
57850
57851 2007-05-18  Bruno Haible  <bruno@clisp.org>
57852
57853         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
57854         introduced on 2007-05-06.
57855
57856 2007-05-18  Bruno Haible  <bruno@clisp.org>
57857
57858         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
57859         %g directives.
57860         * tests/test-vasprintf-posix.c (test_function): Likewise.
57861         * tests/test-snprintf-posix.h (test_function): Likewise.
57862         * tests/test-sprintf-posix.h (test_function): Likewise.
57863
57864 2007-05-18  Bruno Haible  <bruno@clisp.org>
57865
57866         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
57867         (strmatch): New function.
57868         (test_function): Test the %f directive on numbers of various exponents.
57869         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
57870         (strmatch): New function.
57871         (test_function): Test the %f directive on numbers of various exponents.
57872         * tests/test-snprintf-posix.h (strmatch): New function.
57873         (test_function): Test the %f directive on numbers of various exponents.
57874         * tests/test-sprintf-posix.h (strmatch): New function.
57875         (test_function): Test the %f directive on numbers of various exponents.
57876         * tests/test-snprintf-posix.c (SIZEOF): New macro.
57877         * tests/test-sprintf-posix.c (SIZEOF): New macro.
57878         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
57879         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
57880
57881 2007-05-18  Bruno Haible  <bruno@clisp.org>
57882
57883         Add support for 'long double' number output.
57884         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
57885         * lib/vasnprintf.c: Include math.h and float+.h.
57886         (mp_limb_t): New type.
57887         (GMP_LIMB_BITS): New macro.
57888         (mp_twolimb_t): New type.
57889         (GMP_TWOLIMB_BITS): New macro.
57890         (mpn_t): New type.
57891         (multiply, divide, convert_to_decimal, decode_long_double,
57892         scale10_round_long_double, scale10_round_decimal_long_double,
57893         floorlog10l): New functions.
57894         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
57895         for the %f, %F, %e, %E, %g, %G directives.
57896         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
57897         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57898         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
57899         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
57900         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57901         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57902         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57903         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57904         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57905         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57906         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57907         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
57908         * modules/snprintf-posix (Depends-on): Likewise.
57909         * modules/sprintf-posix (Depends-on): Likewise.
57910         * modules/vasnprintf-posix (Depends-on): Likewise.
57911         * modules/vasprintf-posix (Depends-on): Likewise.
57912         * modules/vfprintf-posix (Depends-on): Likewise.
57913         * modules/vsnprintf-posix (Depends-on): Likewise.
57914         * modules/vsprintf-posix (Depends-on): Likewise.
57915         * modules/vasnprintf (Files): Add lib/float+.h.
57916         * doc/functions/fprintf.texi: Update.
57917         * doc/functions/printf.texi: Update.
57918         * doc/functions/snprintf.texi: Update.
57919         * doc/functions/sprintf.texi: Update.
57920         * doc/functions/vfprintf.texi: Update.
57921         * doc/functions/vprintf.texi: Update.
57922         * doc/functions/vsnprintf.texi: Update.
57923         * doc/functions/vsprintf.texi: Update.
57924
57925 2007-05-18  Bruno Haible  <bruno@clisp.org>
57926
57927         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
57928
57929 2007-05-18  Bruno Haible  <bruno@clisp.org>
57930
57931         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
57932         for printing 64-bit integers. Needed for mingw.
57933
57934 2007-05-18  Bruno Haible  <bruno@clisp.org>
57935
57936         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
57937         gl_FUNC_FREXPL_WORKS.
57938         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
57939
57940 2007-05-18  Bruno Haible  <bruno@clisp.org>
57941
57942         * modules/frexpl-nolibm-tests: New file.
57943
57944         * modules/frexpl-nolibm: New file.
57945         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
57946
57947 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
57948
57949         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
57950         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
57951         GCC 4.2, which otherwise issues a lot of warnings.
57952         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
57953         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
57954         Likewise.
57955         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
57956         * modules/iconv_open (iconv.h): Likewise.
57957         * modules/locale (locale.h): Likewise.
57958         * modules/netinet_in (netinet/in.h): Likewise.
57959         * modules/sys_select (sys_select.h): Likewise.
57960         * modules/sys_socket (sys/socket.h): Likewise.
57961         * modules/sys_stat (sys/stat.h): Likewise.
57962         * modules/sysexits (sysexits.h): Likewise.
57963         * modules/unistd (unistd.h): Likewise.
57964
57965 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57966
57967         * modules/closein-tests (Makefile.am): Distribute
57968         `test-closein.sh'.
57969
57970 2007-05-17  Bruno Haible  <bruno@clisp.org>
57971
57972         * tests/test-printf-posix.output: Renamed from
57973         tests/test-fprintf-posix.out.
57974         * modules/fprintf-posix-tests: Update.
57975         * modules/printf-posix-tests: Update.
57976         * modules/vfprintf-posix-tests: Update.
57977         * modules/vprintf-posix-tests: Update.
57978         * tests/test-fprintf-posix.sh: Update.
57979         * tests/test-printf-posix.sh: Update.
57980         * tests/test-vfprintf-posix.sh: Update.
57981         * tests/test-vprintf-posix.sh: Update.
57982         Reported by Ralf Wildenhues.
57983
57984 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
57985
57986         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
57987         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
57988         GCC 4.2, which otherwise issues a lot of warnings.
57989         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
57990         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
57991         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
57992         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
57993         it should no longer be needed.
57994         * lib/string_.h: Likewise.
57995         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
57996         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
57997         * modules/inttypes (inttypes.h): Likewise.
57998         * modules/math (math.h): Likewise.
57999         * modules/search (search.h): Likewise.
58000         * modules/signal (signal.h): Likewise.
58001         * modules/stdint (stdint.h): Likewise.
58002         * modules/stdio (stdio.h): Likewise.
58003         * modules/stdlib (stdlib.h): Likewise.
58004         * modules/string (string.h): Likewise.
58005         * modules/sys_time (sys/time.h): Likewise.
58006         * modules/time (time.h): Likewise.
58007         * modules/wchar (wchar.h): Likewise.
58008         * modules/wctype (wtype.h): Likewise.
58009
58010 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58011
58012         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
58013
58014 2007-05-13  Bruno Haible  <bruno@clisp.org>
58015
58016         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
58017         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58018         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
58019         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
58020         (gl_PREREQ_STRTOK_R): Don't require it here.
58021
58022 2007-05-13  Bruno Haible  <bruno@clisp.org>
58023
58024         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
58025         when used in C++ mode.
58026
58027 2007-05-12  Bruno Haible  <bruno@clisp.org>
58028
58029         * lib/linebuffer.h: Tweak doc.
58030         * lib/linebuffer.c: Likewise.
58031
58032 2007-05-12  James Youngman  <jay@gnu.org>
58033
58034         * lib/linebuffer.c (readlinebuffer_delim): New function,
58035         like readlinebuffer, but use a caller-specified delimiter.
58036         (readlinebuffer): Just call readlinebuffer_delim with '\n'
58037         as the delimiter.
58038         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
58039
58040 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58041
58042         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
58043         * modules/openat (Files): Remove openat-die.c.
58044         (Depends-on): Add openat-die.
58045         * modules/openat-die: New module.
58046
58047 2007-05-06  Bruno Haible  <bruno@clisp.org>
58048
58049         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
58050         Update with info about Cygwin.
58051         * doc/functions/fprintf.texi: Update.
58052         * doc/functions/printf.texi: Update.
58053         * doc/functions/snprintf.texi: Update.
58054         * doc/functions/sprintf.texi: Update.
58055         * doc/functions/vfprintf.texi: Update.
58056         * doc/functions/vprintf.texi: Update.
58057         * doc/functions/vsnprintf.texi: Update.
58058         * doc/functions/vsprintf.texi: Update.
58059         Reported by Eric Blake.
58060
58061 2007-05-06  Bruno Haible  <bruno@clisp.org>
58062
58063         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
58064         padding ourselves for the floating-point directives.
58065         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
58066         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
58067         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58068         gl_PRINTF_FLAG_ZERO and test its result. Invoke
58069         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
58070         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58071         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
58072         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58073         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58074         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58075         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58076         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58077         * tests/test-snprintf-posix.h (test_function): Also check the width
58078         and some flags in the %f directive.
58079         * tests/test-sprintf-posix.h (test_function): Likewise.
58080         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58081         * tests/test-vasprintf-posix.c (test_function): Likewise.
58082         * doc/functions/fprintf.texi: Update.
58083         * doc/functions/printf.texi: Update.
58084         * doc/functions/snprintf.texi: Update.
58085         * doc/functions/sprintf.texi: Update.
58086         * doc/functions/vfprintf.texi: Update.
58087         * doc/functions/vprintf.texi: Update.
58088         * doc/functions/vsnprintf.texi: Update.
58089         * doc/functions/vsprintf.texi: Update.
58090
58091 2007-05-06  Bruno Haible  <bruno@clisp.org>
58092
58093         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
58094         pass the ' flag character to sprintf or snprintf.
58095         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
58096         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
58097         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58098         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
58099         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
58100         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58101         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
58102         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58103         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58104         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58105         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58106         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58107         * tests/test-snprintf-posix.h (test_function): Also check the grouping
58108         flag.
58109         * tests/test-sprintf-posix.h (test_function): Likewise.
58110         * tests/test-vasnprintf-posix.c (test_function): Likewise.
58111         * tests/test-vasprintf-posix.c (test_function): Likewise.
58112         * doc/functions/fprintf.texi: Update.
58113         * doc/functions/printf.texi: Update.
58114         * doc/functions/snprintf.texi: Update.
58115         * doc/functions/sprintf.texi: Update.
58116         * doc/functions/vfprintf.texi: Update.
58117         * doc/functions/vprintf.texi: Update.
58118         * doc/functions/vsnprintf.texi: Update.
58119         * doc/functions/vsprintf.texi: Update.
58120
58121 2007-05-01  Bruno Haible  <bruno@clisp.org>
58122
58123         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
58124
58125 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
58126
58127         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
58128         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
58129
58130 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
58131
58132         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
58133         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
58134         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
58135
58136 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
58137
58138         * lib/argp-help.c (struct hol_entry): New member `ord'.
58139         (HOL_ENTRY_PTRCMP): Use ord for comparison
58140         (hol_sort): Initialize ord.
58141
58142 2007-05-01  Bruno Haible  <bruno@clisp.org>
58143
58144         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
58145         Reported by Eric Blake.
58146         * doc/gnulib.texi (Function Substitutes): Update.
58147
58148 2007-05-01  Bruno Haible  <bruno@clisp.org>
58149
58150         * doc/functions.texi: Remove file, now redundant through
58151         doc/functions/*.texi.
58152
58153 2007-05-01  Bruno Haible  <bruno@clisp.org>
58154
58155         * modules/argp (Depends-on): Add sleep.
58156
58157 2007-05-01  Bruno Haible  <bruno@clisp.org>
58158
58159         * modules/sleep-tests: New file.
58160         * tests/test-sleep.c: New file.
58161
58162         * modules/sleep: New file.
58163         * lib/sleep.c: New file.
58164         * m4/sleep.m4: New file.
58165         * lib/unistd_.h (sleep): New declaration.
58166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
58167         HAVE_SLEEP.
58168         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
58169         * doc/functions/sleep.texi: Document the sleep module.
58170
58171 2007-05-01  Bruno Haible  <bruno@clisp.org>
58172
58173         * lib/sigprocmask.h: Remove file.
58174         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
58175         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
58176         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
58177         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
58178         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
58179         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
58180         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
58181         HAVE_SIGSET_T as a shell variable.
58182         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
58183         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
58184         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
58185         (Depends-on): Add signal. Remove verify.
58186         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
58187         (Include): Mention <signal.h> instead of sigprocmask.h.
58188         * NEWS: Mention the change.
58189         * lib/fatal-signal.c: Don't include sigprocmask.h.
58190
58191 2007-05-01  Bruno Haible  <bruno@clisp.org>
58192
58193         * modules/signal: New file.
58194         * lib/signal_.h: New file.
58195         * m4/signal_h.m4: New file.
58196
58197 2007-05-01  Bruno Haible  <bruno@clisp.org>
58198
58199         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
58200         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
58201         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
58202         HAVE_WCTYPE_CTMP_BUG into wctype.h.
58203
58204 2007-05-01  Bruno Haible  <bruno@clisp.org>
58205
58206         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
58207         configure time.
58208         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
58209         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
58210         * modules/sys_stat (Makefile.am): Substitute their values into
58211         sys/stat.h.
58212
58213 2007-05-01  Bruno Haible  <bruno@clisp.org>
58214
58215         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
58216         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
58217         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
58218
58219 2007-05-01  Bruno Haible  <bruno@clisp.org>
58220
58221         * doc/header/assert.texi: Undo last change: don't mention the gnulib
58222         'assert' module here.
58223
58224 2007-05-01  Bruno Haible  <bruno@clisp.org>
58225
58226         * doc/functions/*.texi: New files.
58227         * doc/functions/google-ranking.txt: New file.
58228         * doc/gnulib.texi (Function Substitutes): New chapter.
58229         (ctime, inet_ntoa): Remove sections.
58230         * doc/ctime.texi: Remove file.
58231         * doc/inet_ntoa.texi: Remove file.
58232         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
58233         dependencies.
58234         (%.info): New rule, specifying a --reference-limit.
58235
58236 2007-05-01  Bruno Haible  <bruno@clisp.org>
58237
58238         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
58239
58240 2007-05-01  Bruno Haible  <bruno@clisp.org>
58241
58242         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
58243         the portability of 'mkdir' to mingw systems.
58244
58245 2007-05-01  Bruno Haible  <bruno@clisp.org>
58246
58247         * doc/headers/google-ranking.txt: New file.
58248
58249 2007-04-30  Eric Blake  <ebb9@byu.net>
58250
58251         Prefer fseeko to fseek.
58252         * modules/getpass (Depends-on): Add fseeko.
58253         * lib/getpass.c (getpass): Use fseeko, not fseek.
58254
58255 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
58256
58257         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
58258         assumes the sorting is stable, while most qsort implementations
58259         are not.  Use argument addresses to ensure they never compare as
58260         equal.
58261
58262         * tests/test-argp-2.sh (usage-indent test): Fix output
58263         (func_compare): Restore diff options
58264         * tests/test-argp.c: Restore #include "progname.h"
58265
58266 2007-04-29  Bruno Haible  <bruno@clisp.org>
58267
58268         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
58269         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58270         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
58271         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58272         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
58273         (configure.ac): Define CHECK_SNPRINTF_POSIX.
58274         (TESTS, check_PROGRAMS): Add test-snprintf.
58275         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
58276         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
58277         (TESTS, check_PROGRAMS): Add test-vsnprintf.
58278         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
58279         assertions that fail on HP-UX, OSF/1, or IRIX.
58280         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
58281
58282 2007-04-29  Bruno Haible  <bruno@clisp.org>
58283
58284         * MODULES.html.sh (posix_functions): Remove 'contents'.
58285
58286 2007-04-29  Karl Berry  <karl@gnu.org>
58287
58288         * config/srclist.txt (gendocs_template_min): new entry.
58289
58290 2007-04-29  Bruno Haible  <bruno@clisp.org>
58291
58292         Work around fpurge bug on BSD systems.
58293         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
58294         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
58295         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
58296         fpurge to rpl_fpurge if the system already has this function.
58297         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
58298         the case where the system already has this function. Correct invariants
58299         on BSD systems.
58300         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
58301         BSD systems.
58302
58303 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
58304
58305         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
58306         proposed by Sven Verdoolaege.
58307
58308         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
58309         options.
58310         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
58311         (usage and help tests): Update
58312
58313 2007-04-29  Bruno Haible  <bruno@clisp.org>
58314
58315         * tests/test-fflush.c (main): Use a file of size 17, not 10.
58316         Print more information in case of failure. Disable a test on BeOS.
58317
58318 2007-04-29  Bruno Haible  <bruno@clisp.org>
58319
58320         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
58321         This helps debugging on systems on which no gdb is available.
58322
58323 2007-04-29  Bruno Haible  <bruno@clisp.org>
58324
58325         * lib/freading.h: Improve comments.
58326         * lib/fwriting.h: Likewise.
58327         * tests/test-freading.c (main): Don't check freading immediately after
58328         repositioning. Needed for glibc.
58329
58330 2007-04-29  Bruno Haible  <bruno@clisp.org>
58331
58332         * lib/freading.c (freading): Trivial simplification.
58333
58334 2007-04-28  Bruno Haible  <bruno@clisp.org>
58335
58336         * tests/test-fwriting.c (main): Also test the interaction between
58337         fflush and fwriting.
58338         * modules/fwriting-tests (Depends-on): Add fflush.
58339
58340         * tests/test-freading.c (main): Also test the interaction between
58341         fflush and freading.
58342         * modules/freading-tests (Depends-on): Add fflush.
58343
58344 2007-04-28  Bruno Haible  <bruno@clisp.org>
58345
58346         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
58347         fseeko and ftello.
58348         Suggested by Eric Blake.
58349
58350 2007-04-28  Jim Meyering  <jim@meyering.net>
58351
58352         Avoid false-negative in gl_STDINT_H's C99 conformance test.
58353         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
58354         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
58355
58356 2007-04-27  Eric Blake  <ebb9@byu.net>
58357
58358         * doc/headers/assert.texi (assert.h): Document assert module use.
58359
58360 2007-04-27  Bruno Haible  <bruno@clisp.org>
58361
58362         * doc/headers/*.texi: New files.
58363         * doc/gnulib.texi (Header File Substitutes): New chapter.
58364         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
58365         dependencies.
58366         (standards.info ,standards.html, standards.dvi): Update dependencies.
58367         (mostlyclean, clean): New targets.
58368
58369 2007-04-27  Bruno Haible  <bruno@clisp.org>
58370
58371         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
58372         * modules/sysexits (Files, Makefile.am): Update.
58373
58374         * lib/sys_socket_.h: Renamed from lib/socket_.h.
58375         * modules/sys_socket (Files, Makefile.am): Update.
58376
58377         * lib/sys_stat_.h: Renamed from lib/stat_.h.
58378         * modules/sys_stat (Files, Makefile.am): Update.
58379
58380 2007-04-27  Eric Blake  <ebb9@byu.net>
58381
58382         * lib/freading.h: Improve comments.
58383         * lib/fwriting.h: Likewise.
58384         * lib/fflush.c: Likewise.
58385
58386         Fix closein for mingw.
58387         * modules/closein-tests: Add tests for closein.
58388         * tests/test-closein.c: New file.
58389         * tests/test-closein.sh: Likewise.
58390         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
58391         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
58392
58393 2007-04-27  Bruno Haible  <bruno@clisp.org>
58394
58395         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
58396         version is < 6.
58397         * lib/math_.h [__DECC]: Likewise.
58398         * lib/stdio_.h [__DECC]: Likewise.
58399         * lib/stdlib_.h [__DECC]: Likewise.
58400         * lib/string_.h [__DECC]: Likewise.
58401         * lib/time_.h [__DECC]: Likewise.
58402         * lib/wchar_.h [__DECC]: Likewise.
58403         * lib/wctype_.h [__DECC]: Likewise.
58404
58405 2007-04-27  Bruno Haible  <bruno@clisp.org>
58406
58407         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
58408
58409 2007-04-27  Bruno Haible  <bruno@clisp.org>
58410
58411         * lib/fflush.c: Add comments.
58412         * modules/fpurge-tests (Depends-on): Add fflush.
58413         * modules/freadable-tests (Depends-on): Likewise.
58414         * modules/fwritable-tests (Depends-on): Likewise.
58415
58416 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
58417
58418         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
58419         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
58420         Report by Bruno Haible <bruno@clisp.org>.
58421
58422 2007-04-26  Eric Blake  <ebb9@byu.net>
58423
58424         Fix fflush on mingw.
58425         * modules/fflush (Depends-on): Add freading.
58426         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
58427         but unread data.
58428
58429 2007-04-26  Eric Blake  <ebb9@byu.net>
58430         and Bruno Haible  <bruno@clisp.org>
58431
58432         Implement freading and fwriting.
58433         * lib/freading.c: New file.
58434         * lib/freading.h: Likewise.
58435         * m4/freading.m4: Likewise.
58436         * modules/freading: Likewise.
58437         * modules/freading-tests: Likewise.
58438         * tests/test-freading.c: Likewise.
58439         * lib/fwriting.c: New file.
58440         * lib/fwriting.h: Likewise.
58441         * m4/fwriting.m4: Likewise.
58442         * modules/fwriting: Likewise.
58443         * modules/fwriting-tests: Likewise.
58444         * tests/test-fwriting.c: Likewise.
58445         * MODULES.html.sh (File stream based Input/Output): Mention them.
58446
58447 2007-04-26  Bruno Haible  <bruno@clisp.org>
58448
58449         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
58450         'long' when we assume it.
58451         Suggested by Eric Blake.
58452
58453 2007-04-26  Bruno Haible  <bruno@clisp.org>
58454
58455         Ensure fseeko, ftello are declared on glibc systems.
58456         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
58457         * modules/fseeko (configure.ac-early): Likewise.
58458         * modules/ftello (configure.ac-early): Likewise.
58459         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
58460         AC_FUNC_FSEEKO for this.
58461         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
58462         (gl_CHECK_FSEEKO): Remove macro.
58463
58464 2007-04-26  Bruno Haible  <bruno@clisp.org>
58465
58466         * tests/test-fflush.c (main): Also check the ftell result after
58467         fflush and fseek/fseeko.
58468         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
58469         file descriptor position cache in the stream.
58470         * lib/fseeko.c (rpl_fseeko): Likewise.
58471
58472 2007-04-26  Bruno Haible  <bruno@clisp.org>
58473
58474         * modules/fflush-tests (Depends-on): Add fseeko.
58475
58476 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
58477             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58478
58479         * lib/argz_.h: ensure error_t definition is obtained in same
58480         mechanism system argz.h would have.
58481         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
58482         argz facilities are known bad.  Err on the side of caution if
58483         cross-compiling.
58484
58485 2007-04-25  Eric Blake  <ebb9@byu.net>
58486
58487         * lib/fpurge.c (includes): Use stdlib.h for free.
58488         * tests/test-fflush.c (main): Also test fflush-fseeko.
58489
58490 2007-04-25  Bruno Haible  <bruno@clisp.org>
58491
58492         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
58493         * lib/fseeko.c: New file.
58494         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
58495         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
58496         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
58497         gl_FUNC_FSEEKO.
58498         (gl_FUNC_FSEEKO): Invoke it.
58499         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
58500         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
58501         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
58502
58503 2007-04-25  Bruno Haible  <bruno@clisp.org>
58504
58505         * modules/fflush (Depends-on): Add ftello.
58506
58507 2007-04-25  Bruno Haible  <bruno@clisp.org>
58508
58509         * modules/ftello-tests: New file.
58510         * tests/test-ftello.c: New file.
58511
58512         * modules/ftello: New file.
58513         * m4/ftello.m4: New file.
58514         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
58515         HAVE_FTELLO.
58516         * lib/stdio_.h (ftello): New declaration.
58517         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
58518         HAVE_FTELLO.
58519
58520 2007-04-25  Bruno Haible  <bruno@clisp.org>
58521
58522         * modules/fseeko-tests: New file.
58523         * tests/test-fseeko.c: New file.
58524
58525         * modules/fseeko: New file.
58526         * m4/fseeko.m4: New file.
58527         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
58528         HAVE_FSEEKO.
58529         * lib/stdio_.h (fseeko): New declaration.
58530         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
58531         HAVE_FSEEKO.
58532
58533 2007-04-25  Bruno Haible  <bruno@clisp.org>
58534
58535         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
58536
58537 2007-04-25  Bruno Haible  <bruno@clisp.org>
58538
58539         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
58540         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
58541         * tests/test-unistd.c: Likewise.
58542         * tests/test-fcntl.c: Likewise.
58543
58544 2007-04-23  Eric Blake  <ebb9@byu.net>
58545
58546         * lib/fflush.c: Fix missing include.
58547         Reported by Bruno Haible.
58548
58549 2007-04-23  Bruno Haible  <bruno@clisp.org>
58550
58551         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
58552         Reported by Eric Blake.
58553
58554 2007-04-23  Bruno Haible  <bruno@clisp.org>
58555
58556         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
58557
58558 2007-04-23  Bruno Haible  <bruno@clisp.org>
58559
58560         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
58561
58562 2007-04-23  Bruno Haible  <bruno@clisp.org>
58563
58564         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
58565         Needed on HP-UX 11.
58566
58567 2007-04-16  Eric Blake  <ebb9@byu.net>
58568
58569         Make fflush rely on fpurge.
58570         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
58571         open coding all variants.
58572         * modules/fflush (Depends-on): Add fpurge and unistd.
58573         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
58574         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
58575
58576         Fix --with-tests compilation on cygwin.
58577         * modules/argmatch-tests (Makefile.am): List gnulib library first
58578         in LDADD.
58579         * modules/argp-tests (Makefile.am): Likewise.
58580         * modules/array-list-tests (Makefile.am): Likewise.
58581         * modules/array-oset-tests (Makefile.am): Likewise.
58582         * modules/avltree-list-tests (Makefile.am): Likewise.
58583         * modules/avltree-oset-tests (Makefile.am): Likewise.
58584         * modules/avltreehash-list-tests (Makefile.am): Likewise.
58585         * modules/carray-list-tests (Makefile.am): Likewise.
58586         * modules/dirname-tests (Makefile.am): Likewise.
58587         * modules/frexp-tests (Makefile.am): Likewise.
58588         * modules/isnanl-tests (Makefile.am): Likewise.
58589         * modules/linked-list-tests (Makefile.am): Likewise.
58590         * modules/linkedhash-list-tests (Makefile.am): Likewise.
58591         * modules/lock-tests (Makefile.am): Likewise.
58592         * modules/rbtree-list-tests (Makefile.am): Likewise.
58593         * modules/rbtree-oset-tests (Makefile.am): Likewise.
58594         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
58595         * modules/tls-tests (Makefile.am): Likewise.
58596         * modules/tsearch-tests (Makefile.am): Likewise.
58597         * modules/xvasprintf-tests (Makefile.am): Likewise.
58598
58599         Fix fpurge for cygwin.
58600         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
58601         value.
58602         * modules/fpurge-tests (Depends-on): Clean up trash.
58603
58604 2007-04-16  Simon Josefsson  <simon@josefsson.org>
58605
58606         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
58607
58608         * m4/autobuild.m4: Re-indent.
58609
58610 2007-04-13  Bruno Haible  <bruno@clisp.org>
58611
58612         * modules/fpurge-tests: New file.
58613         * tests/test-fpurge.c: New file.
58614
58615         * modules/fpurge: New file.
58616         * lib/fpurge.h: New file.
58617         * lib/fpurge.c: New file.
58618         * m4/fpurge.m4: New file.
58619
58620 2007-04-13  Bruno Haible  <bruno@clisp.org>
58621
58622         * modules/fbufmode-tests: New file.
58623         * tests/test-fbufmode.c: New file.
58624
58625         * modules/fbufmode: New file.
58626         * lib/fbufmode.h: New file.
58627         * lib/fbufmode.c: New file.
58628         * m4/fbufmode.m4: New file.
58629
58630 2007-04-13  Bruno Haible  <bruno@clisp.org>
58631
58632         * modules/fwritable-tests: New file.
58633         * tests/test-fwritable.c: New file.
58634
58635         * modules/fwritable: New file.
58636         * lib/fwritable.h: New file.
58637         * lib/fwritable.c: New file.
58638         * m4/fwritable.m4: New file.
58639
58640 2007-04-13  Bruno Haible  <bruno@clisp.org>
58641
58642         * modules/freadable-tests: New file.
58643         * tests/test-freadable.c: New file.
58644
58645         * modules/freadable: New file.
58646         * lib/freadable.h: New file.
58647         * lib/freadable.c: New file.
58648         * m4/freadable.m4: New file.
58649
58650 2007-04-13  Bruno Haible  <bruno@clisp.org>
58651
58652         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
58653         MOSTLYCLEANFILES.
58654
58655 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
58656
58657         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
58658         gzip bootstrap.conf to avoid dragging in i18n machinery.
58659         (gnulib_tool_option): Use it.
58660
58661 2007-04-13  Bruno Haible  <bruno@clisp.org>
58662
58663         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
58664         %F directives.
58665         * tests/test-vasprintf-posix.c (test_function): Likewise.
58666         * tests/test-snprintf-posix.h (test_function): Likewise.
58667         * tests/test-sprintf-posix.h (test_function): Likewise.
58668         * tests/test-fprintf-posix.h (test_function): Likewise.
58669         * tests/test-printf-posix.h (test_function): Likewise.
58670         * tests/test-fprintf-posix.out: Likewise.
58671
58672 2007-04-13  Bruno Haible  <bruno@clisp.org>
58673
58674         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
58675         * modules/tls-tests (configure.ac): Likewise.
58676         Reported by Arto C. Nirkko <anirkko@insel.ch>.
58677
58678 2007-04-13  Bruno Haible  <bruno@clisp.org>
58679
58680         * lib/tls.c (glthread_tls_get): Fix return type.
58681         Patch by Arto C. Nirkko <anirkko@insel.ch>.
58682
58683 2007-04-12  Eric Blake  <ebb9@byu.net>
58684
58685         * modules/gettime (Depends-on): Remove gettime.
58686         Reported by Dmitry V. Levin.
58687
58688 2007-04-12  Bruno Haible  <bruno@clisp.org>
58689
58690         * modules/fflush (Include): Mention <stdio.h>.
58691         * modules/strtoimax (Include): Mention <inttypes.h>.
58692         * modules/strtoumax (Include): Likewise.
58693
58694 2007-04-12  Eric Blake  <ebb9@byu.net>
58695
58696         * .cvsignore: New file.
58697         * .gitignore: Likewise.
58698
58699 2007-04-12  Bruno Haible  <bruno@clisp.org>
58700
58701         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
58702         not before, since $(LDADD) often contains libgnu.a.
58703         * modules/striconv-tests (test_striconv_LDADD): Likewise.
58704         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
58705         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
58706         Needed on Cygwin.
58707
58708 2007-04-12  Eric Blake  <ebb9@byu.net>
58709
58710         Work around glibc's failure to flush stdin on fclose.
58711         * lib/closein.c (close_stdin): Flush stdin before closing.
58712
58713         Work around glibc's failure to reset seekable stdin on exit.
58714         * modules/closein: New module.
58715         * lib/closein.c: New file.
58716         * lib/closein.h: Likewise.
58717         * m4/closein.m4: Likewise.
58718         * MODULES.html.sh (File stream based Input/Output): Document it.
58719
58720 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58721
58722         * gnulib-tool: Rename generated 'autobuild' script to
58723         'do-autobuild' in --create-megatestdir output.
58724
58725         * doc/gnulib.texi (Build robot for gnulib): Fix.
58726
58727 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58728
58729         * modules/sysexits (Depends-on): Add absolute-header.
58730
58731 2007-04-12  Eric Blake  <ebb9@byu.net>
58732
58733         No need to preserve errno on success.
58734         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
58735         Reported by Bruno Haible.
58736
58737 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58738
58739         * MODULES.html.sh (Support for maintaining and releasing
58740         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
58741
58742 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58743
58744         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
58745
58746 2007-04-12  Simon Josefsson  <simon@josefsson.org>
58747
58748         * modules/autobuild: New module.
58749
58750         * m4/autobuild.m4: New file.
58751
58752 2007-04-11  Bruno Haible  <bruno@clisp.org>
58753
58754         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
58755         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
58756         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
58757         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
58758         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58759         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58760         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58761         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58762         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58763         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58764         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
58765         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58766         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58767         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
58768         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58769         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58770         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
58771         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58772         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58773         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
58774         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58775         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58776         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
58777         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58778         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58779         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
58780         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
58781         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
58782         Reported by Eric Blake.
58783
58784 2007-04-11  Bruno Haible  <bruno@clisp.org>
58785
58786         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
58787
58788 2007-04-10  Bruno Haible  <bruno@clisp.org>
58789
58790         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
58791         for NaN and Infinity. Needed on FreeBSD 6.1.
58792         * tests/test-vasnprintf-posix.c (test_function): Undo last change
58793         regarding results for "%010a" of Infinity and NaN.
58794         * tests/test-vasprintf-posix.c (test_function): Likewise.
58795         * tests/test-snprintf-posix.h (test_function): Likewise.
58796         * tests/test-sprintf-posix.h (test_function): Likewise.
58797         * tests/test-fprintf-posix.h (test_function): Likewise.
58798         * tests/test-printf-posix.h (test_function): Likewise.
58799         * tests/test-fprintf-posix.out: Likewise.
58800
58801 2007-04-10  Bruno Haible  <bruno@clisp.org>
58802
58803         * modules/locale-tests: New file.
58804         * tests/test-locale.c: New file.
58805
58806         * modules/locale: New file.
58807         * lib/locale_.h: New file.
58808         * m4/locale_h.m4: New file.
58809
58810 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
58811             Bruno Haible  <bruno@clisp.org>
58812
58813         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
58814         be determined, test for availability of the copysignf, copysign,
58815         copysignl functions.
58816         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
58817         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
58818         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
58819
58820 2007-04-09  Eric Blake  <ebb9@byu.net>
58821
58822         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
58823         * modules/stdio (Makefile.am): Support fflush.
58824         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58825         * modules/fflush: New file.
58826         * lib/fflush.c: Likewise.
58827         * m4/fflush.m4: Likewise.
58828         * modules/fflush-tests: New test.
58829         * tests/test-fflush.c: Likewise.
58830         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
58831
58832 2007-04-06  Bruno Haible  <bruno@clisp.org>
58833
58834         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
58835         (VASNPRINTF): Use signbit for faster determination whether to print a
58836         minus sign.
58837         * modules/vasnprintf (Files): Remove lib/float+.h.
58838         * modules/fprintf-posix (Depends-on): Add signbit.
58839         * modules/snprintf-posix (Depends-on): Likewise.
58840         * modules/sprintf-posix (Depends-on): Likewise.
58841         * modules/vasnprintf-posix (Depends-on): Likewise.
58842         * modules/vasprintf-posix (Depends-on): Likewise.
58843         * modules/vfprintf-posix (Depends-on): Likewise.
58844         * modules/vsnprintf-posix (Depends-on): Likewise.
58845         * modules/vsprintf-posix (Depends-on): Likewise.
58846
58847 2007-04-06  Bruno Haible  <bruno@clisp.org>
58848
58849         * tests/test-frexp.c (main): Test also the sign bit of zero results.
58850         * tests/test-frexpl.c (main): Likewise.
58851         * tests/test-ldexpl.c (main): Likewise.
58852         * modules/frexp-tests (Depends-on): Add signbit.
58853         * modules/frexpl-tests (Depdends-on): Likewise.
58854         * modules/ldexpl-tests (Depdends-on): Likewise.
58855
58856 2007-04-06  Bruno Haible  <bruno@clisp.org>
58857
58858         * modules/signbit-tests: New file.
58859         * tests/test-signbit.c: New file.
58860
58861         * modules/signbit: New file.
58862         * lib/signbitf.c: New file.
58863         * lib/signbitd.c: New file.
58864         * lib/signbitl.c: New file.
58865         * m4/signbit.m4: New file.
58866         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
58867         (signbit): New macro.
58868         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
58869         REPLACE_SIGNBIT.
58870         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
58871         REPLACE_FREXPL into math.h.
58872
58873 2007-04-06  Bruno Haible  <bruno@clisp.org>
58874
58875         * modules/isnanf-nolibm-tests: New file.
58876         * tests/test-isnanf.c: New file.
58877
58878         * modules/isnanf-nolibm: New file.
58879         * lib/isnanf.h: New file.
58880         * lib/isnanf.c: New file.
58881         * lib/isnan.c: Consider the USE_FLOAT macro.
58882         * m4/isnanf.m4: New file.
58883
58884 2007-04-06  Bruno Haible  <bruno@clisp.org>
58885
58886         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
58887         (Link): New section.
58888
58889         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
58890
58891 2007-04-06  Bruno Haible  <bruno@clisp.org>
58892
58893         Assume the 'long double' type.
58894         * m4/longdouble.m4: Remove file.
58895         * config/srclist.txt: Don't mention longdouble.m4.
58896         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
58897         * lib/float+.h: Likewise.
58898         * lib/frexp.c: Likewise.
58899         * lib/printf-args.h: Likewise.
58900         * lib/printf-args.c: Likewise.
58901         * lib/printf-frexp.c: Likewise.
58902         * lib/printf-parse.c: Likewise.
58903         * lib/vasnprintf.c: Likewise.
58904         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
58905         * m4/intl.m4: Likewise.
58906         * m4/isnanl.m4: Likewise.
58907         * m4/printf.m4: Likewise.
58908         * m4/printf-frexpl.m4: Likewise.
58909         * m4/vasnprintf.m4: Likewise.
58910         * modules/allocsa (Files): Remove m4/longdouble.m4.
58911         * modules/gettext (Files): Likewise.
58912         * modules/relocatable-prog-wrapper (Files): Likewise.
58913         * modules/vasnprintf (Files): Likewise.
58914         * modules/isnanl (Files): Likewise.
58915         (Include): Simplify.
58916         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
58917         (Include): Simplify.
58918         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
58919         (Include): Simplify.
58920         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
58921         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58922         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
58923         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58924         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
58925         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58926         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
58927         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58928         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
58929         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58930         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
58931         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
58932         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
58933         * tests/test-isnanl.c: Likewise.
58934         * tests/test-snprintf-posix.h: Likewise.
58935         * tests/test-sprintf-posix.h: Likewise.
58936         * tests/test-vasnprintf-posix.c: Likewise.
58937         * tests/test-vasnprintf-posix2.c: Likewise.
58938         * tests/test-vasprintf-posix.c: Likewise.
58939
58940 2007-04-06  Bruno Haible  <bruno@clisp.org>
58941
58942         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
58943         * lib/math_.h [__DECC]: Include the overridden include file through
58944         #include_next, outside the double-inclusion guard.
58945         * lib/stdio_.h [__DECC]: Likewise.
58946         * lib/stdlib_.h [__DECC]: Likewise.
58947         * lib/string_.h [__DECC]: Likewise.
58948         * lib/time_.h [__DECC]: Likewise.
58949         * lib/wchar_.h [__DECC]: Likewise.
58950         * lib/wctype_.h [__DECC]: Likewise.
58951         * lib/inttypes_.h [__DECC]: Likewise.
58952         Reported by Albert Chin <china@thewrittenword.com> in
58953         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
58954
58955 2007-04-04  Eric Blake  <ebb9@byu.net>
58956
58957         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
58958         1.5.x.
58959
58960 2007-04-04  Bruno Haible  <bruno@clisp.org>
58961
58962         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
58963         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
58964
58965 2007-04-04  Bruno Haible  <bruno@clisp.org>
58966
58967         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
58968         results for "%010a" of Infinity and NaN.
58969         * tests/test-vasprintf-posix.c (test_function): Likewise.
58970         * tests/test-snprintf-posix.h (test_function): Likewise.
58971         * tests/test-sprintf-posix.h (test_function): Likewise.
58972         * tests/test-fprintf-posix.h (test_function): Remove these tests.
58973         * tests/test-printf-posix.h (test_function): Likewise.
58974         * tests/test-fprintf-posix.out: Update.
58975         Needed for FreeBSD 6.1.
58976
58977 2007-04-04  Bruno Haible  <bruno@clisp.org>
58978
58979         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
58980         directly used by the gnulib modules nor by gnulib-tool.
58981
58982 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
58983
58984         * DEPENDENCIES: Give overall description of version dependency
58985         desirability.  Use more-typical names for apps.
58986         Add shell, coreutils, diffutils, grep, tar, gzip.
58987
58988 2007-04-04  Simon Josefsson  <simon@josefsson.org>
58989
58990         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
58991
58992 2007-04-04  Karl Berry  <karl@gnu.org>
58993
58994         * MODULES.html.sh (func_module): missing '.
58995
58996 2007-04-03  Bruno Haible  <bruno@clisp.org>
58997
58998         * modules/argmatch-tests (Makefile.am): New variable
58999         test_argmatch_LDADD.
59000         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
59001         * modules/array-list-tests (Makefile.am): New variable
59002         test_array_list_LDADD.
59003         * modules/array-oset-tests (Makefile.am): New variable
59004         test_array_oset_LDADD.
59005         * modules/avltree-list-tests (Makefile.am): New variable
59006         test_avltree_list_LDADD.
59007         * modules/avltree-oset-tests (Makefile.am): New variable
59008         test_avltree_oset_LDADD.
59009         * modules/avltreehash-list-tests (Makefile.am): New variable
59010         test_avltreehash_list_LDADD.
59011         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
59012         test_canonicalize_lgpl_LDADD.
59013         * modules/carray-list-tests (Makefile.am): New variable
59014         test_carray_list_LDADD.
59015         * modules/dirname-tests (Makefile.am): New variable
59016         test_dirname_LDADD.
59017         * modules/linked-list-tests (Makefile.am): New variable
59018         test_linked_list_LDADD.
59019         * modules/linkedhash-list-tests (Makefile.am): New variable
59020         test_linkedhash_list_LDADD.
59021         * modules/rbtree-list-tests (Makefile.am): New variable
59022         test_rbtree_list_LDADD.
59023         * modules/rbtree-oset-tests (Makefile.am): New variable
59024         test_rbtree_oset_LDADD.
59025         * modules/rbtreehash-list-tests (Makefile.am): New variable
59026         test_rbtreehash_list_LDADD.
59027         * modules/xvasprintf-tests (Makefile.am): New variable
59028         test_xvasprintf_LDADD.
59029         Reported by Eric Blake.
59030
59031 2007-04-03  Eric Blake  <ebb9@byu.net>
59032
59033         * DEPENDENCIES: Weaken m4 requirements.
59034
59035 2007-04-03  Bruno Haible  <bruno@clisp.org>
59036
59037         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
59038         * modules/isnanl-tests (configure.ac): Likewise.
59039
59040 2007-04-03  Ben Pfaff  <blp@gnu.org>
59041
59042         * modules/iconv_open: Add $(srcdir)/ to source directory
59043         references in Makefile fragments that call gperf, to fix VPATH
59044         builds.
59045
59046 2007-04-03  Bruno Haible  <bruno@clisp.org>
59047
59048         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
59049         * lib/ldexpl.c: Undo last change.
59050
59051 2007-04-03  Bruno Haible  <bruno@clisp.org>
59052
59053         * modules/printf-frexpl (Depends-on): Undo last change.
59054         (Files): Add m4/ldexpl.m4.
59055
59056 2007-04-03  Bruno Haible  <bruno@clisp.org>
59057
59058         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
59059         * modules/isnanl (Link): New section.
59060
59061         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
59062         * modules/frexp (Link): New section.
59063
59064         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
59065         * modules/frexpl (Link): New section.
59066
59067         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
59068         * modules/ldexpl (Link): New section.
59069
59070 2007-04-03  Bruno Haible  <bruno@clisp.org>
59071
59072         * modules/TEMPLATE-EXTENDED: New file.
59073         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
59074
59075 2007-04-03  Bruno Haible  <bruno@clisp.org>
59076
59077         * DEPENDENCIES: New file.
59078         Suggested by Simon Josefsson.
59079
59080 2007-04-03  Bruno Haible  <bruno@clisp.org>
59081
59082         * doc/gnulib.texi: Escape @.
59083
59084 2007-04-03  James Youngman  <jay@gnu.org>
59085         and Paul Eggert  <eggert@cs.ucla.edu>
59086
59087         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
59088         birthtime on all systems that have birthtime, not just those which
59089         use st_birthtimensec rather than st_birthtim.  Putting zero in
59090         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
59091         that the birth time is not available for files on an NFS mount.
59092
59093 2007-04-03  Simon Josefsson  <simon@josefsson.org>
59094
59095         * modules/memxor: Move back from crypto/, suggested by Bruno.
59096         * modules/crypto/hmac-sha1: Fix memxor dependency.
59097
59098         * modules/crypto/gc: Moved from ../.
59099
59100 2007-04-02  Eric Blake  <ebb9@byu.net>
59101
59102         * lib/ldexpl.c (includes): Avoid libm.
59103
59104         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
59105
59106 2007-04-02  Bruno Haible  <bruno@clisp.org>
59107
59108         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
59109         on IRIX.
59110
59111 2007-04-02  Bruno Haible  <bruno@clisp.org>
59112
59113         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
59114         x86 or x86_64 platforms running MacOS X.
59115         Reported by Ryan Schmidt <@ryandesign.com>.
59116
59117 2007-04-02  Bruno Haible  <bruno@clisp.org>
59118
59119         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
59120         i386.
59121
59122 2007-04-01  Simon Josefsson  <simon@josefsson.org>
59123
59124         * modules/crypto/arcfour: Moved from ../.
59125         * modules/crypto/arcfour-tests: Moved from ../.
59126         * modules/crypto/arctwo: Moved from ../.
59127         * modules/crypto/arctwo-tests: Moved from ../.
59128         * modules/crypto/des: Moved from ../.
59129         * modules/crypto/des-tests: Moved from ../.
59130         * modules/crypto/gc-arcfour: Moved from ../.
59131         * modules/crypto/gc-arcfour-tests: Moved from ../.
59132         * modules/crypto/gc-arctwo: Moved from ../.
59133         * modules/crypto/gc-arctwo-tests: Moved from ../.
59134         * modules/crypto/gc-des: Moved from ../.
59135         * modules/crypto/gc-des-tests: Moved from ../.
59136         * modules/crypto/gc-hmac-md5: Moved from ../.
59137         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
59138         * modules/crypto/gc-hmac-sha1: Moved from ../.
59139         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
59140         * modules/crypto/gc-md2: Moved from ../.
59141         * modules/crypto/gc-md2-tests: Moved from ../.
59142         * modules/crypto/gc-md4: Moved from ../.
59143         * modules/crypto/gc-md4-tests: Moved from ../.
59144         * modules/crypto/gc-md5: Moved from ../.
59145         * modules/crypto/gc-md5-tests: Moved from ../.
59146         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
59147         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
59148         * modules/crypto/gc-random: Moved from ../.
59149         * modules/crypto/gc-rijndael: Moved from ../.
59150         * modules/crypto/gc-rijndael-tests: Moved from ../.
59151         * modules/crypto/gc-sha1: Moved from ../.
59152         * modules/crypto/gc-sha1-tests: Moved from ../.
59153         * modules/crypto/gc-tests: Moved from ../.
59154         * modules/crypto/hmac-md5: Moved from ../.
59155         * modules/crypto/hmac-md5-tests: Moved from ../.
59156         * modules/crypto/hmac-sha1: Moved from ../.
59157         * modules/crypto/hmac-sha1-tests: Moved from ../.
59158         * modules/crypto/md2: Moved from ../.
59159         * modules/crypto/md2-tests: Moved from ../.
59160         * modules/crypto/md4: Moved from ../.
59161         * modules/crypto/md4-tests: Moved from ../.
59162         * modules/crypto/md5: Moved from ../.
59163         * modules/crypto/md5-tests: Moved from ../.
59164         * modules/crypto/memxor: Moved from ../.
59165         * modules/crypto/rijndael: Moved from ../.
59166         * modules/crypto/rijndael-tests: Moved from ../.
59167         * modules/crypto/sha1: Moved from ../.
59168
59169 2007-03-30  James Youngman  <jay@gnu.org>
59170
59171         * tests/test-stat-time.c (prepare_test): use chmod() rather than
59172         rename() to change the ctime of a file (because ctime is unaffected
59173         by rename on jfs2 on AIX 5.1).
59174         (main): Start by doing cleanup, in case a previous run failed leaving
59175         test files behind.
59176
59177 2007-03-31  Bruno Haible  <bruno@clisp.org>
59178
59179         Support old proprietary implementations of iconv.
59180         * modules/iconv_open: New file.
59181         * lib/iconv_.h: New file.
59182         * m4/iconv_h.m4: New file.
59183         * lib/iconv_open.c: New file.
59184         * lib/iconv_open-aix.gperf: New file.
59185         * lib/iconv_open-hpux.gperf: New file.
59186         * lib/iconv_open-irix.gperf: New file.
59187         * lib/iconv_open-osf.gperf: New file.
59188         * m4/iconv_open.m4: New file.
59189         * modules/linebreak (Depends-on): Add iconv_open.
59190         * modules/striconv (Depends-on): Likewise.
59191         * modules/striconveh (Depends-on): Likewise.
59192         * modules/unicodeio (Depends-on): Likewise.
59193         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
59194         (iconv_t)(-1).
59195         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
59196         conversion if cd is (iconv_t)(-1).
59197         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
59198         is not possible.
59199
59200 2007-03-31  Bruno Haible  <bruno@clisp.org>
59201
59202         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
59203         work on Solaris either. Protect also second use of "autodetect_jp".
59204
59205 2007-03-31  Bruno Haible  <bruno@clisp.org>
59206
59207         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
59208         the function is not present.
59209
59210 2007-03-31  Bruno Haible  <bruno@clisp.org>
59211
59212         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
59213         the function is not present.
59214
59215 2007-03-31  Bruno Haible  <bruno@clisp.org>
59216
59217         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
59218         a bug in HP-UX iconv_open().
59219
59220 2007-03-31  Bruno Haible  <bruno@clisp.org>
59221
59222         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
59223         (Mathematics <math.h>): New section, add fpieee.
59224         (Input/output <stdio.h>): Add fseterr.
59225         (Mathematics <math.h>): New section, add printf-frexp.
59226         (Container data structures): Add sublist.
59227         (Core language properties): Add fpucw, inline.
59228         (Functions for greatest-width integer types <inttypes.h>): Add
59229         imaxabs, imaxdiv, inttypes.
59230         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
59231         isnanl-nolibm, ldexp.
59232         (Mathematics <math.h>): New section, add printf-frexpl.
59233         (Support for systems lacking POSIX:2001): Add fprintf-posix,
59234         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
59235         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
59236         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
59237         (Unicode string functions): Add unistr/u*-mbtoucr.
59238         (Java): Add javacomp-script, javaexec-script.
59239         (C#): Add csharpcomp-script, csharpexec-script.
59240         (Support for building libraries and executables): Add havelib,
59241         relocatable-*.
59242         (Support for maintaining and releasing projects): Renamed from
59243         'Support for maintaining and release projects'. Add announce-gen.
59244
59245 2007-03-31  Bruno Haible  <bruno@clisp.org>
59246
59247         * README: Talk primarily about git.
59248         (git and CVS): Renamed from CVS.
59249         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
59250         gnulib is available through git.
59251         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
59252
59253 2007-03-30  Bruno Haible  <bruno@clisp.org>
59254
59255         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
59256         * lib/poll_.h: Likewise.
59257         * lib/stat_.h: Likewise.
59258         * lib/sys_time_.h: Likewise.
59259         * lib/sysexit_.h: Likewise.
59260         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
59261         * lib/stdbool_.h: Likewise.
59262         * lib/byteswap_.h: Add double-inclusion guard.
59263
59264 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
59265
59266         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
59267
59268 2007-03-30  Karl Berry  <karl@gnu.org>
59269
59270         * config/srclist-update: double space after USA in the license
59271         substitution, since that's how it's usually (?) written.
59272
59273 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
59274
59275         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
59276         reported by Bruno Haible.
59277
59278 2007-03-29  Bruno Haible  <bruno@clisp.org>
59279
59280         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
59281         a bug in AIX iconv().
59282
59283 2007-03-29  Bruno Haible  <bruno@clisp.org>
59284
59285         * modules/ldexpl-tests: New file.
59286         * tests/test-ldexpl.c: New file.
59287
59288 2007-03-29  Bruno Haible  <bruno@clisp.org>
59289
59290         * lib/ldexpl.c: Include fpucw.h.
59291         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
59292         multiplication.
59293         * modules/ldexpl (Depends-on): Add fpucw.
59294
59295 2007-03-29  Bruno Haible  <bruno@clisp.org>
59296
59297         * modules/ldexpl: New file.
59298         * m4/ldexpl.m4: New file.
59299         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
59300         set.
59301         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
59302         REPLACE_LDEXPL.
59303         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
59304         REPLACE_LDEXPL.
59305         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59306         gl_FUNC_LDEXPL_WORKS.
59307         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
59308         * modules/mathl (Files): Remove lib/ldexpl.c.
59309         (Depends-on): Add ldexpl.
59310
59311 2007-03-29  Bruno Haible  <bruno@clisp.org>
59312
59313         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
59314
59315 2007-03-29  Bruno Haible  <bruno@clisp.org>
59316
59317         * tests/test-striconveh.c (main): Don't assume that a direct conversion
59318         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
59319         and possibly also HP-UX.
59320         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
59321         work on AIX, IRIX, HP-UX, OSF/1.
59322         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
59323         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
59324         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
59325         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
59326         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
59327         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
59328
59329 2007-03-29  Bruno Haible  <bruno@clisp.org>
59330
59331         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
59332
59333 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
59334
59335         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
59336         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
59337
59338 2007-03-29  Eric Blake  <ebb9@byu.net>
59339
59340         * lib/acl-internal.h: Remove redundant include.
59341         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
59342         Cygwin when a file is locked.
59343
59344 2007-03-29  Bruno Haible  <bruno@clisp.org>
59345
59346         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
59347         file.
59348         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
59349
59350 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
59351
59352         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
59353         try to remove a parent directory if the child couldn't be removed
59354         (except for the first rmdir, which could fail because the child
59355         doesn't exist).  Problem reported by Jeff Blaine in
59356         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
59357
59358 2007-03-28  Bruno Haible  <bruno@clisp.org>
59359
59360         * lib/striconveh.c (utf8conv_carefully): New function.
59361         (mem_cd_iconveh_internal): Invoke it.
59362
59363 2007-03-28  Bruno Haible  <bruno@clisp.org>
59364
59365         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
59366         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
59367         input.
59368         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
59369         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
59370         unistr/u8-uctomb.
59371
59372 2007-03-28  Bruno Haible  <bruno@clisp.org>
59373
59374         * modules/unistr/u8-mbtoucr: New file.
59375         * lib/unistr/u8-mbtoucr.c: New file.
59376         * modules/unistr/u16-mbtoucr: New file.
59377         * lib/unistr/u16-mbtoucr.c: New file.
59378         * modules/unistr/u16-mbtoucr: New file.
59379         * lib/unistr/u16-mbtoucr.c: New file.
59380         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
59381
59382 2007-03-27  Simon Josefsson  <simon@josefsson.org>
59383             Bruno Haible  <bruno@clisp.org>
59384
59385         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
59386         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
59387         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
59388
59389         * m4/stdio_h.m4: Add stubs for vasprintf too.
59390
59391         * modules/stdio: Support vasprintf in sed command.
59392
59393         * modules/vasprintf: Depend on stdio for prototypes.  Remove
59394         vasprintf.h.  Add stdio module indicator.
59395
59396         * lib/stdio_.h: Declare asprintf and vasprintf, based on
59397         vasprintf.h.
59398
59399         * lib/vasprintf.h: File removed.
59400
59401         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
59402         * lib/vasprintf.c: Ditto.
59403         * lib/xvasprintf.c: Ditto.
59404         * tests/test-vasprintf-posix.c: Ditto.
59405         * tests/test-vasprintf.c: Ditto.
59406
59407 2007-03-27  Bruno Haible  <bruno@clisp.org>
59408
59409         Make vasnprintf multithread-safe.
59410         * lib/vasnprintf.c (decimal_point_char): New function.
59411         (VASNPRINTF): Use it.
59412         Suggested by Simon Josefsson.
59413
59414 2007-03-27  Eric Blake  <ebb9@byu.net>
59415
59416         Support sub-second birthtime on cygwin.
59417         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
59418         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
59419         (get_stat_birthtime): Also work with st_birthtim.
59420
59421 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
59422
59423         * lib/stat-time.h (USE_BIRTHTIME): Remove.
59424         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
59425         (get_stat_birthtime_ns): Do not try to use "spare" fields.
59426         (get_stat_birthtime_ns): Simplify compile-time tests.
59427         (get_stat_birthtime): Change the API to look like
59428         get_stat_mtime etc., except return a negative tv_nsec on error.
59429         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
59430         Don't check for "spare" fields.
59431         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
59432         or for struct stat.st_birthtime, as these tests aren't used.
59433         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
59434
59435 2007-03-27  Bruno Haible  <bruno@clisp.org>
59436
59437         * lib/stat-time.h: Include <sys/stat.h>.
59438
59439 2007-03-27  James Youngman  <jay@gnu.org>
59440
59441         * lib/stat-time.h (get_stat_birthtime): New function for
59442           retrieving st_birthtime as provided by UFS2 (hence *BSD).
59443         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
59444           and its variants.
59445         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
59446         * modules/stat-time-test: New file.
59447         * tests/test-stat-time.c: New test, devised by Bruno Haible.
59448
59449 2007-03-26  Bruno Haible  <bruno@clisp.org>
59450
59451         Better support of signalling NaNs.
59452         * lib/atanl.c: Include isnanl.h.
59453         (atanl): Perform test for NaN at the beginning of the function and
59454         through a call to isnanl.
59455         * lib/cosl.c: Include isnanl.h.
59456         (cosl): Perform test for NaN at the beginning of the function and
59457         through a call to isnanl.
59458         * lib/ldexpl.c: Include isnanl.h.
59459         (ldexpl): Perform test for NaN through a call to isnanl.
59460         * lib/logl.c: Include isnanl.h.
59461         (logl): Perform test for NaN at the beginning of the function and
59462         through a call to isnanl.
59463         * lib/sinl.c: Include isnanl.h.
59464         (sinl): Perform test for NaN at the beginning of the function and
59465         through a call to isnanl.
59466         * lib/sqrtl.c: Include isnanl.h.
59467         (sqrtl): Perform test for NaN at the beginning of the function and
59468         through a call to isnanl.
59469         * lib/tanl.c: Include isnanl.h.
59470         (tanl): Perform test for NaN at the beginning of the function and
59471         through a call to isnanl.
59472         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
59473         * modules/mathl (Depends-on): Add isnanl.
59474
59475 2007-03-26  Eric Blake  <ebb9@byu.net>
59476
59477         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
59478         regression in logic sense of previous patch.
59479
59480 2007-03-26  Bruno Haible  <bruno@clisp.org>
59481
59482         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
59483         unportable shell command "if ! ...".
59484         Reported by Ralf Wildenhues.
59485
59486 2007-03-25  Bruno Haible  <bruno@clisp.org>
59487
59488         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
59489         <sysexits.h> file, and only add EX_CONFIG.
59490         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
59491         absolute file name and whether it is sufficient. Substitute also
59492         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
59493         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
59494         ABSOLUTE_SYSEXITS_H into sysexits.h.
59495
59496 2007-03-25  Bruno Haible  <bruno@clisp.org>
59497
59498         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
59499         hints is NULL.
59500
59501 2007-03-25  Bruno Haible  <bruno@clisp.org>
59502
59503         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
59504         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
59505
59506 2007-03-25  Bruno Haible  <bruno@clisp.org>
59507
59508         * lib/vasnprintf.c: Include langinfo.h.
59509         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
59510         multithread-safe.
59511         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
59512         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
59513         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59514         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59515         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59516         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59517         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59518         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
59519         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59520         Reported by Simon Josefsson.
59521
59522 2007-03-25  Bruno Haible  <bruno@clisp.org>
59523
59524         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
59525         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
59526         * modules/vasnprintf (Depends-on): Add stdint.
59527
59528 2007-03-25  Bruno Haible  <bruno@clisp.org>
59529
59530         * modules/fpieee: New file.
59531         * m4/fpieee.m4: New file.
59532         * modules/isnan-nolibm (Depends-on): Add fpieee.
59533         * modules/isnanl-nolibm (Depends-on): Add fpieee.
59534         * modules/isnanl (Depends-on): Add fpieee.
59535
59536 2007-03-25  Bruno Haible  <bruno@clisp.org>
59537
59538         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
59539
59540 2007-03-25  Bruno Haible  <bruno@clisp.org>
59541
59542         Avoid test failures on IRIX 6.5.
59543         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
59544         (main): Use it.
59545         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
59546         macros.
59547         (main): Use them.
59548
59549 2007-03-25  Bruno Haible  <bruno@clisp.org>
59550
59551         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
59552         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
59553         exists but doesn't work.
59554         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
59555         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
59556         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
59557         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
59558         math.h.
59559
59560 2007-03-25  Bruno Haible  <bruno@clisp.org>
59561
59562         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
59563         returns inf. Needed on IRIX 6.5.
59564
59565 2007-03-25  Bruno Haible  <bruno@clisp.org>
59566
59567         * tests/test-frexpl.c: Include isnanl-nolibm.h.
59568         (main): Use isnanl instead of x != x idiom.
59569         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
59570
59571         * tests/test-frexp.c: Include isnan.h.
59572         (main): Use isnan instead of x != x idiom.
59573         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
59574
59575 2007-03-25  Bruno Haible  <bruno@clisp.org>
59576
59577         * tests/test-frexp.c (NaN): New function/macro.
59578         (main): Use it instead of 0.0 / 0.0.
59579         * tests/test-isnan.c (NaN): New function/macro.
59580         (main): Use it instead of 0.0 / 0.0.
59581         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
59582         (test_function): Use it instead of 0.0 / 0.0.
59583         * tests/test-vasprintf-posix.c (NaN): New function/macro.
59584         (test_function): Use it instead of 0.0 / 0.0.
59585         * tests/test-snprintf-posix.h (NaN): New function/macro.
59586         (test_function): Use it instead of 0.0 / 0.0.
59587         * tests/test-sprintf-posix.h (NaN): New function/macro.
59588         (test_function): Use it instead of 0.0 / 0.0.
59589         * tests/test-fprintf-posix.h (NaN): New function/macro.
59590         (test_function): Use it instead of 0.0 / 0.0.
59591         * tests/test-printf-posix.h (NaN): New function/macro.
59592         (test_function): Use it instead of 0.0 / 0.0.
59593
59594         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
59595
59596 2007-03-25  Bruno Haible  <bruno@clisp.org>
59597
59598         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
59599
59600 2007-03-25  Bruno Haible  <bruno@clisp.org>
59601
59602         * lib/regexec.c (merge_state_with_log): Make static.
59603
59604 2007-03-25  Bruno Haible  <bruno@clisp.org>
59605
59606         * lib/trigl.c (kernel_rem_pio2): Make static.
59607
59608 2007-03-25  Bruno Haible  <bruno@clisp.org>
59609
59610         * lib/sincosl.c (sincosl_table): Make static.
59611
59612 2007-03-25  Bruno Haible  <bruno@clisp.org>
59613
59614         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
59615         if the compiler does not support C99.
59616
59617 2007-03-25  Bruno Haible  <bruno@clisp.org>
59618
59619         * modules/time (Makefile.am): Ensure all rule action lines start with a
59620         tab.
59621
59622 2007-03-24  Bruno Haible  <bruno@clisp.org>
59623
59624         * modules/tsearch-tests: New file.
59625         * tests/test-tsearch.sh: New file.
59626         * tests/test-tsearch.c: New file, mostly copied from glibc.
59627
59628         * modules/search-tests: New file.
59629         * tests/test-search.c: New file.
59630
59631         * modules/search: New file.
59632         * lib/search_.h: New file, incorporating lib/tsearch.h.
59633         * m4/search_h.m4: New file.
59634         * lib/tsearch.h: Remove file.
59635         * lib/tsearch.c: Include search.h instead of tsearch.h.
59636         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
59637         HAVE_TSEARCH.
59638         * modules/tsearch (Files): Remove lib/tsearch.h.
59639         (Depends-on): Add search.
59640         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
59641         (Include): Change tsearch.h into search.h.
59642
59643 2007-03-24  Bruno Haible  <bruno@clisp.org>
59644
59645         * modules/fpucw: New file.
59646         * lib/fpucw.h: New file.
59647         * lib/frexp.c: Include fpucw.h.
59648         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
59649         (FUNC): Use them.
59650         * lib/printf-frexp.c: Include fpucw.h.
59651         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
59652         (FUNC): Use them.
59653         * lib/vasnprintf.c: Include fpucw.h.
59654         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
59655         'long double' calculations.
59656         * tests/test-frexpl.c: Include fpucw.h.
59657         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
59658         * tests/test-printf-frexpl.c: Include fpucw.h.
59659         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
59660         * modules/frexpl (Depends-on): Add fpucw.
59661         * modules/printf-frexpl (Depends-on): Likewise.
59662         * modules/fprintf-posix (Depends-on): Likewise.
59663         * modules/snprintf-posix (Depends-on): Likewise.
59664         * modules/sprintf-posix (Depends-on): Likewise.
59665         * modules/vasnprintf-posix (Depends-on): Likewise.
59666         * modules/vasprintf-posix (Depends-on): Likewise.
59667         * modules/vfprintf-posix (Depends-on): Likewise.
59668         * modules/vsnprintf-posix (Depends-on): Likewise.
59669         * modules/vsprintf-posix (Depends-on): Likewise.
59670         * modules/frexpl-tests (Depends-on): Likewise.
59671         * modules/printf-frexpl-tests (Depends-on): Likewise.
59672
59673 2007-03-24  Bruno Haible  <bruno@clisp.org>
59674
59675         * lib/float+.h: New file.
59676         * lib/isnan.c: Include float+.h.
59677         (SIZE): New macro.
59678         (FUNC): Compare only SIZE bytes of the value.
59679         * lib/vasnprintf.c: Include float+.h.
59680         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
59681         SIZEOF_LDBL or SIZEOF_DBL bytes.
59682         * modules/isnan-nolibm (Files): Add lib/float+.h.
59683         * modules/isnanl-nolibm (Files): Add lib/float+.h.
59684         * modules/isnanl (Files): Add lib/float+.h.
59685         * modules/vasnprintf (Files): Add lib/float+.h.
59686
59687 2007-03-24  Bruno Haible  <bruno@clisp.org>
59688
59689         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
59690         include isnanl-nolibm.h.
59691
59692 2007-03-24  Bruno Haible  <bruno@clisp.org>
59693
59694         * tests/test-read-file.c (main): Don't produce spurious output for
59695         expected situations. Make the test fail if it encountered unexpected
59696         results.
59697
59698 2007-03-24  Bruno Haible  <bruno@clisp.org>
59699
59700         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
59701         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
59702
59703 2007-03-24  Bruno Haible  <bruno@clisp.org>
59704
59705         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
59706
59707 2007-03-24  Bruno Haible  <bruno@clisp.org>
59708
59709         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
59710         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
59711
59712         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
59713         * modules/utf8-ucs4: Turn into a symbolic link to module
59714         unistr/u8-mbtouc.
59715
59716         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
59717         utf8-ucs4-unsafe.
59718         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
59719         unistr/u8-mbtouc-unsafe.
59720
59721         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
59722         * modules/utf16-ucs4: Turn into a symbolic link to module
59723         unistr/u16-mbtouc.
59724
59725         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
59726         utf16-ucs4-unsafe.
59727         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
59728         unistr/u16-mbtouc-unsafe.
59729
59730         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
59731         * modules/ucs4-utf8: Turn into a symbolic link to module
59732         unistr/u8-ubtomb.
59733
59734         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
59735         * modules/ucs4-utf16: Turn into a symbolic link to module
59736         unistr/u16-ubtomb.
59737
59738 2007-03-24  Bruno Haible  <bruno@clisp.org>
59739
59740         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
59741         Enable the function only if HAVE_INLINE.
59742         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
59743         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
59744         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
59745         Enable the function only if HAVE_INLINE.
59746         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
59747         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
59748         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
59749         Enable the function only if HAVE_INLINE.
59750         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
59751         Enable the function only if HAVE_INLINE.
59752         * modules/utf8-ucs4: Update.
59753         * modules/utf8-ucs4-unsafe: Update.
59754         * modules/utf16-ucs4: Update.
59755         * modules/utf16-ucs4-unsafe: Update.
59756         * modules/ucs4-utf8: Update.
59757         * modules/ucs4-utf16: Update.
59758
59759 2007-03-24  Bruno Haible  <bruno@clisp.org>
59760
59761         * lib/utf8-ucs4.h: Remove file.
59762         * lib/utf8-ucs4-unsafe.h: Remove file.
59763         * lib/utf16-ucs4.h: Remove file.
59764         * lib/utf16-ucs4-unsafe.h: Remove file.
59765         * lib/ucs4-utf8.h: Remove file.
59766         * lib/ucs4-utf16.h: Remove file.
59767         * lib/unistr.h: Include their previous contents.
59768         * m4/utf-ucs4.m4: Remove file.
59769         * m4/ucs4-utf.m4: Remove file.
59770         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
59771         (Depends-on): Add unistr/base.
59772         (configure.ac): Remove gl_UTF_UCS4.
59773         (Makefile.am): Update.
59774         (Include): Change to unistr.h.
59775         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
59776         (Depends-on): Add unistr/base.
59777         (configure.ac): Remove gl_UTF_UCS4.
59778         (Makefile.am): Update.
59779         (Include): Change to unistr.h.
59780         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
59781         (Depends-on): Add unistr/base.
59782         (configure.ac): Remove gl_UTF_UCS4.
59783         (Makefile.am): Update.
59784         (Include): Change to unistr.h.
59785         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
59786         (Depends-on): Add unistr/base.
59787         (configure.ac): Remove gl_UTF_UCS4.
59788         (Makefile.am): Update.
59789         (Include): Change to unistr.h.
59790         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
59791         (Depends-on): Add unistr/base.
59792         (configure.ac): Remove gl_UCS4_UTF.
59793         (Makefile.am): Update.
59794         (Include): Change to unistr.h.
59795         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
59796         (Depends-on): Add unistr/base.
59797         (configure.ac): Remove gl_UCS4_UTF.
59798         (Makefile.am): Update.
59799         (Include): Change to unistr.h.
59800         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
59801         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
59802         utf8-ucs4-unsafe.h.
59803         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
59804         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
59805         utf16-ucs4-unsafe.h.
59806         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
59807         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
59808         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
59809         * lib/unistr/u8-strchr.c: Likewise.
59810         * lib/unistr/u8-strrchr.c: Likewise.
59811         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
59812         * lib/unistr/u16-strchr.c: Likewise.
59813         * lib/unistr/u16-strrchr.c: Likewise.
59814         * lib/striconveh.c: Update.
59815         * lib/linebreak.c: Update.
59816
59817 2007-03-24  Bruno Haible  <bruno@clisp.org>
59818
59819         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
59820         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
59821
59822 2007-03-22  Bruno Haible  <bruno@clisp.org>
59823
59824         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
59825
59826 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
59827
59828         * MODULES.html.sh (File system functions): New module write-any-file.
59829         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
59830         * m4/write-any-file.m4: New files.
59831
59832 2007-03-23  Eric Blake  <ebb9@byu.net>
59833
59834         * gnulib-tool: Rearrange space-tab sequences, since some editors
59835         like to eat them.
59836
59837 2007-03-23  Eric Blake  <ebb9@byu.net>
59838
59839         * lib/version-etc.c (version_etc_va): Update license wording to
59840         be more concise.  Recommended by Richard Stallman.
59841
59842 2007-03-22  Bruno Haible  <bruno@clisp.org>
59843
59844         * lib/poll.c (MSG_PEEK): New fallback definition.
59845
59846 2007-03-22  Bruno Haible  <bruno@clisp.org>
59847
59848         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
59849         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
59850         (main): Update.
59851         Fixes a compilation error on BeOS.
59852
59853 2007-03-22  Bruno Haible  <bruno@clisp.org>
59854
59855         * modules/frexpl-tests: New file.
59856         * tests/test-frexpl.c: New file.
59857
59858         * modules/frexpl: New file.
59859         * m4/frexpl.m4: New file.
59860         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
59861         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
59862         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
59863         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
59864         (Depends-on): Add frexpl. Remove isnanl-nolibm.
59865         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
59866
59867 2007-03-22  Bruno Haible  <bruno@clisp.org>
59868
59869         * lib/frexpl.c: Share code with lib/frexp.c.
59870         * modules/mathl (Files): Add lib/frexp.c.
59871         (Depends-on): Add isnanl-nolibm.
59872
59873 2007-03-22  Bruno Haible  <bruno@clisp.org>
59874
59875         * modules/printf-frexp (Files): Add m4/frexp.m4.
59876         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
59877         only if the found frexp function actually works.
59878
59879 2007-03-22  Bruno Haible  <bruno@clisp.org>
59880
59881         * lib/frexp.c: Remove older implementation that uses divisions.
59882
59883 2007-03-21  Bruno Haible  <bruno@clisp.org>
59884
59885         * modules/frexp-tests: New file.
59886         * tests/test-frexp.c: New file.
59887
59888         * modules/frexp: New file.
59889         * lib/frexp.c: New file.
59890         * m4/frexp.m4: New file.
59891         * lib/math_.h (frexp): New declaration.
59892         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
59893         REPLACE_FREXP.
59894         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
59895
59896 2007-03-21  Bruno Haible  <bruno@clisp.org>
59897
59898         * modules/isnanl-tests: New file.
59899         * tests/test-isnanl.c: New file.
59900
59901         * modules/isnanl: New file.
59902         * lib/isnanl.h: New file.
59903         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
59904         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
59905         gl_FUNC_ISNANL_WORKS.
59906         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
59907         New macros.
59908
59909 2007-03-21  Bruno Haible  <bruno@clisp.org>
59910
59911         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
59912         lib/isnanl.h.
59913         (Include): Update.
59914         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
59915         * lib/vasnprintf.c: Update.
59916         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
59917         tests/test-isnanl.h, remove tests/test-isnanl.c.
59918         (Makefile.am): Update.
59919         * tests/test-isnanl-nolibm.c: New file.
59920         * tests/test-isnanl.h: New file.
59921         * tests/test-isnanl.c: Remove file.
59922
59923 2007-03-21  Jim Meyering  <jim@meyering.net>
59924
59925         When trying to open ".", treat ESTALE like EACCES.
59926         * lib/savewd.c (savewd_save): Resort to forking not just upon
59927         failure with EACCES, but also when errno is ESTALE.
59928
59929 2007-03-20  Bruno Haible  <bruno@clisp.org>
59930
59931         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
59932         Needed on AIX 5.1. Reported by Matthew Woehlke.
59933
59934 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
59935
59936         Suggestions by Bruno Haible:
59937         * lib/acl-internal.h: Include "gettext.h" rather than rolling
59938         our own.
59939         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
59940         * modules/acl (Depends-on): Add gettext.
59941
59942 2007-03-19  Bruno Haible  <bruno@clisp.org>
59943
59944         * modules/iconvme: Remove file.
59945         * lib/iconvme.h: Remove file.
59946         * lib/iconvme.c: Remove file.
59947         * m4/iconvme.m4: Remove file.
59948
59949 2007-03-19  Bruno Haible  <bruno@clisp.org>
59950
59951         * doc/relocatable-maint.texi: Break long shell script line.
59952         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
59953
59954 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
59955
59956         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
59957         handle file_has_acl.
59958         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
59959         * lib/acl.c: Move header inclusions and related macro defns into
59960         lib/acl-internal.h.
59961         (S_ISLNK): Remove defn, since that's now done for us.
59962         (file_has_acl): Move to lib/file-has-acl.c.
59963         Call acl_trivial if available.  This is the crucial part of the fix.
59964         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
59965         shared within the library.  Rewrite a bit, partly to make it compatible
59966         with the GNU coding style.
59967         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
59968         Remove unnecessary double-quotes.
59969         Don't test for acl_to_text; the build will catch that.
59970         Replace acl_entries if it doesn't exist and it is needed.
59971         Check for -lsec and acl_trivial (as used on Solaris 10).
59972         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
59973         lib/file-has-acl.c.
59974         (Depends-on): Add sys_stat, for S_ISLNK.
59975
59976 2007-03-19  Ben Pfaff  <blp@gnu.org>
59977
59978         * doc/gnulib.texi: Fix typos.
59979         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
59980
59981 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
59982
59983         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
59984         If size is zero here, buf must be zero.
59985
59986 2007-03-19  Simon Josefsson  <simon@josefsson.org>
59987
59988         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
59989         <bruno@clisp.org>.
59990
59991 2007-03-18  Bruno Haible  <bruno@clisp.org>
59992
59993         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
59994         Suggested by Eric Blake.
59995
59996 2007-03-18  Ben Pfaff  <blp@gnu.org>
59997
59998         * doc/relocatable.texi: Recommend using as prefix a directory
59999         that does not exist and will never be created.  Based on
60000         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
60001         and others.
60002
60003 2007-03-17  Bruno Haible  <bruno@clisp.org>
60004
60005         * lib/fchownat.c: Include lchown.h.
60006
60007 2007-03-17  Bruno Haible  <bruno@clisp.org>
60008
60009         Fix endless loop when the given allocated size was > INT_MAX.
60010         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
60011         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
60012         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
60013         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
60014         * lib/sprintf.c (sprintf): Likewise.
60015
60016 2007-03-17  Bruno Haible  <bruno@clisp.org>
60017
60018         * tests/test-argp-2.sh (func_compare): Output a context diff.
60019
60020 2007-03-17  Bruno Haible  <bruno@clisp.org>
60021
60022         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
60023         locale's decimal-point character.
60024
60025 2007-03-17  Bruno Haible  <bruno@clisp.org>
60026
60027         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
60028         before comparing it. Needed because on some platforms (e.g. x86) a
60029         'long double' occupies less bytes than sizeof (long double).
60030
60031 2007-03-17  Bruno Haible  <bruno@clisp.org>
60032
60033         * tests/test-crc.c (main): Make printf statements 64-bit clean.
60034         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
60035         * tests/test-getaddrinfo.c (simple): Likewise.
60036         * tests/test-read-file.c (main): Likewise.
60037
60038 2007-03-17  Bruno Haible  <bruno@clisp.org>
60039
60040         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
60041
60042 2007-03-17  Bruno Haible  <bruno@clisp.org>
60043
60044         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
60045         unused variable.
60046
60047 2007-03-17  Bruno Haible  <bruno@clisp.org>
60048
60049         * tests/test-c-strcasecmp.c: Include c-strcase.h.
60050         * tests/test-c-strncasecmp.c: Likewise.
60051
60052 2007-03-17  Bruno Haible  <bruno@clisp.org>
60053
60054         * modules/stdlib (Depends-on): Add unistd.
60055         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
60056         Needed for MacOS X 10.3.
60057
60058 2007-03-17  Bruno Haible  <bruno@clisp.org>
60059
60060         * lib/unistr/u-strdup.h: Include <stdlib.h>.
60061
60062 2007-03-17  Bruno Haible  <bruno@clisp.org>
60063
60064         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
60065
60066 2007-03-17  Bruno Haible  <bruno@clisp.org>
60067
60068         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
60069         to reflect files copied from gnulib (with or without modifications).
60070         Suggested by Jim Meyering.
60071
60072 2007-03-17  Eric Blake  <ebb9@byu.net>
60073
60074         * NEWS: Document stdlib change from 2007-02-18.
60075
60076 2007-03-17  Jim Meyering  <jim@meyering.net>
60077
60078         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
60079         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
60080         someone uses a name containing shell meta-characters.
60081         Reported by Alfred M. Szmidt.
60082
60083         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
60084
60085 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
60086
60087         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
60088         and copy gettext configuration files only if configure.ac contains
60089         a use of AM_GNU_GETTEXT_VERSION.
60090
60091 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
60092
60093         * build-aux/bootstrap (gnulib_name): New variable.
60094         (gnulib_tool_options): Use it.
60095
60096 2007-03-13  Simon Josefsson  <simon@josefsson.org>
60097
60098         * tests/test-des.c: Use new namespace.
60099
60100 2007-03-15  Bruno Haible  <bruno@clisp.org>
60101
60102         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
60103         Reported by James Youngman <jay@gnu.org>.
60104
60105 2007-03-15  Bruno Haible  <bruno@clisp.org>
60106
60107         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
60108         declared prototype. Needed with cc on OSF/1 5.1.
60109
60110 2007-03-15  Bruno Haible  <bruno@clisp.org>
60111
60112         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
60113         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
60114         (struct gl_list_implementation): Add dispose_fn argument to the
60115         'create_empty', 'create' methods.
60116         (struct gl_list_impl_base): Add field 'dispose_fn'.
60117         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
60118         argument.
60119         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
60120         dispose_fn argument.
60121         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
60122         dispose_fn on the dropped values.
60123         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
60124         dispose_fn argument.
60125         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
60126         dropped values.
60127         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
60128         (gl_tree_remove_node): Call dispose_fn on the dropped value.
60129         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
60130         (gl_tree_remove_node): Call dispose_fn on the dropped value.
60131         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
60132         argument.
60133         (gl_tree_list_free): Call dispose_fn on the dropped values.
60134         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
60135         the dropped values.
60136         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
60137         Add dispose_fn argument.
60138         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
60139         Call dispose_fn on the dropped values.
60140         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
60141         Add dispose_fn argument.
60142         (gl_sublist_create): Initialize the 'dispose_fn' field.
60143         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
60144         * tests/test-array_list.c (main): Update.
60145         * tests/test-carray_list.c (main): Update.
60146         * tests/test-avltree_list.c (main): Update.
60147         * tests/test-rbtree_list.c (main): Update.
60148         * tests/test-avltreehash_list.c (main): Update.
60149         * tests/test-rbtreehash_list.c (main): Update.
60150         * tests/test-linked_list.c (main): Update.
60151         * tests/test-linkedhash_list.c (main): Update.
60152         * tests/test-array_oset.c (main): Update.
60153
60154 2007-03-15  Bruno Haible  <bruno@clisp.org>
60155
60156         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
60157         (gl_oset_create_empty): Add dispose_fn argument.
60158         (struct gl_oset_implementation): Add dispose_fn argument to
60159         'create_empty' method.
60160         (struct gl_oset_impl_base): Add dispose_fn field.
60161         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
60162         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
60163         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
60164         values.
60165         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
60166         (gl_tree_oset_free): Call dispose_fn on the dropped values.
60167         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
60168         dropped value.
60169         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
60170         dropped value.
60171         * tests/test-array_oset.c (main): Update.
60172         * tests/test-avltree_oset.c (main): Update.
60173         * tests/test-rbtree_oset.c (main): Update.
60174         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
60175
60176 2007-03-13  Bruno Haible  <bruno@clisp.org>
60177
60178         * tests/test-stdbool.c (i): Update after last patch.
60179
60180 2007-03-12  Bruno Haible  <bruno@clisp.org>
60181
60182         * lib/quotearg.c: Include <wctype.h> early, before the definition of
60183         the iswprint macro. Needed on Solaris 2.5.1.
60184
60185 2007-03-12  Bruno Haible  <bruno@clisp.org>
60186
60187         * tests/test-printf-frexp.c (main): Declare x as volatile.
60188
60189 2007-03-12  Simon Josefsson  <simon@josefsson.org>
60190
60191         * doc/gnulib.texi (Build robot for gnulib): New section.
60192
60193 2007-03-12  Jim Meyering  <jim@meyering.net>
60194
60195         * build-aux/bootstrap: New file.
60196         * build-aux/bootstrap.conf: New file, from coreutils.
60197
60198 2007-03-11  Bruno Haible  <bruno@clisp.org>
60199
60200         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
60201
60202 2007-03-12  Simon Josefsson  <simon@josefsson.org>
60203
60204         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
60205         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
60206         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
60207
60208 2007-03-11  Bruno Haible  <bruno@clisp.org>
60209
60210         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
60211         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
60212
60213 2007-03-11  Bruno Haible  <bruno@clisp.org>
60214
60215         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
60216         formula. Needed for SunPRO C 5.0.
60217
60218 2007-03-11  Bruno Haible  <bruno@clisp.org>
60219
60220         * modules/long-options (Depends-on): Add getopt.
60221
60222 2007-03-11  Bruno Haible  <bruno@clisp.org>
60223
60224         * modules/modechange (Depends-on): Add stdbool.
60225
60226 2007-03-11  Bruno Haible  <bruno@clisp.org>
60227
60228         * modules/i-ring (Depends-on): Add stdbool.
60229
60230 2007-03-11  Bruno Haible  <bruno@clisp.org>
60231
60232         * modules/gc-des (Depends-on): Add stdbool.
60233
60234 2007-03-11  Bruno Haible  <bruno@clisp.org>
60235
60236         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
60237
60238 2007-03-11  Bruno Haible  <bruno@clisp.org>
60239
60240         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
60241
60242 2007-03-11  Bruno Haible  <bruno@clisp.org>
60243
60244         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
60245
60246 2007-03-11  Bruno Haible  <bruno@clisp.org>
60247
60248         * lib/vasnprintf.c (sprintf): Undefine.
60249
60250 2007-03-11  Bruno Haible  <bruno@clisp.org>
60251
60252         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
60253         initializers in SunPRO C and Compaq C compilers.
60254
60255 2007-03-11  Bruno Haible  <bruno@clisp.org>
60256
60257         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
60258         decrementing code ANSI C compliant.
60259
60260 2007-03-11  Bruno Haible  <bruno@clisp.org>
60261
60262         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
60263         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
60264
60265 2007-03-11  Bruno Haible  <bruno@clisp.org>
60266
60267         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
60268         <stdbool.h> substitute doesn't pass.
60269
60270 2007-03-11  Bruno Haible  <bruno@clisp.org>
60271
60272         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
60273
60274 2007-03-11  Bruno Haible  <bruno@clisp.org>
60275
60276         * gnulib-tool (func_create_megatestdir): Create also an autobuild
60277         script, for submission to autobuild.josefsson.org.
60278
60279 2007-03-10  Bruno Haible  <bruno@clisp.org>
60280
60281         * modules/canonicalize-lgpl-tests: New file.
60282         * tests/test-canonicalize-lgpl.sh: New file.
60283         * tests/test-canonicalize-lgpl.c: New file.
60284
60285         * modules/c-strcase-tests: New file.
60286         * tests/test-c-strcase.sh: New file.
60287         * tests/test-c-strcasecmp.c: New file.
60288         * tests/test-c-strncasecmp.c: New file.
60289
60290         * modules/atexit-tests: New file.
60291         * tests/test-atexit.sh: New file.
60292         * tests/test-atexit.c: New file.
60293
60294 2007-03-10  Bruno Haible  <bruno@clisp.org>
60295
60296         * tests/test-binary-io.sh: Use temporary filenames that are not so
60297         likely to clash with those of other tests (in a parallel make).
60298         * tests/test-binary-io.c: Likewise.
60299
60300 2007-03-10  Bruno Haible  <bruno@clisp.org>
60301
60302         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
60303         fallback; use #error instead.
60304         Suggested by Simon Josefsson.
60305
60306 2007-03-10  Bruno Haible  <bruno@clisp.org>
60307
60308         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
60309         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
60310         first and the last.
60311
60312 2007-03-10  Bruno Haible  <bruno@clisp.org>
60313
60314         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
60315
60316 2007-03-10  Bruno Haible  <bruno@clisp.org>
60317
60318         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
60319         "make distcheck".
60320         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
60321         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
60322         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
60323
60324 2007-03-10  Bruno Haible  <bruno@clisp.org>
60325
60326         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
60327         variable.
60328         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
60329         variable.
60330
60331 2007-03-09  Eric Blake  <ebb9@byu.net>
60332         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
60333
60334         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
60335         types are not being provided by gnulib.
60336         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
60337         types are supported.
60338
60339 2007-03-10  Bruno Haible  <bruno@clisp.org>
60340
60341         * lib/stdio_.h (__attribute__): New macro.
60342         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
60343         vsprintf): Specify __attribute__ __format__ for GCC.
60344         Suggested by Eric Blake.
60345
60346 2007-03-09  Bruno Haible  <bruno@clisp.org>
60347
60348         * modules/printf-posix-tests: New file.
60349         * tests/test-printf-posix.sh: New file.
60350         * tests/test-printf-posix.c: New file.
60351
60352         * modules/printf-posix: New file.
60353         * lib/printf.c: New file.
60354         * m4/printf-posix-rpl.m4: New file.
60355         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
60356         REPLACE_PRINTF.
60357         * lib/stdio_.h (printf): New declaration.
60358         (format, __format__, ____printf____, ____scanf____, ____strftime____,
60359         ____strfmon____): New macros.
60360         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
60361         REPLACE_PRINTF.
60362
60363 2007-03-09  Bruno Haible  <bruno@clisp.org>
60364
60365         * tests/test-vasnprintf-posix2.sh: New file.
60366         * tests/test-vasnprintf-posix2.c: New file.
60367         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
60368         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
60369         (Makefile.am): Activate test-vasnprintf-posix2.sh.
60370
60371         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
60372         a locale dependent decimal point, rather than always '.'.
60373
60374 2007-03-09  Eric Blake  <ebb9@byu.net>
60375
60376         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
60377         spite of platforms like Tandem/NSK that define it to -1.
60378
60379 2007-03-08  Bruno Haible  <bruno@clisp.org>
60380
60381         * modules/vprintf-posix-tests: New file.
60382         * tests/test-vprintf-posix.sh: New file.
60383         * tests/test-vprintf-posix.c: New file.
60384         * tests/test-printf-posix.h: New file.
60385
60386         * modules/vprintf-posix: New file.
60387         * lib/vprintf.c: New file.
60388         * m4/vprintf-posix.m4: New file.
60389         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
60390         REPLACE_VPRINTF.
60391         * lib/stdio_.h (vprintf): New declaration.
60392         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
60393         REPLACE_VPRINTF.
60394
60395 2007-03-08  Bruno Haible  <bruno@clisp.org>
60396
60397         * modules/fprintf-posix-tests: New file.
60398         * tests/test-fprintf-posix.sh: New file.
60399         * tests/test-fprintf-posix.c: New file.
60400
60401         * modules/fprintf-posix: New file.
60402         * lib/fprintf.c: New file.
60403         * m4/fprintf-posix.m4: New file.
60404         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
60405         REPLACE_FPRINTF.
60406         * lib/stdio_.h (fprintf): New declaration.
60407         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
60408         REPLACE_FPRINTF.
60409
60410 2007-03-08  Bruno Haible  <bruno@clisp.org>
60411
60412         * modules/vfprintf-posix-tests: New file.
60413         * tests/test-vfprintf-posix.sh: New file.
60414         * tests/test-vfprintf-posix.c: New file.
60415         * tests/test-fprintf-posix.h: New file.
60416         * tests/test-fprintf-posix.out: New file.
60417
60418         * modules/vfprintf-posix: New file.
60419         * lib/vfprintf.c: New file.
60420         * m4/vfprintf-posix.m4: New file.
60421         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
60422         REPLACE_VFPRINTF.
60423         * lib/stdio_.h (vfprintf): New declaration.
60424         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
60425         REPLACE_VFPRINTF.
60426
60427 2007-03-08  Bruno Haible  <bruno@clisp.org>
60428
60429         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
60430
60431 2007-03-08  Bruno Haible  <bruno@clisp.org>
60432
60433         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
60434         instead of 'expr' invocations.
60435         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60436         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60437         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60438         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60439         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60440         Suggested by Paul Eggert.
60441
60442 2007-03-08  Bruno Haible  <bruno@clisp.org>
60443
60444         * modules/fseterr-tests: New file.
60445         * tests/test-fseterr.c: New file.
60446
60447         * modules/fseterr: New file.
60448         * lib/fseterr.h: New file.
60449         * lib/fseterr.c: New file.
60450
60451 2007-03-08  Bruno Haible  <bruno@clisp.org>
60452
60453         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
60454         * lib/getopt_.h: Likewise.
60455         * lib/mbswidth.h: Likewise.
60456         * lib/setenv.h: Likewise.
60457         * lib/vasnprintf.h: Likewise.
60458         * lib/vasprintf.h: Likewise.
60459         * lib/verror.h: Likewise.
60460         * lib/xsetenv.h: Likewise.
60461         * lib/xvasprintf.h: Likewise.
60462
60463 2007-03-08  Jim Meyering  <jim@meyering.net>
60464
60465         * users.txt: Add parted.
60466
60467         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
60468
60469 2007-03-07  Bruno Haible  <bruno@clisp.org>
60470
60471         * m4/printf.m4: Make the shell script snippets copy&pastable.
60472
60473 2007-03-02  Bruno Haible  <bruno@clisp.org>
60474
60475         * lib/netinet_in_.h: New file.
60476         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
60477         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
60478         * modules/netinet_in (Files): Add lib/netinet_in_.h.
60479         (Depends-on): Add absolute-header.
60480         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
60481         into netinet/in.h.
60482
60483 2007-03-03  Bruno Haible  <bruno@clisp.org>
60484
60485         * lib/sys_select_.h: New file.
60486         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
60487         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
60488         * modules/sys_select (Files): Add lib/sys_select_.h.
60489         (Depends-on): Add absolute-header.
60490         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
60491         into sys/select.h.
60492
60493 2007-03-02  Bruno Haible  <bruno@clisp.org>
60494
60495         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
60496         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
60497         values.
60498         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
60499         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
60500         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
60501         * modules/sys_socket (Depends-on): Add absolute-header.
60502         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
60503         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
60504         (Include): Remove requirement of inclusion of <sys/types.h>.
60505
60506 2007-03-02  Bruno Haible  <bruno@clisp.org>
60507
60508         * lib/byteswap_.h (bswap_32): Fix formula.
60509
60510 2007-03-06  Bruno Haible  <bruno@clisp.org>
60511
60512         * modules/sprintf-posix-tests: New file.
60513         * tests/test-sprintf-posix.c: New file.
60514
60515         * modules/sprintf-posix: New file.
60516         * lib/sprintf.c: New file.
60517         * m4/sprintf-posix.m4: New file.
60518         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
60519         REPLACE_SPRINTF.
60520         * lib/stdio_.h (sprintf): New declaration.
60521         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
60522         REPLACE_SPRINTF.
60523
60524 2007-03-06  Bruno Haible  <bruno@clisp.org>
60525
60526         * modules/vsprintf-posix-tests: New file.
60527         * tests/test-vsprintf-posix.c: New file.
60528         * tests/test-sprintf-posix.h: New file.
60529
60530         * modules/vsprintf-posix: New file.
60531         * lib/vsprintf.c: New file.
60532         * m4/vsprintf-posix.m4: New file.
60533         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
60534         REPLACE_VSPRINTF.
60535         * lib/stdio_.h (vsprintf): New declaration.
60536         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
60537         REPLACE_VSPRINTF.
60538
60539 2007-03-06  Bruno Haible  <bruno@clisp.org>
60540
60541         * modules/vsnprintf (Depend-on): Remove minmax.
60542
60543 2007-03-06  Bruno Haible  <bruno@clisp.org>
60544
60545         * modules/snprintf-posix-tests: New file.
60546         * tests/test-snprintf-posix.c: New file.
60547
60548         * modules/snprintf-posix: New file.
60549         * m4/snprintf-posix.m4: New file.
60550         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
60551         gl_FUNC_SNPRINTF.
60552         (gl_FUNC_SNPRINTF): Invoke it.
60553         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
60554         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
60555         is set.
60556         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
60557
60558 2007-03-06  Bruno Haible  <bruno@clisp.org>
60559
60560         * modules/vsnprintf-posix-tests: New file.
60561         * tests/test-vsnprintf-posix.c: New file.
60562         * tests/test-snprintf-posix.h: New file.
60563
60564         * modules/vsnprintf-posix: New file.
60565         * m4/vsnprintf-posix.m4: New file.
60566         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
60567         gl_FUNC_VSNPRINTF.
60568         (gl_FUNC_VSNPRINTF): Invoke it.
60569         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
60570         * lib/stdio_.h (vsnprintf): Define as a replacement if
60571         REPLACE_VSNPRINTF is set.
60572         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
60573
60574 2007-03-06  Bruno Haible  <bruno@clisp.org>
60575
60576         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
60577         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
60578
60579 2007-03-06  Bruno Haible  <bruno@clisp.org>
60580
60581         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
60582         (asinl): Declare also if HAVE_DECL_ASINL is set.
60583         (atanl): Declare also if HAVE_DECL_ATANL is set.
60584         (ceill): Declare also if HAVE_DECL_CEILL is set.
60585         (cosl): Declare also if HAVE_DECL_COSL is set.
60586         (expl): Declare also if HAVE_DECL_EXPL is set.
60587         (floorl): Declare also if HAVE_DECL_FLOORL is set.
60588         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
60589         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
60590         (logl): Declare also if HAVE_DECL_LOGL is set.
60591         (sinl): Declare also if HAVE_DECL_SINL is set.
60592         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
60593         (tanl): Declare also if HAVE_DECL_TANL is set.
60594         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
60595         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
60596         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
60597         declaration of frexpl, ldexpl.
60598         * modules/printf-frexpl (Depends-on): Add math.
60599         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
60600
60601 2007-03-05  Bruno Haible  <bruno@clisp.org>
60602
60603         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
60604         frexpl and ldexpl are declared.
60605         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
60606
60607 2007-03-05  Bruno Haible  <bruno@clisp.org>
60608
60609         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
60610         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
60611
60612 2007-03-05  Bruno Haible  <bruno@clisp.org>
60613
60614         * lib/stdio_.h: Include <stddef.h>.
60615
60616 2007-03-05  Bruno Haible  <bruno@clisp.org>
60617
60618         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
60619
60620 2007-03-05  Bruno Haible  <bruno@clisp.org>
60621
60622         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
60623         NetBSD 4, from Ralf Wildenhues.
60624
60625 2007-03-04  Bruno Haible  <bruno@clisp.org>
60626
60627         * lib/vasprintf.h: Update #if logic for the case when the functions
60628         exist but are overridden.
60629
60630 2007-03-04  Bruno Haible  <bruno@clisp.org>
60631
60632         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
60633         implementations: glibc-2.4 and MacOS X 10.3.
60634         * tests/test-vasnprintf-posix.c (test_function): Test also the case
60635         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
60636         * tests/test-vasprintf-posix.c (test_function): Likewise.
60637
60638 2007-03-04  Bruno Haible  <bruno@clisp.org>
60639
60640         * modules/vasprintf-posix-tests: New file.
60641         * tests/test-vasprintf-posix.c: New file.
60642
60643         * modules/vasprintf-posix: New file.
60644         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
60645         defined.
60646         * m4/vasprintf-posix.m4: New file.
60647         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
60648         gl_FUNC_VASPRINTF.
60649         (gl_FUNC_VASPRINTF): Invoke it.
60650         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
60651         here.
60652         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
60653
60654 2007-03-04  Bruno Haible  <bruno@clisp.org>
60655
60656         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
60657         REPLACE_GETTIMEOFDAY.
60658         * modules/sys_time (Makefile.am): Likewise.
60659         * m4/sys_time_h.m4: Likewise.
60660         * m4/gettimeofday.m4: Likewise.
60661
60662 2007-03-04  Bruno Haible  <bruno@clisp.org>
60663
60664         * modules/vasnprintf-posix-tests: New file.
60665         * tests/test-vasnprintf-posix.c: New file.
60666
60667         * modules/vasnprintf-posix: New file.
60668         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
60669         printf-frexpl.h.
60670         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
60671         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
60672         REPLACE_VASNPRINTF is defined.
60673         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
60674         gl_FUNC_VASNPRINTF.
60675         (gl_FUNC_VASNPRINTF): Invoke it.
60676         * m4/vasnprintf-posix.m4: New file.
60677         * m4/printf.m4: New file.
60678
60679 2007-03-04  Bruno Haible  <bruno@clisp.org>
60680
60681         Compile progreloc.c only if --enable-relocatable is specified.
60682         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
60683         if --enable-relocatable was specified.
60684         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
60685         lib_SOURCES.
60686
60687 2007-03-04  Jim Meyering  <jim@meyering.net>
60688
60689         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
60690         Use it consistently, rather than enumerating errno constants.
60691
60692 2007-03-04  Bruno Haible  <bruno@clisp.org>
60693
60694         * modules/xvasprintf-tests: New file.
60695         * tests/test-xvasprintf.c: New file.
60696
60697         * modules/vasprintf-tests: New file.
60698         * tests/test-vasprintf.c: New file.
60699
60700         * modules/vasnprintf-tests: New file.
60701         * tests/test-vasnprintf.c: New file.
60702
60703         * modules/vsnprintf-tests: New file.
60704         * tests/test-vsnprintf.c: New file.
60705
60706         * modules/snprintf-tests: New file.
60707         * tests/test-snprintf.c: New file.
60708
60709 2007-03-04  Bruno Haible  <bruno@clisp.org>
60710
60711         Compile relocatable.c only if --enable-relocatable is specified.
60712         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
60713         gl_RELOCATABLE_LIBRARY.
60714         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
60715         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
60716         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
60717         gl_RELOCATABLE_LIBRARY.
60718         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
60719         (Makefile.am): Remove lib_SOURCES.
60720         * modules/relocatable-lib-lgpl (configure.ac): Invoke
60721         gl_RELOCATABLE_LIBRARY.
60722         (Makefile.am): Remove lib_SOURCES.
60723         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
60724         always.
60725         * modules/relocatable-prog-wrapper (configure.ac): Invoke
60726         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
60727
60728 2007-03-04  Bruno Haible  <bruno@clisp.org>
60729
60730         * modules/argmatch-tests: New file.
60731         * tests/test-argmatch.c: New file.
60732
60733         * tests/test-allocsa.c (main): Halve the number of loop runs.
60734
60735         * modules/alloca-opt-tests: New file.
60736         * tests/test-alloca-opt.c: New file.
60737
60738 2007-03-04  Jim Meyering  <jim@meyering.net>
60739
60740         Work around difference between Linux ACLs and Solaris 10 ZFS.
60741         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
60742         for EINVAL.
60743
60744 2007-03-03  Bruno Haible  <bruno@clisp.org>
60745
60746         * modules/relocatable-prog (Depends-on): Add back progreloc's
60747         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
60748
60749 2007-03-03  Bruno Haible  <bruno@clisp.org>
60750
60751         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
60752         * modules/relocatable-lib: New file.
60753
60754 2007-03-03  Bruno Haible  <bruno@clisp.org>
60755
60756         * modules/relocatable-prog: Renamed from modules/relocatable.
60757         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
60758
60759 2007-03-03  Bruno Haible  <bruno@clisp.org>
60760
60761         * modules/relocatable-script (Files): Add doc/relocatable.texi,
60762         m4/relocatable-lib.m4.
60763         (Depends-on): Remove 'relocatable'.
60764         (configure.ac): Add gl_RELOCATABLE_NOP.
60765
60766 2007-03-03  Bruno Haible  <bruno@clisp.org>
60767
60768         * modules/relocatable-prog-wrapper: New file.
60769         * modules/relocatable (Depends-on): Add it. Remove all other
60770         dependencies except progname.
60771         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
60772
60773         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
60774         (gl_FUNC_STRERROR): Nop.
60775         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
60776
60777         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
60778         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
60779
60780         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
60781         (gl_FUNC_READLINK): Update.
60782
60783         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
60784
60785 2007-03-03  Bruno Haible  <bruno@clisp.org>
60786
60787         * lib/xreadlink.c: Include <unistd.h> unconditionally.
60788         * modules/xreadlink (Depends-on): Add unistd.
60789         * modules/xreadlink-with-size (Depends-on): Likewise.
60790
60791 2007-03-03  Bruno Haible  <bruno@clisp.org>
60792
60793         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
60794         extracted from gt_FUNC_SETENV.
60795         (gt_FUNC_SETENV): Remove macro.
60796         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
60797         remove gt_FUNC_SETENV.
60798
60799 2007-03-03  Bruno Haible  <bruno@clisp.org>
60800
60801         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
60802         ENABLE_RELOCATABLE here.
60803         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
60804
60805 2007-03-03  Bruno Haible  <bruno@clisp.org>
60806
60807         * modules/rbtreehash-list-tests (Depends-on): Add progname.
60808         * tests/test-rbtreehash_list.c: Include progname.h.
60809         (main): Call set_program_name.
60810
60811         * modules/rbtree-oset-tests (Depends-on): Add progname.
60812         * tests/test-rbtree_oset.c: Include progname.h.
60813         (main): Call set_program_name.
60814
60815         * modules/rbtree-list-tests (Depends-on): Add progname.
60816         * tests/test-rbtree_list.c: Include progname.h.
60817         (main): Call set_program_name.
60818
60819         * modules/linked-list-tests (Depends-on): Add progname.
60820         * tests/test-linked_list.c: Include progname.h.
60821         (main): Call set_program_name.
60822
60823 2007-03-03  Bruno Haible  <bruno@clisp.org>
60824
60825         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
60826         All uses of __restrict changed to _Restrict_.
60827         * lib/glob_.h (__restrict): Remove macro.
60828
60829 2007-03-02  Bruno Haible  <bruno@clisp.org>
60830
60831         * modules/gettext (configure.ac): Require gettext infrastructure
60832         from version 0.16.1.
60833
60834 2007-03-02  Bruno Haible  <bruno@clisp.org>
60835
60836         * modules/linkedhash-list-tests (Depends-on): Add progname.
60837         * tests/test-linkedhash_list.c: Include progname.h.
60838         (main): Call set_program_name.
60839
60840         * modules/carray-list-tests (Depends-on): Add progname.
60841         * tests/test-carray_list.c: Include progname.h.
60842         (main): Call set_program_name.
60843
60844         * modules/avltreehash-list-tests (Depends-on): Add progname.
60845         * tests/test-avltreehash_list.c: Include progname.h.
60846         (main): Call set_program_name.
60847
60848         * modules/avltree-oset-tests (Depends-on): Add progname.
60849         * tests/test-avltree_oset.c: Include progname.h.
60850         (main): Call set_program_name.
60851
60852         * modules/avltree-list-tests (Depends-on): Add progname.
60853         * tests/test-avltree_list.c: Include progname.h.
60854         (main): Call set_program_name.
60855
60856         * modules/array-oset-tests (Depends-on): Add progname.
60857         * tests/test-array_oset.c: Include progname.h.
60858         (main): Call set_program_name.
60859
60860         * modules/array-list-tests (Depends-on): Add progname.
60861         * tests/test-array_list.c: Include progname.h.
60862         (main): Call set_program_name.
60863
60864         * modules/argp-tests (Depends-on): Add progname.
60865         * tests/test-argp.c: Include argp.h first. Include progname.h.
60866         (main): Call set_program_name.
60867
60868 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
60869
60870         * doc/gnulib-tool.texi (Initial import): Reword description of
60871         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
60872         limited effect even if defined after the first system include.
60873
60874 2007-03-01  Bruno Haible  <bruno@clisp.org>
60875
60876         * build-aux/config.libpath: Update to libtool-1.5.22.
60877         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
60878
60879 2007-03-01  Bruno Haible  <bruno@clisp.org>
60880
60881         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
60882         foo_CFLAGS.
60883         Reported by Ralf Wildenhues.
60884
60885 2007-03-01  Bruno Haible  <bruno@clisp.org>
60886
60887         * build-aux/install-reloc: Remove object files left over by some
60888         compilers.
60889         Reported by Ralf Wildenhues.
60890
60891 2007-03-01  Bruno Haible  <bruno@clisp.org>
60892
60893         * build-aux/install-reloc: Break long lines.
60894
60895 2007-03-01  Bruno Haible  <bruno@clisp.org>
60896
60897         * doc/relocatable.texi: Document that it may not work on OpenBSD.
60898         Reported by Ralf Wildenhues.
60899
60900 2007-03-01  Bruno Haible  <bruno@clisp.org>
60901
60902         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
60903         include ordering constraints.
60904
60905 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60906
60907         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
60908         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
60909         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
60910         as another example.
60911         * lib/time_.h: Fix misspelling.
60912         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60913         Require gl_HEADER_TIME_H_DEFAULTS.
60914         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
60915         * m4/time_r.m4 (gl_TIME_R): Likewise.
60916         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
60917
60918 2007-03-01  Bruno Haible  <bruno@clisp.org>
60919
60920         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
60921         * m4/utimens.m4 (gl_UTIMENS): Likewise.
60922
60923 2007-03-01  Jim Meyering  <jim@meyering.net>
60924
60925         * modules/xreadlink (Maintainer): Add my name.
60926         * modules/xreadlink-with-size (Depends-on): Alphabetize.
60927
60928 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
60929             Bruno Haible  <bruno@clisp.org>
60930
60931         * build-aux/install-reloc: Compile also c-ctype.c.
60932         * build-aux/relocatable.sh.in: New file.
60933         * doc/relocatable.texi: New file.
60934         * doc/relocatable-maint.texi: New file.
60935         * doc/gnulib.texi: Include relocatable-maint.texi.
60936         * lib/progreloc.c: Include unistd.h unconditionally.
60937         * lib/relocwrapper.c: Include unistd.h unconditionally.
60938         Include c-ctype.h.
60939         (add_dotbin): Use c_tolower.
60940         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
60941         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
60942         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
60943         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
60944         to m4/relocatable-lib.m4.
60945         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
60946         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
60947         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
60948         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
60949         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
60950         * modules/relocatable: New file.
60951         * modules/relocatable-lib: New file.
60952         * modules/relocatable-script: New file.
60953
60954 2007-02-28  Bruno Haible  <bruno@clisp.org>
60955
60956         Import --enable-relocatable infrastructure.
60957         * build-aux/config.libpath: New file, from GNU gettext.
60958         * build-aux/install-reloc: New file, from GNU gettext.
60959         * build-aux/reloc-ldflags: New file, from GNU gettext.
60960         * lib/relocatable.h: New file, from GNU gettext.
60961         * lib/relocatable.c: New file, from GNU gettext.
60962         * lib/relocwrapper.c: New file, from GNU gettext.
60963         * m4/relocatable.m4: New file, from GNU gettext.
60964
60965 2007-02-28  Bruno Haible  <bruno@clisp.org>
60966
60967         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
60968
60969         * modules/xreadlink: New file, from GNU gettext with modifications.
60970         * lib/xreadlink.c: New file, from GNU gettext.
60971         * lib/xreadlink.h: Add comments.
60972         (xreadlink): New declaration.
60973
60974         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
60975         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
60976         lib/xreadlink-with-size.c.
60977         (configure.ac): Remove gl_XREADLINK invocation.
60978         (Makefile.am): Augment lib_SOURCES.
60979         * m4/xreadlink.m4: Remove file.
60980         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
60981         (xreadlink_with_size): Renamed from xreadink.
60982         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
60983         * modules/canonicalize (Depends-on): Replace xreadlink with
60984         xreadlink-with-size.
60985         * lib/canonicalize.c (canonicalize_filename_mode): Update.
60986
60987 2007-02-25  Jim Meyering  <jim@meyering.net>
60988
60989         * build-aux/announce-gen: When complaining about excess arguments,
60990         list them.
60991
60992 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
60993
60994         * README: Document signed integer overflow situation more
60995         accurately.
60996
60997 2007-02-25  Bruno Haible  <bruno@clisp.org>
60998
60999         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
61000         'a' or 'A' conversion.
61001
61002 2007-02-25  Bruno Haible  <bruno@clisp.org>
61003
61004         * modules/filename: Renamed from modules/pathname.
61005         (Files): Replace lib/pathname.h with lib/filename.h. Replace
61006         lib/concatpath.c with lib/concat-filename.c.
61007         (Makefile.am): Update.
61008         (Include): Replace pathname.h with filename.h.
61009         * lib/filename.h: Renamed from lib/pathname.h.
61010         (concatenated_filename): Renamed from concatenated_pathname.
61011         * lib/concat-filename.c: Renamed from lib/concatpath.c.
61012         (concatenated_filename): Renamed from concatenated_pathname.
61013         * lib/findprog.c: Include filename.h instead of pathname.h.
61014         (find_in_path): Update.
61015         * lib/javacomp.c: Include filename.h instead of pathname.h.
61016         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
61017         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
61018         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
61019         is_oldgcj_14_13_usable, is_javac_usable): Update.
61020         * lib/javaexec.c: Include filename.h instead of pathname.h.
61021         (execute_java_class): Update.
61022         * modules/findprog: Update.
61023         * modules/javacomp: Update.
61024         * modules/javaexec: Update.
61025         * MODULES.html.sh (File system functions): Add 'filename', remove
61026         'pathname'.
61027
61028 2007-02-25  Bruno Haible  <bruno@clisp.org>
61029
61030         * modules/printf-frexpl-tests: New file.
61031         * tests/test-printf-frexpl.c: New file.
61032
61033         * modules/printf-frexpl: New file.
61034         * lib/printf-frexpl.h: New file.
61035         * lib/printf-frexpl.c: New file.
61036         * m4/printf-frexpl.m4: New file.
61037
61038 2007-02-25  Bruno Haible  <bruno@clisp.org>
61039
61040         * modules/printf-frexp-tests: New file.
61041         * tests/test-printf-frexp.c: New file.
61042
61043         * modules/printf-frexp: New file.
61044         * lib/printf-frexp.h: New file.
61045         * lib/printf-frexp.c: New file.
61046         * m4/printf-frexp.m4: New file.
61047
61048 2007-02-25  Bruno Haible  <bruno@clisp.org>
61049
61050         Assume automake >= 1.10 for the tests.
61051         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
61052         * modules/arctwo-tests: Likewise.
61053         * modules/argp-tests: Likewise.
61054         * modules/avltree-list-tests: Likewise.
61055         * modules/avltree-oset-tests: Likewise.
61056         * modules/avltreehash-list-tests: Likewise.
61057         * modules/carray-list-tests: Likewise.
61058         * modules/crc-tests: Likewise.
61059         * modules/des-tests: Likewise.
61060         * modules/gc-arcfour-tests: Likewise.
61061         * modules/gc-arctwo-tests: Likewise.
61062         * modules/gc-des-tests: Likewise.
61063         * modules/gc-hmac-md5-tests: Likewise.
61064         * modules/gc-hmac-sha1-tests: Likewise.
61065         * modules/gc-md2-tests: Likewise.
61066         * modules/gc-md4-tests: Likewise.
61067         * modules/gc-md5-tests: Likewise.
61068         * modules/gc-pbkdf2-sha1-tests: Likewise.
61069         * modules/gc-rijndael-tests: Likewise.
61070         * modules/gc-sha1-tests: Likewise.
61071         * modules/gc-tests: Likewise.
61072         * modules/getaddrinfo-tests: Likewise.
61073         * modules/hmac-md5-tests: Likewise.
61074         * modules/hmac-sha1-tests: Likewise.
61075         * modules/linked-list-tests: Likewise.
61076         * modules/linkedhash-list-tests: Likewise.
61077         * modules/lock-tests: Likewise.
61078         * modules/md2-tests: Likewise.
61079         * modules/md4-tests: Likewise.
61080         * modules/md5-tests: Likewise.
61081         * modules/rbtree-list-tests: Likewise.
61082         * modules/rbtree-oset-tests: Likewise.
61083         * modules/rbtreehash-list-tests: Likewise.
61084         * modules/read-file-tests: Likewise.
61085         * modules/rijndael-tests: Likewise.
61086         * modules/stdint-tests: Likewise.
61087         * modules/tls-tests: Likewise.
61088
61089 2007-02-24  Bruno Haible  <bruno@clisp.org>
61090
61091         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
61092         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
61093         function; instead check whether isnan with a double argument links.
61094         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
61095         function; instead check whether isnan with a 'long double' argument
61096         links.
61097         Reported by Eric Blake <ebb9@byu.net>.
61098
61099 2007-02-24  Bruno Haible  <bruno@clisp.org>
61100
61101         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
61102         defined.
61103         * lib/isnanl.c: Remove all code. Just include isnan.c.
61104         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
61105
61106 2007-02-25  Jim Meyering  <jim@meyering.net>
61107
61108         Avoid conflicting types for 'unsetenv' on FreeBSD.
61109         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
61110         conflicting with FreeBSD's (5.0 and 6.1) function declaration
61111         in stdlib.h.
61112
61113 2007-02-24  Bruno Haible  <bruno@clisp.org>
61114
61115         * modules/isnanl-nolibm-tests: New file.
61116         * tests/test-isnanl.c: New file.
61117
61118         * modules/isnanl-nolibm: New file.
61119         * lib/isnanl.h: New file.
61120         * lib/isnanl.c: New file.
61121         * m4/isnanl.m4: New file.
61122
61123 2007-02-24  Bruno Haible  <bruno@clisp.org>
61124
61125         * modules/isnan-nolibm-tests: New file.
61126         * tests/test-isnan.c: New file.
61127
61128         * modules/isnan-nolibm: New file.
61129         * lib/isnan.h: New file.
61130         * lib/isnan.c: New file.
61131         * m4/isnan.m4: New file.
61132
61133 2007-02-24  Bruno Haible  <bruno@clisp.org>
61134
61135         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
61136         assume that an exponent fits in 20 bits.
61137
61138 2007-02-24  Jim Meyering  <jim@meyering.net>
61139
61140         * m4/regex.m4: Update the description of the configure-time option,
61141         --without-included-regex, to state accurately what the defaults are,
61142         and perhaps to give people an idea why using this option is risky.
61143
61144 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
61145
61146         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
61147         loops on small arguments.  This attempts to avoid the problem
61148         Bruno Haible reported for AIX 4.3.2 in
61149         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
61150
61151 2007-02-23  Bruno Haible  <bruno@clisp.org>
61152
61153         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
61154         Needed for help2man.
61155
61156 2007-02-23  Karl Berry  <karl@gnu.org>
61157
61158         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
61159         exists, foo.h should be cvs-ignored, not committed.
61160
61161 2007-02-23  Eric Blake  <ebb9@byu.net>
61162
61163         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
61164         * lib/stat-time.h (includes): Likewise.
61165         * lib/utimecmp.c (includes): Likewise.
61166         * lib/utimens.h (includes): Likewise.
61167         * lib/getdate.y (includes): Also include "timespec.h" for use
61168         internal to the module.
61169         * modules/utimens (Depends-on): Revert yesterday's patch.
61170         * modules/nanosleep (Depends-on): Add missing dependency.
61171
61172 2007-02-22  Bruno Haible  <bruno@clisp.org>
61173
61174         * lib/glob.c: Don't include getlogin_r.h.
61175
61176 2007-02-22  Jim Meyering  <jim@meyering.net>
61177
61178         * modules/utimens (Depends-on): Add timespec, required for
61179         utimens.h's inclusion of timespec.h.
61180
61181 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
61182
61183         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
61184         long unreadable paths in GNU/Linux.  Problem reported by Andreas
61185         Schwab in
61186         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
61187         I'll try to think of a better way to fix the Solaris problem.
61188
61189         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
61190         like glibc; on Solaris 10, it fails with errno == EINVAL.
61191         POSIX says the behavior is unspecified if the first argument is NULL,
61192         so play it safe and never pass NULL to the system getcwd.
61193
61194 2007-02-21  Jim Meyering  <jim@meyering.net>
61195
61196         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
61197         of gettimeofday.  It would conflict with the one now always
61198         provided via sys_time_.h.  Reported by Matthew Woehlke, as
61199         an IRIX 6.5 build failure.
61200
61201 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
61202
61203         Minor fixups to port to Solaris 10 with Sun C 5.8.
61204         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
61205         * modules/getcwd (Depends-on): Add dirfd.
61206         * lib/putenv.c (putenv): #undef it.
61207         (rpl_putenv): New decl.
61208         (malloc, free): Include <stdlib.h> rather than prototyping separately.
61209
61210 2007-02-20  Bruno Haible  <bruno@clisp.org>
61211
61212         * modules/stdio-tests: New file.
61213         * tests/test-stdio.c: New file.
61214
61215         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
61216         (Depends-on): Add stdio.
61217         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
61218         (Include): Use <stdio.h> instead of vsnprintf.h.
61219         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
61220         HAVE_DECL_VSNPRINTF.
61221         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
61222
61223         * modules/snprintf (Files): Remove lib/snprintf.h.
61224         (Depends-on): Add stdio.
61225         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
61226         (Include): Use <stdio.h> instead of snprintf.h.
61227         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
61228         HAVE_DECL_SNPRINTF.
61229         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
61230         * lib/getaddrinfo.c: Likewise.
61231
61232         * modules/stdio: New file.
61233         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
61234         * lib/snprintf.h: Remove file.
61235         * lib/vsnprintf.h: Remove file.
61236         * lib/.cppi-disable: Remove snprintf.h.
61237         * m4/stdio_h.m4: New file.
61238         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
61239
61240 2007-02-20  Jim Meyering  <jim@meyering.net>
61241
61242         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
61243         used by e.g., mingw.  From Bruno Haible.
61244
61245 2007-02-19  Bruno Haible  <bruno@clisp.org>
61246
61247         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
61248         warnings.
61249         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61250
61251 2007-02-19  Bruno Haible  <bruno@clisp.org>
61252
61253         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
61254         from mingw users.
61255
61256 2007-02-19  Bruno Haible  <bruno@clisp.org>
61257
61258         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
61259         warnings.
61260         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
61261
61262 2007-02-19  Jim Meyering  <jim@meyering.net>
61263
61264         Don't use FD after a successful "fdopendir (fd)".
61265         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
61266         Reset it by calling dirfd on the just-obtained DIR*.
61267
61268         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
61269         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
61270
61271 2007-02-18  Bruno Haible  <bruno@clisp.org>
61272
61273         * lib/readlink.c: Include <unistd.h>.
61274         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
61275         HAVE_READLINK.
61276         * modules/readlink (Depends-on): Add unistd.
61277         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61278         (Include): Add <unistd.h>.
61279
61280         * lib/getlogin_r.h: Remove file.
61281         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
61282         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
61283         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
61284         HAVE_DECL_GETLOGIN_R.
61285         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
61286         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61287         (Include): Use <unistd.h> instead of getlogin_r.h.
61288
61289         * lib/getcwd.h: Remove file.
61290         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
61291         * lib/xgetcwd.c: Likewise.
61292         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
61293         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
61294         * modules/getcwd (Files): Remove lib/getcwd.h.
61295         (Depends-on): Add unistd.
61296         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61297         (Include): Use <unistd.h> instad of getcwd.h.
61298
61299         * lib/ftruncate.c: Include <unistd.h> first.
61300         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
61301         Set HAVE_FTRUNCATE.
61302         * modules/ftruncate (Depends-on): Add unistd.
61303         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61304
61305         * lib/fchdir.c: Include <unistd.h> first.
61306         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
61307         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
61308         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
61309         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61310         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
61311
61312         * lib/dup2.c: Include <unistd.h> first.
61313         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
61314         HAVE_DUP2.
61315         * modules/dup2 (Depends-on): Add unistd.
61316         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61317
61318         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
61319         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
61320         REPLACE_CHOWN. Don't define chown as a macro here.
61321         * modules/chown (Depends-on): Add unistd.
61322         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61323
61324         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
61325         Add definition for GL_LINK_WARNING.
61326         (chown, dup2): New declarations.
61327         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
61328         link warning.
61329         (ftruncate): New declaration.
61330         (getcwd): New declaration, taken from old getcwd.h.
61331         (getlogin_r): New declaration, taken from old getlogin_r.h.
61332         (readlink): New declaration.
61333         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
61334         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
61335         (gl_PREREQ_UNISTD): Remove macro.
61336         (gl_UNISTD_MODULE_INDICATOR): New macro.
61337         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
61338         many new variables. Don't set UNISTD_H.
61339         * modules/unistd (Description): Change.
61340         (Depends-on): Add link-warning.
61341         (configure.ac): Update.
61342         (Makefile.am): Create unistd.h always. Substitute many new variables
61343         into it.
61344
61345 2007-02-18  Bruno Haible  <bruno@clisp.org>
61346
61347         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
61348         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
61349         HAVE_GETSUBOPT.
61350         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
61351         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
61352         * lib/getsubopt.h: Remove file.
61353         * modules/getsubopt (Files): Remove lib/getsubopt.h.
61354         (Depends-on): Add stdlib.
61355         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61356         (Includes): Use <stdlib.h> instead of getsubopt.h.
61357         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
61358         Set HAVE_GETSUBOPT.
61359         * lib/getsubopt.c: Don't include getsubopt.h.
61360
61361 2007-02-18  Bruno Haible  <bruno@clisp.org>
61362
61363         * modules/fchdir (Depends-on): Add dup2.
61364
61365 2007-02-18  Bruno Haible  <bruno@clisp.org>
61366
61367         * lib/stdlib_.h: Handle glibc's special invocation convention
61368         specially.
61369
61370 2007-02-18  Bruno Haible  <bruno@clisp.org>
61371
61372         * modules/stdlib-tests: New file.
61373         * tests/test-stdlib.c: New file.
61374
61375         * modules/mkstemp (Files): Remove lib/mkstemp.h.
61376         (Depends-on): Add stdlib.
61377         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61378         (Includes): Use <stdlib.h> instead of mkstemp.h.
61379         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
61380         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
61381         * lib/mkstemp.c: Don't include mkstemp.h.
61382         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
61383         * lib/stdlib--.h: Don't include mkstemp.h.
61384
61385         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
61386         (Depends-on): Add stdlib.
61387         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61388         (Includes): Use <stdlib.h> instead of mkdtemp.h.
61389         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
61390         HAVE_MKDTEMP.
61391         * lib/mkdtemp.c: Don't include mkdtemp.h.
61392         * lib/clean-temp.c: Don't include mkdtemp.h.
61393
61394         * modules/exit (Files): Remove lib/exit.h.
61395         (Depends-on): Add stdlib.
61396         (Makefile.am): Remove lib_SOURCES.
61397         (Include): Use <stdlib.h> instead of exit.h.
61398         * lib/argmatch.c: Don't include exit.h.
61399         * lib/execute.c: Likewise.
61400         * lib/pagealign_alloc.c: Likewise.
61401         * lib/pipe.c: Likewise.
61402         * lib/wait-process.c: Likewise.
61403         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
61404         * lib/exitfail.c: Likewise.
61405         * lib/savewd.c: Likewise.
61406         * lib/xsetenv.c: Likewise.
61407
61408         * modules/stdlib: New file.
61409         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
61410         and extra comments about mkstemp().
61411         * lib/exit.h: Remove file.
61412         * lib/mkdtemp.h: Remove file.
61413         * lib/mkstemp.h: Remove file.
61414         * m4/stdlib_h.m4: New file.
61415         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
61416
61417 2007-02-18  Bruno Haible  <bruno@clisp.org>
61418
61419         * modules/math-tests: New file.
61420         * tests/test-math.c: New file.
61421
61422         * modules/math: New file.
61423         * modules/mathl (Files): Remove lib/mathl.h.
61424         (Depends-on): Add math.
61425         (Makefile.am): Don't mention mathl.h.
61426         (Include): Use <math.h> instead of mathl.h.
61427         * lib/math_.h: New file.
61428         * lib/mathl.h: Remove file.
61429         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
61430         mathl.h.
61431         * lib/asinl.c: Likewise.
61432         * lib/atanl.c: Likewise.
61433         * lib/ceill.c: Likewise.
61434         * lib/cosl.c: Likewise.
61435         * lib/expl.c: Likewise.
61436         * lib/floorl.c: Likewise.
61437         * lib/frexpl.c: Likewise.
61438         * lib/ldexpl.c: Likewise.
61439         * lib/logl.c: Likewise.
61440         * lib/sincosl.c: Likewise.
61441         * lib/sinl.c: Likewise.
61442         * lib/sqrtl.c: Likewise.
61443         * lib/tanl.c: Likewise.
61444         * lib/trigl.c: Likewise.
61445         * m4/math_h.m4: New file.
61446         * MODULES.html.sh (Mathematics): Add math.
61447
61448 2007-02-17  Bruno Haible  <bruno@clisp.org>
61449
61450         * modules/wctype-tests: New file.
61451         * tests/test-wctype.c: New file.
61452
61453         * modules/wchar-tests: New file.
61454         * tests/test-wchar.c: New file.
61455
61456         * modules/unistd-tests: New file.
61457         * tests/test-unistd.c: New file.
61458
61459         * modules/time-tests: New file.
61460         * tests/test-time.c: New file.
61461
61462         * modules/sysexits-tests: New file.
61463         * tests/test-sysexits.c: New file.
61464
61465         * modules/sys_time-tests: New file.
61466         * tests/test-sys_time.c: New file.
61467
61468         * modules/sys_stat-tests: New file.
61469         * tests/test-sys_stat.c: New file.
61470
61471         * modules/sys_socket-tests: New file.
61472         * tests/test-sys_socket.c: New file.
61473
61474         * modules/sys_select-tests: New file.
61475         * tests/test-sys_select.c: New file.
61476
61477         * modules/string-tests: New file.
61478         * tests/test-string.c: New file.
61479
61480         * modules/stdbool-tests: New file.
61481         * tests/test-stdbool.c: New file.
61482
61483         * modules/netinet_in-tests: New file.
61484         * tests/test-netinet_in.c: New file.
61485
61486         * modules/inttypes-tests: New file.
61487         * tests/test-inttypes.c: New file.
61488
61489         * modules/fcntl-tests: New file.
61490         * tests/test-fcntl.c: New file.
61491
61492         * modules/byteswap-tests: New file.
61493         * tests/test-byteswap.c: New file.
61494
61495         * modules/arpa_inet-tests: New file.
61496         * tests/test-arpa_inet.c: New file.
61497
61498 2007-02-17  Bruno Haible  <bruno@clisp.org>
61499
61500         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
61501         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
61502         if the corresponding module is not enabled. Emit link warnings if
61503         the function is used nevertheless.
61504         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
61505         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
61506         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
61507         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
61508         * modules/inttypes (Depends-on): Add link-warning.
61509         (Makefile.am): Copy the contents of build-aux/link-warning.h into
61510         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
61511         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
61512         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
61513         * modules/imaxdiv (configure.ac): Likewise.
61514         * modules/strtoimax (configure.ac): Likewise.
61515         * modules/strtoumax (configure.ac): Likewise.
61516
61517 2007-02-17  Bruno Haible  <bruno@clisp.org>
61518
61519         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
61520         gl_STRING_MODULE_INDICATOR_DEFAULTS.
61521         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
61522         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
61523
61524 2007-02-17  Bruno Haible  <bruno@clisp.org>
61525
61526         * modules/link-warning: New file.
61527         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
61528         * lib/string_.h (GL_LINK_WARNING): Remove definition.
61529         * modules/string (Depends-on): Add link-warning.
61530         (Makefile.am): Copy the contents of build-aux/link-warning.h into
61531         string.h.
61532         * MODULES.html.sh (Support for building libraries and executables): Add
61533         link-warning.
61534
61535 2007-02-17  Bruno Haible  <bruno@clisp.org>
61536
61537         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
61538         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
61539         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
61540         long lines.
61541
61542 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
61543             Bruno Haible  <bruno@clisp.org>
61544
61545         * modules/tmpfile: New file.
61546         * lib/tmpfile.c: New file.
61547         * m4/tmpfile.m4: New file.
61548         * MODULES.html.sh (func_all_modules): New section "Input/output".
61549
61550 2007-02-15  Bruno Haible  <bruno@clisp.org>
61551
61552         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
61553         (supports_delete_on_close): New function.
61554         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
61555
61556 2007-02-14  Bruno Haible  <bruno@clisp.org>
61557
61558         * modules/mbspcasecmp-tests: New file.
61559         * tests/test-mbspcasecmp.sh: New file.
61560         * tests/test-mbspcasecmp.c: New file.
61561
61562         New module mbspcasecmp.
61563         * modules/mbspcasecmp: New file.
61564         * lib/mbspcasecmp.c: New file.
61565         * lib/string_.h (strncasecmp): Change warning message.
61566         (mbspcasecmp): New declaration.
61567         * m4/mbspcasecmp.m4: New file.
61568         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61569         GNULIB_MBSPCASECMP.
61570         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
61571         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
61572
61573 2007-02-14  Bruno Haible  <bruno@clisp.org>
61574
61575         * modules/mbsncasecmp-tests: New file.
61576         * tests/test-mbsncasecmp.sh: New file.
61577         * tests/test-mbsncasecmp.c: New file.
61578
61579         New module mbsncasecmp.
61580         * modules/mbsncasecmp: New file.
61581         * lib/mbsncasecmp.c: New file.
61582         * lib/string_.h (mbsncasecmp): New declaration.
61583         * m4/mbsncasecmp.m4: New file.
61584         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61585         GNULIB_MBSNCASECMP.
61586         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
61587         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
61588
61589 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
61590
61591         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
61592         Verify that it doesn't overlap with our flags.
61593         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
61594         do not have the desired effect in multibyte locales; instead, use
61595         mbscasecmp.
61596         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
61597         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
61598         we don't require GNU fnmatch ourselves (if our users require it, they
61599         should do so explicitly).
61600
61601         Fix regex code so it doesn't rely on strcasecmp.
61602         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
61603         Otherwise, include gnulib's langinfo.h.
61604         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
61605         undesirable behavior in non-C locales.  Instead, rely on localecharset.
61606         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
61607         * modules/regex (FILES): Remove m4/codeset.m4.
61608         (Depends-on): Add localcharset.  Remove strcase.
61609
61610 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61611
61612         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
61613         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
61614
61615 2007-02-13  Bruno Haible  <bruno@clisp.org>
61616
61617         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
61618         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61619
61620 2007-02-12  Bruno Haible  <bruno@clisp.org>
61621
61622         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
61623         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
61624         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
61625         time warning rather than a link error.
61626
61627 2007-02-12  Bruno Haible  <bruno@clisp.org>
61628
61629         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
61630         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61631         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61632
61633 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
61634
61635         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
61636         args, not 2.
61637
61638 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
61639
61640         New module 'time', so that apps can include <time.h> as per
61641         POSIX and GNU instead of separate include files like time_r.h
61642         and timegm.h.  This implementation tries out a simpler approach
61643         for replacing decls in standard include files (as compared to
61644         the string module), somewhat as an experiment.
61645
61646         * config/srclist.txt: Comment out mktime.c for now.
61647         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
61648         since it doesn't apply any more.  Use generic wording instead.
61649         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
61650         'time'.
61651         * lib/time_.h, m4/time_h.m4, modules/time: New files.
61652         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
61653         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
61654         Don't include <sys/types.h>; no longer needed since we assume C89.
61655         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
61656         * lib/strftime.c: Likewise.
61657         * lib/time_r.c: Likewise.
61658         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
61659         * lib/nanosleep.c: Include <time.h> first, to check interface.
61660         * lib/strptime.c: Likewise.
61661         * lib/time_r.c: Likewise.
61662         * lib/timegm.c: Likewise.
61663         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
61664         needed.
61665         * lib/timegm.c: Don't include timegm.h; no longer needed.
61666         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
61667         time.h now handles any problems in that area.
61668         (struct timespec, nanosleep): Remove; time.h now arranges for these.
61669         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
61670         that time.h defines struct timespec.
61671         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
61672         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
61673         handles that.
61674         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
61675         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
61676         needed.  Set REPLACE_LOCALTIME.
61677         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
61678         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
61679         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
61680         nanosleep; time_h.m4 now does that.  Don't require
61681         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
61682         module handles this now.
61683         * modules/getdate (Depends-on): Remove timespec.  Add time.
61684         * modules/nanosleep (Depends-on): Likewise.
61685         * modules/stat-time (Depends-on): Likewise.
61686         * modules/nanosleep (Include): Include time.h, not timespec.h.
61687         * modules/strptime (Files): Remove lib/strptime.h.
61688         (Depends-on): Add extensions, time.
61689         (Include): Include time.h, not strptime.h.
61690         * modules/time_r (Files): Remove lib/time_r.h.
61691         (Depends-on): Add time.
61692         (Include): Include time.h, not time_r.h.
61693         * modules/timegm: Likewise.
61694         * modules/timespec (Description): Now does timespec-related decls
61695         of our own, instead of struct timespec itself.
61696         (Depends-on): Add time; remove extensions.
61697         (Maintainer): Add self.
61698         * modules/utimecmp (Depends-on): Add time; remove timespec.
61699         * modules/utimens (Depends-on): Likewise.
61700         * modules/xnanosleep (Depends-on): Likewise.
61701
61702 2007-02-11  Bruno Haible  <bruno@clisp.org>
61703
61704         * lib/c-strstr.c: Include allocsa.h.
61705         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
61706         * lib/c-strcasestr.c: Include allocsa.h.
61707         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
61708         * lib/strcasestr.c: Include allocsa.h.
61709         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
61710         * lib/mbsstr.c: Include allocsa.h.
61711         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
61712         allocsa/freesa instead of malloc/free.
61713         * lib/mbscasestr.c: Include allocsa.h.
61714         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
61715         allocsa/freesa instead of malloc/free.
61716         * modules/c-strstr (Depends-on): Add allocsa.
61717         * modules/c-strcasestr (Depends-on): Likewise.
61718         * modules/strcasestr (Depends-on): Likewise.
61719         * modules/mbsstr (Depends-on): Likewise.
61720         * modules/mbscasestr (Depends-on): Likewise.
61721
61722 2007-02-11  Bruno Haible  <bruno@clisp.org>
61723
61724         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
61725
61726         * modules/mbsspn-tests: New file.
61727         * tests/test-mbsspn.sh: New file.
61728         * tests/test-mbsspn.c: New file.
61729
61730 2007-02-11  Bruno Haible  <bruno@clisp.org>
61731
61732         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
61733
61734         * modules/mbspbrk-tests: New file.
61735         * tests/test-mbspbrk.sh: New file.
61736         * tests/test-mbspbrk.c: New file.
61737
61738 2007-02-11  Bruno Haible  <bruno@clisp.org>
61739
61740         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
61741         unneeded cast.
61742
61743         * modules/mbscspn-tests: New file.
61744         * tests/test-mbscspn.sh: New file.
61745         * tests/test-mbscspn.c: New file.
61746
61747 2007-02-11  Bruno Haible  <bruno@clisp.org>
61748
61749         * modules/mbscasecmp-tests: New file.
61750         * tests/test-mbscasecmp.sh: New file.
61751         * tests/test-mbscasecmp.c: New file.
61752
61753 2007-02-11  Bruno Haible  <bruno@clisp.org>
61754
61755         Ensure O(n) worst-case complexity of mbscasestr.
61756         * lib/mbscasestr.c: Include stdbool.h.
61757         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
61758         functions.
61759         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
61760         the bookkeeping indicates that it's worth it.
61761         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
61762
61763         * modules/mbscasestr-tests: New file.
61764         * tests/test-mbscasestr1.c: New file.
61765         * tests/test-mbscasestr2.sh: New file.
61766         * tests/test-mbscasestr2.c: New file.
61767         * tests/test-mbscasestr3.sh: New file.
61768         * tests/test-mbscasestr3.c: New file.
61769         * tests/test-mbscasestr4.sh: New file.
61770         * tests/test-mbscasestr4.c: New file.
61771         * m4/locale-tr.m4: New file.
61772
61773 2007-02-11  Bruno Haible  <bruno@clisp.org>
61774
61775         Ensure O(n) worst-case complexity of mbsstr.
61776         * lib/mbsstr.c: Include stdbool.h.
61777         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
61778         functions.
61779         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
61780         bookkeeping indicates that it's worth it.
61781         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
61782
61783         * modules/mbsstr-tests: New file.
61784         * tests/test-mbsstr1.c: New file.
61785         * tests/test-mbsstr2.sh: New file.
61786         * tests/test-mbsstr2.c: New file.
61787         * tests/test-mbsstr3.sh: New file.
61788         * tests/test-mbsstr3.c: New file.
61789         * m4/locale-fr.m4: New file.
61790
61791 2007-02-11  Bruno Haible  <bruno@clisp.org>
61792
61793         * lib/mbsrchr.c (mbsrchr): Fix bug.
61794
61795         * modules/mbsrchr-tests: New file.
61796         * tests/test-mbsrchr.sh: New file.
61797         * tests/test-mbsrchr.c: New file.
61798
61799 2007-02-11  Bruno Haible  <bruno@clisp.org>
61800
61801         * lib/mbschr.c (mbschr): Fix bug.
61802
61803         * modules/mbschr-tests: New file.
61804         * tests/test-mbschr.sh: New file.
61805         * tests/test-mbschr.c: New file.
61806         * m4/locale-zh.m4: New file.
61807
61808 2007-02-11  Bruno Haible  <bruno@clisp.org>
61809
61810         Support for copying multibyte string iterators.
61811         * lib/mbiter.h: Include <string.h>.
61812         (mbiter_multi_copy): New function.
61813         (mbi_copy): New macro.
61814         * lib/mbuiter.h: Include <string.h>.
61815         (mbuiter_multi_copy): New function.
61816         (mbui_copy): New macro.
61817
61818 2007-02-11  Bruno Haible  <bruno@clisp.org>
61819
61820         New module mbslen.
61821         * modules/mbslen: New file.
61822         * lib/mbslen.c: New file.
61823         * lib/string_.h (mbslen): New declaration.
61824         * m4/mbslen.m4: New file.
61825         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61826         GNULIB_MBSLEN.
61827         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
61828         * MODULES.html.sh (Internationalization functions): Add mbslen.
61829
61830 2007-02-11  Bruno Haible  <bruno@clisp.org>
61831
61832         Ensure O(n) worst-case complexity of strcasestr substitute.
61833         * lib/strcasestr.c: Include stdbool.h.
61834         (knuth_morris_pratt): New function.
61835         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
61836         bookkeeping indicates that it's worth it.
61837         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
61838
61839         * modules/strcasestr-tests: New file.
61840         * tests/test-strcasestr.c: New file.
61841
61842 2007-02-11  Bruno Haible  <bruno@clisp.org>
61843
61844         Ensure O(n) worst-case complexity of c_strcasestr.
61845         * lib/c-strcasestr.c: Include stdbool.h, string.h.
61846         (knuth_morris_pratt): New function.
61847         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
61848         the bookkeeping indicates that it's worth it.
61849         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
61850
61851         * modules/c-strcasestr-tests: New file.
61852         * tests/test-c-strcasestr.c: New file.
61853
61854 2007-02-11  Bruno Haible  <bruno@clisp.org>
61855
61856         Ensure O(n) worst-case complexity of c_strstr.
61857         * lib/c-strstr.c: Include stdbool.h, string.h.
61858         (knuth_morris_pratt): New function.
61859         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
61860         bookkeeping indicates that it's worth it.
61861         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
61862
61863         * lib/c-strstr.c: Complete rewrite for maintainability.
61864
61865         * modules/c-strstr-tests: New file.
61866         * tests/test-c-strstr.c: New file.
61867
61868 2007-02-11  Bruno Haible  <bruno@clisp.org>
61869
61870         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
61871         5.2.1 and earlier, whereby \055 was treated just like the range
61872         delimiter '-'.
61873         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
61874
61875 2007-02-08  Bruno Haible  <bruno@clisp.org>
61876
61877         * modules/regex (Depends-on): Add stdbool.
61878         Reported by Dalibor Topic <robilad@kaffe.org>.
61879
61880 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
61881
61882         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
61883         Prefer returning from main to exiting from it.
61884         Remove unnecessary parens after sizeof.
61885
61886 2007-02-05  Bruno Haible  <bruno@clisp.org>
61887
61888         New module mbssep.
61889         * modules/mbssep: New file.
61890         * lib/mbssep.c: New file.
61891         * lib/string_.h (strsep): Add a conditional link warning.
61892         (mbssep): New declaration.
61893         * m4/mbssep.m4: New file.
61894         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61895         GNULIB_MBSSEP.
61896         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
61897         * MODULES.html.sh (Internationalization functions): Add mbssep.
61898
61899 2007-02-05  Bruno Haible  <bruno@clisp.org>
61900
61901         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
61902         Optimize search in case of 1 delimiter.
61903
61904 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
61905
61906         * lib/acl.h: Include sys/types.h before sys/acl.h.
61907
61908 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
61909
61910         Merge upstream fix for glibc bugzilla #3957:
61911
61912         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
61913
61914         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
61915         bit for RE_HAT_LISTS_NOT_NEWLINE.
61916         (build_charclass_op): Remove bogus comment.
61917
61918 2007-02-05  Simon Josefsson  <simon@josefsson.org>
61919
61920         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
61921
61922 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
61923
61924         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
61925         * lib/memmem.c [!defined _LIBC]: Include config.h.
61926
61927 2007-02-04  Bruno Haible  <bruno@clisp.org>
61928
61929         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
61930         warning message.
61931
61932 2007-02-04  Bruno Haible  <bruno@clisp.org>
61933
61934         New module mbstok_r.
61935         * modules/mbstok_r: New file.
61936         * lib/mbstok_r.c: New file.
61937         * lib/string_.h (strtok_r): Change argument names to match the
61938         comments. Add a conditional link warning.
61939         (mbstok_r): New declaration.
61940         * m4/mbstok_r.m4: New file.
61941         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61942         GNULIB_MBSTOK_R.
61943         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
61944         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
61945
61946 2007-02-04  Bruno Haible  <bruno@clisp.org>
61947
61948         New module mbsspn.
61949         * modules/mbsspn: New file.
61950         * lib/mbsspn.c: New file.
61951         * lib/string_.h (strspn): Add a conditional link warning.
61952         (mbsspn): New declaration.
61953         * m4/mbsspn.m4: New file.
61954         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61955         GNULIB_MBSSPN.
61956         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
61957         * MODULES.html.sh (Internationalization functions): Add mbsspn.
61958
61959 2007-02-04  Bruno Haible  <bruno@clisp.org>
61960
61961         New module mbspbrk.
61962         * modules/mbspbrk: New file.
61963         * lib/mbspbrk.c: New file.
61964         * lib/string_.h (strpbrk): Add a conditional link warning.
61965         (mbspbrk): New declaration.
61966         * m4/mbspbrk.m4: New file.
61967         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61968         GNULIB_MBSPBRK.
61969         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
61970         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
61971
61972 2007-02-04  Bruno Haible  <bruno@clisp.org>
61973
61974         New module mbscspn.
61975         * modules/mbscspn: New file.
61976         * lib/mbscspn.c: New file.
61977         * lib/string_.h (strcspn): Add a conditional link warning.
61978         (mbscspn): New declaration.
61979         * m4/mbscspn.m4: New file.
61980         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
61981         GNULIB_MBSCSPN.
61982         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
61983         * MODULES.html.sh (Internationalization functions): Add mbscspn.
61984
61985 2007-02-04  Bruno Haible  <bruno@clisp.org>
61986
61987         New module mbscasestr, reduced goal of strcasestr.
61988         * modules/mbscasestr: New file.
61989         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
61990         (mbscasestr): Renamed from strcasestr.
61991         * lib/strcasestr.c: Don't include mbuiter.h.
61992         (strcasestr): Remove support for multibyte locales.
61993         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
61994         Change the conditional link warning.
61995         (mbscasestr): New declaration.
61996         * m4/mbscasestr.m4: New file.
61997         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
61998         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
61999         REPLACE_STRCASESTR.
62000         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
62001         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62002         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
62003         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
62004         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
62005         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
62006         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
62007         (Depends-on): Remove mbuiter.
62008         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
62009
62010 2007-02-04  Bruno Haible  <bruno@clisp.org>
62011
62012         Simplify handling of strncasecmp.
62013         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
62014         the conditional link warning.
62015         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62016         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
62017         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
62018         * modules/strcase (configure.ac): Don't invoke
62019         gl_STRING_MODULE_INDICATOR.
62020         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
62021
62022 2007-02-04  Bruno Haible  <bruno@clisp.org>
62023
62024         New module mbscasecmp, reduced goal of strcasecmp.
62025         * modules/mbscasecmp: New file.
62026         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
62027         (mbscasecmp): Renamed from strcasecmp.
62028         * lib/strcasecmp.c: Don't include mbuiter.h.
62029         (strcasecmp): Remove support for multibyte locales.
62030         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
62031         Change the conditional link warning.
62032         (mbscasecmp): New declaration.
62033         * m4/mbscasecmp.m4: New file.
62034         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
62035         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
62036         REPLACE_STRCASECMP.
62037         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
62038         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62039         GNULIB_MBSCASECMP.
62040         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
62041         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
62042         * modules/strcase (Files): Remove m4/mbrtowc.m4.
62043         (Depends-on): Remove mbuiter.
62044         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
62045
62046 2007-02-04  Bruno Haible  <bruno@clisp.org>
62047
62048         New module mbsstr. Remove module strstr.
62049         * modules/mbsstr: New file.
62050         * modules/strstr: Remove file.
62051         * lib/mbsstr.c: Renamed from lib/strstr.c.
62052         (mbsstr): Renamed from strstr.
62053         * lib/string_.h (strstr): Remove declaration. Change the conditional
62054         link warning.
62055         (mbsstr): New declaration.
62056         * m4/mbsstr.m4: New file.
62057         * m4/strstr.m4: Remove file.
62058         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
62059         REPLACE_STRSTR.
62060         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
62061         Don't initialize GNULIB_STRSTR.
62062         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
62063         substitute GNULIB_STRSTR and REPLACE_STRSTR.
62064         * MODULES.html.sh (Internationalization functions): Add mbsstr.
62065         (Support for systems lacking ANSI C 89): Remove strstr.
62066
62067 2007-02-04  Bruno Haible  <bruno@clisp.org>
62068
62069         New module mbsrchr.
62070         * modules/mbsrchr: New file.
62071         * lib/mbsrchr.c: New file.
62072         * lib/string_.h (strrchr): Add a conditional link warning.
62073         (mbsrchr): New declaration.
62074         * m4/mbsrchr.m4: New file.
62075         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62076         GNULIB_MBSRCHR.
62077         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
62078         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
62079
62080 2007-02-04  Bruno Haible  <bruno@clisp.org>
62081
62082         New module mbschr.
62083         * modules/mbschr: New file.
62084         * lib/mbschr.c: New file.
62085         * lib/string_.h (strchr): Add a conditional link warning.
62086         (mbschr): New declaration.
62087         * m4/mbschr.m4: New file.
62088         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
62089         GNULIB_MBSCHR.
62090         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
62091         * MODULES.html.sh (Internationalization functions): Add mbschr.
62092
62093 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
62094
62095         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
62096
62097         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
62098
62099 2007-02-04  Bruno Haible  <bruno@clisp.org>
62100
62101         New module description section 'configure.ac-early'.
62102         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
62103         (func_get_autoconf_early_snippet): New function.
62104         (func_import, func_create_testdir): Use it. Remove special cases for
62105         modules 'extensions' and 'lock'.
62106         * modules/extensions (configure.ac-early): Require
62107         gl_USE_SYSTEM_EXTENSIONS.
62108         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
62109
62110 2007-02-04  Bruno Haible  <bruno@clisp.org>
62111
62112         Make use of gcj-4.3's -fsource and -ftarget option.
62113         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
62114         and if so try the options -fsource and -ftarget.
62115         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
62116         source_version, ftarget_option, target_version arguments.
62117         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
62118         (is_envjavac_oldgcj_14_14_usable): Renamed from
62119         is_envjavac_gcj_14_14_usable.
62120         (is_envjavac_oldgcj_14_13_usable): Renamed from
62121         is_envjavac_gcj_14_13_usable.
62122         (is_gcj_present): Update.
62123         (is_gcj_43, is_gcj43_usable): New functions.
62124         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
62125         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
62126         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
62127         try the options -fsource and -ftarget.
62128
62129 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
62130
62131         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
62132         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
62133         larger value.
62134
62135 2007-02-03  Jim Meyering  <jim@meyering.net>
62136
62137         Give tools a better chance to allocate space for very large buffers.
62138         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
62139
62140         Make pwd and readlink work also when run with an unreadable parent dir
62141         on systems with openat support.
62142         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
62143         provided getcwd function, even when we have openat support.
62144         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
62145
62146 2007-02-02  Bruno Haible  <bruno@clisp.org>
62147
62148         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
62149         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
62150         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
62151         portability problems if one of these functions is only used on specific
62152         platforms.
62153         Reported by Paul Eggert.
62154
62155 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
62156
62157         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
62158         is causing more trouble than it's curing.
62159         * lib/regex_internal.h (__mempcpy): Remove.
62160         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
62161         (and make the code a tad smaller to boot).
62162         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
62163
62164 2007-02-02  Jim Meyering  <jim@meyering.net>
62165
62166         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
62167         section, not in the Makefile.am: one.
62168
62169 2007-02-02  Eric Blake  <ebb9@byu.net>
62170
62171         * lib/strchrnul.c: Always include config.h first.
62172
62173         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
62174         gnulib strstr is not necessary here.
62175
62176 2007-02-02  Simon Josefsson  <simon@josefsson.org>
62177
62178         * m4/socklen.m4: Fix typo.
62179
62180 2007-02-02  Eric Blake  <ebb9@byu.net>
62181
62182         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
62183         * modules/netinet_in (Makefile.am): Likewise.
62184
62185 2007-02-01  Bruno Haible  <bruno@clisp.org>
62186
62187         * lib/string_.h (GL_LINK_WARNING): New macro.
62188         (strcasecmp, strstr, strcasestr): If provided by the system,
62189         conditionally define as a macro that leads to a warning instead of to
62190         an error.
62191         (strncasecmp): Conditionally define as a macro that leads to a warning.
62192
62193 2007-02-01  Karl Berry  <karl@gnu.org>
62194
62195         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
62196
62197 2007-02-01  Bruno Haible  <bruno@clisp.org>
62198
62199         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
62200         renamings.
62201
62202 2007-02-01  Eric Blake  <ebb9@byu.net>
62203
62204         * modules/regex (Depends-on): Revert dependence on mempcpy.
62205         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
62206         module's definition of mempcpy.
62207         Reported by Paul Eggert.
62208
62209 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
62210
62211         * lib/string_.h: If the gnulib module XYZ is not present, undefine
62212         the symbol XYZ before redefining it.  This fixes a problem with
62213         programs that don't use XYZ, when compiled on systems that define
62214         XYZ to something else.
62215
62216 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
62217
62218         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
62219         occurs when "mkdir -m foo" creates a setgid directory that is (1)
62220         writeable to group or other and (2) is intended to have a special
62221         mode bit that is set or cleared.  In such a case, the directory
62222         should be neither group- nor other-writeable until the special
62223         mode bits are right.
62224
62225 2007-01-31  Eric Blake  <ebb9@byu.net>
62226
62227         * modules/mountlist (Depends-on): Add strstr.
62228
62229         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
62230         bug.
62231         * modules/string (Makefile.am): Remove redundant replacement.
62232         * modules/regex (Depends-on): Add mempcpy.
62233
62234 2007-01-31  Bruno Haible  <bruno@clisp.org>
62235
62236         New module description field 'Link'.
62237         * gnulib-tool (func_usage): Document --extract-link-directive.
62238         (sed_extract_prog): Recognize 'Link' directive.
62239         (func_get_link_directive): New function.
62240         (func_import): Show summary of link directives.
62241         Handle --extract-link-directive option.
62242         * modules/acl (Link): New section.
62243         * modules/clock-time (Link): New section.
62244         * modules/euidaccess (Link): New section.
62245         * modules/gettext (Link): New section.
62246         * modules/iconv (Link): New section.
62247         * modules/lock (Link): New section.
62248         * modules/nanosleep (Link): New section.
62249         * modules/readline (Link): New section.
62250
62251 2007-01-27  Bruno Haible  <bruno@clisp.org>
62252
62253         Enforce the use of gnulib modules for unportable <string.h> functions.
62254         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
62255         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
62256         (gl_HEADER_STRING_H_BODY): Require it.
62257         * lib/string_.h: If the gnulib module XYZ is not present, redefine
62258         the symbol XYZ to one that gives a link error.
62259         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
62260         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
62261         * modules/mempcpy (configure.ac): Likewise.
62262         * modules/memrchr (configure.ac): Likewise.
62263         * modules/stpcpy (configure.ac): Likewise.
62264         * modules/stpncpy (configure.ac): Likewise.
62265         * modules/strcase (configure.ac): Likewise.
62266         * modules/strcasestr (configure.ac): Likewise.
62267         * modules/strchrnul (configure.ac): Likewise.
62268         * modules/strdup (configure.ac): Likewise.
62269         * modules/strndup (configure.ac): Likewise.
62270         * modules/strnlen (configure.ac): Likewise.
62271         * modules/strpbrk (configure.ac): Likewise.
62272         * modules/strsep (configure.ac): Likewise.
62273         * modules/strstr (configure.ac): Likewise.
62274         * modules/strtok_r (configure.ac): Likewise.
62275
62276 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
62277
62278         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
62279
62280 2007-01-30  Jim Meyering  <jim@meyering.net>
62281
62282         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
62283
62284 2007-01-29  Bruno Haible  <bruno@clisp.org>
62285
62286         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
62287         * lib/execute.c: Likewise.
62288         * lib/pipe.c: Likewise.
62289         * lib/printf-args.h: Likewise.
62290         * lib/printf-args.c: Likewise.
62291         * lib/printf-parse.c: Likewise.
62292         * lib/vasnprintf.c: Likewise.
62293
62294 2007-01-29  Eric Blake  <ebb9@byu.net>
62295
62296         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
62297         declaration.
62298
62299 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
62300
62301         * lib/strptime.h (strptime): Use 'restrict' for args where
62302         POSIX requires this.
62303         * lib/strptime.c (strptime): Likewise.
62304         Change license notice from LGPL to GPL, since gnulib-tool will
62305         change this as needed.
62306         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
62307         defined.
62308         Include "strptime.h" first, to check interface.
62309         Do not #undef _LIBC and _NL_CURRENT.
62310         Do not include <stdlib.h>; no longer needed.
62311         Include "time_r.h" and declare ptime_locale_status
62312         only if _LIBC is not defined.
62313         (__P): Remove unused macro.
62314         (match_string): Bring back glibc version, but use it only if _LIBC
62315         is defined.
62316         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
62317         Remove unnecessary assertion and abort() call.
62318         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
62319         * m4/strptime.m4: Fix serial number comment.
62320         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
62321         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
62322         (Depends-on): Add time_r.
62323
62324 2007-01-29  Bruno Haible  <bruno@clisp.org>
62325
62326         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62327         strptime.
62328         * modules/strptime (Depends-on): Add stdbool.
62329         * lib/strptime.h: Include <time.h> always. Add comments.
62330
62331 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62332
62333         * modules/strptime: New file.
62334         * lib/strptime.h: New file.
62335         * lib/strptime.c: New file.
62336         * m4/strptime.m4: New file.
62337
62338 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
62339
62340         * MODULES.html.sh: New module mpsort.
62341         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
62342
62343         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
62344         a circularity problem with HP-UX ia64 reported by Bob Proulx in
62345         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
62346         All uses changed.
62347         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
62348         All uses changed.
62349         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
62350         to _Restrict_.
62351         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
62352         the parameter matches the prototype.
62353
62354 2007-01-28  Jim Meyering  <jim@meyering.net>
62355
62356         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
62357         sys/time.h here, reverting that part of the previous patch:
62358         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
62359
62360 2007-01-28  Bruno Haible  <bruno@clisp.org>
62361
62362         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
62363         value of $(SYS_TIME_H).
62364         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
62365         remove it conditionally, too. [added by Jim Meyering]
62366         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
62367         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
62368         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
62369         GETTIMEOFDAY_REPLACEMENT to 1.
62370
62371 2007-01-28  Bruno Haible  <bruno@clisp.org>
62372
62373         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
62374         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
62375         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
62376         Set UNISTD_H instead of UNISTD_H2.
62377         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
62378
62379 2007-01-28  Bruno Haible  <bruno@clisp.org>
62380
62381         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
62382         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
62383
62384 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62385
62386         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
62387         (func_create_testdir): Ensure C locale for `grep' and `tr'
62388         character ranges.
62389         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
62390         ACLOCAL_AMFLAGS parsing state machine.
62391
62392 2007-01-27  Bruno Haible  <bruno@clisp.org>
62393
62394         * modules/unistr/base: Update.
62395
62396 2007-01-27  Bruno Haible  <bruno@clisp.org>
62397
62398         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
62399         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
62400         * modules/unistr/u32-mbtouc-unsafe: Renamed from
62401         modules/unistr/u32-mbtouc.
62402         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
62403         * lib/unistr.h: Update.
62404         * lib/linebreak.c: Update.
62405         * modules/unistr/u32-mbtouc: Renamed from
62406         modules/unistr/u32-mbtouc-safe.
62407         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
62408         * lib/unistr.h: Update.
62409         * lib/unistr/u32-to-u8.c: Update.
62410         * lib/unistr/u32-to-u16.c: Update.
62411
62412 2007-01-27  Bruno Haible  <bruno@clisp.org>
62413
62414         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
62415         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
62416         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
62417         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
62418         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
62419         * modules/unistr/u16-mbtouc-unsafe: Renamed from
62420         modules/unistr/u16-mbtouc.
62421         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
62422         * lib/unistr.h: Update.
62423         * lib/linebreak.c: Update.
62424         * modules/linebreak: Update.
62425         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
62426         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
62427         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
62428         * modules/unistr/u16-mbtouc: Renamed from
62429         modules/unistr/u16-mbtouc-safe.
62430         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
62431         * lib/unistr.h: Update.
62432         * lib/unistr/u16-to-u8.c: Update.
62433         * modules/unistr/u16-to-u8: Update.
62434         * lib/unistr/u16-to-u32.c: Update.
62435         * modules/unistr/u16-to-u32: Update.
62436
62437 2007-01-27  Bruno Haible  <bruno@clisp.org>
62438
62439         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
62440         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
62441         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
62442         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
62443         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
62444         * modules/unistr/u8-mbtouc-unsafe: Renamed from
62445         modules/unistr/u8-mbtouc.
62446         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
62447         * lib/unistr.h: Update.
62448         * lib/striconveh.c: Update.
62449         * modules/striconveh: Update.
62450         * lib/linebreak.c: Update.
62451         * modules/linebreak: Update.
62452         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
62453         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
62454         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
62455         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
62456         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
62457         * lib/unistr.h: Update.
62458         * lib/striconveh.c: Update.
62459         * modules/striconveh: Update.
62460         * lib/unistr/u8-to-u16.c: Update.
62461         * modules/unistr/u8-to-u16: Update.
62462         * lib/unistr/u8-to-u32.c: Update.
62463         * modules/unistr/u8-to-u32: Update.
62464
62465 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62466
62467         Sync from Libtool.
62468         * lib/argz.c: Do not include strings.h nor memory.h, include
62469         string.h unconditionally.  Patch by Simon Josefsson.
62470
62471 2007-01-27  Bruno Haible  <bruno@clisp.org>
62472
62473         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
62474         from gl_HEADER_STRING_H_BODY.
62475         (gl_HEADER_STRING_H_BODY): Require it.
62476         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
62477         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62478         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62479         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62480         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62481         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
62482         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
62483         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62484         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
62485         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62486         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62487         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
62488         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62489         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
62490         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62491
62492 2007-01-27  Bruno Haible  <bruno@clisp.org>
62493
62494         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
62495         check_PROGRAMS into noinst_PROGRAMS.
62496         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
62497         check_PROGRAMS in this case.
62498         (func_import): Set for_test to false.
62499         (func_create_testdir): Set for_test to true.
62500
62501 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
62502             Bruno Haible  <bruno@clisp.org>
62503
62504         * modules/strcasestr (Files): Remove lib/strcasestr.h.
62505         (Depends-on): Add string.
62506         (Includes): Use <string.h> instead of strcasestr.h.
62507         * modules/string (Makefile.am): Also substitute the value of
62508         REPLACE_STRCASESTR.
62509         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
62510         assume strcasestr is declared in <string.h> not <strings.h>. Also
62511         set REPLACE_STRCASESTR.
62512         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
62513         REPLACE_STRCASESTR.
62514         * lib/strcasestr.h: Remove file.
62515         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
62516         * lib/string_.h (strcasestr): New declaration.
62517
62518 2007-01-27  Bruno Haible  <bruno@clisp.org>
62519
62520         * lib/string_.h: Use 'extern'.
62521
62522 2007-01-27  Jim Meyering  <jim@meyering.net>
62523
62524         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
62525         of set-but-not-used local, "q".
62526
62527         * lib/mempcpy.c: Include <config.h> before <string.h>.
62528         This fixes a compilation error on HP-UX, due to the system's
62529         "restrict"-using mempcpy prototype.
62530
62531 2007-01-26  Bruno Haible  <bruno@clisp.org>
62532
62533         Small optimization.
62534         * lib/javacomp.c: Include c-strstr.h.
62535          (is_envjavac_gcj): Use c_strstr instead of strstr.
62536         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
62537
62538 2007-01-26  Bruno Haible  <bruno@clisp.org>
62539
62540         * MODULES.html.sh (Unicode string functions): Add the new modules.
62541
62542         * modules/uniconv/u32-strconv-to-locale: New file.
62543         * lib/uniconv/u32-strconv-to-locale.c: New file.
62544
62545         * modules/uniconv/u16-strconv-to-locale: New file.
62546         * lib/uniconv/u16-strconv-to-locale.c: New file.
62547
62548         * modules/uniconv/u8-strconv-to-locale: New file.
62549         * lib/uniconv/u8-strconv-to-locale.c: New file.
62550
62551         * modules/uniconv/u32-strconv-from-locale: New file.
62552         * lib/uniconv/u32-strconv-from-locale.c: New file.
62553
62554         * modules/uniconv/u16-strconv-from-locale: New file.
62555         * lib/uniconv/u16-strconv-from-locale.c: New file.
62556
62557         * modules/uniconv/u8-strconv-from-locale: New file.
62558         * lib/uniconv/u8-strconv-from-locale.c: New file.
62559
62560         * modules/uniconv/u32-strconv-to-enc: New file.
62561         * lib/uniconv/u32-strconv-to-enc.c: New file.
62562         * modules/uniconv/u32-strconv-to-enc-tests: New file.
62563         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
62564
62565         * modules/uniconv/u16-strconv-to-enc: New file.
62566         * lib/uniconv/u16-strconv-to-enc.c: New file.
62567         * lib/uniconv/u-strconv-to-enc.h: New file.
62568         * modules/uniconv/u16-strconv-to-enc-tests: New file.
62569         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
62570
62571         * modules/uniconv/u8-strconv-to-enc: New file.
62572         * lib/uniconv/u8-strconv-to-enc.c: New file.
62573         * modules/uniconv/u8-strconv-to-enc-tests: New file.
62574         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
62575
62576         * modules/uniconv/u32-strconv-from-enc: New file.
62577         * lib/uniconv/u32-strconv-from-enc.c: New file.
62578         * modules/uniconv/u32-strconv-from-enc-tests: New file.
62579         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
62580
62581         * modules/uniconv/u16-strconv-from-enc: New file.
62582         * lib/uniconv/u16-strconv-from-enc.c: New file.
62583         * modules/uniconv/u16-strconv-from-enc-tests: New file.
62584         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
62585
62586         * modules/uniconv/u8-strconv-from-enc: New file.
62587         * lib/uniconv/u8-strconv-from-enc.c: New file.
62588         * lib/uniconv/u-strconv-from-enc.h: New file.
62589         * modules/uniconv/u8-strconv-from-enc-tests: New file.
62590         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
62591
62592         * modules/uniconv/u32-conv-from-enc: New file.
62593         * lib/uniconv/u32-conv-from-enc.c: New file.
62594         * modules/uniconv/u32-conv-from-enc-tests: New file.
62595         * tests/uniconv/test-u32-conv-from-enc.c: New file.
62596
62597         * modules/uniconv/u16-conv-from-enc: New file.
62598         * lib/uniconv/u16-conv-from-enc.c: New file.
62599         * lib/uniconv/u-conv-from-enc.h: New file.
62600         * modules/uniconv/u16-conv-from-enc-tests: New file.
62601         * tests/uniconv/test-u16-conv-from-enc.c: New file.
62602
62603         * modules/uniconv/u8-conv-from-enc: New file.
62604         * lib/uniconv/u8-conv-from-enc.c: New file.
62605         * modules/uniconv/u8-conv-from-enc-tests: New file.
62606         * tests/uniconv/test-u8-conv-from-enc.c: New file.
62607
62608         * modules/uniconv/base: New file.
62609         * lib/uniconv.h: New file.
62610
62611 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
62612
62613         * doc/gnulib-tool.texi (Initial import): Update to match current
62614         behavior with strdup module.
62615         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
62616         * lib/memmem.h: Remove; all uses removed.  This is now done
62617         by <string.h>.
62618         * lib/mempcpy.h: Likewise.
62619         * lib/memrchr.h: Likewise.
62620         * lib/stpcpy.h: Likewise.
62621         * lib/stpncpy.h: Likewise.
62622         * lib/strcase.h: Likewise.
62623         * lib/strchrnul.h: Likewise.
62624         * lib/strdup.h: Likewise.
62625         * lib/strndup.h: Likewise.
62626         * lib/strnlen.h: Likewise.
62627         * lib/strpbrk.h: Likewise.
62628         * lib/strsep.h: Likewise.
62629         * lib/strstr.h: Likewise.
62630         * lib/strtok_r.h: Likewise.
62631         * lib/string_.h: New file.
62632         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
62633         Rely on <string.h> instead.
62634         * lib/canon-host.c: Likewise.
62635         * lib/chdir-long.c: Likewise.
62636         * lib/concatpath.c: Likewise.
62637         * lib/exclude.c: Likewise.
62638         * lib/fchdir.c: Likewise.
62639         * lib/getaddrinfo.c: Likewise.
62640         * lib/getcwd.c: Likewise.
62641         * lib/getsubopt.c: Likewise.
62642         * lib/glob.c: Likewise.
62643         * lib/hard-locale.c: Likewise.
62644         * lib/iconvme.c: Likewise.
62645         * lib/javacomp.c: Likewise.
62646         * lib/mempcpy.c: Likewise.
62647         * lib/memrchr.c: Likewise.
62648         * lib/regex_internal.h: Likewise.
62649         * lib/stpncpy.c: Likewise.
62650         * lib/strcasecmp.c: Likewise.
62651         * lib/strchrnul.c: Likewise.
62652         * lib/strdup.c: Likewise.
62653         * lib/striconv.c: Likewise.
62654         * lib/striconveh.c: Likewise.
62655         * lib/striconveha.c: Likewise.
62656         * lib/strncasecmp.c: Likewise.
62657         * lib/strndup.c: Likewise.
62658         * lib/strnlen.c: Likewise.
62659         * lib/strsep.c: Likewise.
62660         * lib/strstr.c: Likewise.
62661         * lib/strtok_r.c: Likewise.
62662         * lib/userspec.c: Likewise.
62663         * lib/w32spawn.h: Likewise.
62664         * lib/xstrndup.c: Likewise.
62665         * lib/mountlist.c (strstr): Remove decl.
62666         * m4/string_h.m4: New file.
62667         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
62668         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
62669         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
62670         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
62671         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
62672         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
62673         Set REPLACE_STRCASECMP if necessary.
62674         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
62675         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
62676         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
62677         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
62678         HAVE_DECL_STRDUP if necessary.
62679         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
62680         since gl_FUNC_STRNDUP does that now.
62681         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
62682         Check for decl here...
62683         (gl_PREREQ_STRNLEN): ... not here.
62684         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
62685         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
62686         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
62687         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
62688         necessary.
62689         * modules/string: New file.
62690         * modules/memmem (Files): Remove special-purpose include file.
62691         (Depends-on): Add string.
62692         (Include): Include <string.h>, not the removed file.
62693         * modules/mempcpy: Likewise.
62694         * modules/memrchr: Likewise.
62695         * modules/stpcpy: Likewise.
62696         * modules/stpncpy: Likewise.
62697         * modules/strcase: Likewise.
62698         * modules/strchrnul: Likewise.
62699         * modules/strdup: Likewise.
62700         * modules/strndup: Likewise.
62701         * modules/strnlen: Likewise.
62702         * modules/strpbrk: Likewise.
62703         * modules/strsep: Likewise.
62704         * modules/strstr: Likewise.
62705         * modules/strtok_r: Likewise.
62706         * tests/test-dirname.c: Don't include "strdup.h", since
62707         <string.h> now suffices.
62708         * tests/test-memmem.c: Don't include "memmem.h", since
62709         <string.h> now suffices.
62710
62711 2007-01-25  Bruno Haible  <bruno@clisp.org>
62712
62713         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
62714         *resultp is 0.
62715
62716         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
62717         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
62718         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
62719         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
62720
62721         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
62722         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
62723         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
62724         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
62725         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
62726         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
62727
62728 2007-01-24  Bruno Haible  <bruno@clisp.org>
62729
62730         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
62731         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
62732         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
62733         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
62734         gl_FUNC_FTS_CORE.
62735         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
62736         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
62737         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62738         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
62739         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
62740         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
62741         gl_FUNC_FCHOWNAT.
62742         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
62743         gl_FUNC_STRFTIME.
62744         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
62745         Reported by Ralf Wildenhues.
62746
62747 2007-01-24  Bruno Haible  <bruno@clisp.org>
62748
62749         Drop AC_REQUIRE calls that are redundant with the module dependencies.
62750         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
62751         gl_GETADDRINFO.
62752         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
62753         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
62754         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
62755
62756 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
62757
62758         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
62759         Don't use 'exit'; just return from 'main'.
62760         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
62761
62762         * lib/fnmatch_.h: Readjust white space and comments to match
62763         glibc, to avoid spurious diffs.
62764
62765 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62766
62767         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
62768         2004-12-01 change by Jakub Jelinek, since this code won't compile
62769         if !LIBC.  Problem reported by Bob Proulx.
62770
62771 2007-01-23  Bruno Haible  <bruno@clisp.org>
62772
62773         * lib/striconveh.c: Include c-strcaseeq.h.
62774         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
62775         * modules/striconveh (Depends-on): Add c-strcaseeq.
62776
62777 2007-01-23  Bruno Haible  <bruno@clisp.org>
62778
62779         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
62780
62781         * modules/c-strcaseeq: New file.
62782         * lib/c-strcaseeq.h: New file.
62783
62784         * modules/streq: New file.
62785         * lib/streq.h: New file.
62786
62787 2007-01-23  Bruno Haible  <bruno@clisp.org>
62788
62789         * modules/striconveha-tests: New file.
62790         * tests/test-striconveha.c: New file.
62791
62792         * lib/striconveha.h: Include <stdbool.h>.
62793         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
62794         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
62795         (mem_iconveha_notranslit): Renamed from mem_iconveha.
62796         (mem_iconveha): New function.
62797         (str_iconveha_notranslit): Renamed from str_iconveha.
62798         (str_iconveha): New function.
62799         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
62800         c-strcase.
62801
62802 2007-01-23  Bruno Haible  <bruno@clisp.org>
62803
62804         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
62805         encodings without forgiving before trying any encoding with handler.
62806         (str_iconveha): Try all encodings without forgiving before trying any
62807         encoding with handler.
62808
62809 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62810
62811         Import the following changes from libc.
62812
62813         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
62814
62815         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
62816
62817         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
62818
62819         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
62820         normal_bracket label.
62821
62822         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
62823
62824         [BZ #361]
62825         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
62826         to normal_bracket after fetching the next character.
62827
62828 2007-01-22  Bruno Haible  <bruno@clisp.org>
62829
62830         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
62831         argument.
62832         * lib/striconveh.c (iconv_carefully_1): New function.
62833         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
62834         argument.
62835         (str_cd_iconveh): Update.
62836         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
62837         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
62838         * tests/test-striconveh.c (MAGIC): New macro.
62839         (new_offsets): New function.
62840         (main): Test call with and without offsets.
62841
62842 2007-01-22  Bruno Haible  <bruno@clisp.org>
62843
62844         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
62845         * modules/sys_select (Makefile.am): Likewise.
62846         * modules/sys_socket (Makefile.am): Likewise.
62847         * modules/sys_time (Makefile.am): Likewise.
62848
62849 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
62850
62851         * modules/gettimeofday (License): Change from GPL to LGPL, since
62852         gettimeofday is a library function.
62853
62854 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62855
62856         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
62857
62858 2007-01-21  Bruno Haible  <bruno@clisp.org>
62859
62860         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
62861
62862 2007-01-21  Bruno Haible  <bruno@clisp.org>
62863
62864         * modules/striconveha: New file.
62865         * lib/striconveha.h: New file.
62866         * lib/striconveha.c: New file.
62867         * MODULES.html.sh (Internationalization functions): Add striconveha.
62868         * lib/striconv.c (str_iconv): Optimize the case of an empty input
62869         string.
62870         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
62871
62872 2007-01-21  Bruno Haible  <bruno@clisp.org>
62873
62874         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
62875         * lib/striconveh.c (str_iconveh): Likewise.
62876
62877 2007-01-21  Bruno Haible  <bruno@clisp.org>
62878
62879         * lib/striconveh.h (mem_iconveh): New declaration.
62880         * lib/striconveh.c (mem_iconveh): New function.
62881         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
62882
62883 2007-01-21  Bruno Haible  <bruno@clisp.org>
62884
62885         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
62886
62887         * lib/striconveh.h (mem_cd_iconveh): Change specification.
62888         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
62889         original result buffer.
62890         (str_cd_iconveh): Update.
62891         * tests/test-striconveh.c (main): Update.
62892
62893         * lib/striconv.h (mem_cd_iconv): Change specification.
62894         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
62895         result buffer.
62896         (str_cd_iconv): Update.
62897         * tests/test-striconv.c (main): Update.
62898
62899 2007-01-21  Bruno Haible  <bruno@clisp.org>
62900
62901         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
62902
62903 2007-01-20  Jim Meyering  <jim@meyering.net>
62904
62905         * lib/userspec.c (parse_with_separator): If a user or group string
62906         starts with "+", skip the corresponding name-to-ID look-up, since
62907         such a look-up must fail: user and group names may not include "+".
62908
62909 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
62910
62911         * lib/poll.c: Include sys/time.h and time.h unconditionally,
62912         since we now assume the sys_time module.
62913         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
62914         check for sys/time.h; no longer needed.
62915         * modules/poll (Depends-on): Depend on sys_time.
62916
62917 2007-01-18  Bruno Haible  <bruno@clisp.org>
62918
62919         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
62920         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
62921
62922         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
62923         gettimeofday.
62924
62925         * tests/test-gettimeofday.c: Include <time.h>.
62926         (dummy): Remove variable.
62927
62928         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
62929         gl_HEADER_SYS_TIME_H.
62930         (gl_HEADER_SYS_TIME_H): New macro.
62931
62932         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
62933         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62934         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
62935         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
62936         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62937         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
62938         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
62939         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62940         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
62941         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
62942         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
62943
62944         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
62945         last change; it caused a compilation error when cross-compiling to
62946         Cygwin.
62947
62948 2007-01-18  Jim Meyering  <jim@meyering.net>
62949
62950         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
62951         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
62952         than the race-prone "test -d sys || mkdir sys".
62953         (configure.ac): Use AC_PROG_MKDIR_P.
62954         * modules/sys_select: Likewise.
62955         * modules/sys_socket: Likewise.
62956         * modules/sys_time: Likewise.
62957
62958 2007-01-18  Eric Blake  <ebb9@byu.net>
62959
62960         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
62961         replace gettimeofday.
62962         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
62963         name, to avoid infinite recursion.
62964
62965 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
62966
62967         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
62968         module sys_time.
62969         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
62970         assume timespec.h defines struct timeval.
62971         * lib/settime.c: Likewise.
62972         * lib/utimens.c: Likewise.
62973         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
62974         since we now assume the gettimeofday module.
62975         * lib/tempname.c (__gen_tempname): Likewise.
62976         * lib/gettimeofday.h: Remove.
62977         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
62978         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
62979         Include <time.h>, for 'time()'.
62980         (localtime_buffer_addr): Also use this workaround if
62981         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
62982         to simplify the uses.  All uses changed.
62983         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
62984         that #undef is inside {}, and 'const' follows type name consistently.
62985         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
62986         (gettimeofday): Do not use the maximum possible value for
62987         tv->tv_usec, since that might break usages other than ls.c.
62988         Instead, we'll leave ls.c alone.  This undoes today's patch
62989         by Bruno.  Add a compile-time warning for 1s-clock resolution;
62990         we've never observed the problem but might as well keep the
62991         canary.
62992         * lib/nanosleep.c: Include timespec.h first, for interface check.
62993         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
62994         now assume the sys_time module.
62995         * lib/tempname.c: Likewise.
62996         * lib/timespec.h: Likewise.
62997         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
62998         needed.
62999         * lib/strftime.c: Likewise.
63000         * lib/timespec.h: Likewise.
63001         * lib/posixtm.c: Include posixtm.h first, for interface check.
63002         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
63003         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
63004         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
63005         * lib/sys_time_.h: New file.
63006         * lib/timespec.h (struct timespec): Use long int, not long.
63007         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
63008         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
63009         Remove obsolescent call to AC_HEADER_TIME.
63010         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
63011         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63012         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
63013         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
63014         Likewise.
63015         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
63016         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
63017         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
63018         into the sys_time module.  Check for gettimeofday just once.
63019         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
63020         for gettimeofday signature to just check the signature.  Merely
63021         compile it, since linking doesn't test signature.  Improve test for
63022         whether gettimeofday.o is actually needed.
63023         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
63024         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
63025         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
63026         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63027         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
63028         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
63029         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
63030         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
63031         than worrying about sys/time.h.
63032         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63033         Don't bother worrying about TIME_WITH_SYS_TIME.
63034         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
63035         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
63036         * m4/sys_time_h.m4: New file.
63037         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
63038         Don't include sys/time.h.  Return from main rather than exiting.
63039         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
63040         all uses changed.
63041         * modules/gethrxtime (Depends-on): Add sys_time.
63042         * modules/gettime (Depends-on): Likewise.
63043         * modules/gettimeofday (Depends-on): Likewise.
63044         * modules/nanosleep (Depends-on): Likewise.
63045         * modules/settime (Depends-on): Likewise.
63046         * modules/tempname (Depends-on): Likewise.
63047         * modules/utimens (Depends-on): Likewise.
63048         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
63049         (Include): Change back to <sys/time.h>.
63050         (Maintainer): Add self.
63051         * modules/sys_time: New file.
63052         * modules/tempname (Depends-on): Add gettimeofday.
63053         * tests/test-gettimeofday.c: Include <sys/time.h>
63054         rather than gettimeofday.h.
63055
63056 2007-01-17  Bruno Haible  <bruno@clisp.org>
63057
63058         * gnulib-tool (func_get_license): Revert last patch. Instead, let
63059         the license default to GPL.
63060         (func_create_testdir): Don't complain if a module is LGPL and its
63061         tests module depends on GPLed modules.
63062
63063 2007-01-17  Bruno Haible  <bruno@clisp.org>
63064
63065         * lib/gettimeofday.c (gettimeofday): Add code for the case
63066         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
63067         maximum possible value for tv->tv_usec, rather than the minimum one.
63068
63069 2005-10-08  Martin Lambers  <marlam@marlam.de>
63070 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63071 2007-01-16  Bruno Haible  <bruno@clisp.org>
63072
63073         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
63074         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
63075         gl_FUNC_GETTIMEOFDAY.
63076         (Include): Add gettimeofday.h.
63077         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
63078         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
63079         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
63080         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
63081         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
63082         * lib/gettimeofday.h: New file.
63083         * lib/gettimeofday.c: Include <sys/timeb.h>.
63084         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
63085         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
63086         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
63087         fall back on time().
63088
63089         * tests/test-gettimeofday.c: New file.
63090         * modules/gettimeofday-tests: New file.
63091
63092 2007-01-16  Eric Blake  <ebb9@byu.net>
63093
63094         * modules/fnmatch (Depends-on): Depend on wchar.
63095         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
63096         * m4/fnmatch.m4: Likewise.
63097         * modules/mbchar (Makefile.am): Assume <wchar.h>.
63098         * m4/mbchar.m4: Likewise.
63099         * modules/mbswidth (Depends-on): Depend on wchar.
63100         * lib/mbswidth.c: Assume <wchar.h>.
63101         * m4/mbswidth.m4: Likewise.
63102         * modules/quotearg (Depends-on): Depend on wchar.
63103         * lib/quotearg.c: Assume <wchar.h>.
63104         * m4/quotearg.m4: Likewise.
63105         * modules/regex (Depends-on): Depend on wchar.
63106         * lib/regex_internal.h: Assume <wchar.h>.
63107         * m4/regex.m4: Likewise.
63108         * modules/stdint (Depends-on): Depend on wchar.
63109         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
63110         * m4/stdint.m4: Likewise.
63111         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
63112         * modules/strftime (Depends-on): Depend on wchar.
63113         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
63114         * modules/strtol (Depends-on): Depend on wchar.
63115         * lib/strtol.c: Assume <wchar.h>.
63116         * modules/wcwidth (Depends-on): Depend on wchar.
63117         * lib/wcwidth.h: Assume <wchar.h>.
63118         * m4/wcwidth.m4: Likewise.
63119
63120 2007-01-16  Bruno Haible  <bruno@clisp.org>
63121
63122         * modules/csharpexec-script: New, created from...
63123         * modules/csharpexec: ... this.
63124
63125 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
63126
63127         * modules/javaexec-script: New, created from...
63128         * modules/javaexec: ... this.
63129
63130 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63131
63132         * modules/poll (Dependencies): Add sys_select.
63133
63134 2007-01-15  Jim Meyering  <jim@meyering.net>
63135
63136         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
63137         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
63138         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
63139         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
63140
63141 2007-01-15  Bruno Haible  <bruno@clisp.org>
63142
63143         * modules/striconveh: New file.
63144         * lib/striconveh.h: New file.
63145         * lib/striconveh.c: New file.
63146         * MODULES.html.sh (Internationalization functions): Add striconveh.
63147
63148         * modules/striconveh-tests: New file.
63149         * tests/test-striconveh.c: New file.
63150
63151 2007-01-15  Bruno Haible  <bruno@clisp.org>
63152
63153         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
63154         not from GNU libiconv or GNU libc.
63155
63156 2007-01-15  Bruno Haible  <bruno@clisp.org>
63157
63158         * doc/gnulib-intro.texi (Copyright): Explain the different license
63159         terms for module descriptions, autoconf macros, tests, documentation.
63160
63161 2007-01-14  Bruno Haible  <bruno@clisp.org>
63162
63163         * modules/striconv-tests: New file.
63164         * tests/test-striconv.c: New file.
63165
63166 2007-01-14  Bruno Haible  <bruno@clisp.org>
63167
63168         * modules/iconv-tests: New file.
63169         * tests/test-iconv.c: New file.
63170
63171 2007-01-14  Bruno Haible  <bruno@clisp.org>
63172
63173         * gnulib-tool (func_get_license): For test modules, use the license of
63174         the main module.
63175
63176 2007-01-14  Bruno Haible  <bruno@clisp.org>
63177
63178         * modules/iconv (Include): Clarify that <iconv.h> can only be included
63179         if iconv is found to exist.
63180
63181 2007-01-14  Bruno Haible  <bruno@clisp.org>
63182
63183         * modules/c-ctype-tests: New file.
63184         * tests/test-c-ctype.c: New file.
63185
63186 2007-01-14  Bruno Haible  <bruno@clisp.org>
63187
63188         * modules/binary-io-tests: New file.
63189         * tests/test-binary-io.sh: New file.
63190         * tests/test-binary-io.c: New file.
63191
63192 2007-01-14  Bruno Haible  <bruno@clisp.org>
63193
63194         * modules/array-oset-tests: New file.
63195         * tests/test-array_oset.c: New file.
63196
63197 2007-01-14  Bruno Haible  <bruno@clisp.org>
63198
63199         * modules/array-list-tests: New file.
63200         * tests/test-array_list.c: New file.
63201
63202 2007-01-14  Bruno Haible  <bruno@clisp.org>
63203
63204         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
63205         and make.
63206         Reported by Simon Josefsson in
63207         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
63208
63209 2007-01-14  Bruno Haible  <bruno@clisp.org>
63210
63211         * modules/allocsa-tests: New file.
63212         * tests/test-allocsa.c: New file.
63213
63214 2007-01-14  Bruno Haible  <bruno@clisp.org>
63215
63216         * modules/fchdir (Depends-on): Add absolute-header.
63217         * modules/unistd (Depends-on): Likewise.
63218
63219 2006-12-30  Bruno Haible  <bruno@clisp.org>
63220
63221         * modules/fchdir: New file.
63222         * modules/unistd (Files): Add lib/unistd_.h.
63223         (Makefile.am): Generate unistd.h from unistd_.h.
63224         * lib/fchdir.c: New file.
63225         * lib/dirent_.h: New file.
63226         * lib/unistd_.h: New file.
63227         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
63228         * m4/fchdir.m4: New file.
63229         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
63230         (gl_HEADER_UNISTD): Invoke it.
63231         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
63232         function.
63233         * lib/backupfile.c (opendir, closedir): Undefine.
63234         * lib/chown.c (open, close): Undefine.
63235         * lib/clean-temp.c (open, close): Undefine.
63236         * lib/copy-file.c (open, close): Undefine.
63237         * lib/execute.c (open, close): Undefine.
63238         * lib/fsusage.c (open, close): Undefine.
63239         * lib/gc-gnulib.c (open, close): Undefine.
63240         * lib/getcwd.c (opendir, closedir): Undefine.
63241         * lib/glob.c (opendir, closedir): Undefine.
63242         * lib/javacomp.c (open, close): Undefine.
63243         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
63244         * lib/openat-proc.c (open, close): Undefine.
63245         * lib/pagealign_alloc.c (open, close): Undefine.
63246         * lib/pipe.c (open, close): Undefine.
63247         * lib/progreloc.c (open, close): Undefine.
63248         * lib/savedir.c (opendir, closedir): Undefine.
63249         * lib/utime.c (open, close): Undefine.
63250         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
63251
63252 2007-01-10  Bruno Haible  <bruno@clisp.org>
63253
63254         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
63255
63256 2007-01-12  Eric Blake  <ebb9@byu.net>
63257
63258         Provide a robust <wchar.h>.  Further simplifications are now
63259         possible in other modules, but not included here.
63260         * modules/wchar: New module.
63261         * m4/wchar.m4: New file.
63262         * lib/wchar_.h: Likewise.
63263         * modules/mbchar (Depends-on): Depend on wchar, as the first use
63264         of the new module.
63265         * MODULES.html.sh (Extended multibyte and wide character utilities):
63266         New section.
63267
63268 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
63269
63270         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
63271         to a reasonable default for memory allocation.
63272         (xreadlink): Don't allocate a huge buffer, to work around a buggy
63273         file system that reports garbage st_size values for symlinks.
63274         Problem reported by Liyang Hu.
63275
63276 2007-01-11  Simon Josefsson  <simon@josefsson.org>
63277
63278         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
63279         Emacs .#* auto-save files).
63280
63281 2007-01-11  Bruno Haible  <bruno@clisp.org>
63282
63283         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
63284         directory.
63285
63286 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
63287
63288         Use @...@ consistently in lib/wctype_.h.
63289         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
63290         on it being set to 1 or 0.
63291         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
63292         go back to AC_SUBSTing it.
63293         * modules/wctype (Makefile.am): Undo previous change.
63294
63295 2007-01-10  Eric Blake  <ebb9@byu.net>
63296
63297         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
63298         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
63299         * modules/wctype (Makefile.am): Likewise.
63300         Reported by Chris McGuire.
63301
63302 2007-01-10  Jim Meyering  <jim@meyering.net>
63303
63304         fts.c: a small readability/maintainability improvement
63305         * lib/fts.c (fts_read): Make this code slightly more readable and
63306         maintainable by hoisting the "sp->fts_cur = p" assignments to
63307         immediately follow the statements that set P.  Derived from
63308         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
63309
63310 2007-01-10  Eric Blake  <ebb9@byu.net>
63311
63312         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
63313         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
63314         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63315         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
63316         Reported by Chris McGuire.
63317
63318 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63319
63320         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
63321         in sed script.
63322
63323 2007-01-09  Bruno Haible  <bruno@clisp.org>
63324
63325         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
63326         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
63327         variables.
63328         (func_module): Use them.
63329
63330 2007-01-09  Bruno Haible  <bruno@clisp.org>
63331
63332         * modules/unistr/base: New file.
63333         * lib/unistr.h: New file.
63334
63335         * modules/unistr/u8-to-u16: New file.
63336         * lib/unistr/u8-to-u16.c: New file.
63337
63338         * modules/unistr/u8-to-u32: New file.
63339         * lib/unistr/u8-to-u32.c: New file.
63340
63341         * modules/unistr/u16-to-u8: New file.
63342         * lib/unistr/u16-to-u8.c: New file.
63343
63344         * modules/unistr/u16-to-u32: New file.
63345         * lib/unistr/u16-to-u32.c: New file.
63346
63347         * modules/unistr/u32-to-u8: New file.
63348         * lib/unistr/u32-to-u8.c: New file.
63349
63350         * modules/unistr/u32-to-u16: New file.
63351         * lib/unistr/u32-to-u16.c: New file.
63352
63353         * modules/unistr/u8-check: New file.
63354         * modules/unistr/u16-check: New file.
63355         * modules/unistr/u32-check: New file.
63356         * lib/unistr/u8-check.c: New file.
63357         * lib/unistr/u16-check.c: New file.
63358         * lib/unistr/u32-check.c: New file.
63359
63360         * modules/unistr/u8-chr: New file.
63361         * modules/unistr/u16-chr: New file.
63362         * modules/unistr/u32-chr: New file.
63363         * lib/unistr/u8-chr.c: New file.
63364         * lib/unistr/u16-chr.c: New file.
63365         * lib/unistr/u32-chr.c: New file.
63366
63367         * modules/unistr/u8-cmp: New file.
63368         * modules/unistr/u16-cmp: New file.
63369         * modules/unistr/u32-cmp: New file.
63370         * lib/unistr/u8-cmp.c: New file.
63371         * lib/unistr/u16-cmp.c: New file.
63372         * lib/unistr/u32-cmp.c: New file.
63373
63374         * modules/unistr/u8-cpy: New file.
63375         * modules/unistr/u16-cpy: New file.
63376         * modules/unistr/u32-cpy: New file.
63377         * lib/unistr/u8-cpy.c: New file.
63378         * lib/unistr/u16-cpy.c: New file.
63379         * lib/unistr/u32-cpy.c: New file.
63380         * lib/unistr/u-cpy.h: New file.
63381
63382         * modules/unistr/u8-cpy-alloc: New file.
63383         * modules/unistr/u16-cpy-alloc: New file.
63384         * modules/unistr/u32-cpy-alloc: New file.
63385         * lib/unistr/u8-cpy-alloc.c: New file.
63386         * lib/unistr/u16-cpy-alloc.c: New file.
63387         * lib/unistr/u32-cpy-alloc.c: New file.
63388         * lib/unistr/u-cpy-alloc.h: New file.
63389
63390         * modules/unistr/u8-endswith: New file.
63391         * modules/unistr/u16-endswith: New file.
63392         * modules/unistr/u32-endswith: New file.
63393         * lib/unistr/u8-endswith.c: New file.
63394         * lib/unistr/u16-endswith.c: New file.
63395         * lib/unistr/u32-endswith.c: New file.
63396         * lib/unistr/u-endswith.h: New file.
63397
63398         * modules/unistr/u8-mblen: New file.
63399         * modules/unistr/u16-mblen: New file.
63400         * modules/unistr/u32-mblen: New file.
63401         * lib/unistr/u8-mblen.c: New file.
63402         * lib/unistr/u16-mblen.c: New file.
63403         * lib/unistr/u32-mblen.c: New file.
63404
63405         * modules/unistr/u8-mbtouc: New file.
63406         * modules/unistr/u16-mbtouc: New file.
63407         * modules/unistr/u32-mbtouc: New file.
63408         * lib/unistr/u8-mbtouc.c: New file.
63409         * lib/unistr/u16-mbtouc.c: New file.
63410         * lib/unistr/u32-mbtouc.c: New file.
63411
63412         * modules/unistr/u8-mbtouc-safe: New file.
63413         * modules/unistr/u16-mbtouc-safe: New file.
63414         * modules/unistr/u32-mbtouc-safe: New file.
63415         * lib/unistr/u8-mbtouc-safe.c: New file.
63416         * lib/unistr/u16-mbtouc-safe.c: New file.
63417         * lib/unistr/u32-mbtouc-safe.c: New file.
63418
63419         * modules/unistr/u8-move: New file.
63420         * modules/unistr/u16-move: New file.
63421         * modules/unistr/u32-move: New file.
63422         * lib/unistr/u8-move.c: New file.
63423         * lib/unistr/u16-move.c: New file.
63424         * lib/unistr/u32-move.c: New file.
63425         * lib/unistr/u-move.h: New file.
63426
63427         * modules/unistr/u8-next: New file.
63428         * modules/unistr/u16-next: New file.
63429         * modules/unistr/u32-next: New file.
63430         * lib/unistr/u8-next.c: New file.
63431         * lib/unistr/u16-next.c: New file.
63432         * lib/unistr/u32-next.c: New file.
63433
63434         * modules/unistr/u8-prev: New file.
63435         * modules/unistr/u16-prev: New file.
63436         * modules/unistr/u32-prev: New file.
63437         * lib/unistr/u8-prev.c: New file.
63438         * lib/unistr/u16-prev.c: New file.
63439         * lib/unistr/u32-prev.c: New file.
63440
63441         * modules/unistr/u8-set: New file.
63442         * modules/unistr/u16-set: New file.
63443         * modules/unistr/u32-set: New file.
63444         * lib/unistr/u8-set.c: New file.
63445         * lib/unistr/u16-set.c: New file.
63446         * lib/unistr/u32-set.c: New file.
63447         * lib/unistr/u-set.h: New file.
63448
63449         * modules/unistr/u8-startswith: New file.
63450         * modules/unistr/u16-startswith: New file.
63451         * modules/unistr/u32-startswith: New file.
63452         * lib/unistr/u8-startswith.c: New file.
63453         * lib/unistr/u16-startswith.c: New file.
63454         * lib/unistr/u32-startswith.c: New file.
63455         * lib/unistr/u-startswith.h: New file.
63456
63457         * modules/unistr/u8-stpcpy: New file.
63458         * modules/unistr/u16-stpcpy: New file.
63459         * modules/unistr/u32-stpcpy: New file.
63460         * lib/unistr/u8-stpcpy.c: New file.
63461         * lib/unistr/u16-stpcpy.c: New file.
63462         * lib/unistr/u32-stpcpy.c: New file.
63463         * lib/unistr/u-stpcpy.h: New file.
63464
63465         * modules/unistr/u8-stpncpy: New file.
63466         * modules/unistr/u16-stpncpy: New file.
63467         * modules/unistr/u32-stpncpy: New file.
63468         * lib/unistr/u8-stpncpy.c: New file.
63469         * lib/unistr/u16-stpncpy.c: New file.
63470         * lib/unistr/u32-stpncpy.c: New file.
63471         * lib/unistr/u-stpncpy.h: New file.
63472
63473         * modules/unistr/u8-strcat: New file.
63474         * modules/unistr/u16-strcat: New file.
63475         * modules/unistr/u32-strcat: New file.
63476         * lib/unistr/u8-strcat.c: New file.
63477         * lib/unistr/u16-strcat.c: New file.
63478         * lib/unistr/u32-strcat.c: New file.
63479         * lib/unistr/u-strcat.h: New file.
63480
63481         * modules/unistr/u8-strchr: New file.
63482         * modules/unistr/u16-strchr: New file.
63483         * modules/unistr/u32-strchr: New file.
63484         * lib/unistr/u8-strchr.c: New file.
63485         * lib/unistr/u16-strchr.c: New file.
63486         * lib/unistr/u32-strchr.c: New file.
63487
63488         * modules/unistr/u8-strcmp: New file.
63489         * modules/unistr/u16-strcmp: New file.
63490         * modules/unistr/u32-strcmp: New file.
63491         * lib/unistr/u8-strcmp.c: New file.
63492         * lib/unistr/u16-strcmp.c: New file.
63493         * lib/unistr/u32-strcmp.c: New file.
63494
63495         * modules/unistr/u8-strcpy: New file.
63496         * modules/unistr/u16-strcpy: New file.
63497         * modules/unistr/u32-strcpy: New file.
63498         * lib/unistr/u8-strcpy.c: New file.
63499         * lib/unistr/u16-strcpy.c: New file.
63500         * lib/unistr/u32-strcpy.c: New file.
63501         * lib/unistr/u-strcpy.h: New file.
63502
63503         * modules/unistr/u8-strcspn: New file.
63504         * modules/unistr/u16-strcspn: New file.
63505         * modules/unistr/u32-strcspn: New file.
63506         * lib/unistr/u8-strcspn.c: New file.
63507         * lib/unistr/u16-strcspn.c: New file.
63508         * lib/unistr/u32-strcspn.c: New file.
63509         * lib/unistr/u-strcspn.h: New file.
63510
63511         * modules/unistr/u8-strdup: New file.
63512         * modules/unistr/u16-strdup: New file.
63513         * modules/unistr/u32-strdup: New file.
63514         * lib/unistr/u8-strdup.c: New file.
63515         * lib/unistr/u16-strdup.c: New file.
63516         * lib/unistr/u32-strdup.c: New file.
63517         * lib/unistr/u-strdup.h: New file.
63518
63519         * modules/unistr/u8-strlen: New file.
63520         * modules/unistr/u16-strlen: New file.
63521         * modules/unistr/u32-strlen: New file.
63522         * lib/unistr/u8-strlen.c: New file.
63523         * lib/unistr/u16-strlen.c: New file.
63524         * lib/unistr/u32-strlen.c: New file.
63525         * lib/unistr/u-strlen.h: New file.
63526
63527         * modules/unistr/u8-strmblen: New file.
63528         * modules/unistr/u16-strmblen: New file.
63529         * modules/unistr/u32-strmblen: New file.
63530         * lib/unistr/u8-strmblen.c: New file.
63531         * lib/unistr/u16-strmblen.c: New file.
63532         * lib/unistr/u32-strmblen.c: New file.
63533
63534         * modules/unistr/u8-strmbtouc: New file.
63535         * modules/unistr/u16-strmbtouc: New file.
63536         * modules/unistr/u32-strmbtouc: New file.
63537         * lib/unistr/u8-strmbtouc.c: New file.
63538         * lib/unistr/u16-strmbtouc.c: New file.
63539         * lib/unistr/u32-strmbtouc.c: New file.
63540
63541         * modules/unistr/u8-strncat: New file.
63542         * modules/unistr/u16-strncat: New file.
63543         * modules/unistr/u32-strncat: New file.
63544         * lib/unistr/u8-strncat.c: New file.
63545         * lib/unistr/u16-strncat.c: New file.
63546         * lib/unistr/u32-strncat.c: New file.
63547         * lib/unistr/u-strncat.h: New file.
63548
63549         * modules/unistr/u8-strncmp: New file.
63550         * modules/unistr/u16-strncmp: New file.
63551         * modules/unistr/u32-strncmp: New file.
63552         * lib/unistr/u8-strncmp.c: New file.
63553         * lib/unistr/u16-strncmp.c: New file.
63554         * lib/unistr/u32-strncmp.c: New file.
63555
63556         * modules/unistr/u8-strncpy: New file.
63557         * modules/unistr/u16-strncpy: New file.
63558         * modules/unistr/u32-strncpy: New file.
63559         * lib/unistr/u8-strncpy.c: New file.
63560         * lib/unistr/u16-strncpy.c: New file.
63561         * lib/unistr/u32-strncpy.c: New file.
63562         * lib/unistr/u-strncpy.h: New file.
63563
63564         * modules/unistr/u8-strnlen: New file.
63565         * modules/unistr/u16-strnlen: New file.
63566         * modules/unistr/u32-strnlen: New file.
63567         * lib/unistr/u8-strnlen.c: New file.
63568         * lib/unistr/u16-strnlen.c: New file.
63569         * lib/unistr/u32-strnlen.c: New file.
63570         * lib/unistr/u-strnlen.h: New file.
63571
63572         * modules/unistr/u8-strpbrk: New file.
63573         * modules/unistr/u16-strpbrk: New file.
63574         * modules/unistr/u32-strpbrk: New file.
63575         * lib/unistr/u8-strpbrk.c: New file.
63576         * lib/unistr/u16-strpbrk.c: New file.
63577         * lib/unistr/u32-strpbrk.c: New file.
63578         * lib/unistr/u-strpbrk.h: New file.
63579
63580         * modules/unistr/u8-strrchr: New file.
63581         * modules/unistr/u16-strrchr: New file.
63582         * modules/unistr/u32-strrchr: New file.
63583         * lib/unistr/u8-strrchr.c: New file.
63584         * lib/unistr/u16-strrchr.c: New file.
63585         * lib/unistr/u32-strrchr.c: New file.
63586
63587         * modules/unistr/u8-strspn: New file.
63588         * modules/unistr/u16-strspn: New file.
63589         * modules/unistr/u32-strspn: New file.
63590         * lib/unistr/u8-strspn.c: New file.
63591         * lib/unistr/u16-strspn.c: New file.
63592         * lib/unistr/u32-strspn.c: New file.
63593         * lib/unistr/u-strspn.h: New file.
63594
63595         * modules/unistr/u8-strstr: New file.
63596         * modules/unistr/u16-strstr: New file.
63597         * modules/unistr/u32-strstr: New file.
63598         * lib/unistr/u8-strstr.c: New file.
63599         * lib/unistr/u16-strstr.c: New file.
63600         * lib/unistr/u32-strstr.c: New file.
63601         * lib/unistr/u-strstr.h: New file.
63602
63603         * modules/unistr/u8-strtok: New file.
63604         * modules/unistr/u16-strtok: New file.
63605         * modules/unistr/u32-strtok: New file.
63606         * lib/unistr/u8-strtok.c: New file.
63607         * lib/unistr/u16-strtok.c: New file.
63608         * lib/unistr/u32-strtok.c: New file.
63609         * lib/unistr/u-strtok.h: New file.
63610
63611         * modules/unistr/u8-uctomb: New file.
63612         * modules/unistr/u16-uctomb: New file.
63613         * modules/unistr/u32-uctomb: New file.
63614         * lib/unistr/u8-uctomb.c: New file.
63615         * lib/unistr/u16-uctomb.c: New file.
63616         * lib/unistr/u32-uctomb.c: New file.
63617
63618         * MODULES.html.sh (Unicode string functions): Add the new modules.
63619
63620 2007-01-08  Bruno Haible  <bruno@clisp.org>
63621
63622         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
63623         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
63624         subdirectories.
63625
63626 2007-01-08  Karl Berry  <karl@gnu.org>
63627
63628         * doc/error.texi: mention that main() fns must set program_name
63629         when progname is used.
63630
63631 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
63632
63633         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
63634         WCTYPE_H is empty, for the benefit of builds from non-distclean
63635         directories.  Problem reported by Eric Blake in
63636         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
63637
63638 2007-01-08  Bruno Haible  <bruno@clisp.org>
63639
63640         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
63641         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
63642         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
63643         PROVIDE_CANONICALIZE_FILENAME_MODE.
63644         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
63645
63646 2007-01-08  Bruno Haible  <bruno@clisp.org>
63647
63648         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
63649         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
63650         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
63651         * lib/fts.c: Likewise.
63652         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
63653
63654 2006-12-25  Bruno Haible  <bruno@clisp.org>
63655
63656         * modules/utf8-ucs4-safe: New file.
63657         * lib/utf8-ucs4-safe.h: New file.
63658         * lib/unistr/utf8-ucs4-safe.c: New file.
63659
63660         * modules/utf16-ucs4-safe: New file.
63661         * lib/utf16-ucs4-safe.h: New file.
63662         * lib/unistr/utf16-ucs4-safe.c: New file.
63663
63664         * MODULES.html.sh (Unicode string functions): Add the new modules.
63665
63666 2007-01-08  Bruno Haible  <bruno@clisp.org>
63667
63668         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
63669         (Depends-on): Add unitypes.
63670         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
63671         (u8_mbtouc_aux): Move out to separate file.
63672         (u8_mbtouc): Use ucs4_t, uint8_t types.
63673         * lib/unistr/utf8-ucs4.c: New file.
63674
63675         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
63676         (Depends-on): Add unitypes.
63677         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
63678         (u16_mbtouc_aux): Move out to separate file.
63679         (u16_mbtouc): Use ucs4_t, uint16_t types.
63680         * lib/unistr/utf16-ucs4.c: New file.
63681
63682         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
63683         (Depends-on): Add unitypes.
63684         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
63685         (u8_uctomb_aux): Move out to separate file.
63686         (u8_uctomb): Use ucs4_t, uint8_t types.
63687         * lib/unistr/ucs4-utf8.c: New file.
63688
63689         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
63690         (Depends-on): Add unitypes.
63691         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
63692         (u16_uctomb_aux): Move out to separate file.
63693         (u16_uctomb): Use ucs4_t, uint16_t types.
63694         * lib/unistr/ucs4-utf16.c: New file.
63695
63696 2006-12-25  Bruno Haible  <bruno@clisp.org>
63697
63698         * modules/unitypes: New file.
63699         * lib/unitypes.h: New file.
63700         * MODULES.html.sh (func_all_modules): New section "Unicode string
63701         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
63702         this section. Add unitypes.
63703
63704 2007-01-08  Bruno Haible  <bruno@clisp.org>
63705
63706         Avoid variable names that conflict with those from libtool.
63707         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
63708         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
63709         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
63710         library_names_spec to acl_library_names_spec, hardcode_* to
63711         acl_hardcode_*.
63712         Reported by Ralf Wildenhues.
63713
63714 2007-01-08  Bruno Haible  <bruno@clisp.org>
63715
63716         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
63717         definition.
63718         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
63719         definition.
63720         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
63721         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
63722         definition.
63723         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
63724         definition.
63725         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
63726         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
63727         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
63728         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
63729         definition.
63730         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
63731         definition.
63732         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
63733         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
63734         GC_USE_<algorithm>.
63735         * lib/gc-libgcrypt.c: Likewise.
63736         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
63737         * modules/gc-arctwo (configure.ac): Likewise.
63738         * modules/gc-des (configure.ac): Likewise.
63739         * modules/gc-hmac-md5 (configure.ac): Likewise.
63740         * modules/gc-hmac-sha1 (configure.ac): Likewise.
63741         * modules/gc-md2 (configure.ac): Likewise.
63742         * modules/gc-md4 (configure.ac): Likewise.
63743         * modules/gc-md5 (configure.ac): Likewise.
63744         * modules/gc-random (configure.ac): Likewise.
63745         * modules/gc-rijndael (configure.ac): Likewise.
63746         * modules/gc-sha1 (configure.ac): Likewise.
63747
63748 2007-01-08  Bruno Haible  <bruno@clisp.org>
63749
63750         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
63751         macro definition.
63752         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
63753         definition.
63754         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
63755         definition.
63756         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
63757         * modules/fcntl-safer (configure.ac): Likewise.
63758         * modules/fopen-safer (configure.ac): Likewise.
63759         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
63760         GNULIB_FWRITEERROR macro definition.
63761
63762 2007-01-08  Bruno Haible  <bruno@clisp.org>
63763
63764         * m4/gnulib-common.m4: New file.
63765         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
63766         (func_get_filelist): Add m4/gnulib-common.m4.
63767
63768 2007-01-08  Bruno Haible  <bruno@clisp.org>
63769
63770         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
63771         command.
63772
63773 2007-01-08  Jim Meyering  <jim@meyering.net>
63774
63775         Use a more robust test for a "can't happen" condition.
63776         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
63777         narrowed the st_size value.  Presuming the "can't happen" condition
63778         is true, that narrowing could conceivably convert an invalid st_size
63779         value into a valid one.  Instead, use a change based on Matthew
63780         Woehlke's original patch.
63781
63782         Slight readability improvement: use an assert-like macro
63783         in place of literal "abort ()" uses.
63784         * lib/fts.c (fts_assert): Define.
63785         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
63786         Use this macro instead of a bare 'abort'.
63787
63788 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
63789
63790         Don't worry about using IRIX 5.3's wctype.h broken definitions;
63791         simply work around them.
63792         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
63793         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
63794         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
63795         declaring.
63796         Don't bother to define as macros, since the standard doesn't require it.
63797         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
63798         longer worry about IRIX 5.3.
63799         (HAVE_WCTYPE_CTMP_BUG): Remove.
63800
63801 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63802
63803         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
63804         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
63805         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
63806         Problems reported by Georg Schwarz for IRIX 5.3.
63807
63808         * gnulib-tool (autoconf_minversion): Take the maximum version number
63809         found, not the minimum.  Problem reported by James Youngman.
63810
63811 2007-01-03  Karl Berry  <karl@gnu.org>
63812
63813         * doc/error.texi: new file, explaining interaction with progname.
63814         * doc/gnulib.texi: include it.  Update copyright.
63815
63816 2007-01-03  Simon Josefsson  <simon@josefsson.org>
63817
63818         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
63819         AC_CANONICAL_HOST, to improve autobuild outputs.
63820
63821 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
63822             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
63823
63824         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
63825         sockets, server sockets, and other file descriptors.  Count errors
63826         to compute the return value.  Reorder the code a bit to be easier
63827         to follow.  Don't set event bits that were not requested (except
63828         POLLERR and POLLHUP).
63829
63830 2007-01-01  Bruno Haible  <bruno@clisp.org>
63831
63832         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
63833
63834 2007-01-03  Jim Meyering  <jim@meyering.net>
63835
63836         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
63837
63838 2007-01-02  Bruno Haible  <bruno@clisp.org>
63839
63840         * modules/settime (Include): Require timespec.h.
63841         * modules/nanosleep (Include): Likewise.
63842
63843 2007-01-01  Bruno Haible  <bruno@clisp.org>
63844
63845         * gnulib-tool (func_emit_copyright_notice): Bump year.
63846         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
63847
63848 2007-01-01  Bruno Haible  <bruno@clisp.org>
63849
63850         Improve support for OpenBSD.
63851         * build-aux/config.rpath (libname_spec): Export.
63852         (library_names_spec): New variable. Export.
63853         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
63854         library_names_spec from the config.rpath output. Locate shared library
63855         through the name pattern in library_names_spec.
63856
63857 2007-01-01  Eric Blake  <ebb9@byu.net>
63858
63859         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
63860
63861 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
63862
63863         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
63864         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
63865         assume the C locale, and avoid an "eval" that could cause trouble.
63866         Problem with SORT reported by Bob Proulx.
63867
63868         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
63869         Define.  Trivial patch from Henning Nielsen Lund, originally
63870         sent to bug-grep@gnu.org today.
63871
63872 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
63873
63874         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
63875         struct stat.  Problem reported by Henning Nielsen Lund.
63876         * lib/acl.c: Include acl.h first, to check interface.  Don't
63877         bother to include sys/types.h and sys/stat.h again.
63878
63879 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
63880
63881         Import the following change from libc; problem reported by
63882         Sven Verdoolaege.
63883
63884         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
63885
63886         [BZ #1373]
63887         * lib/argp.h: Remove __NTH for __argp_usage inline function.
63888
63889 2006-12-28  Jim Meyering  <jim@meyering.net>
63890
63891         * build-aux/announce-gen: Do not assume that the package
63892         builds any of tar.gz, tar.bz2, and .xdelta files.
63893         Suggestion from Simon Josefsson.
63894
63895 2006-12-28  Simon Josefsson  <simon@josefsson.org>
63896
63897         * modules/announce-gen: New file.
63898
63899 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
63900
63901         * lib/mbchar.h: Just include <wctype.h>; the wctype module
63902         handles its gotchas now.
63903         * lib/mbswidth.c: Likewise.
63904         * lib/wcwidth.h: Likewise.
63905         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
63906         and iswcntrl; the wctype module does this stuff now.
63907         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
63908         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63909         * modules/mbchar (Depends-on): Add wctype.
63910         * modules/mbswidth (Depends-on): Likewise.
63911         * modules/wcwidth (Depends-on): Likewise.
63912
63913 2006-12-27  Eric Blake  <ebb9@byu.net>
63914
63915         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
63916         module uses more than what <wctype.h> is required to provide.
63917
63918 2006-12-26  Eric Blake  <ebb9@byu.net>
63919
63920         * gnulib-tool (sed_extract_prog): Avoid space-tab.
63921
63922 2006-12-26  Eric Blake  <ebb9@byu.net>
63923
63924         * modules/absolute-header: New module.
63925         * modules/fcntl (Depends-on): Depend on it.
63926         * modules/inttypes (Depends-on): Likewise.
63927         * modules/stdint (Depends-on): Likewise.
63928         * modules/sys_stat (Depends-on): Likewise.
63929         * modules/wctype (Depends-on): Likewise.
63930         * MODULES.html.sh (Support for building libraries and
63931         executables): Document it.
63932
63933 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
63934
63935         * gnulib-tool (SED): Remove, undoing previous change.
63936         The problem was that it broke coreutils on Solaris, because
63937         "sed --posix" leaked into a makefile.
63938         (sed): New alias, if 'alias' and GNU sed.
63939
63940 2006-12-24  Jim Meyering  <jim@meyering.net>
63941
63942         Work around an fchownat bug in glibc-2.4:
63943         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
63944         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
63945         in spite of the -P option.
63946         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
63947         New macros.
63948         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
63949         * modules/openat (Files): Add lib/fchownat.c.
63950         * lib/openat.c (fchownat): Don't define here.  Move to...
63951         * lib/fchownat.c: ...this new file.
63952
63953 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
63954
63955         Fix bug reported by Bruno Haible in
63956         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
63957         where quotearg.c didn't compile on Mac OS X 10.2 because it
63958         lacks <wchar.h> and wint_t.
63959         * lib/wctype_.h (__wctype_wint_t): New type.
63960         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
63961         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
63962         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
63963         Arg is now of type __wctype_wint_t, not wint_t.
63964         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
63965         substitute HAVE_WINT_T.
63966         * modules/wctype (Files): Add m4/wint_t.m4.
63967         (wctype.h): Substitute HAVE_WINT_T.
63968
63969 2006-12-23  Bruno Haible  <bruno@clisp.org>
63970
63971         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
63972
63973 2006-12-23  Bruno Haible  <bruno@clisp.org>
63974
63975         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
63976         S_ISLNK.
63977         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
63978         mingw.
63979
63980 2006-12-22  Bruno Haible  <bruno@clisp.org>
63981
63982         * lib/copy-file.c: Include acl.h.
63983         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
63984         Close the file descriptors only after being done with copy_acl.
63985         * modules/copy-file (Depends-on): Add acl.
63986
63987 2006-12-22  Bruno Haible  <bruno@clisp.org>
63988
63989         * gnulib-tool (SED): New variable.
63990         Use $SED instead of sed everywhere.
63991
63992 2006-12-22  Bruno Haible  <bruno@clisp.org>
63993
63994         * modules/no-c++: New file.
63995         * m4/no-c++.m4: New file.
63996         * MODULES.html.sh (Support for building libraries and executables):
63997         Add no-c++.
63998
63999 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
64000
64001         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64002         Include <limits.h>, and use its INT_MAX to rewrite the
64003         j loop so that it does not overflow 'int'.  Problem reported by
64004         Ralf Wildenhues in
64005         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
64006         Play it safe by shifting left by 1 rather than multiplying by 2,
64007         as GCC is less likely to optimize this away when the value
64008         is signed (when it assumes overflow leads to undefined behavior).
64009         Also, don't assume time_t uses two's complement.
64010
64011 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
64012
64013         * MODULES.html.sh: New module wctype.
64014         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
64015         * lib/fnmatch.c: Don't bother to include <wchar.h> before
64016         <wctype.h>, since the new wctype module should fix this.
64017         * lib/quotearg.c: Include <wctype.h> unconditionally, since
64018         the wctype module should arrange for it.
64019         * lib/regex_internal.h: Likewise.
64020         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
64021         since the wctype module should handle this now.
64022         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
64023         * modules/fnmatch (Depends-on): Add wctype.
64024         * modules/quotearg (Depends-on): Likewise.
64025         * modules/regex (Depends-on): Likewise.
64026
64027 2006-12-19  Bruno Haible  <bruno@clisp.org>
64028
64029         * lib/strdup.h [C++]: Wrap definitions in extern "C".
64030         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
64031
64032 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64033
64034         * modules/savewd (Depends-on): Fix dependency on fcntl.
64035
64036 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64037
64038         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
64039         conforms to C99, rather than relying on the user's environment
64040         setting of STDINT_H.
64041
64042 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64043         and Eric Blake  <ebb9@byu.net>
64044
64045         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
64046         This is more consistent with the other defines here.
64047         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
64048         Port to z/OS.  Problem reported by Paul Gilmartin.
64049         Change local vars to use gl_ prefix rather than ac_.
64050         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
64051         with other defines.
64052         * modules/double-slash-root: New module.
64053         * modules/dirname (Files): Remove m4/double-slash-root.m4.
64054         (Depends-on): Add double-slash-root.
64055         * MODULES.html.sh (File system functions): Mention new module.
64056
64057 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
64058
64059         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
64060         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
64061         This is for the benefit of gzip, which doesn't do i18n.
64062
64063 2006-12-12  Jim Meyering  <jim@meyering.net>
64064
64065         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
64066         Reported by Andreas Schwab <schwab@suse.de>.
64067
64068 2006-12-12  Bruno Haible  <bruno@clisp.org>
64069
64070         Merge these changes.
64071         2006-09-05  Bruno Haible  <bruno@clisp.org>
64072         * lib/iconvme.c (iconv_string): No need to save and restore errno when
64073         iconv_alloc succeeded.
64074         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
64075         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
64076         test for " && dest " at the end - dest is always != NULL there. Call
64077         iconv with 4xNULL arguments initially, to reset the state. Call iconv
64078         with 2xNULL arguments, also to flush the state storage. Handle the
64079         IRIX iconv behaviour. Realloc the final result, to throw away unused
64080         memory.
64081
64082 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
64083
64084         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
64085         and fchmodat unconditionally, since glibc 2.4 has them.
64086         Problem reported by Arkadiusz Miskiewicz.
64087
64088 2006-12-10  Bruno Haible  <bruno@clisp.org>
64089
64090         * gnulib-tool (func_import): Show the include files only for those
64091         modules that are copied and specified.
64092         Reported by Karl Berry.
64093
64094 2006-12-08  Jim Meyering  <jim@meyering.net>
64095
64096         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
64097         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
64098
64099         * build-aux/announce-gen: Add two new options, both optional:
64100         --bootstrap-tools=TOOL_LIST
64101               a comma-separated list of tools, e.g.,
64102               autoconf,automake,bison,gnulib
64103         --gnulib-snapshot-date=DATE
64104               if gnulib is in the bootstrap tool list,
64105               then report this as the snapshot date.
64106               If not specified, use the current date/time.
64107               If you specify a date here, be sure it's UTC.
64108
64109 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64110
64111         * tests/test-argp-2.sh: Fix test to match actual output.
64112         (func_compare): Fix sed script to be portable.
64113
64114 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
64115
64116         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
64117         workaround for this case.  It is not autoconfigured now; offhand
64118         it's hard to see how to autoconfigure it.
64119
64120 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
64121
64122         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
64123         a directory that is about to be chowned.  Such a directory's
64124         initial file permissions should permit the owner only and this
64125         should not be changed until after the chown, since the group and
64126         other bits would be incorrect if they granted permission before
64127         the chown.
64128
64129         Fix porting problem for iswctype reported by Georg Schwarz in:
64130         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
64131         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
64132         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
64133         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
64134         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64135
64136 2006-12-03  Jim Meyering  <jim@meyering.net>
64137
64138         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
64139         p->fts_statp may not yet be defined.
64140         (fts_read): Instead, set it in the caller, once p->fts_statp is
64141         sure to be defined, and corresponds to a top-level directory.
64142         This bug made du -x fail.  Here's the coreutils test case:
64143         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
64144         Reported by Mike Frysinger.
64145
64146 2006-12-01  Jim Meyering  <jim@meyering.net>
64147
64148         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
64149         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
64150         Reported by Simon Josefsson.
64151
64152 2006-11-30  Jim Meyering  <jim@meyering.net>
64153
64154         * m4/warning.m4: Use the all-permissive copyright notice
64155         recommended by RMS (rather than LGPL).
64156         * m4/vararrays.m4: Likewise.
64157         * m4/flexmember.m4: Likewise.
64158
64159 2006-11-29  Bruno Haible  <bruno@clisp.org>
64160
64161         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64162         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
64163         using +=.
64164         Reported by Simon Josefsson <simon@josefsson.org>.
64165
64166 2006-11-28  James Youngman <jay@gnu.org>
64167
64168         * README: Advise users that they might find the bug-gnulib@gnu.org
64169         and autotools-announce@gnu.org mailing lists useful.
64170
64171 2006-11-28  Bruno Haible  <bruno@clisp.org>
64172
64173         * m4/ptrdiff_max.m4: Remove file.
64174
64175 2006-11-21  Bruno Haible  <bruno@clisp.org>
64176
64177         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
64178         _AC_COMPUTE_INT.
64179         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64180         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
64181         _AC_COMPUTE_INT.
64182         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64183         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
64184         _AC_COMPUTE_INT.
64185         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64186
64187 2006-11-28  Jim Meyering  <jim@meyering.net>
64188
64189         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
64190         warning from "gcc -Wshadow" about shadowing the builtin.
64191
64192 2006-11-27  Bruno Haible  <bruno@clisp.org>
64193
64194         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
64195         _AC_COMPUTE_INT.
64196         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
64197
64198 2006-11-27  Bruno Haible  <bruno@clisp.org>
64199             Paul Eggert  <eggert@cs.ucla.edu>
64200
64201         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
64202
64203 2006-11-26  Bruno Haible  <bruno@clisp.org>
64204
64205         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64206         noinst_LTLIBRARIES.
64207
64208 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
64209             Bruno Haible  <bruno@clisp.org>
64210
64211         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
64212         if compiling with "gcc -ansi".
64213
64214 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
64215
64216         Fix some incompatibilities with gcc -ansi -pedantic.
64217         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
64218         if compiling pedantically with GCC, unless it's C99 or later.
64219         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
64220         it mishandles gcc -ansi -pedantic as well.
64221         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
64222         if gcc -pedantic.
64223         * lib/regexec.c (check_node_accept_bytes): Don't use auto
64224         initializers for struct if -pedantic, unless it's C99 or later.
64225
64226 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
64227
64228         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
64229         Don't close an fd more than once. Identical atimes indicate
64230         success, not failure.
64231
64232 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
64233
64234         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
64235
64236 2006-11-23  Jim Meyering  <jim@meyering.net>
64237
64238         * build-aux/announce-gen: New file.  From coreutils.
64239
64240 2006-11-22  Jim Meyering  <jim@meyering.net>
64241
64242         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
64243         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
64244         (fts_read): Use a temporary to narrow the overused st_size member
64245         before using it in a switch statement.  Reported by Matthew Woehlke.
64246
64247         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
64248         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
64249
64250 2006-11-20  Bruno Haible  <bruno@clisp.org>
64251
64252         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
64253         changequote instead of pairs of brackets.
64254         Reported by Andreas Schwab <schwab@suse.de>.
64255
64256 2006-11-21  Jim Meyering  <jim@meyering.net>
64257
64258         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
64259         so as to remain compatible with older compilers.
64260         Patch from Michael Deutschmann.
64261
64262 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
64263
64264         * MODULES.html.sh (File system functions): Add openat.
64265
64266         * lib/openat.h (rpl_fstatat): New macro, if
64267         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
64268         (fstatat): Define to rpl_fstatat under the same conditions,
64269         unless COMPILING_FSTATAT.
64270         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
64271         seems to have the bug.
64272         * lib/fstatat.c: New file.
64273         * modules/openat (Files): Add it.
64274
64275 2006-11-20  Bruno Haible  <bruno@clisp.org>
64276
64277         * Makefile: New file.
64278
64279 2006-11-20  Jim Meyering  <jim@meyering.net>
64280
64281         The beginnings of syntax-related checks for gnulib.
64282         * lib/Makefile: New file.
64283         * lib/t-idcache: New script.  Ensure that the two halves of
64284         idcache.c stay in sync.
64285
64286         * lib/idcache.c: Adjust comments in user- and group- portions to
64287         be more accurate, and to be consistent with one another.
64288
64289 2006-11-20  Jim Meyering  <jim@meyering.net>
64290
64291         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
64292         continue using the flexible array member (thus, this module performs
64293         half as many malloc calls), with the addition that...
64294         (getgroup, getuser): Consistently record a non-match via an empty
64295         "name" string, and map an empty string match to a NULL return value.
64296         * modules/idcache (Depends-on): Re-add flexmember.
64297
64298         * lib/idcache.c (getuser): Remove all uses of the register keyword.
64299         (getuidbyname, getgroup, getgidbyname): Likewise.
64300
64301         Use cleaner syntax: NULL rather than 0.
64302         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
64303
64304 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
64305
64306         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
64307         It mishandled the case where the group was missing.
64308         Problem reported by Greg Schafer.
64309         * modules/idcache: Likewise.
64310
64311 2006-11-18  Jim Meyering  <jim@meyering.net>
64312
64313         * check-module (%exempt_header): Add exception for some
64314         conditionally-included headers.
64315
64316         * modules/i-ring (Depends-on): Add verify.
64317         (License): Change to LGPL.
64318
64319 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64320
64321         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
64322         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
64323         and inttostr.h.  Use snprintf rather than uinttostr, so that
64324         LGPLed code doesn't depend on GPLed.
64325
64326 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
64327
64328         * modules/inline (License): Change from GPL to LGPL.
64329
64330 2006-11-17  Jim Meyering  <jim@meyering.net>
64331
64332         * modules/d-type (License): Switch to LGPL.
64333
64334 2006-11-15  Bruno Haible  <bruno@clisp.org>
64335
64336         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
64337
64338 2006-11-15  Eric Blake  <ebb9@byu.net>
64339
64340         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
64341         the module dependency.
64342
64343 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64344             Bruno Haible  <bruno@clisp.org>
64345
64346         * gnulib-tool (func_create_testdir): Add license consistency check.
64347
64348 2006-11-15  Eric Blake  <ebb9@byu.net>
64349
64350         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
64351         random "(cached)" in configure output.
64352
64353 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64354
64355         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
64356         test for conforming inttypes.h is both announced and cached.
64357
64358         * MODULES.html.sh (seen_modules, seen_files): New variables.
64359         (func_module): Rewrite to use a few less gnulib-tool and sed
64360         invocations.  Avoid a couple of quadratic algorithms for ...
64361         (missed_modules, missed_files): ... these, with ...
64362         (func_append, func_tmpdir): ... these new functions, from
64363         gnulib-tool.  Analogously, install traps for cleanup.
64364
64365         * tests/test-gc.c (main): Remove unused variables.
64366         * tests/test-read-file.c: Include stdlib.h, for 'free'.
64367
64368 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
64369
64370         * modules/inttostr (License): Change to LGPL.
64371
64372 2006-11-14  Eric Blake  <ebb9@byu.net>
64373
64374         * modules/tempname (License): Change to LGPL.
64375
64376 2006-11-14  Eric Blake  <ebb9@byu.net>
64377
64378         * doc/functions.texi (Function Portability): *printf functions on
64379         Cygwin now understand all POSIX size specifiers.
64380
64381 2006-11-14  Bruno Haible  <bruno@clisp.org>
64382
64383         * modules/c-ctype (License): Change to LGPL.
64384
64385 2006-11-12  Bruno Haible  <bruno@clisp.org>
64386
64387         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
64388         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
64389         for GNOME libraries, for which the include files are installed in
64390         subdirectories of $prefix/include.
64391
64392 2006-11-12  Bruno Haible  <bruno@clisp.org>
64393
64394         * m4/lib-link.m4: Require at least autoconf-2.54.
64395         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
64396         name to underscores for the --with option.
64397
64398 2006-11-13  Bruno Haible  <bruno@clisp.org>
64399
64400         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
64401         the tests directory.
64402         Reported by Ralf Wildenhues.
64403
64404 2006-11-13  Bruno Haible  <bruno@clisp.org>
64405
64406         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
64407         (func_emit_initmacro_end): Undo the override here.
64408         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
64409         Works around the famous automake error in coreutils.
64410
64411 2006-11-13  Eric Blake  <ebb9@byu.net>
64412
64413         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
64414         element, not its node.
64415
64416 2006-11-12  Bruno Haible  <bruno@clisp.org>
64417
64418         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
64419         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
64420
64421 2006-11-12  Bruno Haible  <bruno@clisp.org>
64422
64423         * gnulib-tool: New option --local-symlink.
64424         (func_usage): Document it.
64425         (lsymbolic): New variable.
64426         (func_import, func_create_testdir): If --symlink was not specified,
64427         test whether --local-symlink was specified and the file comes from
64428         the local_gnulib_dir.
64429
64430 2006-11-12  Bruno Haible  <bruno@clisp.org>
64431
64432         * gnulib-tool (func_ln): New function.
64433         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
64434
64435 2006-11-12  Bruno Haible  <bruno@clisp.org>
64436
64437         Finish support for source files in subdirectories.
64438         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
64439         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
64440         AUTOMAKE_OPTIONS.
64441         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
64442
64443 2006-11-12  Bruno Haible  <bruno@clisp.org>
64444
64445         * gnulib-tool (func_get_automake_snippet): Synthesize also an
64446         EXTRA_lib_SOURCES augmentation.
64447         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
64448
64449 2006-11-12  Jim Meyering  <jim@meyering.net>
64450
64451         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
64452         file descriptors.  This also averts a failure on systems with
64453         native openat support when a traversed directory lacks "x" access.
64454         * lib/fts_.h: Include "i-ring.h"
64455         (struct FTS) [fts_fd_ring]: New member.
64456         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
64457         (FCHDIR): Add parentheses.
64458         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
64459         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
64460         When descending, rather than simply closing the previous
64461         fts_cwd_fd value, push that file descriptor onto the ring.
64462         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
64463         (fts_open): Initialize the new fd_ring member.
64464         (fts_close): Clear the ring.
64465         (fts_safe_changedir): When possible, use our new fd_ring to skip
64466         the diropen and fstat and dev/ino comparison that would normally
64467         accompany a virtual `chdir ("..")'.
64468
64469         * modules/fts (Depends-on): Add i-ring.
64470         * modules/i-ring: New module.
64471         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
64472         * m4/i-ring.m4: New file.
64473
64474 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64475
64476         * gnulib-tool (func_create_testdir): Fix replacement of
64477         `build-aux' in configure.ac.  Run autotools in gltests
64478         subdirectory.
64479         (func_create_testdir, func_create_megatestdir, test): There is
64480         no need for '--force' in most autotool invocations in a new
64481         tree.  Actually fail the whole test if any of the tools, or the
64482         configure or make stages fail.
64483
64484         Sync from Automake.
64485         * build-aux/gnupload: Revert last change.  Add pointer to upload
64486         instructions of the GNU Maintenance Instructions.
64487         Suggestion by Karl Berry.
64488
64489 2006-11-10  Jim Meyering  <jim@meyering.net>
64490
64491         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
64492
64493 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64494
64495         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
64496         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
64497         (bind_textdomain_codeset) [! ENABLE_NLS]:
64498         Evaluate all the arguments.  That way, callers get compatible behavior
64499         if the arguments have side effects.  Also, it avoids some GCC
64500         diagnostics in some cases; Joel E. Denny reported problems when Bison
64501         was configured with --enable-gcc-warnigs.
64502
64503 2006-11-10  Jim Meyering  <jim@meyering.net>
64504
64505         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
64506         relevant options in CFLAGS (like -O, -fno-inline) are taken into
64507         account.
64508
64509 2006-11-10  Jim Meyering  <jim@meyering.net>
64510
64511         * modules/inline: New file/module.
64512         * modules/xalloc (Files): Remove m4/inline.m4.
64513         (Depends-on): Add inline, instead.
64514         * modules/oset: Likewise.
64515         * modules/list: Likewise.
64516
64517 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
64518
64519         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
64520         Problem reported by Matthew Woehlke.
64521
64522 2006-11-09  Bruno Haible  <bruno@clisp.org>
64523
64524         * lib/tempname.c (gen_tempname): Remove variant that invokes
64525         __gen_tempname.
64526         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
64527         __gen_tempname.
64528
64529 2006-11-08  Bruno Haible  <bruno@clisp.org>
64530
64531         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
64532         to 'yes' instead of 'cross-compiling'.
64533
64534 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
64535
64536         * lib/quotearg.h (quotearg_free): New decl.
64537         * lib/quotearg.c (quotearg_free): New function.
64538         (slot0, nslots, slotvec0, slotvec):
64539         Now file-scope so that quotearg_free can get at them.
64540
64541 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64542
64543         Sync from Automake.
64544         * build-aux/gnupload: Add missing 'gnu' to example URL.
64545         Report by Karl Berry.
64546
64547 2006-11-08  Bruno Haible  <bruno@clisp.org>
64548
64549         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
64550         Suggested by Paul Eggert.
64551
64552 2006-11-08  Jim Meyering  <jim@meyering.net>
64553
64554         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
64555         It's already included if !_LIBC.
64556         (fts_safe_changedir): Add a comment.
64557
64558 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
64559
64560         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
64561         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
64562         Matthew Woehlke.
64563
64564         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
64565         definitions up, to avoid colliding with change below.
64566         (static_inline) [HAVE_INLINE]: New macro.
64567         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
64568         Provide extern decls when !HAVE_INLINE.  Do not define unless
64569         static_inline is defined, either by us or by xmalloc.c.  Use
64570         static_inline rather than static inline.
64571         (XCALLOC): Optimize sizeof(T) = 1 case.
64572         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
64573
64574 2006-11-07  Bruno Haible  <bruno@clisp.org>
64575
64576         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
64577         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
64578         AC_C_INLINE.
64579         * modules/xalloc (Files): Add m4/inline.m4.
64580
64581 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64582
64583         * README: Fix typo.
64584         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
64585         (Miscellanous Notes): ...from this.
64586
64587 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
64588
64589         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
64590         Mention that offsetof should be used instead of sizeof.
64591         From Bruno Haible.
64592
64593 2006-11-07  Bruno Haible  <bruno@clisp.org>
64594
64595         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
64596
64597 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
64598
64599         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
64600         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
64601         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
64602         (gl_tree_add_before, gl_tree_add_after):
64603         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
64604         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
64605         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
64606         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
64607         (gl_linked_add_after, gl_linked_add_at): Likewise.
64608         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
64609         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
64610         (gl_tree_add_before, gl_tree_add_after): Likewise.
64611         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
64612         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
64613         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
64614
64615 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64616
64617         * lib/gl_oset.h: Use C comment style, not C++ comment style.
64618
64619 2006-11-06  Bruno Haible  <bruno@clisp.org>
64620
64621         * m4/inline.m4: New file.
64622         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
64623         * modules/list (Files): Add m4/inline.m4.
64624         * modules/oset (Files): Likewise.
64625
64626 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
64627
64628         * lib/idcache.c: Include <stddef.h>, for offsetof.
64629         (struct userid.name): Change from char * to a flexible array member.
64630         All uses changed.
64631         * modules/idcache (Depends-on): Add flexmember.
64632
64633         * MODULES.html.sh (Core language properties): New module flexmember.
64634         * modules/flexmember, m4/flexmember.m4: New files.
64635
64636         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
64637         inline functions that are identical with the old xnmalloc_inline,
64638         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
64639         that we can avoid some unnecessary integer multiplications and
64640         divisions in the common case where the element size is known at
64641         compile time.
64642         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
64643         needed.
64644         (xnboundedmalloc): Remove.
64645         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
64646         arguments, for consistency with rest of this header.
64647         (xcharalloc): Rewrite using XNMALLOC.
64648         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
64649         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
64650         versions have been moved to lib/xalloc.h and renamed to be the
64651         non-*_inline versions.
64652         (xmalloc, xrealloc): Implement without reference to the xnmalloc
64653         and xnrealloc functions, since those functions are now inline and
64654         now call us.
64655         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
64656         renaming described above.
64657         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
64658         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
64659         captures the dependency in AC_C_INLINE.
64660
64661         New module canonicalize-lgpl, proposed by Charles Wilson in
64662         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
64663         with a few small changes afterwards.
64664         * MODULES.html.sh (File system functions): New module
64665         canonicalize-lgpl.
64666         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
64667         and canonicalize_file_name.
64668         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
64669         * modules/canonicalize-lgpl: New files.
64670
64671 2006-11-05  Bruno Haible  <bruno@clisp.org>
64672
64673         * gnulib-tool (func_import, func_create_testdir): Create directories
64674         also for files in subdirectories of lib/.
64675
64676 2006-11-05  Bruno Haible  <bruno@clisp.org>
64677
64678         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
64679         ANSI C compliant.
64680
64681 2006-11-03  Bruno Haible  <bruno@clisp.org>
64682
64683         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
64684         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
64685         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
64686         (xnboundedmalloc): New inline function.
64687         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
64688         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
64689         xmalloc.
64690         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
64691         xmalloc.
64692         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
64693         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
64694         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
64695         xmalloc.
64696         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
64697         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
64698         xmalloc.
64699         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
64700         gl_tree_add_after): Use XMALLOC instead of xmalloc.
64701         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
64702         xmalloc.
64703         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
64704         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
64705         gl_tree_add_after): Use XMALLOC instead of xmalloc.
64706         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
64707         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
64708         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
64709         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
64710
64711 2006-11-03  Bruno Haible  <bruno@clisp.org>
64712
64713         * lib/c-ctype.h [C++]: Define functions without name mangling.
64714         * lib/fwriteerror.h [C++]: Likewise.
64715         * lib/gcd.h [C++]: Likewise.
64716         * lib/linebreak.h [C++]: Likewise.
64717
64718 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
64719
64720         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
64721         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
64722         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
64723         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
64724         Check for functions and headers just once.
64725         Check for declaration of canonicalize_file_name.
64726         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
64727
64728 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
64729
64730         * gnulib-tool (func_import): Fix typo in actioncmd.
64731
64732 2006-11-02  Bruno Haible  <bruno@clisp.org>
64733
64734         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
64735         newline sequence in the Makefile.am snippet as a space, like "make"
64736         does.
64737         Reported by Roger Persson <perrog@gmail.com>.
64738
64739 2006-11-01  Bruno Haible  <bruno@clisp.org>
64740
64741         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
64742         already declared in <string.h>.
64743         * lib/strcase.h (strncasecmp): Don't declare it if yes.
64744
64745 2006-11-01  Bruno Haible  <bruno@clisp.org>
64746
64747         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
64748         * lib/strcase.h: Include <string.h>.
64749         (strcasecmp): Define to rpl_strcasecmp here.
64750
64751 2006-11-01  Bruno Haible  <bruno@clisp.org>
64752
64753         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
64754
64755 2006-11-01  Eric Blake  <ebb9@byu.net>
64756
64757         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
64758
64759         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
64760
64761 2006-10-29  Bruno Haible  <bruno@clisp.org>
64762
64763         Make it compile in C++ mode.
64764         * lib/full-write.c (full_rw): Add a cast.
64765
64766 2006-11-01  Bruno Haible  <bruno@clisp.org>
64767
64768         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
64769         be POSIX compliant.
64770         Reported by Roger Persson <perrog@gmail.com>.
64771
64772 2006-11-01  Eric Blake  <ebb9@byu.net>
64773
64774         * lib/getopt_.h: Fix comments.
64775
64776 2006-10-31  Eric Blake  <ebb9@byu.net>
64777
64778         * modules/tmpdir (Depends-on): Add sys_stat.
64779         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
64780         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
64781         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
64782         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
64783         tempname.
64784
64785 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
64786
64787         Avoid some C++ diagnostics reported by Bruno Haible.
64788         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
64789         xmalloc.
64790         (quotearg_alloc): Use xcharalloc rather than xmalloc.
64791         (struct slotvec): Move to top level.
64792         (quotearg_n_options): Rewrite to avoid xmalloc.
64793         * lib/xalloc.h (xcharalloc): New function.
64794         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
64795         [defined __cplusplus]: Add function template that provides result
64796         type propagation.  This part of the change is from Bruno Haible.
64797
64798 2006-10-29  Bruno Haible  <bruno@clisp.org>
64799
64800         Make it compile in C++ mode.
64801         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
64802         * lib/strnlen1.c (strnlen1): Cast memchr result.
64803         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
64804         * lib/clean-temp.c (string_equals, string_hash): Add casts.
64805         (create_temp_dir): Rename local variable 'template'.
64806         (compile_csharp_using_sscli): Add cast.
64807         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
64808         * lib/findprog.c (find_in_path): Likewise.
64809         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
64810         * lib/wait-process.c (register_slave_subprocess): Likewise.
64811
64812 2006-10-22  Bruno Haible  <bruno@clisp.org>
64813
64814         * modules/tsearch: New file.
64815         * lib/tsearch.h: New file.
64816         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
64817         * m4/tsearch.m4: New file.
64818         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
64819
64820 2006-10-29  Eric Blake  <ebb9@byu.net>
64821
64822         * lib/arcfour.c: Assume config.h.
64823         * lib/arctwo.c: Likewise.
64824         * lib/base64.c: Likewise.
64825         * lib/check-version.c: Likewise.
64826         * lib/crc.c: Likewise.
64827         * lib/des.c: Likewise.
64828         * lib/gc-gnulib.c: Likewise.
64829         * lib/gc-libgcrypt.c: Likewise.
64830         * lib/gc-pbkdf2-sha1.c: Likewise.
64831         * lib/getaddrinfo.c: Likewise.
64832         * lib/getdelim.c: Likewise.
64833         * lib/getline.c: Likewise.
64834         * lib/hmac-md5.c: Likewise.
64835         * lib/hmac-sha1.c: Likewise.
64836         * lib/iconvme.c: Likewise.
64837         * lib/md2.c: Likewise.
64838         * lib/md4.c: Likewise.
64839         * lib/memxor.c: Likewise.
64840         * lib/read-file.c: Likewise.
64841         * lib/readline.c: Likewise.
64842         * lib/rijndael-alg-fst.c: Likewise.
64843         * lib/rijndael-api-fst.c: Likewise.
64844         * lib/xgetdomainname.c: Likewise.
64845
64846 2006-10-28  Eric Blake  <ebb9@byu.net>
64847
64848         * lib/xstrndup.c: Assume config.h.
64849
64850 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
64851
64852         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
64853         stat-macros.h is now for our own macros, whereas stat_h is for
64854         macros in the <sys/stat.h> name space.
64855         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
64856         (STAT_MACROS_H): Remove.
64857         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
64858         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
64859         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
64860         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
64861         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
64862         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
64863         Move these macros to ...
64864         * lib/stat_.h: here.  Don't include stat-macros.h.
64865         * lib/canonicalize.c: Don't include stat-macros.h.
64866         * lib/chown.c: Likewise.
64867         * lib/euidaccess.c: Likewise.
64868         * lib/file-type.c: Likewise.
64869         * lib/filemode.c: Likewise.
64870         * lib/glob.c: Likewise.
64871         * lib/isapipe.c: Likewise.
64872         * lib/lchown.c: Likewise.
64873         * lib/lstat.c: Likewise.
64874         * lib/mkdir-p.c: Likewise.
64875         * lib/rmdir.c: Likewise.
64876         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
64877         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
64878         unless mkdir isn't declared, to speed up 'configure'.
64879         Always create sys/stat.h, since it's unlikely any real sys/stat.h
64880         would define all the S_* symbols.
64881         * modules/canonicalize (Depends-on):
64882         Depend on sys_stat, not stat-macros.
64883         * modules/chown: Likewise.
64884         * modules/euidaccess: Likewise.
64885         * modules/filemode: Likewise.
64886         * modules/file-type: Likewise.
64887         * modules/glob: Likewise.
64888         * modules/isapipe: Likewise.
64889         * modules/lchown: Likewise.
64890         * modules/lstat: Likewise.
64891         * modules/mkancesdirs: Likewise.
64892         * modules/rmdir: Likewise.
64893         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
64894         * modules/modechange: Likewise.
64895         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
64896         (configure.ac): Remove gl_STAT_MACROS.
64897         * modules/sys_stat (Depends-on): Remove stat-macros.
64898
64899 2006-10-27  Bruno Haible  <bruno@clisp.org>
64900
64901         * m4/signed.m4: Remove file.
64902         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
64903         invocation.
64904         * modules/vasnprintf (Files): Remove m4/signed.m4.
64905
64906 2006-10-27  Bruno Haible  <bruno@clisp.org>
64907
64908         Update to GNU gettext 0.16.
64909         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
64910         m4/inttypes-h.m4, m4/signed.m4.
64911         * m4/gettext.m4: Update to GNU gettext 0.16.
64912         * m4/intl.m4: New file, from GNU gettext.
64913         * m4/intldir.m4: New file, from GNU gettext.
64914         * config/srclist.txt: Update
64915
64916 2006-10-27  Eric Blake  <ebb9@byu.net>
64917
64918         * MODULES.html.sh: Document tempname.
64919         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
64920         dependencies.
64921         (Files): Move lib/tempname.c...
64922         * modules/tempname: ...to this new module.
64923         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
64924         (gl_PREREQ_TEMPNAME): Move...
64925         * m4/tempname.m4: ...to this new file.
64926         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
64927         * modules/sys_stat (Depends-on): Add stat-macros.
64928         * lib/stat_.h (includes): Pick up stat macros.
64929         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
64930         if stat macros are broken.
64931         * lib/tempname.c (includes): No need to include "stat-macros.h".
64932         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
64933         (direxists, __path_search) [!_LIBC]: Don't compile these in
64934         gnulib; the tmpdir module covers that.
64935         * lib/tempname.h: New file.
64936
64937 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
64938
64939         * COPYING: Explain how gnulib-tool converts licence headers.
64940         Almost all wording by Eric Blake.
64941
64942 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
64943
64944         * lib/mbchar.h (is_basic_table): Make read-only.
64945         * lib/mbchar.c (is_basic_table): Likewise.
64946         Reported by John Darrington.
64947
64948 2006-10-25  Bruno Haible  <bruno@clisp.org>
64949
64950         * lib/progname.h (set_program_name): Undefine before defining.
64951
64952 2006-10-25  Bruno Haible  <bruno@clisp.org>
64953
64954         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
64955         false for non-gcc C++ compilers.
64956         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
64957
64958 2006-10-24  Bruno Haible  <bruno@clisp.org>
64959
64960         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
64961         iconv implementations like Irix iconv.
64962
64963 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64964
64965         * modules/vararrays: New file.
64966         * m4/vararrays.m4: New file, taken from diffutils.
64967         * MODULES.html.sh: New module vararrays.
64968
64969 2006-10-24  Karl Berry  <karl@gnu.org>
64970
64971         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
64972         Don't call GNU Unix.
64973
64974 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64975
64976         * users.txt: Add Libtool.
64977
64978         Sync from Libtool:
64979
64980         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64981
64982         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
64983         to gnulib's policy of including config.h unconditionally.
64984
64985 2006-10-24  Bruno Haible  <bruno@clisp.org>
64986
64987         * modules/wcwidth (Files): Add m4/wint_t.m4.
64988         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
64989         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
64990
64991 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64992
64993         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
64994         to pacify GCC with some -W flags enabled.  Problem reported by
64995         Bruno Haible.
64996
64997 2006-10-24  Jim Meyering  <jim@meyering.net>
64998
64999         * MODULES.html.sh: Remove uinttostr.  It's not a module.
65000         Reported by Karl Berry.
65001
65002 2006-10-23  Bruno Haible  <bruno@clisp.org>
65003
65004         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
65005
65006 2006-10-24  Bruno Haible  <bruno@clisp.org>
65007
65008         * lib/gl_list.h: Use C comment style, not C++ comment style.
65009
65010 2006-10-23  Eric Blake  <ebb9@byu.net>
65011
65012         * lib/getaddrinfo.c (includes): Add missing include.
65013
65014 2006-10-23  Bruno Haible  <bruno@clisp.org>
65015             Paul Eggert  <eggert@cs.ucla.edu>
65016
65017         Ability to rename obstack_free.
65018         * lib/obstack.h (__obstack_free): New macro. Declare instead of
65019         obstack_free.
65020         (obstack_free): Invoke the __obstack_free macro.
65021         * lib/obstack.c (obstack_free): Use __obstack_free macro.
65022
65023 2006-10-23  Bruno Haible  <bruno@clisp.org>
65024             Paul Eggert  <eggert@cs.ucla.edu>
65025
65026         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
65027         __argc, __argv from the declaration. (They are defined as macros on
65028         mingw.)
65029
65030 2006-10-22  Bruno Haible  <bruno@clisp.org>
65031
65032         * doc/gnulib-intro.texi: New file.
65033         * doc/gnulib.texi: Include it.
65034
65035 2006-10-21  Bruno Haible  <bruno@clisp.org>
65036
65037         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
65038         "Introduction", "Miscellanous Notes", "Particular Modules".
65039
65040 2006-10-21  Bruno Haible  <bruno@clisp.org>
65041
65042         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65043         Change mostlyclean-local rule to avoid sh syntax error from bash
65044         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
65045
65046 2006-10-23  Jim Meyering  <jim@meyering.net>
65047
65048         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
65049         in place of snprintf.
65050
65051         * modules/inttostr (Files): Add lib/uinttostr.c.
65052         * lib/uinttostr.c (inttostr): New file/function.
65053         * lib/inttostr.h (uinttostr): Declare.
65054         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
65055         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
65056         Add uinttostr.
65057         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
65058
65059 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
65060
65061         * lib/canonicalize.c (ELOOP): Define if not already defined.
65062         Problem reported by Bruno Haible in
65063         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
65064
65065 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
65066
65067         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
65068         Problem reported by Perry Smith and Ville Laurikari.
65069
65070         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
65071         uses.
65072
65073 2006-10-19  Bruno Haible  <bruno@clisp.org>
65074
65075         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
65076         for mingw.
65077
65078 2006-10-19  Bruno Haible  <bruno@clisp.org>
65079
65080         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
65081         Needed for mingw.
65082
65083 2006-10-19  Bruno Haible  <bruno@clisp.org>
65084
65085         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
65086
65087 2006-10-19  Bruno Haible  <bruno@clisp.org>
65088
65089         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
65090         it.
65091
65092 2006-10-19  Bruno Haible  <bruno@clisp.org>
65093
65094         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
65095         invocation.
65096
65097 2006-10-19  Bruno Haible  <bruno@clisp.org>
65098
65099         * gnulib-tool (func_create_testdir): Don't include ftruncate and
65100         mountlist by default.
65101
65102 2006-10-16  Bruno Haible  <bruno@clisp.org>
65103
65104         * lib/c-strstr.c: Include c-strstr.h.
65105
65106 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
65107
65108         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
65109         in a slash.
65110
65111 2006-10-18  Bruno Haible  <bruno@clisp.org>
65112
65113         * lib/lock.h [C++]: Wrap definitions in extern "C".
65114
65115 2006-10-18  Bruno Haible  <bruno@clisp.org>
65116
65117         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
65118         gl_LIBOBJS list.
65119
65120 2006-10-18  Bruno Haible  <bruno@clisp.org>
65121
65122         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
65123
65124 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
65125
65126         * lib/xstrtol.h: Include gettext.h.
65127         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
65128         Problem reported by Eric Blake.
65129         * modules/xstrtol (Depends-on): Add gettext-h.
65130
65131 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
65132
65133         * lib/strftime.c (advance): New macro.
65134         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
65135         incomplete type, so you can't add 0 to it.  Problem and patch
65136         reported by Eelco Dolstra for dietlibc.
65137
65138 2006-10-18  Jim Meyering  <jim@meyering.net>
65139
65140         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
65141         type for a local, and rename it: s/up/user_proc/.
65142
65143 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
65144
65145         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
65146         READ_UTMP_USER_PROCESS.
65147         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
65148
65149 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
65150
65151         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
65152         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
65153
65154 2006-10-17  Eric Blake  <ebb9@byu.net>
65155
65156         * lib/sigprocmask.c (sigprocmask): Fix typo.
65157
65158         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
65159
65160         * modules/clean-temp (Makefile.am): Don't add to make output...
65161         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
65162         config.h.
65163
65164 2006-10-17  Bruno Haible  <bruno@clisp.org>
65165
65166         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
65167         differently if DEFAULT_TEXT_DOMAIN is set.
65168
65169 2006-10-16  Bruno Haible  <bruno@clisp.org>
65170
65171         * lib/clean-temp.c: Include fwriteerror.h.
65172
65173 2006-10-16  Bruno Haible  <bruno@clisp.org>
65174
65175         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
65176
65177 2006-10-16  Bruno Haible  <bruno@clisp.org>
65178
65179         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
65180         * lib/sigprocmask.h: Include <sys/types.h>.
65181         (sigset_t): Use the system's definition if present.
65182
65183 2006-10-17  Eric Blake  <ebb9@byu.net>
65184
65185         * lib/xvasprintf.c (includes): Assume config.h.
65186         * lib/xasprintf.c (includes): Likewise.
65187
65188 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
65189
65190         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
65191         at least as wide as intmax_t.
65192
65193 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
65194
65195         (Imported from Automake.)
65196         * build-aux/gnupload: Update to version 1.1 of directive file.
65197
65198 2006-10-16  Eric Blake  <ebb9@byu.net>
65199
65200         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
65201         match Automake 1.10a.
65202
65203 2006-10-14  Bruno Haible  <bruno@clisp.org>
65204
65205         * modules/sigprocmask: New file.
65206         * lib/sigprocmask.h: New file.
65207         * lib/sigprocmask.c: New file.
65208         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
65209         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
65210         request sigprocmask.o.
65211         (gl_PREREQ_SIGPROCMASK): New macro.
65212         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
65213         (Depends-on): Add sigprocmask.
65214         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
65215         gt_SIGNALBLOCKING. Test for 'raise' only once.
65216         * lib/fatal-signal.c: Include sigprocmask.h.
65217         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
65218         unblock_fatal_signals): Define always.
65219         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65220         sigprocmask.
65221
65222 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
65223
65224         Sync from Automake.
65225         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
65226         which incorrectly sets the mode of an existing destination
65227         directory.  In some cases the unpatched install-sh could do the
65228         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
65229         system.  We hope this is rare in practice, but it's clearly worth
65230         fixing.  Problem reported by Alex Unleashed in
65231         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
65232         Also, don't bother to check for -m bugs unless we're using -m;
65233         suggested by Stepan Kasal.
65234
65235 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65236
65237         Sync from Automake.
65238         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
65239         `-c' flag, so they appear at the same position as in %FASTDEP%
65240         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
65241         which ignores unknown options only after the first non-option.
65242         Bug report against M4 by Nelson H. F. Beebe.
65243
65244 2006-10-13  Jim Meyering  <jim@meyering.net>
65245
65246         Fix a bug in yesterday's change.
65247         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
65248         p->fts_statp->st_dev would be used uninitialized.
65249         Ensures that we always call fts_stat on the very first entry.
65250         Miklos Szeredi reported that find -xdev stopped working.
65251
65252 2006-10-12  Bruno Haible  <bruno@clisp.org>
65253
65254         * gnulib-tool (func_get_automake_snippet): Append an automatically
65255         computed EXTRA_DIST augmentation.
65256         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
65257         * modules/alloca-opt (Makefile.am): Likewise.
65258         * modules/allocsa (Makefile.am): Likewise.
65259         * modules/arcfour (Makefile.am): Likewise.
65260         * modules/arctwo (Makefile.am): Likewise.
65261         * modules/argmatch (Makefile.am): Likewise.
65262         * modules/argz (Makefile.am): Likewise.
65263         * modules/atexit (Makefile.am): Likewise.
65264         * modules/backupfile (Makefile.am): Likewise.
65265         * modules/byteswap (Makefile.am): Likewise.
65266         * modules/c-strtod (Makefile.am): Likewise.
65267         * modules/c-strtold (Makefile.am): Likewise.
65268         * modules/calloc (Makefile.am): Likewise.
65269         * modules/canon-host (Makefile.am): Likewise.
65270         * modules/canonicalize (Makefile.am): Likewise.
65271         * modules/chdir-long (Makefile.am): Likewise.
65272         * modules/chdir-safer (Makefile.am): Likewise.
65273         * modules/check-version (Makefile.am): Likewise.
65274         * modules/chown (Makefile.am): Likewise.
65275         * modules/cloexec (Makefile.am): Likewise.
65276         * modules/close-stream (Makefile.am): Likewise.
65277         * modules/closeout (Makefile.am): Likewise.
65278         * modules/crc (Makefile.am): Likewise.
65279         * modules/csharpexec (Makefile.am): Likewise.
65280         * modules/cycle-check (Makefile.am): Likewise.
65281         * modules/des (Makefile.am): Likewise.
65282         * modules/dev-ino (Makefile.am): Likewise.
65283         * modules/dirfd (Makefile.am): Likewise.
65284         * modules/dirname (Makefile.am): Likewise.
65285         * modules/dup2 (Makefile.am): Likewise.
65286         * modules/eealloc (Makefile.am): Likewise.
65287         * modules/error (Makefile.am): Likewise.
65288         * modules/euidaccess (Makefile.am): Likewise.
65289         * modules/exclude (Makefile.am): Likewise.
65290         * modules/exitfail (Makefile.am): Likewise.
65291         * modules/fcntl-safer (Makefile.am): Likewise.
65292         * modules/fcntl (Makefile.am): Likewise.
65293         * modules/file-type (Makefile.am): Likewise.
65294         * modules/fileblocks (Makefile.am): Likewise.
65295         * modules/filemode (Makefile.am): Likewise.
65296         * modules/filenamecat (Makefile.am): Likewise.
65297         * modules/fnmatch (Makefile.am): Likewise.
65298         * modules/fopen-safer (Makefile.am): Likewise.
65299         * modules/fpending (Makefile.am): Likewise.
65300         * modules/fprintftime (Makefile.am): Likewise.
65301         * modules/free (Makefile.am): Likewise.
65302         * modules/fsusage (Makefile.am): Likewise.
65303         * modules/ftruncate (Makefile.am): Likewise.
65304         * modules/fts (Makefile.am): Likewise.
65305         * modules/gc-arcfour (Makefile.am): Likewise.
65306         * modules/gc-des (Makefile.am): Likewise.
65307         * modules/gc-hmac-md5 (Makefile.am): Likewise.
65308         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
65309         * modules/gc-md4 (Makefile.am): Likewise.
65310         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
65311         * modules/gc-sha1 (Makefile.am): Likewise.
65312         * modules/gc (Makefile.am): Likewise.
65313         * modules/getaddrinfo (Makefile.am): Likewise.
65314         * modules/getcwd (Makefile.am): Likewise.
65315         * modules/getdelim (Makefile.am): Likewise.
65316         * modules/getdomainname (Makefile.am): Likewise.
65317         * modules/getgroups (Makefile.am): Likewise.
65318         * modules/gethostname (Makefile.am): Likewise.
65319         * modules/gethrxtime (Makefile.am): Likewise.
65320         * modules/getline (Makefile.am): Likewise.
65321         * modules/getloadavg (Makefile.am): Likewise.
65322         * modules/getlogin_r (Makefile.am): Likewise.
65323         * modules/getndelim2 (Makefile.am): Likewise.
65324         * modules/getopt (Makefile.am): Likewise.
65325         * modules/getpagesize (Makefile.am): Likewise.
65326         * modules/getpass-gnu (Makefile.am): Likewise.
65327         * modules/getpass (Makefile.am): Likewise.
65328         * modules/getsubopt (Makefile.am): Likewise.
65329         * modules/gettime (Makefile.am): Likewise.
65330         * modules/gettimeofday (Makefile.am): Likewise.
65331         * modules/getugroups (Makefile.am): Likewise.
65332         * modules/getusershell (Makefile.am): Likewise.
65333         * modules/glob (Makefile.am): Likewise.
65334         * modules/group-member (Makefile.am): Likewise.
65335         * modules/hard-locale (Makefile.am): Likewise.
65336         * modules/hash (Makefile.am): Likewise.
65337         * modules/hmac-md5 (Makefile.am): Likewise.
65338         * modules/hmac-sha1 (Makefile.am): Likewise.
65339         * modules/human (Makefile.am): Likewise.
65340         * modules/idcache (Makefile.am): Likewise.
65341         * modules/imaxabs (Makefile.am): Likewise.
65342         * modules/imaxdiv (Makefile.am): Likewise.
65343         * modules/inet_ntop (Makefile.am): Likewise.
65344         * modules/inet_pton (Makefile.am): Likewise.
65345         * modules/intprops (Makefile.am): Likewise.
65346         * modules/inttostr (Makefile.am): Likewise.
65347         * modules/inttypes (Makefile.am): Likewise.
65348         * modules/isapipe (Makefile.am): Likewise.
65349         * modules/javaversion (Makefile.am): Likewise.
65350         * modules/lchmod (Makefile.am): Likewise.
65351         * modules/lchown (Makefile.am): Likewise.
65352         * modules/localcharset (Makefile.am): Likewise.
65353         * modules/long-options (Makefile.am): Likewise.
65354         * modules/lstat (Makefile.am): Likewise.
65355         * modules/malloc (Makefile.am): Likewise.
65356         * modules/mathl (Makefile.am): Likewise.
65357         * modules/mbchar (Makefile.am): Likewise.
65358         * modules/md2 (Makefile.am): Likewise.
65359         * modules/md4 (Makefile.am): Likewise.
65360         * modules/md5 (Makefile.am): Likewise.
65361         * modules/memcasecmp (Makefile.am): Likewise.
65362         * modules/memchr (Makefile.am): Likewise.
65363         * modules/memcmp (Makefile.am): Likewise.
65364         * modules/memcoll (Makefile.am): Likewise.
65365         * modules/memcpy (Makefile.am): Likewise.
65366         * modules/memmem (Makefile.am): Likewise.
65367         * modules/memmove (Makefile.am): Likewise.
65368         * modules/mempcpy (Makefile.am): Likewise.
65369         * modules/memrchr (Makefile.am): Likewise.
65370         * modules/memset (Makefile.am): Likewise.
65371         * modules/memxor (Makefile.am): Likewise.
65372         * modules/mkancesdirs (Makefile.am): Likewise.
65373         * modules/mkdir-p (Makefile.am): Likewise.
65374         * modules/mkdir (Makefile.am): Likewise.
65375         * modules/mkdtemp (Makefile.am): Likewise.
65376         * modules/mkstemp (Makefile.am): Likewise.
65377         * modules/mktime (Makefile.am): Likewise.
65378         * modules/modechange (Makefile.am): Likewise.
65379         * modules/mountlist (Makefile.am): Likewise.
65380         * modules/nanosleep (Makefile.am): Likewise.
65381         * modules/obstack (Makefile.am): Likewise.
65382         * modules/openat (Makefile.am): Likewise.
65383         * modules/pagealign_alloc (Makefile.am): Likewise.
65384         * modules/pathmax (Makefile.am): Likewise.
65385         * modules/physmem (Makefile.am): Likewise.
65386         * modules/poll (Makefile.am): Likewise.
65387         * modules/posixtm (Makefile.am): Likewise.
65388         * modules/posixver (Makefile.am): Likewise.
65389         * modules/putenv (Makefile.am): Likewise.
65390         * modules/quote (Makefile.am): Likewise.
65391         * modules/quotearg (Makefile.am): Likewise.
65392         * modules/raise (Makefile.am): Likewise.
65393         * modules/read-file (Makefile.am): Likewise.
65394         * modules/readline (Makefile.am): Likewise.
65395         * modules/readlink (Makefile.am): Likewise.
65396         * modules/readtokens (Makefile.am): Likewise.
65397         * modules/readutmp (Makefile.am): Likewise.
65398         * modules/realloc (Makefile.am): Likewise.
65399         * modules/regex (Makefile.am): Likewise.
65400         * modules/rename-dest-slash (Makefile.am): Likewise.
65401         * modules/rename (Makefile.am): Likewise.
65402         * modules/rijndael (Makefile.am): Likewise.
65403         * modules/rmdir (Makefile.am): Likewise.
65404         * modules/rpmatch (Makefile.am): Likewise.
65405         * modules/safe-read (Makefile.am): Likewise.
65406         * modules/safe-write (Makefile.am): Likewise.
65407         * modules/same-inode (Makefile.am): Likewise.
65408         * modules/same (Makefile.am): Likewise.
65409         * modules/save-cwd (Makefile.am): Likewise.
65410         * modules/savedir (Makefile.am): Likewise.
65411         * modules/setenv (Makefile.am): Likewise.
65412         * modules/settime (Makefile.am): Likewise.
65413         * modules/sha1 (Makefile.am): Likewise.
65414         * modules/sig2str (Makefile.am): Likewise.
65415         * modules/snprintf (Makefile.am): Likewise.
65416         * modules/stat-macros (Makefile.am): Likewise.
65417         * modules/stat-time (Makefile.am): Likewise.
65418         * modules/stdbool (Makefile.am): Likewise.
65419         * modules/stdint (Makefile.am): Likewise.
65420         * modules/stdlib-safer (Makefile.am): Likewise.
65421         * modules/stpcpy (Makefile.am): Likewise.
65422         * modules/stpncpy (Makefile.am): Likewise.
65423         * modules/strcase (Makefile.am): Likewise.
65424         * modules/strcasestr (Makefile.am): Likewise.
65425         * modules/strchrnul (Makefile.am): Likewise.
65426         * modules/strcspn (Makefile.am): Likewise.
65427         * modules/strdup (Makefile.am): Likewise.
65428         * modules/strerror (Makefile.am): Likewise.
65429         * modules/strftime (Makefile.am): Likewise.
65430         * modules/strndup (Makefile.am): Likewise.
65431         * modules/strnlen (Makefile.am): Likewise.
65432         * modules/strpbrk (Makefile.am): Likewise.
65433         * modules/strsep (Makefile.am): Likewise.
65434         * modules/strstr (Makefile.am): Likewise.
65435         * modules/strtod (Makefile.am): Likewise.
65436         * modules/strtoimax (Makefile.am): Likewise.
65437         * modules/strtok_r (Makefile.am): Likewise.
65438         * modules/strtol (Makefile.am): Likewise.
65439         * modules/strtoll (Makefile.am): Likewise.
65440         * modules/strtoul (Makefile.am): Likewise.
65441         * modules/strtoull (Makefile.am): Likewise.
65442         * modules/strtoumax (Makefile.am): Likewise.
65443         * modules/strverscmp (Makefile.am): Likewise.
65444         * modules/sys_socket (Makefile.am): Likewise.
65445         * modules/sys_stat (Makefile.am): Likewise.
65446         * modules/sysexits (Makefile.am): Likewise.
65447         * modules/time_r (Makefile.am): Likewise.
65448         * modules/timegm (Makefile.am): Likewise.
65449         * modules/timespec (Makefile.am): Likewise.
65450         * modules/tmpfile-safer (Makefile.am): Likewise.
65451         * modules/trim (Makefile.am): Likewise.
65452         * modules/unistd-safer (Makefile.am): Likewise.
65453         * modules/unlinkdir (Makefile.am): Likewise.
65454         * modules/unlocked-io (Makefile.am): Likewise.
65455         * modules/userspec (Makefile.am): Likewise.
65456         * modules/utime (Makefile.am): Likewise.
65457         * modules/utimecmp (Makefile.am): Likewise.
65458         * modules/utimens (Makefile.am): Likewise.
65459         * modules/vasnprintf (Makefile.am): Likewise.
65460         * modules/vasprintf (Makefile.am): Likewise.
65461         * modules/vsnprintf (Makefile.am): Likewise.
65462         * modules/xalloc (Makefile.am): Likewise.
65463         * modules/xgetcwd (Makefile.am): Likewise.
65464         * modules/xnanosleep (Makefile.am): Likewise.
65465         * modules/xreadlink (Makefile.am): Likewise.
65466         * modules/xstrtod (Makefile.am): Likewise.
65467         * modules/xstrtol (Makefile.am): Likewise.
65468         * modules/xstrtold (Makefile.am): Likewise.
65469         * modules/yesno (Makefile.am): Likewise.
65470         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
65471
65472 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65473
65474         * modules/error (Makefile.am): Distribute files through
65475         EXTRA_DIST, not lib_SOURCES.
65476
65477 2006-10-12  Eric Blake  <ebb9@byu.net>
65478
65479         * modules/error (Makefile.am): Distribute files in /lib.
65480         * modules/obstack (Makefile.am): Likewise.
65481
65482 2006-10-12  Bruno Haible  <bruno@clisp.org>
65483
65484         * modules/acl (Makefile.am): Distribute all files in lib/ through
65485         EXTRA_DIST.
65486         * modules/arcfour (Makefile.am): Likewise.
65487         * modules/arctwo (Makefile.am): Likewise.
65488         * modules/argmatch (Makefile.am): Likewise.
65489         * modules/argz (Makefile.am): Likewise.
65490         * modules/atexit (Makefile.am): Likewise.
65491         * modules/backupfile (Makefile.am): Likewise.
65492         * modules/c-strtod (Makefile.am): Likewise.
65493         * modules/c-strtold (Makefile.am): Likewise.
65494         * modules/calloc (Makefile.am): Likewise.
65495         * modules/canon-host (Makefile.am): Likewise.
65496         * modules/canonicalize (Makefile.am): Likewise.
65497         * modules/chdir-long (Makefile.am): Likewise.
65498         * modules/chdir-safer (Makefile.am): Likewise.
65499         * modules/check-version (Makefile.am): Likewise.
65500         * modules/chown (Makefile.am): Likewise.
65501         * modules/cloexec (Makefile.am): Likewise.
65502         * modules/close-stream (Makefile.am): Likewise.
65503         * modules/closeout (Makefile.am): Likewise.
65504         * modules/crc (Makefile.am): Likewise.
65505         * modules/cycle-check (Makefile.am): Likewise.
65506         * modules/des (Makefile.am): Likewise.
65507         * modules/dirfd (Makefile.am): Likewise.
65508         * modules/dirname (Makefile.am): Likewise.
65509         * modules/dup2 (Makefile.am): Likewise.
65510         * modules/euidaccess (Makefile.am): Likewise.
65511         * modules/exclude (Makefile.am): Likewise.
65512         * modules/exitfail (Makefile.am): Likewise.
65513         * modules/fcntl-safer (Makefile.am): Likewise.
65514         * modules/file-type (Makefile.am): Likewise.
65515         * modules/fileblocks (Makefile.am): Likewise.
65516         * modules/filemode (Makefile.am): Likewise.
65517         * modules/filenamecat (Makefile.am): Likewise.
65518         * modules/fnmatch (Makefile.am): Likewise.
65519         * modules/fopen-safer (Makefile.am): Likewise.
65520         * modules/fpending (Makefile.am): Likewise.
65521         * modules/fprintftime (Makefile.am): Likewise.
65522         * modules/free (Makefile.am): Likewise.
65523         * modules/fsusage (Makefile.am): Likewise.
65524         * modules/ftruncate (Makefile.am): Likewise.
65525         * modules/fts (Makefile.am): Likewise.
65526         * modules/gc (Makefile.am): Likewise.
65527         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
65528         * modules/getaddrinfo (Makefile.am): Likewise.
65529         * modules/getcwd (Makefile.am): Likewise.
65530         * modules/getdelim (Makefile.am): Likewise.
65531         * modules/getdomainname (Makefile.am): Likewise.
65532         * modules/getgroups (Makefile.am): Likewise.
65533         * modules/gethostname (Makefile.am): Likewise.
65534         * modules/gethrxtime (Makefile.am): Likewise.
65535         * modules/getline (Makefile.am): Likewise.
65536         * modules/getloadavg (Makefile.am): Likewise.
65537         * modules/getlogin_r (Makefile.am): Likewise.
65538         * modules/getopt (Makefile.am): Likewise.
65539         * modules/getpass (Makefile.am): Likewise.
65540         * modules/getpass-gnu (Makefile.am): Likewise.
65541         * modules/getsubopt (Makefile.am): Likewise.
65542         * modules/gettime (Makefile.am): Likewise.
65543         * modules/gettimeofday (Makefile.am): Likewise.
65544         * modules/getugroups (Makefile.am): Likewise.
65545         * modules/getusershell (Makefile.am): Likewise.
65546         * modules/glob (Makefile.am): Likewise.
65547         * modules/group-member (Makefile.am): Likewise.
65548         * modules/hard-locale (Makefile.am): Likewise.
65549         * modules/hash (Makefile.am): Likewise.
65550         * modules/hmac-md5 (Makefile.am): Likewise.
65551         * modules/hmac-sha1 (Makefile.am): Likewise.
65552         * modules/human (Makefile.am): Likewise.
65553         * modules/idcache (Makefile.am): Likewise.
65554         * modules/imaxabs (Makefile.am): Likewise.
65555         * modules/imaxdiv (Makefile.am): Likewise.
65556         * modules/inet_ntop (Makefile.am): Likewise.
65557         * modules/inet_pton (Makefile.am): Likewise.
65558         * modules/inttostr (Makefile.am): Likewise.
65559         * modules/isapipe (Makefile.am): Likewise.
65560         * modules/lchown (Makefile.am): Likewise.
65561         * modules/long-options (Makefile.am): Likewise.
65562         * modules/lstat (Makefile.am): Likewise.
65563         * modules/malloc (Makefile.am): Likewise.
65564         * modules/mathl (Makefile.am): Likewise.
65565         * modules/mbchar (Makefile.am): Likewise.
65566         * modules/md2 (Makefile.am): Likewise.
65567         * modules/md4 (Makefile.am): Likewise.
65568         * modules/md5 (Makefile.am): Likewise.
65569         * modules/memcasecmp (Makefile.am): Likewise.
65570         * modules/memchr (Makefile.am): Likewise.
65571         * modules/memcmp (Makefile.am): Likewise.
65572         * modules/memcoll (Makefile.am): Likewise.
65573         * modules/memcpy (Makefile.am): Likewise.
65574         * modules/memmem (Makefile.am): Likewise.
65575         * modules/memmove (Makefile.am): Likewise.
65576         * modules/mempcpy (Makefile.am): Likewise.
65577         * modules/memrchr (Makefile.am): Likewise.
65578         * modules/memset (Makefile.am): Likewise.
65579         * modules/memxor (Makefile.am): Likewise.
65580         * modules/mkancesdirs (Makefile.am): Likewise.
65581         * modules/mkdir (Makefile.am): Likewise.
65582         * modules/mkdir-p (Makefile.am): Likewise.
65583         * modules/mkdtemp (Makefile.am): Likewise.
65584         * modules/mkstemp (Makefile.am): Likewise.
65585         * modules/mktime (Makefile.am): Likewise.
65586         * modules/modechange (Makefile.am): Likewise.
65587         * modules/mountlist (Makefile.am): Likewise.
65588         * modules/nanosleep (Makefile.am): Likewise.
65589         * modules/openat (Makefile.am): Likewise.
65590         * modules/pagealign_alloc (Makefile.am): Likewise.
65591         * modules/physmem (Makefile.am): Likewise.
65592         * modules/poll (Makefile.am): Likewise.
65593         * modules/posixtm (Makefile.am): Likewise.
65594         * modules/posixver (Makefile.am): Likewise.
65595         * modules/putenv (Makefile.am): Likewise.
65596         * modules/quote (Makefile.am): Likewise.
65597         * modules/quotearg (Makefile.am): Likewise.
65598         * modules/raise (Makefile.am): Likewise.
65599         * modules/read-file (Makefile.am): Likewise.
65600         * modules/readline (Makefile.am): Likewise.
65601         * modules/readlink (Makefile.am): Likewise.
65602         * modules/readtokens (Makefile.am): Likewise.
65603         * modules/readutmp (Makefile.am): Likewise.
65604         * modules/realloc (Makefile.am): Likewise.
65605         * modules/regex (Makefile.am): Likewise.
65606         * modules/rename (Makefile.am): Likewise.
65607         * modules/rename-dest-slash (Makefile.am): Likewise.
65608         * modules/rijndael (Makefile.am): Likewise.
65609         * modules/rmdir (Makefile.am): Likewise.
65610         * modules/rpmatch (Makefile.am): Likewise.
65611         * modules/safe-read (Makefile.am): Likewise.
65612         * modules/safe-write (Makefile.am): Likewise.
65613         * modules/same (Makefile.am): Likewise.
65614         * modules/save-cwd (Makefile.am): Likewise.
65615         * modules/savedir (Makefile.am): Likewise.
65616         * modules/setenv (Makefile.am): Likewise.
65617         * modules/settime (Makefile.am): Likewise.
65618         * modules/sha1 (Makefile.am): Likewise.
65619         * modules/sig2str (Makefile.am): Likewise.
65620         * modules/snprintf (Makefile.am): Likewise.
65621         * modules/stdlib-safer (Makefile.am): Likewise.
65622         * modules/stpcpy (Makefile.am): Likewise.
65623         * modules/stpncpy (Makefile.am): Likewise.
65624         * modules/strcase (Makefile.am): Likewise.
65625         * modules/strcasestr (Makefile.am): Likewise.
65626         * modules/strchrnul (Makefile.am): Likewise.
65627         * modules/strcspn (Makefile.am): Likewise.
65628         * modules/strdup (Makefile.am): Likewise.
65629         * modules/strerror (Makefile.am): Likewise.
65630         * modules/strftime (Makefile.am): Likewise.
65631         * modules/strndup (Makefile.am): Likewise.
65632         * modules/strnlen (Makefile.am): Likewise.
65633         * modules/strpbrk (Makefile.am): Likewise.
65634         * modules/strsep (Makefile.am): Likewise.
65635         * modules/strstr (Makefile.am): Likewise.
65636         * modules/strtod (Makefile.am): Likewise.
65637         * modules/strtoimax (Makefile.am): Likewise.
65638         * modules/strtok_r (Makefile.am): Likewise.
65639         * modules/strtol (Makefile.am): Likewise.
65640         * modules/strtoll (Makefile.am): Likewise.
65641         * modules/strtoul (Makefile.am): Likewise.
65642         * modules/strtoull (Makefile.am): Likewise.
65643         * modules/strtoumax (Makefile.am): Likewise.
65644         * modules/strverscmp (Makefile.am): Likewise.
65645         * modules/time_r (Makefile.am): Likewise.
65646         * modules/timegm (Makefile.am): Likewise.
65647         * modules/tmpfile-safer (Makefile.am): Likewise.
65648         * modules/unistd-safer (Makefile.am): Likewise.
65649         * modules/unlinkdir (Makefile.am): Likewise.
65650         * modules/userspec (Makefile.am): Likewise.
65651         * modules/utime (Makefile.am): Likewise.
65652         * modules/utimecmp (Makefile.am): Likewise.
65653         * modules/utimens (Makefile.am): Likewise.
65654         * modules/vasnprintf (Makefile.am): Likewise.
65655         * modules/vasprintf (Makefile.am): Likewise.
65656         * modules/vsnprintf (Makefile.am): Likewise.
65657         * modules/xalloc (Makefile.am): Likewise.
65658         * modules/xgetcwd (Makefile.am): Likewise.
65659         * modules/xnanosleep (Makefile.am): Likewise.
65660         * modules/xreadlink (Makefile.am): Likewise.
65661         * modules/xstrtod (Makefile.am): Likewise.
65662         * modules/xstrtol (Makefile.am): Likewise.
65663         * modules/xstrtold (Makefile.am): Likewise.
65664         * modules/yesno (Makefile.am): Likewise.
65665
65666 2006-10-12  Jim Meyering  <jim@meyering.net>
65667
65668         * m4/getloadavg.m4: Revert the change below.
65669
65670         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
65671         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
65672         fail with a symlink, which is what coreutils' ./bootstrap now
65673         creates by default.
65674
65675 2006-10-12  Bruno Haible  <bruno@clisp.org>
65676
65677         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
65678         mingw.
65679         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
65680         MSVC and mingw explicitly.
65681
65682 2006-10-11  Simon Josefsson  <jas@extundo.com>
65683             Bruno Haible  <bruno@clisp.org>
65684
65685         Add support for multiple gnulib-tool invocations in the scope of a
65686         single configure.ac file.
65687         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
65688         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
65689         with the same contents as the _LIBADD variable.
65690         (func_emit_initmacro_start, func_emit_initmacro_end,
65691         func_emit_initmacro_done): New functions.
65692         (func_import, func_create_testdir): Invoke them. Allow the identifiers
65693         gl_LIBOBJS and gl_LTLIBOBJS.
65694
65695 2006-10-11  Bruno Haible  <bruno@clisp.org>
65696
65697         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
65698         (func_create_testdir): Don't create po/Makefile.am, don't invoke
65699         autoreconf. Instead, invoke autopoint explicitly but move back the
65700         *.m4 files from gnulib.
65701
65702 2006-10-11  Bruno Haible  <bruno@clisp.org>
65703
65704         * gnulib-tool (func_usage): Make module names after --create-testdir
65705         optional.
65706         (func_create_testdir): If no module was specified, use nearly all
65707         modules.
65708
65709 2006-10-12  Jim Meyering  <jim@meyering.net>
65710
65711         Big performance improvement for fts-based tools that use FTS_NOSTAT.
65712         Avoid spurious inode-mismatch problems on non-POSIX file systems.
65713         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
65714         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
65715         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
65716         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
65717         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
65718         (fts_set_stat_required): New function.
65719         (fts_open): Defer the calls to fts_stat, if possible or requested.
65720         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
65721         into fts_stat itself.
65722         (fts_read): Perform any required (deferred) fts_stat call.
65723         (fts_build): Likewise, for the directory we're about to open and read.
65724         In the readdir loop, carefully decide whether each entry will require
65725         an eventual call to fts_stat, using dirent.d_type info if available.
65726         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
65727         a command line argument into this function.  Update all callers.
65728         Map a return value of FTS_DOT to FTS_D for a command line argument.
65729         * modules/fts (Depends-on): Add d-type.  Alphabetize.
65730         Thanks to Miklos Szeredi for his tenacity and for the initial
65731         bug report about "find" failing on a FUSE-based file system.
65732
65733         * lib/fts.c (fts_open): Use consistent indentation.
65734
65735 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
65736
65737         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
65738         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
65739         reported by Jim Meyering.  All uses of cache variables renamed
65740         to match Autoconf's.
65741         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
65742         the other one.
65743
65744         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
65745         Fix misspelling in diagnostic.
65746
65747 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
65748
65749         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
65750         defined.  Problem reported by Matthew Woehlke.
65751
65752         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
65753         Add support for Tandem NonStop R series.
65754         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
65755         Use new macro.
65756
65757         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
65758         (has_trailing_slash): Omit size arg; all callers changed.
65759         Omit 'inline', since it doesn't help performance and we'd
65760         need to configure it.
65761         Don't count //, ///, etc. as having a trailing slash.
65762         As a side effect, this removes a C99ism reported by Matthew Woehlke.
65763         (rpl_rename_dest_slash): On failure, use rename's errno rather
65764         than (in some cases) an incorrect or junk errno.
65765         Simplify code by removing need to compute length; this does
65766         cause it to make two passes instead of one over the file name,
65767         but it's worth it.
65768
65769         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
65770         change, since Autoconf's version may no longer be appropriate now
65771         that we are using CVS Autoconf's version.  Add support for Tandem.
65772
65773 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
65774             Bruno Haible  <bruno@clisp.org>
65775
65776         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
65777         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
65778         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
65779         gl_AC_TYPE_LONG_LONG.
65780
65781         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
65782         instead of HAVE_LONG_LONG.
65783         * lib/printf-args.c (printf_fetchargs): Likewise.
65784         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
65785         * lib/vasnprintf.c (VASNPRINTF): Likewise.
65786         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
65787         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
65788         gl_AC_TYPE_LONG_LONG.
65789
65790 2006-10-11  Bruno Haible  <bruno@clisp.org>
65791
65792         * m4/longlong.m4: Add comments.
65793         * m4/ulonglong.m4: Likewise.
65794
65795 2006-10-10  Bruno Haible  <bruno@clisp.org>
65796
65797         Make it possible to #define stpcpy, strdup to aliases.
65798         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
65799         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
65800
65801 2006-10-10  Bruno Haible  <bruno@clisp.org>
65802
65803         Make it possible to #define gcd to an alias.
65804         * lib/gcd.c: Include config.h.
65805
65806 2006-10-10  Bruno Haible  <bruno@clisp.org>
65807
65808         Make it possible to #define c_isascii to an alias.
65809         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
65810         defined. Undefine the macros before defining them, to avoid gcc
65811         warnings.
65812         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
65813         define NO_C_CTYPE_MACROS early.
65814
65815 2006-10-10  Bruno Haible  <bruno@clisp.org>
65816
65817         Make it possible to #define set_program_name to an alias.
65818         * lib/progname.c: Don't undefine set_program_name; instead, undefine
65819         ENABLE_RELOCATABLE early.
65820
65821 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
65822
65823         Port to Tandem NSK OSS, which has 64-bit signed int but at most
65824         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
65825         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
65826         More generally, don't assume that 64-bit signed int is available
65827         if unsigned int is, and vice versa.
65828         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
65829         unsigned symbols, not on their signed counterparts.
65830         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
65831         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
65832         (UINT64_C, UINTMAX_C):
65833         Likewise.
65834         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
65835         unsigned counterparts.
65836         (Have_long_long, Unsigned): New macros.
65837         (Int): Renamed from INT.
65838         (strtoimax): Use the new macros.
65839         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
65840         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
65841         * modules/inttypes (inttypes.h): Substitute
65842         HAVE_UNSIGNED_LONG_LONG_INT.
65843         * modules/stdint (stdint.h): Likewise.
65844         (Files): Add m4/ulonglong.m4.
65845
65846 2006-10-10  Bruno Haible  <bruno@clisp.org>
65847
65848         Fix a gcc -Wshadow warning.
65849         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
65850         to 'bucket'.
65851         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
65852         gl_linked_indexof_from_to): Likewise.
65853         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
65854         Likewise.
65855         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
65856         Likewise.
65857         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
65858         Reported by Eric Blake.
65859
65860 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
65861
65862         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
65863         for NetBSD.  Problem reported by Bruno Haible.
65864
65865 2006-10-09  Jim Meyering  <jim@meyering.net>
65866
65867         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
65868         Patch from Bruno Haible.
65869
65870 2006-10-09  Jim Meyering  <jim@meyering.net>
65871
65872         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
65873         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
65874         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
65875
65876 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65877
65878         Don't include <config.h> twice; this doesn't work in some cases,
65879         e.g., when config.h has "#define intmax_t long long int" and
65880         we include <config.h>, <inttypes.h>, <config.h> in that order.
65881         Problem reported by Matthew Woehlke in:
65882         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
65883         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
65884         * lib/fts-cycle.c: Don't include config.h.
65885         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
65886         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
65887         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
65888         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
65889         inttypes.h.
65890         * lib/xstrtoumax.c: Likewise.
65891         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
65892         __strtol and the like, so that this module is more like its siblings.
65893         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
65894         Remove; no longer needed now that we assume gnulib inttypes.h.
65895
65896 2006-10-08  Bruno Haible  <bruno@clisp.org>
65897
65898         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
65899         option.
65900
65901 2006-10-07  Jim Meyering  <jim@meyering.net>
65902
65903         * modules/inttypes (inttypes.h): Revert what seems to have been
65904         an inadvertent part of today's change: use "|", not "/" in the
65905         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
65906
65907 2006-10-07  Bruno Haible  <bruno@clisp.org>
65908
65909         * modules/sublist: New file.
65910
65911 2006-10-07  Bruno Haible  <bruno@clisp.org>
65912
65913         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
65914         * modules/argz (argz.h): Likewise.
65915         * modules/arpa_inet (arpa/inet.h): Likewise.
65916         * modules/byteswap (byteswap.h): Likewise.
65917         * modules/configmake (configmake.h): Likewise.
65918         * modules/fcntl (fcntl.h): Likewise.
65919         * modules/fnmatch (fnmatch.h): Likewise.
65920         * modules/getopt (getopt.h): Likewise.
65921         * modules/glob (glob.h): Likewise.
65922         * modules/inttypes (inttypes.h): Likewise.
65923         * modules/netinet_in (netinet/in.h): Likewise.
65924         * modules/poll (poll.h): Likewise.
65925         * modules/stdbool (stdbool.h): Likewise.
65926         * modules/stdint (stdint.h): Likewise.
65927         * modules/sys_select (sys/select.h): Likewise.
65928         * modules/sys_socket (sys/socket.h): Likewise.
65929         * modules/sys_stat (sys/stat.h): Likewise.
65930         * modules/sysexits (sysexits.h): Likewise.
65931         * modules/unistd (unistd.h): Likewise.
65932         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65933         Add a "DO NOT EDIT" comment to the generated file.
65934         (func_import): Likewise for gnulib-comp.m4.
65935
65936 2006-10-07  Bruno Haible  <bruno@clisp.org>
65937
65938         * lib/gl_sublist.h: New file.
65939         * lib/gl_sublist.c: New file.
65940
65941 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
65942
65943         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
65944         name (relative to the original working directory) and the file
65945         name component (relative to the temporary working directory).  All
65946         callers changed.
65947         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
65948         * lib/mkdir-p.c (make_dir_parents): Likewise.
65949         * lib/mkdir-p.h (make_dir_parents): Likewise.
65950
65951 2006-10-06  Eric Blake  <ebb9@byu.net>
65952
65953         Define several macros for use by the clean-temp module.
65954         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
65955         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
65956         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
65957
65958         * lib/clean-temp.h (close_stream_temp): New declaration.
65959         * lib/clean-temp.c (includes): Pull in headers according to what
65960         other modules are in use.
65961         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
65962
65963 2006-10-06  Bruno Haible  <bruno@clisp.org>
65964
65965         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
65966         instead of fopen, fwriteerror.
65967
65968 2006-10-06  Bruno Haible  <bruno@clisp.org>
65969
65970         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
65971         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
65972         int.
65973         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
65974         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
65975         Return an error indicator.
65976         Suggested by Eric Blake.
65977
65978 2006-10-06  Bruno Haible  <bruno@clisp.org>
65979
65980         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
65981         Reported by Eric Blake.
65982
65983 2006-10-06  Bruno Haible  <bruno@clisp.org>
65984
65985         * modules/closeout (Description): Mention stderr too.
65986
65987 2006-10-06  Bruno Haible  <bruno@clisp.org>
65988         and Paul Eggert  <eggert@cs.ucla.edu>
65989
65990         * lib/closeout.c (close_stdout): Also close stderr.
65991         * lib/closeout.h: Update comment.
65992
65993 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
65994
65995         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
65996         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
65997         * lib/dirchownmod.c: Include lchown.h.
65998         * lib/lchown.c: Don't include files that lchown.h now includes.
65999         Don't declare chown, since lchown.h now does that.
66000         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
66001         (lchown): Define to rpl_chown if lchown is declared but
66002         does not exist.  Declare using a prototype if lchown is not
66003         declared.  Add a copyright notice.
66004         * lib/mkstemp.h: Include <unistd.h>.
66005         * lib/openat.c: Include lchown.h.
66006
66007         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
66008         we now test for that separately.
66009         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
66010         rather than O_NOFOLLOW, when testing whether it's possible to
66011         avoid a race condition reliably.
66012         * lib/savewd.c (savewd_chdir): Likewise.
66013
66014         Remove macros that are no longer needed now that stdint.h is
66015         reliable.
66016         * lib/fsusage.c (UINTMAX_MAX): Remove.
66017         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
66018         * lib/utimecmp.c (SIZE_MAX): Remove.
66019
66020         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
66021
66022         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
66023         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
66024         O_NOATIME works.
66025
66026 2006-10-05  Bruno Haible  <bruno@clisp.org>
66027
66028         * lib/gl_list.h (gl_sortedlist_search_from_to,
66029         gl_sortedlist_indexof_from_to): New declarations.
66030         (gl_list_implementation): New fields sortedlist_search_from_to,
66031         sortedlist_indexof_from_to.
66032         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
66033         inline functions.
66034         * lib/gl_list.c (gl_sortedlist_search_from_to,
66035         gl_sortedlist_indexof_from_to): New functions.
66036         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
66037         function.
66038         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
66039         (gl_array_sortedlist_search_from_to): New function.
66040         (gl_array_list_implementation): Update.
66041         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
66042         function.
66043         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
66044         (gl_carray_sortedlist_search_from_to): New function.
66045         (gl_carray_list_implementation): Update.
66046         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
66047         gl_linked_sortedlist_indexof_from_to): New functions.
66048         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
66049         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
66050         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
66051         gl_tree_sortedlist_indexof_from_to): New functions.
66052         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
66053         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
66054         Update.
66055         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
66056         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
66057         Update.
66058
66059 2006-10-05  Bruno Haible  <bruno@clisp.org>
66060
66061         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
66062         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
66063         (struct gl_list_implementation): Add fields search_from_to,
66064         indexof_from_to. Remove fields search, indexof.
66065         (gl_list_search): Use the search_from_to method.
66066         (gl_list_search_from, gl_list_search_from_to): New functions.
66067         (gl_list_indexof): Use the indexof_from_to method.
66068         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
66069         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
66070         (gl_list_search_from, gl_list_search_from_to): New functions.
66071         (gl_list_indexof): Use the indexof_from_to method.
66072         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
66073         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
66074         gl_array_indexof. Add start_index, end_index arguments.
66075         (gl_array_search_from_to): Renamed from gl_array_search. Add
66076         start_index, end_index arguments.
66077         (gl_array_remove, gl_array_list_implementation): Update.
66078         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
66079         gl_carray_indexof. Add start_index, end_index arguments.
66080         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
66081         start_index, end_index arguments.
66082         (gl_carray_remove, gl_carray_list_implementation): Update.
66083         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
66084         gl_linked_search. Add start_index, end_index arguments.
66085         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
66086         start_index, end_index arguments.
66087         (gl_linked_remove): Update.
66088         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
66089         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
66090         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
66091         field to 'size_t'.
66092         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
66093         gl_tree_search. Add start_index, end_index arguments.
66094         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
66095         start_index, end_index arguments.
66096         (gl_tree_remove): Update.
66097         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
66098         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
66099         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
66100         function.
66101         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
66102         gl_tree_search. Add start_index, end_index arguments.
66103         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
66104         start_index, end_index arguments.
66105         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
66106         Update.
66107         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
66108
66109 2006-10-05  Bruno Haible  <bruno@clisp.org>
66110
66111         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
66112
66113         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
66114         fwriteerror_temp): New declarations.
66115         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
66116         (descriptors): New variable.
66117         (cleanup): First, close the descriptors.
66118         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
66119         fclose_temp, fwriteerror_temp): New functions.
66120
66121 2006-10-04  Jim Meyering  <jim@meyering.net>
66122
66123         * lib/fts.c (fts_open): Tiny comment change.
66124
66125 2006-10-04  Bruno Haible  <bruno@clisp.org>
66126
66127         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
66128         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
66129         gl_LOCK_BODY.
66130         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
66131         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
66132         gl_LOCK_EARLY_BODY.
66133         (gl_LOCK): Require gl_LOCK_BODY.
66134
66135 2006-10-04  Bruno Haible  <bruno@clisp.org>
66136
66137         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
66138         (gl_oset_search_atleast): New declaration.
66139         (struct gl_oset_implementation): Add field 'search_atleast'.
66140         (gl_oset_search_atleast): New inline function.
66141         * lib/gl_oset.c (gl_oset_search_atleast): New function.
66142         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
66143         (gl_array_oset_implementation): Update.
66144         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
66145         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
66146         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
66147
66148 2006-10-04  Bruno Haible  <bruno@clisp.org>
66149
66150         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
66151
66152 2006-10-03  Bruno Haible  <bruno@clisp.org>
66153
66154         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
66155         from gl_avltreehash_list_implementation.
66156
66157 2006-10-03  Bruno Haible  <bruno@clisp.org>
66158
66159         * lib/gl_oset.c (gl_oset_add): Fix return type.
66160
66161 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
66162
66163         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
66164
66165 2006-10-02  Eric Blake  <ebb9@byu.net>
66166
66167         * modules/strnlen (Depends-on): Add extensions.
66168
66169 2006-10-02  Eric Blake  <ebb9@byu.net>
66170
66171         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
66172         definition in 2.60+.
66173
66174 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
66175
66176         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
66177         checks.
66178
66179 2006-10-02  Bruno Haible  <bruno@clisp.org>
66180
66181         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
66182         to the AUTOMAKE_OPTIONS.
66183         Reported by Jim Meyering.
66184
66185 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
66186
66187         Work around bug in Solaris 10 /proc file system:
66188         /proc/self/fd/NNN/.. isn't the parent directory of
66189         the directory whose file descriptor is NNN.  This needs to
66190         be worked around at run time, not compile time, since a
66191         program might be built on Solaris 8, where things work, and
66192         run on Solaris 10.
66193         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
66194         to use the following interface instead:
66195         (OPENAT_BUFFER_SIZE): New macro.
66196         (openat_proc_name): New function.
66197         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
66198         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
66199         Likewise.
66200         * lib/openat-proc.c: New file.
66201         * modules/openat (Files): Add lib/openat-proc.c.
66202         (Depends-on): Add same-inode, stdbool.
66203         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
66204
66205 2006-09-29  Bruno Haible  <bruno@clisp.org>
66206
66207         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
66208         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
66209         argument. Set stdout_closed before testing for ferror, not after.
66210         (fwriteerror, fwriteerror_no_ebadf): New functions.
66211
66212 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66213
66214         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
66215
66216 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
66217
66218         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
66219         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
66220
66221 2006-09-28  Jim Meyering  <jim@meyering.net>
66222
66223         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
66224         Include <unistd.h>.
66225
66226 2006-09-28  Bruno Haible  <bruno@clisp.org>
66227
66228         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
66229         * modules/linkedhash-list (Depends-on): Likewise.
66230         * modules/rbtreehash-list (Depends-on): Likewise.
66231
66232 2006-09-28  Bruno Haible  <bruno@clisp.org>
66233
66234         * lib/strndup.h: Simplify the redefinition of strndup.
66235         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
66236         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
66237
66238 2006-09-28  Bruno Haible  <bruno@clisp.org>
66239
66240         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
66241         * lib/gl_linkedhash_list.c: Likewise.
66242         * lib/gl_rbtreehash_list.c: Likewise.
66243
66244 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
66245
66246         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
66247         getaddrinfo.
66248
66249         * lib/__fpending.h: Don't include <stdio_ext.h> unless
66250         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
66251         it causes <stdio_ext.h> to cause a compile-time error.
66252         Problem reported by Nelson H. F. Beebe.
66253         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
66254         of HAVE_DECL___PENDING.
66255
66256         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
66257         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
66258         declaration.
66259
66260 2006-09-27  Jim Meyering  <jim@meyering.net>
66261
66262         This file could end up with a definition for a function
66263         named __strndup, rather than rpl_strndup on a system with
66264         incomplete weak_alias support.
66265         * lib/strndup.c (strndup): Rename from __strndup.
66266         Remove #defines that used to map __strndup to strndup.
66267         Don't use K&R prototypes.
66268         Remove LIBC-related code, since this file is not sync'd with glibc.
66269         * lib/strndup.h: Revamp, accordingly.
66270         * m4/strndup.m4: Modernize.
66271
66272 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
66273
66274         * modules/savewd (Depends-on): Add 'raise'.
66275         * lib/savewd.c: Include <signal.h>, for 'raise'.
66276
66277 2006-09-26  Jim Meyering  <jim@meyering.net>
66278
66279         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
66280         when we detect Darwin 8.7.0's acl_get_file bug.
66281         Rearrange to perform the new (below) run-test while $LIBS
66282         contains any acl-related library.  Set USE_ACL at the end.
66283         (gl_ACL_GET_FILE): New function.
66284
66285 2006-09-26  Eric Blake  <ebb9@byu.net>
66286
66287         * lib/verror.c: Include <config.h> unconditionally.
66288
66289 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
66290
66291         * modules/clock-time (Maintainer): Add self.
66292         * modules/getlogin_r (Depends-on): Add extensions.
66293
66294 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66295
66296         * modules/clock-time: New module.
66297         * modules/nanosleep (Depends-on): Add clock-time.
66298         * modules/gethrxtime (Depends-on): Likewise.
66299         * modules/gettime (Depends-on): Likewise.
66300         * modules/settime (Depends-on): Likewise.
66301
66302         * modules/fts-lgpl: Depend on openat.
66303         * modules/mkancesdirs: Depend on savewd.
66304         * modules/mkdir-p: Likewise.
66305
66306 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66307
66308         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
66309
66310         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
66311         `gl_have_arbitrary_file_name_length_limit' to
66312         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
66313         actually works between configure runs.
66314
66315 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66316             Bruno Haible  <bruno@clisp.org>
66317
66318         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
66319
66320 2006-09-25  Jim Meyering  <jim@meyering.net>
66321
66322         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
66323         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
66324
66325 2006-09-25  Eric Blake  <ebb9@byu.net>
66326
66327         * gnulib-tool (func_import, func_create_testdir): Fix typos in
66328         exec's in 2006-09-18 patch when shuffling fds.
66329
66330 2006-09-25  Bruno Haible  <bruno@clisp.org>
66331
66332         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
66333         Reported by Jim Meyering.
66334
66335 2006-09-24  Jim Meyering  <jim@meyering.net>
66336
66337         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
66338         compare a pointer against a literal "0".  That caused failures with
66339         at least HP-UX's hpcc.
66340
66341 2006-09-22  Simon Josefsson  <jas@extundo.com>
66342
66343         * modules/gc-sha1:
66344         * modules/gc-md4:
66345         * modules/gc-hmac-sha1:
66346         * modules/gc-hmac-md5:
66347         * modules/gc-des:
66348         * modules/gc-arcfour: Distribute more files.
66349
66350 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66351
66352         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
66353         (gl_linked_iterator_from_to): Initialize struct completely.
66354         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
66355         (gl_tree_iterator_from_to): Likewise
66356         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
66357         * lib/gl_array_list.c [lint] (gl_array_iterator)
66358         (gl_array_iterator_from_to): Likewise.
66359         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
66360         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
66361         (gl_carray_iterator_from_to): Likewise.
66362
66363         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
66364         * lib/md4.c (md4_process_block): Remove unused variable.
66365         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
66366         parentheses for clarity.
66367
66368 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66369
66370         * modules/bison-i18n (Depends-on): Add gettext.
66371
66372 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66373
66374         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
66375         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
66376         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
66377         also add missing comma that caused broken test.
66378         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
66379         stdlib.h, for `abort'.
66380         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
66381         variables.
66382         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
66383         include unistd.h if present, for `rmdir'.
66384         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
66385         variables.
66386         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
66387         in the process include standard headers for prototypes.
66388         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
66389         gets declared on GNU/Linux.
66390         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
66391         unistd.h, for `rmdir'.
66392         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
66393
66394         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
66395         always true.
66396         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
66397
66398         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
66399
66400 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66401
66402         * gnulib-tool (func_version): Create output all at once.  This
66403         may help avoid triggering unnecessary SIGPIPEs, and at any
66404         rate it doesn't hurt.
66405
66406 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66407             Bruno Haible  <bruno@clisp.org>
66408
66409         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
66410         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66411         * m4/signed.m4 (bh_C_SIGNED): Likewise.
66412
66413         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
66414         (gl_FUNC_VASPRINTF): Invoke it.
66415
66416 2006-09-22  Bruno Haible  <bruno@clisp.org>
66417
66418         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
66419         getloadavg.c as first argument.
66420
66421 2006-09-22  Bruno Haible  <bruno@clisp.org>
66422
66423         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
66424         at the beginning of the gl_INIT macro.
66425         * modules/getloadavg (configure.ac): Pass $gl_source_base to
66426         gl_GETLOADAVG.
66427
66428 2006-09-22  Bruno Haible  <bruno@clisp.org>
66429
66430         * gnulib-tool (func_create_megatestdir): Don't include the config-h
66431         module.
66432         Suggested by Ralf Wildenhues.
66433
66434 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
66435
66436         Import this patch from libc:
66437
66438         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
66439
66440         * lib/regex_internal.c (re_string_reconstruct): Handle
66441         offset < pstr->valid_raw_len && pstr->offsets_needed case.
66442         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
66443         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
66444         re_string_context_at.
66445
66446         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
66447         now requires it.
66448         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
66449         gl_REGEX now does it for us.
66450         (gl_REGEX): Add test taken from
66451         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
66452
66453         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
66454         Check that large offsets work.  Modernize Autoconf usages.
66455         Prefer "yes" to mean a good thing rather than a bad.
66456         Don't put "#define mkstemp" in config.h, as this might interfere
66457         with standard system headers that "#define mkstemp mkstemp64".
66458
66459         * modules/mkstemp (Depends-on): Add extensions, so that
66460         mkstemp is visible on some platforms.
66461         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
66462         (Include): Change to "mkstemp.h" from <stdlib.h>.
66463         (Files): Add mkstemp.h.
66464
66465         * lib/mkstemp.h: New file, since some standard headers
66466         #define mkstemp.
66467         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
66468         Include "mkstemp.h".
66469         Make the _LIBC code resemble glibc original more,
66470         e.g., use K&R style.
66471         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
66472         (mkstemp): Remove, since mkstemp.h does this for us.
66473         * lib/stdlib--.h: Include mkstemp.h.
66474
66475         Import this patch from libc:
66476
66477         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
66478
66479         * lib/tempname.c (__gen_tempname): Change attempts_min
66480         into a macro.  Use preprocessor to decide how to initialize
66481         attempts [Coverity CID 67].
66482
66483 2006-09-20  Bruno Haible  <bruno@clisp.org>
66484
66485         * lib/mkdtemp.c: Import from libc.
66486         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
66487                 * sysdeps/posix/tempname.c (__gen_tempname): Change
66488                 attempts_min into a macro.  Use preprocessor to decide how to
66489                 initialize attempts [Coverity CID 67].
66490         2001-11-27  Paul Eggert  <eggert@twinsun.com>
66491                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
66492                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
66493
66494 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66495
66496         * gnulib-tool (func_exit): New function, to allow to pass the
66497         exit status portably through the trap.  Use everywhere.
66498         (--help, --version): Signal a write error.
66499         (trap): catch SIGPIPE, for write errors.
66500         Exit at the end of the trap, with the correct exit status.
66501
66502 2006-09-19  Karl Berry  <karl@gnu.org>
66503
66504         * doc/gnulib.texi: note about the license texinfo files.
66505
66506 2006-09-19  Eric Blake  <ebb9@byu.net>
66507
66508         * gnulib-tool: Avoid space-tab.
66509
66510 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
66511
66512         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
66513         that prevented coreutils 6.1 from building.  Problem reported
66514         by Petter Reinholdtsen.
66515
66516 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
66517
66518         * gnulib-tool (avoidlist): Fix typo that broke options like
66519         --avoid=lock that are used by coreutils bootstrap.
66520
66521 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
66522
66523         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
66524         more systematically.
66525
66526 2006-09-18  Jim Meyering  <jim@meyering.net>
66527
66528         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
66529
66530 2006-09-18  Bruno Haible  <bruno@clisp.org>
66531
66532         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
66533
66534 2006-09-18  Bruno Haible  <bruno@clisp.org>
66535
66536         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
66537         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
66538         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
66539         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
66540         * m4/gettext.m4: Require autoconf >= 2.52.
66541         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
66542         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
66543         of gl_cv_header_inttypes_h.
66544
66545 2006-09-18  Bruno Haible  <bruno@clisp.org>
66546
66547         * lib/javaversion.c: Include configmake.h.
66548
66549 2006-09-18  Bruno Haible  <bruno@clisp.org>
66550
66551         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
66552         avoid that the while loops be executed in a subshell.
66553
66554 2006-09-18  Bruno Haible  <bruno@clisp.org>
66555
66556         * MODULES.html.sh (func_module): Break long lines.
66557         Suggested by Bruce Korb <bkorb@gnu.org>.
66558
66559 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66560
66561         Speed up by a factor of 1.12.
66562         * gnulib-tool (nl): New variable.
66563         (func_import): Rewrite include directive extraction to only read each
66564         directive once.
66565
66566 2006-09-17  Bruno Haible  <bruno@clisp.org>
66567
66568         * modules/javaversion (Makefile.am): Remove DEFS setting.
66569         (Depends-on): Add configmake, for PKGDATADIR definition.
66570
66571 2006-09-17  Bruno Haible  <bruno@clisp.org>
66572
66573         * gnulib-tool (func_create_testdir): Rewrite all files at once.
66574
66575 2006-09-17  Bruno Haible  <bruno@clisp.org>
66576
66577         * gnulib-tool (func_append): New function, stolen from libtool.m4.
66578         (func_modules_transitive_closure, func_modules_add_dummy,
66579         func_modules_to_filelist, func_import, func_create_testdir,
66580         func_create_megatestdir, ...): Use it wherever possible.
66581         Suggested by Ralf Wildenhues.
66582
66583 2006-09-16  Karl Berry  <karl@gnu.org>
66584
66585         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
66586         to avoid sectioning errors.
66587         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
66588         [ifinfo]: blank line after @center-ed titles.
66589         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
66590         Spell FSF address consistently with others.
66591         (These changes approved by rms.)
66592
66593 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66594
66595         Speed up by a factor of 1.61.
66596         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
66597         already checked module names again.
66598
66599 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66600
66601         Speed up by a factor of 1.13.
66602         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
66603         for new_files, and the input to func_add_or_update.
66604
66605 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66606
66607         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
66608         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
66609
66610 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66611
66612         * modules/mkancesdirs (Depends-on): Add fcntl.
66613         * modules/savewd: New file.
66614         * MODULES.html.sh (File system functions): Add savewd.
66615
66616         * modules/configmake (Makefile.am): Add support for the
66617         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
66618
66619 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66620
66621         * m4/savewd.m4: New file.
66622
66623 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
66624
66625         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
66626         (dirchownmod): New arg FD.  All callers changed.
66627         Use FD rather than opening the directory ourself, as opening is
66628         now the caller's responsibility.
66629         * lib/dirchownmod.h: Likewise.
66630         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
66631         hosts that require <sys/types.h> before <sys/stat.h>.  Include
66632         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
66633         (test_dir): Remove.
66634         (mkancesdirs): Return length of prefix of FILE that has already
66635         been made, or -2 if there is a child doing the work.  Redo
66636         algorithm so that it is O(N) rather than O(N**2).  Optimize away
66637         ".", and treat ".." specially since it might stray back into
66638         already-created areas.  Use a subprocess if necessary.  New arg
66639         WD; all users changed.  MAKE_DIR function should now return 1
66640         if it creates a directory that is not readable.  Return -2 if
66641         a child process is spun off.
66642         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
66643         Adjust signature to match code.
66644         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
66645         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
66646         all users changed.
66647         * lib/savewd.c, lib/savewd.h: New files.
66648
66649 2006-09-15  Jim Meyering  <jim@meyering.net>
66650
66651         * modules/rename-dest-slash: New module.
66652         * MODULES.html.sh (posix_compat): Add it here.
66653
66654         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
66655
66656 2006-09-15  Jim Meyering  <jim@meyering.net>
66657
66658         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
66659         file.
66660
66661         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
66662
66663 2006-09-15  Jim Meyering  <jim@meyering.net>
66664
66665         * lib/rename-dest-slash.c (has_trailing_slash): Use
66666         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
66667         (rpl_rename_dest_slash): Perform the cheaper trailing slash
66668         test before testing whether SRC is a directory.
66669         Suggestions from Bruno Haible.
66670
66671         Avoid a warning about an unused variable.
66672         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
66673         into the #ifdef block where it's used.
66674
66675         * lib/rename-dest-slash.c: New file.
66676
66677 2006-09-14  Bruno Haible  <bruno@clisp.org>
66678
66679         * lib/allocsa.c: Include <config.h> unconditionally.
66680         * lib/asnprintf.c: Likewise.
66681         * lib/asprintf.c: Likewise.
66682         * lib/c-strcasecmp.c: Likewise.
66683         * lib/c-strcasestr.c: Likewise.
66684         * lib/c-strncasecmp.c: Likewise.
66685         * lib/c-strstr.c: Likewise.
66686         * lib/classpath.c: Likewise.
66687         * lib/clean-temp.c: Likewise.
66688         * lib/concatpath.c: Likewise.
66689         * lib/copy-file.c: Likewise.
66690         * lib/csharpcomp.c: Likewise.
66691         * lib/csharpexec.c: Likewise.
66692         * lib/execute.c: Likewise.
66693         * lib/fatal-signal.c: Likewise.
66694         * lib/findprog.c: Likewise.
66695         * lib/fwriteerror.c: Likewise.
66696         * lib/gl_array_list.c: Likewise.
66697         * lib/gl_array_oset.c: Likewise.
66698         * lib/gl_avltree_list.c: Likewise.
66699         * lib/gl_avltree_oset.c: Likewise.
66700         * lib/gl_avltreehash_list.c: Likewise.
66701         * lib/gl_carray_list.c: Likewise.
66702         * lib/gl_linked_list.c: Likewise.
66703         * lib/gl_linkedhash_list.c: Likewise.
66704         * lib/gl_list.c: Likewise.
66705         * lib/gl_oset.c: Likewise.
66706         * lib/gl_rbtree_list.c: Likewise.
66707         * lib/gl_rbtree_oset.c: Likewise.
66708         * lib/gl_rbtreehash_list.c: Likewise.
66709         * lib/imaxabs.c: Likewise.
66710         * lib/imaxdiv.c: Likewise.
66711         * lib/javacomp.c: Likewise.
66712         * lib/javaexec.c: Likewise.
66713         * lib/javaversion.c: Likewise.
66714         * lib/linebreak.c: Likewise.
66715         * lib/localcharset.c: Likewise.
66716         * lib/lock.c: Likewise.
66717         * lib/mbchar.c: Likewise.
66718         * lib/mbswidth.c: Likewise.
66719         * lib/mkdtemp.c: Likewise.
66720         * lib/pipe.c: Likewise.
66721         * lib/printf-args.c: Likewise.
66722         * lib/printf-parse.c: Likewise.
66723         * lib/progname.c: Likewise.
66724         * lib/progreloc.c: Likewise.
66725         * lib/readlink.c: Likewise.
66726         * lib/sh-quote.c: Likewise.
66727         * lib/stpcpy.c: Likewise.
66728         * lib/stpncpy.c: Likewise.
66729         * lib/strcasecmp.c: Likewise.
66730         * lib/strcasestr.c: Likewise.
66731         * lib/strcspn.c: Likewise.
66732         * lib/striconv.c: Likewise.
66733         * lib/strncasecmp.c: Likewise.
66734         * lib/strnlen1.c: Likewise.
66735         * lib/strstr.c: Likewise.
66736         * lib/strtok_r.c: Likewise.
66737         * lib/tls.c: Likewise.
66738         * lib/tmpdir.c: Likewise.
66739         * lib/unicodeio.c: Likewise.
66740         * lib/unsetenv.c: Likewise.
66741         * lib/vasnprintf.c: Likewise.
66742         * lib/vasprintf.c: Likewise.
66743         * lib/wait-process.c: Likewise.
66744         * lib/xallocsa.c: Likewise.
66745         * lib/xsetenv.c: Likewise.
66746         * lib/xstriconv.c: Likewise.
66747
66748 2006-09-13  Simon Josefsson  <jas@extundo.com>
66749
66750         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
66751         that internally, suggested by Ralf Wildenhues
66752         <Ralf.Wildenhues@gmx.de>.
66753
66754 2006-09-13  Simon Josefsson  <jas@extundo.com>
66755
66756         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
66757         @LIBOBJS@.
66758         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66759
66760 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
66761
66762         * lib/_fpending.c: Include <config.h> unconditionally, since we no
66763         longer worry about uses that don't define HAVE_CONFIG_H.
66764         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
66765         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
66766         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
66767         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
66768         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
66769         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
66770         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
66771         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
66772         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
66773         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
66774         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
66775         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
66776         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
66777         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
66778         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
66779         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
66780         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
66781         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
66782         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
66783         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
66784         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
66785         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
66786         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
66787         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
66788         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
66789         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
66790         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
66791         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
66792         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
66793         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
66794         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
66795         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
66796         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
66797         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
66798         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
66799         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
66800         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
66801         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
66802         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
66803         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
66804         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
66805         Likewise.
66806
66807 2006-09-13  Eric Blake  <ebb9@byu.net>
66808
66809         * lib/getopt.c: Fix typo in last commit.
66810
66811 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66812
66813         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
66814         dgettext.
66815
66816 2006-09-12  Jim Meyering  <jim@meyering.net>
66817
66818         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
66819         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
66820         Reported by Nelson H. F. Beebe.
66821
66822 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66823
66824         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
66825         program_invocation_name and program_invocation_short_name are
66826         initialized.
66827         * lib/argp-namefrob.h: Move declarations of program_invocation_name
66828         and program_invocation_short_name to argp.h, so they are visible
66829         to user programs.
66830         * lib/argp.h: Likewise
66831
66832 2006-09-10  Bruno Haible  <bruno@clisp.org>
66833
66834         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
66835         m4/inttypes_h.m4, m4/uintmax_t.m4.
66836
66837 2006-09-10  Bruno Haible  <bruno@clisp.org>
66838
66839         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
66840         gl_AC_TYPE_UINTMAX_T.
66841
66842 2006-09-10  Bruno Haible  <bruno@clisp.org>
66843
66844         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
66845
66846 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66847
66848         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
66849         convention.  Text proposed by Bruno Haible.
66850         (struct argp_option): Document the use of N_() wrappers.
66851
66852         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
66853         '\v', and translate the two parts separately, instead of feeding
66854         the whole string to gettext.  This allows to exclude
66855         '\v' from the strings visible to the translator by writing doc
66856         strings as N_("..") "\v" N_("..").
66857
66858 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
66859
66860         * config/srclist.txt: Undo latest change; the bug was fixed.
66861
66862 2006-09-09  Bruno Haible  <bruno@clisp.org>
66863
66864         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
66865         assignments if building a library without libtool.
66866         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
66867         in func_emit_lib_Makefile_am.
66868         (func_import): When building a static library libfoo.a, arrange to
66869         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
66870         (func_create_testdir): Likewise.
66871         * modules/gc (configure.ac, Makefile.am): If building statically,
66872         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
66873         * modules/iconvme (configure.ac, Makefile.am): Likewise.
66874         * modules/striconv (configure.ac, Makefile.am): Likewise.
66875         Based on a suggestion by Ralf Wildenhues.
66876
66877 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66878
66879         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
66880         Check for unistd.h too, since Autoconf doesn't assume POSIX.
66881         Also:
66882
66883         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66884         Add year_2050_test to catch glibc bug 2821
66885         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
66886
66887         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66888         Prefer #ifdef to #if.
66889
66890         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
66891         Return from 'main' instead of calling 'exit'.
66892
66893 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66894
66895         * lib/mktime.c (guess_time_tm): Fix bug where mktime
66896         returned the maximum time_t value rather than (time_t) -1.
66897         Problem originally reported by William Bardwell
66898         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
66899
66900         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
66901         Moved to here ...
66902         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
66903         ... from here.
66904
66905 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66906
66907         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
66908         2821 is fixed.
66909
66910 2006-09-08  Jim Meyering  <jim@meyering.net>
66911
66912         Don't make generated files read-only.  That would bother too many
66913         people.  However, do retain the ability to work when targets are
66914         read-only: remove the destination and temporary files before writing
66915         them (when generated via sed or echo), or by using the -f option for
66916         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
66917         * modules/alloca-opt, modules/argz, modules/arpa_inet:
66918         * modules/byteswap, modules/configmake, modules/fcntl:
66919         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
66920         * modules/localcharset, modules/netinet_in, modules/poll:
66921         * modules/stdbool, modules/stdint, modules/sys_select:
66922         * modules/sys_socket, modules/sys_stat, modules/sysexits:
66923
66924 2006-09-08  Jim Meyering  <jim@meyering.net>
66925
66926         Avoid new build failure on FreeBSD 6.0.
66927         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
66928         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
66929         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
66930
66931 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66932
66933         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
66934
66935 2006-09-07  Jim Meyering  <jim@meyering.net>
66936
66937         Fix global typo in last change: use chmod u-w, not chmod u-x.
66938         Spotted by Paul Eggert and Bruce Korb.
66939         * modules/alloca-opt, modules/argz, modules/arpa_inet:
66940         * modules/byteswap, modules/configmake, modules/fcntl:
66941         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
66942         * modules/localcharset, modules/netinet_in, modules/poll:
66943         * modules/stdbool, modules/stdint, modules/sys_select:
66944         * modules/sys_socket, modules/sys_stat, modules/sysexits:
66945
66946 2006-09-06  Jim Meyering  <jim@meyering.net>
66947
66948         Make generated files be read-only.
66949         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
66950         Ensure that each generated file is now read-only.
66951         * modules/argz: Likewise.
66952         * modules/arpa_inet: Likewise.
66953         * modules/byteswap: Likewise.
66954         * modules/configmake: Likewise.
66955         * modules/fcntl: Likewise.
66956         * modules/fnmatch: Likewise.
66957         * modules/getopt: Likewise.
66958         * modules/glob: Likewise.
66959         * modules/inttypes: Likewise.
66960         * modules/netinet_in: Likewise.
66961         * modules/poll: Likewise.
66962         * modules/stdbool: Likewise.
66963         * modules/stdint: Likewise.
66964         * modules/sys_select: Likewise.
66965         * modules/sys_socket: Likewise.
66966         * modules/sys_stat: Likewise.
66967         * modules/sysexits: Likewise.
66968         * modules/localcharset: Same as above, but continue using temporary
66969         file named "t-$@" (why different?) rather than the "$@-t" used
66970         everywhere else.
66971
66972         * modules/sysexits (Makefile.am): Replace literal occurrences
66973         of "sysexit.h" more readable, and more consistent, "$@".
66974
66975 2006-09-06  Bruno Haible  <bruno@clisp.org>
66976
66977         * modules/striconv: New file.
66978         * modules/xstriconv: New file.
66979         * MODULES.html.sh (Internationalization functions): Add striconv,
66980         xstriconv.
66981
66982 2006-09-06  Bruno Haible  <bruno@clisp.org>
66983
66984         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
66985         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
66986         not using libtool correctly.
66987
66988 2006-09-06  Bruno Haible  <bruno@clisp.org>
66989
66990         * lib/striconv.h: New file.
66991         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
66992         iconvstring.c.
66993         * lib/xstriconv.h: New file.
66994         * lib/xstriconv.c: New file.
66995
66996 2006-09-06  Bruno Haible  <bruno@clisp.org>
66997
66998         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66999         lib_..._LDFLAGS.
67000
67001 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67002
67003         * lib/argz_.h: Sync from Libtool.
67004
67005         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
67006                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
67007
67008         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
67009
67010 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
67011
67012         * modules/trim: New file.
67013
67014 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
67015
67016         * lib/trim.h: New file.
67017         * lib/trim.c: New file.
67018
67019 2006-09-05  Bruno Haible  <bruno@clisp.org>
67020
67021         * MODULES.html.sh (String handling): Add trim.
67022
67023 2006-09-04  Karl Berry  <karl@gnu.org>
67024
67025         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
67026         until next release.
67027
67028 2006-09-03  Bruno Haible  <bruno@clisp.org>
67029
67030         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
67031         correctly.
67032
67033 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67034
67035         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
67036         not gl_GETLOADAVG.  Omit unneeded semicolons.
67037         Problems reported by Ralf Wildenhues in
67038         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
67039         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
67040         at the end, which is the usual gnulib style.
67041
67042         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
67043         of doing all the work ourselves.
67044         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
67045         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
67046
67047 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67048
67049         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
67050         Problem reported by Ralf Wildenhues in
67051         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
67052
67053         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
67054         HAVE_STRUCT_STATFS_F_FSTYPENAME.
67055
67056 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
67057
67058         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
67059         yesterday's patch by changing test -n to test -z.
67060
67061 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67062
67063         * modules/getloadavg (Files): Add m4/getloadavg.m4.
67064         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
67065         the former is now obsolescent.
67066
67067         * modules/chdir-long (Depends-on): Add fcntl.
67068
67069 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67070
67071         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
67072         obsolescent, and programs should use gnulib instead.
67073         * m4/getloadavg.m4: New file, with contents taken from Autoconf
67074         but with prefixes changed.
67075
67076 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
67077
67078         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
67079         or stdbool.h, because they might not exist while configuring.
67080
67081         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
67082         Don't include unistd.h or limits.h; not needed, since chdir-long.h
67083         does that for us.
67084         (O_DIRECTORY): Remove.
67085
67086 2006-08-31  Eric Blake  <ebb9@byu.net>
67087
67088         * gnulib-tool: Don't let emacs change spaces to TAB.
67089
67090 2006-08-31  Bruno Haible  <bruno@clisp.org>
67091
67092         * gnulib-tool: When calling func_import more than once, do it in a
67093         subshell.
67094         Reported by Eric Blake <ebb9@byu.net>.
67095
67096 2006-08-31  Bruno Haible  <bruno@clisp.org>
67097
67098         * gnulib-tool (nl): Remove variable.
67099         (sed_transform_lib_file): Use more robust test for config-h module.
67100         (func_import): Fix typo in 2006-08-25 patch.
67101
67102 2006-08-31  Bruno Haible  <bruno@clisp.org>
67103
67104         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
67105         specified, augment Makefile.am variables instead of assigning them.
67106
67107 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67108
67109         Work around a bug in both the Linux and SunOS 64-bit kernels:
67110         nanosleep mishandles sleeps for longer than 2**31 seconds.
67111         Problem reported by Frank v Waveren in
67112         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
67113         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
67114         Check for nanosleep bug.
67115         (LIB_NANOSLEEP): Append clock_gettime library if needed.
67116
67117 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67118
67119         Work around a bug in both the Linux and SunOS 64-bit kernels:
67120         nanosleep mishandles sleeps for longer than 2**31 seconds.
67121         Problem reported by Frank v Waveren in
67122         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
67123         * lib/nanosleep.c (BILLION): New constant.
67124         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
67125         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
67126         implementation.
67127
67128 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67129
67130         * modules/nanosleep (Depends-on): Add gettime.
67131
67132 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
67133         and Simon Josefsson  <jas@extundo.com>
67134         and Oskar Liljeblad  <oskar@osk.mine.nu>
67135
67136         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
67137         * gnulib-tool (func_import): New license type 'unmodifiable license
67138         text'.
67139         * modules/fdl: Use it.  Longer description.
67140         * module/gpl, module/lgpl: New files.
67141
67142 2006-08-30  Jim Meyering  <jim@meyering.net>
67143
67144         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
67145         shadowing the parameter.
67146
67147 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67148
67149         Sync from Libtool:
67150
67151         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67152
67153         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
67154         sharing with gnulib.  Report by Eric Blake.
67155
67156 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67157
67158         * modules/isapipe: New file.
67159         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
67160
67161 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67162
67163         * modules/configmake (Makefile.am): Add a comment, and omit
67164         the CONFIGMAKE_ prefix from generated macro names.  Suggested
67165         by Bruno Haible.
67166
67167 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67168
67169         * m4/isapipe.m4: New file.
67170
67171 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
67172
67173         * lib/isapipe.c, lib/isapipe.h: New files.
67174
67175 2006-08-29  Jim Meyering  <jim@meyering.net>
67176
67177         * modules/configmake (Makefile.am): Make configmake.h depend on
67178         Makefile.  Otherwise, a stale configmake.h could hang around.
67179
67180 2006-08-29  Eric Blake  <ebb9@byu.net>
67181
67182         * lib/error.c (error_at_line, print_errno_message): Match libc, after
67183         resolution of upstream bug 3044.
67184
67185 2006-08-29  Bruno Haible  <bruno@clisp.org>
67186
67187         * modules/localcharset (Depends-on): Add configmake.
67188         (Makefile.am): Remove setting of LIBDIR through DEFS.
67189
67190 2006-08-29  Bruno Haible  <bruno@clisp.org>
67191
67192         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
67193         defined.
67194
67195 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67196
67197         * modules/fcntl: New file.
67198         * modules/chdir-safer (Depends-on): Add fcntl.
67199         * modules/fts: Likewise.
67200         * modules/mkdir-p: Likewise.
67201
67202         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
67203         This undoes the most recent change, since we're now addressing the
67204         problem in a different way.
67205
67206         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
67207         into output, since the output might be called Makefile.am even
67208         if $makefile_name is something different.
67209         (func_import): Use $makefile_am rather than
67210         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
67211         empty.
67212
67213         * modules/inttypes (Files): Add m4/inttypes-h.m4.
67214
67215 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67216
67217         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
67218         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
67219         recent change to stdint.m4, since we're now addressing the problem in a
67220         different way.
67221
67222 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67223
67224         * m4/fcntl_h.m4: New file.
67225
67226 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
67227
67228         * lib/fcntl_.h: New file.
67229         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
67230         the fcntl module.
67231         * lib/dirchownmod.c: Likewise.
67232         * lib/fts.c: Likewise.
67233
67234         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
67235         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
67236         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
67237         just before including <inttypes.h>, to avoid circular inclusion.
67238
67239 2006-08-28  Jim Meyering  <jim@meyering.net>
67240
67241         * doc/visibility.texi: Actually read and correct the grammar of the
67242         sentence affected by yesterday's change.
67243
67244 2006-08-28  Eric Blake  <ebb9@byu.net>
67245
67246         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
67247         needs wrapper.
67248
67249 2006-08-28  Eric Blake  <ebb9@byu.net>
67250
67251         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
67252
67253 2006-08-28  Eric Blake  <ebb9@byu.net>
67254
67255         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
67256
67257 2006-08-28  Bruno Haible  <bruno@clisp.org>
67258
67259         * modules/c-strstr: New file, from GNU gettext.
67260         * MODULES.html.sh (String handling): Add c-strstr.
67261
67262 2006-08-28  Bruno Haible  <bruno@clisp.org>
67263
67264         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
67265         macros.
67266         Reported by Eric Blake.
67267
67268 2006-08-28  Bruno Haible  <bruno@clisp.org>
67269
67270         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
67271         (VASNPRINTF): Return a string of length > INT_MAX without failing.
67272         * lib/vasprintf.c: Include errno.h, limits.h.
67273         (EOVERFLOW): New fallback definition.
67274         (vasprintf): Test here whether the string length is > INT_MAX.
67275         * lib/vsnprintf.c: Include errno.h, limits.h.
67276         (EOVERFLOW): New fallback definition.
67277         (vsnprintf): Fix bug when generated string was too long for the buffer.
67278         Test here whether the string length is > INT_MAX.
67279
67280 2006-08-28  Bruno Haible  <bruno@clisp.org>
67281
67282         * lib/inttypes_.h (SCNX*): Remove definitions.
67283         Reported by Eric Blake.
67284
67285 2006-08-28  Bruno Haible  <bruno@clisp.org>
67286
67287         * lib/c-strstr.h: New file, from GNU gettext.
67288         * lib/c-strstr.c: New file, from GNU gettext.
67289
67290 2006-08-28  Bruno Haible  <bruno@clisp.org>
67291
67292         * gnulib-tool: Reorder some statements.
67293
67294 2006-08-28  Bruno Haible  <bruno@clisp.org>
67295
67296         * gnulib-tool: New option --makefile-name.
67297         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
67298         $makefile_name.
67299         (func_import): Write $makefile_name to the cache file, and read it from
67300         there unless explicitly specified. Use $makefile_name as file name
67301         instead of Makefile.am. Adjust the recommendations accordingly.
67302
67303 2006-08-28  Bruno Haible  <bruno@clisp.org>
67304
67305         * gnulib-tool (func_verify_module): Check against misapplying patch.
67306
67307 2006-08-28  Bruno Haible  <bruno@clisp.org>
67308
67309         * gnulib-tool (func_relativize, func_relconcat): New functions.
67310         Give an error if --local-dir is given with --update.
67311         Remove trailing slashes from $local_gnulib_dir.
67312         (func_import): Store the relativized $local_gnulib_dir in
67313         gnulib-cache.m4, and read it from there if not specified explicitly.
67314
67315 2006-08-28  Bruno Haible  <bruno@clisp.org>
67316
67317         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
67318         is the current directory. Respect also $local_gnulib_dir.
67319
67320 2006-08-28  Bruno Haible  <bruno@clisp.org>
67321             Simon Josefsson  <jas@extundo.com>
67322
67323         BeOS portability.
67324         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
67325
67326 2006-08-27  Jim Meyering  <jim@meyering.net>
67327
67328         * doc/visibility.texi: Remove duplicate word: "pointer".
67329
67330 2006-08-26  Bruno Haible  <bruno@clisp.org>
67331
67332         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
67333         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
67334         (Makefile.am): Create inttypes.h from inttypes_.h.
67335         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
67336
67337         * modules/imaxabs: New file.
67338
67339         * modules/imaxdiv: New file.
67340
67341 2006-08-26  Bruno Haible  <bruno@clisp.org>
67342
67343         * m4/inttypes.m4: New file.
67344         * m4/_inttypes_h.m4: Remove file.
67345         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
67346         PRI_MACROS_BROKEN.
67347         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
67348
67349         * m4/imaxabs.m4: New file.
67350
67351         * m4/imaxdiv.m4: New file.
67352
67353 2006-08-26  Bruno Haible  <bruno@clisp.org>
67354
67355         * lib/inttypes_.h: New file.
67356         * lib/inttypes.h: Remove file.
67357         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
67358
67359         * lib/imaxabs.c: New file.
67360
67361         * lib/imaxdiv.c: New file.
67362
67363 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67364
67365         New config-h module, so that "make" output needn't be cluttered
67366         by -DHAVE_CONFIG_H.
67367         * MODULES.html.sh (Support for building libraries and executables):
67368         Add config-h.
67369         * modules/config-h: New file.
67370         * gnulib-tool (nl, sed_transform_lib_file): New vars.
67371         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
67372         the config-h module is used.
67373
67374         New configmake module, so that "make" output needn't be cluttered
67375         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
67376         * MODULES.html.sh (Support for building libraries and executables):
67377         Add configmake.
67378         * modules/configmake: New file.
67379
67380 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
67381
67382         * m4/config-h.m4: New file.
67383
67384 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67385
67386         * config/srclist.txt: Add elisp-comp.
67387
67388 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
67389
67390         * MODULES.html.sh (Support for building libraries and executables):
67391         Add elisp-comp.
67392         * build-aux/elisp-comp: New file.
67393         * modules/elisp-comp: New file.
67394
67395 2006-08-24  Bruno Haible  <bruno@clisp.org>
67396
67397         * gnulib-tool (func_create_testdir): Use non-default values of
67398         sourcebase and m4base.
67399
67400 2006-08-24  Bruno Haible  <bruno@clisp.org>
67401
67402         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
67403         HTML structure.
67404
67405 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
67406
67407         * modules/openat (Depends-on): Add lchown.
67408
67409 2006-08-23  Bruno Haible  <bruno@clisp.org>
67410
67411         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
67412         of gl_LOCK_EARLY instead of gl_LOCK.
67413
67414 2006-08-23  Bruno Haible  <bruno@clisp.org>
67415
67416         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
67417         on OSF/1 to no.
67418         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
67419
67420 2006-08-23  Bruno Haible  <bruno@clisp.org>
67421
67422         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
67423         as unusable.
67424
67425         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
67426         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
67427         (gl_LOCK): New macro.
67428
67429 2006-08-22  Simon Josefsson  <jas@extundo.com>
67430
67431         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
67432         to md5 module.
67433
67434 2006-08-22  Simon Josefsson  <jas@extundo.com>
67435
67436         * MODULES.html.sh: Add "Support for maintaining and release
67437         projects".
67438
67439         * build-aux/gnupload: New file, from coreutils.
67440
67441 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67442
67443         Avoid the need for AC_LIBSOURCES in m4 macros.
67444         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
67445         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
67446         * modules/check-version (EXTRA_DIST): Add check-version.h.
67447         * modules/crc (EXTRA_DIST): Add crc.h.
67448         * modules/des (EXTRA_DIST): Add des.h.
67449         * modules/gc (EXTRA_DIST): Add gc.h.
67450         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
67451         * modules/getline (EXTRA_DIST): Add getline.h.
67452         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
67453         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
67454         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
67455         * modules/md2 (EXTRA_DIST): Add md2.h.
67456         * modules/md4 (EXTRA_DIST): Add md4.h.
67457         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
67458         * modules/read-file (EXTRA_DIST): Add read-file.h.
67459         * modules/readline (EXTRA_DIST): Add readline.h.
67460         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
67461         rijndael-api-fst.h.
67462
67463 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67464
67465         * m4/rijndael.m4 (gl_ARCFOUR):
67466         * m4/arctwo.m4 (gl_ARCTWO):
67467         * m4/check-version.m4 (gl_CHECK_VERSION):
67468         * m4/crc.m4 (gl_CRC):
67469         * m4/des.m4 (gl_DES):
67470         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
67471         * m4/gc.m4 (gl_GC):
67472         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
67473         * m4/getline.m4 (gl_FUNC_GETLINE):
67474         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
67475         * m4/hmac-md5.m4 (gl_HMAC_MD5):
67476         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
67477         * m4/md2.m4 (gl_MD2):
67478         * m4/md4.m4 (gl_MD4):
67479         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
67480         * m4/read-file.m4 (gl_FUNC_READ_FILE):
67481         * m4/readline.m4 (gl_FUNC_READLINE):
67482         * m4/rijndael.m4 (gl_RIJNDAEL):
67483         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
67484         to get the necessary .h files and whatnot.
67485
67486 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
67487
67488         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
67489         gnulib rather than the other way around.
67490         * config/srclistvars.sh (COREUTILS): Remove.
67491
67492 2006-08-22  Jim Meyering  <jim@meyering.net>
67493
67494         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
67495
67496         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
67497
67498 2006-08-22  Eric Blake  <ebb9@byu.net>
67499
67500         * modules/regexprops-generic: New file.
67501         * MODULES.html.sh (Support for building documentation): List it.
67502
67503 2006-08-22  Eric Blake  <ebb9@byu.net>
67504
67505         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
67506         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
67507         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
67508         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
67509
67510 2006-08-22  Bruno Haible  <bruno@clisp.org>
67511
67512         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
67513         and lib_LTLIBRARIES like the other lib_* variables.
67514
67515 2006-08-22  Bruno Haible  <bruno@clisp.org>
67516
67517         * build-aux/x-to-1.in: New file, from GNU gettext.
67518
67519 2006-08-22  Bruno Haible  <bruno@clisp.org>
67520
67521         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
67522         <utmpx.h> exists.
67523
67524 2006-08-22  Bruno Haible  <bruno@clisp.org>
67525
67526         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
67527         <utmpx.h> exists.
67528
67529 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
67530
67531         BeOS portability.
67532         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
67533         exist.
67534         Problem reported by Bruno Haible.
67535
67536 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
67537
67538         Avoid the need for AC_LIBSOURCES in m4 macros.
67539         * modules/acl (EXTRA_DIST): Add acl.h.
67540         * modules/argmatch (Files): Add m4/argmatch.m4.
67541         (configure.ac): Add gl_ARGMATCH.
67542         (EXTRA_DIST): Renamed from lib_SOURCES, for
67543         consistency with the other modules.  Remove argmatch.c.
67544         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
67545         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
67546         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
67547         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
67548         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
67549         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
67550         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
67551         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
67552         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
67553         * modules/closeout (EXTRA_DIST): Add closeout.h.
67554         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
67555         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
67556         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
67557         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
67558         dirname.h; remove basename.c and stripslash.c.
67559         * modules/exclude (EXTRA_DIST): Add exclude.h.
67560         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
67561         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
67562         * modules/file-type (EXTRA_DIST): Add file-type.h.
67563         * modules/filemode (EXTRA_DIST): Add filemode.h.
67564         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
67565         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
67566         * modules/fpending (EXTRA_DIST): Add __fpending.h.
67567         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
67568         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
67569         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
67570         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
67571         * modules/getdate (EXTRA_DIST): Add getdate.c.
67572         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
67573         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
67574         * modules/getpass (EXTRA_DIST): Add getpass.h.
67575         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
67576         * modules/group-member (EXTRA_DIST): Add group-member.h.
67577         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
67578         * modules/hash (EXTRA_DIST): Add hash.h.
67579         * modules/human (EXTRA_DIST): Add human.h.
67580         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
67581         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
67582         * modules/lchown (EXTRA_DIST): Add lchown.h.
67583         * modules/long-options (EXTRA_DIST): Add long-options.h.
67584         * modules/lstat (EXTRA_DIST): Add lstat.h.
67585         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
67586         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
67587         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
67588         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
67589         * modules/memxor (EXTRA_DIST): Add memxor.h.
67590         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
67591         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
67592         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
67593         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
67594         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
67595         * modules/physmem (EXTRA_DIST): Add physmem.h.
67596         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
67597         * modules/posixver (EXTRA_DIST): Add posixver.h.
67598         * modules/quote (EXTRA_DIST): Add quote.h.
67599         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
67600         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
67601         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
67602         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
67603         regex_internal.h regexec.c.
67604         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
67605         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
67606         * modules/same (EXTRA_DIST): Add same.h.
67607         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
67608         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
67609         * modules/savedir (EXTRA_DIST): Add savedir.h.
67610         * modules/sha1 (EXTRA_DIST): Add sha1.h.
67611         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
67612         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
67613         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
67614         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
67615         * modules/strdup (EXTRA_DIST): Add strdup.h.
67616         * modules/strftime (EXTRA_DIST): Add strftime.h.
67617         * modules/strndup (EXTRA_DIST): Add strndup.h.
67618         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
67619         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
67620         * modules/time_r (EXTRA_DIST): Add time_r.h.
67621         * modules/timespec (EXTRA_DIST): Add timespec.h.
67622         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
67623         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
67624         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
67625         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
67626         * modules/userspec (EXTRA_DIST): Add userspec.h.
67627         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
67628         * modules/utimens (EXTRA_DIST): Add utimens.h.
67629         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
67630         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
67631         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
67632         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
67633         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
67634         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
67635         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
67636         * modules/yesno (EXTRA_DIST): Add yesno.h.
67637
67638 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
67639
67640         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
67641
67642         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
67643         * m4/dev-ino.m4, same-inode.m4: Remove.
67644
67645         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
67646         * m4/acl.m4 (AC_FUNC_ACL):
67647         * m4/backupfile.m4 (gl_BACKUPFILE):
67648         * m4/c-strtod.m4 (gl_C99_STRTOLD):
67649         * m4/canon-host.m4 (gl_CANON_HOST):
67650         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
67651         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
67652         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
67653         * m4/cloexec.m4 (gl_CLOEXEC):
67654         * m4/close-stream.m4 (gl_CLOSE_STREAM):
67655         * m4/closeout.m4 (gl_CLOSEOUT):
67656         * m4/dirfd.m4 (gl_FUNC_DIRFD):
67657         * m4/dirname.m4 (gl_DIRNAME):
67658         * m4/exclude.m4 (gl_EXCLUDE):
67659         * m4/exitfail.m4 (gl_EXITFAIL):
67660         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
67661         * m4/file-type.m4 (gl_FILE_TYPE):
67662         * m4/filemode.m4 (gl_FILEMODE):
67663         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
67664         * m4/fpending.m4 (gl_FUNC_FPENDING):
67665         * m4/fprintftime.m4 (gl_FPRINTFTIME):
67666         * m4/fts.m4 (gl_FUNC_FTS):
67667         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
67668         * m4/getdate.m4 (gl_GETDATE):
67669         * m4/gethrxtime.m4 (gl_GETHRXTIME):
67670         * m4/getpagesize.m4 (gl_GETPAGESIZE):
67671         * m4/getpass.m4 (gl_FUNC_GETPASS):
67672         * m4/gettime.m4 (gl_GETTIME):
67673         * m4/getugroups.m4 (gl_GETUGROUPS):
67674         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
67675         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
67676         * m4/hard-locale.m4 (gl_HARD_LOCALE):
67677         * m4/hash.m4 (gl_HASH):
67678         * m4/idcache.m4 (gl_IDCACHE):
67679         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
67680         * m4/lchown.m4 (gl_FUNC_LCHOWN):
67681         * m4/long-options.m4 (gl_LONG_OPTIONS):
67682         * m4/lstat.m4 (gl_FUNC_LSTAT):
67683         * m4/md5.m4 (gl_MD5):
67684         * m4/memcasecmp.m4 (gl_MEMCASECMP):
67685         * m4/memcoll.m4 (gl_MEMCOLL):
67686         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
67687         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
67688         * m4/memxor.m4 (gl_MEMXOR):
67689         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
67690         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
67691         * m4/modechange.m4 (gl_MODECHANGE):
67692         * m4/mountlist.m4 (gl_MOUNTLIST):
67693         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67694         * m4/openat.m4 (gl_FUNC_OPENAT):
67695         * m4/pathmax.m4 (gl_PATHMAX):
67696         * m4/physmem.m4 (gl_PHYSMEM):
67697         * m4/posixtm.m4 (gl_POSIXTM):
67698         * m4/posixver.m4 (gl_POSIXVER):
67699         * m4/quote.m4 (gl_QUOTE):
67700         * m4/quotearg.m4 (gl_QUOTEARG):
67701         * m4/readtokens.m4 (gl_READTOKENS):
67702         * m4/readutmp.m4 (gl_READUTMP):
67703         * m4/regex.m4 (gl_REGEX):
67704         * m4/safe-read.m4 (gl_SAFE_READ):
67705         * m4/safe-write.m4 (gl_SAFE_WRITE):
67706         * m4/same.m4 (gl_SAME):
67707         * m4/save-cwd.m4 (gl_SAVE_CWD):
67708         * m4/savedir.m4 (gl_SAVEDIR):
67709         * m4/settime.m4 (gl_SETTIME):
67710         * m4/sha1.m4 (gl_SHA1):
67711         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
67712         * m4/stat-macros.m4 (gl_STAT_MACROS):
67713         * m4/stat-time.m4 (gl_STAT_TIME):
67714         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
67715         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
67716         * m4/strdup.m4 (gl_FUNC_STRDUP):
67717         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
67718         * m4/strndup.m4 (gl_FUNC_STRNDUP):
67719         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
67720         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
67721         * m4/time_r.m4 (gl_TIME_R):
67722         * m4/timespec.m4 (gl_TIMESPEC):
67723         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
67724         * m4/unlinkdir.m4 (gl_UNLINKDIR):
67725         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
67726         * m4/userspec.m4 (gl_USERSPEC):
67727         * m4/utimecmp.m4 (gl_UTIMECMP):
67728         * m4/utimens.m4 (gl_UTIMENS):
67729         * m4/xalloc.m4 (gl_XALLOC):
67730         * m4/xgetcwd.m4 (gl_XGETCWD):
67731         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
67732         * m4/xreadlink.m4 (gl_XREADLINK):
67733         * m4/xstrtod.m4 (gl_XSTRTOD):
67734         * m4/yesno.m4 (gl_YESNO):
67735         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
67736         to get the necessary .h files and whatnot.
67737
67738 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
67739             Bruno Haible  <bruno@clisp.org>
67740
67741         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
67742         /bin/sh understanding of '!' conditional negation.
67743
67744 2006-08-21  Jim Meyering  <jim@meyering.net>
67745
67746         * modules/openat (Depends-on): Really alphabetize.
67747
67748         * modules/acl (Depends-on): Add error and quote.
67749
67750         * check-module (find_included_lib_files): Add at-func.c to the
67751         ok-to-include-more-than-once white list.
67752
67753         * modules/openat (Depends-on): Add lstat.  Alphabetize.
67754
67755 2006-08-21  Bruno Haible  <bruno@clisp.org>
67756
67757         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67758         Emit a pkgdata_DATA variable only if some snippets add contents to it.
67759         Reported by Martin Lambers <marlam@marlam.de>.
67760
67761 2006-08-21  Bruno Haible  <bruno@clisp.org>
67762
67763         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
67764         specify an installation location, don't emit a noinst_LIBRARIES or
67765         noinst_LTLIBRARIES assignment.
67766
67767 2006-08-21  Bruno Haible  <bruno@clisp.org>
67768
67769         BeOS portability.
67770         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
67771         BeOS has mbrtowc() but no <wctype.h>.
67772
67773 2006-08-21  Bruno Haible  <bruno@clisp.org>
67774
67775         BeOS portability.
67776         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
67777         exist.
67778
67779 2006-08-21  Bruno Haible  <bruno@clisp.org>
67780
67781         BeOS portability.
67782         * lib/mbchar.h: Include <wctype.h> only if it exists.
67783
67784 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67785
67786         Remove files that are no longer needed by their respective modules.
67787         * m4/obstack.m4: Remove.
67788         * m4/strerror_r.m4: Remove.
67789         * m4/uint32_t.m4: Remove.
67790         * m4/uintptr_t.m4: Remove.
67791         * m4/ullong_max.m4: Remove.
67792         * m4/xstrtoimax.m4: Remove.
67793         * m4/xstrtoumax.m4: Remove.
67794
67795         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
67796         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
67797         dependencies now capture this.
67798
67799         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
67800         Do not use AC_LIBSOURCES, since gnulib modules now do this.
67801         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
67802         * m4/human.m4 (gl_HUMAN): Likewise.
67803         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
67804         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
67805
67806         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
67807
67808         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
67809         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
67810         stdint.
67811         * m4/human.m4 (gl_HUMAN): Likewise.
67812         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
67813         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
67814         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
67815         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
67816         * m4/xstrtol (gl_XSTRTOL): Likewise.
67817
67818         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
67819         AC_TYPE_LONG_LONG_INT.
67820         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
67821         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
67822         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
67823         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
67824
67825         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
67826         on stdbool.
67827
67828         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
67829         (gl_PREREQ_XSTRTOUL): Remove.
67830
67831         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
67832
67833         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
67834         mode.
67835
67836 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67837
67838         Add and change modules to make it easier for coreutils to use
67839         gnulib-tool.
67840         * modules/backupfile (Files): Remove m4/d-ino.m4.
67841         (Depends-on): Add d-ino.
67842         * modules/cycle-check (Depends-on): Add stdint.
67843         (lib_SOURCES): Add cycle-check.h.
67844         * modules/d-ino: New module.
67845         * modules/d-type: New module.
67846         * modules/error (Files): Remove m4/strerror_r.m4.
67847         * modules/filemode (Files): Add m4/st_dm_mode.m4.
67848         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
67849         m4/inttypes_h.m4, m4/uintmax_t.m4.
67850         (Depends-on): Add stdint.
67851         (lib_SOURCES): Add fsusage.h.
67852         * modules/getcwd (Files): Remove d-ino.m4.
67853         (Depends-on): Add d-ino.
67854         * modules/getndelim2 (Depends-on): Add stdint.
67855         * modules/glob (Files): Remove m4/d-type.m4.
67856         (Depends-on): Add d-type.
67857         * modules/host-os: New module.
67858         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
67859         m4/inttypes_h.m4, m4/uintmax_t.m4.
67860         * Depends-on: Add stdint.
67861         (lib_SOURCES): Add human.h.
67862         * modules/inttostr (Files): Remove m4/intmax_t.m4,
67863         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
67864         m4/uintmax_t.m4, m4/ulonglong.m4.
67865         (Depends-on): Add stdint.
67866         (EXTRA_DIST): Add inttostr.h.
67867         * modules/lchmod: New module.
67868         * modules/link-follow: New module.
67869         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
67870         (Depends-on): Add lchmod.
67871         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
67872         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
67873         (Depends-on): Add stdint.
67874         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
67875         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
67876         (Depends-on): Add stdint.
67877         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
67878         * modules/perl: New module.
67879         * modules/regex (Depends-on): Add stdint.
67880         * modules/rmdir-errno: New module.
67881         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
67882         m4/intmax_t.m4.
67883         (Depends-on): Add stdint.
67884         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
67885         m4/uintmax_t.m4.
67886         (Depends-on): Add stdint.
67887         * modules/unlink-busy: New module.
67888         * modules/utimecmp (Depends-on): Add stdint.
67889         * modules/uptime: New module.
67890         * modules/winsz-ioctl: New module.
67891         * modules/winsz-termios: New module.
67892         * modules/xnanosleep (Depends-on): Add nanosleep.
67893         * modules/ullong_max: Remove.
67894         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
67895         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
67896         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
67897         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
67898         (Depends-on): Add inttypes.
67899         (lib_SOURCES): Add xstrtol.h.
67900         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
67901         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
67902         * MODULES.html.sh: Move 'assert' into the assert section.
67903         Move 'dummy' into the linking section.
67904         Remove ullong_max.
67905         Add section for compatibility checks for POSIX:2001 functions,
67906         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
67907         winsz-ioctl, and winsz-termios into it.
67908         Add lchmod.
67909         Add top-level Misc section and put host-os, perl, and uptime
67910         into it.
67911
67912 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67913
67914         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
67915         now assume the stdint module.  Do not include inttypes.h.
67916         * lib/fsusage.h: Likewise.
67917         * lib/getndelim2.c: Likewise.
67918         * lib/human.h: Likewise.
67919         * lib/inttostr.h: Likewise.
67920         * lib/obstack.c: Likewise.
67921         * lib/regex_internal.h: Likewise.
67922         * lib/tempname.c: Likewise.
67923         * lib/utimecmp.c: Likewise.
67924         * lib/xstrtol.h: Likewise.
67925
67926         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
67927
67928         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
67929         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
67930         * lib/xtime.h: Likewise.
67931
67932 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67933
67934         * modules/openat (Files): Add lib/fchmodat.c.
67935         Fixes problem reported by Jay Youngman.
67936
67937 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67938
67939         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
67940         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
67941
67942 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
67943             Bruno Haible  <bruno@clisp.org>
67944
67945         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
67946         and is a script that invokes bison. Tighten the code. Add comments.
67947
67948 2006-08-18  Jim Meyering  <jim@meyering.net>
67949
67950         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
67951         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
67952         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
67953         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
67954
67955 2006-08-18  Bruno Haible  <bruno@clisp.org>
67956
67957         * modules/bison-i18n: New file.
67958         * MODULES.html.sh (Internationalization functions): Add it.
67959
67960 2006-08-18  Bruno Haible  <bruno@clisp.org>
67961
67962         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
67963         sys/statvfs.h. When getmntinfo was found, check its declaration and
67964         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
67965
67966 2006-08-18  Bruno Haible  <bruno@clisp.org>
67967
67968         * m4/bison-i18n.m4: New file, from bison.
67969
67970 2006-08-18  Bruno Haible  <bruno@clisp.org>
67971
67972         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
67973         (ME_DUMMY): Treat "kernfs" as a dummy.
67974         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
67975
67976 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67977
67978         Update from coreutils.
67979
67980         2006-08-15  Jim Meyering  <jim@meyering.net>
67981
67982         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
67983
67984         2006-01-17  Jim Meyering  <jim@meyering.net>
67985
67986         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
67987
67988         2006-01-11  Jim Meyering  <jim@meyering.net>
67989
67990         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
67991         Check for the lchmod function.
67992
67993 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67994
67995         Update from coreutils.
67996
67997         * lib/__fpending.h: Add copyright notice.
67998         * lib/fprintftime.h: Likewise.
67999         * lib/savedir.c: Use (C) in copyright notice.
68000         * lib/savedir.h: Likewise.
68001
68002         2006-08-15  Jim Meyering  <jim@meyering.net>
68003
68004         * lib/at-func.c: New file, with the logic of all emulated at-functions.
68005         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
68006         in support of the EXPECTED_ERRNO macro.
68007         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
68008         definitions.  Instead, define the appropriate symbols and include
68009         "at-func.c".
68010         * lib/mkdirat.c (mkdirat): Likewise.
68011         * lib/fchmodat.c (fchmodat): Likewise.
68012         (ENOSYS): Remove definition.
68013         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
68014         it.  Don't include "unistd--.h" -- it wasn't ever used.
68015
68016         2006-01-17  Jim Meyering  <jim@meyering.net>
68017
68018         Rewrite fts.c not to change the current working directory,
68019         by using openat, fstatat, fdopendir, etc..
68020
68021         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
68022         (HAVE_OPENAT_SUPPORT): Define.
68023         [_LIBC] (fchdir): Don't undef or define; no longer used.
68024         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
68025         Now, this `function' always succeeds, and consumes its file descriptor
68026         parameter -- so callers must not close such FDs.  Update callers.
68027         (diropen_fd, opendirat, cwd_advance_fd): New functions.
68028         (diropen): Add parameter, SP.  Adjust all callers.
68029         Implement using diropen_fd, rather than open.
68030         (fts_open): Initialize new member, fts_cwd_fd.
68031         Remove fts_rft-setting code.
68032         (fts_close): Close fts_cwd_fd, if necessary.
68033         (__opendir2): Define in terms of opendir or opendirat,
68034         depending on whether the FST_NOCHDIR flag is set.
68035         (fts_build): Since fts_safe_changedir consumes its FD, and since
68036         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
68037         and close the dup'd file descriptor upon failure.
68038         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
68039         (fts_safe_changedir): Tweak semantics to reflect that this function
68040         now calls cwd_advance_fd and hence consumes its FD argument.
68041         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
68042         [struct FTS] (fts_rft): Remove now-unused member.
68043         [struct FTS] (fts_cycle.state): Improve comment.
68044
68045         * lib/openat.c (openat_needs_fchdir): New function.
68046         * lib/openat.h (openat_needs_fchdir): Declare it.
68047
68048 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
68049
68050         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
68051         Problem and fix reported by Pádraig Brady in
68052         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
68053
68054 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68055
68056         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
68057
68058 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68059
68060         * lib/memcoll.c (memcoll): Optimize for the common case where the
68061         arguments are bytewise equal.
68062
68063 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68064
68065         * doc/regexprops-generic.texi: Add a copyright notice.
68066
68067 2006-08-15  Bruno Haible  <bruno@clisp.org>
68068
68069         * modules/tmpdir (License): Change to LGPL.
68070
68071 2006-08-15  Bruno Haible  <bruno@clisp.org>
68072
68073         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
68074         module.
68075
68076 2006-08-14  Simon Josefsson  <jas@extundo.com>
68077
68078         * config/srclist.txt: Add gnupload.
68079
68080 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68081
68082         Change copyright notice from LGPL 2 to GPL 2, since that's the
68083         standard form used in the gnulib repository.
68084         * tests/test-lock.c: Likewise.
68085         * tests/test-stdint.c: Likewise.
68086         * tests/test-tls.c: Likewise.
68087
68088         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
68089         prelude-manager.  User shorter URLs for GNU projects, without '?'.
68090         Add copyright notice.
68091
68092         * check-module: Add copyright notice.  Output a copyright
68093         notice if "--version" is specified.
68094         * modules/COPYING: New file.
68095         * tests/test-getaddrinfo.c: Add copyright notice.
68096         * tests/test-verify.c: Likewise.
68097
68098 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68099
68100         Change copyright notice from LGPL 2 to GPL 2, since that's the
68101         standard form used in the gnulib repository.
68102         * lib/lock.c: LGPL -> GPL.
68103         * lib/lock.h: Likewise.
68104         * lib/strnlen1.c: Likewise.
68105         * lib/strnlen1.h: Likewise.
68106         * lib/tls.c: Likewise.
68107         * lib/tls.h: Likewise.
68108         * lib/tmpdir.c: Likewise.
68109
68110         * lib/TODO: Remove; this belongs only in coreutils.
68111
68112 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68113
68114         Add copyright notices to long-enough files that lack them, since
68115         otherwise the files aren't clearly free.  Use the same notice that
68116         getdate.texi already uses.
68117         * doc/alloca-opt.texi: Add copyright notice.
68118         * doc/alloca.texi: Likewise.
68119         * doc/ctime.texi: Likewise.
68120         * doc/functions.texi: Likewise.
68121         * doc/gcd.texi: Likewise.
68122         * doc/gnulib-tool.texi: Likewise.
68123         * doc/inet_ntoa.texi: Likewise.
68124         * doc/visibility.texi: Likewise.
68125
68126         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
68127         * doc/quote.texi: Add copyright notice.
68128
68129         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
68130         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
68131         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
68132         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
68133         is now obsolete, and give a pointer to the Sun list.
68134         Add copyright notice.
68135
68136 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68137
68138         * config/srclistvars.sh: Add copyright notice.
68139
68140 2006-08-14  Eric Blake  <ebb9@byu.net>
68141
68142         Import the following change from libc:
68143
68144         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
68145
68146         Upstream bug 2997.
68147         * lib/misc/error.c: Add space between program name and message if file
68148         name is missing.
68149
68150 2006-08-12  Karl Berry  <karl@gnu.org>
68151
68152         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
68153         remove, these originate in gnulib now.
68154
68155 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68156
68157         * doc/Makefile (standards.info standards.html standards.dvi):
68158         Also depend on make-stds.texi.
68159
68160 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
68161
68162         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
68163         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
68164
68165         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
68166         in wchar_t.  Problem reported by Eric Blake.
68167
68168         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
68169         LEN is smaller than SIZE.  Suggested by Bruno Haible.
68170         Also, help the compiler to keep LEN in a register.
68171
68172 2006-08-11  Eric Blake  <ebb9@byu.net>
68173
68174         * users.txt: Sort.  Add tar.
68175
68176 2006-08-11  Bruno Haible  <bruno@clisp.org>
68177
68178         * users.txt: New file.
68179
68180 2006-08-11  Bruno Haible  <bruno@clisp.org>
68181
68182         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
68183         before <wchar.h>. Needed for OSF/1 and BSD/OS.
68184
68185 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68186
68187         * modules/snprintf (Depends-on): Remove minmax.
68188         (Maintainer): Add self and Bruno.
68189
68190 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68191
68192         * lib/.cppi-disable: Add snprintf.h, socket_.h.
68193         * lib/snprintf.c: Include <errno.h> and <limits.h>.
68194         (EOVERFLOW): Define if the system does not.
68195         Do not include "minmax.h"; it wasn't used.
68196         (snprintf): Don't assume size_t promotes to an unsigned type.
68197         Fix bug when generated string was too long for the buffer: the
68198         buffer's contents are supposed to be the initial prefix of the
68199         output.  Don't assume vasnprintf returns EOVERFLOW if the size
68200         exceeds INT_MAX; do the check ourselves.
68201
68202         Import the following changes from libc:
68203
68204         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
68205
68206         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
68207         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
68208         set wc to the byte which couldn't be converted.
68209         (re_string_reconstruct): Don't clear valid_raw_len before calling
68210         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
68211         tip_context using re_string_context_at.
68212
68213         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
68214
68215         * lib/posix/regex.h: g++ still cannot handled [restrict].
68216
68217         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
68218
68219         * lib/posix/regex.h: Remove special handling for VMS.
68220
68221 2006-08-10  Jim Meyering  <jim@meyering.net>
68222
68223         * modules/same-inode: New module.
68224         * modules/dev-ino: New module.
68225         * modules/cycle-check: Depend on these modules, rather than simply
68226         including their .h files.
68227         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
68228         required via m4/cycle-check.m4.
68229         * modules/same: Depend on new same-inode module, rather than
68230         including same-inode.h.
68231         * modules/chdir-safer: New file.
68232
68233         * modules/chown (Depends-on): Add stat-macros.
68234
68235 2006-08-10  Jim Meyering  <jim@meyering.net>
68236
68237         * m4/cycle-check.m4: New file.
68238         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
68239         * m4/dev-ino.m4, m4/same-inode.m4: New files.
68240
68241 2006-08-10  Eric Blake  <ebb9@byu.net>
68242
68243         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
68244         in from original proposal.
68245
68246 2006-08-10  Eric Blake  <ebb9@byu.net>
68247         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68248
68249         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
68250         namespace.
68251
68252 2006-08-10  Bruno Haible  <bruno@clisp.org>
68253
68254         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
68255         as well.
68256
68257 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68258
68259         Sync from coreutils.
68260
68261         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
68262
68263         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
68264         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
68265
68266 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68267
68268         * modules/restrict: Remove; no longer needed now that we assume
68269         Autoconf 2.59 or later.
68270         * MODULES.html.sh: Remove 'restrict'.
68271         * modules/argp (Depends-on): Remove 'restrict'.
68272         * modules/base64 (Depends-on): Likewise.
68273         * modules/gc (Depends-on): Likewise.
68274         * modules/getaddrinfo (Depends-on): Likewise.
68275         * modules/glob (Depends-on): Likewise.
68276         * modules/inet_ntop (Depends-on): Likewise.
68277         * modules/inet_pton (Depends-on): Likewise.
68278         * modules/memxor (Depends-on): Likewise.
68279         * modules/regex (Depends-on): Likewise.
68280         * modules/strtok_r (Depends-on): Likewise.
68281         * modules/time_r (Depends-on): Likewise.
68282
68283 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
68284
68285         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
68286         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
68287         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
68288         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
68289         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
68290         * m4/memxor.m4 (gl_MEMXOR): Likewise.
68291         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
68292         gl_C_RESTRICT replaced by AC_C_RESTRICT.
68293
68294         Merge from coreutils.
68295         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
68296         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
68297         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68298         * m4/time_r.m4 (gl_TIME_R): Likewise.
68299
68300 2006-08-09  Karl Berry  <karl@gnu.org>
68301
68302         * config/srclist.txt: no more gettext-tools, per Bruno.
68303
68304 2006-08-08  Eric Blake  <ebb9@byu.net>
68305
68306         * modules/verror: New module.
68307         * MODULES.html.sh: Document it.
68308
68309 2006-08-08  Eric Blake  <ebb9@byu.net>
68310
68311         * lib/verror.h, lib/verror.c: New files.
68312
68313 2006-08-08  Eric Blake  <ebb9@byu.net>
68314
68315         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
68316         verror_at_line output complies with GNU Coding Standards even when
68317         file is NULL.
68318
68319 2006-08-07  Bruno Haible  <bruno@clisp.org>
68320
68321         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
68322         versions of AIX.
68323         Reported by Ralf Wildenhues.
68324
68325 2006-08-07  Bruno Haible  <bruno@clisp.org>
68326
68327         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
68328         in an AC_DEFUN. Needed so that the autoconf snippets can use
68329         AC_REQUIRE.
68330
68331 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68332
68333         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68334         Initialize pkgdata_DATA.
68335         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
68336         overriding it.
68337
68338 2006-08-06  Eric Blake  <ebb9@byu.net>
68339
68340         * lib/error.h: Fold in some upstream changes from glibc.
68341         * lib/error.c: Likewise.
68342
68343 2006-08-04  Bruno Haible  <bruno@clisp.org>
68344
68345         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68346         Make the mostlyclean-local rule depend on mostlyclean-generic.
68347         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
68348
68349 2006-07-31  Bruno Haible  <bruno@clisp.org>
68350
68351         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
68352         <stdlib.h>, <string.h>.
68353
68354 2006-07-30  Bruno Haible  <bruno@clisp.org>
68355
68356         * modules/readlink (License): Change to LGPL.
68357
68358 2006-07-30  Bruno Haible  <bruno@clisp.org>
68359
68360         * modules/javaversion (Makefile.am): Distribute javaversion.java and
68361         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
68362         set PKGDATADIR to point to it.
68363
68364 2006-07-30  Bruno Haible  <bruno@clisp.org>
68365
68366         * modules/csharpexec (configure.ac): Comment out macro invocation.
68367         * modules/javaexec (configure.ac): Likewise.
68368         * modules/javacomp-script (configure.ac): Likewise.
68369
68370         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
68371
68372 2006-07-30  Bruno Haible  <bruno@clisp.org>
68373
68374         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
68375         linked-list.
68376
68377 2006-07-30  Bruno Haible  <bruno@clisp.org>
68378
68379         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
68380
68381 2006-07-30  Bruno Haible  <bruno@clisp.org>
68382
68383         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68384         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
68385         get removed.
68386
68387 2006-07-29  Bruno Haible  <bruno@clisp.org>
68388
68389         Make it possible for gnulib-tool to work with locally modified or
68390         augmented gnulib repositories.
68391         * gnulib-tool (func_usage): Document --local-dir option.
68392         (local_gnulib_dir): New variable.
68393         Handle --local-dir option.
68394         (func_lookup_file): New function.
68395         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
68396         (func_get_description, func_get_filelist, func_get_description,
68397         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
68398         func_get_automake_snippet, func_get_include_directive,
68399         func_get_license, func_get_maintainer): Use func_lookup_file.
68400         (func_import, func_create_testdir): Use func_lookup_file.
68401
68402 2006-07-29  Bruno Haible  <bruno@clisp.org>
68403
68404         * modules/setenv (Depends-on): Add unistd.
68405
68406 2006-07-29  Bruno Haible  <bruno@clisp.org>
68407
68408         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
68409
68410 2006-07-29  Bruno Haible  <bruno@clisp.org>
68411
68412         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
68413
68414 2006-07-29  Bruno Haible  <bruno@clisp.org>
68415
68416         * gnulib-tool (import, update): If there is no Makefile.am, look at
68417         aclocal.m4, instead of bailing out.
68418
68419 2006-07-29  Bruno Haible  <bruno@clisp.org>
68420
68421         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
68422         Categorize the options by when they are useful.
68423
68424 2006-07-29  Bruno Haible  <bruno@clisp.org>
68425
68426         * gnulib-tool (func_usage): Document option --no-libtool.
68427         Handle option --no-libtool.
68428         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
68429         for changed semantics of $libtool variable.
68430         (func_import): Likewise. If libtool is not used, show this through
68431         an option --no-libtool.
68432         (func_create_testdir): Update.
68433
68434 2006-07-29  Bruno Haible  <bruno@clisp.org>
68435
68436         * gnulib-tool (func_import): Extend error message about missing
68437         --doc-base.
68438
68439 2006-07-29  Bruno Haible  <bruno@clisp.org>
68440
68441         * gnulib-tool (func_import): Don't create the $docbase directory if
68442         there is no file to store there.
68443
68444 2006-07-29  Bruno Haible  <bruno@clisp.org>
68445
68446         * gnulib-tool (autoconf_minversion): If a --dir option is given and
68447         relevant, look for configure.ac there, not in the current directory.
68448         Also use a simple search for AC_PREREQ, not "autoconf --trace".
68449
68450 2006-07-29  Bruno Haible  <bruno@clisp.org>
68451
68452         * gnulib-tool (SORT): New variable.
68453         (func_usage): Undocument --assume-autoconf option.
68454         Remove --assume-autoconf option handling.
68455         (autoconf_minversion): Determine from the contents of configure.ac.
68456         (func_import): Remove autoconf_minversion handling.
68457         Suggested by Eric Blake.
68458
68459 2006-07-29  Bruno Haible  <bruno@clisp.org>
68460
68461         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
68462
68463 2006-07-29  Bruno Haible  <bruno@clisp.org>
68464
68465         * config/srclist.txt (*setenv.[ch]): Remove rules.
68466
68467 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68468
68469         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
68470
68471 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68472
68473         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
68474         arpa/inet.h.
68475
68476 2006-07-28  Simon Josefsson  <jas@extundo.com>
68477
68478         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
68479         * modules/inet_pton (Depends-on): Likewise.
68480
68481 2006-07-28  Simon Josefsson  <jas@extundo.com>
68482
68483         * m4/netinet_in_h.m4: New file.
68484
68485 2006-07-28  Simon Josefsson  <jas@extundo.com>
68486
68487         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
68488         #include's.
68489
68490 2006-07-28  Simon Josefsson  <jas@extundo.com>
68491
68492         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
68493         #include's.
68494
68495 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
68496
68497         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
68498         setgid on directories only if they set these bits.
68499         * lib/modechange.h: Remove obsolete comment about masks.
68500
68501 2006-07-28  Eric Blake  <ebb9@byu.net>
68502
68503         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
68504         macro expansion.
68505
68506 2006-07-28  Bruno Haible  <bruno@clisp.org>
68507
68508         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
68509
68510 2006-07-28  Bruno Haible  <bruno@clisp.org>
68511
68512         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
68513
68514 2006-07-28  Bruno Haible  <bruno@clisp.org>
68515
68516         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
68517         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
68518         Define fallbacks.
68519         Avoids link error on FreeBSD 4.x.
68520         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68521
68522         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
68523         encoding.
68524         * lib/mbswidth.c (iswcntrl): Likewise.
68525
68526 2006-07-27  Bruno Haible  <bruno@clisp.org>
68527
68528         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
68529         test.
68530
68531 2006-07-27  Bruno Haible  <bruno@clisp.org>
68532
68533         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
68534         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
68535         defined.
68536
68537 2006-07-26  Eric Blake  <ebb9@byu.net>
68538
68539         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
68540
68541 2006-07-26  Eric Blake  <ebb9@byu.net>
68542
68543         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
68544         like mingw that lack mkstemp.
68545         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
68546         avoid compilation warning on mingw.
68547
68548 2006-07-26  Bruno Haible  <bruno@clisp.org>
68549
68550         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
68551         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
68552         INT_FAST*_MIN, INTPTR_MIN.
68553
68554 2006-07-25  Bruno Haible  <bruno@clisp.org>
68555
68556         * modules/version-etc (Depends-on): Add stdarg.
68557
68558 2006-07-25  Bruno Haible  <bruno@clisp.org>
68559
68560         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
68561         complex commands.
68562
68563 2006-07-25  Bruno Haible  <bruno@clisp.org>
68564
68565         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
68566         defined in <stdarg.h> or config.h.
68567
68568 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
68569
68570         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
68571         (gl_STDIO_SAFER): Remove.
68572
68573 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
68574
68575         * MODULES.html.sh (File stream based Input/Output):
68576         Add fopen-safer, tmpfile-safer; remove stdio-safer.
68577         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
68578         * modules/fopen-safer, modules/tmpfile-safer: New files.
68579         * modules/stdio-safer: Remove.
68580
68581 2006-07-24  Bruno Haible  <bruno@clisp.org>
68582
68583         * modules/tmpdir: New file.
68584         * MODULES.html.sh (File system functions): Add it.
68585
68586 2006-07-24  Bruno Haible  <bruno@clisp.org>
68587
68588         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
68589         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
68590
68591 2006-07-24  Bruno Haible  <bruno@clisp.org>
68592
68593         * modules/clean-temp: New file.
68594
68595 2006-07-24  Bruno Haible  <bruno@clisp.org>
68596
68597         * m4/tmpdir.m4: New file, from GNU gettext.
68598
68599 2006-07-24  Bruno Haible  <bruno@clisp.org>
68600
68601         * lib/tmpdir.h: New file, from GNU gettext.
68602         * lib/tmpdir.c: New file, from GNU gettext.
68603
68604 2006-07-24  Bruno Haible  <bruno@clisp.org>
68605
68606         * lib/clean-temp.h: New file, from GNU gettext.
68607         * lib/clean-temp.c: New file, from GNU gettext.
68608
68609 2006-07-23  Eric Blake  <ebb9@byu.net>
68610
68611         * modules/stdio-safer (Files): Add tmpfile-safer.c.
68612         (Depends-on): Add binary-io.
68613
68614 2006-07-23  Eric Blake  <ebb9@byu.net>
68615
68616         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
68617
68618 2006-07-23  Eric Blake  <ebb9@byu.net>
68619
68620         * lib/tmpfile-safer.c: New file.
68621         * lib/stdio-safer.h (fopen_safer): Add prototype.
68622         * lib/stdio--.h (tmpfile): Make safer.
68623
68624 2006-07-23  Bruno Haible  <bruno@clisp.org>
68625
68626         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
68627         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
68628         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
68629         gl_linked_remove_at): Use it.
68630
68631 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68632         and Simon Josefsson <jas@extundo.com>
68633
68634         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
68635
68636         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
68637
68638 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68639
68640         * modules/close-stream: New file.
68641         * modules/closeout (Description): Make it clear that it exits
68642         with a diagnostic on error.
68643         (Depends-on): Add close-stream.  Remove fpending, stdbool.
68644         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
68645
68646 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68647
68648         * m4/close-stream.m4: New file.
68649
68650 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68651
68652         * lib/close-stream.c, lib/close-stream.h: New files.
68653
68654 2006-07-22  Bruno Haible  <bruno@clisp.org>
68655
68656         Merge from GNU gettext 0.15.
68657
68658         2006-05-01  Bruno Haible  <bruno@clisp.org>
68659
68660                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
68661
68662         2006-07-22  Bruno Haible  <bruno@clisp.org>
68663
68664                 * modules/javaversion: New file.
68665                 * MODULES.html.sh (Java): Add javaversion.
68666
68667         2006-03-12  Bruno Haible  <bruno@clisp.org>
68668
68669                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
68670
68671         2005-12-04  Bruno Haible  <bruno@clisp.org>
68672
68673                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
68674                 (untested).
68675
68676         2006-06-21  Bruno Haible  <bruno@clisp.org>
68677
68678                 Avoid warnings from recent versions of mcs.
68679                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
68680                 -o, -L, -r any more. Use options documented since mcs-1.0
68681                 instead. Similarly for -g.
68682
68683         2005-12-04  Bruno Haible  <bruno@clisp.org>
68684
68685                 * build-aux/csharpcomp.sh.in: Suffix for resources is
68686                 .resources, not .resource.
68687
68688         2005-07-09  Bruno Haible  <bruno@clisp.org>
68689
68690                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
68691                 add a .dll suffix.
68692                 Reported by Mark Junker <mjscod@gmx.de>.
68693
68694         2006-07-22  Bruno Haible  <bruno@clisp.org>
68695
68696                 * modules/gettext: Upgrade to gettext-0.15.
68697                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
68698                 m4/visibility.m4.
68699                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
68700
68701 2006-07-22  Bruno Haible  <bruno@clisp.org>
68702
68703         Merge from GNU gettext 0.15.
68704
68705         2006-03-25  Bruno Haible  <bruno@clisp.org>
68706
68707                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
68708
68709         2006-07-21  Bruno Haible  <bruno@clisp.org>
68710
68711                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
68712                 "1.1".
68713
68714         2006-05-09  Bruno Haible  <bruno@clisp.org>
68715
68716                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
68717                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
68718                 for the conftestver execution.
68719
68720         2006-05-01  Bruno Haible  <bruno@clisp.org>
68721
68722                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
68723                 optional target-version argument. Verify that the compiler
68724                 groks source of the specified source-version, or add -source
68725                 option as necessary. Verify that the compiler produces
68726                 bytecode in the specified target-version, or add -target and
68727                 -source options as necessary. Make the result of the test
68728                 available as variable CONF_JAVAC. Also log error output in
68729                 config.log.
68730
68731         2006-03-11  Bruno Haible  <bruno@clisp.org>
68732
68733                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
68734
68735         2006-05-09  Bruno Haible  <bruno@clisp.org>
68736
68737                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
68738                 CLASSPATH_SEPARATOR to a semicolon.
68739
68740         2006-03-12  Bruno Haible  <bruno@clisp.org>
68741
68742                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
68743                 available as variable CONF_JAVA, for subsequent autoconf
68744                 tests. Also log error output in config.log.
68745
68746         2006-07-19  Bruno Haible  <bruno@clisp.org>
68747
68748                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
68749                 that getline works on glibc2 systems. Needed to avoid trouble
68750                 in relocatable.c.
68751                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
68752
68753         2005-12-04  Bruno Haible  <bruno@clisp.org>
68754
68755                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
68756                 launcher (untested).
68757
68758         2005-12-04  Bruno Haible  <bruno@clisp.org>
68759
68760                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
68761
68762         2006-07-22  Bruno Haible  <bruno@clisp.org>
68763
68764                 * gettext.m4: Update from GNU gettext-0.15.
68765                 * nls.m4: Likewise.
68766                 * po.m4: Likewise.
68767                 * inttypes-pri.m4: Likewise.
68768                 * inttypes-h.m4: Renamed from inttypes.m4.
68769                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
68770
68771 2006-07-22  Bruno Haible  <bruno@clisp.org>
68772
68773         Merge from GNU gettext 0.15.
68774
68775         2005-07-05  Bruno Haible  <bruno@clisp.org>
68776
68777                 * printf-args.c (printf_fetchargs): Work around broken
68778                 definition of wint_t on mingw.
68779
68780         2005-02-12  Bruno Haible  <bruno@clisp.org>
68781
68782                 * xallocsa.h: Add extern "C" for C++.
68783
68784         2006-05-17  Bruno Haible  <bruno@clisp.org>
68785
68786                 Cygwin portability.
68787                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
68788
68789         2006-04-30  Bruno Haible  <bruno@clisp.org>
68790
68791                 * progreloc.c: Include <mach-o/dyld.h> if available.
68792                 (find_executable): Use _NSGetExecutablePath when possible.
68793
68794         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68795
68796                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
68797                 function.
68798
68799         2005-12-29  Bruno Haible  <bruno@clisp.org>
68800
68801                 * progreloc.c (set_program_name_and_installdir): Fix
68802                 compilation error.
68803
68804         2005-12-04  Bruno Haible  <bruno@clisp.org>
68805
68806                 Cygwin portability.
68807                 * progreloc.c: Include <windows.h> also on Cygwin.
68808                 (find_executable): Add support for Cygwin.
68809                 (set_program_name_and_installdir): Handle also platforms with
68810                 nonempty EXEEXT.
68811
68812         2006-07-11  Bruno Haible  <bruno@clisp.org>
68813
68814                 * javacomp.c: Fix a comment.
68815                 Reported by Jim Meyering.
68816
68817         2006-04-30  Bruno Haible  <bruno@clisp.org>
68818
68819                 * javacomp.h (compile_java_class): Add source_version,
68820                 target_version arguments.
68821                 * javacomp.c: Rewritten to choose only a compiler that
68822                 respects the specified source_version and target_version.
68823
68824         2006-06-27  Bruno Haible  <bruno@clisp.org>
68825
68826                 Assume correct S_ISDIR macro.
68827                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
68828
68829         2006-07-22  Bruno Haible  <bruno@clisp.org>
68830
68831                 * javaversion.h: New file, from GNU gettext.
68832                 * javaversion.c: New file, from GNU gettext.
68833                 * javaversion.java: New file, from GNU gettext.
68834                 * javaversion.class: New file, from GNU gettext.
68835
68836         2006-05-17  Bruno Haible  <bruno@clisp.org>
68837
68838                 Cygwin portability.
68839                 * javaexec.c (execute_java_class): Test for jview program
68840                 also on Cygwin.
68841
68842         2006-04-09  Bruno Haible  <bruno@clisp.org>
68843
68844                 * fatal-signal.c: Don't include string.h.
68845                 (at_fatal_signal): Use a copying loop instead of memcpy.
68846
68847         2005-12-04  Bruno Haible  <bruno@clisp.org>
68848
68849                 * csharpexec.c: Add support for 'clix' launcher (untested).
68850                 (execute_csharp_using_sscli): New function.
68851                 (execute_csharp_program): Call it.
68852
68853         2006-06-21  Bruno Haible  <bruno@clisp.org>
68854
68855                 Avoid warnings from recent versions of mcs.
68856                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
68857                 -o, -L, -r any more. Use options documented since mcs-1.0
68858                 instead. Similarly for -g.
68859
68860         2005-07-09  Bruno Haible  <bruno@clisp.org>
68861
68862                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
68863                 add a .dll suffix.
68864                 Reported by Mark Junker <mjscod@gmx.de>.
68865
68866         2006-06-17  Bruno Haible  <bruno@clisp.org>
68867
68868                 * config.charset: Update for NetBSD 3.0.
68869
68870         2006-05-17  Bruno Haible  <bruno@clisp.org>
68871
68872                 Cygwin portability.
68873                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
68874
68875         2006-05-16  Bruno Haible  <bruno@clisp.org>
68876
68877                 * localcharset.c [CYGWIN]: Include <windows.h>.
68878                 (get_charset_aliases): For Cygwin, return the same CPxxx
68879                 aliases list as under WIN32.
68880                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
68881                 the environment variables. Fall back to GetACP().
68882
68883         2006-04-05  Bruno Haible  <bruno@clisp.org>
68884
68885                 * config.charset: Update Juan Manuel Guerrero's address.
68886
68887         2005-02-12  Bruno Haible  <bruno@clisp.org>
68888
68889                 * allocsa.h: Add extern "C" for C++.
68890
68891         2005-02-10  Bruno Haible  <bruno@clisp.org>
68892
68893                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
68894                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
68895
68896         2006-07-22  Bruno Haible  <bruno@clisp.org>
68897
68898                 * gettext.h: Update to GNU gettext-0.15.
68899
68900 2006-07-22  Bruno Haible  <bruno@clisp.org>
68901
68902         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
68903         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
68904         lib-prefix.m4, longdouble.m4, ssize_t.m4.
68905
68906 2006-07-21  Eric Blake  <ebb9@byu.net>
68907
68908         * modules/stdlib-safer: New file.
68909         * MODULES.html.sh (File stream based Input/Output): Add
68910         stdlib-safer.
68911
68912 2006-07-21  Eric Blake  <ebb9@byu.net>
68913
68914         * lib/stdlib-safer.h: New file from coreutils, required by
68915         stdlib--.h.
68916
68917 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
68918
68919         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
68920
68921 2006-07-20  Bruno Haible  <bruno@clisp.org>
68922
68923         * gnulib-tool: Recognize new option --assume-autoconf.
68924         (autoconf_minversion): New variable.
68925         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
68926
68927 2006-07-20  Bruno Haible  <bruno@clisp.org>
68928
68929         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
68930
68931 2006-07-19  Derek R. Price  <derek@ximbiot.com>
68932
68933         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
68934         Reindent and repaginate.
68935
68936 2006-07-19  Derek Price  <derek@ximbiot.com>
68937
68938         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
68939         Correct grammar.
68940
68941 2006-07-17  Bruno Haible  <bruno@clisp.org>
68942
68943         * modules/list: New file.
68944         * modules/array-list: New file.
68945         * modules/carray-list, modules/carray-list-tests: New files.
68946         * modules/linked-list, modules/linked-list-tests: New files.
68947         * modules/avltree-list, modules/avltree-list-tests: New files.
68948         * modules/rbtree-list, modules/rbtree-list-tests: New files.
68949         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
68950         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
68951         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
68952         * modules/oset: New file.
68953         * modules/array-oset: New file.
68954         * modules/avltree-oset, modules/avltree-oset-tests: New files.
68955         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
68956         * tests/test-carray_list.c: New file.
68957         * tests/test-linked_list.c: New file.
68958         * tests/test-avltree_list.c: New file.
68959         * tests/test-rbtree_list.c: New file.
68960         * tests/test-linkedhash_list.c: New file.
68961         * tests/test-avltreehash_list.c: New file.
68962         * tests/test-rbtreehash_list.c: New file.
68963         * tests/test-avltree_oset.c: New file.
68964         * tests/test-rbtree_oset.c: New file.
68965         * MODULES.html.sh (Container data structures): New section.
68966
68967 2006-07-17  Bruno Haible  <bruno@clisp.org>
68968
68969         * m4/gl_list.m4: New file.
68970
68971 2006-07-17  Bruno Haible  <bruno@clisp.org>
68972
68973         * lib/gl_list.h: New file.
68974         * lib/gl_list.c: New file.
68975         * lib/gl_array_list.h: New file.
68976         * lib/gl_array_list.c: New file.
68977         * lib/gl_carray_list.h: New file.
68978         * lib/gl_carray_list.c: New file.
68979         * lib/gl_linked_list.h: New file.
68980         * lib/gl_linked_list.c: New file.
68981         * lib/gl_anylinked_list1.h: New file.
68982         * lib/gl_anylinked_list2.h: New file.
68983         * lib/gl_avltree_list.h: New file.
68984         * lib/gl_avltree_list.c: New file.
68985         * lib/gl_anyavltree_list1.h: New file.
68986         * lib/gl_anyavltree_list2.h: New file.
68987         * lib/gl_rbtree_list.h: New file.
68988         * lib/gl_rbtree_list.c: New file.
68989         * lib/gl_anyrbtree_list1.h: New file.
68990         * lib/gl_anyrbtree_list2.h: New file.
68991         * lib/gl_anytree_list1.h: New file.
68992         * lib/gl_anytree_list2.h: New file.
68993         * lib/gl_linkedhash_list.h: New file.
68994         * lib/gl_linkedhash_list.c: New file.
68995         * lib/gl_anyhash_list1.h: New file.
68996         * lib/gl_anyhash_list2.h: New file.
68997         * lib/gl_avltreehash_list.h: New file.
68998         * lib/gl_avltreehash_list.c: New file.
68999         * lib/gl_rbtreehash_list.h: New file.
69000         * lib/gl_rbtreehash_list.c: New file.
69001         * lib/gl_anytreehash_list1.h: New file.
69002         * lib/gl_anytreehash_list2.h: New file.
69003
69004         * lib/gl_oset.h: New file.
69005         * lib/gl_oset.c: New file.
69006         * lib/gl_array_oset.h: New file.
69007         * lib/gl_array_oset.c: New file.
69008         * lib/gl_avltree_oset.h: New file.
69009         * lib/gl_avltree_oset.c: New file.
69010         * lib/gl_rbtree_oset.h: New file.
69011         * lib/gl_rbtree_oset.c: New file.
69012         * lib/gl_anytree_oset.h: New file.
69013
69014 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69015
69016         * m4/mkancesdirs.m4: New file.
69017         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
69018         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
69019         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
69020         it.
69021
69022 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69023
69024         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
69025         * lib/mkancesdirs.h: New files.
69026         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
69027         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
69028         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
69029         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
69030         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
69031         callers changed.  Revamp internals significantly, by not
69032         attempting to create directories that are temporarily more
69033         permissive than the final results.  Do not attempt to use
69034         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
69035         This removes some race conditions, fixes some bugs, and simplifies
69036         things.  Use new dirchownmod function to do owner and mode changes.
69037         * lib/mkdir-p.h: Likewise.
69038         * lib/modechange.c (octal_to_mode): New function.
69039         (struct mode_change): New member mentioned.
69040         (make_node_op_equals): New arg mentioned.  All callers changed.
69041         (mode_compile): Keep track of which mode bits the user has explicitly
69042         mentioned.
69043         (mode_adjust): New arg DIR, so that we implement the X op correctly.
69044         New arg PMODE_BITS, to keep track of which mode bits the user
69045         mentioned; it treats S_ISUID and S_ISGID speciall.
69046         All callers changed.
69047         * lib/modechange.h: Likewise.
69048
69049 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
69050
69051         * MODULES.html.sh: Add mkancestors.
69052         * modules/mkancesdirs: New module.
69053         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
69054         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
69055         The chdir-safer and afs files are now orphans; I'll remove them
69056         unless someone speaks up.
69057         Add lib/dirchownmod.c, lib/dirchownmod.h.
69058         (Depends-on): Remove alloca, chown, save-cwd, dirname.
69059         Add lchown, mkancesdirs.
69060         (Maintainer): Add self.
69061
69062 2006-07-15  Karl Berry  <karl@gnu.org>
69063
69064         * gnulib-tool: help message wording/arrangement.
69065
69066 2006-07-14  Simon Josefsson  <jas@extundo.com>
69067
69068         * doc/gnulib.texi (Libtool and Windows): New section.
69069
69070 2006-07-12  Simon Josefsson  <jas@extundo.com>
69071
69072         * modules/gendocs (License): Fix license, approved by Karl.
69073
69074 2006-07-12  Eric Blake  <ebb9@byu.net>
69075
69076         * MODULES.html.sh: Add gendocs.
69077
69078 2006-07-11  Eric Blake  <ebb9@byu.net>
69079
69080         * modules/fdl: New module, to install doc/fdl.texi.
69081         * MODULES.html.sh: Add new section for documentation modules.
69082         * gnulib-tool: Avoid space-tab.
69083         (--doc-base): New option, to manage files from doc.
69084
69085 2006-07-11  Eric Blake  <ebb9@byu.net>
69086
69087         * m4/absolute-header.m4: Fix comments to match recent change.
69088
69089 2006-07-11  Eric Blake  <ebb9@byu.net>
69090
69091         * gnulib-tool: List --doc-base before --tests-base.
69092
69093 2006-07-11  Derek R. Price  <derek@ximbiot.com>
69094
69095         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
69096
69097 2006-07-11  Bruno Haible  <bruno@clisp.org>
69098
69099         * README: Mention where to put documentation.
69100
69101 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69102
69103         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
69104
69105 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
69106
69107         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
69108         to stdint.m4.
69109
69110 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
69111
69112         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
69113         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
69114         "no/such/file/stdint.h" when there is no such file, so that
69115         the resulting C code can be parsed by dodgy compilers.
69116         Problems reported by Bob Proulx.
69117
69118 2006-07-10  Derek R. Price  <derek@ximbiot.com>
69119
69120         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
69121         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
69122         macros into the GNU _D_EXACT_NAMLEN.
69123         * lib/savedir.c:  Likewise.
69124         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
69125
69126 2006-07-10  Derek R. Price  <derek@ximbiot.com>
69127         and Paul Eggert  <eggert@cs.ucla.edu>
69128
69129         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
69130         * m4/savedir.m4:
69131         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
69132         macros into the GNU _D_EXACT_NAMLEN.
69133
69134 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69135
69136         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
69137         around the absolute name, to work around a problem with the HP-UX
69138         11.23 native C compiler, reported by Bob Proulx.
69139
69140 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69141
69142         * doc/maintain.texi, make-stds.texi: Sync from
69143         <http://savannah.gnu.org/projects/gnustandards>.
69144
69145 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69146
69147         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
69148
69149 2006-07-09  Jim Meyering  <jim@meyering.net>
69150
69151         * m4/glob.m4: Remove a doubled word in a comment.
69152
69153 2006-07-09  Jim Meyering  <jim@meyering.net>
69154
69155         * lib/argp-pv.c: Remove a doubled word in a comment.
69156         * lib/check-version.c (check_version): Likewise.
69157         * lib/javacomp.c (compile_java_class): Likewise.
69158
69159 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
69160
69161         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
69162         for the benefit of people using Autoconf 2.60.  If you want to
69163         support older Autoconf versions you can copy m4/onceonly_2_57.m4
69164         (or m4/onceonly.m4, if pre-2.57) manually.
69165
69166 2006-07-08  Jim Meyering  <jim@meyering.net>
69167
69168         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
69169         comment.
69170         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
69171         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
69172         comment.
69173
69174 2006-07-08  Jim Meyering  <jim@meyering.net>
69175
69176         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
69177
69178 2006-07-07  Simon Josefsson  <jas@extundo.com>
69179
69180         * tests/test-crc.c: Change expected crc value, the test vector
69181         were probably computed using the old broken crc.c?
69182
69183 2006-07-06  Simon Josefsson  <jas@extundo.com>
69184
69185         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
69186         now the canonical place for the M4 file).
69187
69188         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
69189         from the sys_socket dependency now.
69190
69191         * modules/inet_pton (Files): Ditto.
69192
69193         * modules/inet_ntop (Files): Ditto.
69194
69195 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69196
69197         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
69198         not gl_PREREQ_GETUSERSHELL.
69199
69200 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69201
69202         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
69203         with only one argument, for Autoconf 2.60.
69204         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
69205         expand to nothing, so add a shell command to avoid syntax error.
69206         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
69207
69208 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69209
69210         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
69211
69212 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69213
69214         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
69215         no longer needed.  Check for isblank decl.
69216         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
69217         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
69218         of existence.
69219
69220 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69221
69222         * lib/getloadavg.c: Use __VMS, not VMS.
69223         * lib/getopt.c: Likewise.
69224         * lib/getpagesize.h: Likewise.
69225         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
69226         and probably does not work.
69227
69228 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
69229
69230         * lib/.cppi-disable: Add wcwidth.
69231         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
69232         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
69233         (ISGRAPH): Remove.  All uses changed to isgraph.
69234         (FOLD) [!defined _LIBC]: Remove special case.
69235         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
69236         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
69237         HAVE_ISBLANK.
69238         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
69239         case.
69240
69241 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
69242
69243         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
69244         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
69245         brackets.  Other minor changes to suppress some compiler
69246         warnings.
69247
69248 2006-07-06  Derek R. Price  <derek@ximbiot.com>
69249         and Paul Eggert  <eggert@cs.ucla.edu>
69250
69251         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
69252         of invoking obsolescent AC_HEADER_DIRENT macro.
69253         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
69254         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
69255         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
69256         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
69257         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
69258         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
69259         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
69260         * m4/readdir.m4: Remove; no longer needed.
69261
69262 2006-07-06  Derek R. Price  <derek@ximbiot.com>
69263         and Paul Eggert  <eggert@cs.ucla.edu>
69264
69265         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
69266         Don't worry about this obsolete case any more.
69267         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
69268         directories.
69269         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
69270         worry about this obsolete case any more.
69271         * lib/fts.c: Likewise.
69272         * lib/getcwd.c: Likewise.
69273         * lib/glob.h: Likewise.
69274         * lib/savedir.c: Likewise.
69275
69276 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69277
69278         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
69279         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
69280         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
69281         needed.
69282         All uses removed.
69283         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69284         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
69285         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
69286         needed.
69287         * m4/getdate.m4 (gl_GETDATE): Likewise.
69288         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
69289         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
69290         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
69291         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69292         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
69293         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69294         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
69295         needed.
69296
69297 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
69298
69299         * lib/memcasecmp.c: Include <limits.h>.
69300         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
69301         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
69302         Don't assume isdigit succeeds only on '0' through '9'.
69303
69304 2006-07-05  Eric Blake  <ebb9@byu.net>
69305
69306         * modules/getaddrinfo (Depends-on): Add snprintf.
69307
69308 2006-07-05  Eric Blake  <ebb9@byu.net>
69309
69310         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
69311         to avoid 'header present but could not be compiled' on cygwin.
69312
69313 2006-07-05  Eric Blake  <ebb9@byu.net>
69314
69315         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
69316         missing from netdb.h.
69317         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
69318
69319 2006-07-05  Derek R. Price  <derek@ximbiot.com>
69320
69321         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
69322         no longer needed.
69323         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
69324         * m4/getdate.m4 (gl_GETDATE): Likewise.
69325         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
69326         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
69327         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
69328         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
69329         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
69330
69331 2006-07-05  Derek R. Price  <derek@ximbiot.com>
69332
69333         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
69334         All uses of is_space replaced by isspace.
69335         * lib/exit.h: Don't talk about STDC_HEADERS.
69336         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
69337         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
69338         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
69339         replaced by isprint etc.
69340         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
69341         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
69342         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
69343         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
69344         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
69345         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
69346
69347 2006-07-05  Bruno Haible  <bruno@clisp.org>
69348
69349         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
69350         the function exists, before testing against AIX.
69351         Reported by Martin Lambers <marlam@marlam.de>.
69352
69353 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
69354
69355         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
69356         From Mark D. Baushke.
69357
69358 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
69359
69360         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
69361         to the absolute name, not just one, to bypass Sun C 5.8's
69362         "warning: #include of /usr/include/... may be non-portable".
69363
69364 2006-07-04  Eric Blake  <ebb9@byu.net>
69365
69366         * modules/dirname-tests: New test module.
69367         * tests/test-dirname.c: New file, replacing dirname.c
69368         TEST_DIRNAME section that was recently deleted.
69369
69370 2006-07-04  Bruno Haible  <bruno@clisp.org>
69371
69372         Assume ANSI C header files and <ctype.h> functions.
69373         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
69374         (mbsnwidth): Use isprint, iscntrl instead.
69375
69376 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69377
69378         Merge from coreutils.
69379         * MODULES.html.sh: Add xstrtold.
69380         * modules/xstrtold: New file.
69381         * modules/cycle-check (Files): Add lib/same-inode.h.
69382         * modules/dirname (Files): Add m4/double-slash-root.m4.
69383         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
69384         * modules/mkdir-p (Files): Add lib/same-inode.h.
69385         * modules/same (Files): Add lib/same-inode.h.
69386
69387 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69388
69389         * m4/absolute-header.m4: Renamed from full-header-path.m4.
69390         This is to keep the terminology clean; POSIX talks about
69391         "absolute pathnames", not "full pathnames", but the GNU
69392         Coding Standards say to use "path" for something else;
69393         so use "absolute" to keep both sides happy.
69394         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
69395         Set gl_absolute_header, not gl_full_header_path.
69396         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
69397         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
69398         All uses changed.
69399
69400         Merge from coreutils.
69401
69402         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
69403
69404         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
69405         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
69406         want to require the building of c-strtod.o.
69407         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
69408         needs -lm directly.
69409         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
69410
69411         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
69412
69413         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
69414         --as-needed option if available.  Problem reported by Albert Chin in
69415         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
69416         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
69417         cc merely issues a bunch of annoying warnings for --as-needed
69418         (this problem was reported by Bob Proulx).  Also, try linking with
69419         -lm to detect a bug in binutils 2.16 (this problem was reported
69420         by Ralf Wildenhues).
69421
69422         2006-06-18  Jim Meyering  <jim@meyering.net>
69423
69424         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
69425         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
69426         macro.
69427         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
69428         also check for glibc-2.4's abort-inducing bug.
69429
69430         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
69431         Low-probability clean-up should be to use rmdir to get rid of
69432         the just-created directory, not unlink.
69433
69434         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
69435         configure fail, and request a bug report to inform us about it.
69436         Add a comment that, barring reports to the contrary, in 2007 we'll
69437         assume ftruncate is universally available.
69438
69439         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
69440
69441         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
69442
69443         2006-03-12  Jim Meyering  <jim@meyering.net>
69444
69445         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
69446         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
69447         * m4/same.m4 (gl_SAME): Likewise.
69448         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
69449
69450         2006-03-11  Eric Blake  <ebb9@byu.net>
69451
69452         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
69453         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
69454         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
69455         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
69456
69457 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
69458
69459         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
69460         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
69461         reported by Mark D. Baushke, one in
69462         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
69463
69464         Merge from coreutils.
69465
69466         * lib/.cppi-disable: Add stdint_.h.
69467         * lib/.cvsignore: Add stdint.h.
69468
69469         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
69470
69471         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
69472         both double and long double versions.
69473         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
69474         * lib/xstrtold.c: New file.
69475         * lib/xstrtod.h (xstrtold): New decl.
69476
69477         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
69478
69479         * lib/filemode.c (setst): Remove.
69480         (strmode): Rewrite to avoid setst.  This makes the code shorter,
69481         (arguably) clearer, and the generated code is a bit smaller on my
69482         Debian GNU/Linux stable x86 host.
69483
69484         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
69485
69486         * lib/filemode.c: Include "filemode.h" first, to test the interface.
69487         Assume that filemode.h includes sys/types.h and sys/stat.h.
69488         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
69489         (ftypelet): Reorder to put common cases first, for efficiency.
69490         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
69491         to do 'M'.
69492         (strmode): Renamed from mode_string, and now stores 12 bytes instead
69493         of 10, for compatibility with FreeBSD.  All callers changed.
69494         (filemodestring): Now stores 12 bytes instead of 10, and sets file
69495         types that can't be deduced solely from st_mode.  First arg is now a
69496         const pointer.
69497         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
69498         (strmode): Renamed from mode_string.
69499         (filemodestring): New decl.
69500         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
69501         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
69502         needed.
69503         (S_ISPORT, S_ISWHT): New macros, if not already defined.
69504
69505         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
69506
69507         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
69508         fsusage.h now does that.  Include fsusage.h first, to test interface.
69509         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
69510         at most one method (the old code could have generated decls that
69511         didn't conform to C89, not that this was ever exercised).
69512         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
69513
69514         2006-03-19  Jim Meyering  <jim@meyering.net>
69515
69516         Work even in a chroot where d_ino values for entries in "/"
69517         don't match the stat.st_ino values for the same names.
69518         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
69519         number, iterate through all entries again, using lstat instead.
69520         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
69521         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
69522
69523         * lib/getcwd.c (__getcwd): Clarify a comment.
69524         Use memcpy in place of a call to strcpy.
69525
69526         2006-03-12  Jim Meyering  <jim@meyering.net>
69527
69528         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
69529         matches that of the current directory (which we're about to chdir ".."
69530         out of), then save the dev-ino of the parent, instead.
69531
69532         * lib/same-inode.h (SAME_INODE): New file/macro.
69533         * lib/chdir-safer.c (SAME_INODE): Remove definition.
69534         Include "same-inode.h", instead.
69535         * lib/same.c: Likewise.
69536         * lib/cycle-check.h: Include "same-inode.h".
69537         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
69538         * lib/cycle-check.c (SAME_INODE): Remove definition.
69539         * lib/root-dev-ino.h: Include "same-inode.h".
69540
69541         2006-03-11  Eric Blake  <ebb9@byu.net>
69542
69543         * lib/same.c (same_name): s/base_name/last_component/
69544         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
69545         * lib/filenamecat.c (file_name_concat): Likewise.
69546
69547         2006-03-11  Eric Blake  <ebb9@byu.net>,
69548                     Paul Eggert  <eggert@cs.ucla.edu>
69549
69550         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
69551         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
69552         drive prefix.
69553         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
69554         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
69555         (last_component): New method.
69556         * lib/dirname.c (dir_len): Determine when drive letters need a
69557         subsequent slash.  Preserve // when it is special.
69558         (dir_name): Don't append dot when drive letter is absolute.
69559         [TEST_DIRNAME]: Move into a full-blown gnulib test.
69560         * lib/basename.c (base_name): New semantics - malloc the result.
69561         Preserve // when it is special.  Preserve relative files that look
69562         like drive letters.
69563         (base_len): Preserve // when it is special.
69564         (last_component): New method, similar to old base_name semantics.
69565         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
69566         base_name.  Strip redundant slashes from ///.
69567
69568 2006-07-03  Jim Meyering  <jim@meyering.net>
69569
69570         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
69571         macro is used before the first cycle_check call.
69572
69573 2006-07-03  Eric Blake  <ebb9@byu.net>
69574
69575         * modules/dirname (Depends-on): Add xstrndup.
69576
69577 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
69578
69579         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
69580         test cases, so that config.log is a bit easier to follow.
69581
69582 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
69583
69584         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
69585         both are 64 bits, since this seems to be the tradition, and this
69586         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
69587         we ever run into a host that prefers long long to long in this
69588         case, we'll need another configure-time test.  Problem reported by
69589         Jim Meyering.
69590
69591 2006-07-02  Eric Blake  <ebb9@byu.net>
69592
69593         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
69594
69595 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69596
69597         * modules/inttypes (Depends-on): No longer depends on stdint.
69598         * modules/stdint (Description): Say more about assumptions.
69599         Say that the fast types might differ.  Say macros are used.
69600         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
69601         (Makefile.am): Revise list of substituted symbols to match
69602         new stdint.m4.
69603         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
69604         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
69605         * tests/test-stdint.c (verify_same_types)
69606         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
69607         the code conforms to C99/C89.
69608         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
69609         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
69610
69611 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69612
69613         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
69614         but fix a bug, by requiring at least 64 bits.
69615         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
69616         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
69617         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
69618         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
69619
69620         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
69621         changes.  Make 2.59 a prerequisite.  Check and substitute for
69622         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
69623         inttypes.h.  Do not use special include files; just use the
69624         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
69625         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
69626         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
69627         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
69628         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
69629         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
69630         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
69631         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
69632         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
69633         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
69634         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
69635         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
69636         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
69637         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
69638         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
69639         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
69640         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
69641         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
69642         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
69643         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
69644         WINT_MAX.  Check for C99 conformance more strictly, by detecting
69645         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
69646         not check for things that C99 does not require, e.g., int8_t.  If
69647         a test isn't needed unless <stdint.h> isn't working, and is
69648         unlikely to be needed for any other reason, then don't do it
69649         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
69650         size_t, since we assume C89 freestanding at least.  Do not check
69651         for sig_atomic_t, wchar_t, or wint_t, since the code now does
69652         the right thing even if the types are not defined.  Instead use:
69653         (gl_STDINT_TYPE_PROPERTIES): New macro.
69654         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
69655         testing whether <sys/types.h> clashes, as Autoconf does this for
69656         us now.  All uses removed.
69657         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
69658         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
69659         (gl_CHECK_TYPE_SAME):
69660         Remove; no longer needed.
69661         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
69662         exists, since we'll return 0 anyway in that case.
69663         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
69664
69665 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
69666
69667         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
69668         possible collision with system files.
69669         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
69670         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
69671         WCHAR_MIN and WCHAR_MAX in this case.
69672         (<stddef.h>): Do not include; no longer needed.
69673         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
69674         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
69675         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
69676         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
69677         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
69678         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
69679         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
69680         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
69681         !defined(__c99))]: Include in this case too, since it's harmless
69682         now.
69683         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
69684         dangerous to do so.
69685         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
69686         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
69687         (_STDINT_MIN, _STDINT_MAX): New macros.
69688         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
69689         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
69690         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
69691         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
69692         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
69693         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
69694         macros, not typedefs; this simplifies things quite a bit.
69695         Use long int for all types narrower than int64_t.
69696         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
69697         Define in terms of long long int or int64_t or long int,
69698         not int64_t or int32_t.  This saves some compile-time testing.
69699         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
69700         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
69701         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
69702         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
69703         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
69704         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
69705         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
69706         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
69707         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
69708         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
69709         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
69710         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
69711         undef any previous version and define our own version, for
69712         simplicity and consistency with the new macros for types.
69713         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
69714         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
69715         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
69716         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
69717         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
69718         @WINT_T_SUFFIX@ to keep things simple here.
69719         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
69720         Simplify by assuming typical 8/16/32/64 host, since we're
69721         already doing that elsewhere anyway.
69722         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
69723         and assume long long int is 64 bits if available.  This
69724         speeds up 'configure'.
69725
69726 2006-07-01  Eric Blake  <ebb9@byu.net>
69727
69728         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
69729         Reported by Andreas Buening.
69730
69731 2006-07-01  Eric Blake  <ebb9@byu.net>
69732
69733         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
69734
69735 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
69736
69737         * lib/getaddrinfo.c: fixed typo
69738
69739 2006-06-29  Jim Meyering  <jim@meyering.net>
69740
69741         * modules/strftime (Maintainer): Add my name, since with the
69742         FPRINTFTIME changes strftime.c has forked from glibc.
69743
69744 2006-06-29  Eric Blake  <ebb9@byu.net>
69745
69746         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
69747
69748 2006-06-29  Eric Blake  <ebb9@byu.net>
69749
69750         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
69751
69752 2006-06-29  Eric Blake  <ebb9@byu.net>
69753
69754         * lib/stat_.h: New file.
69755
69756 2006-06-29  Eric Blake  <ebb9@byu.net>
69757
69758         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
69759         unused static function.
69760
69761 2006-06-29  Eric Blake  <ebb9@byu.net>
69762
69763         * doc/functions.texi (Function Portability): Document missing lstat
69764         on mingw.
69765
69766 2006-06-29  Eric Blake  <ebb9@byu.net>
69767
69768         * MODULES.html.sh: Add sys_stat.
69769         * modules/sys_stat: New module.
69770         * modules/mkstemp (Depends-on): Add sys_stat.
69771
69772 2006-06-29  Derek R. Price  <derek@ximbiot.com>
69773
69774         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
69775
69776 2006-06-29  Derek R. Price  <derek@ximbiot.com>
69777
69778         * m4/c-bs-a.m4: Removed.
69779
69780 2006-06-29  Derek R. Price  <derek@ximbiot.com>
69781
69782         * lib/strftime.c: Assume strftime() exists.
69783
69784 2006-06-29  Derek Price  <derek@ximbiot.com>
69785
69786         * modules/c-bs-a: Removed - \a is C89.
69787         * MODULES.html.sh: Remove c-bs-a.
69788
69789 2006-06-29  Bruno Haible  <bruno@clisp.org>
69790
69791         * modules/wcwidth (License): Change to LGPL.
69792
69793 2006-06-28  Simon Josefsson  <jas@extundo.com>
69794
69795         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
69796         on _WIN32.
69797
69798         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
69799         getnameinfo.
69800
69801 2006-06-28  Simon Josefsson  <jas@extundo.com>
69802
69803         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
69804
69805 2006-06-28  Simon Josefsson  <jas@extundo.com>
69806
69807         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
69808         functions there.  It will succeed on Windows XP, but on Windows
69809         2000 and (presumably) earlier, it will fail, and use the internal
69810         re-implementation.
69811         (use_win32_p): New function.
69812         (getaddrinfo): Use strtoul on servname, to support numeric ports.
69813         Support AI_NUMERICSERV to disable getservbyname.
69814         (getnameinfo): New function, only supports
69815         NI_NUMERICHOST|NI_NUMERICSERV for now.
69816
69817         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
69818         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
69819         getnameinfo.
69820
69821 2006-06-28  Eric Blake  <ebb9@byu.net>
69822
69823         * modules/wcwidth: New file.
69824         * modules/mbchar (Depends-on): Add wcwidth.
69825         * modules/mbswidth (Depends-on): Add wcwidth.
69826         * MODULES.html.sh: Add wcwidth.
69827
69828 2006-06-28  Eric Blake  <ebb9@byu.net>
69829
69830         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
69831         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
69832
69833 2006-06-28  Eric Blake  <ebb9@byu.net>
69834
69835         * lib/xvasprintf.h: Fix comments.
69836
69837 2006-06-28  Eric Blake  <ebb9@byu.net>
69838
69839         * lib/mbchar.h (wcwidth): Include wcwidth.h.
69840         * lib/mbswidth.c (wcwidth): Move from here...
69841         * lib/wcwidth.h: ...to this new file.
69842
69843 2006-06-28  Derek R. Price  <derek@ximbiot.com>
69844
69845         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
69846
69847         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
69848         it's obsolete.
69849         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
69850
69851 2006-06-28  Derek R. Price  <derek@ximbiot.com>
69852
69853         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
69854         Autoconf 2.60 says this stuff was obsolete.
69855
69856 2006-06-28  Bruno Haible  <bruno@clisp.org>
69857
69858         * modules/wcwidth (Files): Add m4/wchar_t.m4.
69859
69860 2006-06-28  Bruno Haible  <bruno@clisp.org>
69861
69862         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
69863         gt_TYPE_WCHAR_T.
69864
69865 2006-06-28  Bruno Haible  <bruno@clisp.org>
69866
69867         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
69868         declaration for wcwidth.
69869         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
69870
69871 2006-06-28  Bruno Haible  <bruno@clisp.org>
69872
69873         * lib/mkdtemp.c [MINGW]: Include <io.h>.
69874         (mkdir): Define using _mkdir.
69875
69876 2006-06-28  Bruno Haible  <bruno@clisp.org>
69877
69878         * lib/getaddrinfo.h: Fix POSIX URL.
69879         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
69880         _WIN32.
69881         (use_win32_p): Make static.
69882         (getaddrinfo): Reject service name if it is empty or does not consist
69883         solely of decimal digits, or if its value is > 65535.
69884         (getnameinfo): Remove useless casts.
69885
69886 2006-06-27  Simon Josefsson  <jas@extundo.com>
69887
69888         * modules/sys_select: New file, suggested by Bruno Haible, Paul
69889         Eggert and Martin Lambers.
69890
69891 2006-06-27  Simon Josefsson  <jas@extundo.com>
69892
69893         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
69894         Eggert and Martin Lambers.
69895
69896 2006-06-27  Bruno Haible  <bruno@clisp.org>
69897
69898         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
69899         result to 0, not to empty.
69900         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
69901
69902 2006-06-27  Bruno Haible  <bruno@clisp.org>
69903
69904         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
69905
69906 2006-06-26  Simon Josefsson  <jas@extundo.com>
69907
69908         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
69909         present.
69910
69911 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
69912
69913         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
69914         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
69915         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
69916
69917 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
69918
69919         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
69920
69921 2006-06-26  Bruno Haible  <bruno@clisp.org>
69922
69923         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
69924
69925 2006-06-26  Bruno Haible  <bruno@clisp.org>
69926
69927         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
69928
69929 2006-06-26  Bruno Haible  <bruno@clisp.org>
69930
69931         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
69932         SGI C compiler in pre-C99 mode.
69933         Suggested by Mark D. Baushke and Larry Jones.
69934
69935 2006-06-26  Bruno Haible  <bruno@clisp.org>
69936
69937         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
69938         WCHAR_MAX.
69939         Reported by Mark D. Baushke and Larry Jones.
69940
69941 2006-06-26  Bruno Haible  <bruno@clisp.org>
69942
69943         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
69944         in pre-C99 mode.
69945         Suggested by Mark D. Baushke and Larry Jones.
69946
69947 2006-06-23  Simon Josefsson  <jas@extundo.com>
69948             Bruno Haible  <bruno@clisp.org>
69949
69950         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
69951         Emit mostlyclean-local rule.
69952         (func_emit_tests_Makefile_am): Likewise.
69953         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
69954
69955 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
69956
69957         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
69958
69959 2006-06-23  Bruno Haible  <bruno@clisp.org>
69960
69961         * tests/test-stdint.c: Update to match ISO C 99 Technical
69962         Corrigendum 1.
69963
69964 2006-06-23  Bruno Haible  <bruno@clisp.org>
69965
69966         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
69967
69968 2006-06-23  Bruno Haible  <bruno@clisp.org>
69969
69970         * lib/stdint_.h: Treat IRIX like OpenBSD.
69971
69972 2006-06-23  Bruno Haible  <bruno@clisp.org>
69973
69974         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
69975         ISO C 99 Technical Corrigendum 1.
69976
69977 2006-06-22  Simon Josefsson  <jas@extundo.com>
69978
69979         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
69980         MinGW.
69981
69982 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69983
69984         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
69985         needed.  Some compiler complained about some of them.  Problem reported
69986         by Larry Jones in
69987         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
69988
69989 2006-06-21  Simon Josefsson  <jas@extundo.com>
69990
69991         * tests/test-getaddrinfo.c: New file.
69992
69993         * modules/getaddrinfo-tests: New file.
69994
69995         * MODULES.html.sh: Add inet_pton.
69996
69997         * modules/inet_pton: New file.
69998
69999 2006-06-21  Simon Josefsson  <jas@extundo.com>
70000
70001         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
70002         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
70003         of using the (limited) gnulib implementation on Windows XP.
70004
70005         * m4/inet_pton.m4: New file.
70006
70007 2006-06-21  Simon Josefsson  <jas@extundo.com>
70008
70009         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
70010         variable.
70011
70012         * lib/socket_.h: Don't define WINVER.
70013
70014         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
70015         slightly modified to work in gnulib.
70016
70017 2006-06-21  Simon Josefsson  <jas@extundo.com>
70018
70019         * doc/gnulib.texi (Windows sockets): Add.
70020
70021 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
70022
70023         * lib/read-file.c (fread_file): Start with buffer allocation of
70024         0 bytes rather than 1 byte; this simplifies the code.
70025         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
70026         code to free buffer and save/restore errno.
70027         (internal_read_file): Remove unused local.
70028
70029 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
70030
70031         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
70032         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
70033         Problem reported by Denis Excoffier in
70034         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
70035
70036 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70037
70038         * modules/sys_socket, modules/socklen: Include sys/types since
70039         FreeBSD 4.x's sys/socket.h needs it.
70040
70041 2006-06-19  Simon Josefsson  <jas@extundo.com>
70042
70043         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
70044
70045 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
70046
70047         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
70048
70049 2006-06-19  Bruno Haible  <bruno@clisp.org>
70050
70051         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
70052         and FULL_PATH_INTTYPES_H in angle brackets.
70053         Reported by Mark D. Baushke <mdb@gnu.org>.
70054
70055 2006-06-17  Eric Blake  <ebb9@byu.net>
70056
70057         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
70058         errno.
70059
70060 2006-06-17  Bruno Haible  <bruno@clisp.org>
70061
70062         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
70063         <sys/inttypes.h>.
70064
70065 2006-06-17  Bruno Haible  <bruno@clisp.org>
70066
70067         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
70068         whether errno is declared. Assume <errno.h> declares errno.
70069
70070 2006-06-17  Bruno Haible  <bruno@clisp.org>
70071
70072         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
70073
70074 2006-06-17  Bruno Haible  <bruno@clisp.org>
70075
70076         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
70077         problem on Solaris 2.5.1.
70078
70079 2006-06-16  Eric Blake  <ebb9@byu.net>
70080
70081         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
70082         * lib/unicodeio.c [!defined errno]: Likewise.
70083         * lib/strtol.c [!defined errno]: Likewise.
70084         * lib/strtod.c [!defined errno]: Likewise.
70085
70086 2006-06-15  Eric Blake  <ebb9@byu.net>
70087
70088         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
70089
70090 2006-06-15  Eric Blake  <ebb9@byu.net>
70091
70092         * config/srclist.txt (ssize_t.m4): Lose sync.
70093
70094 2006-06-15  Bruno Haible  <bruno@clisp.org>
70095
70096         * modules/stdint (Files): Include m4/full-header-path.m4,
70097         m4/size_max.m4, m4/wchar_t.m4.
70098         (Makefile.am): Many more substitutions.
70099         * modules/stdint-tests: New file.
70100         * tests/test-stdint.c: New file.
70101
70102 2006-06-15  Bruno Haible  <bruno@clisp.org>
70103
70104         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
70105         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
70106         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
70107         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
70108         gl_CHECK_TYPE_SAME): New macros.
70109
70110 2006-06-15  Bruno Haible  <bruno@clisp.org>
70111
70112         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
70113
70114 2006-06-15  Bruno Haible  <bruno@clisp.org>
70115
70116         * lib/stdint_.h: Rewritten to be fully auto-configured.
70117         Fixes bug on HP-UX/IA64.
70118
70119 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
70120
70121         * lib/getdate.y (__attribute__): Don't define if already defined.
70122         Problem reported by Larry Jones.
70123         * lib/utimens.c (__attribute__): Likewise.
70124
70125 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
70126
70127         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
70128         reported by Andreas Schwab.
70129
70130 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70131             Bruno Haible  <bruno@clisp.org>
70132
70133         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
70134         check for the declaration of strnlen and a run test that exposes the
70135         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
70136         rpl_strndup.
70137
70138 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70139             Bruno Haible  <bruno@clisp.org>
70140
70141         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
70142
70143 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70144
70145         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
70146         compile test, for Tru64 4.0D.
70147
70148 2006-05-28  Karl Berry  <karl@gnu.org>
70149
70150         * config/srclist.txt (printf-args.c): lose sync.
70151
70152 2006-05-26  Martin Lambers  <marlam@marlam.de>
70153
70154         * lib/getpass.c: Updates the test for the native W32 API, and adds
70155         missing includes, thus fixing compilation warnings.
70156
70157 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
70158
70159         * lib/exclude.c (exclude_fnmatch): New function.
70160         (excluded_file_name): Call exclude_fnmatch.
70161         * lib/exclude.h (excluded_file_name): New prototype
70162
70163 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
70164
70165         * lib/tempname.c (small_open, large_open): New macros.
70166         (__open, __open64) [!_LIBC]: Remove.
70167         (__gen_tempname): Use small_open and large_open instead of __open
70168         and __open64.  This fixes a portability bug on HP-UX 11.11i
70169         reported by Simon Wing-Tang in
70170         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
70171
70172 2006-05-24  Bruno Haible  <bruno@clisp.org>
70173
70174         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
70175         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
70176         Reported by Thorsten Maerz <torte@netztorte.de> via
70177         Aaron Stone <aaron@serendipity.cx>.
70178
70179 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70180
70181         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
70182         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
70183         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
70184         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
70185         not really conditional on the cache.
70186         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
70187
70188 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
70189
70190         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
70191         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
70192         (my_usleep): Don't mishandle maximum value.
70193
70194 2006-05-19  Jim Meyering  <jim@meyering.net>
70195
70196         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
70197
70198 2006-05-17  Bruno Haible  <bruno@clisp.org>
70199
70200         Cygwin portability.
70201         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
70202
70203 2006-05-17  Bruno Haible  <bruno@clisp.org>
70204
70205         * lib/stdint_.h: Fix recognition of Cygwin.
70206
70207 2006-05-15  Bruno Haible  <bruno@clisp.org>
70208
70209         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
70210         on libtool patch by Ralf Wildenhues.
70211
70212 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
70213
70214         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
70215         test for C99 conformance; (bool) 0.5 is an integer constant
70216         expression, but (bool) -0.5 is not.  Problem reported by Fedor
70217         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
70218
70219 2006-05-11  Simon Josefsson  <jas@extundo.com>
70220
70221         * m4/xvasprintf.m4: Fix obvious typo.
70222
70223 2006-05-11  Jim Meyering  <jim@meyering.net>
70224
70225         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
70226         James Lemley.
70227
70228 2006-05-10  Simon Josefsson  <jas@extundo.com>
70229
70230         * lib/md4.c: Typo fix, update copyright years.
70231         (K1, K2): Don't use L because it turn computations into 64-bit on
70232         64-bit platforms.
70233
70234 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
70235
70236         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
70237         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
70238         unwanted sign propagation, e.g., on hosts with 64-bit int.
70239         There still are some problems with reeelly weird theoretical hosts
70240         (e.g., 33-bit int) but it's not worth worrying about now.
70241         * lib/sha1.c (rol): Likewise.
70242         (K1, K2, K3, K4): Remove unnecessary L suffix.
70243
70244 2006-05-10  Bruno Haible  <bruno@clisp.org>
70245
70246         * lib/des.c: Cast to avoid warnings.
70247
70248 2006-05-09  Bruno Haible  <bruno@clisp.org>
70249
70250         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
70251         (Depends-on): Depend also on xsize, stdarg.
70252         (configure.ac): Add gl_XVASPRINTF.
70253
70254 2006-05-09  Bruno Haible  <bruno@clisp.org>
70255
70256         * m4/xvasprintf.m4: New file.
70257
70258 2006-05-09  Bruno Haible  <bruno@clisp.org>
70259
70260         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
70261         (EOVERFLOW): Define fallback value.
70262         (xstrcat): New function.
70263         (xvasprintf): Recognize the special case of a string concatenation.
70264
70265 2006-05-08  Eric Blake  <ebb9@byu.net>
70266
70267         * gnulib-tool (func_version): Base copyright year on CVS date.
70268         (func_emit_copyright_notice): New function.
70269         (func_emit_lib_Makefile_am): Use it.
70270         (func_emit_tests_Makefile_am): Likewise.
70271         (func_import): Likewise.
70272
70273 2006-05-08  Bruno Haible  <bruno@clisp.org>
70274
70275         * modules/stdarg: New file.
70276         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
70277
70278 2006-05-08  Bruno Haible  <bruno@clisp.org>
70279
70280         * m4/stdarg.m4: New file, from GNU gettext.
70281
70282 2006-05-08  Bruno Haible  <bruno@clisp.org>
70283
70284         * config/srclist.txt (build-aux/config.rpath): different from latest
70285         release.
70286
70287 2006-05-08  Bruno Haible  <bruno@clisp.org>
70288
70289         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
70290
70291 2006-05-05  Jim Meyering  <jim@meyering.net>
70292
70293         * m4/warning.m4: New file, derived from bison's file by the same name.
70294
70295 2006-05-03  Bruno Haible  <bruno@clisp.org>
70296
70297         * lib/stdint_.h: Shorter URL.
70298         * lib/inttypes.h: Likewise.
70299
70300 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70301
70302         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
70303
70304 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70305
70306         * lib/verify.h: Document the internals better.  Most of this change
70307         was written by Bruno Haible.
70308
70309 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70310
70311         * doc/verify.texi: New file, partly based on a proposal by
70312         Bruno Haible.
70313
70314 2006-05-02  Bruno Haible  <bruno@clisp.org>
70315
70316         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
70317         test from here...
70318         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
70319
70320 2006-04-29  Bruno Haible  <bruno@clisp.org>
70321
70322         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
70323         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
70324
70325 2006-04-29  Bruno Haible  <bruno@clisp.org>
70326
70327         * gnulib-tool: Make --update option actually work.
70328
70329 2006-04-29  Bruno Haible  <bruno@clisp.org>
70330
70331         * doc/gcd.texi: New file.
70332         * doc/gnulib.texi: Include it.
70333
70334 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
70335
70336         * lib/getdate.y (get_date): When adding relative date, start with the
70337         initial time, not with the result of the first mktime call.
70338
70339 2006-04-25  Bruno Haible  <bruno@clisp.org>
70340
70341         * gnulib-tool (func_import): Output the include directives in three
70342         blocks, sorted separately.
70343         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70344
70345 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
70346
70347         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
70348         to define main with arguments, for C++.  Reported by Eric Blake.
70349         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
70350         Prefer 'int main ()' to 'int main (void)', for C++.
70351         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
70352         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
70353         for 'main', for C99 and C++.
70354
70355 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
70356
70357         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
70358         Don't assume that exit status -1 is valid.
70359         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70360         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
70361         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
70362         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
70363         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
70364         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
70365         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
70366         functions can be used without declaring them, or that you can
70367         exit with status -1.
70368         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
70369
70370 2006-04-24  Karl Berry  <karl@gnu.org>
70371
70372         * config/srclist.txt (longdouble.m4): sync lost.
70373
70374 2006-04-24  Eric Blake  <ebb9@byu.net>
70375
70376         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
70377
70378 2006-04-24  Bruno Haible  <bruno@clisp.org>
70379
70380         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
70381         poll() implementation in AIX.
70382         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70383
70384 2006-04-24  Bruno Haible  <bruno@clisp.org>
70385
70386         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
70387         assigned exactly once.
70388
70389 2006-04-23  Claudio Fontana  <claudio@gnu.org>
70390             Bruno Haible  <bruno@clisp.org>
70391
70392         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
70393         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
70394         for AM_CPPFLAGS.
70395
70396 2006-04-23  Bruno Haible  <bruno@clisp.org>
70397
70398         * modules/copy-file: Depend on unistd.
70399         * modules/execute: Likewise.
70400         * modules/fatal-signal: Likewise.
70401         * modules/findprog: Likewise.
70402         * modules/mkdtemp : Likewise.
70403         * modules/pipe: Likewise.
70404         * modules/wait-process: Likewise.
70405
70406 2006-04-23  Bruno Haible  <bruno@clisp.org>
70407
70408         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
70409         condition was already detected.
70410         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70411
70412 2006-04-23  Bruno Haible  <bruno@clisp.org>
70413
70414         * lib/copy-file.c: Include <unistd.h> unconditionally.
70415         * lib/execute.c: Likewise.
70416         * lib/fatal-signal.c: Likewise.
70417         * lib/findprog.c: Likewise.
70418         * lib/mkdtemp.c: Likewise.
70419         * lib/pipe.h: Likewise.
70420         * lib/pipe.c: Likewise.
70421         * lib/wait-process.h: Likewise.
70422
70423 2006-04-23  Bruno Haible  <bruno@clisp.org>
70424
70425         * gnulib-tool (func_usage): Fix --import description. Document
70426         --update.
70427         (func_import): Create temporary file in a temporary directory, if
70428         --dry-run is specified. Silence errors from 'grep' when there are no
70429         m4 files in $m4dir.
70430         (func_create_testdir): Silence errors from 'grep' when there are no
70431         m4 files in $m4dir.
70432         Reported by Karl Berry <karl@freefriends.org>.
70433
70434 2006-04-20  Bruno Haible  <bruno@clisp.org>
70435
70436         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
70437         one argument, so that the code will be portable to Autoconf 2.60.
70438         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
70439         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
70440         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
70441
70442 2006-04-19  Derek Price  <derek@ximbiot.com>
70443             Eric Blake  <ebb9@byu.net>
70444
70445         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
70446         rather than "/full/path.h".  Update comment to match.  Shorten &
70447         generalize m4_translit call via AS_TR_CPP.
70448
70449 2006-04-19  Derek Price  <derek@ximbiot.com>
70450             Eric Blake  <ebb9@byu.net>
70451
70452         * lib/inttypes.h: Correct grammar in comment.
70453
70454 2006-04-18  Derek Price  <derek@ximbiot.com>
70455             Paul Eggert  <eggert@cs.ucla.edu>
70456
70457         * modules/inttypes: New file.
70458         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
70459
70460 2006-04-18  Derek Price  <derek@ximbiot.com>
70461             Paul Eggert  <eggert@cs.ucla.edu>
70462
70463         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
70464         New files.
70465
70466 2006-04-18  Derek Price  <derek@ximbiot.com>
70467             Paul Eggert  <eggert@cs.ucla.edu>
70468
70469         * lib/inttypes.h: New file.
70470         * lib/strtoimax.c: Assume <inttypes.h>.
70471
70472 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
70473
70474         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
70475         isn't mounted.  Problem reported by Kir Kolyshkin.
70476
70477 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
70478
70479         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
70480         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
70481         Derek R. Price.
70482         * lib/regex.h (RE_DUP_MAX): Update comment to match current
70483         implementation.
70484
70485 2006-04-12  Eric Blake  <ebb9@byu.net>
70486
70487         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
70488         is now done automatically by the corresponding Autoconf macro.
70489
70490 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
70491
70492         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
70493         time_r.h.
70494
70495 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70496
70497         Merge regex changes from libc, removing some of our
70498         POSIX-conformance changes that were rejected and redoing them in a
70499         less-intrusive way.
70500
70501         * lib/regcomp.c (re_compile_internal, init_dfa):
70502         Length arg is now size_t, not Idx.  All uses changed.
70503         (peek_token): Forward decl now says internal_function.
70504         (__re_error_msgid, __re_error_msgid_idx):
70505         Now static rather than extern with attribute_hidden.
70506         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
70507         For some reason libc prefers K&R style defns for external functions.
70508         (regerror) [!defined _LIBC]: Likewise.
70509         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
70510         (seek_collating_symbol_entry, lookup_collation_sequence_value):
70511         (build_range_exp, build_collating_symbol):
70512         Use K&R-style defn.
70513         (re_compile_fastmap): Use '\0' to memset, not 0.
70514         (utf8_sb_map): Make the calculations more obvious.
70515         (init_dfa, parse_bracket_exp, build_charclass_op):
70516         Call calloc and cast result, as glibc does.
70517         (init_word_char, fetch_token, peek_token, peek_token_bracket):
70518         (build_range_exp, build_collating_symbol):
70519         Now internal functions.
70520
70521         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
70522
70523         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
70524         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
70525         Don't depend on VMS; depend on __VMS instead, for POSIX
70526         namespace cleanness.
70527         (regoff_t): Define to ssize_t, not long int.
70528
70529         Remove the REG_ macros named below.  Instead, make the old names
70530         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
70531         __USE_GNU_REGEX.
70532         (REG_BACKSLASH_ESCAPE_IN_LISTS):
70533         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
70534         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
70535         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
70536         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
70537         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
70538         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
70539         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
70540         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
70541         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
70542         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
70543         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
70544         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
70545         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
70546         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
70547         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
70548         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
70549         (REG_NREGS):
70550         Remove.  All uses replaced by the old RE_* names.
70551         (RE_BACKSLASH_ESCAPE_IN_LISTS):
70552         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
70553         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
70554         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
70555         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
70556         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
70557         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
70558         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
70559         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
70560         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
70561         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
70562         Don't bother having these macros be independent of each others'
70563         values, since they no longer exist in the POSIX name space.
70564
70565         Rename the following member names back to their old names,
70566         unless !__USE_GNU_REGEX.  All uses changed back.
70567         (buffer): Renamed from re_buffer.
70568         (allocated): Renamed from re_allocated.
70569         (used): Renamed from re_used.
70570         (syntax): Renamed from re_syntax.
70571         (fastmap): Renamed from re_fastmap.
70572         (translate): Renamed from re_translate.
70573         (can_be_null): Renamed from re_can_be_null.
70574         (regs_allocated): Renamed from re_regs_allocated.
70575         (fastmap_accurate): Renamed from re_fastmap_accurate.
70576         (no_sub): Renamed from re_no_sub.
70577         (not_bol): Renamed from re_not_bol.
70578         (not_eol): Renamed from re_not_eol.
70579         (newline_anchor): Renamed from re_newline_anchor.
70580         (num_regs): Renamed from rm_num_regs.
70581         (start): Renamed from rm_start.
70582         (end): Renamed from rm_end.
70583
70584         (free_state): Move up a bit.
70585
70586         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
70587         #define to be empty.
70588         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
70589         when that is what is intended.
70590         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
70591         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
70592         (MAX): New macro.
70593         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
70594         All uses changed back to re_malloc, etc.  It's now the caller's
70595         responsibility to check for overflow; all callers changed.
70596         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
70597         (re_x2nrealloc): Remove.
70598         (free_state): Remove decl.
70599
70600         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
70601         (re_set_registers, re_exec):
70602         Use K&R-style defn.
70603
70604         2006-01-31  Roland McGrath  <roland@redhat.com>
70605
70606         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
70607         Reported by Mike Frysinger <vapier@gentoo.org>.
70608
70609         2006-01-15  Andreas Jaeger  <aj@suse.de>
70610
70611         [BZ #1950]
70612         * lib/regex_internal.c (re_string_reconstruct): Adjust for
70613         build_wcs_upper_buffer change.
70614         (build_wcs_upper_buffer): Change return type.
70615
70616         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
70617
70618         * lib/regex_internal.h: Include <stdint.h> if available.
70619
70620         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
70621
70622         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
70623
70624         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70625
70626         * lib/regcomp.c: Adjust for changed secondary hash function.
70627
70628         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
70629
70630         * lib/regex.h: Pretty printing.
70631         Clean up namespace a bit.
70632
70633         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
70634
70635         * lib/regexec.c (update_cur_sifted_state, check_arrival,
70636         check_arrival_add_next_nodes): Avoid using uninitialized variable.
70637
70638         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
70639                     Ulrich Drepper  <drepper@redhat.com>
70640
70641         [BZ #1302]
70642         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
70643         changed.
70644         (bitset_word_t): Renamed from bitset_word.  All uses changed.
70645
70646         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
70647
70648         [BZ #281]
70649         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
70650         * lib/regcomp.c: Remove unnecessary uses of
70651         unsigned RE_TRANSLATE_TYPE.
70652         * lib/regex_internal.h: Likewise.
70653         * lib/regex_internal.c: Likewise.
70654         * lib/regexec.c: Likewise.
70655         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
70656
70657         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
70658
70659         * lib/regexec.c (find_recover_state): Remove unnecessary
70660         initialization.
70661         (transit_state_bkref): Make DFA a const pointer.
70662         (get_subexp): Likewise.
70663         (check_arrival): Likewise.
70664         (update_cur_sifted_state): Likewise.
70665         (re_search_internal): Likewise.
70666         (prune_impossible_nodes): Likewise.
70667         (acquire_init_state_context): Likewise.
70668         (proceed_next_node): Likewise.
70669         (set_regs): Likewise.
70670         (free_fail_stack_return): Likewise.
70671         (check_arrival_expand_ecl): Mark DFA parameter as const.
70672         (check_arrival_expand_ecl_sub): Likewise.
70673         (check_subexp_limits): Likewise.
70674         (sub_epsilon_src_nodes):  Likewise.
70675         (add_epsilon_src_nodes):  Likewise.
70676         (merge_state_array): Likewise.
70677         (update_regs): Likewise.
70678         (build_trtable): Likewise.
70679         (sift_states_backward): Mark MCTX parameter as const.
70680         (build_sifted_states): Likewise.
70681         (update_cur_sifted_state): Likewise.
70682         (sift_states_mkref): Likewise.
70683         (check_arrival_expand_ecl): Mark eclosure as const.
70684         (check_dst_limits_calc_pos_1): Likewise.
70685         * lib/regex_internal.h (re_match_context_t): Make dfa a const
70686         pointer.
70687
70688         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
70689
70690         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
70691         (transit_state_sb): Likewise.
70692         (transit_state_mb): Likewise.
70693         (sift_states_iter_mb): Likewise.
70694         (check_arrival_add_next_nodes): Likewise.
70695         (check_node_accept_bytes): Change first parameter to pointer-to-const.
70696         [_LIBC] (re_search_2_stub): Use mempcpy.
70697
70698         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
70699         mbrtowc for very simple UTF-8 case.
70700
70701         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
70702         a pointer-to-const.
70703         (re_acquire_state_context): Likewise.
70704         * lib/regex_internal.h: Adjust prototypes.
70705
70706         * lib/regex.c: Prevent using C++ compilers.
70707
70708         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
70709         (re_acquire_state_context): Likewise.
70710
70711 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70712
70713         * modules/regex (Depends-on): Add ssize_t.
70714
70715 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70716
70717         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
70718         translation table.
70719
70720 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
70721
70722         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
70723
70724 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
70725             Bruno Haible  <bruno@clisp.org>
70726
70727         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
70728         <sys/types.h> and <inttypes.h>.
70729
70730 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70731
70732         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
70733         `__error_t_defined', so argp.h will not typedef the former.
70734
70735 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
70736
70737         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
70738         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
70739         glibc names.  Even if glibc is changed to conform to POSIX, the
70740         traditional names will be available anyway, since regex depends on
70741         the extensions module.  Also, fix a longstanding typo in the
70742         implementation of Spencer ERE test #75 from grep 2.3.  Problems
70743         reported by Emanuele Giaquinta.  Also, change sense of cached
70744         variable, so that the message makes sense.
70745
70746 2006-03-24  Simon Josefsson  <jas@extundo.com>
70747
70748         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
70749         including some doc fixes.
70750         (base64_encode_alloc): Fix +1 bug on allocation failures.
70751
70752 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70753
70754         * lib/base64.c (base64_encode): Do not read past end of array with
70755         unsanitized input on systems with CHAR_BIT > 8.
70756
70757 2006-03-24  Eric Blake  <ebb9@byu.net>
70758
70759         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
70760
70761 2006-03-22  Karl Berry  <karl@gnu.org>
70762
70763         * config/srclist.txt (*setenv.[ch]): get from coreutils.
70764         * config/srclistvars.sh (COREUTILS): new var.
70765
70766 2006-03-17  Jim Meyering  <jim@meyering.net>
70767
70768         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
70769         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
70770
70771 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
70772
70773         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
70774         no longer needs it.  Instead, check that regoff_t is as least
70775         as wide as ptrdiff_t.
70776
70777         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
70778         so that our regex.h stays compatible with the installed regex.
70779         This is helpful for installers who configure --without-included-regex.
70780         Problem reported by Emanuele Giaquinta.
70781
70782 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
70783
70784         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
70785         Typedef to long int, not to off_, as POSIX will likely change
70786         in that direction.
70787
70788 2006-03-15  Eric Blake  <ebb9@byu.net>
70789
70790         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
70791
70792 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
70793
70794         * lib/argp-help.c (validate_uparams): Fix typo
70795         * lib/argp-parse.c (argp_default_options): Consistently begin help
70796         messages with a lowercase letter.
70797
70798 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
70799
70800         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
70801         overrun buffers and shouldn't be used (much as gets shouldn't be
70802         used).
70803         * lib/time_r.c (asctime_r, ctime_r): Likewise.
70804
70805 2006-03-08  Simon Josefsson  <jas@extundo.com>
70806
70807         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
70808         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70809
70810 2006-03-08  Simon Josefsson  <jas@extundo.com>
70811
70812         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
70813         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70814
70815 2006-03-08  Simon Josefsson  <jas@extundo.com>
70816
70817         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
70818         signal that configure disabled the device.
70819
70820 2006-03-08  Simon Josefsson  <jas@extundo.com>
70821
70822         * build-aux/maint.mk: Fix refresh-po, to handle no translated
70823         languages.
70824
70825 2006-03-07  Simon Josefsson  <jas@extundo.com>
70826
70827         * modules/getopt (Depends-on): Add unistd.
70828
70829         * modules/unistd: New file.
70830
70831 2006-03-07  Simon Josefsson  <jas@extundo.com>
70832
70833         * modules/gc-random: New file.
70834
70835 2006-03-07  Simon Josefsson  <jas@extundo.com>
70836
70837         * m4/unistd_h.m4: New file.
70838
70839 2006-03-07  Simon Josefsson  <jas@extundo.com>
70840
70841         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
70842         test to be side-effect free by storing the result in the cache
70843         variable gl_cv_lib_readline, and moving the assignment of
70844         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
70845         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70846
70847 2006-03-07  Simon Josefsson  <jas@extundo.com>
70848
70849         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
70850         error on missing devices (the functions will return an error).
70851
70852         * m4/gc.m4: Move random stuff to gc-random.m4
70853
70854 2006-03-07  Simon Josefsson  <jas@extundo.com>
70855
70856         * lib/unistd_.h: New file.
70857
70858 2006-03-07  Simon Josefsson  <jas@extundo.com>
70859
70860         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
70861
70862 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
70863
70864         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
70865         Problem reported by Juan Manuel Guerrero.
70866
70867 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
70868
70869         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
70870         the unistd module.
70871         * lib/getlogin_r.c: Likewise.
70872         * lib/getlogin_r.h: Likewise.
70873         * lib/glob.c: Likewise.
70874         * lib/pagealign_alloc.c: Likewise.
70875         * lib/unistd_.h: Remove; no longer needed.
70876
70877 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
70878
70879         * MODULES.html.sh (Support for systems lacking POSIX:2001):
70880         Add unistd.
70881         * modules/c-stack (Depends-on): Add unistd.
70882         * modules/getlogin_r: Likewise.
70883         * modules/glob: Likewise.
70884         * modules/pagealign_alloc: Likewise.
70885         * modules/unistd (Files): Remove lib/unistd_.h.
70886         (EXTRA_DIST): Remove.
70887         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
70888         need unistd_.h.
70889         (MOSTLYCLEANFILES): Remove unistd.h-t.
70890
70891 2006-03-03  Simon Josefsson  <jas@extundo.com>
70892
70893         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
70894
70895 2006-03-03  Simon Josefsson  <jas@extundo.com>
70896
70897         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
70898         libidn and bison.
70899
70900 2006-03-03  Simon Josefsson  <jas@extundo.com>
70901
70902         * build-aux/maint.mk: Add indent target.
70903
70904 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
70905
70906         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
70907         our replacement poll.h in any case, to avoid a differing
70908         declaration from a system header.  Seen on AIX.
70909
70910 2006-03-01  Simon Josefsson  <jas@extundo.com>
70911
70912         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
70913         <kasal@ucw.cz>.
70914
70915 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70916
70917         * modules/gettime (Depends-on): Add extensions module.
70918         * modules/nanosleep (Depends-on): Likewise.
70919         * modules/settime (Depends-on): Likewise.
70920
70921 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70922
70923         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
70924         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
70925         pedantically.
70926         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70927         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
70928
70929         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
70930         not "==".  Reported by Ralf Wildenhues.
70931
70932 2006-03-01  Karl Berry  <karl@gnu.org>
70933
70934         * doc/Copyright/request-*: new files, synced from gnuorg.
70935
70936 2006-03-01  Karl Berry  <karl@gnu.org>
70937
70938         * config/srclist.txt (Copyright/*): new entries.
70939
70940 2006-02-28  Simon Josefsson  <jas@extundo.com>
70941
70942         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
70943
70944 2006-02-27  Simon Josefsson  <jas@extundo.com>
70945
70946         * lib/base64.h: Indent #define's.  From Jim Meyering
70947         <jim@meyering.net>.
70948
70949 2006-02-27  Jim Meyering  <jim@meyering.net>
70950
70951         Revert the change of 2006-02-24, so these files can continue
70952         to be sync'd from gettext.
70953         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
70954         of `config.h'.
70955
70956 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
70957
70958         * modules/intprops: New file.
70959         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
70960         Add intprops.
70961         * modules/getloadavg (Files): Remove lib/intprops.h.
70962         (Depends-on): Add intprops.
70963         * modules/human: Likewise.
70964         * modules/inttostr: Likewise.
70965         * modules/openat: Likewise.
70966         * modules/sig2str: Likewise.
70967         * modules/userspec: Likewise.
70968         * modules/utimecmp: Likewise.
70969         * modules/xnanosleep: Likewise.
70970         * modules/xstrtol: Likewise.
70971
70972 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
70973
70974         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
70975         * modules/lock-tests (TESTS): Use $(EXEEXT).
70976         * modules/tls-tests: Likewise.
70977         * modules/argp-tests: Likewise.
70978         (check_PROGRAMS): New var, replacing...
70979         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
70980
70981 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70982
70983         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
70984         `config.h'.
70985
70986 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
70987
70988         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
70989
70990 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70991
70992         Sync from coreutils.
70993         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
70994         gl_CHDIR_SAFER.
70995
70996 2006-02-22  Jim Meyering  <jim@meyering.net>
70997
70998         Sync from coreutils.
70999         * m4/chdir-safer.m4: New file.
71000
71001 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
71002
71003         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
71004         AT_FDCWD exceeds INT_MAX.
71005         * lib/openat.h (AT_FDCWD): Likewise.
71006
71007 2006-02-17  Eric Blake  <address@hidden>
71008
71009         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
71010
71011 2006-02-16  Simon Josefsson  <jas@extundo.com>
71012
71013         * modules/getaddrinfo (Depends-on): Add sys_socket.
71014
71015 2006-02-15  Simon Josefsson  <jas@extundo.com>
71016
71017         * build-aux/maint.mk: Add dsyntax-check rule.
71018
71019 2006-02-15  Eric Blake  <ebb9@byu.net>
71020
71021         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
71022         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
71023         'present but cannot compile' warnings on cygwin.
71024         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
71025         use ws2tcpip.h if sys/socket.h works.
71026         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
71027         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
71028
71029 2006-02-14  Simon Josefsson  <jas@extundo.com>
71030
71031         * modules/maintainer-makefile (Files): Rename.
71032
71033         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
71034         and (the local) Makefile.cfg to maint-cfg.mk.
71035
71036         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
71037         to the latter.
71038
71039         * modules/maintainer-makefile: New module.
71040
71041         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
71042         severaly stripped to make it possible to build it up from scratch
71043         with reliable tests.
71044
71045         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
71046         fixes to permit overriding the default actions when configure and
71047         makefile are not available.
71048
71049 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
71050
71051         Sync from coreutils.
71052         * modules/lstat (Depends-on): Don't depend on xalloc.
71053         (License): Change from GPL to LGPL, since this is now simply a
71054         replacement for a libc function.
71055
71056 2006-02-14  Jim Meyering  <jim@meyering.net>
71057
71058         Sync from coreutils.
71059
71060         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
71061         failure on deficient systems, and simplify gnulib lgpl dependencies.
71062         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
71063         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
71064
71065         * lib/xalloc-die.c: Remove unused definition of N_.
71066
71067 2006-02-14  Jim Meyering  <jim@meyering.net>
71068
71069         Sync from coreutils.
71070         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
71071         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
71072         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
71073         double-quote uses of that variable, to accommodate the rare case in
71074         which getmntent is available in none of the libraries checked.  This
71075         happens at least on FreeBSD 5.0.
71076
71077 2006-02-13  Simon Josefsson  <jas@extundo.com>
71078
71079         * gnulib-tool (Usage): Fix --import, from
71080         karl@freefriends.org (Karl Berry).
71081
71082 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
71083
71084         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
71085
71086 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
71087
71088         * lib/argp-namefrob.h: Restore changes accidentally lost during the
71089         "autoupdate" on 2005-12-12.
71090
71091 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
71092
71093         * modules/closeout (Depends-on): Remove atexit.
71094
71095 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
71096
71097         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
71098         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
71099
71100 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
71101
71102         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
71103         __EXTENSIONS__ if this causes compilation to fail.  Problem
71104         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
71105         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
71106
71107 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
71108
71109         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
71110         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
71111         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
71112         All uses changed.
71113
71114 2006-01-26  Simon Josefsson  <jas@extundo.com>
71115
71116         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
71117         prototype is visible on mingw32.
71118
71119         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
71120         for mingw32.
71121
71122         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
71123         mingw32).
71124
71125 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
71126
71127         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
71128         attempt to open for write; this always fails, at least on POSIX
71129         hosts.  This reinstates the 2006-01-09 change, which was
71130         inadvertently removed.
71131
71132 2006-01-26  Bruno Haible  <bruno@clisp.org>
71133
71134         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
71135         Reported by Paul Eggert.
71136
71137 2006-01-26  Bruno Haible  <bruno@clisp.org>
71138             Paul Eggert  <eggert@cs.ucla.edu>
71139
71140         * lib/stdbool_.h (_Bool)
71141         [(! (defined __cplusplus || defined __BEOS__)
71142           && !defined __GNUC__
71143           && !(defined __HP_cc || defined __xlc__
71144                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
71145                || defined __sgi))]:
71146         #define to signed char in these cases too; this simplifies
71147         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
71148         etc., separately) and makes it more conservative.
71149
71150 2006-01-25  Simon Josefsson  <jas@extundo.com>
71151
71152         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
71153         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
71154         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
71155
71156 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
71157
71158         * lib/argp-namefrob.h: Bugfix. Remove stray #
71159
71160 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
71161
71162         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
71163         so that we test the test.
71164         Check for yet another HP-UX cc bug involving *bool |= bool.
71165
71166 2006-01-25  Karl Berry  <karl@gnu.org>
71167
71168         * config/srclist.txt (vasnprintf.c): sync lost.
71169
71170 2006-01-25  Jim Meyering  <jim@meyering.net>
71171
71172         Sync from the stable (b5) branch of coreutils:
71173
71174         * lib/fts.c (fts_children): Don't let close() clobber errno from
71175         failed fchdir().
71176
71177         * lib/fts.c (fts_stat): When following a symlink-to-directory,
71178         don't necessarily interpret stat-fails+lstat-succeeds as indicating
71179         a dangling symlink.  That can also happen at least for ELOOP.
71180         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
71181         FYI, this bug predates the inclusion of fts.c in coreutils.
71182
71183         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
71184         in their own block, so pre-c99 compilers don't object.
71185
71186         Avoid the double-free (first in fts_read, second in fts_close) that
71187         would occur when an `active' directory is made inaccessible (e.g.,
71188         via chmod a-x) during a traversal.
71189         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
71190         before returning.  Reproduce this failure by
71191         mkdir -p a/b; cd a; chmod a-x . b
71192         Reported by Stavros Passas.
71193
71194 2006-01-25  Jim Meyering  <jim@meyering.net>
71195
71196         * lib/fileblocks.c: Remove more useless parentheses.
71197         * lib/readutmp.h: Likewise.
71198
71199 2006-01-25  Bruno Haible  <bruno@clisp.org>
71200
71201         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
71202         warnings.
71203         Reported by Paul Eggert.
71204
71205 2006-01-25  Bruno Haible  <bruno@clisp.org>
71206
71207         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
71208         rid of a trap command. For Solaris sh.
71209         Reported by Mark D. Baushke <mdb@gnu.org>.
71210
71211 2006-01-24  Simon Josefsson  <jas@extundo.com>
71212
71213         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
71214         Bruno.
71215
71216 2006-01-24  Karl Berry  <karl@gnu.org>
71217
71218         * config/srclist.txt (argp-namefrob.h): sync lost.
71219
71220 2006-01-24  Jim Meyering  <jim@meyering.net>
71221
71222         * modules/openat (Files): Add lib/intprops.h.
71223         From Mark D. Baushke.
71224
71225 2006-01-24  Jim Meyering  <jim@meyering.net>
71226
71227         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
71228         Reported by Mark D. Baushke.
71229
71230 2006-01-24  Jim Meyering  <jim@meyering.net>
71231
71232         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
71233
71234 2006-01-24  Bruno Haible  <bruno@clisp.org>
71235
71236         * modules/strnlen (Maintainer): Change from glibc to all.
71237
71238 2006-01-24  Bruno Haible  <bruno@clisp.org>
71239
71240         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
71241         Patch by Paul Eggert.
71242
71243 2006-01-24  Bruno Haible  <bruno@clisp.org>
71244
71245         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
71246         already has it.
71247         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
71248         2005-11-26.
71249
71250         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
71251         'signed char' to avoid problems with the built-in _Bool type.
71252         Reported by Paul Eggert on 2005-11-26.
71253
71254 2006-01-24  Bruno Haible  <bruno@clisp.org>
71255
71256         * gnulib-tool (func_import): Avoid constructing complicated sed
71257         expressions inside backquote.
71258         Report and solution by Mark D. Baushke <mdb@gnu.org>.
71259
71260 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
71261
71262         These changes imported from libc.
71263         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
71264         test and two separate function calls.
71265         * lib/strndup.c (__strndup): Add libc_hidden_def.
71266
71267 2006-01-23  Simon Josefsson  <jas@extundo.com>
71268
71269         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
71270         Remove the test_*_SOURCES variable: automake infers it by default.
71271         * modules/tls-tests: Likewise.
71272
71273 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71274
71275         Work around porting bugs reported by Dieter in
71276         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
71277         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
71278         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
71279         Include "getopt.h" first, to check interface.
71280         (getenv): Declare only if defined HAVE_DECL_GETENV &&
71281         !HAVE_DECL_GETENV.
71282         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
71283         (__strndup): Revert to K&R-style function dfns, the glibc style.
71284         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
71285         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
71286         Include strnlen.h first, to get prototype properly.
71287         (strnlen): Renamed from __strnlen.
71288         Remove weak alias.
71289
71290 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71291
71292         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
71293
71294 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71295
71296         * config/srclist.txt: Adjust to reflect glibc reorganization.
71297         This affects only comments.
71298
71299 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71300
71301          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
71302          Reported by Bruce Korb <bkorb@gnu.org>.
71303
71304 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
71305
71306         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
71307         to pacify gcc -Wswitch-default.
71308
71309 2006-01-22  Bruno Haible  <bruno@clisp.org>
71310
71311         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
71312         temporary buffer for sprintf, take into account the precision also
71313         for 'd', 'i', 'u', 'o', 'x', 'X'.
71314
71315 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
71316
71317         * modules/argp-tests: New module
71318         * tests/test-argp.c: New file
71319         * tests/test-argp-2.sh: New file
71320
71321 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
71322
71323         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
71324         (__argp_base_name): Removed
71325         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
71326         typo.
71327         (__argp_base_name): Provide macro definition or extern declaration
71328         depending on the configuration
71329
71330 2006-01-20  Simon Josefsson  <jas@extundo.com>
71331
71332         * modules/inet_ntop (Depends-on): Depend on sys_socket.
71333
71334 2006-01-20  Simon Josefsson  <jas@extundo.com>
71335
71336         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
71337
71338 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
71339
71340         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
71341         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
71342         Suggested by Bruno Haible.
71343
71344 2006-01-20  Karl Berry  <karl@gnu.org>
71345
71346         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
71347         until changes propagate, I guess.
71348
71349 2006-01-19  Simon Josefsson  <jas@extundo.com>
71350
71351         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
71352
71353 2006-01-19  Simon Josefsson  <jas@extundo.com>
71354
71355         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
71356
71357 2006-01-19  Simon Josefsson  <jas@extundo.com>
71358
71359         * gnulib-tool: Set check_PROGRAMS.
71360
71361         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
71362         modules/des-tests, modules/gc-arcfour-tests,
71363         modules/gc-arctwo-tests, modules/gc-des-tests,
71364         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
71365         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
71366         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
71367         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
71368         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
71369         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
71370         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
71371         test_*_SOURCES.
71372
71373 2006-01-18  Simon Josefsson  <jas@extundo.com>
71374
71375         * modules/socklen (Depends-on): Depend on sys_socket.
71376
71377 2006-01-18  Simon Josefsson  <jas@extundo.com>
71378
71379         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
71380         modules/des-tests, modules/gc-arcfour-tests,
71381         modules/gc-arctwo-tests, modules/gc-des-tests,
71382         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
71383         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
71384         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
71385         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
71386         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
71387         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
71388         $(EXEEXT) to automake TESTS variable, for mingw32.
71389
71390 2006-01-17  Simon Josefsson  <jas@extundo.com>
71391
71392         * modules/socklen (Include): Need sys/socket.h.
71393
71394 2006-01-17  Bruno Haible  <bruno@clisp.org>
71395
71396         * modules/ssize_t (Include): Add <sys/types.h>.
71397
71398 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
71399
71400         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
71401         it's not portable and it doesn't work with cross-compiles.
71402         Problem reported by Bruno Haible.  Fix missing-$ typo in
71403         'test "gl_cv_ignore_unused_libraries" ...' that prevented
71404         -zignore from being used with Sun's C compiler.
71405
71406 2006-01-12  Simon Josefsson  <jas@extundo.com>
71407
71408         * lib/base64.c: Fix warning, reported by Bruno Haible
71409         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
71410
71411 2006-01-12  Bruno Haible  <bruno@clisp.org>
71412
71413         * modules/ldd: New file.
71414         * build-aux/ldd.sh.in: New file.
71415         * MODULES.html.sh (Support for building libraries and executables): Add
71416         ldd.
71417
71418 2006-01-12  Bruno Haible  <bruno@clisp.org>
71419
71420         * m4/ldd.m4: New file.
71421
71422 2006-01-12  Bruno Haible  <bruno@clisp.org>
71423
71424         * gnulib-tool (func_import, func_create_testdir): Don't go into an
71425         endless loop while replacing $auxdir with build-aux.
71426
71427 2006-01-11  Simon Josefsson  <jas@extundo.com>
71428
71429         * lib/stdint_.h (SIZE_MAX): Add missing (.
71430
71431 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
71432
71433         Sync from coreutils.
71434         * lib/md5.c: Fix commentary typos.
71435         (alignof, UNALIGNED_P): No need for a GCC-specific version.
71436         * lib/md5.h (__attribute__): Remove; unused.
71437         * lib/sha1.c: Fix commentary to match md5 better.
71438         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
71439         so that we don't need to worry about alignment.  All uses changed.
71440         This merges the 2005-10-28 md5 change into sha1.
71441
71442 2006-01-11  Jim Meyering  <jim@meyering.net>
71443
71444         Sync from coreutils.
71445         * lib/md5.c (OP): Fix spacing.
71446
71447 2006-01-11  Bruno Haible  <bruno@clisp.org>
71448
71449         Ensure automatic ordering between gl_LOCK and gl_ARGP.
71450         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
71451         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
71452
71453 2006-01-11  Bruno Haible  <bruno@clisp.org>
71454
71455         Ensure automatic ordering between gl_LOCK and gl_ARGP.
71456         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
71457         the "early" section as well.
71458
71459 2006-01-11  Bruno Haible  <bruno@clisp.org>
71460
71461         Avoid "ar: no archive members specified" error on MacOS X.
71462         * gnulib-tool (func_modules_add_dummy): New function.
71463         (func_import, func_create_testdir): Invoke it.
71464
71465 2006-01-11  Bruno Haible  <bruno@clisp.org>
71466
71467         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
71468         with $auxdir in AC_CONFIG_FILES statements.
71469
71470 2006-01-11  Bruno Haible  <bruno@clisp.org>
71471
71472         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71473         Initialize also noinst_HEADERS to empty.
71474
71475 2006-01-11  Bruno Haible  <bruno@clisp.org>
71476
71477         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
71478         variables.
71479         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
71480         autoreconf.
71481
71482 2006-01-11  Bruno Haible  <bruno@clisp.org>
71483
71484         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
71485         overridable by the user.
71486         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71487
71488 2006-01-10  Simon Josefsson  <jas@extundo.com>
71489
71490         * modules/sys_socket: New file.
71491
71492 2006-01-10  Simon Josefsson  <jas@extundo.com>
71493
71494         * m4/sys_socket_h.m4: New file.
71495
71496 2006-01-10  Simon Josefsson  <jas@extundo.com>
71497
71498         * lib/socket_.h: New file.
71499
71500 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71501
71502         * modules/readutmp (Maintainer): Add myself.
71503
71504 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71505
71506         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
71507         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
71508         People who are still concerned with buggy memcmp implementations
71509         can invoke gl_FUNC_MEMCMP themselves.
71510
71511 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71512
71513         * lib/regex_internal.h (BITSET_WORD_BITS):
71514         Work around a bug in 64-bit PGC (before version 6.1-2), where the
71515         preprocessor mishandles large unsigned values as if they were signed.
71516         Problem reported by Claudio Fontana in
71517         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
71518
71519 2006-01-10  Jim Meyering  <jim@meyering.net>
71520
71521         Avoid the double-free (first in fts_read, second in fts_close) that
71522         would occur when an `active' directory is made inaccessible (e.g.,
71523         via chmod a-x) during a traversal.
71524         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
71525         before returning.  Reproduce this failure by
71526         mkdir -p a/b; cd a; chmod a-x . b
71527         Reported by Stavros Passas.
71528
71529         Sync from coreutils.
71530         * lib/sha1.c: Tweak grammar in a comment.
71531
71532 2006-01-10  Jim Meyering  <jim@meyering.net>
71533
71534         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
71535         Patch by Joerg Sonnenberger.
71536
71537 2006-01-10  Bruno Haible  <bruno@clisp.org>
71538
71539         * modules/readutmp: Depend on module free.
71540         * modules/strtok_r: Depend on module restrict.
71541
71542 2006-01-10  Bruno Haible  <bruno@clisp.org>
71543
71544         * modules/gettext (configure.ac): Add an invocation of
71545         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
71546
71547 2006-01-10  Bruno Haible  <bruno@clisp.org>
71548
71549         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
71550         Reported by Werner Lemberg <wl@gnu.org>.
71551
71552 2006-01-10  Bruno Haible  <bruno@clisp.org>
71553
71554         * lib/localcharset.c: Update from GNU gettext.
71555
71556 2006-01-10  Bruno Haible  <bruno@clisp.org>
71557
71558         * lib/argp.h (__const): Remove macro. Use const instead.
71559         * lib/argp-fmtstream.h (__const): Likewise.
71560         * lib/glob_.h (__const): Remove macro.
71561         * lib/glob-libc.h: Use const instead of __const.
71562
71563 2006-01-10  Bruno Haible  <bruno@clisp.org>
71564
71565         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
71566         variable.
71567         Needed to avoid an automake error regarding the 'gettext' module.
71568
71569 2006-01-09  Simon Josefsson  <jas@extundo.com>
71570
71571         * modules/inet_ntop (Depends-on): Add restrict.
71572
71573 2006-01-09  Simon Josefsson  <jas@extundo.com>
71574
71575         * modules/gc-rijndael-tests (License): Put under LGPL.
71576
71577         * modules/gc-des-tests (License): Likewise.
71578
71579         * modules/gc-arcfour-tests (License): Likewise.
71580
71581         * modules/gc-arctwo-tests (License): Likewise.
71582
71583         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
71584
71585         * modules/gc-hmac-sha1-tests (Files): Likewise.
71586
71587         * modules/gc-hmac-md5-tests (License): Likewise.
71588
71589         * modules/gc-sha1-tests (License): Likewise.
71590
71591         * modules/gc-md5-tests (License): Likewise.
71592
71593         * modules/gc-md4-tests (License): Likewise.
71594
71595         * modules/gc-md2-tests (License): Likewise.
71596
71597         * modules/gc-tests (License): Likewise.
71598
71599         * modules/des-tests (License): Likewise.
71600
71601         * modules/md4-tests (License): Likewise.
71602
71603         * modules/md2-tests (License): Likewise.
71604
71605 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71606
71607         Sync from coreutils:
71608
71609         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
71610         * modules/lib-ignore: New file.
71611         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
71612         chdir-safer.m4, lchmod.m4.
71613         * modules/openat: Add mkdirat.c, openat-priv.h.
71614
71615 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71616
71617         Sync from coreutils.
71618         * m4/lib-ignore.m4: New file.
71619         * m4/lchmod.m4: New file.
71620
71621 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71622
71623         Sync from coreutils.
71624         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
71625         for write access: POSIX says that must fail.
71626         * lib/fts.c (diropen): Likewise.
71627         * lib/save-cwd.c (save_cwd): Likewise.
71628         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
71629         well, for minor improvements on hosts that lack O_DIRECTORY.
71630         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
71631         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
71632         Fall back on chown if open failed with EACCES.
71633
71634         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
71635         Report an error at compile-time if only a 1-second nominal clock
71636         resolution is found.
71637
71638         * lib/lchmod.h: New file.
71639         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
71640         (make_dir_parents): Use lchown rather than chown, and
71641         lchmod rather than chmod.
71642
71643         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
71644         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
71645         "proc" reported by n0dalus.
71646
71647         * lib/mountlist.c: Include <limits.h>.
71648         (dev_from_mount_options)
71649         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
71650         New function.  It no longer assumes "dev=" has the System V meaning
71651         on Linux (since it doesn't).  It also parses "dev=" more carefully.
71652         (read_file_system_list)
71653         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
71654         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
71655         dev= in that case.
71656
71657         * lib/posixtm.h (PDS_PRE_2000): New macro.
71658         * lib/posixtm.c (year): Arg is now syntax_bits rather than
71659         allow_century.  All usages changed.  Reject dates outside the range
71660         1969-1999 if PDS_PRE_2000 is used.
71661
71662 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
71663
71664         Sync from coreutils.
71665         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
71666         (Time of day items): Mention the possibility of leap seconds.
71667         Problem reported by Dr. David Alan Gilbert.
71668
71669 2006-01-09  Jim Meyering  <jim@meyering.net>
71670
71671         Sync from coreutils.
71672
71673         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
71674
71675         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
71676
71677         * lib/modechange.c (mode_compile): Reject an invalid mode string
71678         that starts with an octal digit.  From Andreas Gruenbacher.
71679
71680         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
71681         and dup to open_safer and dup_safer, respectively.
71682         (openat_permissive): Fix typo in comment.
71683
71684         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
71685         "gettext.h"; either no longer needed or are guaranteed by openat.h.
71686         (_): Remove; no longer needed.
71687         (openat): Renamed from rpl_openat; no need for rpl_openat
71688         since openat.h renames openat for us.
71689         Replace most of the body with a call to openat_permissive,
71690         to avoid duplicate code.
71691         Port to (probably hypothetical) environments were mode_t is
71692         wider than int.
71693         (openat_permissive): Require mode arg, so that we can check
71694         types better.  Put it just after flags.  Change cwd failure
71695         indicator from pointer-to-bool to pointer-to-errno-value.
71696         All callers changed.
71697         Invoke openat_save_fail and/or openat_restore_fail if
71698         cwd_errno is null, so that openat can call us.
71699         (openat_permissive, fdopendir, fstatat, unlinkat):
71700         Simplify errno handling to avoid some duplicate code,
71701         as it's OK to set errno on success.
71702         * lib/openat.h: Revamp code so that function macros depend on
71703         __OPENAT_PREFIX only, not also on AT_FDCWD.
71704         (openat_ro): Remove.  Caller changed to use openat_permissive.
71705         (openat_permissive): Now a macro, if not a function.
71706         (openat_restore_fail, openat_save_fail): Now always functions,
71707         since mkdirat needs them even if __OPENAT_PREFIX is defined.
71708
71709         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
71710         and openat.c.
71711         * lib/mkdirat.c: Include openat-priv.h.
71712         Remove definitions of macros defined therein.
71713         * lib/openat.c: Likewise.
71714
71715         * lib/mkdirat.c (mkdirat): New file and function.
71716         * lib/openat.h (mkdirat): Declare.
71717
71718         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
71719
71720         * lib/openat.h (openat_permissive): Declare.
71721         (openat_ro): Define.
71722
71723         * lib/openat.c (EXPECTED_ERRNO): New macro.
71724         (openat_permissive): New function -- used in remove.c rewrite.
71725         (all functions): Set errno just before returning, only if there
71726         was an actual failure.
71727         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
71728
71729         Emulate openat-family functions using Linux's procfs, if possible.
71730         Idea and some code based on Ulrich Drepper's glibc changes.
71731
71732         * lib/openat.c: (BUILD_PROC_NAME): New macro.
71733         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
71734         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
71735         before falling back on save_cwd and restore_cwd.
71736         (fdopendir, fstatat, unlinkat): Likewise.
71737
71738         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
71739         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
71740
71741         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
71742         as second argument to va_arg.  Otherwise, some versions of gcc
71743         warn that `if this code is reached, the program will abort'.
71744
71745 2006-01-09  Jim Meyering  <jim@meyering.net>
71746
71747         Sync from coreutils.
71748         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
71749         Require openat-priv.h.
71750
71751 2006-01-09  Bruno Haible  <bruno@clisp.org>
71752
71753         * modules/strnlen (Include): Use strnlen.h.
71754
71755 2006-01-09  Bruno Haible  <bruno@clisp.org>
71756
71757         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
71758
71759 2006-01-09  Bruno Haible  <bruno@clisp.org>
71760
71761         * lib/sysexit_.h (EX_OK): New macro.
71762         Suggested by Martin Lambers <marlam@marlam.de>.
71763
71764 2006-01-09  Bruno Haible  <bruno@clisp.org>
71765
71766         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
71767         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
71768
71769 2006-01-09  Bruno Haible  <bruno@clisp.org>
71770
71771         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
71772         numbers.
71773
71774 2006-01-09  Bruno Haible  <bruno@clisp.org>
71775
71776         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
71777         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
71778         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
71779         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
71780
71781 2006-01-09  Bruno Haible  <bruno@clisp.org>
71782
71783         * build-aux/javacomp.sh.in: New file, moved from lib/.
71784         * modules/javacomp-script (Files): Update.
71785         (configure.ac): Add AC_CONFIG_FILES invocation.
71786         (EXTRA_DIST): Remove variable.
71787
71788         * build-aux/javaexec.sh.in: New file, moved from lib/.
71789         * modules/javaexec (Files): Update.
71790         (configure.ac): Add AC_CONFIG_FILES invocation.
71791         (EXTRA_DIST): Remove javaexec.sh.in.
71792
71793         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
71794         * modules/csharpcomp-script (Files): Update.
71795         (configure.ac): Add AC_CONFIG_FILES invocation.
71796         (EXTRA_DIST): Remove variable.
71797
71798         * build-aux/csharpexec.sh.in: New file, moved from lib/.
71799         * modules/csharpexec (Files): Update.
71800         (configure.ac): Add AC_CONFIG_FILES invocation.
71801         (EXTRA_DIST): Remove csharpexec.sh.in.
71802
71803 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
71804
71805         Sync from coreutils.
71806
71807         Add POSIX ACL support
71808         * lib/acl.h (copy_acl, set_acl): Add declarations.
71809         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
71810         systems other than Linux.
71811         (chmod_or_fchmod): New function: use fchmod when possible,
71812         and chmod otherwise.
71813         (file_has_acl): Add a POSIX ACL implementation, with a
71814         Linux-specific subcase.
71815         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
71816         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
71817         acls are unsupported.
71818         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
71819         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
71820         are unsupported.
71821
71822 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
71823
71824         Sync from coreutils.
71825         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
71826
71827 2006-01-07  Bruno Haible  <bruno@clisp.org>
71828
71829         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
71830         gl_EARLY.
71831
71832 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71833
71834         * lib/strftime.c (tzname): Don't declare if it is already #defined.
71835         Problem reported for Mingw by Mark Junker.
71836
71837 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71838
71839         * README: Gnulib normally doesn't generate a tarball.
71840
71841 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
71842
71843         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
71844         long int, not int, for nanosecond counts, so that people who are
71845         used to POSIX struct timespec won't be surprised.  Reported by Jim
71846         Meyering.
71847
71848 2005-12-28  Bruno Haible  <bruno@clisp.org>
71849
71850         * build-aux/config.rpath: Update from GNU gettext.
71851
71852 2005-12-16  Jim Meyering  <jim@meyering.net>
71853
71854         * modules/fprintftime: New module.
71855         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
71856
71857 2005-12-16  Jim Meyering  <jim@meyering.net>
71858
71859         * m4/fprintftime.m4: New file.
71860
71861 2005-12-16  Jim Meyering  <jim@meyering.net>
71862
71863         * lib/fprintftime.c, lib/fprintftime.h: New files.
71864
71865 2005-12-15  Simon Josefsson  <jas@extundo.com>
71866
71867         * modules/socklen (configure.ac): Fix M4 macro name, to align with
71868         new m4/socklen.m4.
71869
71870 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
71871
71872         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
71873         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
71874
71875 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
71876
71877         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
71878         * lib/argp-help.c (fill_in_uparams): Check if the constructed
71879         struct uparams is valid. Fall back to the default values if it is
71880         not.
71881
71882 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71883
71884         * modules/argp (Files): Add argp-pin.c
71885         (Depends-on): dirname
71886         (lib_SOURCES): Add argp-pin.c
71887
71888 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71889
71890         * m4/argp.m4:  Check if program_invocation_name and
71891         program_invocation_short_name are declared and define appropriate
71892         macros if they are not.
71893
71894 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
71895
71896         * lib/argp-help.c (__argp_base_name): New function
71897         (__argp_short_program_name): Rewrite using __argp_base_name
71898         * lib/argp-namefrob.h: Define program_invocation_name and
71899         program_invocation_short_name if requested
71900         (__argp_base_name): Add prototype
71901         * lib/argp-parse.c (argp_def): Use gettext wrappers
71902         (argp_default_parser): Use __argp_base_name
71903         * lib/argp-pin.c: New file. Defines program_invocation_name and
71904         program_invocation_short_name on systems that lack them.
71905
71906 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
71907
71908         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
71909         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
71910         porting problem reported by Georg Schwarz in
71911         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
71912
71913 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
71914
71915         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
71916         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
71917         porting problem reported by Georg Schwarz in
71918         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
71919
71920 2005-12-05  Bruno Haible  <bruno@clisp.org>
71921
71922         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
71923         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
71924         Reported by Mark Junker <mjscod@gmx.de>.
71925
71926 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
71927
71928         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
71929         Use implementation from Albert Chin, with some
71930         comments/corrections by Stepan Kasal and myself.
71931
71932 2005-12-02  Bruno Haible  <bruno@clisp.org>
71933
71934         * gnulib-tool (func_import): Accept GPLed build tool modules when
71935         --lgpl is given.
71936         * modules/csharpcomp-script: New file.
71937         * modules/csharpcomp: Depend on it.
71938         * modules/javacomp-script: New file.
71939         * modules/javacomp: Depend on it.
71940         Suggested by Simon Josefsson.
71941
71942 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
71943
71944         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
71945         statement, to work around an HP-UX 10.20 compiler bug reported by
71946         Peter O'Gorman.
71947
71948 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
71949
71950         * modules/savedir (Depends-on): Add openat.
71951
71952 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
71953
71954         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
71955         (uintmax_t) [defined uintmax_t]: Do not declare.
71956         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
71957         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
71958         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
71959         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
71960         sake of portability to weird hosts that C allows (though we don't
71961         know of any practical examples).
71962
71963         * lib/savedir.h (fdsavedir): New decl.
71964         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
71965         contains most of the former guts of savedir.
71966         (savedir): Use savedirstream.
71967         Include "openat.h".
71968
71969 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
71970
71971         * modules/obstack (Files): Add m4/ulonglong.m4.
71972         Problem reported by Davide Angelocola.
71973
71974 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
71975
71976         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
71977         coreutils no longer futzes with rounding modes.
71978
71979 2005-11-14  Jim Meyering  <jim@meyering.net>
71980
71981         * lib/mkstemp-safer.c: Include <config.h>, required for possible
71982         replacement of mkstemp.
71983
71984 2005-11-10  Simon Josefsson  <jas@extundo.com>
71985
71986         * lib/readline.c: Remove EOL.
71987
71988 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71989
71990         * modules/gethrxtime (Depends-on): Add gettime.
71991
71992 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71993
71994         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
71995         or gettimeofday; no longer needed.
71996
71997 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
71998
71999         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
72000         time business.
72001         (gethrxtime) [! (HAVE_NANOUPTIME
72002         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
72003         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
72004         our own approximation.
72005
72006 2005-11-08  Eric Blake  <ebb9@byu.net>
72007
72008         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
72009
72010 2005-11-08  Eric Blake  <ebb9@byu.net>
72011
72012         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
72013
72014 2005-11-04  Bruno Haible  <bruno@clisp.org>
72015
72016         * gnulib-tool: Implement --update mode.
72017
72018 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72019
72020         Fix porting problem reported by Theodoros V. Kalamatianos.
72021         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
72022         Don't assume that futimes failing means we must fail.
72023
72024 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72025
72026         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
72027         variables to suggest the intended function of the PATH_MAX check.
72028
72029 2005-10-30  Kean Johnston  <jkj@sco.com>
72030
72031         Trivial changes to support SCO systems.
72032         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
72033         as PATH_MAX.
72034         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
72035         where __ptr is null when no I/O is pending.
72036
72037 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
72038
72039         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
72040         leave errno alone.  Problem reported by Dmitry V. Levin.
72041
72042 2005-10-28  Simon Josefsson  <jas@extundo.com>
72043
72044         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
72045         Test more.
72046
72047         * tests/test-gc-md2.c, tests/test-md2.c: New files.
72048
72049         * modules/md2, modules/md2-tests: New files.
72050
72051 2005-10-28  Simon Josefsson  <jas@extundo.com>
72052
72053         * m4/inet_ntop.m4: More tests.
72054
72055         * m4/gc-md2.m4, md2.m4: New file.
72056
72057 2005-10-28  Simon Josefsson  <jas@extundo.com>
72058
72059         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
72060         "restrict" keywords, as per POSIX.  Protect the function
72061         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
72062         Don't use K&R prototypes.  Check the sprintf return values.
72063         Re-define EAFNOSUPPORT if not present.  Indent.
72064
72065         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
72066         suggested by Bruno Haible <bruno@clisp.org>.
72067
72068         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
72069
72070         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
72071
72072         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
72073         libgcrypt).
72074
72075         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
72076
72077         * lib/md2.h, lib/md2.c: New files.
72078
72079 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
72080
72081         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
72082         errno alone.  Problem reported by Frederic Jolliton.
72083
72084 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72085
72086         * modules/verify (License): Change from GPL to LGPL.  This is a
72087         tiny module and there are apparently near-equivalents that are
72088         under the BSD license.
72089
72090 2005-10-24  Simon Josefsson  <jas@extundo.com>
72091
72092         * modules/sha1: Relicense to LGPL.
72093
72094 2005-10-24  Simon Josefsson  <jas@extundo.com>
72095
72096         * lib/md4.h: Shrink buffer size, now that we changed the type.
72097
72098 2005-10-23  Simon Josefsson  <jas@extundo.com>
72099
72100         * gnulib-tool (func_import): Fix --tests-base.
72101
72102 2005-10-22  Simon Josefsson  <jas@extundo.com>
72103
72104         * modules/arcfour (Depends-on): Need stdint.
72105
72106 2005-10-22  Simon Josefsson  <jas@extundo.com>
72107
72108         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
72109         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
72110
72111 2005-10-22  Simon Josefsson  <jas@extundo.com>
72112
72113         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
72114         suggested by Bruno Haible <bruno@clisp.org>.
72115
72116 2005-10-22  Simon Josefsson  <jas@extundo.com>
72117
72118         * lib/crc.h: Include stddef.h, for size_t.
72119
72120 2005-10-22  Simon Josefsson  <jas@extundo.com>
72121
72122         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
72123         arcfour_context struct (simplify test vector testing in GNU
72124         Shishi).
72125
72126 2005-10-21  Simon Josefsson  <jas@extundo.com>
72127
72128         * modules/des, modules/des-tests: New files.
72129
72130         * modules/gc-des, modules/gc-des-tests: New files.
72131
72132         * tests/test-des.c, tests/test-gc-des.c: New file.
72133
72134 2005-10-21  Simon Josefsson  <jas@extundo.com>
72135
72136         * modules/arctwo, modules/arctwo-tests: New files.
72137
72138         * tests/test-arctwo.c: New file.
72139
72140         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
72141
72142         * tests/test-gc-arctwo.c: New file.
72143
72144 2005-10-21  Simon Josefsson  <jas@extundo.com>
72145
72146         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
72147         Bruno Haible <bruno@clisp.org>.
72148
72149         * m4/gc-des.m4: New file.
72150
72151 2005-10-21  Simon Josefsson  <jas@extundo.com>
72152
72153         * m4/arctwo.m4: New file.
72154
72155         * m4/gc-arctwo.m4: New file.
72156
72157 2005-10-21  Simon Josefsson  <jas@extundo.com>
72158
72159         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
72160         block.
72161
72162 2005-10-21  Simon Josefsson  <jas@extundo.com>
72163
72164         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
72165         <bruno@clisp.org>.
72166
72167         * lib/hmac-sha1.c (hmac_sha1): Likewise.
72168
72169         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
72170         Bruno Haible <bruno@clisp.org>.
72171
72172         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
72173         <bruno@clisp.org>.
72174
72175 2005-10-21  Simon Josefsson  <jas@extundo.com>
72176
72177         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
72178
72179 2005-10-21  Simon Josefsson  <jas@extundo.com>
72180
72181         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
72182
72183 2005-10-21  Simon Josefsson  <jas@extundo.com>
72184
72185         * lib/des.h, lib/des.c: New files.
72186
72187         * lib/gc-gnulib.c: Support DES.c
72188
72189 2005-10-21  Simon Josefsson  <jas@extundo.com>
72190
72191         * lib/arctwo.h, lib/arctwo.c: New files.
72192
72193         * lib/gc-gnulib.c: Support ARCTWO.
72194
72195 2005-10-21  Simon Josefsson  <jas@extundo.com>
72196
72197         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
72198         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72199
72200 2005-10-21  Simon Josefsson  <jas@extundo.com>
72201
72202         * gnulib-tool (func_import, func_create_testdir): Define automake
72203         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
72204         Makefile.am snippet),
72205         suggested by Bruno Haible <bruno@clisp.org>.
72206
72207         * modules/gc (Makefile.am): Use it.
72208
72209 2005-10-21  Bruno Haible  <bruno@clisp.org>
72210
72211         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
72212         patch.
72213
72214 2005-10-19  Simon Josefsson  <jas@extundo.com>
72215
72216         * tests/test-gc-rijndael.c: New file.
72217
72218         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
72219
72220 2005-10-19  Simon Josefsson  <jas@extundo.com>
72221
72222         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
72223         interface too.
72224
72225 2005-10-19  Simon Josefsson  <jas@extundo.com>
72226
72227         * tests/test-gc-arcfour.c: New file.
72228
72229         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
72230
72231 2005-10-19  Simon Josefsson  <jas@extundo.com>
72232
72233         * modules/gc-md4, modules/gc-md4-tests: New file.
72234
72235         * tests/test-gc-md4.c: New file.
72236
72237 2005-10-19  Simon Josefsson  <jas@extundo.com>
72238
72239         * m4/gc-md4.m4: New file.
72240
72241 2005-10-19  Simon Josefsson  <jas@extundo.com>
72242
72243         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
72244         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
72245         <kasal@ucw.cz>.
72246
72247 2005-10-19  Simon Josefsson  <jas@extundo.com>
72248
72249         * m4/gc-arcfour.m4: New file.
72250
72251         * m4/gc-rijndael.m4: New file.
72252
72253 2005-10-19  Simon Josefsson  <jas@extundo.com>
72254
72255         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
72256
72257 2005-10-19  Simon Josefsson  <jas@extundo.com>
72258
72259         * lib/gc-gnulib.c: Support ARCFOUR.
72260
72261 2005-10-19  Simon Josefsson  <jas@extundo.com>
72262
72263         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
72264         support.
72265
72266         * lib/gc.h: Add ECB enum type.
72267
72268         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
72269
72270 2005-10-18  Simon Josefsson  <jas@extundo.com>
72271
72272         * tests/test-md5.c: New file.
72273
72274         * modules/md5-tests: New file.
72275
72276 2005-10-18  Simon Josefsson  <jas@extundo.com>
72277
72278         * tests/test-md4.c: New file.
72279
72280         * modules/md4, modules/md4-tests: New files.
72281
72282 2005-10-18  Simon Josefsson  <jas@extundo.com>
72283
72284         * m4/md4.m4: New file.
72285
72286 2005-10-18  Simon Josefsson  <jas@extundo.com>
72287
72288         * lib/md4.h, lib/md4.c: New files, based on md5.?.
72289
72290 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
72291
72292         * gnulib-tool (func_create_testdir): Omit the second check whether
72293         BUILT_SOURCES in nonempty.
72294
72295 2005-10-17  Simon Josefsson  <jas@extundo.com>
72296
72297         * tests/test-rijndael.c: New file.
72298
72299 2005-10-17  Simon Josefsson  <jas@extundo.com>
72300
72301         * modules/sha1: Depend on stdint instead of md5.
72302
72303         * modules/md5: Depend on stdint, remove uint32_t.
72304
72305 2005-10-17  Simon Josefsson  <jas@extundo.com>
72306
72307         * modules/gc-sha1-tests: New file.
72308
72309         * tests/test-gc-sha1.c: New file.
72310
72311 2005-10-17  Simon Josefsson  <jas@extundo.com>
72312
72313         * m4/md5.m4: Remove call to uint32_t.m4.
72314
72315 2005-10-17  Simon Josefsson  <jas@extundo.com>
72316
72317         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
72318
72319         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
72320         md5.h.
72321
72322         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
72323
72324         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
72325
72326 2005-10-17  Simon Josefsson  <jas@extundo.com>
72327
72328         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
72329
72330 2005-10-17  Simon Josefsson  <jas@extundo.com>
72331
72332         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
72333
72334 2005-10-17  Simon Josefsson  <jas@extundo.com>
72335
72336         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
72337
72338         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
72339
72340 2005-10-17  Bruno Haible  <bruno@clisp.org>
72341
72342         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
72343         that it can also be used in a test.
72344
72345 2005-10-16  Bruno Haible  <bruno@clisp.org>
72346
72347         * gnulib-tool (func_emit_tests_Makefile_am): Also define
72348         TESTS_ENVIRONMENT, so that individual tests can augment it.
72349
72350         * gnulib-tool (func_create_testdir): Use an intermediate target for
72351         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
72352         macros, like $(ALLOCA_H), which cannot be passed through the command
72353         line.
72354
72355 2005-10-15  Simon Josefsson  <jas@extundo.com>
72356
72357         * modules/rijndael-tests: New file.
72358
72359         * modules/rijndael: New file.
72360
72361 2005-10-15  Simon Josefsson  <jas@extundo.com>
72362
72363         * m4/rijndael.m4: New file.
72364
72365 2005-10-15  Simon Josefsson  <jas@extundo.com>
72366
72367         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
72368
72369         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
72370
72371 2005-10-14  Simon Josefsson  <jas@extundo.com>
72372
72373         * tests/test-arcfour.c: New file.
72374
72375         * modules/arcfour, modules/arcfour-tests: New files.
72376
72377 2005-10-14  Simon Josefsson  <jas@extundo.com>
72378
72379         * m4/arcfour.m4: New file.
72380
72381 2005-10-14  Simon Josefsson  <jas@extundo.com>
72382
72383         * lib/arcfour.h, lib/arcfour.c: New files.
72384
72385 2005-10-14  Roland McGrath  <roland@redhat.com>
72386
72387         Import from libc.  [BZ #1331]
72388         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
72389         macro argument.
72390         Reported by Matej Vela <vela@debian.org>.
72391
72392 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72393
72394         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
72395         include <wchar.h>; no longer needed.
72396
72397 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72398
72399         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
72400
72401 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
72402         and  Ulrich Drepper  <drepper@redhat.com>
72403
72404         Import from libc.
72405         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
72406         instead of inline stream orientation test and two separate
72407         function calls.  Pay no attention to USE_IN_LIBIO.
72408
72409 2005-10-13  Simon Josefsson  <jas@extundo.com>
72410
72411         * modules/gc-hmac-md5-tests: New file.
72412
72413         * tests/test-gc-hmac-sha1.c: New file.
72414
72415         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
72416
72417         * modules/gc-hmac-md5-tests: New file.
72418
72419         * tests/test-gc-md5.c: New file.
72420
72421         * modules/gc-md5-tests: New file.
72422
72423 2005-10-13  Simon Josefsson  <jas@extundo.com>
72424
72425         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
72426         Move memory allocation outside of loop.
72427
72428 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
72429
72430         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
72431         intermediate directory is in a read-only file system.  Problem
72432         reported by Eric Blake.
72433
72434 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
72435
72436         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
72437
72438 2005-10-12  Simon Josefsson  <jas@extundo.com>
72439
72440         * tests/test-hmac-sha1.c: New file.
72441
72442         * modules/hmac-sha1-tests: New file.
72443
72444         * modules/hmac-sha1: New file.
72445
72446 2005-10-12  Simon Josefsson  <jas@extundo.com>
72447
72448         * modules/gc-sha1: New file.
72449
72450 2005-10-12  Simon Josefsson  <jas@extundo.com>
72451
72452         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
72453
72454         * tests/test-gc-pbkdf2-sha1.c: New file.
72455
72456 2005-10-12  Simon Josefsson  <jas@extundo.com>
72457
72458         * modules/gc-md5, modules/gc-hmac-md5: New files.
72459
72460         * modules/gc (Files): Remove md5, memxor and hmac files.
72461
72462 2005-10-12  Simon Josefsson  <jas@extundo.com>
72463
72464         * m4/gc-pbkdf2-sha1.m4: New file.
72465
72466         * m4/gc-hmac-sha1.m4: New file.
72467
72468         * m4/gc-sha1: New file.
72469
72470         * m4/hmac-sha1.m4: New file.
72471
72472 2005-10-12  Simon Josefsson  <jas@extundo.com>
72473
72474         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
72475
72476         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
72477
72478 2005-10-12  Simon Josefsson  <jas@extundo.com>
72479
72480         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
72481         suggested by Bruno Haible <bruno@clisp.org>.
72482
72483 2005-10-12  Simon Josefsson  <jas@extundo.com>
72484
72485         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
72486
72487 2005-10-12  Simon Josefsson  <jas@extundo.com>
72488
72489         * lib/gc-pbkdf2-sha1.c: New file.
72490
72491         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
72492
72493 2005-10-12  Simon Josefsson  <jas@extundo.com>
72494
72495         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
72496
72497         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
72498
72499 2005-10-12  Simon Josefsson  <jas@extundo.com>
72500
72501         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
72502         GC_USE_HMAC_MD5, respectively.
72503
72504         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
72505         (gc_md5): Fix typo.
72506
72507         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
72508
72509         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
72510
72511         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
72512
72513 2005-10-12  Bruno Haible  <bruno@clisp.org>
72514
72515         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
72516         Reported by Stepan Kasal <kasal@ucw.cz>.
72517
72518 2005-10-11  Simon Josefsson  <jas@extundo.com>
72519
72520         * tests/test-crc.c: New file.
72521
72522         * modules/crc, modules/crc-tests: New files.
72523
72524 2005-10-11  Simon Josefsson  <jas@extundo.com>
72525
72526         * m4/crc.m4: New file.
72527
72528 2005-10-11  Simon Josefsson  <jas@extundo.com>
72529
72530         * lib/gc.h: Add gc_hash and gc_hash_buffer.
72531
72532         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
72533
72534         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
72535
72536 2005-10-11  Simon Josefsson  <jas@extundo.com>
72537
72538         * lib/crc.h, lib/crc.c: New files.
72539
72540         * lib/gc.h (gc_hash_buffer): Add doc.
72541
72542 2005-10-11  Bruno Haible  <bruno@clisp.org>
72543
72544         * modules/c-strcasestr: New file.
72545         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
72546
72547 2005-10-11  Bruno Haible  <bruno@clisp.org>
72548
72549         * modules/c-strcase: New file.
72550         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
72551
72552 2005-10-11  Bruno Haible  <bruno@clisp.org>
72553
72554         * lib/strcasecmp.c: Include limits.h.
72555         (strcasecmp): Avoid integer overflow on exotic platforms.
72556         * lib/strncasecmp.c: Include limits.h.
72557         (strncasecmp): Avoid integer overflow on exotic platforms.
72558         Reported by Paul Eggert.
72559
72560 2005-10-11  Bruno Haible  <bruno@clisp.org>
72561
72562         * lib/c-strcasestr.h: New file, from GNU gettext.
72563         * lib/c-strcasestr.c: New file, from GNU gettext.
72564
72565 2005-10-11  Bruno Haible  <bruno@clisp.org>
72566
72567         * lib/c-strcase.h: New file, from GNU gettext.
72568         * lib/c-strcasecmp.c: New file, from GNU gettext.
72569         * lib/c-strncasecmp.c: New file, from GNU gettext.
72570
72571 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72572
72573         * modules/mempcpy (License): GPL -> LGPL.
72574         * modules/strchrnul (License): Likewise.
72575         * modules/sysexits (License): Likewise.
72576
72577 2005-10-08  Simon Josefsson  <jas@extundo.com>
72578
72579         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
72580
72581 2005-10-07  Simon Josefsson  <jas@extundo.com>
72582
72583         * m4/memxor.m4: Remove gl_C_RESTRICT call.
72584
72585 2005-10-06  Simon Josefsson  <jas@extundo.com>
72586
72587         * tests/test-hmac-md5.c: New file.
72588
72589         * modules/hmac-md5-tests: New file.
72590
72591         * modules/hmac-md5: New file.
72592
72593 2005-10-06  Simon Josefsson  <jas@extundo.com>
72594
72595         * m4/hmac-md5.m4: New file.
72596
72597         * m4/memxor.m4: Require gl_C_RESTRICT.
72598
72599 2005-10-06  Simon Josefsson  <jas@extundo.com>
72600
72601         * lib/memxor.c (memxor): Avoid casts and warnings.
72602
72603 2005-10-06  Simon Josefsson  <jas@extundo.com>
72604
72605         * lib/hmac-md5.c: New file.
72606
72607         * lib/hmac.h: New file.
72608
72609 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72610
72611         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
72612         promotes to int, not unsigned int, to catch the AIX 5.3
72613         compiler bug.
72614
72615 2005-10-05  Simon Josefsson  <jas@extundo.com>
72616
72617         * modules/memxor: New file.
72618
72619         * modules/iconv (Files): Move config.rpath to havelib, it is used
72620         there.
72621
72622         * modules/havelib (Files): Add config.rpath.
72623
72624 2005-10-05  Simon Josefsson  <jas@extundo.com>
72625
72626         * m4/memxor.m4: New file.
72627
72628 2005-10-05  Simon Josefsson  <jas@extundo.com>
72629
72630         * lib/memxor.c (memxor): Fix compiler error.
72631
72632         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
72633         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
72634
72635         * lib/memxor.h, lib/memxor.c: New files.
72636
72637         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
72638         we assume all systems have it, suggested by Jim Meyering
72639         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
72640         any systems lack sys/socket.h; mingw32 is known to lack it, but we
72641         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
72642         same reasons.
72643
72644 2005-10-05  Simon Josefsson  <jas@extundo.com>
72645
72646         * config/srclist.txt: Add glibc bug 1423 for md5.h.
72647
72648 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
72649
72650         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
72651         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
72652         needed, since the source code now assumes these .h files.
72653
72654 2005-10-05  Derek Price  <derek@ximbiot.com>
72655
72656         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
72657
72658 2005-10-05  Bruno Haible  <bruno@clisp.org>
72659
72660         * modules/stdint (License): Change to LGPL.
72661
72662 2005-10-04  Simon Josefsson  <jas@extundo.com>
72663
72664         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
72665         D. Baushke" <mdb@gnu.org>.
72666
72667 2005-10-04  Bruno Haible  <bruno@clisp.org>
72668
72669         * lib/verify.h (verify_true): Provide alternative definition for C++.
72670
72671 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
72672
72673         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
72674         (SSIZE_MAX): New macro, if not already defined.
72675         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
72676         than 2 GiB.
72677
72678 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
72679
72680         Sync from coreutils.
72681         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
72682         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
72683         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
72684         ULLONG_MAX doesn't work with 2.7.2.1.
72685
72686 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
72687
72688         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
72689         From Ben Pfaff.
72690
72691         * modules/exclude (Depends-on): Depend on verify.
72692         * modules/strtoimax (Depends-on): Likewise.
72693         * modules/utimecmp (Depends-on): Likewise.
72694
72695 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
72696
72697         * lib/exclude.c: Include verify.h.
72698         (verify): Remove.  All callers changed to use verify.h's version.
72699         * lib/strtoimax.c: Likewise.
72700         * lib/utimecmp.c: Likewis.e
72701
72702         Sync from coreutils.
72703         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
72704         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
72705         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
72706         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
72707         bother returning ENOSYS if settimeofday or stime fails; just let
72708         them return whatever errno they want to return.
72709         * lib/utimens.c: Include unistd.h, for dup2.
72710         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
72711         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
72712
72713 2005-10-02  Jim Meyering  <jim@meyering.net>
72714
72715         Sync from coreutils.
72716         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
72717         from glibc-2.2.5 that fails for read-only files.
72718
72719 2005-10-02  Jim Meyering  <jim@meyering.net>
72720
72721         Sync from coreutils.
72722         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
72723         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
72724         `#if HAVE_CONFIG_H'.
72725         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
72726         Remove AT_FDCWD test.
72727         Do not consume the fd unless successful.
72728         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
72729         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
72730         block, so that we don't even try to compile it if settimeofday is
72731         available.  This works around a compilation failure on OSF1 V5.1,
72732         due to stime requiring a `long int*' while tv_sec is `int'.
72733
72734 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
72735
72736         Sync from coreutils.
72737         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
72738         against `yes', rather than just testing for nonempty.
72739
72740 2005-10-01  Simon Josefsson  <jas@extundo.com>
72741
72742         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
72743         and Darwin.
72744
72745         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
72746         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
72747         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
72748         freeaddrinfo and gai_strerror are declared by the POSIX headers.
72749         Check if struct addrinfo is declared.
72750
72751 2005-10-01  Simon Josefsson  <jas@extundo.com>
72752
72753         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
72754         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
72755         AI_* and EAI_* definitions.  Protect function declarations.
72756
72757 2005-10-01  Jim Meyering  <jim@meyering.net>
72758
72759         Sync from coreutils.
72760
72761         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
72762         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
72763         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
72764         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
72765         in the inet and nsl libraries.  Required on Solaris 5.7.
72766
72767 2005-10-01  Jim Meyering  <jim@meyering.net>
72768
72769         Sync from coreutils.
72770         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
72771         in the inet and nsl libraries.  Required on Solaris 5.7.
72772
72773 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
72774
72775         * lib/getdelim.c (getdelim): Remove unused variables.
72776
72777 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
72778
72779         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
72780         so that the code works even with ancient cpp.  Portability problem
72781         with GCC 2.7.2.1 reported by Thomas M.Ott.
72782
72783 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
72784
72785         * modules/regex (Depends-on): Add strcase.
72786
72787         * modules/gethostname (Licence): Change from GPL to LGPL, since
72788         gethostname.c is a trivial implementation of a standard library
72789         function.
72790         * modules/poll (License): Change from GPL to LGPL, since it's
72791         derived from LGPL code.
72792
72793 2005-09-27  Jim Meyering  <jim@meyering.net>
72794
72795         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
72796         HAVE_CONFIG_H.
72797
72798         * lib/intprops.h (signed_type_or_expr__): Define.
72799         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
72800         for unsigned types.
72801
72802 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
72803
72804         * lib/verify.h (verify_expr): Remove, replacing with:
72805         (verify_true): New macro that returns true instead of void.
72806         (verify_type__): Remove.
72807         (verify): Use verify_true rather than verify_type__.
72808
72809 2005-09-26  Bruno Haible  <bruno@clisp.org>
72810
72811         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
72812         is necessary.
72813         (lib_SOURCES): Remove mbchar.c.
72814         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
72815         (Files): Add m4/mbrtowc.m4.
72816         * modules/mbiter: Likewise.
72817         * modules/mbuiter: Likewise.
72818
72819 2005-09-26  Bruno Haible  <bruno@clisp.org>
72820
72821         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
72822         compile mbchar.c if they are not both present.
72823         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
72824         * m4/mbiter.m4 (gl_MBITER): Likewise.
72825         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
72826         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
72827         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
72828
72829 2005-09-25  Jim Meyering  <jim@meyering.net>
72830
72831         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
72832         also uses socklen_t.
72833
72834 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
72835
72836         * lib/utimens.c (ENOSYS): Define if not already defined.
72837         (futimens): Support having a null PATH if the file descriptor
72838         is nonnegative.
72839
72840         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
72841         Remove.
72842         (__attribute): Define to empty unless GCC 3.1 or later.
72843         This works around a core dump on OpenBSD 3.4, which has GCC
72844         2.95.3, which dumps core when given __attribute__(()).  It also
72845         simplifies other tests, since we really don't want to bother with
72846         worrying about which ancient version of GCC supported what.
72847         Original problem reported by Yoann Vandoorselaere, with part of
72848         the fix suggested by Derek Price.
72849
72850 2005-09-24  Jim Meyering  <jim@meyering.net>
72851
72852         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
72853         so we can once again use a positive bitfield width of 1 -- now we
72854         don't have to explain why we were using a bitfield width of 2.
72855
72856 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
72857
72858         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
72859         and similarly for the other external symbols.  Problem reported
72860         by James Gallager.
72861
72862         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
72863         bug reported by Jim Meyering.
72864
72865         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
72866         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
72867         not needed, since socklen is a prerequisite module.
72868
72869 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
72870
72871         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
72872         Problem reported by Eric Blake.
72873         (getaddrinfo): Initialize se so that it's not garbage.
72874         Redo internal storage allocation so that it doesn't make unportable
72875         assumptions about alignment.
72876         Fix a memory leak.
72877
72878         * lib/utimens.c (futimens): Use futimesat if available.
72879         Prefer it to futimes since it doesn't have the futimes bug.
72880
72881         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
72882         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
72883         Instead, declare a function that returns a pointer to an array,
72884         and use verify_type__ to declare the size of the array.
72885         Problem and germ of a solution reported by Bruno Haible.
72886         (verify_type__): Use 2, not 1, for bitfield size, to avoid
72887         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
72888
72889 2005-09-23  Jim Meyering  <jim@meyering.net>
72890
72891         Sync from coreutils.
72892         Correct build failure (socklen_t not defined) on at least
72893         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
72894         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
72895
72896 2005-09-23  Jim Meyering  <jim@meyering.net>
72897
72898         * modules/getaddrinfo (Depends-on): Add socklen.
72899
72900 2005-09-23  Bruno Haible  <bruno@clisp.org>
72901
72902         * tests/test-verify.c: New file.
72903
72904 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
72905
72906         Sync from coreutils.
72907
72908         * modules/argmatch (Depends-on): Add verify.
72909         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
72910         unistd-safer.
72911         * modules/save-cwd (Depends-on): Likewise.
72912
72913         * modules/openat (Files): Add lib/openat-die.c.
72914         (Depends-on): Remove error, exitfail.
72915         Add dirname.
72916
72917         * modules/verify: New file.
72918         * MODULES.html.sh (Diagnostics <assert.h>): New section,
72919         with "verify" module.
72920
72921 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
72922
72923         Sync from coreutils.
72924
72925         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
72926         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
72927         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
72928         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
72929         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
72930         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
72931         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
72932         Don't bother checking for string.h, stdlib.h, unistd.h.
72933         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
72934         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
72935         module's job.
72936         * m4/jm-macros.m4 (gl_MACROS): Likewise.
72937         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
72938
72939         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
72940         (gl_GETDATE): Use it.
72941
72942         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
72943
72944 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
72945
72946         Sync from coreutils.
72947
72948         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
72949         stat-time.h.
72950         * lib/argmatch.h: Include verify.h
72951         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
72952         (ARGMATCH_ASSERT): Remove; unused.
72953         * lib/canonicalize.c: Assume STDC_HEADERS.
72954         * lib/exclude.c: Include "strcase.h".
72955         * lib/regex_internal.h [!defined _LIBC]: Likewise.
72956         * lib/getusershell.c: Include stdio--.h rather than stdio.h
72957         and stdio-safer.h.
72958         (getusershell): Call fopen, not fopen_safer.
72959         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
72960         Do not include unistd-safer.h.
72961         (save_cwd): Don't call fd_safer; no longer needed
72962         now that we include fcntl--.h.
72963
72964         * lib/getdate.y (relative_time): New type.
72965         (RELATIVE_TIME_0): New constant.
72966         (parser_control): Use relative_time instead of doing it ourselves.
72967         (%union): Add new relative_time rel member.
72968         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
72969         Now typeless.
72970         (relunit, relunit_snumber): Now of type rel.
72971         (zone, rel, relunit, get_date): Adjust to above changes.
72972
72973         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
72974         Do not include unistd-safer.h.
72975         (getloadavg): Don't call fd_safer; no longer needed
72976         now that we include fcntl--.h.
72977
72978         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
72979         (make_dir_parents): Treat ENOSYS like EEXIST.
72980
72981         Improve quality of diagnostics on restore_cwd failure.
72982         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
72983         (make_dir_parents): Last arg is now int * (for errno), not bool *.
72984         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
72985         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
72986         each time through the loop.  Do not diagnose restore_cwd failure;
72987         that is the caller's job (and perhaps the caller does not care).
72988
72989         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
72990         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
72991         If the file already exists but is not a directory, don't bother
72992         to try to make its parents.
72993         Close potential file descriptor leak if we can't chdir("/") (!).
72994         Don't always return true if chdir($PWD) fails; return true only
72995         if the requested action was done successfully (except for the
72996         chdir($PWD)).
72997         Don't log final directory unless we actually made it.
72998         Refactor to avoid duplicate code to fix up permissions.
72999         Don't attempt to fix up parent permissions if chdir($PWD) fails.
73000
73001         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
73002         to make it a bit faster and (I hope) clearer.
73003         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
73004         Fix bug in formats like %2N.
73005
73006         * lib/verify.h: New file.
73007
73008 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
73009
73010         Sync from coreutils.
73011         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
73012
73013 2005-09-22  Jim Meyering  <jim@meyering.net>
73014
73015         Sync from coreutils.
73016
73017         * m4/lstat.m4 (gl_FUNC_LSTAT):
73018         Use AC_LIBSOURCES to require lstat.c and lstat.h.
73019         Remove obsolete comment.
73020         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
73021         * m4/xstrtod.m4: Likewise.
73022
73023         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
73024
73025 2005-09-22  Jim Meyering  <jim@meyering.net>
73026
73027         Sync from coreutils.
73028
73029         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
73030
73031         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
73032         the .tm_year member, since otherwise gcc-4.0 would now warn about
73033         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
73034
73035         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
73036         order to avoid an unsuppressible warning from gcc on 64-bit systems.
73037
73038         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
73039         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
73040         when run in a time zone for which daylight savings time is in effect
73041         for the starting date.
73042
73043         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
73044         stop us from restricting permissions of just-created absolute-named
73045         directories.
73046         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
73047         to restore initial working directory.
73048         * lib/mkdir-p.c (make_dir_parents): New parameter:
73049         different_working_dir, to tell caller if/when we change the working
73050         directory and are unable to return to the initial one.
73051         * lib/mkdir-p.h (make_dir_parents): Update prototype.
73052         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
73053         `return false'.  This fixes a bug introduced on 2004-07-30.
73054
73055         * lib/openat.c (fdopendir): Be sure to close the supplied
73056         file descriptor before returning.  This makes our replacement
73057         implementation a little closer to Solaris's, where fdopendir
73058         ties the file descriptor to the returned DIR* pointer.
73059         * lib/openat.c (unlinkat): New function.
73060         * lib/openat.h (unlinkat): Add prototype.
73061         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
73062         (openat_restore_fail): Rename from openat_restore_die.
73063         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
73064
73065         Provide an alternative to exiting immediately upon save_cwd or
73066         restore_cwd failure.  Now, an application can arrange e.g.,
73067         to perform a longjump in that case.
73068         * lib/openat.c: Include dirname.h.
73069         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
73070         (rpl_openat, fdopendir, fstatat): Call openat_save_die
73071         and openat_restore_die rather than calling error directly.
73072         Don't include "error.h" or "exitfail.h"; they're no longer needed.
73073
73074         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
73075         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
73076         define.
73077
73078         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
73079         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
73080                             int utc, int nanoseconds);
73081         Background:
73082         date should not have to allocate a megabyte of virtual memory to
73083         handle a format argument like +%1048575T.  When implemented with
73084         strftime, it must allocate such a buffer, use strftime to fill it
73085         in, print it, then free it.
73086         With fprintftime, it simply prints everything and exits.
73087         With no need for memory allocation, that's one fewer way to fail.
73088         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
73089         optional field width, not before, so we accept %9:z, not %:9z.
73090         (my_strftime): Be sure to use L_('x') for literals.
73091
73092         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
73093         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
73094         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
73095         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
73096         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
73097         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
73098         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
73099         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
73100         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
73101         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
73102         * lib/xgethostname.c, lib/xreadlink.c:
73103         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
73104
73105         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
73106         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
73107         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
73108         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
73109         and don't include <sys/file.h>).
73110
73111 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
73112
73113         Sync from coreutils.
73114
73115         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
73116         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
73117         [!LDAV_DONE]: Avoid unused variable warning.
73118
73119 2005-09-21  Bruno Haible  <bruno@clisp.org>
73120
73121         * lib/unicodeio.h (unicode_to_mb): New declaration.
73122
73123 2005-09-20  Derek Price  <derek@ximbiot.com>
73124
73125         * lib/getaddrinfo.c: Don't include <netdb.h> included from
73126         getaddrinfo.h.
73127
73128 2005-09-20  Bruno Haible  <bruno@clisp.org>
73129
73130         * gnulib-tool: Remove trailing slashes from the values specified for
73131         --source-base, --m4-base, --tests-base, --aux-dir.
73132         Suggested by Simon Josefsson <jas@extundo.com>.
73133
73134 2005-09-20  Bruno Haible  <bruno@clisp.org>
73135
73136         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
73137         func_modules_to_filelist, func_import, func_create_testdir): Make all
73138         sorting results locale-independent, so that gnulib-cache.m4 doesn't
73139         change when gnulib-tool is invoked in a different locale.
73140
73141 2005-09-19  Simon Josefsson  <jas@extundo.com>
73142
73143         * m4/socklen.m4: Fix typo.
73144
73145 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73146
73147         Use a consistent style for including <config.h>.
73148         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
73149         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
73150         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
73151         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
73152         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
73153         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
73154         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
73155         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
73156         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
73157         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
73158         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
73159         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
73160         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
73161         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
73162         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
73163         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
73164         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
73165         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
73166         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
73167         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
73168         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
73169         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
73170         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
73171         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
73172         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
73173         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
73174         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
73175         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
73176         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
73177         lib/xstrtoumax.c, lib/yesno.c:
73178         Standardize inclusion of config.h.
73179         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
73180         lib/inttostr.h:  Removed inclusion of config.h from header files.
73181         * lib/inttostr.c:  Adjusted in-tree users.
73182         * lib/timespec.h: Remove superfluous warning to include config.h.
73183         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
73184         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
73185         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
73186         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
73187         config.h with HAVE_CONFIG_H.
73188
73189 2005-09-19  Jim Meyering  <jim@meyering.net>
73190
73191         * modules/pathmax (License): Change to LGPL.
73192
73193 2005-09-19  Derek Price  <derek@ximbiot.com>
73194
73195         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
73196
73197 2005-09-19  Bruno Haible  <bruno@clisp.org>
73198
73199         * gnulib-tool (import): Provide default for --tests-base.
73200
73201 2005-09-19  Bruno Haible  <bruno@clisp.org>
73202
73203         * doc/quote.texi: New file, extracted from gnulib.texi.
73204         * doc/ctime.texi: New file, extracted from gnulib.texi.
73205         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
73206         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
73207         * doc/gnulib.texi: Include them.
73208
73209 2005-09-18  Bruno Haible  <bruno@clisp.org>
73210
73211         Portability fix.
73212         * gnulib-tool (func_readlink): New function.
73213         (func_ln_if_changed): Use it.
73214
73215 2005-09-18  Bruno Haible  <bruno@clisp.org>
73216
73217         * gnulib-tool: Support --with-tests also with --import.
73218         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
73219         (func_import): Use variables $testsbase and $inctests. Emit a
73220         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
73221         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
73222         SUBDIRS += $testsdir.
73223         (func_create_testdir): Update.
73224
73225 2005-09-18  Bruno Haible  <bruno@clisp.org>
73226
73227         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
73228         instead of $dry_run.
73229         (func_cp_if_changed, func_mv_if_changed): Remove functions.
73230         (func_ln_if_changed): Don't handle dry-run here.
73231         (func_import): In dry-run mode, detect more precisely which actions
73232         would be performed, and don't use "...ing" verbs.
73233
73234 2005-09-18  Bruno Haible  <bruno@clisp.org>
73235
73236         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
73237         (func_import): Use join on two temporary files instead of three nested
73238         loops, in order to determine which files are new or old.
73239
73240 2005-09-18  Bruno Haible  <bruno@clisp.org>
73241
73242         * gnulib-tool (func_import): Comment out code that spits out the
73243         new files with --dry-run.
73244
73245 2005-09-18  Bruno Haible  <bruno@clisp.org>
73246
73247         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
73248
73249 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73250
73251         * lib/stat-time.h: New file.
73252         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
73253         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
73254         in a different way.
73255         (timespec_cmp): New function.
73256         * lib/utimecmp.c: Include stat-time.h.
73257         (SYSCALL_RESOLUTION): Depend on whether various struct stat
73258         members exist, not on the obsolescent ST_MTIM_NSEC.
73259         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
73260
73261 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73262
73263         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
73264
73265 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
73266
73267         * MODULES.html.sh (File system functions): Add stat-time.
73268         * modules/stat-time: New file.
73269         * modules/timespec (Files): Remove m4/st_mtim.m4; this
73270         is now done in a different way, by the stat-time module.
73271         * modules/utimecmp (Depends-on): Add stat-time.
73272
73273 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73274
73275         * m4/st_mtim.m4: Remove.  Superseded by...
73276         * m4/stat-time.m4: New file.
73277         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
73278         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
73279
73280 2005-09-15  Derek Price  <derek@ximbiot.com>
73281
73282         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
73283
73284 2005-09-15  Derek Price  <derek@ximbiot.com>
73285
73286         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
73287         * lib/regex_internal.c: Ditto, using this...
73288         (__GNUC_PREREQ): ...new macro.
73289         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
73290         using...
73291         (__GNUC_PREREQ): ...this new macro.
73292
73293         * lib/strstr.h: Include string.h. Define strstr as a macro here.
73294
73295 2005-09-15  Derek Price  <derek@ximbiot.com>
73296             Paul Eggert  <eggert@cs.ucla.edu>
73297
73298         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
73299         changes, consolidating in...
73300         * lib/regex_internal.h: ...this file.
73301
73302 2005-09-13  Jim Meyering  <jim@meyering.net>
73303
73304         * lib/canon-host.c: Filter through gnu indent and reword comments
73305         slightly.
73306         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
73307
73308 2005-09-13  Derek Price  <derek@ximbiot.com>
73309
73310         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
73311         failure.
73312         Reported by Jim Meyering  <jim@meyering.net>.
73313
73314 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73315
73316         * lib/base64.c: Typo.
73317         (base64_encode): Put b64str in initialized data section.
73318
73319 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
73320
73321         Merge glibc and coreutils changes into gnulib, plus a few
73322         extra fixes.
73323         * lib/md5.c: Use #error rather than a string.
73324         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
73325         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
73326         (__attribute__): Define to empty for non recent-GCC.
73327         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
73328         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
73329         Renamed from their non-__ counterparts, with new macros replacing
73330         them if not _LIBC.  Add __THROW attribute.
73331         (rol): Remove.
73332         (struct md5_ctx): Align buffer if using GCC.
73333         * lib/sha1.h (struct sha1_ctx): Likewise.
73334         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
73335         The old name was backwards.
73336         (NOTSWAP): Remove; not used.
73337         (rol): New macro, moved here from md5.h.
73338         (sha1_process_block): Remove a FIXME that doesn't make sense.
73339
73340 2005-09-12  Derek Price  <derek@ximbiot.com>
73341
73342         Return usable errors from canon-host.
73343         * lib/canon-host.h: New file.
73344         * lib/canon-host.c (canon_host): Wrap...
73345         (canon_host_r): ...this new function, which now relies exclusively on
73346         getaddrinfo.
73347         (ch_strerror): New function.
73348         (last_cherror): New global.
73349         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
73350         interface.
73351         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
73352         void *.
73353         (freeaddrinfo): Free ai->ai_canonname when set.
73354
73355 2005-09-12  Derek Price  <derek@ximbiot.com>
73356
73357         Make canon-host require getaddrinfo.
73358         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
73359         AC_LIBSOURCE canon-host.h.  Call...
73360         (gl_PREREQ_CANON_HOST): ...this new function, which requires
73361         gl_GETADDRINFO.
73362         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
73363
73364 2005-09-12  Derek Price  <derek@ximbiot.com>
73365
73366         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
73367         LGPL.
73368         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
73369
73370 2005-09-12  Derek Price  <derek@ximbiot.com>
73371
73372         * lib/gai_strerror.c: Include config.h when available.  Include
73373         getaddrinfo.h before other headers to test interface.
73374         Reported by Larry Jones <lawrence.jones@ugs.com>.
73375
73376 2005-09-12  Derek Price  <derek@ximbiot.com>
73377             Paul Eggert  <eggert@cs.ucla.edu>
73378
73379         * modules/glob (Files): Add glob-libc.h.
73380
73381 2005-09-12  Derek Price  <derek@ximbiot.com>
73382             Paul Eggert  <eggert@cs.ucla.edu>
73383
73384         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
73385         glob_.h, glob-libc.h.
73386         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
73387
73388 2005-09-12  Derek Price  <derek@ximbiot.com>
73389             Paul Eggert  <eggert@cs.ucla.edu>
73390
73391         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
73392         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
73393         protecting things that should be done only in gnulib contexts.
73394         * lib/glob_.h: New file, containing only the glob things needed for
73395         gnulib.
73396         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
73397         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
73398         (glob, globfree, glob_pattern_p): Now defined simply in terms of
73399         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
73400         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
73401         and to respect the namespace rules better.
73402
73403 2005-09-08  Simon Josefsson  <jas@extundo.com>
73404
73405         * modules/socklen: New file.
73406
73407 2005-09-08  Simon Josefsson  <jas@extundo.com>
73408
73409         * m4/socklen.m4: New file.
73410
73411 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73412
73413         * modules/utimens (Files): Add m4/utimbuf.m4, since
73414         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
73415         Reported by Sergey Poznyakoff.
73416
73417 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73418
73419         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
73420         definitions, since that's the preferred style in glibc.
73421         Fix a minor spacing issue, and update copyright notice to match
73422         glibc's.
73423
73424 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73425
73426         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
73427
73428 2005-09-06  Simon Josefsson  <jas@extundo.com>
73429
73430         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
73431         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
73432
73433 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73434
73435         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
73436         warning.
73437
73438 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73439
73440         * config/srclist.txt: Add glibc bug 1302.
73441
73442 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
73443
73444         Change bitset word type from unsigned int to unsigned long int,
73445         as this has better performance on typical 64-bit hosts.
73446         Port bitset code to hosts with unusual word sizes.
73447         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
73448         (build_collating_symbol):
73449         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
73450         argument is a bitset.  This is merely a style issue, but it makes
73451         it clearer that an entire array is expected.
73452         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
73453         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
73454         Port to the case where bitset_word is not the same as unsigned int.
73455         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
73456         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
73457         Likewise.
73458         * lib/regexec.c (check_dst_limits_calc_pos_1,
73459         check_subexp_matching_top):
73460         (build_trtable, group_nodes_into_DFAstates):
73461         Likewise.
73462         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
73463         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
73464         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
73465         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
73466         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
73467         * lib/regcomp.c (optimize_subexps, lower_subexp):
73468         Work even if bitset_word has holes in its bitwise representation.
73469         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
73470         * lib/regexec.c (check_dst_limits_calc_pos_1,
73471         check_subexp_matching_top):
73472         Likewise.
73473         * lib/regex_internal.c (re_string_reconstruct):
73474         Don't assume UCHAR_MAX == 255.
73475         * lib/regex_internal.h (bitset_set_all): Likewise.
73476         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
73477         All uses changed.
73478         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
73479         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
73480         All uses changed.
73481         (BITSET_WORD_MAX): New macro.
73482         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
73483         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
73484         (bitset_empty, bitset_copy):
73485         Prefer sizeof (bitset) to multiplying it out ourselves.
73486         (bitset_not_merge): Remove; unused.
73487         (bitset_contain): Return bool, not unsigned int with one bit on.
73488         All callers changed.
73489         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
73490         alignment than re_node_set; do this by defining a new internal
73491         type struct dests_alloc and using it to allocate memory.
73492
73493 2005-09-05  Bruno Haible  <bruno@clisp.org>
73494
73495         * gnulib-tool (func_import): Fix comparison in handling of symbolic
73496         links.
73497
73498 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
73499
73500         * modules/size_max (Makefile.am): Add size_max.h
73501
73502 2005-09-04  Derek Price  <derek@ximbiot.com>
73503
73504         * gnulib-tool (func_import): Fix reversed $symbolic logic.
73505
73506 2005-09-03  Simon Josefsson  <jas@extundo.com>
73507
73508         * gnulib-tool: Fix typo.
73509
73510 2005-09-03  Simon Josefsson  <jas@extundo.com>
73511
73512         * config/srclist.txt: Add glibc bug 1293.
73513
73514 2005-09-03  Derek Price  <derek@ximbiot.com>
73515
73516         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
73517         From Larry Jones <lawrence.jones@ugs.com>.
73518
73519 2005-09-02  Simon Josefsson  <jas@extundo.com>
73520
73521         * modules/socklen: New file.
73522
73523 2005-09-02  Simon Josefsson  <jas@extundo.com>
73524
73525         * modules/havelib: New module.
73526
73527         * modules/gettext, modules/iconv, modules/lock, modules/readline:
73528         Use havelib.
73529
73530 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
73531
73532         Check for arithmetic overflow when calculating sizes, to prevent
73533         some buffer-overflow issues.  These patches are conservative, in the
73534         sense that when I couldn't determine whether an overflow was possible,
73535         I inserted a run-time check.
73536         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
73537         macros.
73538         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
73539         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
73540         (re_xnrealloc, re_x2nrealloc): New inline functions.
73541         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
73542         parse_bracket_exp):
73543         (build_equiv_class, build_charclass): Check for arithmetic overflow
73544         in size expression calculations.
73545         * lib/regex_internal.c (re_string_realloc_buffers):
73546         (build_wcs_upper_buffer, re_node_set_add_intersect):
73547         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
73548         (re_dfa_add_node, register_state): Likewise.
73549         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
73550         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
73551         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
73552         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
73553
73554 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
73555
73556         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
73557         m4/ulonglong.m4.  Problem reported by Martin Lambers.
73558
73559 2005-09-02  Bruno Haible  <bruno@clisp.org>
73560
73561         Support for lib vs. lib64 distinction on biarch platforms.
73562         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
73563         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
73564         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
73565
73566 2005-09-02  Bruno Haible  <bruno@clisp.org>
73567
73568         * gnulib-tool (import): In the other first-use case, provide defaults
73569         as well.
73570
73571 2005-09-02  Bruno Haible  <bruno@clisp.org>
73572
73573         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
73574         patches not yet found in the latest gettext release.
73575
73576 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73577
73578         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
73579         to avoid a collision with bits/local_lim.h in glibc.
73580         All uses changed.  Problem reported by Dmitry V. Levin in
73581         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
73582
73583         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
73584         bugs in int versus size_t comparisons.
73585         (re_string_context_at): Fix bug where the code assumed that
73586         Idx is signed.
73587
73588         Use bool where appropriate.
73589         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
73590         All callers changed.
73591         (calc_eclosure_iter): Likewise, for ROOT arg.
73592         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
73593         (build_charclass_op): Likewise, for NON_MATCH arg.
73594         * lib/regex_internal.c (re_string_allocate, re_string_construct):
73595         (re_string_construct_common): Likewise, for ICASE arg.
73596         * lib/regexec.c (re_search_2_stub, re_search_stub):
73597         Likewise, for RET_LEN arg.
73598         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
73599         (set_regs): Likewise, for FL_BACKTRACK arg.
73600         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
73601         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
73602         (calc_eclosure_iter, parse_bracket_exp):
73603         Use bool for internal variables that are booleans.
73604         * lib/regexec.c (re_search_internal, check_matching,
73605         proceed_next_node):
73606         (set_regs, build_sifted_states, sift_states_bkref):
73607         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
73608         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
73609         (find_collation_sequence_value):
73610         Likewise.
73611         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
73612         (re_node_set_compare):
73613         Return bool, not int. All callers changed.
73614         * lib/regexec.c (check_halt_node_context, check_dst_limits):
73615         (build_trtable, check_node_accept): Likewise.
73616         * lib/regex_internal.h: Include stdbool.h.
73617
73618         Fix bugs uncovered when converting to bool.
73619         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
73620         failure instead of charging ahead blindly.
73621         * lib/regex_internal.c (register_state): Likewise.
73622         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
73623         for freeing internal storage.
73624         (group_nodes_into_DFA_states): Use unsigned int, not int, for
73625         bitset pieces used as boolean, to avoid undefined behavior
73626         on hosts that do int overflow checking.
73627
73628 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73629
73630         * config/srclist.txt: Add glibc bugs 1285-1287.
73631
73632 2005-09-01  Jim Meyering  <jim@meyering.net>
73633
73634         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
73635         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
73636         Require gl_STAT_MACROS, too.
73637
73638 2005-09-01  Bruno Haible  <bruno@clisp.org>
73639
73640         * gnulib-tool (import): In the first-use case, provide defaults.
73641
73642 2005-09-01  Bruno Haible  <bruno@clisp.org>
73643
73644         * gnulib-tool (func_import): Remove the .tmp files.
73645
73646 2005-09-01  Bruno Haible  <bruno@clisp.org>
73647
73648         * gnulib-tool (func_import): Fix handling of symbolic links.
73649
73650 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73651
73652         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
73653         old glibc regex code mishandles strings longer than 2**31 bytes.
73654         This patch fixes this when the regex code is used in gnulib
73655         (i.e., outside glibc).
73656
73657         This patch should not affect the use of the regex code inside
73658         glibc.  No doubt this problem also needs to be handled for glibc
73659         as well, but the result will be an incompatible change to the
73660         glibc ABI, and the old ABI will have to be supported too.  That
73661         can be the the subject for another patch.
73662
73663         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
73664         governing whether the rest of this patch is active.  By default,
73665         the macro is disabled and the patch has no effect.
73666         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
73667         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
73668         (struct re_pattern_buffer, re_search, re_search_2, re_match):
73669         (re_match_2, re_set_registers): Use the new types.
73670         * lib/regex_internal.h (Idx, re_hashval_t): New types.
73671         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
73672         New macros.
73673         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
73674         (re_string_context_at, bin_tree_t, re_dfastate_t):
73675         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
73676         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
73677         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
73678         (re_string_char_size_at, re_string_wchar_at):
73679         (re_string_elem_size_at):
73680         Use the new types and macros to port to 64-bit hosts.
73681         Use unsigned types for internal values, so that the code
73682         mostly works even for arrays larger than SSIZE_MAX.
73683         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
73684         (search_duplicated_node, calc_eclosure_iter, fetch_number):
73685         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
73686         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
73687         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
73688         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
73689         (calc_inveclosure, parse_dup_op, build_range_exp):
73690         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
73691         (fetch_number, create_token_tree, mark_opt_subexp):
73692         Likewise.
73693         * lib/regex_internal.c (re_string_construct_common,
73694         create_ci_newstate):
73695         (create_cd_newstate, re_string_allocate, re_string_construct):
73696         (re_string_realloc_buffers, build_wcs_upper_buffer):
73697         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
73698         (re_string_reconstruct, re_string_peek_byte_case):
73699         (re_string_fetch_byte_case, re_string_context_at):
73700         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
73701         (re_node_set_init_copy, re_node_set_add_intersect):
73702         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
73703         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
73704         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
73705         (re_acquire_state, re_acquire_state_context, register_state):
73706         Likewise.
73707         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
73708         search_cur_bkref_entry):
73709         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
73710         (re_search_internal, re_search_2_stub, re_search_stub)
73711         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
73712         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
73713         (update_cur_sifted_state, check_dst_limits):
73714         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
73715         (check_subexp_limits, sift_states_bkref, merge_state_array):
73716         (check_subexp_matching_top, get_subexp, get_subexp_sub):
73717         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
73718         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
73719         (expand_bkref_cache, check_node_accept_bytes):
73720         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
73721         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
73722         (acquire_init_state_context, check_halt_node_context):
73723         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
73724         (sift_states_backward, clean_state_log_if_needed):
73725         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
73726         (find_recover_state, transit_state_sb, transit_state_mb):
73727         (transit_state_bkref, build_trtable, match_ctx_clean):
73728         Likewise.
73729         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
73730         to work around an assumption that REG_MISSING is negative.
73731
73732         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
73733         (seek_collating_symbol_entry) [defined _LIBC]:
73734         (lookup_collation_sequence_value) [defined _LIBC]:
73735         (build_range_exp, build_collating_symbol) [defined _LIBC]:
73736         Use prototypes rather than old-style function definitions.
73737         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
73738         (transit_state_sb) [0]:
73739         (find_collation_sequence_value) [defined _LIBC]: Likewise.
73740
73741         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
73742         rm_eo.
73743
73744         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
73745         (optimize_subexps, lower_subexp):
73746         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
73747         since the signed shift might overflow.  Use 1u<<31 instead.
73748         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
73749         Likewise.
73750         * lib/regexec.c (check_dst_limits_calc_pos_1,
73751         check_subexp_matching_top): Likewise.
73752
73753         * lib/regcomp.c (optimize_subexps, lower_subexp):
73754         Use CHAR_BIT rather than 8, for clarity.
73755         * lib/regexec.c (check_dst_limits_calc_pos_1):
73756         (check_subexp_matching_top): Likewise.
73757         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
73758         have to worry about portability issues when shifting it left.
73759         Remove no-longer-needed test for table_size > 0.
73760         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
73761         in a word, as the resulting behavior is undefined.
73762         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
73763         in one case, a <= should have been an <, and in another case the
73764         whole test was missing.
73765         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
73766         the standard name CHAR_BIT.
73767         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
73768         this is not true on one's complement and signed-magnitude hosts.
73769
73770         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
73771         next_last_offset.
73772         (struct re_dfa_t): Remove unused member states_alloc.
73773         * lib/regcomp.c (init_dfa): Don't initialize unused members.
73774
73775 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73776
73777         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
73778         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
73779         and large-file glibc and in 32-bit large-file Solaris.
73780
73781 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73782
73783         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
73784         lengths fit in regoff_t; this isn't true if regoff_t is the same
73785         width as size_t.
73786         * lib/regex.c (re_search_internal): 5th arg is LAST_START
73787         (= START + RANGE) instead of RANGE.  This avoids overflow
73788         problems when regoff_t is the same width as size_t.
73789         All callers changed.
73790         (re_search_2_stub): Check for overflow when adding the
73791         sizes of the two strings.
73792         (re_search_stub): Check for overflow when adding START
73793         to RANGE; if it occurs, substitute the extreme value.
73794
73795 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73796
73797         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
73798
73799 2005-08-31  Jim Meyering  <jim@meyering.net>
73800
73801         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
73802         a pointer-to-const.
73803         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
73804         (register_state): Likewise.
73805         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
73806         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
73807         (group_nodes_into_DFAstates): Likewise.
73808
73809 2005-08-31  Jim Meyering  <jim@meyering.net>
73810
73811         * check-module: Add a FIXME comment.
73812
73813 2005-08-31  Eric Blake  <ebb9@byu.net>
73814
73815         * modules/unistd-safer (Files): Add unistd--.h.
73816         * modules/stdio-safer (Files): Add stdio--.h.
73817
73818 2005-08-31  Derek Price  <derek@ximbiot.com>
73819
73820         * lib/getdelim.c (getdelim): Return EOF on EOF.
73821         Reported by Larry Jones <lawrence.jones@ugs.com>.
73822
73823 2005-08-31  Bruno Haible  <bruno@clisp.org>
73824
73825         Avoid unnecessary diffs in the generated lib/Makefile.am.
73826         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
73827         the generated files.
73828         (func_import): Don't set cmd.
73829
73830 2005-08-31  Bruno Haible  <bruno@clisp.org>
73831
73832         * lib/strstr.c: Include <stddef.h>, for NULL.
73833         * lib/strcasestr.c: Likewise.
73834         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73835
73836 2005-08-31  Bruno Haible  <bruno@clisp.org>
73837
73838         * gnulib-tool: New option --macro-prefix.
73839         (func_import): Use macro_prefix.
73840         (import): Handle option --macro-prefix.
73841
73842 2005-08-31  Bruno Haible  <bruno@clisp.org>
73843
73844         * gnulib-tool (import): Rename most ac_* variables to cached_*.
73845         Also use new variables cached_lgpl, cached_libtool.
73846
73847 2005-08-31  Bruno Haible  <bruno@clisp.org>
73848
73849         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
73850         always instantiating them.
73851
73852 2005-08-31  Bruno Haible  <bruno@clisp.org>
73853
73854         * gnulib-tool (func_import): Read the previous cached settings
73855         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
73856         earlier added by gnulib but are now dropped. Warn when a gnulib file
73857         overwrites a non-gnulib file.
73858
73859 2005-08-31  Bruno Haible  <bruno@clisp.org>
73860
73861         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
73862         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
73863         projects that don't keep autogenerated files in CVS. Put into
73864         actioncmd only the specified modules, not the transitive closure.
73865
73866 2005-08-31  Bruno Haible  <bruno@clisp.org>
73867
73868         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
73869         Create directories that shall be filled.
73870         (import): Don't look for gl_* macros in configure.ac. Recurse across
73871         all directories containing a gnulib-cache.m4 files, if meaningful.
73872
73873 2005-08-31  Bruno Haible  <bruno@clisp.org>
73874
73875         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
73876         (import): Set seen_libtool when we see gl_LIBTOOL.
73877
73878 2005-08-31  Bruno Haible  <bruno@clisp.org>
73879
73880         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
73881         declaration macro definitions from generated gnulib.m4.
73882
73883 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
73884
73885         * lib/iconvme.h: Add prototype for iconv_alloc.
73886
73887 2005-08-29  Simon Josefsson  <jas@extundo.com>
73888
73889         * lib/iconvme.c: Fix errno.
73890
73891 2005-08-29  Bruno Haible  <bruno@clisp.org>
73892
73893         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
73894         that it works when the directory contains spaces.
73895
73896 2005-08-29  Bruno Haible  <bruno@clisp.org>
73897
73898         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
73899
73900 2005-08-29  Bruno Haible  <bruno@clisp.org>
73901
73902         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
73903         Emit more advice.
73904
73905 2005-08-29  Bruno Haible  <bruno@clisp.org>
73906         and Stepan Kasal  <kasal@ucw.cz>
73907
73908         * check-module: If more parameters are given, check each of them
73909         separately; add more exceptions, as noted by Jim Meyering.
73910         (check_module): New procedure.
73911         (%exempt_header): Now contains all exceptions.
73912
73913 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
73914
73915         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
73916
73917 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
73918
73919         * lib/iconvme.c: Split iconv_string into iconv_alloc.
73920
73921 2005-08-28  Bruno Haible  <bruno@clisp.org>
73922
73923         * m4/gnulib-tool.m4: New file.
73924
73925 2005-08-27  Jim Meyering  <jim@meyering.net>
73926
73927         * modules/unistd-safer (Files): Add pipe-safer.c.
73928         * modules/fcntl-safer (Files): Add creat-safer.c.
73929
73930 2005-08-27  Jim Meyering  <jim@meyering.net>
73931
73932         * m4/stdlib-safer.m4: New file.  From coreutils.
73933         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
73934         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
73935         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
73936         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
73937         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
73938
73939 2005-08-27  Jim Meyering  <jim@meyering.net>
73940
73941         * lib/fopen-safer.c: Merge minor changes from coreutils.
73942         * lib/dup-safer.c: Likewise.
73943         * lib/fd-safer.c: Likewise.
73944
73945         Merge from coreutils.
73946         * lib/stdio--.h: New file.
73947         * lib/stdlib--.h: New file.
73948         * lib/mkstemp-safer.c: New file.
73949
73950         GNU tar needs these.
73951         * lib/pipe-safer.c: New file.
73952         * lib/creat-safer.c: New file.
73953         * lib/fcntl--.h (creat): Define to creat_safer.
73954         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
73955         * lib/unistd--.h (pipe): Define to pipe_safer.
73956         * lib/unistd-safer.h: Declare pipe_safer.
73957
73958 2005-08-26  Simon Josefsson  <jas@extundo.com>
73959
73960         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
73961         Haible <bruno@clisp.org>.
73962
73963 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
73964
73965         * lib/regex_internal.h: Remove all references to
73966         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
73967         or better.
73968         (bitset_not, bitset_merge, bitset_not_merge):
73969         (bitset_mask, re_string_allocate, re_string_construct):
73970         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
73971         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
73972         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
73973         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
73974         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
73975         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
73976         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
73977         (re_acquire_state_context):
73978         Remove unnecessary forward decls.
73979         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
73980         Put __attribute at function definition,
73981         now that the function decl has been removed.
73982         * lib/regex_internal.c (re_string_peek_byte_case):
73983         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
73984         Likewise.
73985
73986 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
73987
73988         * m4/regex.m4: Add AC_PREREQ(2.50).
73989         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
73990
73991 2005-08-25  Simon Josefsson  <jas@extundo.com>
73992
73993         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
73994         __fsetlocking.
73995
73996 2005-08-25  Simon Josefsson  <jas@extundo.com>
73997
73998         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
73999         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
74000         GLIBC specific code.
74001
74002 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74003
74004         Make regex safe for g++.  This fixes one real bug (an "err"
74005         that should have been "*err").  g++ problem reported by
74006         Sam Steingold.
74007         * lib/regex_internal.h (re_calloc): New macro, consistent with
74008         re_malloc etc.  All callers of calloc changed to use re_calloc.
74009         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
74010         not int.  All callers changed.
74011         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
74012         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
74013         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
74014         (find_recover_state): Change "err" to "*err"; this fixes what
74015         appears to be a real bug.
74016         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
74017         versus int.
74018
74019 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74020
74021         * modules/regex (Depends-on): Add malloc, since the code
74022         assumes that !malloc(0) means failure.
74023
74024 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74025
74026         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
74027
74028         alloca modernization/simplification for regex.
74029         * lib/regex.c: Remove portability cruft for alloca.  This no longer
74030         needs to be at the start of the file, and can be moved into
74031         regex_internal.h and simplified.
74032         * lib/regex_internal.h: Include <alloca.h>.
74033         (__libc_use_alloca) [!defined _LIBC]: New macro.
74034         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
74035         now works outside glibc.
74036
74037 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74038
74039         * config/srclist.txt: Add glibc bugs 1241, 1245.
74040
74041 2005-08-25  Jim Meyering  <jim@meyering.net>
74042
74043         * lib/open-safer.c: Include <config.h>.
74044         Otherwise, we'd lose LARGEFILE support in any file using
74045         e.g. "fcntl--.h"
74046
74047 2005-08-25  Bruno Haible  <bruno@clisp.org>
74048
74049         * m4/minmax.m4: Require autoconf 2.52.
74050         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
74051         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
74052         alternatives of translit over the alphabet.
74053         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
74054
74055 2005-08-24  Simon Josefsson  <jas@extundo.com>
74056
74057         * tests/test-getpass.c: New file.
74058
74059 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74060
74061         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
74062         for GNU regex features.
74063
74064 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74065
74066         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
74067         * lib/regex.h (regerror): Likewise.
74068
74069         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
74070         requires this.  (The code never needed it.)
74071
74072         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
74073         All uses of recently-renamed identifiers changed to use the new,
74074         POSIX-compliant names.  The code will build and run just fine
74075         without these changes, but it's better to eat our own dog food
74076         and use the standard-conforming names.
74077
74078         * lib/regex.h: Fix a multitude of POSIX name space violations.
74079         These changes have an effect only for programs that define
74080         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
74081         do not change anything for programs compiled in the normal way.
74082         Also, there is no effect on the ABI.
74083
74084         (_REGEX_SOURCE): New macro.
74085         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
74086         defined and _GNU_SOURCE is not; this fixes a name space violation.
74087
74088         Rename the following macros to obey POSIX requirements.
74089         The old names are still visible as macros if _REGEX_SOURCE is defined.
74090         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
74091         RE_BACKSLASH_ESCAPE_IN_LISTS.
74092         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
74093         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
74094         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
74095         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
74096         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
74097         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
74098         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
74099         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
74100         (REG_INTERVALS): renamed from RE_INTERVALS.
74101         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
74102         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
74103         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
74104         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
74105         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
74106         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
74107         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
74108         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
74109         RE_UNMATCHED_RIGHT_PAREN_ORD.
74110         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
74111         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
74112         (REG_DEBUG): renamed from RE_DEBUG.
74113         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
74114         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
74115         unusual, since we can't clash with the POSIX REG_ICASE.
74116         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
74117         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
74118         (REG_NO_SUB): renamed from RE_NO_SUB.
74119         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
74120         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
74121         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
74122         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
74123         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
74124         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
74125         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
74126         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
74127         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
74128         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
74129         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
74130         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
74131         RE_SYNTAX_POSIX_MINIMAL_BASIC.
74132         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
74133         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
74134         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
74135         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
74136         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
74137         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
74138         (REG_FIXED): Renamed from REGS_FIXED.
74139         (REG_NREGS): Renamed from RE_NREGS.
74140
74141         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
74142         of other REG_* macros, since POSIX says the user is allowed to
74143         #undef these macros selectively.
74144
74145         (reg_errcode_t): Update comment stating what other tables need
74146         to be consistent.
74147
74148         Rename the following enum values to obey POSIX requirements.
74149         The old names are still visible as macros.
74150         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
74151         is not defined, since GNU is supposed to be a superset of POSIX as
74152         much as possible, and since we want reg_errcode_t to be a signed
74153         type for implementation consistency.
74154         (_REG_NOERROR): Renamed from REG_NOERROR.
74155         (_REG_NOMATCH): Renamed from REG_NOMATCH.
74156         (_REG_BADPAT): Renamed from REG_BADPAT.
74157         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
74158         (_REG_ECTYPE): Renamed from REG_ECTYPE.
74159         (_REG_EESCAPE): Renamed from REG_EESCAPE.
74160         (_REG_ESUBREG): Renamed from REG_ESUBREG.
74161         (_REG_EBRACK): Renamed from REG_EBRACK.
74162         (_REG_EPAREN): Renamed from REG_EPAREN.
74163         (_REG_EBRACE): Renamed from REG_EBRACE.
74164         (_REG_BADBR): Renamed from REG_BADBR.
74165         (_REG_ERANGE): Renamed from REG_ERANGE.
74166         (_REG_ESPACE): Renamed from REG_ESPACE.
74167         (_REG_BADRPT): Renamed from REG_BADRPT.
74168         (_REG_EEND): Renamed from REG_EEND.
74169         (_REG_ESIZE): Renamed from REG_ESIZE.
74170         (_REG_ERPAREN): Renamed from REG_ERPAREN.
74171         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
74172         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
74173         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
74174         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
74175
74176         (_REG_RE_NAME, _REG_RM_NAME): New macros.
74177         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
74178         changed.  But support the old name if the new one is not defined
74179         and if _REGEX_SOURCE.
74180
74181         Change the following member names in struct re_pattern_buffer.
74182         The old names are still supported if !_REGEX_SOURCE.
74183         The new names are always supported, regardless of _REGEX_SOURCE.
74184         (re_buffer): Renamed from buffer.
74185         (re_allocated): Renamed from allocated.
74186         (re_used): Renamed from used.
74187         (re_syntax): Renamed from syntax.
74188         (re_fastmap): Renamed from fastmap.
74189         (re_translate): Renamed from translate.
74190         (re_can_be_null): Renamed from can_be_null.
74191         (re_regs_allocated): Renamed from regs_allocated.
74192         (re_fastmap_accurate): Renamed from fastmap_accurate.
74193         (re_no_sub): Renamed from no_sub.
74194         (re_not_bol): Renamed from not_bol.
74195         (re_not_eol): Renamed from not_eol.
74196         (re_newline_anchor): Renamed from newline_anchor.
74197
74198         Change the following member names in struct re_registers.
74199         The old names are still supported if !_REGEX_SOURCE.
74200         The new names are always supported, regardless of _REGEX_SOURCE.
74201         (rm_num_regs): Renamed from num_regs.
74202         (rm_start): Renamed from start.
74203         (rm_end): Renamed from end.
74204
74205         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
74206         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
74207         Prepend __ to parameter names.
74208
74209         Undo yesterday's changes.
74210
74211 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74212
74213         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
74214         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
74215         lib/regex.c.
74216
74217 2005-08-24  Jim Meyering  <jim@meyering.net>
74218
74219         Sync from coreutils.
74220         * m4/fcntl-safer.m4: New file.
74221
74222         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
74223         and object files for this module.
74224
74225 2005-08-24  Jim Meyering  <jim@meyering.net>
74226
74227         Sync from coreutils.
74228         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
74229
74230 2005-08-24  Jim Meyering  <jim@meyering.net>
74231
74232         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
74233         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
74234
74235 2005-08-24  Jim Meyering  <jim@meyering.net>
74236
74237         * modules/fcntl-safer: New module.
74238         * modules/fts (Depends-on): Add fcntl-safer.
74239         * MODULES.html.sh (File descriptor based Input/Output):
74240         Add fcntl-safer.
74241
74242 2005-08-24  Bruno Haible  <bruno@clisp.org>
74243
74244         Support for unit test modules.
74245         * modules/README: Mention tests modules.
74246         * modules/TEMPLATE-TESTS: New file.
74247         * gnulib-tool: New options --extract-tests-module, --with-tests and
74248         --tests-base (unused for the moment).
74249         (testsbase, inctests): New variables.
74250         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
74251         (func_verify_module): Exclude TEMPLATE-TESTS.
74252         (func_verify_nontests_module, func_verify_tests_module): New functions.
74253         (func_get_dependencies): Add implicit dependency for tests modules.
74254         (func_get_tests_module): New function.
74255         (func_modules_transitive_closure): When --with-tests was specified,
74256         include the unit tests as well, unless explicitly avoided.
74257         (func_emit_lib_Makefile_am): Ignore the tests modules here.
74258         (func_emit_tests_Makefile_am): New function.
74259         (func_create_testdir): When --with-tests was specified, emit a
74260         tests/ directory.
74261         * MODULES.html.sh (Future developments): Update.
74262
74263 2005-08-24  Bruno Haible  <bruno@clisp.org>
74264
74265         * modules/tls-tests: New file.
74266         * tests/test-tls.c: New file, from GNU gettext.
74267
74268 2005-08-24  Bruno Haible  <bruno@clisp.org>
74269
74270         * modules/lock-tests: New file.
74271         * tests/test-lock.c: New file, from GNU gettext.
74272
74273 2005-08-24  Bruno Haible  <bruno@clisp.org>
74274
74275         * lib/lock.h: Add multiple inclusion guard.
74276         * lib/tls.h: Add multiple inclusion guard.
74277
74278 2005-08-24  Bruno Haible  <bruno@clisp.org>
74279
74280         * gnulib-tool: Add support for the --aux-dir option to
74281         --create-testdir, --create-megatestdir, --test, --megatest.
74282         (func_create_testdir, func_create_megatestdir): Optionally emit a
74283         AC_CONFIG_AUX_DIR directive.
74284         (create-testdir, create-megatestdir, test, megatest): Provide a
74285         default value for $auxdir.
74286
74287 2005-08-24  Bruno Haible  <bruno@clisp.org>
74288
74289         * gnulib-tool (import): Use compound statement instead of subshell
74290         where possible.
74291
74292 2005-08-24  Bruno Haible  <bruno@clisp.org>
74293
74294         * gnulib-tool (import): Change --aux-dir default to "build-aux".
74295
74296 2005-08-24  Bruno Haible  <bruno@clisp.org>
74297
74298         * gnulib-tool (func_version): Update.
74299
74300 2005-08-24  Bruno Haible  <bruno@clisp.org>
74301
74302         * gnulib-tool (func_import, func_create_testdir,
74303         func_create_megatestdir): Quote all autoconf macro arguments.
74304
74305 2005-08-24  Bruno Haible  <bruno@clisp.org>
74306
74307         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
74308         option --force, because --force causes the aclocal.m4 of each
74309         subdirectory to be newer than the corresponding config.h.in.
74310
74311 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74312
74313         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
74314         All contents moved to gl_REGEX.
74315         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
74316         assume that it does.
74317
74318 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74319
74320         * lib/regex.h (REG_NOSYS)
74321         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
74322         Define, since POSIX requires it as of 2001.
74323         (_REG_ENOSYS)
74324         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
74325         New private symbol, used to keep the enum signed in all cases.
74326         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
74327         Youngman in
74328         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
74329
74330         * lib/regex_internal.c (re_string_skip_chars, register_state):
74331         (calc_state_hash):
74332         Remove forward decls; no longer needed now that we use prototypes.
74333         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
74334         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
74335         (clean_state_log_if_needed): Likewise.
74336
74337 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74338
74339         * config/srclist.txt: Add glibc bugs 1231-1233.
74340
74341 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74342
74343         Fix problems reported by Sam Steingold in
74344         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
74345         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
74346         assumed that reg_errcode_t is a signed type, which is not
74347         necessarily true if _XOPEN_SOURCE is not defined.
74348         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
74349         since some compilers warn about it otherwise.
74350
74351 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74352
74353         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
74354         (init_word_char, create_initial_state, duplicate_node_closure):
74355         (fetch_token, peek_token_bracket, build_range_exp):
74356         (build_collating_symbol): Remove forward decls; no longer needed
74357         now that we use prototypes.
74358
74359         * lib/regcomp.c:
74360         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
74361         (re_compile_fastmap_iter, regcomp, regerror, regfree):
74362         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
74363         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
74364         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
74365         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
74366         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
74367         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
74368         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
74369         (build_range_exp, build_collating_symbol, parse_bracket_exp):
74370         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
74371         (build_charclass, build_charclass_op, fetch_number, create_tree):
74372         (create_token_tree, mark_opt_subexp, duplicate_tree):
74373         Use prototypes rather than old-style definitions.
74374
74375         * lib/regex_internal.c:
74376         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
74377         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
74378         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
74379         (re_string_reconstruct, re_string_peek_byte_case):
74380         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
74381         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
74382         (re_node_set_init_copy, re_node_set_add_intersect):
74383         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
74384         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
74385         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
74386         (re_acquire_state, re_acquire_state_context, register_state):
74387         (create_ci_newstate, create_cd_newstate, free_state):
74388         Likewise.
74389         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
74390         re_search_2):
74391         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
74392         (re_search_internal, prune_impossible_nodes):
74393         (acquire_init_state_context, check_matching, static):
74394         (check_halt_node_context, check_halt_state_context, proceed_next_node):
74395         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
74396         (update_regs, sift_states_backward, build_sifted_states):
74397         (clean_state_log_if_needed, merge_state_array):
74398         (update_cur_sifted_state, add_epsilon_src_nodes):
74399         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
74400         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
74401         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
74402         (find_recover_state, check_subexp_matching_top, transit_state_mb):
74403         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
74404         (check_arrival, check_arrival_add_next_nodes):
74405         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
74406         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
74407         (check_node_accept_bytes, check_node_accept, extend_buffers):
74408         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
74409         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
74410         (sift_ctx_init):
74411         Likewise.
74412
74413         * lib/regex_internal.h:
74414         (re_string_allocate, re_string_construct, re_string_reconstruct):
74415         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
74416         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
74417         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
74418         (re_string_context_at, re_string_peek_byte_case):
74419         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
74420         is defined, since we now use prototypes always.
74421
74422         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
74423         C89 or better.  All uses removed.
74424
74425 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74426
74427         * config/srclist.txt: Add glibc bugs 1220-1227.
74428
74429 2005-08-20  Jim Meyering  <jim@meyering.net>
74430
74431         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
74432         of unused local, dfa.
74433
74434 2005-08-20  Bruno Haible  <bruno@clisp.org>
74435
74436         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
74437
74438 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74439
74440         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
74441         (re_node_set_insert_last, re_dfa_add_node):
74442         Rename local variables to avoid GCC shadowing warnings.
74443
74444 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74445
74446         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
74447         [defined lint]: Suppress bogus uninitialized-variable warnings.
74448
74449         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
74450         and let the caller return REG_ESPACE if out of space.  This
74451         removes an uninitialied-variable warning with GCC 4.0.1, and also
74452         avoids taking the address of a local variable.  All callers
74453         changed.
74454
74455 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74456
74457         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
74458         $LIBCSRC/posix/regexec.c.
74459         Add glibc bug 1217 for regcomp.c.
74460
74461 2005-08-19  Jim Meyering  <jim@meyering.net>
74462
74463         * lib/regexec.c (proceed_next_node): Redo local variables to
74464         avoid GCC shadowing warnings.
74465
74466 2005-08-18  Bruno Haible  <bruno@clisp.org>
74467
74468         * lib/strstr.c (strstr): Fix return value in multibyte case.
74469         * lib/strcasestr.c (strcasestr): Likewise.
74470
74471 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74472
74473         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
74474
74475 2005-08-17  Jim Meyering  <jim@meyering.net>
74476
74477         Make the %s format (seconds since the epoch) work for a negative
74478         number and when used with a zero-padded field width, e.g. %015s.
74479
74480         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
74481         label so that it precedes the code to set `digits'.  Otherwise,
74482         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
74483         print `00-22'.  Now, it prints `-0022', as it should.
74484
74485 2005-08-17  Bruno Haible  <bruno@clisp.org>
74486
74487         * modules/strstr (Files): Add m4/mbrtowc.m4.
74488         (Depends-on): Add mbuiter.
74489
74490 2005-08-17  Bruno Haible  <bruno@clisp.org>
74491
74492         * modules/strcasestr: New file.
74493         * MODULES.html.sh (String handling, based on ANSI C 89): Add
74494         strcasestr.
74495
74496 2005-08-17  Bruno Haible  <bruno@clisp.org>
74497
74498         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
74499
74500 2005-08-17  Bruno Haible  <bruno@clisp.org>
74501
74502         * modules/mbuiter: New file.
74503         * MODULES.html.sh (Extended multibyte and wide character utilities):
74504         Add mbuiter.
74505
74506 2005-08-17  Bruno Haible  <bruno@clisp.org>
74507
74508         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
74509         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
74510
74511 2005-08-17  Bruno Haible  <bruno@clisp.org>
74512
74513         * m4/strcasestr.m4: New file.
74514
74515 2005-08-17  Bruno Haible  <bruno@clisp.org>
74516
74517         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
74518         * lib/strstr.c: Completely rewritten, with multibyte locale support.
74519
74520 2005-08-17  Bruno Haible  <bruno@clisp.org>
74521
74522         * lib/strcasestr.h: New file.
74523         * lib/strcasestr.c: New file.
74524
74525 2005-08-17  Bruno Haible  <bruno@clisp.org>
74526
74527         * lib/strcasecmp.c: Use mbuiter.h.
74528
74529 2005-08-17  Bruno Haible  <bruno@clisp.org>
74530
74531         * lib/mbuiter.h: New file.
74532
74533 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
74534
74535         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
74536         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
74537         and gl_GETOPT are both invoked via different paths (as happens
74538         with GNU tar CVS because it uses both argp and getopt), the former
74539         wins.
74540
74541 2005-08-16  Bruno Haible  <bruno@clisp.org>
74542
74543         * modules/tls: New file.
74544         * MODULES.html.sh (Multithreading): Add tls.
74545
74546 2005-08-16  Bruno Haible  <bruno@clisp.org>
74547
74548         * modules/strnlen1: New file.
74549         * MODULES.html.sh (String handling): Add strnlen1.
74550
74551 2005-08-16  Bruno Haible  <bruno@clisp.org>
74552
74553         * modules/strcase (Files): Add m4/mbrtowc.m4.
74554         (Depends-on): Add strnlen1, mbchar.
74555
74556 2005-08-16  Bruno Haible  <bruno@clisp.org>
74557
74558         * modules/mbiter: New file.
74559         * MODULES.html.sh (Extended multibyte and wide character utilities):
74560         Add mbiter.
74561
74562 2005-08-16  Bruno Haible  <bruno@clisp.org>
74563
74564         * modules/mbfile: New file.
74565         * MODULES.html.sh (Extended multibyte and wide character utilities):
74566         Add mbfile.
74567
74568 2005-08-16  Bruno Haible  <bruno@clisp.org>
74569
74570         * modules/mbchar: New file.
74571         * MODULES.html.sh (Extended multibyte and wide character utilities):
74572         New section.
74573
74574 2005-08-16  Bruno Haible  <bruno@clisp.org>
74575
74576         * m4/tls.m4: New file, from GNU gettext.
74577
74578 2005-08-16  Bruno Haible  <bruno@clisp.org>
74579
74580         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
74581         always.
74582         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
74583
74584 2005-08-16  Bruno Haible  <bruno@clisp.org>
74585
74586         * m4/mbiter.m4: New file.
74587
74588 2005-08-16  Bruno Haible  <bruno@clisp.org>
74589
74590         * m4/mbfile.m4: New file.
74591
74592 2005-08-16  Bruno Haible  <bruno@clisp.org>
74593
74594         * m4/mbchar.m4: New file.
74595
74596 2005-08-16  Bruno Haible  <bruno@clisp.org>
74597
74598         * lib/tls.h: New file, from GNU gettext.
74599         * lib/tls.c: New file, from GNU gettext.
74600
74601 2005-08-16  Bruno Haible  <bruno@clisp.org>
74602
74603         * lib/strnlen1.h: New file.
74604         * lib/strnlen1.c: New file.
74605
74606 2005-08-16  Bruno Haible  <bruno@clisp.org>
74607
74608         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
74609         (mbi_init): Update.
74610         (mbi_avail, mbi_advance): Let the iteration end before the terminating
74611         NUL byte, not after it.
74612
74613 2005-08-16  Bruno Haible  <bruno@clisp.org>
74614
74615         * lib/strcase.h (strcasecmp): Add note in comments.
74616         * lib/strncasecmp.c: Use code from strcasecmp.c.
74617         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
74618         (strcasecmp): Work correctly in multibyte locales.
74619
74620 2005-08-16  Bruno Haible  <bruno@clisp.org>
74621
74622         * lib/mbiter.h: New file.
74623
74624 2005-08-16  Bruno Haible  <bruno@clisp.org>
74625
74626         * lib/mbfile.h: New file.
74627
74628 2005-08-16  Bruno Haible  <bruno@clisp.org>
74629
74630         * lib/mbchar.h: New file.
74631         * lib/mbchar.c: New file.
74632
74633 2005-08-16  Bruno Haible  <bruno@clisp.org>
74634
74635         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
74636         the valid ones. Makes the comparison operations transitive:
74637         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
74638         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
74639
74640 2005-08-15  Simon Josefsson  <jas@extundo.com>
74641
74642         * modules/ssize_t (License): Change to 'unlimited'.
74643
74644         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
74645
74646 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74647
74648         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
74649         Add comments for each pending glibc patch.
74650
74651 2005-08-15  Bruno Haible  <bruno@clisp.org>
74652
74653         * lib/regex.h (__restrict_arr): Don't define to __restrict if
74654         __cplusplus is defined.
74655
74656 2005-08-14  Jim Meyering  <jim@meyering.net>
74657
74658         Sync from coreutils.
74659
74660         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
74661         Use the hash-table-based cycle-detection code not just when
74662         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
74663         Reported by James Youngman in
74664         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
74665         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
74666         FTS_TIGHT_CYCLE_CHECK.
74667         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
74668         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
74669         once again.
74670         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
74671         * lib/fts.c (fd_safer): Remove decl.
74672         Include fcntl--.h rather than unistd-safer.h
74673         (fts_safe_changedir): Don't call fd_safer; no longer needed
74674         now that we include fcntl--.h.
74675
74676 2005-08-12  Simon Josefsson  <jas@extundo.com>
74677
74678         * modules/getndelim2: Use ssize_t module.
74679         * modules/getnline: Likewise.
74680         * modules/safe-read: Likewise.
74681         * modules/xreadlink: Likewise.
74682
74683         * modules/ssize_t: New file.
74684
74685 2005-08-12  Simon Josefsson  <jas@extundo.com>
74686
74687         * m4/readline.m4: Look for termcap, curses or ncurses if required.
74688
74689 2005-08-12  Simon Josefsson  <jas@extundo.com>
74690
74691         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74692         ssize_t.
74693
74694 2005-08-12  Simon Josefsson  <jas@extundo.com>
74695
74696         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
74697         readline, getdelim and check_version.
74698         (Support for systems lacking ISO C 99: Sizes of integer types):
74699         Add size_max.
74700
74701 2005-08-12  Bruno Haible  <bruno@clisp.org>
74702
74703         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
74704
74705 2005-08-11  Simon Josefsson  <jas@extundo.com>
74706
74707         * modules/readline: New file.
74708
74709         * modules/strnlen (Files): Add strnlen.h.
74710
74711 2005-08-11  Simon Josefsson  <jas@extundo.com>
74712
74713         * m4/readline.m4: New file.
74714
74715 2005-08-11  Simon Josefsson  <jas@extundo.com>
74716
74717         * lib/readline.h, readline.c: New file.
74718
74719 2005-08-11  Simon Josefsson  <jas@extundo.com>
74720
74721         * doc/gnulib.texi (Initial import, Finishing touches): Mention
74722         gl_AVOID.
74723
74724 2005-08-11  Bruno Haible  <bruno@clisp.org>
74725
74726         * lib/strnlen.h (strnlen): Change parameter name to match comment.
74727
74728 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
74729
74730         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
74731
74732 2005-08-10  Simon Josefsson  <jas@extundo.com>
74733
74734         * tests/test-iconvme.c: New file.
74735
74736 2005-08-10  Simon Josefsson  <jas@extundo.com>
74737
74738         * m4/strnlen.m4: New file.
74739
74740         * m4/strndup.m4: Don't check for strnlen declaration, done in
74741         strnlen.m4.
74742
74743 2005-08-10  Simon Josefsson  <jas@extundo.com>
74744
74745         * lib/strndup.c: Use strnlen.h.
74746
74747         * lib/strnlen.h: New file.
74748
74749 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74750
74751         * README: Typos.
74752
74753 2005-08-02  Simon Josefsson  <jas@extundo.com>
74754
74755         * modules/readline: New file.
74756
74757 2005-08-02  Simon Josefsson  <jas@extundo.com>
74758
74759         * modules/getdelim: New file.
74760
74761         * modules/getline: Rewrite, don't use getndelim2.
74762
74763 2005-08-02  Simon Josefsson  <jas@extundo.com>
74764
74765         * m4/getline.m4: Separate out getdelim stuff into separate module.
74766
74767         * m4/getdelim.m4: New file.
74768
74769 2005-08-02  Simon Josefsson  <jas@extundo.com>
74770
74771         * lib/getline.h, getline.c: Rewrite.
74772
74773         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
74774
74775 2005-07-31  Bruno Haible  <bruno@clisp.org>
74776
74777         * lib/lock.h (gl_lock_initializer): New macro.
74778         (gl_lock_define_initialized): Use it.
74779         (gl_rwlock_initializer): New macro.
74780         (gl_rwlock_define_initialized): Use it.
74781         (gl_recursive_lock_initializer): New macro.
74782         (gl_recursive_lock_define_initialized): Use it.
74783
74784 2005-07-30  Karl Berry  <karl@gnu.org>
74785
74786         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
74787         Report from Ben Pfaff, regarding getopt.
74788
74789 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
74790
74791         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
74792         normal way.
74793         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
74794         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
74795         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
74796         (gl_GETOPT): Use the new macros.  Most of the implementation
74797         is moved to the new macros.  This is for programs like Emacs
74798         that don't want all the functionality of gl_GETOPT.
74799
74800 2005-07-26  Bruno Haible  <bruno@clisp.org>
74801
74802         * m4/lock.m4: Update from GNU gettext.
74803
74804 2005-07-26  Bruno Haible  <bruno@clisp.org>
74805
74806         * lib/lock.h: Update from GNU gettext.
74807         * lib/lock.c: Update from GNU gettext.
74808
74809 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
74810
74811         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
74812         obsolescent AC_TRY_RUN.  Include the default includes files, for
74813         'exit'.
74814
74815 2005-07-24  Bruno Haible  <bruno@clisp.org>
74816
74817         * modules/visibility: New file.
74818         * MODULES.html.sh (Misc): Add visibility.
74819
74820 2005-07-24  Bruno Haible  <bruno@clisp.org>
74821
74822         * m4/visibility.m4: New file.
74823
74824 2005-07-24  Bruno Haible  <bruno@clisp.org>
74825
74826         * doc/visibility.texi: New file.
74827
74828 2005-07-22  Bruno Haible  <bruno@clisp.org>
74829
74830         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
74831         $(ALLOCA_H), redundant through BUILT_SOURCES.
74832         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
74833         redundant through BUILT_SOURCES.
74834         * modules/byteswap (Makefile.am): Remove explicit dependency on
74835         $(BYTESWAP_H), redundant through BUILT_SOURCES.
74836         * modules/fnmatch (Makefile.am): Remove explicit dependency on
74837         $(FNMATCH_H), redundant through BUILT_SOURCES.
74838         * modules/getopt (Makefile.am): Remove explicit dependency on
74839         $(GETOPT_H), redundant through BUILT_SOURCES.
74840         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
74841         redundant through BUILT_SOURCES.
74842         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
74843         redundant through BUILT_SOURCES.
74844         * modules/stdbool (Makefile.am): Remove explicit dependency on
74845         $(STDBOOL_H), redundant through BUILT_SOURCES.
74846         * modules/stdint (Makefile.am): Remove explicit dependency on
74847         $(STDINT_H), redundant through BUILT_SOURCES.
74848         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
74849         Remove explicit dependency on $(SYSEXITS_H).
74850         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
74851
74852 2005-07-18  Simon Josefsson  <jas@extundo.com>
74853
74854         * lib/check-version.c (check_version): Accept identical versions too.
74855
74856 2005-07-18  Bruno Haible  <bruno@clisp.org>
74857
74858         * modules/lock: New file.
74859         * MODULES.html.sh (Multithreading): New section.
74860
74861 2005-07-18  Bruno Haible  <bruno@clisp.org>
74862
74863         * m4/lock.m4: New file, from GNU gettext.
74864
74865 2005-07-18  Bruno Haible  <bruno@clisp.org>
74866
74867         * lib/lock.h: New file, from GNU gettext.
74868         * lib/lock.c: New file, from GNU gettext.
74869
74870 2005-07-18  Bruno Haible  <bruno@clisp.org>
74871
74872         * lib/lock.h (gl_once_t): New type.
74873         (gl_once_define, gl_once): New macros.
74874         * lib/lock.c (fresh_once): New variable.
74875         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
74876         functions.
74877
74878 2005-07-16  Simon Josefsson  <jas@extundo.com>
74879
74880         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
74881         workaround, suggested by Bruno.
74882
74883 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
74884
74885         * modules/xalloc (Depends-on): Add xalloc-die.
74886         * modules/xvasprintf (Depends-on): Add xalloc-die.
74887
74888 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
74889
74890         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
74891         with a minor change.
74892
74893 2005-07-15  Bruno Haible  <bruno@clisp.org>
74894
74895         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
74896         When using lib/poll.c, define poll as rpl_poll.
74897
74898 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
74899
74900         * modules/argp (Depends-on): Remove unlocked-io.
74901
74902 2005-07-14  Derek Price  <derek@ximbiot.com>
74903
74904         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
74905         for glob symlink bug.
74906
74907 2005-07-14  Bruno Haible  <bruno@clisp.org>
74908
74909         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
74910         Instead, test for *_unlocked function declarations directly.
74911
74912 2005-07-11  Simon Josefsson  <jas@extundo.com>
74913
74914         * modules/size_max: New file.
74915
74916         * modules/xsize: Depend on size_max module for size_max.m4.
74917
74918 2005-07-11  Simon Josefsson  <jas@extundo.com>
74919
74920         * lib/size_max.h: New file.
74921
74922 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
74923
74924         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
74925         copyright symbol and the year.
74926         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
74927         (version_etc_va): Use parameterized copyright notice.
74928         Reword to conform to the current GNU coding standards.
74929
74930 2005-07-11  Karl Berry  <karl@gnu.org>
74931
74932         * doc/gnulib.texi (Quoting): new node.
74933         (Initial import): more info, from Patrice.
74934
74935 2005-07-11  Bruno Haible  <bruno@clisp.org>
74936
74937         * gnulib-tool (func_usage): Document option --avoid.
74938         (Command line options): Handle --avoid.
74939         (func_acceptable): New function.
74940         (func_modules_transitive_closure): Use it.
74941
74942 2005-07-11  Bruno Haible  <bruno@clisp.org>
74943
74944         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
74945         Reported by Jim Meyering.
74946
74947 2005-07-10  Bruno Haible  <bruno@clisp.org>
74948
74949         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
74950         Needed when size_t is smaller than 'unsigned int'.
74951         Reported by Paul Eggert.
74952
74953 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74954
74955         * modules/argp (Depends-on): Add unlocked-io
74956
74957 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74958
74959         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
74960         block of defines.
74961
74962 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
74963
74964         * config/srclist.txt: Comment out regcomp.c, since we have a porting
74965         fix now.
74966
74967 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
74968         and Paul Eggert  <eggert@cs.ucla.edu>
74969
74970         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
74971         in wint_t, not wchar_t.  Remove now-unnecessary cast.
74972
74973 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
74974
74975         * modules/regex (Files): Add lib/regex_internal.c,
74976         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
74977         (Depends-on): Add extensions.
74978         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
74979
74980 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
74981
74982         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
74983         pathconf.
74984         * m4/same.m4 (gl_SAME): Likewise.
74985         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
74986
74987         * m4/regex.m4: Adjust to new libc regex implementation.
74988         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
74989         all the .c and .h parts of (the new) regex.
74990         Quote the m4 stuff better.
74991         Check for RE_ICASE bug of old gnulib.
74992         Check for REG_STARTEND of recent libc.
74993         Rename local variables from jm_* to gl_*.
74994         Quote operand of "test -f".
74995         Say "recent enough" version of libc, not "version 2".
74996         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
74997         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
74998         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
74999         Remove check for btowc, isascii.
75000         Require AM_LANGINFO_CODESET.
75001
75002 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75003
75004         * lib/regex.c, regex.h: Sync from libc.
75005         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
75006         * lib/regexec.c:
75007         New files, synced from libc, except that regex_internal.h
75008         currently has a small porting fix.
75009
75010 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
75011
75012         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
75013         regex_internal.c, regexec.c.
75014         Add regex_internal.h too, but as a comment, since the libc version
75015         is currently broken in gnulib mode.
75016
75017 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75018
75019         Support programs like Emacs that use gnulib but not gettext.
75020         * MODULES.html.sh (Internationalization functions): Add gettext-h.
75021         * modules/gettext-h: New file.
75022         * modules/gettext (Files): Remove lib/gettext.h.
75023         (Depends-on): Add gettext-h.
75024         (Makefile.am): Remove lib_SOURCES.
75025         * modules/argmatch, modules/c-stack, modules/closeout:
75026         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
75027         * modules/execute, modules/file-type, modules/getaddrinfo:
75028         * modules/getopt, modules/human, modules/javacomp:
75029         * modules/javaexec, modules/mkdir-p, modules/obstack:
75030         * modules/openat, modules/pagealign_alloc, modules/pipe:
75031         * modules/quotearg, modules/regex, modules/rpmatch:
75032         * modules/unicodeio, modules/userspec, modules/version-etc:
75033         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
75034         * modules/xsetenv:
75035         Depend on gettext-h, not gettext.
75036
75037 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75038
75039         * gnulib-tool (func_import): Add support for 'public domain' license.
75040         * modules/alloca, modules/atexit, modules/memmove:
75041         Now public domain, not GPL.
75042         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
75043         * modules/realloc, modules/strerror, modules/strtod:
75044         Now LGPL, not GPL.
75045
75046 2005-07-05  Bruno Haible  <bruno@clisp.org>
75047
75048         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
75049         autoconf CVS. Needed for mingw.
75050
75051 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75052
75053         Remove the dependency of the strftime module on the tzset module.
75054         * modules/strftime (Depends-on): Remove dependency on tzset.
75055
75056 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75057
75058         Remove the dependency of the strftime module on the tzset module.
75059         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
75060         gl_FUNC_TZSET_CLOBBER.
75061
75062 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75063
75064         Remove the dependency of the strftime module on the tzset module.
75065         * lib/strftime.c (my_strftime)
75066         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
75067         Copy the input structure, to work around some of the bug with
75068         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
75069         Solaris releases, you should also use the tzset module, but we won't
75070         require it as a dependency any more since we don't want LGPLed code
75071         to depend on GPLed code.
75072
75073 2005-07-02  Jim Meyering  <jim@meyering.net>
75074
75075         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
75076         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
75077         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
75078         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
75079
75080 2005-07-02  Jim Meyering  <jim@meyering.net>
75081
75082         * lib/backupfile.c (backup_args): Change a `0' to NULL.
75083
75084 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75085
75086         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
75087         declares only 'struct timespec;' (!).
75088
75089 2005-07-01  Jim Meyering  <jim@meyering.net>
75090
75091         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
75092         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
75093         * lib/save-cwd.c, tempname.c:
75094         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75095         and don't include <sys/file.h>).
75096
75097 2005-06-29  Jim Meyering  <jim@meyering.net>
75098
75099         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
75100         type name.  Use the variable name instead.
75101         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
75102         Likewise.
75103
75104 2005-06-28  Simon Josefsson  <jas@extundo.com>
75105
75106         * modules/check-version (Files): Add check-version.m4.
75107
75108 2005-06-28  Simon Josefsson  <jas@extundo.com>
75109
75110         * m4/check-version.m4: New file, suggested by Jim Meyering
75111         <jim@meyering.net>.
75112
75113 2005-06-28  Simon Josefsson  <jas@extundo.com>
75114
75115         * lib/check-version.h, lib/check-version.c: New files.
75116
75117 2005-06-28  Simon Josefsson  <jas@extundo.com>
75118
75119         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
75120         collision with global variable.  Better indentation.  Don't
75121         increment buffer pointer beyond buffer end.  Based on comments
75122         from Paul Eggert <eggert@cs.ucla.edu>.
75123
75124         * lib/base64.h: Indent.
75125
75126 2005-06-28  Simon Josefsson  <jas@extundo.com>
75127
75128         * doc/gnulib.texi (Library version handling): New section.
75129
75130 2005-06-28  Jim Meyering  <jim@meyering.net>
75131
75132         * check-module (find_included_lib_files): Hard-code another
75133         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
75134         but modules/fts-lgpl (correctly) does not list those files.
75135
75136         * modules/canonicalize (Files): Add lib/pathmax.h.
75137
75138 2005-06-25  Simon Josefsson  <jas@extundo.com>
75139
75140         * modules/check-version: New file.
75141
75142 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
75143
75144         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
75145         initializer of struct addrinfo, as an indication that we don't
75146         care how many members the structure has.
75147
75148 2005-06-24  Derek Price  <derek@ximbiot.com>
75149         and Bruno Haible  <bruno@clisp.org>
75150
75151         Remove stat module & update lstat.
75152         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
75153         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75154         * m4/stat.m4: Remove this file.
75155
75156 2005-06-24  Derek Price  <derek@ximbiot.com>
75157         and Bruno Haible  <bruno@clisp.org>
75158
75159         Remove stat module & update lstat.
75160         * lib/stat.c: Remove this file...
75161         (slash_aware_lstat): ...moving this content and its support...
75162         * lib/lstat.c (rpl_lstat): ...into here.
75163         * lib/lstat.h: New file.
75164
75165 2005-06-24  Derek Price  <derek@ximbiot.com>
75166         and Bruno Haible  <bruno@clisp.org>
75167
75168         Remove stat module & update lstat.
75169         * config/srclist.txt (libc sources): Remove stat.
75170
75171 2005-06-24  Derek Price  <derek@ximbiot.com>
75172         and Bruno Haible  <bruno@clisp.org>
75173
75174         Remove stat module & update lstat.
75175         * MODULES.html.sh (stat): Remove.
75176         * MODULES.html: Regenerated.
75177         * modules/lstat (Description): Correct function name.
75178         (Files): Add "lstat.h".
75179         (Depends-on): Remove stat, add xalloc, stat-macros.
75180         * modules/stat: Remove this file.
75181         (Include): Add "lstat.h", remove <sys/stat.h>.
75182
75183 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
75184
75185         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
75186         (ranged_convert): Don't save conversion in a temporary struct.
75187         This causes a warning with GCC 4.0.0, and anyway in the typical
75188         case it's not worth the extra 100 bytes or so of code.
75189         (ranged_convert, __mktime_internal): When calling a function via a
75190         pointer P, use P () rather than (*P) (), as we now assume C89 or
75191         better.
75192
75193 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75194
75195         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
75196         "who -r" failed to give output.  Problem reported by Tim Waugh.
75197
75198         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
75199         (xcalloc): Use it to avoid needless tests.
75200         Problem reported by Jim Meyering.
75201
75202 2005-06-20  Derek Price  <derek@ximbiot.com>
75203
75204         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
75205         unnecessary for Autoconfs > 2.59c.
75206
75207 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75208
75209         * lib/argp.h (__option_is_short): Check upper limit of
75210         __key. Isprint() requires its argument to have the value
75211         of an unsigned char or EOF.
75212
75213 2005-06-16  Jim Meyering  <jim@meyering.net>
75214
75215         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
75216         when either N or S is zero.
75217
75218 2005-06-16  Derek Price  <derek@ximbiot.com>
75219
75220         * m4/bison.m4: Declare YACC & YFLAGS precious.
75221
75222 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
75223
75224         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
75225         multibyte string or pattern, fall back on unibyte matching.
75226         Problem reported by James Youngman.
75227
75228 2005-06-08  Bruno Haible  <bruno@clisp.org>
75229
75230         * modules/csharpcomp: New file.
75231         * MODULES.html.sh (C#): Add csharpcomp.
75232
75233 2005-06-08  Bruno Haible  <bruno@clisp.org>
75234
75235         * m4/csharpcomp.m4: New file, from GNU gettext.
75236
75237 2005-06-08  Bruno Haible  <bruno@clisp.org>
75238
75239         * lib/csharpcomp.h: New file, from GNU gettext.
75240         * lib/csharpcomp.c: New file, from GNU gettext.
75241         * lib/csharpcomp.sh.in: New file, from GNU gettext.
75242
75243 2005-06-08  Bruno Haible  <bruno@clisp.org>
75244
75245         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
75246         warning on mingw.
75247
75248 2005-06-07  Derek Price  <derek@ximbiot.com>
75249
75250         Sync from CVS.
75251         * lib/glob_.h: Indent nested #ifdef.
75252
75253 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75254
75255         Sync from coreutils.
75256         Use "file name" when talking about file names, instead of "filename"
75257         or "path", as per the GNU coding standards.
75258         * lib/mkdir-p.c: Renamed from makepath.c.
75259         (make_dir_parents): Renamed from make_path.  All callers changed.
75260         * lib/mkdir-p.h: Likewise.  All includers changed.
75261         * lib/filenamecat.c: Renamed from path-concat.c.
75262         (file_name_concat): Renamed from path_concat.  All callers changed.
75263         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
75264         * lib/filenamecat.h: Likewise.  All includers changed.
75265         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
75266         in comments or local variable names.
75267         * lib/basename.c: Likewise.
75268         * lib/canonicalize.c, canonicalize.h: Likewise.
75269         * lib/dirname.c, dirname.h: Likewise.
75270         * lib/euidaccess.c: Likewise.
75271         * lib/exclude.c: Likewise
75272         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
75273         * lib/fsusage.c, fsuage.h: Likewise.
75274         * lib/fts.c, fts_.h: Likewise.
75275         * lib/getcwd.c: Likewise.
75276         * lib/getloadavg.c: Likewise.
75277         * lib/mkstemp.c: Likewise.
75278         * lib/mountlist.c, mountlist.h: Likewise.
75279         * lib/openat.c, openat.h: Likewise.
75280         * lib/readlink-stub.c: Likewise.
75281         * lib/readutmp.c, readutmp.h: Likewise.
75282         * lib/rename.c: Likewise.
75283         * lib/rmdir.c: Likewise.
75284         * lib/same.c: Likewise.
75285         * lib/savedir.c: Likewise.
75286         * lib/stripslash.c: Likewise.
75287         * lib/tempname.c: Likewise.
75288         * lib/xreadlink.c: Likewise.
75289         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
75290         All uses changed.
75291         * lib/exclude.h: Likewise.
75292
75293         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
75294         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75295         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
75296         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75297         * lib/pathmax.h: Include <limits.h> unconditionally, since other
75298         files have been getting away with it for years (MORE/BSD 4.3
75299         is extinct now).
75300         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
75301         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
75302
75303         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
75304         Define to 256, not 255, as per modern POSIX.
75305
75306 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75307
75308         Sync from coreutils.
75309         Use "file name" when talking about file names, instead of "filename"
75310         or "path", as per the GNU coding standards.
75311         * MODULES.html.sh: mkdir-p renamed from makepath.
75312         filenamecat renamed from path-concat.
75313         * modules/filenamecat: Renamed from modules/path-concat.
75314         (Files): filenamecat.h and filenamecat.c renamed from
75315         path-concat.h and path-concat.c.
75316         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
75317         (Include): filenamecat.h, not path-concat.h.
75318         * modules/mkdir-p: Renamed from modules/makepath.
75319         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
75320         makepath.c.
75321         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
75322         (Include): mkdir-p.h, not makepath.h.
75323
75324 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
75325
75326         Sync from coreutils.
75327         * m4/mkdir-p.m4: Renamed from makepath.m4.
75328         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
75329         Rename files from makepath.c to mkdir-p.c, and from
75330         makepath.h to mkdir-p.h.
75331         * m4/filenamecat.m4: Renamed from path-concat.m4.
75332         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
75333         Rename files from path-concat.c to filenamecat.c,
75334         and from path-concat.h to filenamecat.h.
75335         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
75336         "file name" in local variables or comments.
75337         * m4/rename.m4: Likewise.
75338
75339 2005-06-01  Bruno Haible  <bruno@clisp.org>
75340
75341         * modules/csharpexec: New file.
75342         * MODULES.html.sh (C#): New section.
75343
75344 2005-06-01  Bruno Haible  <bruno@clisp.org>
75345
75346         * m4/csharp.m4: New file, from GNU gettext.
75347         * m4/csharpexec.m4: New file, from GNU gettext.
75348
75349 2005-06-01  Bruno Haible  <bruno@clisp.org>
75350
75351         * lib/csharpexec.h: New file, from GNU gettext.
75352         * lib/csharpexec.c: New file, from GNU gettext.
75353         * lib/csharpexec.sh.in: New file, from GNU gettext.
75354
75355 2005-05-31  Derek Price  <derek@ximbiot.com>
75356             Paul Eggert  <eggert@cs.ucla.edu>
75357
75358         Sync from cvs.
75359         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
75360
75361 2005-05-31  Derek Price  <derek@ximbiot.com>
75362             Paul Eggert  <eggert@cs.ucla.edu>
75363
75364         Sync from cvs.
75365         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
75366
75367 2005-05-29  Derek Price  <derek@ximbiot.com>
75368
75369         * config/srclist.txt (glob_.h, glob.c): Add these files.
75370
75371 2005-05-29  Derek Price  <derek@ximbiot.com>
75372
75373         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
75374         * modules/glob: New file.
75375         * modules/getlogin_r: Add link to POSIX spec in description.
75376
75377 2005-05-29  Derek Price  <derek@ximbiot.com>
75378             Paul Eggert  <eggert@cs.ucla.edu>
75379
75380         * m4/glob.m4: New file.
75381
75382 2005-05-29  Derek Price  <derek@ximbiot.com>
75383             Paul Eggert  <eggert@cs.ucla.edu>
75384
75385         * lib/glob_.h, lib/glob.c: New files.
75386
75387 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75388
75389         * modules/fts (Files): Remove m4/inttypes-pri.m4.
75390         * modules/fts-lgpl (Depends-on): Remove gettext.
75391
75392 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75393
75394         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
75395         and don't require gt_INTTYPES_PRI.
75396
75397 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
75398
75399         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
75400
75401         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
75402         the configuration hassle isn't worth it.
75403         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
75404         (LONGEST_MODIFIER, PRIuMAX): Remove.
75405
75406 2005-05-27  Bruno Haible  <bruno@clisp.org>
75407
75408         * lib/getlogin_r.h: Remove second include of <stddef.h>.
75409
75410 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
75411
75412         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
75413         _POSIX_PTHREAD_SEMANTICS for Solaris.
75414
75415 2005-05-25  Derek Price  <derek@ximbiot.com>
75416
75417         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
75418
75419 2005-05-25  Derek Price  <derek@ximbiot.com>
75420             Paul Eggert  <eggert@cs.ucla.edu>
75421
75422         * modules/getlogin_r, m4/getlogin_r.m4: New files.
75423         * lib/getlogin_r.c, getlogin_r.h: New files.
75424
75425 2005-05-25  Bruno Haible  <bruno@clisp.org>
75426             Derek Price  <derek@ximbiot.com>
75427
75428         * lib/getlogin_r.h: Simplify API documentation.
75429
75430 2005-05-23  Derek Price  <derek@ximbiot.com>
75431
75432         * modules/minmax (Files): Add m4/minmax.m4.
75433         (configure.ac): Add gl_MINMAX.
75434
75435 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
75436
75437         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
75438         so that unistd-safer.h (GPL'ed code) need not be included.
75439
75440 2005-05-22  Bruno Haible  <bruno@clisp.org>
75441
75442         * m4/minmax.m4: New file.
75443         Based on a patch by Derek Price <derek@ximbiot.com>.
75444
75445 2005-05-22  Bruno Haible  <bruno@clisp.org>
75446
75447         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
75448         (INT64_MIN): Fix definition.
75449         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
75450
75451         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
75452         NEED_SIGNED_INT_TYPES.
75453
75454         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
75455         HAVE_SYSTEM_INTTYPES.
75456
75457 2005-05-22  Bruno Haible  <bruno@clisp.org>
75458
75459         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
75460         Also include <sys/param.h> if it defines MIN, MAX.
75461         Based on a patch by Derek Price <derek@ximbiot.com>.
75462
75463 2005-05-21  Jim Meyering  <jim@meyering.net>
75464
75465         * modules/fts (Files): Add m4/inttypes-pri.m4.
75466         (Depends-on): Add lstat and remove gettext.  Alphabetize.
75467
75468 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75469
75470         New fts module.
75471         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
75472         (setup_dir, free_dir): New functions.
75473         (enter_dir, leave_dir): Define trivial
75474         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
75475         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
75476         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
75477         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
75478         Move to fts-cycle.c.
75479         (fts_open): Use setup_dir.
75480         (fts_close): Use free_dir.
75481         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
75482         This adds a label and some gotos, but the alternatives were messier.
75483         Check for memory allocation failure when entering a dir.
75484         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
75485         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
75486         (FTS): New member fts_cycle, that is a union that contains the
75487         old active_dir_ht and cycle_state.  All uses changed to mention
75488         fts_cycle.ht and fts_cycle.state.
75489         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
75490         fts.c, with the following changes:
75491         (setup_dir, free_dir): New functions.
75492         (enter_dir): Now returns bool.  Return true if successful, false
75493         if memory exhausted.  All callers changed.
75494         Do not bother partly cleaning up on
75495         memory allocation failure; that is free_dir's job.
75496         However, free ad if hash_insert fails, to avoid memory leak.
75497         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
75498         fts->fts_options to see which union member to use.
75499
75500 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75501
75502         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
75503         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
75504
75505 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
75506
75507         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
75508
75509 2005-05-20  Jim Meyering  <jim@meyering.net>
75510
75511         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
75512         Now a macro, to pacify GCC.
75513
75514 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
75515
75516         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
75517         of -1.
75518
75519 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
75520
75521         * lib/chown.c (rpl_chown): Return -1 on failure.
75522
75523 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
75524
75525         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
75526         Don't check for stddef.h.
75527         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
75528         don't use its results.
75529         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
75530         since we include them unconditionally.  Don't require
75531         AM_STDBOOL_H, since stdbool is a prerequisite.
75532         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
75533         since we assume C89 or better.
75534         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
75535         as we don't use their results.
75536         Don't check for fchdir, memmove, memset, strrchr, as we use
75537         them unconditionally.
75538         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
75539         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
75540
75541 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
75542
75543         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
75544         Include <stddef.h> unconditionally, since we assume C89 now.
75545         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
75546         * lib/fts.c: Include fts_.h first, to check interface.
75547         Do not include intprops.h; no longer needed.
75548         Include cycle-check.h and hash.h, since fts_.h no longer does.
75549         Remove unnecessary casts of closedir to void.
75550         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
75551         decide whether to decrement nlinks.
75552         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
75553         (FTS): Use struct hash_table * instead of Hash_table, so that
75554         we no longer need to include hash.h here.
75555
75556 2005-05-18  Jim Meyering  <jim@meyering.net>
75557
75558         * modules/dirfd (License): Change to LGPL.  Most of the code
75559         is already in the public domain.
75560
75561 2005-05-18  Jim Meyering  <jim@meyering.net>
75562
75563         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
75564         Reported by Yoann Vandoorselaere.
75565
75566 2005-05-17  Jim Meyering  <jim@meyering.net>
75567
75568         * m4/fts.m4: New file, from coreutils.
75569
75570 2005-05-17  Jim Meyering  <jim@meyering.net>
75571
75572         * lib/fts.c, lib/fts_.h: New files, from coreutils.
75573
75574 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75575
75576         Sync from coreutils.
75577         * m4/unlinkdir.m4: New file.
75578
75579 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75580
75581         Sync from coreutils.
75582         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
75583         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
75584         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
75585         White space changes only.
75586         * lib/makepath.c (make_path): Port to hosts where leading "//" is
75587         special.
75588         * lib/yesno.c: Include getline.h, not ctype.h.
75589         (yesno): Don't remove leading white space; POSIX doesn't allow it.
75590         Use getline to remove arbitrary restriction on response length.
75591
75592 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
75593
75594         * config/srclist-update: Spell out "Street" in FSF postal
75595         mail address; this is the style the FSF seems to prefer.
75596
75597         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
75598         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
75599         this updates FSF postal mail address.
75600
75601         Sync from coreutils.
75602         * modules/unlinkdir: New file.
75603         * modules/yesno (Depends-on): Add getline.
75604         * MODULES.html.sh (File system functions): Add unlinkdir.
75605
75606 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
75607
75608         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
75609         lib/strsep.h:
75610         Change the initial comment to refer to GPL, not LGPL.
75611         gnulib-tool will change it to LGPL as needed.
75612
75613         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
75614         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
75615         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
75616         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
75617         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
75618         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
75619         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
75620         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
75621         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
75622         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
75623         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
75624         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
75625         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
75626         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
75627         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
75628         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
75629         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
75630         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
75631         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
75632         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
75633         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
75634         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
75635         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
75636         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
75637         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
75638         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
75639         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
75640         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
75641         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
75642         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
75643         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
75644         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
75645         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
75646         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
75647         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
75648         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
75649         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
75650         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
75651         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
75652         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
75653         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
75654         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
75655         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
75656         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
75657         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
75658         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
75659         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
75660         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
75661         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
75662         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
75663         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
75664         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
75665         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
75666         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
75667         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
75668         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
75669         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
75670         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
75671         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
75672         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
75673         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
75674         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
75675         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
75676         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
75677         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
75678         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
75679         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
75680         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
75681         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
75682         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
75683         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
75684         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
75685         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
75686         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
75687         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
75688         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
75689         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
75690         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
75691         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
75692         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
75693         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
75694         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
75695         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
75696         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
75697         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
75698         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
75699         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
75700         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
75701         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
75702         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
75703         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
75704         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
75705         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
75706         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
75707         lib/yesno.c, lib/yesno.h:
75708         Update FSF postal mail address.
75709
75710 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
75711
75712         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
75713         tests/test-memmem.c, tests/test-stpncpy.c:
75714         Update FSF postal mail address.
75715
75716 2005-05-13  Bruno Haible  <bruno@clisp.org>
75717
75718         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
75719         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
75720         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
75721         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
75722         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
75723         Add support for 64-bit integers in the MSVC compiler.
75724
75725 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75726
75727         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
75728
75729 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
75730
75731         * gnulib-tool (func_import): Sort and uniquify recommended includes.
75732
75733 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
75734
75735         * doc/getdate.texi (General date syntax): Don't say that date
75736         date --iso-8601=ns generates acceptable dates; it doesn't yet.
75737         Problem reported by Nic Ferrier.
75738
75739 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75740
75741         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
75742         specified in ai_socktype. Fix invalid ai_protocol
75743         check. ai_protocol is usually set to 0 or depending on
75744         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
75745         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
75746         ai_socktype / ai_protocol in the returned addrinfo structure.
75747
75748 2005-05-10  Simon Josefsson  <jas@extundo.com>
75749
75750         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
75751         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75752
75753 2005-05-10  Karl Berry  <karl@gnu.org>
75754
75755         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
75756         (from http://www.gnu.org/licenses).
75757         * doc/COPYING.LIB: also rename to COPYING.LESSER.
75758         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
75759         fdl.texi suffices.
75760
75761 2005-05-10  Karl Berry  <karl@gnu.org>
75762
75763         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
75764         (COPYING.DOC): remove.
75765
75766         * config/srclist-update: new FSF address.
75767
75768 2005-05-10  Derek Price  <derek@ximbiot.com>
75769
75770         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
75771         possible.
75772
75773 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75774             Bruno Haible  <bruno@clisp.org>
75775
75776         * modules/inet_ntop: New file.
75777         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75778         inet_ntop.
75779
75780 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75781             Bruno Haible  <bruno@clisp.org>
75782
75783         * m4/inet_ntop.m4: New file.
75784
75785 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75786             Bruno Haible  <bruno@clisp.org>
75787
75788         * lib/inet_ntop.h: New file.
75789         * lib/inet_ntop.c: New file, from glibc with modifications.
75790
75791 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
75792
75793         * modules/time_r (License): Change to LGPL.
75794         * modules/extensions (License): Change to LGPL.  Actually,
75795         the license is more permissive than that, but currently gnulib-tool
75796         doesn't know how to handle more-permissive licenses.
75797
75798         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
75799         Problem reported by Dave Love.
75800
75801 2005-05-08  Jim Meyering  <jim@meyering.net>
75802
75803         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
75804         blank.
75805
75806 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
75807
75808         * modules/argmatch (Depends-on): Add stdbool.
75809         * modules/backupfile (Depends-on): Likewise.
75810         * modules/chdir-long (Depends-on): Likewise.
75811         * modules/closeout (Depends-on): Likewise.
75812         * modules/cycle-check (Depends-on): Likewise.
75813         * modules/dirname (Depends-on): Likewise.
75814         * modules/fnmatch (Depends-on): Likewise.
75815         * modules/fsusage (Depends-on): Likewise.
75816         * modules/fwriteerror (Depends-on): Likewise.
75817         * modules/getcwd (Depends-on): Likewise.
75818         * modules/getloadavg (Depends-on): Likewise.
75819         * modules/hard-locale (Depends-on): Likewise.
75820         * modules/makepath (Depends-on): Likewise.
75821         * modules/mountlist (Depends-on): Likewise.
75822         * modules/nanosleep (Depends-on): Likewise.
75823         * modules/posixtm (Depends-on): Likewise.
75824         * modules/quotearg (Depends-on): Likewise.
75825         * modules/readtokens (Depends-on): Likewise.
75826         * modules/readtokens0 (Depends-on): Likewise.
75827         * modules/readutmp (Depends-on): Likewise.
75828         * modules/save-cwd (Depends-on): Likewise.
75829         * modules/strftime (Depends-on): Likewise.
75830         * modules/userspec (Depends-on): Likewise.
75831         * modules/utimecmp (Depends-on): Likewise.
75832         * modules/xgetcwd (Depends-on): Likewise.
75833         * modules/xnanosleep (Depends-on): Likewise.
75834         * modules/xstrtod (Depends-on): Likewise.
75835         * modules/yesno (Depends-on): Likewise.
75836
75837 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
75838
75839         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
75840         needless checks.
75841
75842 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
75843
75844         Merge from coreutils.  Among other things,
75845         add bulletproofing for cases where stdin, stdout, or stderr are closed.
75846         * lib/fd-safer.c: New file.
75847         * lib/fcntl-safer.h, open-safer.c: Remove.
75848         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
75849         * lib/dup-safer.c: Include unistd-safer.h first.
75850         Don't include errno.h.
75851         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
75852         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
75853         * lib/file-type.c: Rely on file-type.h change.
75854         * lib/getloadavg.c: Include unistd-safer.h.
75855         (getloadavg): Use safer open.
75856         * lib/getusershell.c: Include "stdio-safer.h".
75857         (getusershell): Use safer fopen.
75858         * lib/long-options.c (long_options): Use NULL rather than 0.
75859         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
75860         'free'.
75861         * lib/modechange.c: Likewise.
75862         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
75863         (MODE_DONE): New constant.
75864         (struct mode_change): Remove 'next' member.
75865         (make_node_op_equals): New function; like the old one of the
75866         same name, except it allocates an array.
75867         (mode_compile, mode_create_from_ref): Use it.
75868         (mode_compile): Allocate result as an array, not a linked list.
75869         Parse octal string ourself, so that we catch mistakes like "+0".
75870         (mode_adjust): Arg is an array, not a linked list.
75871         * lib/modechange.c: Include stat-macros.h, xalloc.h.
75872         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
75873         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
75874         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
75875         Remove.  This is now stat-macros.h's job.
75876         (talloc): Remove.  All callers replaced by xalloc, so that
75877         our invokers don't have to worry about reporting memory failures.
75878         (make_node_op_equals): Remove.
75879         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
75880         New constants.
75881         (struct mode_change): Moved here from modechange.h.
75882         (mode_append_entry): Remove.
75883         (mode_compile): Remove MASKED_OPS arg, since it encouraged
75884         apps to have incorrect behavior.  Use simpler algorithm for head
75885         and tail.  Don't futz with umask; that's now the job of mode_adjust.
75886         Detect more invalid usages rather than having somewhat-random behavior.
75887         Don't insert an "a=" action, as that leads to incorrect behavior.
75888         (mode_compile, mode_create_from_ref): Return NULL on error instead
75889         of an enum, since now there's only one way to have an error.  All
75890         callers changed.
75891         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
75892         at the correct time.  Simplify calculation of "+u" and its ilk.
75893         Don't mishandle "+X".
75894         (mode_free): Remove "register" and localize decls.
75895         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
75896         (struct mode_change): Move to modechange.c; callers don't
75897         need to see this stuff.
75898         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
75899         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
75900         (mode_change, mode_adjust): Reflect the new signatures noted above.
75901         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
75902         that might redefine system include files.
75903         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
75904         (my_usleep): Use NULL rather than (void *) 0.
75905         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
75906         Use siginterrupt to specify that system calls should be interrupted.
75907         (rpl_nanosleep): Move initialization of suspended closer to call of
75908         my_usleep.
75909         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
75910         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
75911         (desirable_utmp_entry): New function.
75912         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
75913         using x2nrealloc, to simplify logic.
75914         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
75915         size calculation.  Do not assume utmp file is a regular file.
75916         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
75917         (READ_UTMP_CHECK_PIDS): New constant.
75918         * lib/save-cwd.c: Include unistd-safer.h.
75919         (save_cwd): Use fd_safer.
75920         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
75921         [!_LIBC] Include "stat-macros.h" instead.
75922         * lib/unistd-safer.h (fd_safer): New decl.
75923
75924 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
75925
75926         * modules/getloadavg (Depends-on): Add unistd-safer.
75927         * modules/getusershell (Depends-on): Add stdio-safer.
75928         * modules/lstat (Depends-on): Remove xalloc.
75929         * modules/mkstemp (Depends-on): Add stat-macros.
75930         * modules/modechange (Depends-on): Remove xstrtol.
75931         Add stat-macros, xalloc.
75932         * modules/save-cwd (Depends-on): Add unistd-safer.
75933         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
75934         * modules/unistd-safer (Files): Add lib/fd-safer.c
75935         (Makefile.am): Remove lib_SOURCES.
75936
75937         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
75938         Remove fcntl-safer; unistd-safer supersedes it.
75939
75940 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
75941
75942         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
75943         AC_HEADER_STAT.
75944         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
75945         (gl_PREREQ_CHOWN): Remove.
75946         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
75947         it.  Don't require AC_HEADER_STAT.
75948         (gl_PREREQ_LSTAT): Remove.
75949         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
75950         Don't require AC_HEADER_STAT.
75951         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
75952         (gl_PREREQ_RMDIR): Remove.
75953         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
75954         mention stat-macros.h or AC_HEADER_STAT, since we'll make
75955         the stat-macros module a prerequisite.
75956         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
75957         * m4/filemode.m4 (gl_FILEMODE): Likewise.
75958         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
75959         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
75960         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
75961         variable names.
75962         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
75963         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
75964         variable prefixes.
75965         * m4/fcntl-safer.m4: Remove.
75966         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
75967         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
75968         Invoke gl_PREREQ_FD_SAFER.
75969         (gl_PREREQ_FD_SAFER): New macro.
75970         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
75971         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
75972         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
75973         Remove duplicate call to AC_LIBOBJ(readutmp).
75974         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
75975
75976         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
75977         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
75978
75979 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
75980
75981         * MODULES.html.sh (Misc): Add byteswap.
75982
75983 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
75984
75985         * modules/getcwd (Depends-on): Add extensions.
75986         * modules/openat (Depends-on): Likewise.
75987
75988 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
75989
75990         * modules/byteswap: New file.
75991
75992 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
75993
75994         * m4/byteswap.m4: New file.
75995
75996 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
75997
75998         * lib/byteswap_.h: New file.
75999
76000 2005-04-25  Karl Berry  <karl@gnu.org>
76001
76002         * m4/gettext.m4: Update from GNU gettext 0.14.4.
76003
76004 2005-04-25  Albert Chin  <china@thewrittenword.com>
76005
76006         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
76007         Toolkit C bug.
76008
76009 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
76010
76011         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
76012         (func_ln_if_changed): Remove forcibly for no error message
76013         in case file does not exist.
76014
76015 2005-04-19  Simon Josefsson  <jas@extundo.com>
76016
76017         * gnulib-tool (Options): Make --symlink mean --symbolic.
76018
76019 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
76020
76021         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
76022
76023 2005-04-16  Simon Josefsson  <jas@extundo.com>
76024
76025         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
76026
76027 2005-04-15  Simon Josefsson  <jas@extundo.com>
76028
76029         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
76030
76031 2005-04-15  Simon Josefsson  <jas@extundo.com>
76032
76033         * gnulib-tool: Rename --symlink to --symbolic.
76034
76035 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
76036
76037         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
76038         symbolic links to files instead of copying/moving.  Add --aux-dir,
76039         specifying directory relative --dir where auxiliary build tools
76040         are placed.
76041
76042 2005-04-14  Bruno Haible  <bruno@clisp.org>
76043
76044         * modules/allocsa (License): Change to LGPL.
76045         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
76046
76047 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
76048
76049         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
76050         that "UTC +1 second" continues to work.  Problem reported
76051         by Dmitry V. Levin.
76052         (relunit_snumber): New rule.
76053         (relunit): Use it.
76054
76055 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76056
76057         * lib/getdate.y (universal_time_zone_table): New constant.
76058         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
76059         universal_time_zone_table.
76060         (lookup_zone): Prefer universal_time_zone_table to
76061         local_time_zone_table, so that "GMT" time stamps are allowed in
76062         London during the summer.  Problem reported by Ian Abbott.
76063
76064 2005-04-12  Jim Meyering  <jim@meyering.net>
76065
76066         * lib/human.c (humblock): Set *options even when returning due to
76067         xstrtoumax conversion failure.  Thanks to a used-uninitialized
76068         warning from gcc-4.
76069
76070 2005-04-09  Jim Meyering  <jim@meyering.net>
76071
76072         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
76073         -Wuninitialized: initialize tm0.tm_year.
76074
76075 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
76076
76077         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
76078         count, since there's no maximum.  All uses changed.
76079         Add member dsts_seen.
76080         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
76081         not being INT_MAX.
76082         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
76083         Use pc_rels_seen to decide whther a date is absolute.
76084
76085         * lib/getdate.y (number): Don't overwrite year.
76086         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
76087         check.
76088
76089 2005-04-02  Simon Josefsson  <jas@extundo.com>
76090
76091         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
76092         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
76093
76094 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
76095
76096         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
76097         where no absolute path name can be longer than PATH_MAX.
76098
76099 2005-03-27  Jim Meyering  <jim@meyering.net>
76100
76101         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
76102
76103 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
76104
76105         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
76106         "one's complement" -> "ones' complement" in comment, as per Knuth.
76107         "value of type" -> "type or expression" in comment.
76108         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
76109
76110 2005-03-26  Jim Meyering  <jim@meyering.net>
76111
76112         Comment nits.
76113         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
76114         Correct typos: s/or/of/.
76115
76116 2005-03-26  Jim Meyering  <jim@meyering.net>
76117
76118         * modules/check-include-files: Move to ../ and rename to...
76119         * check-module: ...this.
76120
76121 2005-03-25  Jim Meyering  <jim@meyering.net>
76122
76123         * modules/xvasprintf (Files): Add xalloc.h.
76124
76125 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
76126
76127         * modules/gettext (Files): config/config.rpath ->
76128         build-aux/config.rpath
76129         * modules/iconv (Files): Likewise.
76130         Problem reported by Oskar Liljeblad.
76131
76132 2005-03-23  Jim Meyering  <jim@meyering.net>
76133
76134         * modules/check-include-files: New script to check for
76135         missing dependencies, multiple includes, etc.
76136
76137         * modules/c-strtold (Depends-on): Add xalloc.
76138         * modules/c-strtod (Depends-on): Add xalloc.
76139         * modules/hash (Depends-on): Add xalloc.
76140         (Files): Remove lib/xalloc.h.
76141
76142         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
76143         * modules/userspec (Files): Add lib/inttostr.h.
76144
76145 2005-03-23  Jim Meyering  <jim@meyering.net>
76146
76147         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
76148
76149 2005-03-22  Jim Meyering  <jim@meyering.net>
76150
76151         * modules/stat-macros: New module.
76152         * modules/canonicalize, modules/euidaccess, modules/file-type,
76153         * modules/filemode, modules/lchown, modules/makepath,
76154         * modules/rmdir, modules/stat: Depend on new stat-macros module
76155         rather than listing lib/stat-macros.h manually.
76156         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
76157
76158 2005-03-22  Jim Meyering  <jim@meyering.net>
76159
76160         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
76161
76162 2005-03-22  Bruno Haible  <bruno@clisp.org>
76163
76164         * config/srclist.txt: Replace target directory 'config' with
76165         'build-aux'.
76166         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
76167         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
76168         ../build-aux/.
76169
76170 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
76171
76172         * modules/chdir-long (Depends-on): Add mempcpy.
76173
76174         * modules/acl, modules/backupfile, modules/c-strtod,
76175         modules/c-strtold, modules/canon-host, modules/canonicalize,
76176         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
76177         modules/exclude, modules/exitfail, modules/file-type,
76178         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
76179         modules/getdate, modules/getline, modules/getpagesize,
76180         modules/getpass, modules/getugroups, modules/group-member,
76181         modules/hard-locale, modules/hash, modules/human, modules/idcache,
76182         modules/inttostr, modules/long-options, modules/makepath,
76183         modules/md5, modules/memcasecmp, modules/memcoll,
76184         modules/modechange, modules/mountlist, modules/path-concat,
76185         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
76186         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
76187         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
76188         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
76189         modules/strftime, modules/strndup, modules/strverscmp,
76190         modules/timespec, modules/unlocked-io, modules/userspec,
76191         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
76192         modules/yesno:
76193         Remove lib_SOURCES line from Makefile.am section, as this is now
76194         done automatically by the corresponding Autoconf macro.
76195
76196 2005-03-21  Jim Meyering  <jim@meyering.net>
76197
76198         Changes imported from coreutils.
76199
76200         * lib/cycle-check.c: Don't include xalloc.h.
76201
76202         * lib/path-concat.c: Don't include assert.h.
76203         (path_concat): Remove assertion that would have triggered
76204         for ABASE starting with more than one slash.
76205         Reported by Andreas Schwab.
76206
76207         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
76208         properly when ABASE is an absolute file name.
76209         Correct the description of this function.
76210         Include <assert.h>.
76211         Add an assertion and a test driver.
76212         This fixes a bug introduced on 2004-07-02.
76213         Andreas Schwab reported the resulting failure of cp --parents:
76214         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
76215
76216 2005-03-21  Jim Meyering  <jim@meyering.net>
76217
76218         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
76219         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
76220
76221 2005-03-21  Jim Meyering  <jim@meyering.net>
76222         and  Paul Eggert  <eggert@cs.ucla.edu>
76223
76224         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
76225         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
76226         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
76227         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
76228         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
76229         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
76230         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
76231         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
76232         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
76233         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
76234         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
76235         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
76236         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
76237         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
76238         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
76239         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
76240         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
76241         for these modules.
76242
76243 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
76244
76245         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
76246         (which shouldn't happen), generate nothing instead of returning 0
76247         immediately, so that nstrftime (NULL, ...) doesn't return 0.
76248
76249 2005-03-16  Bruno Haible  <bruno@clisp.org>
76250
76251         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
76252         HAVE_LONGLONG_64BIT.
76253
76254 2005-03-16  Bruno Haible  <bruno@clisp.org>
76255
76256         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
76257         HAVE_LONGLONG_64BIT.
76258
76259 2005-03-16  Bruno Haible  <bruno@clisp.org>
76260
76261         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
76262         HAVE_LONGLONG_64BIT.
76263
76264 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
76265
76266         * lib/strftime.c (my_strftime): Prepend space to format so that we can
76267         reliably distinguish strftime failure from empty output on POSIX
76268         hosts.
76269
76270 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
76271
76272         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
76273         (iconv_string): Don't guess a size-zero buffer, as that might cause
76274         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
76275         result would be 'too large', where 'too large' is (heuristically)
76276         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
76277         overflow concerns.  This will prevent some unwanted malloc failures
76278         when the inputs are very large.
76279
76280 2005-03-15  Karl Berry  <karl@gnu.org>
76281
76282         * config/srclist.txt (config.rpath): from gettext.
76283         * config/config.rpath: update.
76284
76285 2005-03-15  Bruno Haible  <bruno@clisp.org>
76286
76287         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
76288         to 'negate'.
76289
76290         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
76291         variable.
76292
76293         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
76294         results.
76295
76296 2005-03-14  Simon Josefsson  <jas@extundo.com>
76297
76298         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
76299         <fx@gnu.org>.
76300
76301 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
76302
76303         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
76304         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
76305         intprops.h.
76306         * lib/strtol.c: Likewise.
76307
76308 2005-03-14  Jim Meyering  <jim@meyering.net>
76309
76310         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
76311         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
76312         to be nonzero so that we (and caller) can detect the difference
76313         between a valid zero-length expansion and an error return, even
76314         when the underlying strftime fails before writing anything into
76315         that location.
76316
76317 2005-03-14  Bruno Haible  <bruno@clisp.org>
76318
76319         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
76320         Update from GNU gettext 0.14.3.
76321
76322 2005-03-10  Jim Meyering  <jim@meyering.net>
76323
76324         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
76325
76326 2005-03-10  Jim Meyering  <jim@meyering.net>
76327
76328         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
76329         so that this module works on systems without fchdir.
76330
76331 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
76332
76333         Factor int-properties macros into a single file, except for
76334         glibc-related files.
76335         * lib/intprops.h: New file.
76336         * lib/getloadavg.c: Include it instead of limits.h.
76337         (INT_STRLEN_BOUND): Remove.
76338         * lib/human.c: Include intprops.h.
76339         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
76340         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
76341         302/1000.
76342         * lib/inttostr.h: Include intprops.h instead of limits.h.
76343         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
76344         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
76345         for consistency with intprops.h.
76346         (time_t_is_integer, twos_complement_arithmetic): Use them.
76347         * lib/sig2str.h: Include <signal.h>, intprops.h.
76348         (INT_STRLEN_BOUND): Remove.
76349         * lib/strftime.c (TYPE_SIGNED): Remove.
76350         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
76351         * lib/strtol.c: Adjust comments to match intprops.h.
76352         * lib/userspec.c: Include intprops.h.
76353         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
76354         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
76355         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
76356         instead of rolling our own expressions.
76357         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
76358
76359         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
76360         instead of int.
76361         (my_strftime): Do not mishandle years close to INT_MAX, by doing
76362         the right thing even if adding 1900 would overflow.  Similarly
76363         for tm_mon + 1 and tm_yday + 1.
76364         Make %Y always equivalent to %C%y, and similarly for %G and %g.
76365         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
76366         (DO_SIGNED_NUMBER): New macro.
76367         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
76368
76369 2005-03-07  Bruno Haible  <bruno@clisp.org>
76370
76371         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
76372
76373 2005-03-07  Bruno Haible  <bruno@clisp.org>
76374
76375         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
76376
76377 2005-03-04  Derek R. Price  <derek@ximbiot.com>
76378
76379         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
76380         (func_import): Only replace files via --import when they have actually
76381         changed.
76382
76383 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76384
76385         * m4/mmap-anon.m4: New file.
76386         * m4/pagealign_alloc.m4: New file.
76387
76388 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76389             Bruno Haible  <bruno@clisp.org>
76390
76391         * modules/pagealign_alloc: New file.
76392         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
76393
76394 2005-03-03  Derek R. Price  <derek@ximbiot.com>
76395             Bruno Haible  <bruno@clisp.org>
76396
76397         * lib/pagealign_alloc.h: New file.
76398         * lib/pagealign_alloc.c: New file.
76399
76400 2005-03-03  Bruno Haible  <bruno@clisp.org>
76401
76402         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
76403         Use an all-permissive copyright notice, recommended by RMS.
76404
76405 2005-03-02  Bruno Haible  <bruno@clisp.org>
76406
76407         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
76408         of AIX, the replacement has to be done only after <string.h> is
76409         included, therefore not in config.h. stpncpy.h does the replacement,
76410         and stpncpy.c uses it.
76411
76412 2005-03-02  Bruno Haible  <bruno@clisp.org>
76413
76414         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
76415         stpncpy.c uses it.
76416
76417 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76418
76419         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
76420         The workaround isn't strictly needed for POSIX conformance, and
76421         it's too much of a pain to configure and maintain.  We'll ask
76422         people to fix their kernels instead.
76423         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
76424         (NANOSLEEP_BUG_WORKAROUND): Remove.
76425         (xnanosleep): Remove the workaround.
76426
76427 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76428
76429         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
76430         Reported by Derek Price.
76431         (Include): Add "timespec.h".
76432
76433         * modules/xnanosleep (Depends-on): Remove gethrxtime.
76434
76435 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76436
76437         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
76438         to detect nanosleep bug.
76439
76440 2005-03-01  Bruno Haible  <bruno@clisp.org>
76441
76442         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
76443
76444 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
76445
76446         * modules/gethrxtime: New file.
76447         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
76448         (Depends-on): Add gethrxtime.
76449         (configure.ac): Add gl_XNANOSLEEP.
76450         (Makefile.am): Remove lib_SOURCES line.
76451
76452 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
76453
76454         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
76455         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
76456
76457 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
76458
76459         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
76460         * lib/timespec.h (gettime): Return void, since it always
76461         succeeds now.  All uses changed.
76462         * lib/gettime.c (gettime): Likewise.
76463         [HAVE_NANOTIME]: Prefer nanotime.
76464         Assume gettimeofday succeeds, as POSIX requires.
76465         Assime time () succeeds, since other code already does.
76466         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
76467         (timespec_subtract): Remove.
76468         (NANOSLEEP_BUG_WORKAROUND): New constant.
76469         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
76470         things considerably.  Use it only on GNU/Linux hosts, since the
76471         workaround shouldn't be needed elsewhere.
76472
76473 2005-02-24  Bruno Haible  <bruno@clisp.org>
76474
76475         * modules/gettext (Files): Add m4/glibc2.m4.
76476
76477 2005-02-24  Bruno Haible  <bruno@clisp.org>
76478
76479         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
76480         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
76481         * m4/progtest.m4:
76482         Update from GNU gettext 0.14.2.
76483         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
76484
76485 2005-02-24  Bruno Haible  <bruno@clisp.org>
76486
76487         * lib/localcharset.c: Update from GNU gettext 0.14.2.
76488         * lib/config.charset: Update from GNU gettext 0.14.2.
76489
76490 2005-02-24  Bruno Haible  <bruno@clisp.org>
76491
76492         * lib/gettext.h: Update from GNU gettext 0.14.2.
76493
76494 2005-02-23  Simon Josefsson  <jas@extundo.com>
76495
76496         * m4/iconvme.m4: New file.
76497
76498 2005-02-23  Jim Meyering  <jim@meyering.net>
76499
76500         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
76501         change.
76502         Thanks to Bruno Haible for catching it.
76503
76504 2005-02-22  Simon Josefsson  <jas@extundo.com>
76505
76506         * modules/iconvme: New file.
76507
76508         * MODULES.html.sh: Add iconvme.
76509
76510 2005-02-22  Simon Josefsson  <jas@extundo.com>
76511
76512         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
76513
76514 2005-02-22  Simon Josefsson  <jas@extundo.com>
76515
76516         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
76517
76518 2005-02-22  Jim Meyering  <jim@meyering.net>
76519
76520         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
76521         s/ifndef/ifdef/.
76522
76523 2005-02-20  Neil Conway  <neilc@samurai.com>
76524
76525         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
76526         returned by OSX/Darwin if the specified buffer is not large
76527         enough for the hostname.
76528
76529 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76530
76531         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
76532         pass it to _help, otherwise the latter coredumps trying to
76533         dereference state.root_argp.
76534
76535 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
76536
76537         * modules/chdir-long (Depends-on): Add memrchr.
76538         * modules/memrchr (Files): Add lib/memrchr.h.
76539         (Include): "memrchr.h".
76540
76541 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
76542
76543         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
76544
76545 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
76546
76547         * lib/memrchr.h: New file.
76548         * lib/chdir-long.c: Include it.
76549         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
76550         Don't bother including stddef.h.
76551
76552 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
76553
76554         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
76555         inclusion.
76556         Include <sys/types.h>, for dev_t.
76557         (ME_DUMMY, ME_REMOTE): Move from here....
76558         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
76559         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
76560         Dmitry V. Levin.
76561         Include mountlist.h first, to test the interface.
76562
76563 2005-01-29  Bruno Haible  <bruno@clisp.org>
76564
76565         * lib/progname.c (program_name): Initialize.
76566         Needed when linking statically on MacOS X.
76567
76568 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
76569
76570         Sync from coreutils.
76571         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
76572         (Depends-on): Add c-strtod.
76573         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
76574
76575 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
76576
76577         Sync from coreutils.
76578         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
76579
76580         Remove files that are specific to coreutils.
76581         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
76582
76583 2005-01-28  Bruno Haible  <bruno@clisp.org>
76584
76585         * modules/javacomp: New file.
76586         * MODULES.html.sh (Java): Add javacomp.
76587
76588 2005-01-28  Bruno Haible  <bruno@clisp.org>
76589
76590         * m4/javacomp.m4: New file, from GNU gettext.
76591
76592 2005-01-28  Bruno Haible  <bruno@clisp.org>
76593
76594         * lib/javacomp.sh.in: New file, from GNU gettext.
76595         * lib/javacomp.h: New file, from GNU gettext.
76596         * lib/javacomp.c: New file, from GNU gettext.
76597
76598 2005-01-26  Simon Josefsson  <jas@extundo.com>
76599
76600         * lib/gai_strerror.c: Use GPL in header.
76601
76602 2005-01-26  Bruno Haible  <bruno@clisp.org>
76603
76604         * modules/javaexec: New file.
76605         * MODULES.html.sh (Java): Add javaexec.
76606
76607 2005-01-26  Bruno Haible  <bruno@clisp.org>
76608
76609         * m4/javaexec.m4: New file, from GNU gettext.
76610
76611 2005-01-26  Bruno Haible  <bruno@clisp.org>
76612
76613         * lib/javaexec.sh.in: New file, from GNU gettext.
76614         * lib/javaexec.h: New file, from GNU gettext.
76615         * lib/javaexec.c: New file, from GNU gettext.
76616
76617 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76618
76619         * modules/lchown (Depends-on): Remove lchown.h
76620
76621 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76622
76623         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
76624         must be defined if the header file was not found, in order
76625         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
76626
76627 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76628
76629         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
76630         initializers for struct pentry_state.
76631         (__argp_error): Check return value of __asprintf
76632         (__argp_failure): Translate error message
76633
76634         * lib/argp-parse.c: Removed braces around the expansion of N_()
76635
76636 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
76637
76638         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
76639         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
76640         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
76641         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
76642         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
76643         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
76644         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
76645         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
76646         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
76647         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
76648         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
76649         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
76650         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
76651         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
76652         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
76653         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
76654         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
76655         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
76656         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
76657         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
76658         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
76659         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
76660         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
76661         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
76662         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
76663         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
76664         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
76665         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
76666         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
76667         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
76668         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
76669         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
76670         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
76671         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
76672         xstrtol.m4, xstrtoumax.m4, yesno.m4:
76673         Use an all-permissive copyright notice, recommended by RMS.
76674
76675 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
76676
76677         * modules/chdir-long (Depends-on): Remove mempcpy.
76678
76679 2005-01-21  Jim Meyering  <jim@meyering.net>
76680
76681         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
76682         same value as for Solaris 9.
76683
76684         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
76685         component length.  This included changing the parameter to be
76686         of type `char *' rather than `char const *'.
76687         * lib/chdir-long.h (chdir_long): Update prototype.
76688
76689         * lib/openat.c (fdopendir, fstatat): New functions.
76690         * lib/openat.h: Include headers required for use of DIR and struct
76691         stat.
76692         [AT_SYMLINK_NOFOLLOW]: Define.
76693         (fdopendir, fstatat): Add prototypes.
76694
76695 2005-01-21  Bruno Haible  <bruno@clisp.org>
76696
76697         * modules/classpath: New file.
76698         * MODULES.html.sh (Java): Add classpath.
76699
76700 2005-01-21  Bruno Haible  <bruno@clisp.org>
76701
76702         * lib/classpath.h: New file, from GNU gettext.
76703         * lib/classpath.c: New file, from GNU gettext.
76704
76705 2005-01-20  Simon Josefsson  <jas@extundo.com>
76706
76707         * modules/version-etc-fsf: New file.
76708
76709 2005-01-20  Simon Josefsson  <jas@extundo.com>
76710
76711         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
76712         * lib/version-etc.c: Remove version_etc_copyright.
76713         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
76714         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
76715
76716 2005-01-20  Simon Josefsson  <jas@extundo.com>
76717
76718         * lib/base64.h (isbase64): Add.
76719
76720         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
76721         using a unsigned prototype, don't inline.
76722         (base64_decode): Use it.
76723
76724 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
76725
76726         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
76727         it.
76728
76729 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
76730
76731         * lib/save-cwd.c (save_cwd): Remove code to support the case
76732         where fchdir is missing or flaky.
76733
76734 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
76735
76736         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
76737
76738 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
76739
76740         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
76741         AC_LIBSOURCES now does this.
76742         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
76743         with new ullong_max module.
76744
76745 2005-01-19  Bruno Haible  <bruno@clisp.org>
76746
76747         * modules/sh-quote: New file.
76748         * MODULES.html.sh (Executing programs): Add sh-quote.
76749
76750 2005-01-19  Bruno Haible  <bruno@clisp.org>
76751
76752         * lib/sh-quote.h: New file, from GNU gettext.
76753         * lib/sh-quote.c: New file, from GNU gettext.
76754
76755 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
76756
76757         Merge from coreutils.
76758         * m4/ullong_max.m4: New file.
76759         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
76760         (gl_MACROS): Assume localeconv exists.
76761
76762 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
76763
76764         Merge changes from coreutils, as described below in several
76765         changelogs dated today.
76766
76767         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
76768         (O_DIRECTORY): Remove; not needed here, since "." must be
76769         a directory.  All uses removed.
76770         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
76771         universal on Suns, and we also need to test for IRIX.
76772         Revamp code to use 'if' rather than '#if'.
76773         Avoid unnecessary comparison of cwd->desc to 0.
76774
76775         * lib/utimens.c (futimens): Robustify the previous patch, by checking
76776         for known valid error numbers rather than observed invalid ones.
76777
76778 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
76779
76780         * modules/ullong_max: New file.
76781
76782         * modules/chdir-long, modules/openat: New files.
76783         * modules/save-cwd (Depends-on): Depend on chdir-long.
76784         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
76785
76786 2005-01-18  Jim Meyering  <jim@meyering.net>
76787
76788         Merge from coreutils.
76789         * m4/chdir-long.m4, m4/openat.m4: New files.
76790         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
76791         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
76792         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
76793         is sane and DOES follow symlinks.  Besides, testing 20 different
76794         systems found no broken chown implementations.
76795         Prompted by a change in rsync's copy of this macro.
76796         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
76797
76798         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
76799
76800         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
76801         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
76802         NULL-means-set-to-current-time semantics.
76803         Remove temporary file immediately, rather than waiting
76804         for configure's at-exit trap code to do it.
76805
76806 2005-01-18  Jim Meyering  <jim@meyering.net>
76807
76808         * lib/version-etc.c (version_etc_copyright): Update copyright date.
76809
76810         * lib/utimens.c (futimens): Account for the fact that futimes
76811         can also fail with errno == ENOSYS or errno == ENOENT.
76812         Patch from Dmitry V. Levin.
76813
76814         Change the name of the robust chdir function from chdir to chdir_long.
76815         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
76816         (restore_cwd): Use chdir_long, not chdir.
76817         * lib/chdir-long.c: Renamed from chdir.c.
76818         * lib/chdir-long.h: Renamed from chdir.h.
76819         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
76820         Hurd.
76821
76822 2005-01-18  Bruno Haible  <bruno@clisp.org>
76823
76824         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
76825         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
76826         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
76827         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
76828         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
76829         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
76830         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
76831         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
76832         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
76833         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
76834         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
76835         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
76836         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
76837         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
76838         Use an all-permissive copyright notice, recommended by RMS.
76839
76840 2005-01-18  Bob Proulx  <bob@proulx.com>
76841
76842         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
76843         simplify offsetof() macro construct to avoid compile failure with
76844         native HP-UX 11.0 ANSI C compiler.
76845
76846 2005-01-17  Bruno Haible  <bruno@clisp.org>
76847
76848         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
76849         redundant because stpncpy.m4 takes care of it.
76850
76851 2005-01-17  Bruno Haible  <bruno@clisp.org>
76852
76853         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
76854
76855 2005-01-17  Bruno Haible  <bruno@clisp.org>
76856
76857         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
76858         used.
76859
76860 2005-01-17  Bruno Haible  <bruno@clisp.org>
76861
76862         * lib/fwriteerror.h (fwriteerror): Change specification to include
76863         fclose.
76864         * lib/fwriteerror.c: Include <stdbool.h>.
76865         (fwriteerror): At the end, close the file stream. Record whether
76866         stdout was already closed.
76867
76868 2005-01-17  Bruno Haible  <bruno@clisp.org>
76869
76870         * lib/execute.c (environ): Declare if needed.
76871         * lib/pipe.c (environ): Likewise.
76872         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
76873
76874 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76875
76876         * modules/argp: Depend on vsnprintf
76877
76878 2005-01-10  Jim Meyering  <jim@meyering.net>
76879
76880         * modules/closeout (Depends-on): Add atexit.
76881
76882 2005-01-06  Bruno Haible  <bruno@clisp.org>
76883
76884         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
76885
76886 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76887
76888         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
76889         definitions to be after all include files, to avoid collisions.
76890         Problem reported by Bob Proulx.
76891
76892 2005-01-04  Jim Meyering  <jim@meyering.net>
76893
76894         Changes imported from coreutils.
76895         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
76896         as the mkstemp template, use a temporary directory and an
76897         8.3-friendly template to avoid trouble on systems like DJGPP.
76898         Reported by Juan M. Guerrero via Stepan Kasal.
76899         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
76900         close. Remove the temporary directory right away, rather than waiting
76901         for configure's at-exit trap code to do it.
76902         Suggestion from Stepan Kasal.
76903
76904 2005-01-01  Simon Josefsson  <jas@extundo.com>
76905
76906         * gnulib-tool: Print #include directives when --import'ing.
76907
76908 2004-12-28  Simon Josefsson  <jas@extundo.com>
76909
76910         * tests/test-base64.c: Include required header files.  Remove
76911         unused variables.
76912
76913 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
76914
76915         * modules/error (Depends-on): Remove gettext.
76916
76917 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
76918
76919         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
76920         not needed.  This removes a dependency on the gettext module.
76921         [defined _LIBC]: Do not include <libintl.h>; not needed.
76922
76923 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
76924
76925         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
76926         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
76927
76928 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
76929
76930         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
76931         HAVE_DECL_STRTOLD.
76932
76933 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76934
76935         * modules/getdate (Depends-on): Remove alloca-opt.
76936
76937 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76938
76939         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
76940
76941 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76942
76943         * lib/argp-parse.c: Include <stddef.h>.
76944         (alignof, alignto): New macros.
76945         (parser_init): Don't assume that void * is aligned sufficiently
76946         for struct option.
76947
76948         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
76949         need to extend the stack.
76950         (YYINITDEPTH): New macro, so that the initial stack isn't overly
76951         large.
76952
76953 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76954
76955         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
76956
76957 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
76958
76959         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
76960         (2004-10-24) change.  Apparently this was a false alarm.
76961
76962         * modules/getdate: Depend on alloca-opt, not alloca.
76963
76964 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
76965
76966         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
76967         Remove now-obsolete comment about AIX.
76968         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
76969         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
76970         (YYMAXDEPTH): New macro.
76971
76972 2004-12-18  Simon Josefsson  <jas@extundo.com>
76973
76974         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
76975
76976 2004-12-18  Bruno Haible  <bruno@clisp.org>
76977
76978         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
76979
76980 2004-12-18  Bruno Haible  <bruno@clisp.org>
76981
76982         * lib/fatal-signal.c (fatal_signals): Make non-const.
76983         (init_fatal_signals): New function.
76984         (uninstall_handlers, install_handlers): Ignore signals that were set to
76985         SIG_IGN.
76986         (at_fatal_signal): Call init_fatal_signals.
76987         (init_fatal_signal_set): Likewise. Ignore signals that were set to
76988         SIG_IGN.
76989         Reported by Paul Eggert.
76990
76991 2004-12-18  Bruno Haible  <bruno@clisp.org>
76992
76993         * doc/alloca.texi: New file.
76994         * doc/alloca-opt.texi: New file.
76995
76996 2004-12-17  Jim Meyering  <jim@meyering.net>
76997
76998         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
76999         Otherwise, install-sh could exit with improper exit status when
77000         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
77001
77002 2004-12-16  Simon Josefsson  <jas@extundo.com>
77003
77004         * tests/test-base64.c: Add license.
77005
77006 2004-12-15  Stepan Kasal  <address@hidden>
77007
77008         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
77009
77010 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
77011
77012         * modules/getcwd (Files): Add m4/d-ino.m4.
77013         Suggested by Mark D. Baushke.
77014
77015 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
77016
77017         * lib/getdate.y (textint): New member "negative".
77018         (time_zone_hhmm): New function.
77019         Expect 14 shift-reduce conflicts, not 13.
77020         (o_colon_minutes): New rule.
77021         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
77022         (yylex): Set the "negative" member of signed numbers.
77023
77024 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
77025
77026         * doc/getdate.texi (Time of day items, Time zone items):
77027         Describe new formats +00:00, UTC+00:00.
77028
77029 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
77030
77031         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
77032         spurious "-l"s.  Problem reported by Stepan Kasal.
77033
77034 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
77035
77036         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
77037         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
77038
77039 2004-12-04  Simon Josefsson  <jas@extundo.com>
77040
77041         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
77042         Vandoorselaere <yoann@prelude-ids.org>.
77043
77044 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77045
77046         Changes imported from coreutils.
77047         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
77048         exist.
77049         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
77050
77051 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77052
77053         Changes imported from coreutils.
77054         * lib/hard-locale.c: Assume <locale.h> exists.
77055         Include "strdup.h".
77056         (GLIBC_VERSION): New macro.
77057         (hard_locale): Assume setlocale exists.
77058         Rewrite to avoid #ifdef.
77059         Use strdup rather than malloc + strcpy.
77060         * lib/human.c: Assume <locale.h> exists.
77061         (human_readable): Assume localeconv exists.
77062
77063 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
77064
77065         * modules/hard-locale (Depends-on): Add strdup.
77066
77067 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
77068
77069         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
77070         convert T2, not T.  (Imported from libc.)
77071
77072 2004-11-30  Simon Josefsson  <jas@extundo.com>
77073
77074         * modules/restrict (License): Change to LGPL.
77075
77076 2004-11-30  Simon Josefsson  <jas@extundo.com>
77077
77078         * m4/restrict.m4: Add copyright and copying conditions.
77079
77080 2004-11-30  Simon Josefsson  <jas@extundo.com>
77081
77082         * m4/base64.m4: New file.
77083
77084 2004-11-30  Simon Josefsson  <jas@extundo.com>
77085
77086         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
77087         base64.
77088
77089         * tests/test-base64.c: New file.
77090
77091         * modules/base64: New file.
77092
77093 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
77094
77095         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
77096         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
77097
77098         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
77099
77100 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
77101
77102         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
77103         (__getcwd.c): Don't restore errno; glibc doesn't.
77104         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
77105         first, falling back to our code only if its results look suspicious.
77106         Ensure that the resulting buffer is only as large as necessary.
77107
77108         * lib/readutmp.c: Include readutmp.h first.
77109         Include <errno.h>, since readutmp.h no longer does that.
77110         * lib/readutmp.h: Don't include <errno.h>,
77111         <sys/param.h>, <time.h>; not needed to establish interface.
77112         (errno): Remove decl.
77113         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
77114         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
77115         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
77116
77117 2004-11-28  Simon Josefsson  <jas@extundo.com>
77118
77119         * lib/base64.h, base64.c: New file.
77120
77121 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
77122
77123         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
77124
77125 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
77126
77127         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
77128         (Depends-on): Remove pathmax, same.  Add mempcpy.
77129         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
77130         (Makefile.am): Append getcwd.h to lib_SOURCES.
77131         (Include): Add getcwd.h.
77132         (Maintainer): Change from Jim Meyering to "all, glibc",
77133         since getdate now uses intended-for-glibc code.
77134         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
77135         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
77136
77137 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
77138
77139         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
77140         HP's ANSI C compiler.
77141         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
77142         Declaring int functions causes warnings on some modern systems and
77143         shouldn't be needed to compile on ancient ones.
77144         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
77145         defined.
77146
77147         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
77148         with the following changes.
77149         (__set_errno): Parenthesize properly.
77150         Include <stdbool.h>.
77151         (MIN, MAX, MATCHING_INO): New macros.
77152         (__getcwd): Define with prototype, not K&R form.
77153         Use heuristics to allocate default buffer on stack if possible.
77154         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
77155         behavior, and to avoid the PATH_MAX limit when computing
77156         ../../../../...
77157         Use MATCHING_INO to compare inode number to file.
77158         Check for arithmetic overflow in size calculations.
77159         Fix bug in reallocation of dot array that caused getcwd to fail
77160         on directories nested deeper than 75.
77161         Be more careful about saving errno on error.
77162         Do not use realloc; use only free+malloc, as this is a bit
77163         more flexible and avoids a needless copy operation.
77164         Do not inspect st_dev and st_ino for symbolic links; POSIX
77165         doesn't specify the latter.
77166         Check for closedir errors.
77167         Avoid needless casts.
77168         Use "#ifdef weak_alias" around weak_alias, to be like other
77169         glibc code.
77170         The following changes to getcwd.c have effect only when used in
77171         gnulib; they have no effect inside glibc proper.
77172         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
77173         as alloca isn't used.
77174         (alloca, __alloca): Likewise.
77175         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
77176         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
77177         unconditionally, as gnulib assumes C89 or better.
77178         Do not include <sys/param.h>.
77179         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
77180         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
77181         better.
77182         (NULL) [!defined NULL]: Remove; we assume C89 or better.
77183         Include <dirent.h> in a way that is compatible with modern Autoconf.
77184         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
77185         New macros, if not already defined.
77186         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
77187         Use "_LIBC", not "defined _LIBC", for consistency.
77188         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
77189         a mempcpy module.
77190         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
77191         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
77192         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
77193         credit only to Jim Meyering and adjust the copyright dates.
77194         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
77195         <stdlib.h>, <unistd.h>, "pathmax.h".
77196         Instead, include "xgetcwd.h" (first) and "getcwd.h".
77197         (INITIAL_BUFFER_SIZE): Remove.
77198         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
77199
77200 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
77201
77202         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
77203         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
77204         Use the _ONCE methods, for efficiency.
77205         Check for fcntl.h.  In test program, include <errno.h>
77206         and <fcntl.h> if available.  Remove old K&R cruft from
77207         test program.  Check for common errors in GNU/Linux,
77208         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
77209         don't do AC_LIBOBJ, as that's getcwd.m4's job.
77210         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
77211         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
77212         name accordingly.
77213         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
77214         accommodate new getcwd.c.
77215         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
77216         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
77217         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
77218         that's all we need now.
77219
77220 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77221
77222         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
77223         argp-parse.c depends on getopt internals, that means we should
77224         always use our getopt, to be on the safe side.
77225         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
77226         order not to spoil the result of an eventual previous invocation
77227         of gl_GETOPT_SUBSTITUTE.
77228
77229 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77230
77231         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
77232         redefinition warnings. To avoid them, include the defines
77233         in `#if !defined __need_getopt ... #endif'. The only place
77234         where __getopt_argv_const is used is in definitions
77235         of getopt_long and getopt_long_only below, which are as well
77236         protected by `#ifndef __need_getopt'.
77237         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
77238         __need_getopt after including <stdio.h> and <unistd.h> These
77239         headers might have defined it.
77240
77241 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
77242
77243         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
77244
77245 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
77246
77247         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
77248         (futimens): New function, which uses futimes if available.
77249         (futimens, utimens): Support timespec==NULL, with same semantics
77250         as utime and utimens.
77251         * lib/utimens.h (futimens): New decl.
77252
77253 2004-11-23  Jim Meyering  <jim@meyering.net>
77254
77255         * lib/getopt_.h: Remove trailing blanks.
77256
77257 2004-11-23  Jim Meyering  <jim@meyering.net>
77258
77259         * lib/__fpending.c: Add comment.
77260
77261 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
77262
77263         * modules/canonicalize (Depends-on): Add xreadlink.
77264         Problem reported by James Youngman.
77265
77266 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
77267
77268         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
77269         New macros.
77270         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
77271         optopt): Use them instead of invoking ## directly; otherwise, the
77272         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
77273
77274 2004-11-19  Bruno Haible  <bruno@clisp.org>
77275
77276         * lib/strtok_r.c: Move comments from here...
77277         * lib/strtok_r.h: ... to here.
77278
77279 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77280
77281         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
77282         implementations that mishandle size_t overflow.
77283
77284 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77285
77286         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
77287         might fail.  Problem reported by Yoann Vandoorselaere.
77288         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
77289         implementations that mishandle size_t overflow.
77290
77291 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77292
77293         * modules/canon-host (Depends-on): Add strdup.
77294
77295 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77296
77297         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
77298
77299 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77300
77301         * lib/canon-host.c: Include "strdup.h".
77302         (canon_host): Use getaddrinfo if available, so that IPv6 works.
77303         Use strdup instead of malloc/strcpy to duplicate strings.
77304
77305         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
77306         (human_space_before_unit): New constant.
77307         * lib/human.c (human_readable): Support it.
77308
77309         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
77310         (xgetcwd): Set errno correctly when failing.
77311         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
77312         the failure is actually due to a PATH_MAX problem.
77313
77314         Further getopt changes to make it more likely that glibc will
77315         buy the changes back.
77316         * lib/getopt.c (POSIXLY_CORRECT): New constant.
77317         (getopt): Use it, so to preserve glibc semantic
77318         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
77319         when compiling for libc.
77320         * lib/getopt_.h (__getopt_argv_const): Bring it back.
77321         (getopt_long, getopt_long_only): Use it.
77322
77323         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
77324         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
77325         (getopt): Argv is now char * const *, as per standard.
77326         (_getopt_internal_r, _getopt_internal): Argv is now char **,
77327         not char *__getopt_argv_const *.
77328         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
77329         _getopt_long_only_r): Likewise.
77330         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
77331         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
77332         _getopt_long_r, _getopt_long_only_r): Likewise.
77333         * lib/getopt_.h (__getopt_argv_const): Remove.
77334         (getopt): Argv is now char * const *, as per standard.
77335
77336         * lib/getdate.y (tORDINAL): New token.
77337         (day, relunit): Allow it for relative times.
77338         (relative_time_table): Use tORDINAL for ordinals.
77339
77340 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77341
77342         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
77343         Document that "second" isn't allowed as an ordinal number.
77344
77345 2004-11-16  Jim Meyering  <jim@meyering.net>
77346
77347         * modules/closeout (Depends-on): Add fpending.
77348
77349 2004-11-15  Jim Meyering  <jim@meyering.net>
77350
77351         * lib/closeout.c: Include "__fpending.h" once again.
77352         Include <stdbool.h>.
77353         (close_stdout): Don't fail just because stdout was closed initially,
77354         since some programs don't write to stdout in the normal course of
77355         operation (other than --version and --help), and we don't want this
77356         function to make e.g. `touch file >&-' fail.
77357         But do fail if it was closed and someone has tried to write to it.
77358         E.g., `printf foo >&-' must fail.
77359
77360 2004-11-13  Jim Meyering  <jim@meyering.net>
77361
77362         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
77363
77364 2004-11-12  Simon Josefsson  <jas@extundo.com>
77365
77366         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
77367         small doc fix is still pending.
77368
77369 2004-11-11  Simon Josefsson  <jas@extundo.com>
77370
77371         * modules/strtok_r: New file.
77372
77373         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77374         strtok_r.
77375
77376 2004-11-11  Simon Josefsson  <jas@extundo.com>
77377
77378         * m4/strtok_r.m4: New file.
77379
77380         * m4/getopt.m4: Replace opterr.
77381
77382 2004-11-11  Simon Josefsson  <jas@extundo.com>
77383
77384         * lib/strtok_r.h, strtok_r.c: New file.
77385
77386 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
77387
77388         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
77389         of replacing opterr, getopt, etc.  This should handle the
77390         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
77391
77392 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
77393
77394         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
77395         we can stop lying to compilers about the constness of argv when we
77396         are compiled outside glibc.
77397         (getopt, getopt_long, getopt_long_only): Use it.
77398         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
77399         _getopt_internal, getopt): Likewise.
77400         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
77401         _getopt_long_only_r): Likewise.
77402         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
77403         _getopt_long_r, _getopt_long_only_r): Likewise.
77404
77405         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
77406         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
77407         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
77408         the other external symbols.
77409         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
77410         declaration, since the above renaming now works around collisions.
77411
77412 2004-11-11  Jim Meyering  <jim@meyering.net>
77413
77414         * lib/linebreak.c: Remove trailing blanks.
77415         * lib/alloca_.h: Likewise.
77416         * lib/acosl.c: Likewise.
77417         * lib/euidaccess.c: Likewise.
77418         * lib/allocsa.h: Likewise.
77419
77420 2004-11-10  Simon Josefsson  <jas@extundo.com>
77421
77422         * m4/getaddrinfo.m4: New file.
77423
77424 2004-11-10  Simon Josefsson  <jas@extundo.com>
77425
77426         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
77427
77428 2004-11-10  Simon Josefsson  <jas@extundo.com>
77429
77430         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77431         getaddrinfo.
77432
77433         * modules/getaddrinfo: New file.
77434
77435 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77436
77437         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
77438
77439 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77440
77441         * lib/mktime.c (SHR): New macro, which is a portable
77442         substitute for >> that should work even on Crays.
77443         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
77444         Problem reported by Mark D. Baushke in
77445         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
77446         * lib/getdate.y (SHR): Likewise.
77447         (tm_diff): Use it.
77448         * lib/strftime.c (SHR): Likewise.
77449         (tm_diff): Use it.
77450         * lib/quotearg.c (struct quoting_options): Use unsigned int for
77451         quote_these_too, so that right shifts are well defined.  All uses
77452         changed.
77453
77454 2004-11-10  Jim Meyering  <jim@meyering.net>
77455
77456         Ensure that no close failure goes unreported.
77457         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
77458         return early when it seems there's nothing to flush.
77459         Don't include __fpending.h.
77460
77461 2004-11-10  Jim Meyering  <jim@meyering.net>
77462
77463         * modules/closeout (Depends-on): Remove fpending.
77464
77465 2004-11-10  Jim Meyering  <jim@meyering.net>
77466
77467         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
77468
77469 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77470
77471         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
77472         gl_FUNC_STRFTIME.
77473         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
77474         and AC_REQUIRE when possible, to avoid duplicate checks.
77475         Check for <wchar.h>.
77476
77477 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77478
77479         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
77480
77481 2004-11-09  Bruno Haible  <bruno@clisp.org>
77482
77483         * m4/sockpfaf.m4: New file.
77484
77485 2004-11-05  Bruno Haible  <bruno@clisp.org>
77486
77487         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
77488         Reported by Mark D. Baushke <mdb@cvshome.org>.
77489
77490 2004-11-04  Bruno Haible  <bruno@clisp.org>
77491
77492         2004-09-11  Bruno Haible  <bruno@clisp.org>
77493                 * allocsa.valgrind: New file.
77494         2004-02-06  Bruno Haible  <bruno@clisp.org>
77495                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
77496                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
77497                 Reported by Christopher Seip <chris.seip@hp.com>.
77498
77499 2004-11-04  Bruno Haible  <bruno@clisp.org>
77500
77501         * modules/allocsa (Files): Add lib/allocsa.valgrind.
77502         (Makefile.am): Distribute it.
77503
77504 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
77505
77506         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
77507         with errno == ERANGE if the buffer is too small.
77508         Problem reported by Mark D. Baushke.
77509
77510 2004-11-03  Albert Chin  <china@thewrittenword.com>
77511             Paul Eggert  <eggert@cs.ucla.edu>
77512
77513         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
77514         equivalent, substitute $ac_type for equivalent type rather than
77515         blindly using uint32_t *always* which won't work if uint32_t is not
77516         available.  Define _UINT32_T to work around typedef of uint32_t if
77517         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
77518         2.5.1.
77519
77520 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77521
77522         * m4/jm-macros.m4: Sync from coreutils.
77523         (gl_MACROS): Check for mbrlen, for pathchk.
77524         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
77525
77526 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77527
77528         * lib/xreadlink.c (MAXSIZE): New macro.
77529         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
77530         size does not exceed MAXSIZE.  Avoid cast.
77531         As suggested by Mark D. Baushke in
77532         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
77533         if readlink fails with buffer size just under MAXSIZE, try again
77534         with MAXSIZE.
77535
77536 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77537
77538         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
77539
77540 2004-11-02  Derek R. Price  <derek@ximbiot.com>
77541         and  Paul Eggert  <eggert@cs.ucla.edu>
77542
77543         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
77544         (get_date): Overparenthesize to avoid GCC warning.
77545
77546 2004-11-02  Bruno Haible  <bruno@clisp.org>
77547
77548         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
77549         returns void.
77550
77551 2004-11-02  Bruno Haible  <bruno@clisp.org>
77552
77553         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
77554         function returns void.
77555
77556 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
77557
77558         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
77559         fflush_unlocked, flockfile, funlockfile, funlockfile,
77560         fputs_unlocked, putc_unlocked.
77561
77562 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
77563
77564         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
77565         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
77566         already declared.
77567
77568 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77569
77570         * modules/getdate (Files): Add doc/getdate.texi.
77571         (Depends-on): Add setenv, xalloc.
77572
77573 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77574
77575         * lib/getdate.y: Add support for TZ="foo" within a date string.
77576         Fix some bugs near time_t boundaries.  Reject dates with
77577         out-of-range components, e.g., "Sept 31".
77578         Include <stdlib.h>, "setenv.h", "xalloc.h".
77579         (ISDIGIT_LOCALE): Remove; unused.
77580         Note that the TZ and time functions used here are not reentrant.
77581         (mktime_ok, get_tz): New functions.
77582         (TZBUFSIZE): New constant.
77583         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
77584         This requires that we sometimes generate our own TZ="XXX..." setting.
77585
77586 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77587
77588         * doc/getdate.texi: New file, from coreutils with modifications for
77589         the new TZ parsing.
77590
77591 2004-10-27  Derek R. Price  <derek@ximbiot.com>
77592
77593         * lib/mktime.c (not_equal_tm): Remove redundant check.
77594
77595 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77596
77597         * modules/regex (lib_SOURCES): Add regex.c.
77598         Reported by James Youngman in
77599         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
77600
77601 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77602
77603         * lib/getdate.y: Use Bison 1.875 features, and some minor
77604         code cleanups.  This change does not affect semantics.
77605         Don't include <stdlib.h>; no longer needed.
77606         Don't include unlocked-io.h; only the "#if TEST" code uses
77607         stdio, and performance isn't crucial there.
77608         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
77609         Bison 1.875 features as described below.
77610         All uses of "PC." replaced by "pc->".
77611         (YYSTYPE): Add a forward declaration.
77612         (yylex, yyerror): Use full prototypes in forward decls.
77613         Use "%pure-parser" rather than obsolescent "%pure_parser".
77614         Use %parse-param and %lex-param instead of obsolescent
77615         YYPARSE_PARAM and YYLEX_PARAM.
77616         (meridian_table, month_and_day_table, time_units_table,
77617         relative_time_table, time_zone_table, military_table,
77618         lookup_zone, lookup_word, get_date):
77619         Use NULL instead of 0 where appropriate.
77620         (to_hour): Avoid abort (), to avoid a dependency on
77621         stdlib.h.
77622         (yyerror, yylex): Now accepts parser_control * arg.
77623         (main) [TEST]: Use '\0' rather than 0 for char.
77624
77625 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
77626
77627         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
77628
77629 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
77630
77631         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
77632         It's now the caller's responsibility to handle the case where
77633         !HAVE_GETPAGESIZE && !defined getpagesize.
77634
77635         * lib/mktime.c (leapyear): Arg is long int, not int.
77636
77637 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
77638
77639         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
77640
77641 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
77642
77643         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
77644         missing.  Problem reported by James Youngman.
77645
77646 2004-10-16  Simon Josefsson  <jas@extundo.com>
77647
77648         * gnulib-tool: Fix comments.  Fix parse problem.
77649         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
77650
77651 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
77652
77653         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
77654         implementation of getopt_long.  Problem reported by Alexander Taler in:
77655         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
77656
77657 2004-10-15  Bruno Haible  <bruno@clisp.org>
77658
77659         * gnulib-tool: Untabify. Initialize supplied_libname.
77660         (func_usage): More homogenous output.
77661         (func_modules_transitive_closure, func_modules_to_filelist,
77662         func_emit_lib_Makefile_am): New functions.
77663         (func_import): New function, extracted from big case statement. Use
77664         func_get_license, func_modules_transitive_closure,
77665         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
77666         opt_lgpl. Don't use test -a, as it's not portable.
77667         (func_create_testdir): Use func_modules_transitive_closure,
77668         func_modules_to_filelist, func_emit_lib_Makefile_am.
77669
77670 2004-10-15  Bruno Haible  <bruno@clisp.org>
77671
77672         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
77673
77674 2004-10-15  Bruno Haible  <bruno@clisp.org>
77675
77676         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
77677         the portions belonging to each module.
77678         Suggested by Derek Robert Price <derek@ximbiot.com>.
77679
77680 2004-10-12  Simon Josefsson  <jas@extundo.com>
77681
77682         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
77683         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
77684         to real functions.
77685
77686 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77687
77688         * modules/vsnprintf: New file.
77689
77690 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77691
77692         * m4/vsnprintf.m4: New file.
77693
77694 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77695
77696         * lib/vsnprintf.h: New file.
77697         * lib/vsnprintf.c: New file.
77698
77699 2004-10-11  Bruno Haible  <bruno@clisp.org>
77700
77701         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
77702         vsnprintf.
77703
77704 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
77705
77706         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
77707
77708 2004-10-07  Bruno Haible  <bruno@clisp.org>
77709
77710         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
77711         fits into the provided buffer.
77712
77713 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
77714
77715         * lib/diacrit.c, diacrit.h: Add GPL notice.
77716
77717         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
77718         notice.
77719         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
77720         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
77721         This avoids a potential constant-folding bug.
77722
77723 2004-10-05  Bruno Haible  <bruno@clisp.org>
77724
77725         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
77726         for the declaration of strsep.
77727
77728 2004-10-05  Bruno Haible  <bruno@clisp.org>
77729
77730         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
77731
77732 2004-10-04  Simon Josefsson  <jas@extundo.com>
77733
77734         * modules/memmem: New file.
77735         * tests/test-memmem.c: New file.
77736         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
77737
77738 2004-10-04  Simon Josefsson  <jas@extundo.com>
77739
77740         * m4/memmem.m4: New file.
77741
77742 2004-10-04  Simon Josefsson  <jas@extundo.com>
77743
77744         * lib/memmem.h: New file.
77745         * lib/memmem.c: New file, taken from glibc.
77746
77747 2004-10-04  Simon Josefsson  <jas@extundo.com>
77748
77749         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
77750         '#ifdef USE_UNLOCKED_IO'.
77751
77752 2004-10-04  Simon Josefsson  <jas@extundo.com>
77753
77754         * config/srclist.txt: Add memmem from glibc.
77755
77756 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
77757
77758         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
77759
77760         * modules/argmatch, modules/argp, modules/closeout, modules/error,
77761         modules/exclude, modules/getdate, modules/getline,
77762         modules/getndelim2, modules/getpass, modules/getpass-gnu,
77763         modules/getusershell, modules/linebuffer, modules/md5,
77764         modules/mountlist, modules/posixtm, modules/readtokens,
77765         modules/readutmp, modules/regex, modules/sha1,
77766         modules/version-etc, modules/yesno:
77767         Remove dependency on unlocked-io.
77768
77769 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
77770
77771         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
77772
77773         * m4/unlocked-io.m4: Add copyright notice.
77774         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
77775
77776 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
77777
77778         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
77779         * lib/xmalloc.c (xmemdup): Likewise.
77780         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
77781         XFREE): Remove these long-obsolescent macros.
77782         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
77783         * lib/xstrdup.c: Remove.
77784
77785         * lib/regex.c (re_comp): Cast gettext return value to char *,
77786         Problem reported by Martin Neitzel via Mark D. Baushke.
77787
77788 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
77789
77790         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
77791         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
77792         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
77793         regex.c, sha1.c, version-etc.c, yesno.c:
77794         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
77795         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
77796         the includer's responsibility.
77797
77798         Sync from coreutils.
77799
77800         * lib/modechange.c (mode_compile): Don't decrement a pointer that
77801         points to the start of a string, as the C Standard says the
77802         resulting behavior is undefined.
77803
77804         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
77805         simple -> simple_backups, numbered_existing ->
77806         numbered_existing_backups, numbered -> numbered_backups
77807         to avoid shadowing problems.  All uses changed.
77808         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
77809         * lib/backupfile.c (check_extension, numbered_backup):
77810         Rename locals to avoid shadowing 'basename'.
77811         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
77812         once.
77813
77814         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
77815         * lib/.cvsignore: Add getopt.h.
77816
77817 2004-10-04  Bruno Haible  <bruno@clisp.org>
77818
77819         * modules/README: New file.
77820         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
77821         not a module.
77822
77823 2004-10-02  Jim Meyering  <jim@meyering.net>
77824
77825         * lib/dirfd.h, getpagesize.h: Add copyright notice.
77826
77827 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77828
77829         * modules/strsep: New file.
77830
77831 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77832
77833         * m4/strsep.m4: New file.
77834
77835 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
77836
77837         * lib/strsep.h: New file.
77838         * lib/strsep.c: New file.
77839
77840 2004-10-01  Simon Josefsson  <jas@extundo.com>
77841
77842         * lib/snprintf.c (snprintf): Handle size==0.
77843
77844 2004-10-01  Simon Josefsson  <jas@extundo.com>
77845             Bruno Haible  <bruno@clisp.org>
77846
77847         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
77848         (snprintf): Declare 'args'.
77849
77850 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
77851
77852         * lib/snprintf.c: Remove comments as to why each header is needed.
77853
77854 2004-10-01  Bruno Haible  <bruno@clisp.org>
77855
77856         * MODULES.html.sh: Add strsep.
77857
77858 2004-09-30  Simon Josefsson  <jas@extundo.com>
77859
77860         * modules/snprintf: New file.
77861
77862 2004-09-30  Simon Josefsson  <jas@extundo.com>
77863
77864         * m4/snprintf.m4: New file.
77865
77866 2004-09-30  Simon Josefsson  <jas@extundo.com>
77867
77868         * lib/snprintf.h, lib/snprintf.c: New files.
77869
77870 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77871
77872         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
77873         (hol_entry_help): Never translate an empty string.
77874         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
77875         * lib/argp.h (OPTION_NO_TRANS): New option.
77876
77877 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
77878
77879         * modules/argp (Maintainer): Replace Simon Josefsson
77880         by Sergey Poznyakoff.
77881
77882 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
77883
77884         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
77885         changes merged back into glibc.
77886
77887 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
77888
77889         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
77890
77891 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
77892
77893         * lib/xvasprintf.c: Include xalloc.h.
77894         (xvasprintf): Use xalloc_die, not xmalloc_die.
77895
77896 2004-09-29  Bruno Haible  <bruno@clisp.org>
77897
77898         * modules/alloca-opt: New file, derived from modules/alloca.
77899         * modules/allocsa: Depend on alloca-opt instead of alloca.
77900         * modules/setenv: Likewise.
77901         * modules/vasnprintf: Likewise.
77902         * MODULES.html.sh: Add alloca-opt.
77903
77904 2004-09-28  Simon Josefsson  <jas@extundo.com>
77905
77906         * gnulib-tool: New parameter --lgpl, to asseert that modules are
77907         LGPL, and to replace license template from GPL to LGPL.
77908
77909 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
77910
77911         * modules/dummy: Change license to LGPL.
77912
77913 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
77914
77915         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
77916
77917 2004-09-24  Simon Josefsson  <jas@extundo.com>
77918
77919         * modules/minmax (License): Change from GPL to LGPL.
77920
77921 2004-09-23  Simon Josefsson  <jas@extundo.com>
77922
77923         * gnulib-tool (--import): Typo.
77924
77925 2004-09-23  Simon Josefsson  <jas@extundo.com>
77926
77927         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
77928
77929 2004-09-22  Bruno Haible  <bruno@clisp.org>
77930
77931         * modules/*: Add 'License' field.
77932         * gnulib-tool: Accept --extract-license option.
77933         (func_get_license): New function.
77934
77935 2004-09-21  Bruno Haible  <bruno@clisp.org>
77936
77937         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
77938         Reported by Simon Josefsson.
77939
77940 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
77941
77942         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
77943         gl_AC_TYPE_LONG_LONG.
77944
77945 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
77946
77947         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
77948
77949 2004-09-18  Simon Josefsson  <jas@extundo.com>
77950         and  Paul Eggert  <eggert@cs.ucla.edu>
77951
77952         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
77953         calls with autoreconf.  Define GL_LIB.
77954
77955 2004-09-14  Karl Berry  <karl@gnu.org>
77956
77957         * config/srclist.txt: unsync setenv.c, sigh.
77958
77959 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77960
77961         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
77962         Problem reported by Bruno Haible in:
77963         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
77964
77965 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77966
77967         * config/srclist.txt: Comment out argp-pvh.c.
77968
77969 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
77970
77971         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
77972         in case some system header has #define'd it.  Problem reported by
77973         Soeren D. Schulze in
77974         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
77975
77976 2004-09-09  Karl Berry  <karl@gnu.org>
77977
77978         * regex.[ch]: delete from the root.  These were supposed to be
77979                 synced with emacs cvs, but this has not happened for about
77980                 a year, and anyway nothing else uses emacs regex.[ch].
77981                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
77982                 lib/regex[.ch] is untouched.
77983
77984 2004-09-09  Bruno Haible  <bruno@clisp.org>
77985
77986         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
77987
77988 2004-09-09  Bruno Haible  <bruno@clisp.org>
77989
77990         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
77991         modifications.
77992         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
77993
77994 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
77995
77996         * modules/xvasprintf: New file.
77997         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
77998
77999 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
78000
78001         * lib/xvasprintf.h: New file.
78002         * lib/xvasprintf.c: New file.
78003         * lib/xasprintf.c: New file.
78004
78005 2004-09-08  Bruno Haible  <bruno@clisp.org>
78006
78007         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
78008
78009 2004-09-08  Bruno Haible  <bruno@clisp.org>
78010
78011         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
78012         length is > INT_MAX.
78013         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
78014         more.
78015
78016 2004-09-08  Bruno Haible  <bruno@clisp.org>
78017
78018         * lib/stdint_.h: New file, taken from GNU clisp.
78019
78020 2004-09-08  Bruno Haible  <bruno@clisp.org>
78021             Oskar Liljeblad  <oskar@osk.mine.nu>
78022
78023         * modules/stdint: New file.
78024         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
78025
78026 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78027
78028         Import from coreutils.
78029         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
78030         strings on unbounded length.  alloca's performance benefits aren't
78031         that important here.
78032         (V_STRDUP): Remove.
78033         (parse_with_separator): New function, with most of the internals
78034         of the old parse_user_spec.  Allow user to omit both user and group,
78035         for compatibility with FreeBSD.
78036         Clone only the user name, not the entire spec.
78037         Do not set *uid, *gid unless entirely successful.
78038         Avoid memory leak in some failing cases.
78039         Fix regression for USER.GROUP reported by Dmitry V. Levin in
78040         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
78041         (parse_user_spec): Rewrite to use parse_with_separator.
78042
78043 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78044
78045         * modules/userspec: Don't depend on alloca.
78046
78047 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78048
78049         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
78050
78051 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78052
78053         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
78054         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
78055         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
78056
78057 2004-08-16  Simon Josefsson  <jas@extundo.com>
78058
78059         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
78060         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
78061         Add --dry-run for --import.
78062         Let user provided command line parameters override configure.ac
78063         settings.
78064
78065 2004-08-12  Simon Josefsson  <jas@extundo.com>
78066
78067         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
78068         as discussed with Paul Eggert in threads rooted at
78069         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
78070         and
78071         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
78072         Before, the test was empty, and relied on ELIDE_CODE in source
78073         code.)
78074         (gl_PREREQ_GETOPT): New macro.
78075         (gl_GETOPT): Use them.
78076
78077 2004-08-12  Simon Josefsson  <jas@extundo.com>
78078
78079         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
78080         * lib/getopt_.h: Renamed from getopt.h.
78081
78082 2004-08-12  Simon Josefsson  <jas@extundo.com>
78083
78084         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
78085         Change default library name from libfoo to libgnu.
78086         Now, if you have a configure.ac that says:
78087                 gl_SOURCE_BASE(gl)
78088                 gl_M4_BASE(gl/m4)
78089                 gl_MODULES(error getopt etcetera)
78090                 gl_INIT
78091         you can import all you need by running:
78092                 ../gnulib/gnulib-tool --import
78093
78094         * modules/getopt (Files): Rename getopt.h to getopt_.h.
78095         (Makefile.am): Rewrite, use logic from argz.
78096         (Include): Use <getopt.h> instead of "getopt.h".
78097
78098 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78099
78100         * modules/argp (Files): Add m4/unlocked-io.m4.
78101         (Depends-on): Add extensions.
78102
78103 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78104
78105         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
78106         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
78107         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
78108         Check for program_invocation_name, program_invocation_short_name,
78109         flockfile, funlockfile, features.h, _getopt_long_only_r.
78110
78111 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78112
78113         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
78114         its complicated substitute.
78115         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
78116         and program_invocation_name.
78117         (__argp_basename) [!_LIBC]: Remove; the only use was
78118         replaced by its body.
78119         (__argp_short_program_name): Change condition from
78120         !defined __argp_short_program_name to
78121         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
78122         to match argp-namefrob.h.
78123         (__argp_failure): Don't assume strerror_r returns char *.
78124         * lib/argp-parse.c (N_): Define unconditionally.
78125         (argp_default_options): Fill out initializers with 0 to avoid
78126         gcc warnings.
78127
78128 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
78129
78130         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
78131         getopt1.c.
78132
78133 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78134
78135         Merge from coreutils.
78136
78137         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
78138
78139         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
78140         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
78141
78142 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78143
78144         Merge from coreutils.
78145
78146         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
78147         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
78148         for Reliant Unix 5.43.
78149
78150         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
78151         (union fooround): Use uintmax_t, not long int.
78152         The rest is a merge from libc:
78153         [defined _LIBC]: Include <shlib-compat.h>.
78154         (_obstack) [defined _LIBC]: Remove after 2.3.4.
78155
78156         * lib/settime.c (settime): Recode to avoid warning with
78157         Sun Forte C 6U2.
78158
78159         * lib/strverscmp.c: Convert to UTF-8.
78160
78161 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78162
78163         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
78164         m4/uintmax_t.m4.
78165
78166 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78167
78168         * modules/xalloc-die: New file.
78169         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
78170
78171         * modules/md5 (Files): Add m4/uint32_t.m4.
78172         * modules/sha1: Renamed from modules/sha.
78173         (Files):
78174         Rename lib/sha.h to lib/sha1.h.
78175         Rename lib/sha.c to lib/sha1.c.
78176         Rename m4/sha.m4 to m4/sha1.m4.
78177         (lib_SOURCES): Likewise.
78178         (configure.ac): Rename gl_SHA to gl_SHA1.
78179         (Include): sha.h -> sha1.h.
78180
78181 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78182
78183         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
78184         * m4/sha1.m4: Renamed from sha.m4.
78185         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
78186
78187 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78188
78189         * lib/obstack.h (obstack_empty_p):
78190         Don't assume that chunk->contents is suitably aligned.
78191         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
78192         Likewise. Problem reported by Benno in
78193         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
78194
78195         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
78196         readable.  This could be improved further but it'd take some work.
78197
78198 2004-08-08  Simon Josefsson  <jas@extundo.com>
78199
78200         * modules/xgethostname (Depends-on): Remove exit and error (not
78201         used).
78202
78203         * modules/getpass-gnu: Add getpass.h.
78204         (Depends-on): Add stdbool.
78205         * modules/getpass: Add getpass.h.
78206
78207 2004-08-08  Simon Josefsson  <jas@extundo.com>
78208
78209         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
78210         Check getpass declaration.
78211
78212 2004-08-08  Simon Josefsson  <jas@extundo.com>
78213
78214         * lib/xgethostname.c: Don't include error.h (not used).
78215
78216         * lib/getpass.h: Add.
78217         * lib/getpass.c: Include getpass.h first.
78218
78219 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
78220
78221         * lib/xalloc-die.c: New file.
78222         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
78223         All uses removed.
78224         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
78225         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
78226         xalloc-die.c.
78227         (_, N_, xalloc_die): Move to xalloc-die.c.
78228         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
78229         so that we needn't mess with xalloc_msg_memory_exhausted.
78230
78231         * lib/sha1.h: Renamed from sha.h.
78232         (SHA1_H): Renamed from _SHA_H.
78233         (sha1_ctx): Renamed from sha_ctx.
78234         (sha1_init_ctx): Renamed from sha_init_ctx.
78235         (sha1_process_block): Renamed from sha_process_block.
78236         (sha1_process_bytes): Renamed from sha_process_bytes.
78237         (sha1_finish_ctx): Renamed from sha_finish_ctx.
78238         (sha1_read_ctx): Renamed from sha_read_ctx.
78239         (sha1_stream): Renamed from sha_stream.
78240         (sha1_buffer): Renamed from sha_buffer.
78241         * lib/sha1.c: Likewise; renamed from sha.c.
78242         Do not include <sys/types.h>.
78243         Include <stddef.h> rather than <stdlib.h>.
78244
78245 2004-08-08  Bruno Haible  <bruno@clisp.org>
78246
78247         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
78248         FILESYSTEM_PREFIX_LEN.
78249         * lib/progreloc.c: Likewise.
78250         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
78251
78252 2004-08-06  Simon Josefsson  <jas@extundo.com>
78253
78254         * modules/progname (Depends-on): Don't depend on stdbool.
78255
78256 2004-08-06  Simon Josefsson  <jas@extundo.com>
78257
78258         * modules/getsubopt: New file.
78259         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78260         getsubopt.
78261
78262 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78263
78264         More merge from coreutils.
78265
78266         * m4/utimens.m4, m4/utimecmp.m4: New files.
78267         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
78268         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
78269         prereq.m4, sha.m4: Import changes from coreutils.
78270
78271 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78272
78273         More merge from coreutils.
78274         * modules/raise, modules/readtokens0, modules/utimens:
78275         * modules/utimecmp, module/xnanosleep: New files.
78276         * modules/strftime: Add lib/strftime.h.
78277         Change include from <time.h> to "strftime.h".
78278         * modules/yesno: Add lib/yesno.h.
78279         * modules/backupfile: Remove lib/addext.c.
78280         * modules/euidaccess: Add stat-macros.h.
78281         * modules/canonicalize, modules/euidaccess,
78282         modules/filemode, modules/lchown, modules/makepath,
78283         modules/rmdir, modules/stat: Likewise.
78284
78285 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
78286
78287         Merge from tar.
78288         * lib/argp-help.c (make_hol, hol_append): Don't assume that
78289         SIZE_MAX is a valid preprocessor constant.
78290         (__argp_basename): Change from "#ifndef _LIBC"
78291         to "#ifndef __argp_short_program_name", so that
78292         we don't compile these functions for tar.
78293
78294         More merges from coreutils.
78295         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
78296         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
78297         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
78298         * lib/addext.c: Remove; no longer needed.
78299         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
78300         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
78301         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
78302         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
78303         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
78304         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
78305         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
78306         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
78307         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
78308         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78309         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
78310         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
78311         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
78312         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
78313         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
78314         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
78315         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
78316         Import changes from coreutils.
78317
78318 2004-08-05  Simon Josefsson  <jas@extundo.com>
78319
78320         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
78321
78322 2004-08-05  Simon Josefsson  <jas@extundo.com>
78323
78324         * m4/getsubopt.m4: New file.
78325
78326 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78327
78328         Merge from coreutils.
78329
78330         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
78331         * m4/getcwd-path-max.m4: New files.
78332
78333         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
78334         FILESYSTEM_PREFIX_LEN ->
78335         FILE_SYSTEM_PREFIX_LEN.
78336         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
78337         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
78338         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
78339         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
78340
78341         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
78342         prerequisite modules now handle the DOS stuff.
78343         Don't check for unistd.h.
78344
78345 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78346
78347         Merge from coreutils.
78348
78349         * lib/.gdb-history: Remove; this doesn't belong here.
78350
78351         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
78352         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
78353         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
78354         * lib/getcwd.c: New files.
78355
78356         * lib/dirname.h: Include <stdbool.h>.
78357         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
78358         for consistency with POSIX terminology.  All uses changed.
78359         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
78360         (strip_trailing_slashes): Use bool for booleans.
78361         * lib/stripslash.c (strip_trailing_slashes): Likewise.
78362
78363         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
78364         sometimes returns a positive errno value even when it succeeds.
78365         (print_errno_message) [!LIBC]: Fall back on strerror if
78366         __strerror_r fails.
78367
78368         * lib/path-concat.c (mempcpy): Don't define if a system header defines
78369         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
78370         (longest_relative_suffix): New function.
78371         (path_concat): Use it.  Assume first argument is not NULL.
78372         Port to DOS.  Omit redundant separators.
78373         Report an error instead of returning NULL.
78374         Use mempcpy instead of memcpy.
78375         (xpath_concat): Remove: not declared or used.
78376
78377         * lib/same.h: Include <stdbool.h>
78378         (same_name): Return bool, not int.
78379         * lib/same.c (same_name): Likewise.
78380         (errno): Don't declare; we assume C89 or better now.
78381
78382         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
78383         if not already defined.
78384
78385         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
78386         * lib/dup-safer.c (errno): Likewise.
78387
78388 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
78389
78390         Merge from coreutils.
78391         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
78392         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
78393         * modules/path-concat: Don't depend on strdup.
78394
78395 2004-08-03  Simon Josefsson  <jas@extundo.com>
78396
78397         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
78398         * lib/progname.h: Don't include stdbool.h.
78399
78400 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78401
78402         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
78403         * MODULES.html.sh (func_all_modules): Remove fatal.
78404
78405 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78406
78407         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
78408
78409 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
78410
78411         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
78412         working.
78413
78414 2004-08-02  Simon Josefsson  <jas@extundo.com>
78415
78416         * lib/getsubopt.h: New file, with comments from Bruno Haible.
78417         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
78418         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
78419
78420 2004-08-01  Simon Josefsson  <jas@extundo.com>
78421
78422         * lib/xgetdomainname.c: Include stdlib.h, for free().
78423
78424 2004-07-19  Bruno Haible  <bruno@clisp.org>
78425
78426         * MODULES.html.sh (func_all_modules): Add dummy.
78427
78428 2004-07-16  Simon Josefsson  <jas@extundo.com>
78429
78430         * modules/dummy: New file.
78431
78432 2004-07-16  Simon Josefsson  <jas@extundo.com>
78433
78434         * lib/dummy.c: New file.
78435
78436 2004-07-16  Bruno Haible  <bruno@clisp.org>
78437
78438         * lib/backupfile.h: Add extern "C" for C++.
78439         * lib/closeout.h: Likewise.
78440         * lib/copy-file.h: Likewise.
78441         * lib/findprog.h: Likewise.
78442         * lib/full-write.h: Likewise.
78443         * lib/pathname.h: Likewise.
78444         * lib/progname.h: Likewise.
78445         * lib/stpcpy.h: Likewise.
78446         * lib/stpncpy.h: Likewise.
78447         * lib/strcase.h: Likewise.
78448         * lib/strstr.h: Likewise.
78449         * lib/xalloc.h: Likewise.
78450
78451         * lib/mbswidth.h: Add extern "C" for C++.
78452         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
78453
78454 2004-07-13  Robert Millan  <robertmh@gnu.org>
78455
78456         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
78457
78458 2004-07-09  Simon Josefsson  <jas@extundo.com>
78459
78460         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
78461         failed without this.)
78462
78463 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78464
78465         * modules/chown (Files): Add lib/fchown-stub.c, since
78466         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
78467
78468 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78469
78470         * lib/fchown-stub.c: New file.
78471
78472 2004-06-24  Jim Meyering  <jim@meyering.net>
78473
78474         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
78475
78476 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78477
78478         * modules/argz: Omit "#include".
78479
78480         * MODULES.html.sh (func_all_modules): Add calloc, to match
78481         2004-06-01 addition of calloc module.
78482
78483 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78484
78485         * m4/argz.m4: New file, which is autoupdated from libtool.
78486
78487 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78488
78489         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
78490         libtool.
78491
78492 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78493
78494         * config/srclist-update: Don't insist on "USA." before the
78495         close-comment, as libtool omits the period and puts the */ on a
78496         separate line.
78497         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
78498         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
78499
78500 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
78501
78502         * modules/argz: New file.
78503         * MODULES.html.sh (func_all_modules): Add argz.
78504
78505 2004-06-12  Jim Meyering  <jim@meyering.net>
78506         and  Paul Eggert  <eggert@cs.ucla.edu>
78507
78508         * modules/hash (Files): Add lib/xalloc.h.
78509         * modules/pipe (Depends-on): Add wait-process.
78510         * modules/stat (Depends-on): Add xalloc.
78511         * modules/userspec (Files): Add lib/userspec.h.
78512         * modules/xstrto
78513
78514         Upgrade from gettext-0.13.
78515         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
78516         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
78517         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
78518
78519 2004-06-10  Jim Meyering  <jim@meyering.net>
78520
78521         * lib/calloc.c: New file.
78522
78523 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
78524
78525         * lib/getdate.y (yylex): Allow space between sign and number.
78526         Problem reported by Dan Jacobson.
78527
78528 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
78529
78530         Merge from coreutils CVS.
78531
78532         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
78533         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
78534         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
78535         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
78536         xstrtol.m4: Fix copyright date and/or serial number.
78537
78538         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
78539         See if we need an fchown replacement.
78540         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
78541         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
78542         and use the replacement function if we detect either defect.
78543
78544         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
78545         gl_UTIMECMP.
78546
78547 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
78548         and  Jim Meyering  <jim@meyering.net>
78549
78550         Merge from coreutils CVS.
78551
78552         * lib/stat-macros.h: New file, with contents from file-type.h
78553         and coreutils' system.h.
78554         * lib/file-type.c: Include "stat-macros.h".
78555         * lib/file-type.h (file_type): Move all macro definitions to new file,
78556         stat-macros.h.
78557
78558         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
78559         Wrap old code with this conditional.
78560         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
78561         function that does not dereference symlinks.
78562         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
78563
78564         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
78565         dependency problems.
78566         (xreadlink): Accept new arg SIZE, for efficiency.
78567         All decls and uses changed.
78568         * lib/xreadlink.h: Include <stddef.h>, for size_t.
78569
78570         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
78571         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
78572
78573         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
78574         sysexits.h.
78575
78576 2004-06-01  Jim Meyering  <jim@meyering.net>
78577
78578         * m4/calloc.m4: New file.
78579
78580 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
78581
78582         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
78583         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
78584         Also, fix a typo in a diagnostic.
78585
78586 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
78587
78588         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
78589         or AC_FUNC_REALLOC.
78590
78591 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
78592
78593         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
78594         macros to be defined.
78595         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
78596         the allocator returns NULL because the requested size is zero.
78597
78598 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78599
78600         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
78601         var.  Add comment explaining why libc still defines it.  This
78602         merges the following patch from glibc:
78603         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
78604
78605 2004-05-20  Andreas Schwab  <schwab@suse.de>
78606
78607         * m4/free.m4: Replace free if it not known to work, not the other
78608         way round.
78609
78610 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
78611
78612         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
78613         present in glibc since revision 1.1 of this file.
78614         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
78615         obstack_alignment_mask, obstack_alloc, obstack_base,
78616         obstack_blank, obstack_blank_fast, obstack_chunk_size,
78617         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
78618         obstack_grow0, obstack_init, obstack_int_grow,
78619         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
78620         obstack_next_free, obstack_object_size, obstack_ptr_grow,
78621         obstack_ptr_grow_fast, obstack_room): Remove declarations of
78622         nonexistent functions.
78623
78624 2004-05-18  Karl Berry  <karl@gnu.org>
78625
78626         * config/srclist.txt: break link for vasnprintf.c.
78627
78628 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
78629
78630         Port obstack to the AS/400, where pointers are 16 bytes wide and
78631         you cannot cast an integer to a valid pointer.  This patch is
78632         currently waiting to be integrated into glibc; see
78633         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
78634
78635         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
78636         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
78637         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
78638         (struct obstack): temp member is now a union of a pointer and
78639         an integer, instead of an integer.  All integer uses changed.
78640         This does not affect the physical layout of struct obstack,
78641         except on hosts (like the AS/400) where the size or alignment of
78642         void * is greater than that of ptrdiff_t.
78643         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
78644         __STDC__)]: Store temporary in pointer member of union, not
78645         integer member.
78646         * lib/obstack.c: Include <stddef.h>, for offsetof.
78647         (struct fooalign): Remove; it doesn't need a name.
78648         (union fooround): Change double to long double, and add void *.
78649         (DEFAULT_ALIGNMENT): Use offsetof to compute.
78650         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
78651         not a macro.  Hence the values are always int; so remove all
78652         casts-to-int in uses.
78653
78654 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
78655
78656         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
78657         we can get this patch merged into glibc.
78658
78659 2004-05-17  Derek R. Price  <derek@ximbiot.com>
78660             Paul Eggert  <eggert@cs.ucla.edu>
78661
78662         * m4/argp: Depend on alloca.
78663
78664 2004-05-17  Derek R. Price  <derek@ximbiot.com>
78665             Paul Eggert  <eggert@cs.ucla.edu>
78666
78667         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
78668         freecoding.
78669
78670 2004-05-17  Bruno Haible  <bruno@clisp.org>
78671
78672         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
78673         precision that consists of a '.' followed by an empty digit string.
78674         Patch by Tor Lillqvist <tml@iki.fi>.
78675
78676 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
78677
78678         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
78679         for backward compatibility with older code.  We need our own
78680         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
78681         it under some other name, and our alloca.h will define it.
78682
78683 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
78684             Derek Price  <derek@ximbiot.com>
78685
78686         * lib/alloca.c: Include <alloca.h>, to get our interface.
78687         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
78688         include <alloca.h> first.  Use C89 prototype for alloca; this
78689         requires including <stddef.h> for size_t.  Use extern "C" if C++.
78690         Use #elif for simplicity, since we can assume C89 now.
78691         Don't try to source the system alloca.h since it will not be found
78692         and to prevent recursively including its replacement.
78693         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
78694         * lib/regex.c: Likewise.
78695
78696 2004-05-16  Derek Price  <derek@ximbiot.com>
78697             Paul Eggert  <eggert@cs.ucla.edu>
78698
78699         getline cleanup.  This changes the getndelim2 API: both order of
78700         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
78701         no delimiter).
78702
78703         * lib/getline.c: Don't include stddef.h or stdio.h, since our
78704         interface does that.
78705         (getline): Always use getdelim, so that we don't have two
78706         copies of this code.
78707         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
78708         if available.
78709         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
78710         (GETNDELIM2_MAXIMUM): New macro.
78711         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
78712         instead of the old practice of delim2==0.  All callers changed.
78713         Return -1 on overflow, instead of returning junk.
78714         Do not set *linesize unless allocation succeeds.
78715         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
78716         that we include sys/types.h.
78717         * lib/getnline.h: Likewise.
78718         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
78719         (getndelim2): Reorder arguments.
78720         * lib/getnline.c (getnline, getndelim):
78721         Don't discard the NMAX argument.
78722         (getnline): Invoke getndelim, to avoid code duplication.
78723         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
78724         of (size_t) -1 by callers of the getnline family.
78725
78726 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78727
78728         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
78729         Check for gettimeofday.
78730         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
78731         Check for settimeofday, stime.
78732
78733 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78734
78735         * lib/nanosleep.c (suspended): Change its type from int to
78736         sig_atomic_t volatile.
78737         (first_call): Make it private to rpl_nanosleep, and have it
78738         be zero initially as that's a bit faster.
78739         (my_usleep): Round up fractional times instead of truncating them,
78740         as this is the usual meaning for 'sleep'.
78741
78742         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
78743         doesn't work.
78744         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
78745         (ENOSYS): Define if not defined.
78746         (settime): Fall back on stime if it exists and settimeofday fails.
78747         But don't bother with fallbacks if a method fails with errno == EPERM.
78748
78749 2004-05-11  Jim Meyering  <jim@meyering.net>
78750
78751         Prior to this change, the save_cwd caller required read access to the
78752         current directory on most systems (ones with the fchdir function).
78753
78754         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
78755         fails, try write-only, and finally, resort to using xgetcwd.
78756
78757 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
78758
78759         * lib/obstack.c, obstack.h: Import changes from libc.
78760
78761 2004-04-28  Bruno Haible  <bruno@clisp.org>
78762
78763         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
78764         also implicitly appends .exe to executables.
78765         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
78766         accepts Windows pathnames.
78767         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
78768         Treat Cygwin like Windows, since it now accepts Windows pathnames.
78769         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
78770         Treat Cygwin like Windows, since it now accepts Windows pathnames.
78771         Reported by Derek Robert Price <derek@ximbiot.com>.
78772
78773 2004-04-21  Karl Berry  <karl@gnu.org>
78774
78775         * config/srclist.txt (localcharset.c): break sync.
78776
78777 2004-04-20  Paul Eggert  <eggert@twinsun.com>
78778
78779         * m4/host-os.m4: Add a copyright notice.
78780
78781 2004-04-20  Jim Meyering  <jim@meyering.net>
78782
78783         Change UTILS_ to gl_ in AC_DEFINE'd names.
78784         Change utils_- and jm_-prefixed variables, too.
78785         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
78786         UTILS_FUNC_MKDIR_TRAILING_SLASH.
78787         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
78788
78789         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
78790         Don't emit trailing blanks.
78791         Also rename jm_-prefixed variables to have gl_ prefix.
78792
78793         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
78794         Also rename jm_-prefixed variables to have gl_ prefix.
78795
78796         * m4/jm-macros.m4: Reflect the renamings.
78797         * m4/prereq.m4: Likewise.
78798
78799 2004-04-20  Jim Meyering  <jim@meyering.net>
78800
78801         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
78802         memory.
78803
78804 2004-04-20  Jim Meyering  <jim@meyering.net>
78805             Bruno Haible  <bruno@clisp.org>
78806
78807         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
78808         memory when realloc fails.
78809
78810 2004-04-19  Jim Meyering  <jim@meyering.net>
78811
78812         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
78813         now that readutmp.c may call `free (0)'.
78814
78815 2004-04-19  Bruno Haible  <bruno@clisp.org>
78816
78817         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
78818         * m4/inttypes_h.m4: Likewise.
78819         * m4/stdint_h.m4: Likewise.
78820         * m4/intmax_t.m4: Likewise.
78821         * m4/uintmax_t.m4: Likewise.
78822
78823 2004-04-18  Jim Meyering  <jim@meyering.net>
78824
78825         * m4/prereq.m4: Don't forbid jm_ prefix.
78826
78827         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
78828         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
78829         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
78830         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
78831         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
78832         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
78833         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
78834         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
78835         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
78836         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
78837         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
78838         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
78839         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
78840         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
78841         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
78842         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
78843         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
78844         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
78845         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
78846
78847 2004-04-18  Jim Meyering  <jim@meyering.net>
78848
78849         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
78850         failure, don't leak memory and do call END_UTMP_ENT.
78851
78852 2004-04-16  Jim Meyering  <jim@meyering.net>
78853
78854         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
78855         coreutils' stat program.
78856         (gl_PREREQ): Don't require jm_PREREQ_STAT.
78857
78858 2004-04-11  Paul Eggert  <eggert@twinsun.com>
78859
78860         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
78861         C89.
78862         (CHAR_BIT): Remove, since we assume C89.
78863         Include <stdint.h> if available, as per current Autoconf CVS advice.
78864
78865 2004-03-31  Jim Meyering  <jim@meyering.net>
78866
78867         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
78868         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
78869         * m4/xalloc.m4: Likewise.
78870
78871 2004-03-30  Paul Eggert  <eggert@twinsun.com>
78872
78873         Merge from coreutils.
78874
78875         * m4/inttostr.m4: New file.
78876         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
78877         Require AM_STDBOOL_H and gl_TIMESPEC instead.
78878         Require gl_CLOCK_TIME.
78879         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
78880
78881 2004-03-30  Paul Eggert  <eggert@twinsun.com>
78882
78883         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
78884         not bool, to be more consistent with Unix conventions.
78885         Suggested by Bruno Haible.
78886
78887         Merge from coreutils.
78888
78889         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
78890         * lib/umaxtostr.c: New files.
78891
78892         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
78893         the usual <time.h> dance.
78894         (get_date): Change signature to support fractional time stamps.
78895         All callers changed.
78896         * lib/getdate.y: Include "getdate.h" first, as we can now
78897         assume C89 and don't need to worry about 'const'.
78898         Similarly, include "unlocked-io.h" near start, not in middle.
78899         Include <limits.h>.
78900         (textint.value): Use long int rather than int.
78901         (textint.digits): Use size_t rather than int.
78902         (BILLION, LOG10_BILLION): New constants.
78903         (parser_control): New member rel_ns.  Members day_ordinal,
78904         time_zone, month, day, hour, minutes, rel_year, rel_month,
78905         rel_day, rel_hour, rel_minutes, rel_seconds
78906         are now long int, not int.  Member seconds is now struct timespec,
78907         not int.  New member timespec_seen.  Members dates_seen, days_seen,
78908         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
78909         not int.
78910         (%union.intval): Now long int, not int.
78911         New member timespec.
78912         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
78913         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
78914         (spec): Now is a timespec or an item list.
78915         (timespec, items): New nonterminals.
78916         (time, rel, relunit, number, get_date):
78917         Add support for fractional seconds.
78918         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
78919         (gmtime, localtime, mktime): Remove decls; not needed with C89.
78920         (to_hour): First arg is now long int, not int.
78921         (to_year): Returns long int, not int.
78922         Don't treat year -70 like 70.
78923         (tm_diff): Returns long int, not int.
78924         (lookup_word): Use bool instead of int when appropriate.
78925         (yylex): Use size_t for count, not int.
78926         Detect overflow when parsing large integer constants.
78927         Add support for fractions.
78928         (get_date): Make pointers 'const' if possible.
78929         Use more-portable code to detect integer overflow.
78930         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
78931         Don't use ctime; it's not reliable if the year has >4 digits.
78932
78933         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
78934         This is for compatibility with BSD.
78935
78936         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
78937         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
78938         From coreutils' system.h.
78939
78940         * lib/userspec.c: Don't include "posixver.h".
78941         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
78942         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
78943         compatible extension.  Simplify code by removing a boolean int
78944         that was always nonzero if a string was nonnull.
78945
78946 2004-03-30  Jim Meyering  <jim@meyering.net>
78947
78948         Merge from coreutils.
78949
78950         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
78951         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
78952         on some systems one must include <grp.h> before it.
78953         Reported by Christian Krackowizer.
78954
78955 2004-03-30  Jim Meyering  <jim@meyering.net>
78956
78957         Merge from coreutils.
78958
78959         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
78960
78961         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
78962         an empty input stream.
78963
78964         * lib/readtokens.c: Include <stdbool.h>.
78965         (readtoken): Use `size_t' rather than int/long.
78966         All callers adjusted.
78967         Use `bool' rather than `int' where appropriate.
78968         Use memset rather than an explicit loop.
78969         Use x2nrealloc rather than xrealloc.
78970         Allow the use of `\0' as a delimiter.
78971         (readtokens): Likewise.
78972         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
78973
78974 2004-03-30  Jim Meyering  <jim@meyering.net>
78975
78976         * m4/realloc.m4: Remove file, since now it does no more than
78977         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
78978         the `configure.ac' section of module/realloc.
78979         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
78980
78981 2004-03-30  Bruno Haible  <bruno@clisp.org>
78982
78983         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
78984         nonnull.
78985
78986 2004-03-29  Paul Eggert  <eggert@twinsun.com>
78987
78988         Merge changes to getloadavg.c from coreutils and Emacs.
78989
78990         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
78991         Define to an expression, not to the empty string.
78992         Include cloexec.h and xalloc.h.
78993         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
78994         Use set_cloexec_flag rather than rolling our own.
78995         * lib/cloexec.c, lib/cloexec.h: New files.
78996
78997 2004-03-29  Paul Eggert  <eggert@twinsun.com>
78998
78999         * m4/cloexec.m4: New file.
79000
79001 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79002
79003         * lib/getopt.h: Sync with libc CVS.
79004
79005 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79006             Bruno Haible  <bruno@clisp.org>
79007
79008         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
79009         mbswidth.
79010
79011 2004-03-18  Paul Eggert  <eggert@twinsun.com>
79012             Bruno Haible  <bruno@clisp.org>
79013
79014         * lib/mbswidth.h: Include <wchar.h> only if
79015         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
79016         <wchar.h>.
79017         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
79018
79019 2004-03-09  Paul Eggert  <eggert@twinsun.com>
79020
79021         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
79022         Sync with libc CVS.
79023         * lib/getopt_int.h: New file, also synced from libc.
79024
79025 2004-03-09  Paul Eggert  <eggert@twinsun.com>
79026
79027         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
79028         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
79029         Bring back getopt.c, getopt.h, getopt1.c.
79030
79031 2004-03-07  Paul Eggert  <eggert@twinsun.com>
79032
79033         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
79034         All uses changed.  Check for sa_sigaction member; this fixes
79035         a bug first reported by Jason Andrade in
79036         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
79037
79038 2004-03-07  Paul Eggert  <eggert@twinsun.com>
79039
79040         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
79041         '#if' expressions.  Unlike the code it replaces, it does not
79042         depend on (defined _SC_PAGESIZE).  However, it does depend on
79043         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
79044         first reported by Jason Andrade in
79045         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
79046
79047 2004-02-25  Simon Josefsson  <jas@extundo.com>
79048
79049         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
79050
79051 2004-02-25  Simon Josefsson  <jas@extundo.com>
79052
79053         * lib/strdup.h: New file.
79054         * lib/strdup.c: Include it.
79055         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
79056         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
79057
79058 2004-02-23  Karl Berry  <karl@gnu.org>
79059
79060         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
79061         (from fencepost.gnu.org:/gd/gnuorg).
79062
79063 2004-02-23  Karl Berry  <karl@gnu.org>
79064
79065         * config/srclistvars.sh (GNUORG) [karl]: redefine.
79066         * config/srclist.txt: add maintain/standards documents.
79067
79068 2004-02-18  Bruno Haible  <bruno@clisp.org>
79069
79070         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
79071         Reported by Derek Robert Price <derek@ximbiot.com>.
79072
79073 2004-02-16  Karl Berry  <karl@gnu.org>
79074
79075         * config/mkinstalldirs, install-sh: update from automake.
79076
79077 2004-02-06  Karl Berry  <karl@gnu.org>
79078
79079         * m4/po.m4: update from gettext 0.14.1.
79080
79081 2004-02-06  Karl Berry  <karl@gnu.org>
79082
79083         * lib/config.charset: update from gettext 0.14.1.
79084
79085 2004-02-05  Paul Eggert  <eggert@twinsun.com>
79086
79087         Add comments and code, prompted by suggestions from Bruno Haible
79088         for sh-quote.
79089         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
79090         describing the enum quoting_style values.
79091         * lib/quotearg.c (quotearg_alloc): New function.
79092         (quotearg_buffer_restyled): Treat lone { and } as special.
79093         Treat = as special.  Work around bug with older shells
79094         that "see" a '\' that is really the 2nd byte of a multibyte char.
79095         Quote empty string with shell_quoting_style.
79096
79097 2004-02-03  Bruno Haible  <bruno@clisp.org>
79098
79099         * m4/pipe.m4: New file, from GNU gettext.
79100
79101 2004-02-03  Bruno Haible  <bruno@clisp.org>
79102
79103         * lib/pipe.h: New file, from GNU gettext.
79104         * lib/pipe.c: New file, from GNU gettext.
79105
79106 2004-01-27  Bruno Haible  <bruno@clisp.org>
79107
79108         * m4/execute.m4: New file, from GNU gettext.
79109
79110 2004-01-27  Bruno Haible  <bruno@clisp.org>
79111
79112         * lib/execute.h: New file, from GNU gettext.
79113         * lib/execute.c: New file, from GNU gettext.
79114         * lib/w32spawn.h: New file, from GNU gettext.
79115
79116 2004-01-24  Paul Eggert  <eggert@twinsun.com>
79117
79118         Merge from diffutils.
79119
79120         * lib/file-type.c (file_type): Add typed memory objects.
79121         * lib/file-type.h (S_TYPEISTMO): New macro.
79122
79123         * lib/c-stack.h (c_stack_action): Remove argv argument.
79124         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
79125         (die): Don't calculate message unless segv_action returns.
79126         (get_stack_location, min_address_from_argv, max_address_from_argv,
79127         volatile stack_base, volatile_stack_size): Remove.
79128         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
79129         that every segmentation violation is a stack overflow.  (Ouch!)
79130         See Debian bug 136249 (still outstanding) for more info about why
79131         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
79132
79133 2004-01-24  Paul Eggert  <eggert@twinsun.com>
79134
79135         Exit-status fix from coreutils.
79136
79137         Use exit_failure consistently in place of EXIT_FAILURE,
79138         so that program exit statuses are consistent on failure.
79139
79140         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
79141         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
79142         * lib/argmatch.h: Comment fix to match the above.
79143         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
79144         Now a macro referring to exit_failure, instead of a separate
79145         variable.  Include "exitfail.h" to get it.
79146         * lib/xstrtol.h: Include "exitfail.h".
79147         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
79148
79149         * lib/long-options.c (parse_long_options): Use prototype
79150         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
79151         for clarity.
79152
79153 2004-01-21  Jim Meyering  <jim@meyering.net>
79154
79155         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
79156         so as not to conflict with a different-sized __mktime_internal
79157         function in GNU libc.
79158         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
79159         Problem building statically-linked `ls' reported by Michael Brunnbauer.
79160
79161 2004-01-20  Karl Berry  <karl@gnu.org>
79162
79163         * config/config.guess: update from config.
79164
79165         * config/srclistvars.sh: GNUWWWLICENSES for karl.
79166
79167 2004-01-20  Bruno Haible  <bruno@clisp.org>
79168
79169         Safer stack allocation.
79170         * lib/setenv.c: Include allocsa.h.
79171         (alloca): Remove fallback definition.
79172         (freea): Remove macro.
79173         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
79174         instead of freea.
79175
79176 2004-01-20  Bruno Haible  <bruno@clisp.org>
79177
79178         * m4/eealloc.m4: New file, from GNU gettext.
79179
79180 2004-01-20  Bruno Haible  <bruno@clisp.org>
79181
79182         * m4/allocsa.m4: New file, from GNU gettext.
79183
79184 2004-01-20  Bruno Haible  <bruno@clisp.org>
79185
79186         * lib/xallocsa.h: New file, from GNU gettext.
79187         * lib/xallocsa.c: New file, from GNU gettext.
79188
79189 2004-01-20  Bruno Haible  <bruno@clisp.org>
79190
79191         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
79192
79193 2004-01-20  Bruno Haible  <bruno@clisp.org>
79194
79195         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
79196         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
79197         specially.
79198
79199 2004-01-20  Bruno Haible  <bruno@clisp.org>
79200
79201         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
79202         patch.
79203
79204 2004-01-20  Bruno Haible  <bruno@clisp.org>
79205
79206         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
79207
79208 2004-01-20  Bruno Haible  <bruno@clisp.org>
79209
79210         * lib/eealloc.h: New file.
79211
79212 2004-01-20  Bruno Haible  <bruno@clisp.org>
79213
79214         * lib/binary-io.h: Avoid warnings on Cygwin.
79215
79216 2004-01-20  Bruno Haible  <bruno@clisp.org>
79217
79218         * lib/allocsa.h: New file, from GNU gettext.
79219         * lib/allocsa.c: New file, from GNU gettext.
79220
79221 2004-01-18  Karl Berry  <karl@gnu.org>
79222
79223         * doc/gpl.texi, doc/lgpl.texi: new files.
79224
79225 2004-01-18  Karl Berry  <karl@gnu.org>
79226
79227         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
79228         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
79229
79230 2004-01-15  Paul Eggert  <eggert@twinsun.com>
79231
79232         Merge from coreutils.
79233
79234         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
79235         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
79236         (gl_DEFAULT_POSIX2_VERSION): Move
79237         the documentation from 'configure' into 'config.hin',
79238         so that 'configure --help' isn't burdened by it and
79239         we don't have to worry about its formatting there.
79240         Reword the documentation so that it's more succinct
79241         and can be run together into a single paragraph.
79242         * m4/same.m4 (gl_SAME): Check for pathconf.
79243
79244 2004-01-15  Paul Eggert  <eggert@twinsun.com>
79245
79246         Merge from coreutils.
79247
79248         * lib/posixver.c: Include posixver.h.
79249
79250         * lib/same.c: Include <stdbool.h>, <limits.h>.
79251         (_POSIX_NAME_MAX): Define if not defined.
79252         (MIN): New macro.
79253         (same_name): If file names are silently truncated, report
79254         that the file names are the same if they are the same after
79255         the silent truncation.
79256
79257         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
79258         conversion function.
79259         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
79260         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
79261         longer needed.
79262
79263 2004-01-15  Jim Meyering  <jim@meyering.net>
79264
79265         Merge from coreutils.
79266
79267         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
79268         if no library is required.
79269         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
79270         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
79271         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
79272         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
79273         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
79274         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
79275         value, $ac_cv_search_crypt, if it's "none required".
79276         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
79277         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
79278         not gl_FUNC_GETLOADAVG.
79279         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
79280         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
79281
79282 2004-01-15  Jim Meyering  <jim@meyering.net>
79283
79284         Merge from coreutils.
79285
79286         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
79287         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
79288         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
79289
79290         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
79291         optional configure-time default.
79292
79293         * lib/version-etc.c (version_etc_copyright): Update copyright date.
79294
79295         * lib/xreadlink.c (xreadlink): Correct outdated comment.
79296
79297 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
79298
79299         Merge from coreutils.
79300
79301         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
79302         value, $ac_cv_search_nanosleep, if it's "none required".
79303
79304 2004-01-14  Paul Eggert  <eggert@twinsun.com>
79305
79306         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
79307         with like-named macro in fnmatch.c.
79308         (EXT): Use an internal constant instead.
79309
79310         Merge fnmatch patches from glibc.
79311         * lib/fnmatch.c (mbsinit): Remove define.
79312         Add libc_hidden_ver (__fnmatch, fnmatch).
79313         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
79314         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
79315
79316 2004-01-14  Karl Berry  <karl@gnu.org>
79317
79318         * config/install-sh: update from automake.
79319
79320 2004-01-13  Karl Berry  <karl@gnu.org>
79321
79322         * config/install-sh: update from automake.
79323
79324 2004-01-09  Karl Berry  <karl@gnu.org>
79325
79326         * config/install-sh: update from automake.
79327
79328 2004-01-05  Karl Berry  <karl@gnu.org>
79329
79330         * config/config.{sub,guess}: update from config.
79331
79332 2003-12-31  Karl Berry  <karl@gnu.org>
79333
79334         * config/depcomp: update from automake.
79335
79336 2003-12-14  Karl Berry  <karl@gnu.org>
79337
79338         * lib/config.charset: update from gettext-runtime.
79339
79340 2003-12-03  Paul Eggert  <eggert@twinsun.com>
79341
79342         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
79343         Bug reported by Alfred M. Szmidt.
79344
79345 2003-12-03  Bruno Haible  <bruno@clisp.org>
79346
79347         * m4/gettext.m4: Upgrade from gettext-0.13.
79348         * m4/po.m4: Upgrade from gettext-0.13.
79349         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
79350         * m4/intmax.m4: New file, from gettext-0.13.
79351         * m4/printf-posix.m4: New file, from gettext-0.13.
79352
79353 2003-11-29  Karl Berry  <karl@gnu.org>
79354
79355         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
79356
79357 2003-11-25  Paul Eggert  <eggert@twinsun.com>
79358             Bruno Haible  <bruno@clisp.org>
79359
79360         * lib/printf-parse.h: Don't include sys/types.h.
79361         (ARG_NONE): New macro.
79362         (char_directive): Change type of *arg_index fields to size_t.
79363         * lib/printf-parse.c: Don't include sys/types.h.
79364         (SSIZE_MAX): Remove macro.
79365         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
79366         Remove unnecessary overflow check.
79367         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
79368         fields.
79369
79370 2003-11-25  Bruno Haible  <bruno@clisp.org>
79371
79372         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
79373
79374 2003-11-25  Bruno Haible  <bruno@clisp.org>
79375
79376         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
79377         gt_TYPE_SSIZE_T.
79378
79379 2003-11-24  Paul Eggert  <eggert@twinsun.com>
79380
79381         * modules/alloca: Remove dependency on xalloc.
79382
79383 2003-11-24  Paul Eggert  <eggert@twinsun.com>
79384
79385         * lib/alloca.c: Remove dependency on xalloc module.
79386         (xalloc_die): Remove.
79387         (memory_full) [!defined emacs]: New macro.
79388         [!defined emacs]: Don't include xalloc.h.
79389         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
79390         address arithmetic overflows.  Change datatypes a bit to avoid
79391         unnecessary casts.
79392
79393 2003-11-22  Jim Meyering  <jim@meyering.net>
79394
79395         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
79396         s/size/size_t/.
79397
79398 2003-11-21  Karl Berry  <karl@gnu.org>
79399
79400         * config/config.{sub,guess}: update from config.
79401
79402 2003-11-18  Karl Berry  <karl@gnu.org>
79403
79404         * config/config.{sub,guess}: update from config.
79405
79406         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
79407
79408 2003-11-17  Paul Eggert  <eggert@twinsun.com>
79409
79410         * README: Mention that S+T cannot overflow if S is the size of
79411         an existing object and T is sufficiently small.
79412
79413 2003-11-17  Jim Meyering  <jim@meyering.net>
79414
79415         On systems without utime and without a utimes function capable of
79416         dealing with a NULL struct utimbuf* argument, this utime replacement
79417         could -- in unusual circumstances -- leak a file descriptor.
79418         * lib/utime.c: Include <unistd.h> and <errno.h>.
79419         (utime_null): Be sure to close `fd' and to preserve errno.
79420         Reported by Geoff Collyer via Arnold Robbins.
79421
79422 2003-11-17  Bruno Haible  <bruno@clisp.org>
79423
79424         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
79425         (Depends-on): Add xsize.
79426
79427 2003-11-17  Bruno Haible  <bruno@clisp.org>
79428
79429         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
79430
79431 2003-11-17  Bruno Haible  <bruno@clisp.org>
79432
79433         * lib/vasnprintf.c (alloca): Remove fallback definition.
79434         (freea): Remove definition.
79435         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
79436         Reported by Paul Eggert.
79437
79438 2003-11-16  Paul Eggert  <eggert@twinsun.com>
79439             Bruno Haible  <bruno@clisp.org>
79440
79441         Protect against address arithmetic overflow.
79442         * lib/printf-args.h: Include stddef.h.
79443         (arguments): Change type of field 'count' to size_t.
79444         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
79445         'unsigned int' where appropriate.
79446         * lib/printf-parse.h: Include sys/types.h.
79447         (char_directive): Change type of *arg_index fields to ssize_t.
79448         (char_directives): Change type of fields 'count', max_*_length to
79449         size_t.
79450         * lib/printf-parse.c: Include sys/types.h and xsize.h.
79451         (SSIZE_MAX): Define fallback value.
79452         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
79453         instead of 'int' where appropriate. Check a_allocated, d_allocated
79454         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
79455         * lib/vasnprintf.c: Include xsize.h.
79456         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
79457         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
79458         overflow. Avoid wraparound when converting a width or precision from
79459         decimal to binary.
79460
79461 2003-11-16  Bruno Haible  <bruno@clisp.org>
79462
79463         Update from GNU gettext.
79464         * lib/printf-parse.c: Generalize to it can be compiled for wide
79465         strings.
79466         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
79467         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
79468         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
79469         SNPRINTF): New macros.
79470         Don't include <alloca.h> if the file is used inside libintl.
79471         (local_wcslen): New function, for Solaris 2.5.1.
79472         (VASNPRINTF): Use it instead of wcslen.
79473
79474 2003-11-16  Bruno Haible  <bruno@clisp.org>
79475
79476         * lib/xsize.h (xmax): New function.
79477         (xsum, xsum3, xsum4): Declare as "pure" functions.
79478
79479 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79480
79481         * modules/xalloc (Files): Undo latest change, since xalloc.h
79482         no longer needs SIZE_MAX or PTRDIFF_MAX.
79483
79484 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79485
79486         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
79487         gl_PTRDIFF_MAX.
79488
79489 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79490
79491         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
79492         "return", to pacify some unknown compiler.  Problem reported
79493         by Joerg Schilling.
79494
79495 2003-11-12  Paul Eggert  <eggert@twinsun.com>
79496
79497         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
79498         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
79499         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
79500         heuristic is just as accurate as far as we know, and it removes a
79501         dependency on size_max.m4 and ptrdiff_max.m4.
79502
79503 2003-11-11  Bruno Haible  <bruno@clisp.org>
79504
79505         * modules/xsize (Files): Add m4/size_max.m4.
79506         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
79507
79508 2003-11-11  Bruno Haible  <bruno@clisp.org>
79509
79510         * m4/size_max.m4: New file.
79511         * m4/ptrdiff_max.m4: New file.
79512         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
79513         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
79514         (gl_XALLOC): Invoke it.
79515
79516 2003-11-11  Bruno Haible  <bruno@clisp.org>
79517
79518         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
79519         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
79520         defined.
79521
79522 2003-11-10  Paul Eggert  <eggert@twinsun.com>
79523
79524         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
79525         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
79526         rejected some allocations of exactly SIZE_MAX - 2 bytes.
79527         From Bruno Haible.
79528         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
79529         not (size_t) -1, since it's defined here.
79530
79531 2003-11-09  Karl Berry  <karl@gnu.org>
79532
79533         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
79534
79535 2003-11-06  Paul Eggert  <eggert@twinsun.com>
79536
79537         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
79538         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
79539         Reject sizes of exactly SIZE_MAX bytes.
79540         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
79541         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
79542
79543 2003-11-05  Bruno Haible  <bruno@clisp.org>
79544
79545         * lib/xsize.h: Include limits.h, to avoid a possible collision with
79546         SIZE_MAX defined in <limits.h> on Solaris.
79547
79548 2003-11-04  Jim Meyering  <jim@meyering.net>
79549
79550         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
79551         variable names, rather than @VAR@.
79552         * modules/poll: Likewise.
79553
79554 2003-11-04  Bruno Haible  <bruno@clisp.org>
79555
79556         * modules/xsize: New file.
79557         * modules/linebreak: Depend on xsize.
79558         * MODULES.html.sh (func_all_modules): Add xsize.
79559
79560 2003-11-04  Bruno Haible  <bruno@clisp.org>
79561
79562         * m4/xsize.m4: New file.
79563
79564 2003-11-04  Bruno Haible  <bruno@clisp.org>
79565
79566         * lib/xsize.h: New file.
79567         * lib/linebreak.c: Include xsize.h.
79568         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
79569         argument for overflow.
79570         Suggested by Paul Eggert.
79571
79572 2003-11-03  Karl Berry  <karl@gnu.org>
79573
79574         * config/config.{guess,sub}: update from config.
79575
79576 2003-11-03  Jim Meyering  <jim@meyering.net>
79577
79578         * modules/userspec (lib_SOURCES): Add userspec.h.
79579         (Include): Add "userspec.h".
79580         Improve description.
79581
79582 2003-11-03  Jim Meyering  <jim@meyering.net>
79583
79584         * lib/userspec.c: Include "userspec.h".
79585         * lib/userspec.h: New file.
79586
79587 2003-11-03  Bruno Haible  <bruno@clisp.org>
79588
79589         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
79590
79591 2003-11-03  Bruno Haible  <bruno@clisp.org>
79592
79593         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
79594         available, to avoid (extremely rare) race condition.
79595         Suggested by Paul Eggert.
79596
79597 2003-11-02  Karl Berry  <karl@gnu.org>
79598
79599         * config/srclist.txt (vasprintf.c): sync broken, sigh.
79600
79601 2003-10-31  Paul Eggert  <eggert@twinsun.com>
79602
79603         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
79604         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
79605         (read_filesystem_list): Set and use me_type_malloced.
79606         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
79607         whatever the type happens to be), for brevity and consistency.
79608         Check for size calculation overflow on Alphas running OSF/1.
79609
79610 2003-10-31  Jim Meyering  <jim@meyering.net>
79611
79612         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
79613
79614         * lib/linebuffer.c: Include <string.h> for declaration of memset.
79615
79616 2003-10-30  Paul Eggert  <eggert@twinsun.com>
79617             Bruno Haible  <bruno@clisp.org>
79618
79619         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
79620         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
79621
79622 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79623
79624         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
79625         netbsd*-gnu*.  Suggested by Robert Millan.
79626
79627 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79628
79629         * modules/group-member: Depend on stdbool.
79630
79631 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79632
79633         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
79634
79635 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79636
79637         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
79638         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
79639         after the 'gnu' in these cases.  This fixes some bugs in the
79640         previous change, and is based on suggestions by Robert Millan.
79641
79642 2003-10-29  Paul Eggert  <eggert@twinsun.com>
79643
79644         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
79645         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
79646         no longer needed.
79647         * lib/quotearg.c (quotearg_n_options): Use it.
79648         * lib/group-member.c: Include <stdbool.h>.
79649         (free_group_info): Arg is now const *; don't free arg.
79650         (get_group_info): Now returns bool and accepts struct group_info *,
79651         rather than returning a malloc'ed struct group_info *.
79652         All uses changed.  Check for overflow in internal size calculation.
79653
79654         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
79655         rather than xmalloc/xrealloc.
79656         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
79657         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
79658         conformance bug: the old code used a pointer after freeing the
79659         storage that it addressed.
79660         * lib/hash.c (hash_initialize): Simplify the code by using
79661         xalloc_oversized rather than doing it by hand.
79662         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
79663         the buffer preserved.  Use free and xmalloc instead.
79664         * lib/quotearg.c (quotearg_n_options): Likewise.
79665         Use a simpler test for size overflow.  Don't use xalloc_oversized
79666         because unsigned int might be wider than size_t (!); this suggests
79667         that we should switch from unsigned int to size_t for slot numbers.
79668
79669 2003-10-28  Paul Eggert  <eggert@twinsun.com>
79670
79671         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
79672         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
79673         NetBSD kernels.  Requested by Richard Stallman.
79674
79675 2003-10-27  Paul Eggert  <eggert@twinsun.com>
79676
79677         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
79678         to allocate the returned structure.  Do not allocate a subarray,
79679         as x2nrealloc will do that.
79680         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
79681         instead of xnrealloc.
79682         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
79683
79684 2003-10-27  Bruno Haible  <bruno@clisp.org>
79685
79686         * lib/stdbool_.h: Better support for BeOS.
79687
79688 2003-10-26  Paul Eggert  <eggert@twinsun.com>
79689
79690         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
79691         now uses inline.
79692
79693 2003-10-26  Paul Eggert  <eggert@twinsun.com>
79694
79695         * lib/xalloc.h (xalloc_oversized): New static inline function, for
79696         callers that want to do their own size-overflow checking.  Include
79697         <stdbool.h>, since xalloc_oversized returns bool.
79698         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
79699         to use xalloc_oversized.
79700
79701         Add two functions x2realloc, x2nrealloc, for programs that grow
79702         arrays dynamically by doubling their sizes.
79703         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
79704         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
79705         New functions.
79706
79707         Port to C99 semantics for 'inline' of external functions.
79708         Bug reported by Bruno Haible.
79709         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
79710         with the old contents of xnmalloc.
79711         (xnmalloc, xmalloc): Use it.
79712         (xnrealloc_inline): New static inline function,
79713         with the old contents of xnrealloc.
79714         (xnrealloc, xrealloc): Use it.
79715
79716         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
79717         that.
79718
79719 2003-10-26  Karl Berry  <karl@gnu.org>
79720
79721         * config/srclist.txt (COPYING.DOC): no longer available from
79722         /gd/gnuorg; don't know where the ultimate source is.
79723
79724 2003-10-25  Paul Eggert  <eggert@twinsun.com>
79725
79726         Fix several address-calculation bugs in the hash modules,
79727         plus some minor code cleanup.
79728
79729         * lib/hash.h: Include <stdbool.h>, for bool.
79730         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
79731         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
79732         hash_get_n_entries, hash_get_max_bucket_length,
79733         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
79734         hash_rehash): Use size_t rather than unsigned.
79735         * lib/hash.c (struct hash_table, hash_get_n_buckets,
79736         hash_get_n_buckets_used, hash_get_n_entries,
79737         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
79738         hash_get_entries, hash_do_for_each, hash_string, is_prime,
79739         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
79740         Likewise.
79741         (SIZE_MAX): Define if not defined.
79742         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
79743         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
79744         hash_print):
79745         Use const * when possible.
79746         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
79747         (check_tuning): Fix bug: if tuning parameters were very close to
79748         0 or 1, rounding errors could have caused subscript violations.
79749         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
79750         (hash_initialize): Add 'fail:' label
79751         to free table and return NULL, and use it to simplify code.
79752         Use calloc rather than clearing the storage ourself.
79753         (hash_initialize, hash_rehash): Check for arithmetic overflow in
79754         buffer size calculations.
79755         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
79756         Include <stddef.h>, for size_t.
79757         * lib/hash-pjw.c (hash_pjw): Likewise.
79758         Switch to method described by Bruno Haible.
79759         Include <limits.h>, for CHAR_BIT.
79760         (SIZE_BITS): New macro.
79761
79762 2003-10-23  Paul Eggert  <eggert@twinsun.com>
79763
79764         * m4/getline.m4 (AM_FUNC_GETLINE):
79765         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
79766         hosts.  Problem reported by Derek Robert Price in
79767         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
79768         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
79769         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
79770
79771 2003-10-21  Paul Eggert  <eggert@twinsun.com>
79772
79773         * lib/getndelim2.c (getndelim2): When size calculation overflows,
79774         ceiling the allocation at NMAX bytes rather than silently
79775         discarding input bytes before NMAX is reached.  This makes
79776         a difference only if NMAX exceeds SIZE_MAX / 2.
79777
79778         * lib/obstack.c: Merge from glibc.
79779         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
79780         Add libc_hidden_def (_obstack_newchunk).
79781         (_obstack_free) [! defined _LIBC]: Remove.
79782         [defined _LIBC]: Make a strong alias from obstack_free, rather than
79783         a clone of the function body.
79784         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
79785         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
79786
79787         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
79788         glibc.
79789         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
79790         arg to memcpy.
79791
79792         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
79793         (obstack_ptr_grow_fast, obstack_int_grow_fast):
79794         Don't use lvalue casts, as GCC plans to remove support for them
79795         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
79796         was also present in the non-GCC version, indicating that this
79797         code had always been buggy and had never been widely used.
79798         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
79799         Use the fast variant of each macro, rather than copying the
79800         definiens of the fast variant; that way, we'll be more likely to
79801         catch future bugs in the fast variants.
79802
79803 2003-10-20  Bruno Haible  <bruno@clisp.org>
79804
79805         * modules/wait-process: New file.
79806         * MODULES.html.sh (func_all_modules): Add wait-process.
79807
79808 2003-10-20  Bruno Haible  <bruno@clisp.org>
79809
79810         * m4/wait-process.m4: New file.
79811
79812 2003-10-20  Bruno Haible  <bruno@clisp.org>
79813
79814         * lib/wait-process.h: New file, from GNU gettext.
79815         * lib/wait-process.c: New file, from GNU gettext.
79816
79817 2003-10-19  Jim Meyering  <jim@meyering.net>
79818
79819         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
79820         HPUX 10.20.
79821
79822 2003-10-18  Karl Berry  <karl@gnu.org>
79823
79824         * config/config.guess: update from config.
79825
79826 2003-10-16  Paul Eggert  <eggert@twinsun.com>
79827
79828         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
79829         (getgroups): First arg is int, not size_t.
79830         Don't let 'free' mangle errno.
79831
79832 2003-10-16  Paul Eggert  <eggert@twinsun.com>
79833
79834         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
79835
79836 2003-10-16  Karl Berry  <karl@gnu.org>
79837
79838         * config/config.{guess,sub}: update from config.
79839
79840 2003-10-16  Jim Meyering  <jim@meyering.net>
79841
79842         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
79843         memcpy.
79844
79845 2003-10-15  Paul Eggert  <eggert@twinsun.com>
79846
79847         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
79848         (SIZE_MAX): Remove.
79849         (new_exclude, add_exclude_file): Initial size no longer needs to
79850         be a power of 2.
79851         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
79852         our own address arithmetic overflow checking.
79853
79854         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
79855         (fnmatch): Do not alloca more than 2000 wide characters;
79856         instead, use malloc for large buffers.
79857         Check for address arithmetic overflow, and return -1
79858         with errno set to ENOMEM in that case.
79859         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
79860         (NEW_PATTERN): Do not alloca more than 8000 bytes;
79861         instead, return -1.  Check for address arithmetic overflow.
79862
79863 2003-10-14  Paul Eggert  <eggert@twinsun.com>
79864
79865         Handle invalid suffixes and overflow independently, so that
79866         callers can treat them independently as needed.  Fix some bugs in
79867         suffix handling, e.g., "100k@" was not diagnosed as an invalid
79868         suffix for a human-readable blocksize.  The major caller-visible
79869         change is the addition of a new
79870         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
79871         that both overflow and suffix chars were found.
79872
79873         * lib/human.c (humblock): Don't check separately for invalid suffix
79874         char; that is xstrtoumax's job (now that its bug is fixed).
79875         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
79876         INTMAX_MAX]: New macros.
79877         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
79878         TYPE_MAXIMUM): New macros.
79879         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
79880         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
79881         if overflow occurs, as it's what __strtol does and it's more useful
79882         in practice.
79883         (__xstrtol): If __strtol reports some error other than ERANGE,
79884         reflect it to the caller as LONGINT_INVALID.  If it reports
79885         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
79886         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
79887         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
79888         value.
79889         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
79890         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
79891         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
79892         [defined UINTMAX_MAX]: New macros.
79893
79894 2003-10-14  Bruno Haible  <bruno@clisp.org>
79895
79896         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
79897
79898 2003-10-14  Bruno Haible  <bruno@clisp.org>
79899
79900         * m4/sig_atomic_t: New file, from GNU gettext.
79901         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
79902
79903 2003-10-14  Bruno Haible  <bruno@clisp.org>
79904
79905         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
79906         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
79907         Also use volatile where needed.
79908
79909 2003-10-12  Paul Eggert  <eggert@twinsun.com>
79910
79911         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
79912         Change maintainer from Bruno Haible to 'all'.
79913
79914 2003-10-12  Paul Eggert  <eggert@twinsun.com>
79915
79916         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
79917
79918 2003-10-12  Paul Eggert  <eggert@twinsun.com>
79919
79920         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
79921         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
79922         and define in terms of the other primitives.
79923         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
79924         (SIZE_MAX): Define if not already defined.
79925         (array_size_overflow): New function.
79926         (xalloc_die): Abort instead of exiting if 'error' returns.
79927         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
79928         (xmalloc, xrealloc): Use them.
79929         (xcalloc): Check for address arithmetic overflow.
79930         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
79931         a bit faster than strcpy.
79932
79933 2003-10-10  Simon Josefsson  <jas@extundo.com>
79934
79935         * modules/argp (Depends-on): Add restrict and strcase.
79936
79937 2003-10-10  Simon Josefsson  <jas@extundo.com>
79938
79939         * m4/argp.m4: Add AC_C_INLINE.
79940
79941 2003-10-08  Paul Eggert  <eggert@twinsun.com>
79942
79943         Merge getpass from libc, plus a few fixes.
79944
79945         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
79946         Include <stdbool.h>.
79947         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
79948         __fsetlocking to empty.
79949         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
79950         do include <bits/libc-lock.h>.
79951         Do not include <fcntl.h>; not needed.
79952         [_LIBC]: Include <wchar.h>.
79953         (NOTCANCEL_MODE): New macro.
79954         (flockfile, funlockfile) [_LIBC]: New macros.
79955         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
79956         [!_LIBC]: New macros.
79957         (call_fclose): New function.
79958         (getpass): Use it.  Save tty stream separately; this simplifies the
79959         code and makes it more reliable if stdin happens to equal stdout.
79960         Invoke __fsetlocking on tty.
79961         Handle thread cancellation if needed.
79962         Namespace cleanup (use __tcgetattr, __getline).
79963         Use bool for Booleans.
79964         [USE_IN_LIBIO]: Handle wide streams.
79965         [!_LIBC]: Unconditionally do the fseek, since we don't know what
79966         stream might go where.
79967
79968         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
79969         doesn't have to include <stdio.h> before us.
79970         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
79971         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
79972         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
79973         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
79974         if not declared, so that we can use getpass.c code from libc without
79975         rewriting it.
79976         (flockfile, ftrylockfile, funlockfile): New macros.
79977
79978 2003-10-08  Paul Eggert  <eggert@twinsun.com>
79979
79980         * modules/getpass: Depend on stdbool.
79981
79982 2003-10-08  Paul Eggert  <eggert@twinsun.com>
79983
79984         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
79985
79986 2003-10-07  Karl Berry  <karl@gnu.org>
79987
79988         * config/config.{guess,sub}: update from config.
79989
79990 2003-10-06  Jim Meyering  <jim@meyering.net>
79991             Bruno Haible  <bruno@clisp.org>
79992
79993         This lets translators provide better translations for the
79994         "Written by ..." part of --version output.
79995         * lib/version-etc.h: Include stdarg.h.
79996         (version_etc_copyright): Declare as readonly.
79997         (version_etc): Make this function variadic with a NULL-terminated list
79998         of author name strings.
79999         (version_etc_va): New declaration.
80000         * lib/version-etc.c: Include stdarg.h, stdlib.h.
80001         (version_etc_copyright): Declare as readonly.
80002         (version_etc_va): New function. Provide a different translatable string
80003         for each possible number of authors < 10. Abbreviate when there are 10
80004         authors or more.
80005         (version_etc): Make this function variadic. Call version_etc_va.
80006         Suggestion from Gary V. Vaughan.
80007
80008         * lib/long-options.h (parse_long_options): Change prototype: the
80009         authors string is moved to the end and becomes variadic.
80010         * lib/long-options.c: Include stdarg.h.
80011         (parse_long_options): Make this function variadic, too.
80012         Call version_etc_va, not version_etc.
80013
80014 2003-10-06  Bruno Haible  <bruno@clisp.org>
80015
80016         * modules/version-etc-2: Remove file.
80017         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
80018
80019 2003-10-06  Bruno Haible  <bruno@clisp.org>
80020
80021         * modules/fatal-signal: New file.
80022         * MODULES.html.sh (func_all_modules): Add fatal-signal.
80023
80024 2003-10-06  Bruno Haible  <bruno@clisp.org>
80025
80026         * m4/fatal-signal.m4: New file.
80027         * m4/signalblocking.m4: New file, from GNU gettext.
80028
80029 2003-10-06  Bruno Haible  <bruno@clisp.org>
80030
80031         * lib/version-etc-2.h: Remove file.
80032         * lib/version-etc-2.c: Remove file.
80033
80034 2003-10-06  Bruno Haible  <bruno@clisp.org>
80035
80036         * lib/fatal-signal.h: New file, from GNU gettext.
80037         * lib/fatal-signal.c: New file, from GNU gettext.
80038
80039 2003-10-05  Paul Eggert  <eggert@twinsun.com>
80040
80041         * README: Rework advice for preventing empty .o files.
80042         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
80043         not <sys/types.h>.
80044
80045 2003-10-04  Karl Berry  <karl@gnu.org>
80046
80047         * lib/argp*: update from libc.
80048
80049 2003-10-04  Karl Berry  <karl@gnu.org>
80050
80051         * config/config.{guess,sub}: update from config.
80052
80053 2003-10-02  Bruno Haible  <bruno@clisp.org>
80054
80055         * modules/lchown (Include): Add lchown.h.
80056         * modules/time_r (Include): Use "..." syntax.
80057         * modules/xgetdomainname (Include): Add xgetdomainname.h.
80058
80059 2003-10-01  Simon Josefsson  <jas@extundo.com>
80060
80061         * MODULES.html.sh (func_all_modules): Move gethostname from section
80062         'based on' to section 'lacking' POSIX:2001.
80063
80064 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
80065
80066         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
80067         to output mode on the same stream.
80068
80069 2003-09-29  Paul Eggert  <eggert@twinsun.com>
80070
80071         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
80072         Fix arg typo in previous patch.
80073
80074 2003-09-28  Jim Meyering  <jim@meyering.net>
80075
80076         * lib/error.c: Correct cpp indentation.
80077
80078 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80079
80080         * modules/free: New file.
80081
80082 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80083
80084         * m4/free.m4: New file.
80085
80086 2003-09-27  Paul Eggert  <eggert@twinsun.com>
80087
80088         * lib/minmax.h (MIN, MAX)
80089         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
80090         Omit the special code that used __typeof__, since we worry that
80091         it could be more trouble than it's worth.  See:
80092         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
80093         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
80094
80095         * lib/free.c: New file.
80096
80097 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
80098
80099         Trivial fixes to Makefile.am parts of module listings.
80100         * modules/strstr: Append strstr.h to lib_SOURCES.
80101         * modules/strcase: Likewise, for strcase.h.
80102
80103 2003-09-27  Karl Berry  <karl@gnu.org>
80104
80105         * config/mkinstalldirs: update from automake.
80106
80107 2003-09-26  Paul Eggert  <eggert@twinsun.com>
80108
80109         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
80110         (error_tail): Do not loop, reallocating temporary buffer, since
80111         the output cannot contain more wide characters than the input
80112         contains bytes, the size must be big enough already.  This avoids
80113         one potential size overflow calculation.  Check for size overflow
80114         when calculating temporary buffer size.  Free temporary buffer
80115         when done, if it was allocated with malloc; this plugs a memory
80116         leak.  Remove casts from void * to pointers, that are no longer
80117         needed now that we're assuming C89 or better.
80118
80119         Merge error changes from glibc.
80120
80121         * lib/error.c, error.h: Update copyright notice header to match glibc.
80122         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
80123         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
80124         Disable cancellation while printing error.
80125         * lib/error.h: Prepend __ to parameter names.
80126
80127 2003-09-26  Jim Meyering  <jim@meyering.net>
80128
80129         * lib/error.c (error_tail): Move some declarations
80130         into inner scope where the local variables are used.
80131
80132 2003-09-26  Bruno Haible  <bruno@clisp.org>
80133
80134         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
80135         stpncpy().
80136         Don't define stpncpy through config.h; it's now done through stpncpy.h.
80137
80138 2003-09-26  Bruno Haible  <bruno@clisp.org>
80139
80140         * lib/stpncpy.h (gnu_stpncpy): New declaration.
80141         (stpncpy): Define as alias for gnu_stpncpy.
80142         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
80143
80144 2003-09-25  Simon Josefsson  <jas@extundo.com>
80145
80146         * lib/xgetdomainname.h: New file.
80147         * lib/xgetdomainname.c: New file.
80148
80149 2003-09-25  Simon Josefsson  <jas@extundo.com>
80150             Bruno Haible  <bruno@clisp.org>
80151
80152         * modules/getdomainname: New file.
80153         * modules/xgetdomainname: New file.
80154         * MODULES.html.sh (func_all_modules): Add getdomainname,
80155         xgetdomainname.
80156
80157 2003-09-25  Simon Josefsson  <jas@extundo.com>
80158             Bruno Haible  <bruno@clisp.org>
80159
80160         * m4/getdomainname.m4: New file.
80161
80162 2003-09-25  Simon Josefsson  <jas@extundo.com>
80163             Bruno Haible  <bruno@clisp.org>
80164
80165         * lib/getdomainname.h: New file.
80166         * lib/getdomainname.c: New file.
80167
80168 2003-09-25  Karl Berry  <karl@gnu.org>
80169
80170         * lib/argp-fmtstream.c, argp-help.c: update from libc.
80171
80172 2003-09-25  Karl Berry  <karl@gnu.org>
80173
80174         * config/install-sh: update from automake.
80175
80176 2003-09-25  Bruno Haible  <bruno@clisp.org>
80177
80178         * modules/version-etc-2: New file, from modules/version-etc with
80179         modifications.
80180         * MODULES.html.sh (func_all_modules): Add version-etc-2.
80181
80182 2003-09-25  Bruno Haible  <bruno@clisp.org>
80183
80184         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
80185         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
80186
80187 2003-09-24  Simon Josefsson  <jas@extundo.com>
80188
80189         * modules/xgethostname: Add xgethostname.h.
80190
80191 2003-09-24  Paul Eggert  <eggert@twinsun.com>
80192
80193         * lib/linebuffer.c (freebuffer): Don't free the argument, just
80194         the buffer associated with the argument.  Bug reported by
80195         Simon Josefsson.
80196
80197 2003-09-24  Paul Eggert  <eggert@twinsun.com>
80198
80199         * README: Document assumptions that 'int' is at least 32 bits
80200         wide, that integer arithmetic is 2's complement without overflow,
80201         that there are no holes in integer values, that adding sizes of
80202         two nonoverlapping objects can't overflow, and that all-bits-zero
80203         yields scalar zero.  Fix spelling and capitalization typos.
80204
80205 2003-09-19  Karl Berry  <karl@gnu.org>
80206
80207         * lib/argp.h: update from libc.
80208
80209 2003-09-17  Paul Eggert  <eggert@twinsun.com>
80210
80211         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
80212         to avoid spurious warnings like "AC_RUN_IFELSE was called before
80213         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
80214
80215 2003-09-17  Paul Eggert  <eggert@twinsun.com>
80216
80217         * gnulib-tool: Use "test -h", not "test -L", for portability
80218         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
80219         (tags_regexp): Remove, since \| doesn't conform to POSIX.
80220         (sed_extract_prog): Issue s commands one-by-one, rather than
80221         using \| in one s command.
80222
80223 2003-09-16  Paul Eggert  <eggert@twinsun.com>
80224
80225         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
80226         input error, instead of returning NULL the next time we are called
80227         (and therefore losing track of errno).
80228
80229 2003-09-16  Bruno Haible  <bruno@clisp.org>
80230
80231         * gnulib-tool (func_create_testdir): Warn about duplicated
80232         dependencies.
80233
80234 2003-09-15  Paul Eggert  <eggert@twinsun.com>
80235
80236         * modules/argmatch, modules/fatal, modules/obstack,
80237         modules/xalloc, modules/xgethostname: Sort dependencies by
80238         importance, not alphabetically.
80239
80240 2003-09-15  Paul Eggert  <eggert@twinsun.com>
80241
80242         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
80243         fails, so that the caller gets the proper errno.
80244
80245         * lib/readutmp.c (read_utmp): Likewise.
80246         Check for fstat error.  Close stream and free storage
80247         when failing.
80248
80249 2003-09-14  Karl Berry  <karl@gnu.org>
80250
80251         * config/srclist.txt (strdup.c): disable for c89 changes.
80252
80253 2003-09-14  Jim Meyering  <jim@meyering.net>
80254
80255         * lib/getloadavg.c: Correct cpp indentation.
80256         * lib/strdup.c: Likewise.
80257         * lib/vasnprintf.c: Likewise.
80258
80259 2003-09-14  Bruno Haible  <bruno@clisp.org>
80260
80261         * modules/fwriteerror: New file.
80262         * MODULES.html.sh (func_all_modules): Add fwriteerror.
80263
80264 2003-09-14  Bruno Haible  <bruno@clisp.org>
80265
80266         * lib/fwriteerror.h: New file.
80267         * lib/fwriteerror.c: New file.
80268
80269 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80270
80271         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
80272         modules/xgethostname, modules/xalloc: Depend on exit.
80273
80274 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80275
80276         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
80277
80278         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
80279         and AC_MINIX, too, so that their extensions are available.
80280
80281         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
80282         This macro has been superseded by gl_BACKUPFILE.
80283
80284         More patches to assume C89 or better.
80285
80286         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
80287
80288         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
80289         unconditionally.
80290         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
80291         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
80292         Include <string.h>, <stdlib.h> unconditionally.
80293         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
80294         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
80295         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
80296         headers or for string.h.
80297         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
80298         or strtoul.
80299
80300         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
80301         headers.
80302         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
80303         * m4/userspec.m4 (gl_USERSPEC): Likewise.
80304         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
80305         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
80306         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80307         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
80308         memcpy, memset.
80309         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
80310         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
80311         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
80312         strtol.
80313         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
80314         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
80315         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
80316         strtoul.
80317
80318 2003-09-12  Paul Eggert  <eggert@twinsun.com>
80319
80320         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
80321         * lib/obstack.c [!defined _LIBC]: Likewise.
80322         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
80323         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
80324         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
80325
80326         More changes to assume C89 or better.
80327
80328         * lib/error.c (error_tail): Assume vprintf.
80329
80330         * lib/argmatch.c (getenv): Remove decl.
80331         * lib/progreloc.c (get_full_program_name): Define via prototype.
80332         * lib/setenv.c (clearenv): Likewise.
80333         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
80334         needed.
80335         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
80336         (malloc, memcpy): Remove decls.
80337         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
80338         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
80339         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
80340         (memcpy): Remove macro.
80341         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
80342         (__P): Remove.  All uses removed.
80343         (PTR): Remove.  All uses changed to void *.
80344         (CHAR_BIT, NULL): Remove.
80345         (spaces, zeros, memset_space, memset_zero)
80346         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
80347         Remove.
80348         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
80349         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
80350         Define with prototype.
80351         Remove now-unnecessary prototype decl.
80352         (extra_args_spec): Assume ANSI C.  All uses changed.
80353         (extra_args_spec_iso): Remove.
80354         (my_strftime, emacs_strftimeu): Define via prototype.
80355         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
80356         unconditionally.
80357         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
80358         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
80359         (strtoul, strtol): Remove decls.
80360         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
80361         LONG_MAX): Remove.
80362         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
80363         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
80364         (LOCALE_PARAM_PROTO): New macro.
80365         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
80366         (INTERNAL (strtol), strtol): Define with a prototype.
80367         (PARAMS): Remove.  All uses removed.
80368         * lib/tempname.c: Include <string.h> unconditionally.
80369         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
80370         * lib/xgethostname.c (main): Define with a prototype.
80371         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
80372         Include <stdlib.h> unconditionally.
80373         (calloc, malloc, realloc, free): Remove decls.
80374         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
80375         Include <stdlib.h> unconditionally.  Sort include file names.
80376         (strtod): Remove.
80377         (xstrtod): Define with a prototype.
80378         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
80379         (strtol, strtoul): Remove decls.
80380
80381 2003-09-11  Paul Eggert  <eggert@twinsun.com>
80382
80383         More patches to assume C89 or better.
80384         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
80385         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
80386         string.h, memchr, STDC_HEADERS.
80387
80388 2003-09-11  Paul Eggert  <eggert@twinsun.com>
80389
80390         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
80391         Include <stdlib.h>, <string.h> unconditionally.
80392         Remove now-unnecessary cast to char *.
80393         * lib/strnlen.c: Include <string.h> unconditionally.
80394         * lib/yesno.c (yesno): Define with a prototype.
80395
80396 2003-09-11  Bruno Haible  <bruno@clisp.org>
80397
80398         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
80399
80400 2003-09-10  Jim Meyering  <jim@meyering.net>
80401
80402         * lib/error.c: Correct indentation of cpp directives.
80403
80404 2003-09-10  Bruno Haible  <bruno@clisp.org>
80405
80406         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
80407         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
80408         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
80409         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
80410         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
80411         <stdlib.h> and <string.h> checks.
80412         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
80413         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
80414
80415 2003-09-10  Bruno Haible  <bruno@clisp.org>
80416
80417         * lib/strcspn.c: Include <string.h> unconditionally.
80418         * lib/strpbrk.c: Include <string.h> unconditionally.
80419         * lib/strstr.c: Include <string.h> unconditionally.
80420         * lib/unicodeio.c: Include <string.h> unconditionally.
80421         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
80422         * lib/unsetenv.c: Likewise.
80423         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
80424         * lib/yesno.c: Include <stdlib.h> unconditionally.
80425         (rpmatch): Add prototype.
80426
80427 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80428
80429         More patches to assume C89 or better.
80430         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
80431         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
80432         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
80433         or for string.h.
80434         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
80435         stdlib.h.
80436         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
80437         C headers.
80438         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
80439         string.h.
80440         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
80441         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
80442         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
80443         or for string.h.
80444         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
80445         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
80446         C headers.
80447         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
80448         memcpy.
80449         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
80450         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
80451         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
80452         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
80453         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
80454         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
80455         string.h, free.
80456         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
80457         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
80458         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
80459         C headers, or for string.h.
80460         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
80461         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
80462         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
80463         headers, memory.h, stdlib.h, string.h, strings.h.
80464         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
80465         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
80466         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
80467         strchr.
80468         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
80469         headers, memory.h, string.h.
80470         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
80471         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
80472         free.
80473         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
80474         headers.
80475         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
80476         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
80477         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
80478         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
80479         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
80480
80481 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80482
80483         More K&R removal.
80484
80485         * lib/acosl.c (main): Use a prototype.
80486         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
80487         tanl.c: Likewise.
80488
80489         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
80490
80491         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
80492         (getopt, etopt_long, getopt_long_only, _getopt_internal)
80493         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
80494         with a prototype.
80495         * lib/getopt.c (const): Remove macro.
80496         Include <string.h> unconditionally.
80497         (my_index): Remove; all uses changed to strchr.
80498         (strlen): Remove decl.
80499         (exchange): Remove forward decl; no longer needed.
80500         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
80501         Define with prototype.
80502         * lib/getopt1.c (const): Remove macro.
80503         (getopt_long, getopt_long_only, main): Define with prototype.
80504
80505         * lib/getugroups.c: Include <string.h> unconditionally.
80506
80507         * lib/getusershell.c: Include <stdlib.h> unconditionally.
80508         (getusershell, setusershell, endusershell, readname, main):
80509         Define with prototypes.
80510
80511         * lib/group-member.c: Include group-member.h first.
80512         Include <stdlib.h> unconditionally.
80513
80514         * lib/hard-locale.c: Include hard-locale.h first.
80515         Include <stdlib.h>, <string.h> unconditionally.
80516
80517         * lib/hash.c (free, malloc): Remove decls.
80518         Include <stdlib.h> unconditionally.
80519
80520         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
80521         (getenv): Do not declare.
80522
80523         * lib/idcache.c: Include <string.h> unconditionally.
80524
80525         * lib/long-options.c: Include long-options.h first, to test interface.
80526         Include <stdlib.h> unconditionally.
80527
80528         * lib/makepath.c: Include makepath.h first, to test interface.
80529         Include <stdlib.h> and <string.h> unconditionally.
80530
80531         * lib/linebuffer.c: Include <stdlib.h>.
80532         (free): Remove decl.
80533
80534         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
80535         stddef.h. rpl_malloc returns void *, not char *.
80536         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
80537         prototype.
80538
80539         * lib/md5.h: Include <limits.h> unconditionally.
80540         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
80541         (__P): Remove; all uses removed.
80542         * lib/md5.c: Include "md5.h" first.
80543         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
80544         md5_buffer, md5_process_bytes, md5_process_block):
80545         Define with prototypes.
80546         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
80547         * lib/sha.c: Include "sha.h" first.
80548         Include <stdlib.h>, <string.h> unconditionally.
80549
80550         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
80551         * lib/memcmp.c (__ptr_t): Likewise.
80552         * lib/memrchr.c (__ptr_t): Likewise.
80553         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
80554         Include <string.h> unconditionally.
80555         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
80556         * lib/memchr.c: Include <stdlib.h> unconditionally.
80557         * lib/memchr.c (LONG_MAX): Remove.
80558         * lib/memrchr.c (LONG_MAX): Likewise.
80559         * lib/memchr.c (__memchr): Define via a prototype.
80560         * lib/memrchr.c (__memrchr): Likewise.
80561         * lib/memcmp.c (__P): Remove, and remove all uses.
80562         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
80563         Remove forward decls; no longer needed.
80564         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
80565         Use types required by C89 in prototype.
80566
80567         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
80568         * lib/savedir.c: Likewise.
80569         * lib/mkdir.c (free): Remove decl.
80570         * lib/rmdir.c (rmdir): Define with a prototype.
80571         * lib/savedir.c: Include savedir.h first, to test interface.
80572
80573         * lib/mktime.c (STDC_HEADERS): Remove.
80574         Include <stdlib.h>, <string.h> unconditionally.
80575
80576         * lib/modechange.c: Include <stdlib.h> unconditionally.
80577         (malloc): Remove decl.
80578
80579         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
80580         (free): Remove decl.
80581
80582         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
80583         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
80584         (This type really should be intptr_t, but that's a C99ism.)
80585         (_obstack_memcpy): Remove: all uses changed to memcpy.
80586         Include <string.h> unconditionally.
80587         (struct obstack): Assume __STDC__ for types of members
80588         chunkfun, freefun, extra_arg.
80589         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
80590         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
80591         obstack_begin, obstack_specify_allocation,
80592         obstack_specify_allocation_with_arg, obstack_chunkfun,
80593         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
80594         Remove unprototyped decls and the macros that use them.
80595         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
80596         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
80597         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
80598         (defined __STDC__ && __STDC__)]:
80599         Remove nonprototyped code.
80600         Include <stdlib.h> unconditionally.
80601         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
80602         _obstack_allocated_p, _obstack_free, obstack_free,
80603         _obstack_memory_used, print_and_abort):
80604         Define using prototypes.
80605         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
80606         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
80607         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
80608         obstack_next_free, obstack_object_size, obstack_room) [0]:
80609         Remove unused, unprototyped code.
80610
80611         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
80612
80613         * lib/physmem.c (physmem_total, physmem_available, main): Define
80614         with prototypes.
80615
80616         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
80617         (main): Define with a prototype.
80618
80619         * lib/posixver.c (getenv): Remove decl.
80620
80621         * lib/putenv.c (malloc): Returns void *, not char *.
80622         Include <string.h> unconditionally.
80623         (strchr, memcpy, NULL): Do not define.
80624
80625         * lib/readtokens.c: Include readtokens.h first, to test interface.
80626         Include <stdlib.h>, <string.h> unconditionally.
80627         (init_tokenbuffer): Define with a prototype.
80628
80629         * lib/regex.c (PARAMS): Remove.  All uses removed.
80630         All uses of _RE_ARGS removed, too.
80631         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
80632         unconditionally.
80633         (bzero): Assume memset exists.
80634         (memcmp, memcpy, NULL): Remove.
80635         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
80636         char, or assignments to local vars of type signed char.
80637         (init_syntax_once, PREFIX(extract_number_and_incr),
80638         PREFIX(print_partial_compiled_pattern),
80639         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
80640         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
80641         PREFIX(regex_grow_registers), PREFIX(regex_compile),
80642         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
80643         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
80644         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
80645         wcs_compile_range, byte_compile_range, truncate_wchar,
80646         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
80647         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
80648         count_mbs_length, wcs_re_match_2_internal,
80649         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
80650         PREFIX(alt_match_null_string_p),
80651         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
80652         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
80653         regfree, PREFIX(extract_number)): Define with prototype.  Remove
80654         now-unnecessary declaration, if any.
80655         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
80656         regcomp, regexec):
80657         Remove now-unnecessary casts among pointer types.
80658         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
80659
80660         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
80661         (free): Remove decl.
80662
80663         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
80664
80665         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
80666         (free): Remove decl.
80667
80668         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
80669         * lib/xgetcwd.c: Likewise.
80670
80671         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
80672         (free): Remove decl.
80673
80674         * lib/strchrnul.c (strchrnul): Define with a prototype.
80675         Fix bug: c_in was not converted to char before searching.
80676
80677         The following changes are not K&R related:
80678
80679         * lib/group-member.h: Include <sys/types.h>, so that this file is
80680         self-contained.
80681         * lib/makepath.h: Likewise.
80682
80683         * lib/getusershell.c (readname, default_index, line_size, readname):
80684         Use size_t, not int, for sizes.
80685         (readname): If the size overflows, report an error instead of
80686         looping forever.
80687
80688 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80689
80690         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
80691         libc.
80692
80693 2003-09-09  Paul Eggert  <eggert@twinsun.com>
80694
80695         * README: New section: portability guidelines.
80696
80697 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
80698
80699         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
80700         C89 spec.
80701
80702 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
80703
80704         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
80705
80706 2003-09-08  Paul Eggert  <eggert@twinsun.com>
80707
80708         Assume C89 or better; remove K&R cruft.
80709         A few of these changes were first proposed by Derek Robert Price
80710         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
80711
80712         * lib/addext.c: Include <string.h> unconditionally.
80713         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
80714         Don't declare getenv or malloc.
80715
80716         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
80717         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
80718         (NULL): Remove.
80719         (find_stack_direction, alloca): Use prototypes.
80720
80721         * lib/atexit.c (atexit): Define using a prototype.
80722
80723         * lib/basename.c, dirname.c, stripslash.c:
80724         Include <string.h> unconditionally.
80725
80726         * lib/bcopy.c: Include <stddef.h>.
80727         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
80728
80729         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
80730
80731         * lib/error.h (error, error_at_line, error_print_progname)
80732         [! (defined (__STDC__) && __STDC__)]: Remove decls.
80733         * lib/error.c: Include error.h first, to check interface.
80734         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
80735         (VA_START): Remove; all uses changeed to va_start.
80736         (exit, strerror): Remove decls.
80737         (error_print_progname): Prototype uncondionally.
80738         Don't include <errno.h>; no longer needed.
80739         (private_strerror): Remove.
80740         (error_tail): Always define.
80741         (error, error_at_line): Assume C89 or better; always use prototypes.
80742         * lib/fatal.c: Include "fatal.h" first, to test interface.
80743         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
80744         (VA_START): Remove; all uses changed to va_start.
80745         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
80746         this case.
80747         (exit): Remove decl.
80748         (fatal): Prototype unconditionally.  Assume va_start works.
80749         Abort at end, to pacify gcc.
80750
80751         * lib/euidaccess.c (main): Define with a prototype.
80752
80753         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
80754
80755         * lib/exitfail.c: Include <stdlib.h> unconditionally.
80756
80757         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
80758         prototypes.
80759         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
80760         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
80761         (getenv): Remove decl.
80762         (fnmatch): Define using a prototype.
80763         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
80764         (FCT): Define using a prototype.
80765
80766         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
80767
80768         * lib/gethostname.c: Include <stddef.h>.
80769         (gethostname): Define with prototype.  Length is size_t, not int.
80770
80771 2003-09-08  Paul Eggert  <eggert@twinsun.com>
80772
80773         Assume C89 or better; remove K&R cruft.
80774         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
80775         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
80776         string.h, getenv, malloc.
80777         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
80778         headers.
80779         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
80780         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
80781         do not check for strerror.
80782         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
80783         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
80784         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
80785         do not check for doprnt or vprintf.
80786         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
80787         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
80788
80789 2003-09-08  Paul Eggert  <eggert@twinsun.com>
80790
80791         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
80792         getversion.c should have been removed then, but was accidentally
80793         preserved.
80794
80795         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
80796         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
80797
80798 2003-09-08  Karl Berry  <karl@gnu.org>
80799
80800         * config/config.sub, config.guess, srclistvars.sh: update from savannah
80801                 config, forget about prep.
80802
80803         * config/depcomp, missing: update from automake.
80804
80805 2003-09-07  Paul Eggert  <eggert@twinsun.com>
80806
80807         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
80808         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
80809
80810 2003-09-07  Paul Eggert  <eggert@twinsun.com>
80811
80812         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
80813         copy_tm_result.  Bug reported by Simon Josefsson in
80814         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
80815
80816 2003-09-06  Paul Eggert  <eggert@twinsun.com>
80817
80818         * m4/time_r.m4: New file.
80819         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
80820         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
80821         is. Check for timegm declaration.
80822         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
80823         Do not check for gmtime_r.
80824         Replace mktime if __mktime_internal does not exist and if mktime
80825         hasn't been replaced already.
80826
80827 2003-09-06  Paul Eggert  <eggert@twinsun.com>
80828
80829         * lib/time_r.c, lib/time_r.h: New files.
80830
80831         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
80832         __localtime_r.
80833         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
80834         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
80835
80836         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
80837         __gmtime_r.
80838         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
80839         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
80840         Include <time_r.h>.
80841
80842         * lib/timegm.c: Switch to glibc implementation, with the following
80843         changes:
80844         [defined HAVE_CONFIG_H]: Include <config.h>.
80845         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
80846         (__mktime_internal) [!defined _LIBC]: New decl.
80847         (__gmtime_r) [!defined _LIBC]: New macro and function.
80848         (timegm): Use a prototype, since gnulib assumes C89.
80849         Do not bother declaring tmp to be const, as it's not really usefu.
80850         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
80851         (timegm): Declare only if HAVE_DECL_TIMEGM.
80852
80853 2003-09-06  Paul Eggert  <eggert@twinsun.com>
80854
80855         * MODULES.html.sh (func_all_modules): Add time_r.
80856         * modules/time_r: New file.
80857         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
80858         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
80859
80860 2003-09-03  Paul Eggert  <eggert@twinsun.com>
80861
80862         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
80863         Bug reported by Lute Kamstra in
80864         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
80865
80866         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
80867         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
80868         course with correspondingly smaller numbers for tomorrow and
80869         yesterday.  From Tadayoshi Funaba.  Originally installed into
80870         sh-utils on 1999-08-07, but the patch got lost (I guess during the
80871         coreutils merge?).
80872
80873 2003-08-31  Simon Josefsson  <jas@extundo.com>
80874
80875         * modules/timegm: New file.
80876         * MODULES.html.sh (func_all_modules): Add timegm.
80877
80878 2003-08-31  Simon Josefsson  <jas@extundo.com>
80879
80880         * m4/timegm.m4: New file.
80881
80882 2003-08-31  Simon Josefsson  <jas@extundo.com>
80883
80884         * lib/timegm.h: New file.
80885         * lib/timegm.c: New file.  Based on
80886         wget-1.8.2/src/http.c:mktime_from_utc.
80887
80888 2003-08-31  Karl Berry  <karl@gnu.org>
80889
80890         * lib/argp.h: update from libc.
80891
80892 2003-08-28  Bruno Haible  <bruno@clisp.org>
80893
80894         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
80895         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
80896         followed by '#define fnmatch fnmatch_posix' gives an error.
80897
80898 2003-08-28  Bruno Haible  <bruno@clisp.org>
80899
80900         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
80901         warning on QNX, which defines O_BINARY to 000000.
80902
80903 2003-08-27  Jim Meyering  <jim@meyering.net>
80904
80905         * m4/mkstemp.m4: Require that the system mkstemp be able to create
80906         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
80907         would fail after 32.  Reported by Danny Levinson.  Details here:
80908         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
80909
80910 2003-08-24  Bruno Haible  <bruno@clisp.org>
80911
80912         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
80913         MSVC7 <stdio.h> is included later.
80914
80915 2003-08-22  Simon Josefsson  <jas@extundo.com>
80916
80917         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
80918
80919 2003-08-20  Karl Berry  <karl@gnu.org>
80920
80921         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
80922
80923 2003-08-20  Bruno Haible  <bruno@clisp.org>
80924
80925         * modules/progname: New file.
80926         * MODULES.html.sh (func_all_modules): Add progname.
80927
80928 2003-08-20  Bruno Haible  <bruno@clisp.org>
80929
80930         * lib/progname.h: New file, from GNU gettext.
80931         * lib/progname.c: New file, from GNU gettext.
80932         * lib/progreloc.c: New file, from GNU gettext.
80933
80934 2003-08-19  Jim Meyering  <jim@meyering.net>
80935
80936         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
80937         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
80938
80939 2003-08-19  Bruno Haible  <bruno@clisp.org>
80940
80941         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
80942         more.
80943
80944 2003-08-19  Bruno Haible  <bruno@clisp.org>
80945
80946         * lib/xstrdup.c: Assume <string.h> exists.
80947
80948 2003-08-18  Paul Eggert  <eggert@twinsun.com>
80949
80950         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
80951         in makefile rules.
80952
80953 2003-08-18  Jim Meyering  <jim@meyering.net>
80954
80955         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
80956         * m4/lib-ld.m4: Likewise.
80957
80958 2003-08-18  Jim Meyering  <jim@meyering.net>
80959
80960         * lib/setenv.h: Indent nested cpp directive.
80961         * lib/vasnprintf.c: Remove trailing blanks.
80962
80963 2003-08-17  Simon Josefsson  <jas@extundo.com>
80964
80965         * modules/xstrndup: New file.
80966         * MODULES.html.sh (func_all_modules): Add xstrndup.
80967
80968 2003-08-17  Simon Josefsson  <jas@extundo.com>
80969
80970         * modules/argp: Fix autoconf macro name. Add more dependencies.
80971
80972 2003-08-17  Simon Josefsson  <jas@extundo.com>
80973
80974         * m4/xstrndup.m4: New file.
80975
80976 2003-08-17  Simon Josefsson  <jas@extundo.com>
80977
80978         * m4/argp.m4: New file.
80979
80980 2003-08-17  Simon Josefsson  <jas@extundo.com>
80981             Bruno Haible  <bruno@clisp.org>
80982
80983         * lib/xstrndup.h: New file.
80984         * lib/xstrndup.c: New file.
80985
80986 2003-08-17  Bruno Haible  <bruno@clisp.org>
80987
80988         * modules/strndup (Files, Include): Add lib/strndup.h.
80989
80990 2003-08-17  Bruno Haible  <bruno@clisp.org>
80991
80992         * modules/euidaccess (Files): Add lib/euidaccess.h.
80993
80994 2003-08-17  Bruno Haible  <bruno@clisp.org>
80995
80996         * lib/strndup.h: New file.
80997
80998 2003-08-17  Bruno Haible  <bruno@clisp.org>
80999
81000         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
81001         like AC_GNU_SOURCE.
81002         * modules/extensions (configure.ac): Comment out the invocation of
81003         gl_USE_SYSTEM_EXTENSIONS.
81004
81005 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81006
81007         Merges from coreutils, etc.
81008         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
81009         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
81010         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
81011         fixing a typo.
81012         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
81013         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
81014
81015 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81016
81017         Document merge from coreutils.
81018         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
81019         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
81020         * modules/utime: Add m4/utimes-null.m4.
81021
81022 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81023
81024         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
81025         space, undoing this 2003-08-12 change:
81026         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
81027
81028 2003-08-16  Paul Eggert  <eggert@twinsun.com>
81029
81030         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
81031         strtoul.c from libc, undoing this 2003-08-12 change:
81032         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
81033
81034 2003-08-16  Jim Meyering  <jim@meyering.net>
81035
81036         Merges from coreutils.
81037         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
81038         prefix.  Adjust cache variables similarly.  Create 500 rather than
81039         just 300 files, to exercise bug on Darwin6.5, too.
81040         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
81041         $missing_dir.
81042         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
81043         AM_SYS_POSIX_TERMIOS.
81044         Reported by mkc@mathdogs.com.
81045         Also change use of $am_cv_sys_posix_termios
81046         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
81047         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
81048         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
81049         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
81050         in /proc/mounts until it finds one with matching device number.  This
81051         is unnecessary when the FILE argument *is* a mount point.  No stat call
81052         is necessary in that case.  So, disable the statvfs-testing code on
81053         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
81054         as RedHat bug# 84846.
81055         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
81056         to 1MB, so as not to render systems with no stack size limit (e.g.,
81057         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
81058         Include <unistd.h>.  On some systems,
81059         it is required for the definition of _SC_PAGESIZE.
81060
81061 2003-08-16  Jim Meyering  <jim@meyering.net>
81062
81063         Merge from coreutils.
81064         * lib/xstrtoimax.c: #else #if -> #elif.
81065         * lib/xstrtoumax.c: Likewise.
81066
81067 2003-08-16  Jim Meyering  <jim@meyering.net>
81068
81069         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
81070         * m4/utimes.m4: Removed.
81071         * m4/utimes-null.m4: Renamed from utimes.m4.
81072
81073         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
81074         to 1MB, so as not to render systems with no stack size limit (e.g.,
81075         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
81076         Include <unistd.h>.  On some systems,
81077         it is required for the definition of _SC_PAGESIZE.
81078
81079 2003-08-16  Jim Meyering  <jim@meyering.net>
81080         and Paul Eggert  <eggert@cs.ucla.edu>
81081
81082         Merges from coreutils, etc.
81083
81084         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
81085         using the latest version from cvs.  This avoids problems with #line
81086         directives using a vendor (Sun) compiler.
81087         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
81088         Don't set GETGROUPS_LIB here; now it's
81089         done via getgroups.m4's wrapper function.
81090         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
81091         rather than just in sh-util/configure.in, so that the
81092         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
81093         same.
81094         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
81095         AC_FUNC_GETLOADAVG where to find getloadavg.c.
81096         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
81097         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
81098         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
81099         Remove code that is now done by the newly-required macros.
81100         Append $(EXEEXT) to DF_PROG.
81101         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
81102         Do not invoke or require the following here,
81103         since prereq.m4 or some gnulib .m4 now does this for us:
81104         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
81105         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
81106         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
81107         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
81108         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
81109         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
81110         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
81111         AC_FUNC_OBSTACK.
81112         Do not replace the following functions, as this is now the job
81113         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
81114         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
81115         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
81116         atexit getpass, strdup, getpagesize.
81117         Replace 'raise'.
81118         Do not check for the following functions, as this is now the job
81119         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
81120         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
81121         setregid.
81122         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
81123         Check for sys/sysctl.h.
81124         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
81125         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
81126         of checking for ssize_t ourselves.
81127
81128         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
81129         Require every macro that gnulib/modules/* suggests for us.
81130         (jm_PREREQ_ADDEXT): New macro.
81131         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
81132         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
81133
81134         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
81135         (gl_PHYSMEM): Use it.
81136         Also check for `table' function.
81137         Check for new headers and functions.
81138         Add check for sys/sysmp.h.
81139         With suggestions from Kaveh Ghazi.
81140         Ignore headers that are present but cannot be compiled.  This
81141         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
81142         C 5.4.
81143
81144 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81145
81146         Document merge from coreutils.
81147         * modules/userspec: Depend on posixver.
81148         * modules/strftime: Depend on tzset.
81149
81150 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81151
81152         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
81153         rather than tab, after '#' in shell-script copyright notices.
81154         Suggested by Bruno Haible.
81155
81156 2003-08-15  Paul Eggert  <eggert@twinsun.com>
81157
81158         * config/srclist-update: Use three spaces, rather than tab, after '#'
81159         in shell-script copyright notices.  Suggested by Bruno Haible.
81160         Remove unnecessary parenthesization in regular expression.
81161
81162 2003-08-15  Jim Meyering  <jim@meyering.net>
81163
81164         Merge from coreutils.
81165         * lib/xgethostname.c: Include <stdlib.h>.
81166         (xghostname): Don't exit for anything other than memory-related
81167         failure; just return NULL.
81168         * lib/userspec.c: Include "posixver.h".
81169         (parse_user_spec): Accept `.' as a separator only
81170         in pre-POSIX-200112 mode.
81171         * lib/strtoimax.c: Use #elif rather than #else #if.
81172         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
81173         Remove function, now that we can rely on a working tzset function.
81174         [!_LIBC]: Ensure that the required autoconf test has been run.
81175         [!defined _NL_CURRENT && HAVE_STRFTIME]:
81176         Use underlying_strftime for %r.
81177         * lib/sha.c: Merge in some clean-up and optimization changes from
81178         glibc.
81179         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
81180         Ensure that it is a multiple of 64.
81181         Rearrange loop exit tests so as to avoid performing an
81182         additional fread after encountering an error or EOF.
81183         * lib/realloc.c: Update copyright date.
81184
81185 2003-08-15  Jim Meyering  <jim@meyering.net>
81186         and Paul Eggert  <eggert@twinsun.com>
81187
81188         Merge from coreutils.
81189         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
81190         member but strut utmpx does not.  Needed for AIX 4.3.3.
81191         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
81192
81193 2003-08-15  Jim Meyering  <jim@meyering.net>
81194         and Paul Eggert  <eggert@cs.ucla.edu>
81195
81196         Merges from coreutils, etc.
81197         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
81198         Require gl_FUNC_TZSET_CLOBBER.
81199         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
81200         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
81201         members.
81202
81203 2003-08-14  Paul Eggert  <eggert@twinsun.com>
81204
81205         Help the merge from coreutils.
81206         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
81207         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
81208         * m4/tzset.m4: Use it too.
81209
81210 2003-08-14  Paul Eggert  <eggert@twinsun.com>
81211
81212         * modules/tzset: New file.
81213
81214 2003-08-14  Jim Meyering  <jim@meyering.net>
81215
81216         Merges from coreutils.
81217         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
81218         variable names, rather than @FNMATCH_H@.
81219         * modules/alloca: Likewise for $(ALLOCA_H).
81220
81221         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
81222         the three copies of the literal target, `fnmatch.h'.
81223         * modules/alloca (alloca.h): Likewise.
81224
81225 2003-08-14  Jim Meyering  <jim@meyering.net>
81226
81227         Merge from coreutils.
81228         * m4/tzset.m4: New file.
81229         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
81230         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
81231         otherwise, AIX 5.1 systems would end up using the latter.
81232         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
81233         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
81234         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
81235         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
81236
81237 2003-08-14  Jim Meyering  <jim@meyering.net>
81238
81239         Merge from coreutils.
81240         * lib/obstack.h: Whitespace changes.
81241         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
81242         and xcalloc return values.
81243         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
81244         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
81245         hang on OSF/1 5.1 for DIR on both local and remote file systems.
81246         Reported by (and fix confirmed by) Nelson H. F. Beebe.
81247         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
81248         error from mntctl.
81249         Use mntctl's return value to drive the entry-processing loop, since
81250         we can't rely on the value of the vmt_length member in the last
81251         entry.  On some systems doing so could result in exhausting
81252         virtual memory.  Based in part on a patch from Mike Jetzer.
81253
81254 2003-08-14  Jim Meyering  <jim@meyering.net>
81255         and Paul Eggert  <eggert@twinsun.com>
81256
81257         Merges from coreutils, plus other fixes.
81258         * lib/physmem.c: Merge in portability changes from gcc/libiberty
81259         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
81260         for credits and details.  Thanks to Kaveh Ghazi for helping
81261         to keep these files in sync.
81262         (ARRAY_SIZE): Define it.
81263         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
81264         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
81265         (memcasecmp): Don't assume size_t fits in unsigned int.
81266         Remove casts and duplicate code.
81267         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
81268         (memcpy): Remove definition.
81269         Merge in some clean-up and optimization changes from glibc.
81270         [BLOCKSIZE]: Move definition to top of file.
81271         Ensure that it is a multiple of 64.
81272         Rearrange loop exit tests so as to avoid performing an
81273         additional fread after encountering an error or EOF.
81274         * lib/md5.h (md5_uintptr): Define.
81275         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
81276         return to the initial working directory.  Preserve errno
81277         for caller.
81278         * lib/idcache.c: Include "xalloc.h".
81279         (xmalloc, xrealloc): Remove decls.
81280         (getuser): Remove casts no longer required in C89.
81281         * lib/human.c: Include stdio.h, for sprintf.
81282         * lib/group-member.c: Include "xalloc.h".
81283         (xmalloc, xrealloc): Remove decls.
81284         (get_group_info): Remove casts no longer required in C89.
81285         * lib/getusershell.c (readname): Remove casts no longer required in
81286         C89.
81287         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
81288         * lib/getline.c: Whitespace fix, from coreutils.
81289
81290 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81291
81292         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
81293         Check for isascii.
81294
81295         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
81296         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
81297         Undo previous (whitespace-only) change.
81298
81299 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81300
81301         * lib/exclude.c: Include <ctype.h>
81302         (IN_CTYPE_DOMAIN): New macro.
81303         (is_space): New fn.
81304         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
81305         and empty lines.
81306
81307         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
81308         Undo previous (whitespace-only) change.
81309
81310 2003-08-13  Paul Eggert  <eggert@twinsun.com>
81311
81312         * config/srclist-update: Change update back to the old behavior,
81313         leaving whitespace alone.  Use one 'sed' command rather than a
81314         pipeline.
81315         (fixlicense): Now a variable, not a function.
81316         (remove_trailing_blanks): Remove.
81317         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
81318         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
81319         Undo previous (whitespace-only) change.
81320
81321 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81322
81323         Merge from coreutils.
81324         * modules/euidaccess: Add lib_SOURCES, include for new
81325         file euidaccess.h
81326
81327 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81328
81329         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
81330         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
81331         Normalize leading white space and remove trailing white space.
81332
81333         Merge from coreutils
81334         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
81335
81336         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
81337         0.12.1.  These files are now being upgraded automatically by
81338         ../config/srclist-update.
81339
81340 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81341
81342         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
81343         Normalize leading white space and remove trailing white space.
81344         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
81345         notice, as per ../config/srclist-update.
81346
81347         Merge from coreutils.
81348         * lib/euidaccess.h: New file.
81349         * lib/euidaccess.c: Include it.
81350         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
81351         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
81352         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
81353
81354 2003-08-12  Paul Eggert  <eggert@twinsun.com>
81355
81356         * config/srclist-update: Add copyright notice.
81357         (remove_id_lines, remove_trailing_blanks): New constants.
81358         (fixfile): Use them to normalize spacing a bit in copied files.
81359         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
81360         Normalize leading white space and remove trailing white space.
81361
81362         * config/texinfo.tex: Sync with texinfo.
81363
81364         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
81365         strtoul.c from libc, to merge coreutils whitespace changes.
81366
81367         * config/srclist.txt: Get the following m4 files from gettext:
81368         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
81369         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
81370         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
81371         wint_t.m4.
81372
81373 2003-08-12  Karl Berry  <karl@gnu.org>
81374
81375         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
81376         been made.
81377
81378 2003-08-11  Paul Eggert  <eggert@twinsun.com>
81379
81380         * modules/gnu-source, m4/gnu-source.m4:
81381         Remove; we're assuming Autoconf 2.54 or later now.
81382         Suggested by Bruno Haible.
81383         * MODULES.html.sh (func_all_modules): Remove gnu-source.
81384
81385 2003-08-11  Bruno Haible  <bruno@clisp.org>
81386
81387         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
81388
81389 2003-08-11  Bruno Haible  <bruno@clisp.org>
81390
81391         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
81392         (vasnprintf): Use it instead of wcslen.
81393
81394 2003-08-11  Bruno Haible  <bruno@clisp.org>
81395
81396         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
81397         value to ensure that _Bool promotes to int. Use #define for _Bool when
81398         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
81399
81400 2003-08-10  Karl Berry  <karl@gnu.org>
81401
81402         * lib/regex.h: update from libc (whitespace fix).
81403
81404 2003-08-09  Paul Eggert  <eggert@twinsun.com>
81405
81406         Merge some files from coreutils.  These changes were
81407         originally made by Jim Meyering.
81408         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
81409         many older Unixes require this.
81410         * lib/alloca.c (alloca): Remove cast to argument of free;
81411         no longer needed in C89.
81412         * lib/alloca_.h, regex.h: Fix white space to match
81413         what GNU indent does.
81414
81415 2003-08-09  Paul Eggert  <eggert@twinsun.com>
81416
81417         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
81418         apparently Emacs's Unicode mode got confused before my 2003-08-05
81419         checkin.
81420
81421 2003-08-08  Paul Eggert  <eggert@twinsun.com>
81422
81423         * m4/extensions.m4: New file.
81424         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
81425         Require gl_USE_SYSTEM_EXTENSIONS.
81426         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
81427         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
81428
81429 2003-08-08  Paul Eggert  <eggert@twinsun.com>
81430
81431         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
81432         * modules/extensions, modules/gnu-source: New files.
81433         * modules/timespec, modules/unlocked-io: Depend on extensions.
81434
81435 2003-08-07  Paul Eggert  <eggert@twinsun.com>
81436
81437         * modules/restrict: New file.
81438         * MODULES.html.sh (func_all_modules): Add restrict.
81439         * modules/regex: Depend on restrict.
81440
81441 2003-08-07  Paul Eggert  <eggert@twinsun.com>
81442
81443         * m4/restrict.m4: New file.
81444         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
81445
81446 2003-08-07  Bruno Haible  <bruno@clisp.org>
81447
81448         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
81449         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
81450
81451 2003-08-07  Bruno Haible  <bruno@clisp.org>
81452
81453         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
81454         makes the module 'getndelim2' compatible with the module 'getline'.
81455
81456 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81457
81458         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
81459         byte with "\201" to avoid glitches when editing that source file
81460         with multi-gnome-terminal.
81461
81462 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81463
81464         * lib/bumpalloc.h: Remove.
81465
81466 2003-08-05  Paul Eggert  <eggert@twinsun.com>
81467
81468         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
81469         * modules/bumpalloc: Remove.
81470
81471 2003-08-04  Paul Eggert  <eggert@twinsun.com>
81472
81473         * lib/getloadavg.c: Change copyright notice and spacing to conform to
81474         GNU coding style.
81475
81476         Merge from coreutils.
81477         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
81478         1. From glibc.
81479         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
81480         from Karl Berry, implemented by Jim Meyering.
81481         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
81482         from Dmitry V. Levin.
81483         Remove anachronistic cast of xrealloc.
81484         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
81485         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
81486         type. Otherwise, it wouldn't compile with at least /bin/cc on
81487         ymp-cray-unicos9.0.2.X.
81488         Combine two mostly-identical uses of alloca into one.
81489         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
81490
81491 2003-08-04  Dave Love  <d.love@dl.ac.uk>
81492
81493         [From Emacs.]
81494
81495         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
81496         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
81497         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
81498         obsolete NLIST_NAME_UNION.
81499         [__GNU__]: Undef BSD and FSCALE.
81500         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
81501
81502 2003-08-03  Paul Eggert  <eggert@twinsun.com>
81503
81504         * lib/stdbool_.h (_Bool): Make it signed char, instead of
81505         an enum type, so that it's guaranteed to promote to int.  See:
81506         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
81507
81508 2003-08-03  Karl Berry  <karl@gnu.org>
81509
81510         * config/depcomp: update from automake.
81511
81512 2003-07-31  Paul Eggert  <eggert@twinsun.com>
81513
81514         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
81515         (strerror): Don't assume that a printable int fits in 14 bytes.
81516
81517 2003-07-31  Bruno Haible  <bruno@clisp.org>
81518
81519         * modules/getpass-gnu: New file.
81520         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
81521
81522 2003-07-31  Bruno Haible  <bruno@clisp.org>
81523
81524         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
81525
81526 2003-07-24  Karl Berry  <karl@gnu.org>
81527
81528         * config/missing: update from automake.
81529
81530 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
81531             Bruno Haible  <bruno@clisp.org>
81532
81533         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
81534         * lib/getline.c (getline, getdelim): Likewise.
81535         Remove _GNU_SOURCE define; now it's defined in config.h through
81536         m4/getline.m4.
81537
81538 2003-07-23  Karl Berry  <karl@gnu.org>
81539
81540         * config/config.sub: update from prep.
81541
81542 2003-07-22  Paul Eggert  <eggert@twinsun.com>
81543
81544         * modules/xalloc (Depends-on): Add exitfail.
81545         * modules/xmemcoll: Likewise.
81546
81547 2003-07-22  Paul Eggert  <eggert@twinsun.com>
81548
81549         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
81550         over-parenthesization in macros.
81551
81552         Sync with coreutils.
81553
81554         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
81555         required by C99.
81556
81557         Use `exit_failure' for xalloc and xmemcoll instead of their own
81558         private exit-failure variables.
81559         * lib/xalloc.h (xalloc_exit_failure): Remove.
81560         * lib/xmalloc.c: Likewise.  Include exitfail.h.
81561         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
81562         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
81563         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
81564         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
81565
81566 2003-07-20  Jim Meyering  <jim@meyering.net>
81567
81568         * modules/closeout (Depends-on): Add exitfail.
81569         Suggestion from Bruno Haible.
81570
81571 2003-07-19  Karl Berry  <karl@gnu.org>
81572
81573         * config/config.sub: update from prep.
81574
81575 2003-07-18  Paul Eggert  <eggert@twinsun.com>
81576
81577         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
81578         Remove.
81579         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
81580         to test that it can stand by itself.  Include "exitfail.h".
81581         Clients should set exit_failure instead.
81582         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
81583
81584 2003-07-18  Bruno Haible  <bruno@clisp.org>
81585
81586         * modules/getndelim2: New file.
81587         * modules/getline: Share files with module getndelim2.
81588         * modules/getnline: Depend on getndelim2 instead of sharing files with
81589         it. Add getnline.c to lib_SOURCES.
81590         * MODULES.html.sh (func_all_modules): Add getndelim2.
81591
81592 2003-07-18  Bruno Haible  <bruno@clisp.org>
81593
81594         * m4/getndelim2.m4: New file.
81595         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
81596         invoke gl_PREREQ_GETNDELIM2.
81597         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
81598         gl_PREREQ_GETNDELIM2.
81599         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
81600         gl_GETNDELIM2.
81601
81602 2003-07-18  Bruno Haible  <bruno@clisp.org>
81603
81604         * lib/getndelim2.h: New file.
81605         * lib/getndelim2.c: Make into a module of its own. Include config.h,
81606         getndelim2.h.
81607         (getndelim2): Make non-static. Change return type to ssize_t.
81608         * lib/getline.h: Change argument names.
81609         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
81610         * lib/getnline.c: Include getndelim2.h.
81611
81612 2003-07-18  Andreas Schwab  <schwab@suse.de>
81613
81614         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
81615
81616 2003-07-17  Karl Berry  <karl@gnu.org>
81617
81618         * config/config.sub: update from prep.
81619
81620 2003-07-17  Bruno Haible  <bruno@clisp.org>
81621
81622         * modules/getnline: New file.
81623         * modules/getline: Add lib/getndelim2.c to source file list.
81624         * MODULES.html.sh (func_all_modules): Add getnline.
81625
81626 2003-07-17  Bruno Haible  <bruno@clisp.org>
81627
81628         * m4/getnline.m4: New file.
81629
81630 2003-07-17  Bruno Haible  <bruno@clisp.org>
81631
81632         * m4/Makefile.am.in: Remove file.
81633         * m4/Makefile.am: Remove file.
81634         * m4/Makefile.in: Remove file.
81635
81636 2003-07-17  Bruno Haible  <bruno@clisp.org>
81637
81638         * lib/getnline.h: New file.
81639         * lib/getnline.c: New file.
81640         * lib/getndelim2.c: New file, extracted from getline.c.
81641         (getndelim2): Renamed from getdelim2, with added nmax argument.
81642         * lib/getline.c: Include getndelim2.c.
81643         (getdelim2): Moved out to getndelim2.c.
81644         (getline, getdelim): Update.
81645
81646 2003-07-17  Bruno Haible  <bruno@clisp.org>
81647
81648         * lib/Makefile.am: Remove file.
81649         * lib/Makefile.in: Remove file.
81650
81651 2003-07-17  Bruno Haible  <bruno@clisp.org>
81652
81653         * configure.in: Remove file.
81654         * Makefile.in: Remove file.
81655
81656 2003-07-17  Bruno Haible  <bruno@clisp.org>
81657
81658         * MODULES.html.sh: Put the </BODY> right before </HTML>.
81659
81660 2003-07-16  Karl Berry  <karl@gnu.org>
81661
81662         * config/srclist-update: was running fixlicense twice, which caused
81663                 texinfo.tex to be nullified for some reason.  Simplify,
81664                 $gplsrc is no longer needed as far as I can see?
81665
81666 2003-07-16  Jim Meyering  <jim@meyering.net>
81667
81668         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
81669
81670 2003-07-15  Paul Eggert  <eggert@twinsun.com>
81671
81672         * config/srclist.txt: Get the following files from gettext-runtime/intl
81673         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
81674         ref-del.sin.  From Bruno Haible.
81675         * config/srclist-update (fixfile): Change grep pattern again, since the
81676         previous fix didn't work (there was another trailing $).  Use
81677         '[$]' to escape the $s.
81678
81679 2003-07-15  Karl Berry  <karl@gnu.org>
81680
81681         * lib/vasnprintf.c: update from gettext.
81682
81683 2003-07-15  Karl Berry  <karl@gnu.org>
81684
81685         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
81686         gets expanded when surrounded by '$'.
81687
81688 2003-07-15  Jim Meyering  <jim@meyering.net>
81689
81690         * modules/save-cwd: Don't depend on error.  From Derek Price.
81691
81692 2003-07-15  Jim Meyering  <jim@meyering.net>
81693
81694         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
81695
81696 2003-07-14  Simon Josefsson  <jas@extundo.com>
81697
81698         * modules/mempcpy: New file.
81699         * MODULES.html.sh (func_all_modules): Add mempcpy.
81700
81701 2003-07-14  Simon Josefsson  <jas@extundo.com>
81702
81703         * m4/mempcpy.m4: New file.
81704
81705 2003-07-14  Simon Josefsson  <jas@extundo.com>
81706
81707         * lib/mempcpy.h: New file.
81708         * lib/mempcpy.c: New file.
81709
81710 2003-07-14  Paul Eggert  <eggert@twinsun.com>
81711
81712         * modules/getdate, modules/posixtm: Depend on mktime.
81713
81714 2003-07-14  Paul Eggert  <eggert@twinsun.com>
81715
81716         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
81717         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
81718         unicodeio.c, unicodeio.h, unlocked-io.h:
81719         Switch from LGPL to GPL.
81720
81721 2003-07-14  Paul Eggert  <eggert@twinsun.com>
81722
81723         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
81724         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
81725         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
81726         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
81727         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
81728         updated automatically by ../config/srclist-update.  This changes
81729         their license from LPGL to GPL.
81730
81731 2003-07-14  Paul Eggert  <eggert@twinsun.com>
81732
81733         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
81734         assumed to refer to the root of the most recent stable gettext version.
81735         * config/srclistvars.sh: Add defaults for eggert.
81736         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
81737         Match "This program" as well as "The program".  This is needed
81738         for gettext.
81739
81740 2003-07-14  Jim Meyering  <jim@meyering.net>
81741
81742         Don't emit diagnostics.  Let callers do that.
81743         * lib/save-cwd.c: Don't include "error.h".
81744         (save_cwd): Don't call error.  Ensure that errno is valid
81745         when returning nonzero.
81746
81747         * lib/save-cwd.h (restore_cwd): Update prototype.
81748         * lib/save-cwd.c (restore_cwd): Remove two parameters.
81749         Simplify.  Don't call error upon failure.  Let callers do that.
81750         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
81751         when auditing is enabled.  But don't bother updating the #if.
81752
81753 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
81754
81755         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
81756         it breaks C++ compilation.
81757         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
81758
81759 2003-07-10  Simon Josefsson  <jas@extundo.com>
81760
81761         * modules/strchrnul (Makefile.am): Add strchrnul.h.
81762
81763 2003-07-10  Jim Meyering  <jim@meyering.net>
81764
81765         * m4/clock_time.m4: Remove trailing blank.
81766         * m4/intmax_t.m4: Likewise.
81767
81768 2003-07-10  Jim Meyering  <jim@meyering.net>
81769
81770         * lib/vasnprintf.c: Remove trailing blanks.
81771         Make cpp indentation consistent.
81772
81773 2003-07-09  Paul Eggert  <eggert@twinsun.com>
81774
81775         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
81776         posixver.c, strftime.c, strnlen.c, strverscmp.c:
81777         Switch from LGPL to GPL.
81778
81779 2003-07-09  Paul Eggert  <eggert@twinsun.com>
81780
81781         * config/srclist.txt: Sort sublists.  Add
81782         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
81783         that differ from gnulib for one reason or another; we'd like this list
81784         to be smaller but for now let's document what we have.
81785
81786 2003-07-08  Paul Eggert  <eggert@twinsun.com>
81787
81788         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
81789         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
81790         and sweeter "eval x=$x".
81791         * config/srclist.txt: Get lib/argp* from glibc.
81792
81793 2003-07-07  Paul Eggert  <eggert@twinsun.com>
81794
81795         * lib/mktime.c: Fix some boundary cases and remove need for floating
81796         point.
81797
81798         Issue a compile-time diagnostic if time_t is floating point, or if
81799         two's complement arithmetic is not in effect, or if arithmetic
81800         right shift does not propagate the sign.  These assumptions were
81801         all in the original code but they weren't checked.
81802
81803         (TIME_T_MIDPOINT, verify): New macros.
81804         (__isleap): Remove; it has integer overflow problems.
81805         (leapyear): New function, without those problems.
81806         (ydhms_tm_diff): Remove; splitting into two parts.
81807         (ydhms_diff): New function, containing the arithmetic part of
81808         the old ydhms_tm_diff function.  Issue a compile-time
81809         diagnostic if we are not using C99 integer division.
81810         Avoid casts when possible.
81811         (guess_time_tm): New function, containing the checking part of
81812         the old ydhms_tm_diff function.  Return the new value, rather than
81813         the difference between it and the old.  Accept a new argument T
81814         so that *T specifies the old value.  Check for overflow in the result.
81815
81816         (__mktime_internal): Use a time_t offset, not a long int offset.
81817         This undoes the 2003-06-04 change, which is no longer needed now
81818         that we have better overflow checking.
81819         (localtime_offset): Likewise.
81820
81821         (__mktime_internal): Avoid harmful overflow on hosts where time_t
81822         and long are 64-bit but int is only 32-bit.
81823         (ydhms_diff): Use long int to store year1 and yday1.
81824         Issue a compile-time diagnostic if long int is not wide enough.
81825
81826         (__mktime_internal): Use long int to store adjusted year and yday.
81827         Use plain C rather than preprocessor commands, if that doesn't
81828         affect efficiency.
81829         Check for overflow (and try to repair) after each probe
81830         rather than checking only at the very end.  This avoids some bugs
81831         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
81832         does not equal GMT offset at maximum time).
81833         Use integer to check for overflow rather than floating point; this
81834         is more portable to non-IEEE hosts, and is a tad faster.
81835         When we detect that we are oscillating between two values,
81836         don't check whether tm_isdst has the requested value, since
81837         we already know the answer.  When tm_isdst has the wrong value,
81838         use a different heuristic to find the right one, based on the
81839         extreme values actually observed in practice in tz2003a,
81840         rather than the (overly optimistic) "previous 3 calendar quarters".
81841
81842         (not_equal_tm, print_tm, check_result): Use "const T" rather than
81843         "T const" to accommodate glibc style.
81844         (check_result): Use less-confusing report format.  "long" -> "long int.
81845         (main): Likewise.
81846         Don't loop if the iteration overflows time_t.
81847         Allow a negative step in the iteration.
81848
81849 2003-07-06  Karl Berry  <karl@gnu.org>
81850
81851         * config/depcomp: update from automake.
81852         * config/config.sub: update from prep.
81853
81854 2003-07-03  Karl Berry  <karl@gnu.org>
81855
81856         * config/config.guess: update from prep.
81857
81858 2003-07-01  Paul Eggert  <eggert@twinsun.com>
81859
81860         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
81861         xreadlink.c now includes it unconditionally.
81862
81863 2003-07-01  Paul Eggert  <eggert@twinsun.com>
81864
81865         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
81866         having it depend on HAVE_SYS_TYPES_H.
81867
81868 2003-07-01  Bruno Haible  <bruno@clisp.org>
81869
81870         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
81871         <sys/types.h> should be sufficient.
81872         Reported by Paul Eggert.
81873
81874 2003-06-26  Karl Berry  <karl@gnu.org>
81875
81876         * config/depcomp: update from automake.
81877
81878 2003-06-26  Bruno Haible  <bruno@clisp.org>
81879
81880         * modules/human: Depend on module stdbool.
81881
81882 2003-06-25  Bruno Haible  <bruno@clisp.org>
81883
81884         * modules/readlink: New file.
81885         * modules/xreadlink: Depend on it.
81886         * MODULES.html.sh (func_all_modules): Add readlink.
81887
81888 2003-06-25  Bruno Haible  <bruno@clisp.org>
81889
81890         * m4/readlink.m4: New file.
81891
81892 2003-06-25  Bruno Haible  <bruno@clisp.org>
81893
81894         * lib/readlink.c: New file.
81895
81896 2003-06-22  Karl Berry  <karl@gnu.org>
81897
81898         * config/srclist.txt: update mkinstalldirs from automake.
81899         * config/mkinstalldirs: update.
81900
81901 2003-06-22  Bruno Haible  <bruno@clisp.org>
81902
81903         Portability to mingw32.
81904         * m4/ssize_t.m4: New file, from GNU gettext.
81905         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
81906         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
81907
81908 2003-06-22  Bruno Haible  <bruno@clisp.org>
81909
81910         * modules/safe-read: Add m4/ssize_t.m4.
81911         * modules/xreadlink: Add m4/ssize_t.m4.
81912
81913 2003-06-20  Bruno Haible  <bruno@clisp.org>
81914
81915         Assume C89, so PARAMS isn't needed.
81916         * lib/unicodeio.h (PARAMS): Remove.
81917         * lib/unicodeio.c: Don't use PARAMS.
81918
81919 2003-06-18  Karl Berry  <karl@gnu.org>
81920
81921         * config/config.{guess,sub}: update from prep.
81922
81923 2003-06-18  Jim Meyering  <jim@meyering.net>
81924
81925         Merge changes from coreutils.
81926         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
81927         Remove explicit declarations of xmalloc and realloc.
81928         Include xalloc.h.
81929         (read_utmp): Remove anachronistic cast of xmalloc.
81930
81931 2003-06-17  Paul Eggert  <eggert@twinsun.com>
81932
81933         Assume C89, so PARAMS isn't needed.
81934         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
81935         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
81936         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
81937         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
81938         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
81939         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
81940         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
81941         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
81942         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
81943         lib/xstrtod.h, lib/xstrtol.h: Likewise.
81944         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
81945         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
81946         no longer needed. Anyway, config.h should always be included before any
81947         other file.
81948
81949 2003-06-11  Simon Josefsson  <jas@extundo.com>
81950
81951         * modules/sysexits: New file.
81952         * MODULES.html.sh (func_all_modules): Add sysexits.
81953
81954 2003-06-11  Simon Josefsson  <jas@extundo.com>
81955
81956         * lib/sysexit_.h: New file.
81957
81958 2003-06-11  Derek Price  <derek@ximbiot.com>
81959
81960         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
81961         necessary.
81962
81963 2003-06-11  Bruno Haible  <bruno@clisp.org>
81964
81965         * m4/sysexits.m4: New file.
81966
81967 2003-06-10  Simon Josefsson  <jas@extundo.com>
81968
81969         * lib/argp.h: New file, from glibc.
81970         * lib/argp-ba.c: New file, from glibc.
81971         * lib/argp-eexst.c: New file, from glibc.
81972         * lib/argp-fmtstream.c: New file, from glibc.
81973         * lib/argp-fmtstream.h: New file, from glibc.
81974         * lib/argp-fs-xinl.c: New file, from glibc.
81975         * lib/argp-help.c: New file, from glibc.
81976         * lib/argp-namefrob.h: New file, from glibc.
81977         * lib/argp-parse.c: New file, from glibc.
81978         * lib/argp-pv.c: New file, from glibc.
81979         * lib/argp-pvh.c: New file, from glibc.
81980         * lib/argp-xinl.c: New file, from glibc.
81981
81982 2003-06-10  Simon Josefsson  <jas@extundo.com>
81983
81984         * modules/strchrnul: New file.
81985
81986 2003-06-10  Simon Josefsson  <jas@extundo.com>
81987
81988         * modules/argp: New file.
81989
81990 2003-06-10  Simon Josefsson  <jas@extundo.com>
81991
81992         * m4/strchrnul.m4: New file.
81993
81994 2003-06-10  Simon Josefsson  <jas@extundo.com>
81995
81996         * lib/strchrnul.h: New file.
81997         * lib/strchrnul.c: New file.
81998
81999 2003-06-10  Bruno Haible  <bruno@clisp.org>
82000
82001         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
82002
82003 2003-06-07  Karl Berry  <karl@gnu.org>
82004
82005         * config/config.{guess,sub}: update from prep.
82006
82007 2003-06-07  Jim Meyering  <jim@meyering.net>
82008
82009         * modules/strtod: Use $(...) notation, not @...@ for
82010         AC_REPLACE'd variables.
82011         * modules/localcharset: Likewise.
82012
82013 2003-06-07  Jim Meyering  <jim@meyering.net>
82014
82015         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
82016         in place of my name in the copyright comment.
82017         Remove definition and uses of __P.
82018
82019         From coreutils.
82020         * lib/stat.c: Don't declare xmalloc explicitly.
82021         Instead, include "xalloc.h".
82022         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
82023         xrealloc, and xcalloc return values.
82024         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
82025         Improve comment.
82026         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
82027
82028 2003-06-07  Bruno Haible  <bruno@clisp.org>
82029
82030         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
82031         avoid AC_CONFIG_LINKS.
82032         * modules/fnmatch (Makefile.am): Use explicit creation rule for
82033         fnmatch.h, to avoid AC_CONFIG_LINKS.
82034         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
82035
82036 2003-06-07  Bruno Haible  <bruno@clisp.org>
82037
82038         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
82039         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
82040         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
82041         directory.
82042         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
82043         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
82044         directory.
82045
82046 2003-06-06  Jim Meyering  <jim@meyering.net>
82047
82048         Merge from coreutils.
82049         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
82050         Consolidate declarations and initializations of *_base* locals.
82051
82052         Merge from coreutils.
82053         This avoids a core dump on systems without GNU putenv,
82054         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
82055         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
82056         (unsetenv): New static function, from GNU libc.
82057         (rpl_putenv): Use it.
82058
82059         * lib/modechange.c: Remove trailing blanks.
82060
82061         Merge from coreutils.
82062         * lib/fsusage.c: Remove declaration of statfs.
82063         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
82064
82065         * lib/posixtm.c: Include <stdbool.h> unconditionally.
82066
82067 2003-06-06  Jim Meyering  <jim@meyering.net>
82068
82069         * lib/stdbool_.h: Renamed from stdbool.h.in.
82070
82071 2003-06-06  Jim Meyering  <jim@meyering.net>
82072             Bruno Haible  <bruno@clisp.org>
82073
82074         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
82075         Adjust Makefile.am snippet not to redirect directly to target.
82076         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
82077
82078 2003-06-05  Paul Eggert  <eggert@twinsun.com>
82079
82080         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
82081         mismatch, look in future quarters as well as past.  This fixes a
82082         bug when processing fall-backwards gaps immediately after a long
82083         period of daylight-saving time.
82084
82085         * lib/mktime.c: Assume freestanding C89 or better.
82086         (HAVE_LIMITS_H): Remove.  Assume it's 1.
82087         (__P): Remove; not used.
82088         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
82089         (mktime, not_equal_tm, print_tm, check_result,
82090         main): Use prototypes.  Use const * where appropriate.
82091         (main): Fix typo in testing code that uncovered by above changes.
82092         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
82093
82094 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82095
82096         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
82097         locale.h, localeconv.  This merges changes from coreutils.
82098
82099         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
82100         It can be removed after the next Autoconf is released.
82101         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
82102         needed.
82103
82104 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82105
82106         * lib/mktime.c: Fix Debian bug 177940
82107         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
82108         (localtime_offset): Now long int, not time_t, because we want it
82109         to be guaranteed to be signed.  All uses changed.
82110         (__mktime_internal): If overflow would occur when adding offset,
82111         don't add it.
82112
82113         Merge 'human' changes from coreutils.  Rewrite to support
82114         locale-specific notations like thousands separators.
82115         * lib/human.c: Simplify authorship notice.
82116         Include human.h immediately after config.h.
82117         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
82118         <limits.h>: Do not include, since human.h does.
82119         (SIZE_MAX, UINTMAX_MAX): New macros.
82120         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
82121         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
82122         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
82123         (power_letter): Renamed from suffixes.
82124         (generate_suffix_backwards): Remove.
82125         (adjust_value): Now takes int style (because of human.h changes)
82126         and long double value (for greater precision on some platforms).
82127         (group_number): New function.
82128         (human_readable): Use it.  Use integer options, not enum.
82129         Put the options before the sizes in the arg list.
82130         Support all the new options.
82131         The old human_readable function has been removed;
82132         use inttostr.h instead.
82133         (human_readable, default_block_size, humblock):
82134         Use uintmax_t, not int, for block sizes.
82135         (human_readable_inexact, block_size_types): Remove.
82136         (block_size_opts): New constant.
82137         (human_options): Renamed from human_block_size, with new signature
82138         that allows block sizes up to UINTMAX_MAX.  All callers changed.
82139         * lib/human.h: Add copyright and authorship notice.
82140         Include <limits.h> and <stdbool.h> unconditionally.
82141         (PARAMS): Remove.  All uses removed.
82142         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
82143         (enum human_inexact_style): Remove tag; now a nameless enum.
82144         (human_floor, human_ceiling, human_round_to_even): Now have
82145         values 2, 0, 1 rather than -1, 1, 0.
82146         (human_group_digits, human_suppress_point_zero, human_autoscale,
82147         human_base_1024, human_SI, human_B): New constants.
82148         (human_readable_inexact, human_block_size): Remove.
82149         (human_readable): Size args are now uintmax_t, not int.
82150         (human_options): New decl.
82151
82152         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
82153         unnecessary now that we assume C89 or better.  This change
82154         imported from coreutils.
82155
82156         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
82157         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
82158         in the 2003-05-30 sync from glibc.
82159
82160         .h files should stand alone, but we shouldn't include <sys/types.h>
82161         if we can get away with just <stddef.h>.
82162
82163         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
82164         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
82165         rather than <sys/types.h>, as we merely need size_t.
82166         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
82167         to get size_t.
82168         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
82169         Include <stdio.h>, to get FILE.
82170         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
82171         memcasecmp.h has included <stddef.h> and all we need is size_t.
82172         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
82173         our interface, instead of including <sys/types.h>
82174
82175 2003-06-04  Paul Eggert  <eggert@twinsun.com>
82176
82177         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
82178         now, as glibc mktime is buggy on non-glibc systems.
82179
82180 2003-06-03  Karl Berry  <karl@gnu.org>
82181
82182         * config/config.sub: update from prep.
82183
82184 2003-06-02  Paul Eggert  <eggert@twinsun.com>
82185
82186         [from coreutils]
82187         Fix some minor time-related bugs with POSIX time arguments.
82188         Some valid time stamps were being rejected (notably -1, and
82189         time stamps before 1900 on 64-bit hosts).  And some invalid
82190         time stamps were being accepted, e.g. September 31.
82191
82192         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
82193         that we can return (time_t) -1 successfully.
82194         * lib/posixtm.c: Likewise.
82195         [HAVE_STDBOOL_H]: Include <stdbool.h>.
82196         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
82197         (t): Remove static var.
82198         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
82199         of static var.  All uses changed.
82200         (year): Do not reject years before 1900; they can occur with
82201         64-bit time_t.
82202         (posix_time_parse): Do not check for out-of-range components;
82203         that is now the caller's responsibility, since our checks were
82204         only approximations.
82205         (posixtime): Use mktime to check for out-of-range components,
82206         since it knows them exactly.
82207         If mktime returns (time_t) -1, check whether an error actually occurred
82208         by invoking localtime on -1.
82209         (main) [TEST_POSIXTIME]: Check for input data errors, and report
82210         posixtime failures better.
82211         Improve the test data (in comments only).
82212
82213 2003-06-02  Karl Berry  <karl@gnu.org>
82214
82215         * config/mkinstalldirs (version): new variable.
82216         (--version): new option.
82217         (usage): improve message.
82218
82219 2003-05-30  Karl Berry  <karl@gnu.org>
82220
82221         * lib/mktime.c: update from libc.
82222
82223 2003-05-30  Bruno Haible  <bruno@clisp.org>
82224
82225         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
82226         * config/config.rpath: Upgrade to gettext-0.12.1.
82227
82228 2003-05-30  Bruno Haible  <bruno@clisp.org>
82229
82230         * m4/gettext.m4: Upgrade to gettext-0.12.1.
82231         * m4/nls.m4: New file, from gettext-0.12.1.
82232         * m4/po.m4: New file, from gettext-0.12.1.
82233         * m4/progtest.m4: Upgrade to gettext-0.12.1.
82234
82235 2003-05-30  Bruno Haible  <bruno@clisp.org>
82236
82237         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
82238         * lib/localcharset.h: Likewise.
82239         * lib/localcharset.c: Likewise.
82240
82241 2003-05-29  Karl Berry  <karl@gnu.org>
82242
82243         * config/config.rpath: update from gettext.
82244
82245 2003-05-28  Paul Eggert  <eggert@twinsun.com>
82246
82247         Assume the headers required for C89 freestanding compilers.
82248         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
82249         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
82250         * m4/human.m4 (gl_HUMAN): Likewise.
82251         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
82252         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
82253         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82254         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
82255         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82256         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
82257
82258 2003-05-28  Paul Eggert  <eggert@twinsun.com>
82259
82260         Assume the headers required for C89 freestanding compilers.
82261         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
82262         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
82263         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
82264         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
82265         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
82266         define, since <limits.h> is guaranteed to do that.
82267         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
82268         * lib/exclude.c: Include <stdbool.h> unconditionally.
82269         * lib/tempname.c: Include <stddef.h> unconditionally.
82270         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
82271         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
82272         <stddef.h> does that.
82273         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
82274         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
82275         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
82276         needed.
82277         * lib/xstrtol.c: Likewise.
82278         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
82279         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
82280
82281         * lib/addext.c (addext): Use assignment rather than cast, to avoid
82282         warnings on some platforms.
82283
82284         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
82285         arbitrarily.
82286
82287 2003-05-26  Jim Meyering  <jim@meyering.net>
82288
82289         Merge in a change from coreutils:
82290         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
82291         that is guaranteed to be `no'.  Use `no_such_member' to indicate
82292         that condition, rather than `-1' which is slightly misleading.
82293         Change the name of the cache variable to have the gl_ prefix.
82294         Prompted by a patch from Richard Dawe for DJGPP.
82295
82296 2003-05-24  Karl Berry  <karl@gnu.org>
82297
82298         * config/config.guess: update from prep.
82299
82300 2003-05-22  Karl Berry  <karl@gnu.org>
82301
82302         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
82303
82304 2003-05-20  Karl Berry  <karl@gnu.org>
82305
82306         * config/config.guess: update from prep.
82307
82308 2003-05-18  Karl Berry  <karl@gnu.org>
82309
82310         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
82311         might actually be set by the user.
82312
82313         * config/depcomp, install-sh, mdate-sh: update from automake.
82314
82315 2003-05-17  Bruno Haible  <bruno@clisp.org>
82316
82317         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
82318         invalid expansion for AC_EGREP_CPP.
82319         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
82320         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
82321         Suggested by Akim Demaille <akim@epita.fr> in
82322         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
82323
82324 2003-05-12  Jim Meyering  <jim@meyering.net>
82325
82326         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
82327         the space-padded-by-default conversion specifiers, %e, %k, %l.
82328
82329 2003-05-12  Bruno Haible  <bruno@clisp.org>
82330
82331         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
82332         the string is longer than 4 KB.
82333
82334 2003-05-11  Karl Berry  <karl@gnu.org>
82335
82336         * config/config.{guess,sub}: update from prep.
82337
82338 2003-05-09  Bruno Haible  <bruno@clisp.org>
82339
82340         * modules/error: Add m4/strerror_r.m4 to file list.
82341
82342 2003-05-03  Bruno Haible  <bruno@clisp.org>
82343
82344         Upgrade to Unicode-4.0.
82345         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
82346         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
82347         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
82348         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
82349         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
82350         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
82351         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
82352         Change width of U+E0100..U+E01EF from 1 to 0.
82353
82354 2003-04-25  Jim Meyering  <jim@meyering.net>
82355
82356         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
82357         of type size_t, not int.
82358
82359 2003-04-25  Bruno Haible  <bruno@clisp.org>
82360
82361         * lib/copy-file.c: Include <stddef.h>, for size_t.
82362
82363 2003-04-21  Paul Eggert  <eggert@twinsun.com>
82364
82365         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
82366         code which expansion is under static control.  Patch imported from
82367         Akim Demaille's patch to Bison; see
82368         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
82369
82370 2003-04-14  Bruno Haible  <bruno@clisp.org>
82371
82372         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
82373
82374 2003-04-11  Jim Meyering  <jim@meyering.net>
82375
82376         Merge changes from Coreutils.
82377
82378         2003-03-22  Jim Meyering  <jim@meyering.net>
82379
82380         * lib/strftime.c (widen): Cast alloca return value to proper type.
82381
82382         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
82383
82384         From GNU libc.
82385         * lib/strftime.c (my_strftime): Handle very large width
82386         specifications for numeric values correctly.  Improve checks for
82387         overflow.
82388
82389         2003-01-19  Jim Meyering  <jim@meyering.net>
82390
82391         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
82392         definitions.
82393         (nl_get_alt_digit) [! defined my_strftime]: Define.
82394         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
82395         _nl_get_alt_digit and _nl_get_walt_digit.
82396
82397         * lib/strftime.c (my_strftime): Merge in locale-related changes from
82398         libc. These changes have no effect outside of _LIBC.
82399
82400 2003-04-10  Bruno Haible  <bruno@clisp.org>
82401
82402         * modules/findprog: New file.
82403         * MODULES.html.sh (func_all_modules): Add it.
82404
82405 2003-04-10  Bruno Haible  <bruno@clisp.org>
82406
82407         * m4/findprog.m4: New file.
82408         * m4/eaccess.m4: New file.
82409
82410 2003-04-10  Bruno Haible  <bruno@clisp.org>
82411
82412         * lib/findprog.h: New file, from GNU gettext.
82413         * lib/findprog.c: New file, from GNU gettext.
82414
82415 2003-04-05  Jim Meyering  <jim@meyering.net>
82416
82417         Merge changes from Coreutils.
82418
82419         * lib/exclude.h (PARAMS): Remove definition and uses.
82420         * lib/exclude.c: Remove uses of `PARAMS'.
82421
82422         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
82423         Add test-cases for DOS filenames. Declare program_name.
82424         (main): Set up program_name.  Patch by Rich Dawe.
82425
82426         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
82427         error from mntctl.
82428         Use mntctl's return value to drive the entry-processing loop, since
82429         we can't rely on the value of the vmt_length member in the last
82430         entry.  On some systems doing so could result in exhausting
82431         virtual memory.  Based in part on a patch from Mike Jetzer.
82432
82433 2003-04-04  Bruno Haible  <bruno@clisp.org>
82434
82435         * modules/linebreak: New file.
82436         * MODULES.html.sh (func_all_modules): Add it.
82437
82438 2003-04-04  Bruno Haible  <bruno@clisp.org>
82439
82440         * m4/linebreak.m4: New file.
82441
82442 2003-04-04  Bruno Haible  <bruno@clisp.org>
82443
82444         * lib/linebreak.h: New file, from GNU gettext.
82445         * lib/linebreak.c: New file, from GNU gettext with slight
82446         modifications.
82447         * lib/lbrkprop.h: New file, from GNU gettext.
82448
82449 2003-04-03  Bruno Haible  <bruno@clisp.org>
82450
82451         * modules/utf8-ucs4: New file.
82452         * modules/utf16-ucs4: New file.
82453         * modules/ucs4-utf8: New file.
82454         * modules/ucs4-utf16: New file.
82455         * MODULES.html.sh (func_all_modules): Add them.
82456
82457 2003-04-03  Bruno Haible  <bruno@clisp.org>
82458
82459         * m4/utf-ucs4.m4: New file.
82460         * m4/ucs4-utf.m4: New file.
82461
82462 2003-04-03  Bruno Haible  <bruno@clisp.org>
82463
82464         * lib/utf8-ucs4.h: New file, from GNU gettext.
82465         * lib/utf16-ucs4.h: New file, from GNU gettext.
82466         * lib/ucs4-utf8.h: New file, from GNU gettext.
82467         * lib/ucs4-utf16.h: New file, from GNU gettext.
82468
82469 2003-04-02  Bruno Haible  <bruno@clisp.org>
82470
82471         * modules/binary-io: New file.
82472         * MODULES.html.sh (func_all_modules): Add it.
82473
82474 2003-04-02  Bruno Haible  <bruno@clisp.org>
82475
82476         * lib/binary-io.h: New file, from GNU gettext.
82477
82478 2003-04-01  Bruno Haible  <bruno@clisp.org>
82479
82480         * modules/pathname: New file.
82481         * MODULES.html.sh (func_all_modules): Add it.
82482
82483 2003-04-01  Bruno Haible  <bruno@clisp.org>
82484
82485         * lib/pathname.h: New file, from GNU gettext.
82486         * lib/concatpath.c: New file, from GNU gettext.
82487
82488 2003-03-30  Bruno Haible  <bruno@clisp.org>
82489
82490         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
82491
82492 2003-03-30  Bruno Haible  <bruno@clisp.org>
82493
82494         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
82495         function chown() doesn't exist.
82496
82497 2003-03-28  Bruno Haible  <bruno@clisp.org>
82498
82499         * modules/copy-file: New file.
82500         * MODULES.html.sh (func_all_modules): Add it.
82501
82502 2003-03-28  Bruno Haible  <bruno@clisp.org>
82503
82504         * m4/copy-file.m4: New file.
82505
82506 2003-03-28  Bruno Haible  <bruno@clisp.org>
82507
82508         * lib/copy-file.h: New file, from GNU gettext.
82509         * lib/copy-file.c: New file, from GNU gettext.
82510
82511 2003-03-18  Jim Meyering  <jim@meyering.net>
82512
82513         * lib/quote.c (quote_n): Fix typo in comment.
82514
82515 2003-03-18  Bruno Haible  <bruno@clisp.org>
82516
82517         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
82518         checking.
82519         * m4/onceonly_2_57.m4: Likewise.
82520
82521 2003-03-17  Bruno Haible  <bruno@clisp.org>
82522
82523         * m4/onceonly.m4: Require autoconf 2.54 or newer.
82524         (m4_quote): Remove macro.
82525         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
82526
82527 2003-03-14  Jim Meyering  <jim@meyering.net>
82528
82529         Merge changes from Coreutils.
82530         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
82531         to be const, in order to avoid warnings.
82532         (obstack_room): Likewise.
82533         (obstack_empty_p): Likewise.
82534
82535 2003-03-14  Bruno Haible  <bruno@clisp.org>
82536
82537         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
82538         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
82539
82540 2003-03-13  Paul Eggert  <eggert@twinsun.com>
82541
82542         Merge changes from Bison.
82543         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
82544         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
82545         when compiling Bison 1.875's `bitset bset = obstack_alloc
82546         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
82547         * lib/hash.c: Include <stdbool.h> unconditionally.
82548
82549 2003-03-13  Paul Eggert  <eggert@twinsun.com>
82550
82551         * m4/onceonly.m4 (m4_quote): New macro.
82552         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
82553         Quote AC_FOREACH variable-expansions properly.
82554
82555 2003-03-13  Paul Eggert  <eggert@twinsun.com>
82556
82557         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
82558
82559 2003-03-09  Paul Eggert  <eggert@twinsun.com>
82560
82561         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
82562         Reported by Bruce Becker; see:
82563         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
82564
82565 2003-03-03  Paul Eggert  <eggert@twinsun.com>
82566             Bruno Haible  <bruno@clisp.org>
82567
82568         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
82569         Reported by John Hughes, see
82570         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
82571
82572 2003-02-20  Bruno Haible  <bruno@clisp.org>
82573
82574         * MODULES.html.sh (func_all_modules): Add poll.
82575
82576 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
82577
82578         * modules/poll: New file.
82579
82580 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
82581
82582         * lib/poll_.h: New file.
82583         * lib/poll.c: New file.
82584
82585 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
82586
82587         * m4/poll.m4: New file.
82588
82589 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
82590
82591         * modules/mathl: New file.
82592
82593 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
82594
82595         * lib/mathl.h: New file.
82596         * lib/acosl.c: New file.
82597         * lib/asinl.c: New file.
82598         * lib/atanl.c: New file.
82599         * lib/ceill.c: New file.
82600         * lib/cosl.c: New file.
82601         * lib/expl.c: New file.
82602         * lib/floorl.c: New file.
82603         * lib/frexpl.c: New file.
82604         * lib/ldexpl.c: New file.
82605         * lib/logl.c: New file.
82606         * lib/sincosl.c: New file.
82607         * lib/sinl.c: New file.
82608         * lib/sqrtl.c: New file.
82609         * lib/tanl.c: New file.
82610         * lib/trigl.c: New file.
82611         * lib/trigl.h: New file.
82612
82613 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
82614
82615         * m4/mathl.m4: New file.
82616
82617 2003-02-18  Bruno Haible  <bruno@clisp.org>
82618
82619         * MODULES.html.sh (func_all_modules): Add mathl.
82620
82621 2003-02-17  Bruno Haible  <bruno@clisp.org>
82622
82623         * modules/mkdtemp: New module.
82624         * MODULES.html.sh (func_all_modules): Add it.
82625
82626 2003-02-17  Bruno Haible  <bruno@clisp.org>
82627
82628         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
82629
82630 2003-02-17  Bruno Haible  <bruno@clisp.org>
82631
82632         * lib/mkdtemp.h: New file, from GNU gettext.
82633         * lib/mkdtemp.c: New file, from GNU gettext.
82634
82635 2003-02-02  Jim Meyering  <jim@meyering.net>
82636
82637         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
82638         e.g. glibc-2.2.93.
82639
82640 2003-01-31  Bruno Haible  <bruno@clisp.org>
82641
82642         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
82643         'rpl_rename'.
82644         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
82645         'rpl_strnlen'.
82646         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
82647         'rpl_strtod'.
82648         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
82649         'rpl_utime'.
82650
82651 2003-01-31  Bruno Haible  <bruno@clisp.org>
82652
82653         * lib/rename.c: #undef rename before defining rpl_rename.
82654         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
82655
82656 2003-01-30  Bruno Haible  <bruno@clisp.org>
82657
82658         * modules/vasnprintf, modules/vasprintf: New modules.
82659         * MODULES.html.sh (func_all_modules): Add them.
82660
82661 2003-01-30  Bruno Haible  <bruno@clisp.org>
82662
82663         * m4/signed.m4: New file, from GNU gettext.
82664         * m4/longdouble.m4: New file, from GNU gettext.
82665         * m4/wchar_t.m4: New file, from GNU gettext.
82666         * m4/wint_t.m4: New file, from GNU gettext.
82667         * m4/vasnprintf.m4: New file.
82668         * m4/vasprintf.m4: New file.
82669
82670 2003-01-30  Bruno Haible  <bruno@clisp.org>
82671
82672         * lib/printf-args.h: New file, from GNU gettext.
82673         * lib/printf-args.c: New file, from GNU gettext.
82674         * lib/printf-parse.h: New file, from GNU gettext.
82675         * lib/printf-parse.c: New file, from GNU gettext.
82676         * lib/vasnprintf.h: New file, from GNU gettext.
82677         * lib/vasnprintf.c: New file, from GNU gettext.
82678         * lib/asnprintf.c: New file, from GNU gettext.
82679         * lib/vasprintf.h: New file, from GNU gettext with modifications.
82680         * lib/vasprintf.c: New file, from GNU gettext.
82681         * lib/asprintf.c: New file, from GNU gettext.
82682
82683 2003-01-29  Bruno Haible  <bruno@clisp.org>
82684
82685         * modules/stpncpy: New module.
82686         * MODULES.html.sh (func_all_modules): Add it.
82687
82688 2003-01-29  Bruno Haible  <bruno@clisp.org>
82689
82690         * m4/stpncpy.m4: New file.
82691
82692 2003-01-29  Bruno Haible  <bruno@clisp.org>
82693
82694         * lib/stpncpy.h: New file, from GNU gettext with modifications.
82695         * lib/stpncpy.c: New file, from GNU gettext with modifications.
82696
82697 2003-01-28  Bruno Haible  <bruno@clisp.org>
82698
82699         * modules/c-ctype: New module.
82700         * MODULES.html.sh (func_all_modules): Add it.
82701
82702 2003-01-28  Bruno Haible  <bruno@clisp.org>
82703
82704         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
82705         Paul Eggert.
82706         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
82707         Paul Eggert.
82708
82709 2003-01-27  Bruno Haible  <bruno@clisp.org>
82710
82711         * modules/xsetenv: New module.
82712         * MODULES.html.sh (func_all_modules): Add it.
82713
82714 2003-01-27  Bruno Haible  <bruno@clisp.org>
82715
82716         * lib/xsetenv.h: New file, from GNU gettext.
82717         * lib/xsetenv.c: New file, from GNU gettext.
82718
82719 2003-01-23  Jim Meyering  <jim@meyering.net>
82720
82721         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
82722         from working on systems without dirfd (at least Irix and OSF1/Tru64).
82723
82724 2003-01-23  Bruno Haible  <bruno@clisp.org>
82725
82726         * modules/minmax: New module.
82727         * MODULES.html.sh (func_all_modules): Add it.
82728
82729 2003-01-23  Bruno Haible  <bruno@clisp.org>
82730
82731         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
82732         Eggert.
82733
82734 2003-01-22  Bruno Haible  <bruno@clisp.org>
82735
82736         * modules/exit: New module.
82737         * MODULES.html.sh (func_all_modules): Add it.
82738
82739 2003-01-22  Bruno Haible  <bruno@clisp.org>
82740
82741         * lib/exit.h: New file, from GNU gettext.
82742
82743 2003-01-19  Bruno Haible  <bruno@clisp.org>
82744
82745         * gnulib-tool: Recognize option --extract-maintainer.
82746         (func_get_maintainer): New function.
82747         * modules/*: Add Maintainer entry.
82748
82749 2003-01-16  Jim Meyering  <jim@meyering.net>
82750
82751         * m4/regex.m4: The `regex' struct is both input and output.
82752         Initialize it before each use.  Patch by Tim Waugh.
82753
82754 2003-01-16  Bruno Haible  <bruno@clisp.org>
82755
82756         * MODULES.html.sh: Add a table of contents. Add the module name as
82757         leftmost column. Add hyperlinks.
82758
82759 2003-01-15  Bruno Haible  <bruno@clisp.org>
82760
82761         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
82762
82763 2003-01-15  Bruno Haible  <bruno@clisp.org>
82764
82765         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
82766         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
82767         suffix.
82768
82769 2003-01-15  Bruno Haible  <bruno@clisp.org>
82770
82771         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
82772
82773 2003-01-15  Bruno Haible  <bruno@clisp.org>
82774
82775         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
82776         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
82777
82778 2003-01-14  Jim Meyering  <jim@meyering.net>
82779
82780         * lib/same.c (same_name): Tweak a comment.
82781
82782 2003-01-14  Bruno Haible  <bruno@clisp.org>
82783
82784         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
82785         when a string comparison is sufficient.
82786
82787 2003-01-14  Bruno Haible  <bruno@clisp.org>
82788
82789         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
82790         'unsigned int'.
82791
82792 2003-01-14  Bruno Haible  <bruno@clisp.org>
82793
82794         * lib/hash-pjw.c: Add comment about low quality of this function.
82795
82796 2003-01-13  Bruno Haible  <bruno@clisp.org>
82797
82798         * modules/stpcpy: Distribute lib/stpcpy.h.
82799         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
82800
82801 2003-01-13  Bruno Haible  <bruno@clisp.org>
82802
82803         * modules/*: Add a description.
82804         * modules/strpbrk: Fix Makefile.am snippet.
82805         * modules/strtoimax: Fix dependencies.
82806         * modules/strtoumax: Likewise.
82807
82808 2003-01-13  Bruno Haible  <bruno@clisp.org>
82809
82810         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
82811         * modules/alloca (Makefile.am): All object files depend on alloca.h.
82812         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
82813
82814 2003-01-13  Bruno Haible  <bruno@clisp.org>
82815
82816         * gnulib-tool (func_create_testdir): Store config/* files in the main
82817         directory.
82818         * config.rpath: Move to ...
82819         * config/config.rpath: ... here.
82820         * modules/gettext: Contains config/config.rpath, not config.rpath.
82821         * modules/iconv: Likewise.
82822
82823 2003-01-12  Paul Eggert  <eggert@twinsun.com>
82824
82825         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
82826         to avoid collisions with libcurses and libreadline.
82827
82828         * m4/getstr.m4: Remove.
82829         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
82830
82831 2003-01-12  Paul Eggert  <eggert@twinsun.com>
82832
82833         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
82834         to avoid collisions with libcurses and libreadline.
82835
82836         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
82837         * lib/getstr.h, getstr.c: Remove.
82838         * lib/getline.c: Include "getline.h", to check interface.
82839         Move body of old getstr.c here: this defines MIN_CHUNK and
82840         declares getdelim2, which is renamed from getstr.
82841         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
82842
82843         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
82844         All uses changed.
82845         * lib/linebuffer.h: Likewise.
82846         (readline): Remove backward-compatibility macro.
82847
82848 2003-01-12  Paul Eggert  <eggert@twinsun.com>
82849
82850         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
82851         to avoid collisions with libcurses and libreadline.
82852         * getstr: Remove.
82853         * MODULES.html.sh: Remove getstr.
82854         * modules/getline: Depend on unlocked-io, not getstr.
82855
82856 2003-01-12  Jim Meyering  <jim@meyering.net>
82857
82858         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
82859
82860 2003-01-10  Bruno Haible  <bruno@clisp.org>
82861
82862         * modules/alloca: Change Makefile.am requirements. Simplify Include
82863         requirements. Add lib/alloca_.h to file list.
82864
82865 2003-01-10  Bruno Haible  <bruno@clisp.org>
82866
82867         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
82868
82869 2003-01-10  Bruno Haible  <bruno@clisp.org>
82870
82871         * lib/alloca_.h: New file.
82872         * lib/getdate.y: Unconditionally include alloca.h.
82873         * lib/makepath.c: Likewise.
82874         * lib/setenv.c: Likewise.
82875         * lib/userspec.c: Likewise.
82876
82877 2003-01-09  Karl Berry  <karl@gnu.org>
82878
82879         * MODULES.html.sh: include `dirname $0` in PATH, to find
82880         gnulib-tool.
82881
82882 2003-01-09  Bruno Haible  <bruno@clisp.org>
82883
82884         * modules/stdbool: Change configure.ac, Makefile.am requirements.
82885         Simplify Include requirements. Add lib/stdbool.h.in to file list.
82886
82887 2003-01-09  Bruno Haible  <bruno@clisp.org>
82888
82889         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
82890
82891 2003-01-09  Bruno Haible  <bruno@clisp.org>
82892
82893         * lib/stdbool.h.in: New file.
82894
82895 2003-01-09  Bruno Haible  <bruno@clisp.org>
82896
82897         * gnulib-tool (func_all_modules): Ignore files ending in ~.
82898         * MODULES.html.sh: Likewise.
82899
82900 2003-01-08  Jim Meyering  <jim@meyering.net>
82901
82902         * lib/full-write.c: Undefine and define-away `const' after inclusion
82903         of errno.h, not before.  Suggestion from Bruno Haible.
82904
82905 2003-01-08  Bruno Haible  <bruno@clisp.org>
82906
82907         * modules/full-read: Depend on full-write.
82908
82909 2003-01-08  Bruno Haible  <bruno@clisp.org>
82910
82911         * lib/safe-read.c: Include specification header first, to ensure its
82912         selfcontainedness.
82913         * lib/full-write.c: Likewise.
82914
82915 2003-01-07  Jim Meyering  <jim@meyering.net>
82916
82917         * lib/full-write.c: Rework so that it may serve to define full_read,
82918         too.
82919         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
82920
82921 2003-01-07  Bruno Haible  <bruno@clisp.org>
82922
82923         * lib/strtoimax.c: Include <stdint.h> as an alternative to
82924         <inttypes.h>.
82925         * lib/xstrtol.h: Likewise.
82926         * lib/xstrtoimax.c: Likewise.
82927         * lib/xstrtoumax.c: Likewise.
82928         * lib/human.h: Likewise.
82929
82930         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
82931         on systems that have <inttypes.h> but not <stdint.h>.
82932
82933 2003-01-07  Bruno Haible  <bruno@clisp.org>
82934
82935         * MODULES.html.sh: Add copyright notice.
82936         (missed_files): Omit CVS directory entries.
82937         (func_module): Make it work with sed-3.02.
82938         * MODULES.txt: Remove file.
82939
82940 2003-01-06  Jim Meyering  <jim@meyering.net>
82941
82942         * lib/version-etc.c: Update year in translatable copyright string.
82943
82944 2003-01-03  Karl Berry  <karl@gnu.org>
82945
82946         * config/config.{guess,sub}: update from prep.
82947
82948 2003-01-02  Karl Berry  <karl@gnu.org>
82949
82950         * doc/COPYING.DOC: belatedly updated to 1.2.
82951
82952 2003-01-01  Karl Berry  <karl@gnu.org>
82953
82954         * gnulib-tool (func_verify_module): report module name $module in
82955         error message, not $1.
82956         * gnulib-tool (create-testdir): don't complain if destdir couldn't
82957         be created, only if it doesn't exist.
82958         * gnulib-tool (last_checkin_date): don't expand the $Date here.
82959
82960 2002-12-31  Paul Eggert  <eggert@twinsun.com>
82961
82962         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
82963
82964 2002-12-31  Paul Eggert  <eggert@twinsun.com>
82965
82966         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
82967         memcmp if strcoll doesn't work.
82968
82969 2002-12-31  Bruno Haible  <bruno@clisp.org>
82970
82971         * lib/utime.c (utime_null): No need to call ftruncate if the file was
82972         nonempty.
82973
82974 2002-12-31  Bruno Haible  <bruno@clisp.org>
82975
82976         * lib/memcoll.c (STRCOLL): New macro.
82977         (memcoll): Use it.
82978
82979 2002-12-31  Bruno Haible  <bruno@clisp.org>
82980
82981         * lib/localcharset.h: New file.
82982         * lib/localcharset.c: Include it.
82983         * lib/unicodeio.c: Likewise.
82984
82985 2002-12-31  Bruno Haible  <bruno@clisp.org>
82986
82987         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
82988         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
82989
82990 2002-12-31  Bruno Haible  <bruno@clisp.org>
82991
82992         * lib/getline.h: Include <stddef.h>, for size_t.
82993
82994         * lib/unicodeio.h: Include <stddef.h>, for size_t.
82995         * lib/unicodeio.c: Don't include <stddef.h>.
82996
82997 2002-12-31  Bruno Haible  <bruno@clisp.org>
82998
82999         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
83000         HAVE_TM_ZONE.
83001
83002 2002-12-24  Karl Berry  <karl@gnu.org>
83003
83004         * config/config.guess: update from prep.
83005
83006 2002-12-24  Bruno Haible  <bruno@clisp.org>
83007
83008         General infrasructure.
83009         * m4/README: Rewritten.
83010         * m4/onceonly.m4: New file.
83011         * m4/onceonly_2_57.m4: New file.
83012
83013         Module atexit.
83014         * m4/atexit.m4: New file.
83015
83016         Module strtod.
83017         * m4/strtod.m4: New file.
83018
83019         Module strtol.
83020         * m4/strtol.m4: New file.
83021
83022         Module strtoul.
83023         * m4/strtoul.m4: New file.
83024
83025         Module memchr.
83026         * m4/memchr.m4: New file.
83027
83028         Module memcmp.
83029         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
83030         (jm_FUNC_MEMCMP): Invoke it.
83031
83032         Module memcpy.
83033         * m4/memcpy.m4: New file.
83034
83035         Module memmove.
83036         * m4/memmove.m4: New file.
83037
83038         Module memset.
83039         * m4/memset.m4: New file.
83040
83041         Module strcspn.
83042         * m4/strcspn.m4: New file.
83043
83044         Module strpbrk.
83045         * m4/strpbrk.m4: New file.
83046
83047         Module strstr.
83048         * m4/strstr.m4: New file.
83049
83050         Module strerror.
83051         * m4/strerror.m4: New file.
83052
83053         Module mktime.
83054         * m4/mktime.m4: Renamed from jm-mktime.m4.
83055         (gl_PREREQ_MKTIME): New macro.
83056         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
83057
83058         Module malloc.
83059         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
83060         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
83061         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
83062
83063         Module realloc.
83064         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
83065         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
83066         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
83067
83068         Module strftime.
83069         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
83070         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
83071         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
83072         gl_TM_GMTOFF.
83073         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
83074
83075         Module xalloc.
83076         * m4/xalloc.m4: New file.
83077
83078         Module alloca.
83079         * m4/alloca.m4: New file.
83080
83081         Module putenv.
83082         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
83083         (jm_FUNC_PUTENV): Invoke it.
83084
83085         Module setenv.
83086         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
83087         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
83088         when invoked twice.
83089         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
83090         gt_FUNC_SETENV.
83091
83092         Module memrchr.
83093         * m4/memrchr.m4: New file.
83094
83095         Module stpcpy.
83096         * m4/stpcpy.m4: New file.
83097
83098         Module strcase.
83099         * m4/strcase.m4: New file.
83100
83101         Module strdup.
83102         * m4/strdup.m4: New file.
83103
83104         Module strnlen.
83105         * m4/strnlen.m4: New file.
83106
83107         Module strndup.
83108         * m4/strndup.m4: New file.
83109
83110         Module xstrtod.
83111         * m4/xstrtod.m4: New file.
83112
83113         Module xstrtol.
83114         * m4/xstrtol.m4: New file.
83115
83116         Module getdate.
83117         * m4/getdate.m4: New file.
83118
83119         Module unlocked-io.
83120         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
83121         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
83122         * m4/jm-glibc-io.m4n: Remove file.
83123
83124         Module long-options.
83125         * m4/long-options.m4: New file.
83126
83127         Module md5.
83128         * m4/md5.m4: New file.
83129
83130         Module sha.
83131         * m4/sha.m4: New file.
83132
83133         Module getstr.
83134         * m4/getstr.m4: New file.
83135
83136         Module getline.
83137         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
83138         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
83139         <sys/types.h>, for size_t. Use the function name gnu_getline, not
83140         simply getline. Infoke gl_PREREQ_GETLINE.
83141
83142         Module obstack.
83143         * m4/obstack.m4: New file.
83144
83145         Module hash.
83146         * m4/hash.m4: New file.
83147
83148         Module readtokens.
83149         * m4/readtokens.m4: New file.
83150
83151         Module strverscmp.
83152         * m4/strverscmp.m4: New file.
83153
83154         Module stdbool.
83155         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
83156         OSF/1.
83157
83158         Module strtoll.
83159         * m4/strtoll.m4: New file.
83160
83161         Module strtoull.
83162         * m4/strtoull.m4: New file.
83163
83164         Module strtoimax.
83165         * m4/strtoimax.m4: New file.
83166
83167         Module strtoumax.
83168         * m4/strtoumax.m4: New file.
83169
83170         Module xstrtoimax.
83171         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
83172         jm_AC_PREREQ_XSTRTOIMAX.
83173         Moved the strtol prerequisites to strtol.m4.
83174         Moved the strtoll prerequisites to strtoll.m4.
83175         Moved the strtoimax prerequisites to strtoimax.m4.
83176
83177         Module xstrtoumax.
83178         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
83179         jm_AC_PREREQ_XSTRTOUMAX.
83180         Moved the strtoul prerequisites to strtoul.m4.
83181         Moved the strtoull prerequisites to strtoull.m4.
83182         Moved the strtoumax prerequisites to strtoumax.m4.
83183
83184         Module chown.
83185         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
83186         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
83187
83188         Module dup2.
83189         * m4/dup2.m4: New file.
83190
83191         Module ftruncate.
83192         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
83193         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
83194
83195         Module getgroups.
83196         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
83197         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
83198
83199         Module gettimeofday.
83200         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
83201         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
83202         gl_PREREQ_GETTIMEOFDAY.
83203
83204         Module mkdir.
83205         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
83206         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
83207
83208         Module mkstemp.
83209         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
83210         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
83211         jm_AC_TYPE_UINTMAX_T.
83212         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
83213
83214         Module stat.
83215         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
83216         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
83217
83218         Module lstat.
83219         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
83220         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
83221
83222         Module timespec.
83223         * m4/timespec.m4 (gl_TIMESPEC): New macro.
83224         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
83225         * m4/st_mtim.m4: Indentation.
83226
83227         Module nanosleep.
83228         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
83229         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
83230         gl_PREREQ_NANOSLEEP.
83231
83232         Module regex.
83233         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
83234         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
83235         (gl_REGEX): New macro.
83236
83237         Module rename.
83238         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
83239         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
83240
83241         Module rmdir.
83242         * m4/rmdir.m4: New file.
83243
83244         Module utime.
83245         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
83246         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
83247         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
83248
83249         Module dirname.
83250         * m4/dirname.m4: New file.
83251
83252         Module getopt.
83253         * m4/getopt.m4: New file.
83254
83255         Module unistd-safer.
83256         * m4/unistd-safer.m4: New file.
83257
83258         Module fnmatch.
83259         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
83260         declaration.
83261         (gl_PREREQ_FNMATCH_EXTRA): New macro.
83262         (gl_FUNC_FNMATCH_POSIX): New macro.
83263         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
83264         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
83265         simply fnmatch.
83266
83267         Module exclude.
83268         * m4/exclude.m4: New file.
83269
83270         Module human.
83271         * m4/human.m4: New file.
83272
83273         Module acl.
83274         * m4/acl.m4: Nop.
83275
83276         Module backupfile.
83277         * m4/backupfile.m4: New file.
83278         * m4/d-ino.m4: Indentation.
83279
83280         Module fsusage.
83281         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
83282         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
83283         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
83284
83285         Module dirfd.
83286         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
83287         requirements.
83288
83289         Module euidaccess.
83290         * m4/euidaccess.m4: New file.
83291
83292         Module file-type.
83293         * m4/file-type.m4: New file.
83294
83295         Module fileblocks.
83296         * m4/fileblocks.m4: New file.
83297
83298         Module filemode.
83299         * m4/filemode.m4: New file.
83300
83301         Module isdir.
83302         * m4/isdir.m4: New file.
83303
83304         Module lchown.
83305         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
83306         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
83307
83308         Module makepath.
83309         * m4/makepath.m4: New file.
83310
83311         Module modechange.
83312         * m4/modechange.m4: New file.
83313
83314         Module mountlist.
83315         * m4/mountlist.m4: New file.
83316         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
83317         Indentation.
83318
83319         Module path-concat.
83320         * m4/path-concat.m4: New file.
83321
83322         Module pathmax.
83323         * m4/pathmax.m4: New file.
83324
83325         Module same.
83326         * m4/same.m4: New file.
83327
83328         Module save-cwd.
83329         * m4/save-cwd.m4: New file.
83330
83331         Module savedir.
83332         * m4/savedir.m4: New file.
83333
83334         Module xgetcwd.
83335         * m4/xgetcwd.m4: New file.
83336         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
83337
83338         Module xreadlink.
83339         * m4/xreadlink.m4: New file.
83340
83341         Module safe-read.
83342         * m4/safe-read.m4: New file.
83343
83344         Module safe-write.
83345         * m4/safe-write.m4: New file.
83346
83347         Module closeout.
83348         * m4/closeout.m4: New file.
83349
83350         Module stdio-safer.
83351         * m4/stdio-safer.m4: New file.
83352
83353         Module getpass.
83354         * m4/getpass.m4: New file.
83355
83356         Module getugroups.
83357         * m4/getugroups.m4: New file.
83358
83359         Module group-member.
83360         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
83361         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
83362
83363         Module idcache.
83364         * m4/idcache.m4: New file.
83365
83366         Module userspec.
83367         * m4/userspec.m4: New file.
83368
83369         Module gettime.
83370         * m4/clock_time.m4: New file.
83371         * m4/gettime.m4: New file.
83372
83373         Module settime.
83374         * m4/settime.m4: New file.
83375
83376         Module posixtm.
83377         * m4/posixtm.m4: New file.
83378
83379         Module gethostname.
83380         * m4/gethostname.m4: New file.
83381
83382         Module canon-host.
83383         * m4/canon-host.m4: New file.
83384
83385         Module gettext.
83386         * m4/codeset.m4: New file, from gettext-0.11.5.
83387         * m4/gettext.m4: New file, from gettext-0.11.5.
83388         * m4/glibc21.m4: New file, from gettext-0.11.5.
83389         * m4/iconv.m4: New file, from gettext-0.11.5.
83390         * m4/intdiv0.m4: New file, from gettext-0.11.5.
83391         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
83392         * m4/inttypes.m4: New file, from gettext-0.11.5.
83393         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
83394         * m4/isc-posix.m4: New file, from gettext-0.11.5.
83395         * m4/lcmessage.m4: New file, from gettext-0.11.5.
83396         * m4/lib-ld.m4: New file, from gettext-0.11.5.
83397         * m4/lib-link.m4: New file, from gettext-0.11.5.
83398         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
83399         * m4/progtest.m4: New file, from gettext-0.11.5.
83400         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
83401         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
83402         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
83403
83404         Module localcharset.
83405         * m4/localcharset.m4: New file.
83406
83407         Module hard-locale.
83408         * m4/hard-locale.m4: New file.
83409
83410         Module mbswidth.
83411         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
83412         onceonly macros.
83413         * m4/mbrtowc.m4: Add comment.
83414
83415         Module memcasecmp.
83416         * m4/memcasecmp.m4: New file.
83417
83418         Module memcoll.
83419         * m4/memcoll.m4: New file.
83420
83421         Module unicodeio.
83422         * m4/unicodeio.m4: New file.
83423
83424         Module rpmatch.
83425         * m4/rpmatch.m4: New file.
83426
83427         Module yesno.
83428         * m4/yesno.m4: New file.
83429
83430         Module exitfail.
83431         * m4/exitfail.m4: New file.
83432
83433         Module c-stack.
83434         * m4/c-stack.m4 (gl_C_STACK): New macro.
83435         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
83436
83437         Module error.
83438         * m4/error.m4 (gl_ERROR): New macro.
83439         (jm_PREREQ_ERROR): Use onceonly macros.
83440
83441         Module fatal.
83442         * m4/fatal.m4: New file.
83443
83444         Module getloadavg.
83445         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
83446         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
83447
83448         Module getpagesize.
83449         * m4/getpagesize.m4: New file.
83450
83451         Module getusershell.
83452         * m4/getusershell.m4: New file.
83453
83454         Module physmem.
83455         * m4/physmem.m4: New file.
83456
83457         Module posixver.
83458         * m4/posixver.m4: New file.
83459
83460         Module quotearg.
83461         * m4/quotearg.m4: New file.
83462
83463         Module quote.
83464         * m4/quote.m4: New file.
83465
83466         Module readutmp.
83467         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
83468
83469         Module sig2str.
83470         * m4/sig2str.m4: New file.
83471
83472         Other.
83473         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
83474         ulonglong.m4.
83475         * m4/intmax_t.m4: New file.
83476         * m4/d-type.m4: Indentation.
83477         * m4/jm-macros.m4: Update.
83478         * m4/prereq.m4 (jm_PREREQ): Update.
83479         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
83480         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
83481         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
83482         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
83483         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
83484         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
83485         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
83486         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
83487         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
83488         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
83489         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
83490         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
83491         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
83492         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
83493         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
83494         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
83495         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
83496         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
83497         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
83498
83499 2002-12-24  Bruno Haible  <bruno@clisp.org>
83500
83501         * MODULES.txt: Update according to m4/ changes.
83502
83503         Module gettext.
83504         * config.rpath: New file, from gettext-0.11.5.
83505
83506         * modules/*: New module descriptions.
83507         * gnulib-tool: New file.
83508         * MODULES.html.sh: New file.
83509
83510 2002-12-21  Karl Berry  <karl@gnu.org>
83511
83512         * doc/fdl.texi: update to version 1.2.
83513
83514 2002-12-19  Karl Berry  <karl@gnu.org>
83515
83516         * config/config.guess: update from prep.
83517
83518 2002-12-18  Bruno Haible  <bruno@clisp.org>
83519
83520         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
83521         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
83522
83523 2002-12-17  Bruno Haible  <bruno@clisp.org>
83524
83525         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
83526         stdlib.h, string.h.
83527
83528 2002-12-17  Bruno Haible  <bruno@clisp.org>
83529
83530         * lib/canon-host.c (strdup): Remove unused declaration.
83531
83532         * lib/fsusage.c: Include full_read.h.
83533         (get_fs_usage): Use full_read instead of safe_read.
83534
83535         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
83536
83537 2002-12-12  Karl Berry  <karl@gnu.org>
83538
83539         * config/config.guess: update from prep.
83540
83541 2002-12-11  Bruno Haible  <bruno@clisp.org>
83542
83543         * m4/setenv.m4: New file, from gettext-0.11.5.
83544
83545 2002-12-11  Bruno Haible  <bruno@clisp.org>
83546
83547         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
83548         not unsetenv().
83549         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
83550         modifications:
83551
83552         2002-12-11  Bruno Haible  <bruno@clisp.org>
83553
83554                 * setenv.c (alloca): Fall back to malloc.
83555                 (freea): New macro.
83556                 (setenv): Use freea() to free memory allocated with alloca().
83557
83558         2002-11-13  Bruno Haible  <bruno@clisp.org>
83559
83560                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
83561                 function declarations.
83562                 * unsetenv.c (unsetenv): Likewise.
83563
83564         2002-03-04  Bruno Haible  <bruno@clisp.org>
83565
83566                 Portability to AIX 4.3.3.
83567                 * unsetenv.c: New file, extracted from setenv.c.
83568                 * setenv.c: Move the unsetenv() function to unsetenv.c.
83569
83570         2001-12-20  Bruno Haible  <bruno@clisp.org>
83571
83572                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
83573                 use malloc instead. For SunOS 4.
83574
83575         2001-12-11  Bruno Haible  <bruno@clisp.org>
83576
83577                 * setenv.c: Declare alloca.
83578                 (compar_fn_t): New typedef.
83579                 (KNOWN_VALUE, STORE_VALUE): Use it.
83580
83581         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
83582         setenv.h.
83583
83584 2002-12-10  Paul Eggert  <eggert@twinsun.com>
83585
83586         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
83587         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
83588         Choose values that are less likely to collide with system fnmatch
83589         options.
83590         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
83591         defined (e.g., a pure POSIX system).
83592         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
83593         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
83594
83595 2002-12-06  Paul Eggert  <eggert@twinsun.com>
83596
83597         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
83598         a pain in practice to deal with generated m4 files.  This change
83599         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
83600
83601         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
83602         and jm-glibc-io.m4, as they are no longer a special case.
83603         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
83604         kludge and the auto-generation stuff.  Check only whether the
83605         functions are declared, not whether they exist, since older hosts
83606         that don't declare the functions can't use the optimization anyway.
83607
83608 2002-12-06  Jim Meyering  <jim@meyering.net>
83609
83610         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
83611
83612         Merge in changes from libc's misc/error.c, in preparation
83613         for the merge of gnulib's changes back into libc.
83614
83615         * lib/error.c (_): Define only if not already defined.
83616         Move definition to follow all #include directives.
83617         Include unlocked-io.h only if !_LIBC.
83618         [_LIBC]: Include <libio/libioP.h>.
83619         [USE_IN_LIBIO]: Include <libio/iolibio.h>
83620         (fflush): Tweak definition to use INTUSE.
83621         (putc): Define.
83622
83623 2002-12-05  Paul Eggert  <eggert@twinsun.com>
83624
83625         * lib/alloca.c [defined emacs]: Include "lisp.h".
83626         (xalloc_die) [defined emacs]: New macro.
83627         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
83628         [! defined emacs]: Include <xalloc.h>.
83629         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
83630         (pointer): Typedef to POINTER_TYPE *.
83631         (malloc): Remove decl; we now always use xmalloc.
83632         (alloca): Use old-style definition, since Emacs needs this.
83633         Check for arithmetic overflow when computing combined size.
83634
83635 2002-12-04  Paul Eggert  <eggert@twinsun.com>
83636
83637         Do not generate unlocked-io.h automatically, since it's easier to
83638         maintain it by hand.
83639
83640         * lib/unlocked-io.h: New file, from GNU diffutils,
83641         but with proper copyright notice and attribution.
83642         * lib/gen-uio: Remove.
83643         * lib/Makefile.am: Add copyright notice.
83644         (libfetish_a_SOURCES): Add unlocked-io.h.
83645         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
83646         (DISTCLEANFILES, io_functions): Remove macros.
83647         (EXTRA_DIST): Remove gen_uio.
83648         (unlocked-io.h): Remove rule.
83649
83650 2002-12-04  Jim Meyering  <jim@meyering.net>
83651
83652         Reflect the fact that stat.c and lstat.c are no longer generated.
83653         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
83654         (DISTCLEANFILES): Likewise.
83655         (EXTRA_DIST): Likewise.
83656         (all_local): Don't depend on stat.c or lstat.c.
83657         (stat.c, lstat.c): Remove rules.
83658         (EXTRA_DIST): Remove xstat.in.
83659
83660         * lib/xstat.in: Remove file.  Contents moved into stat.c.
83661         * lib/stat.c: New file.  Contents mostly from xstat.in.
83662         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
83663         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
83664
83665         * lib/safe-read.c: Rework so that it may serve to define safe_write,
83666         too.
83667         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
83668
83669 2002-12-03  Jim Meyering  <jim@meyering.net>
83670
83671         * lib/safe-read.c, safe-write.c: Change variable names and comments,
83672         but not semantics, to minimize the differences between these two files.
83673         (safe_read): Change comment to mention SAFE_READ_ERROR.
83674
83675         * lib/safe-read.c (IS_EINTR): Define.
83676         (safe_read): Use IS_EINTR in place of in-function cpp directives.
83677
83678 2002-12-02  Jim Meyering  <jim@meyering.net>
83679
83680         * lib/safe-read.c (EINTR): Define.
83681         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
83682         (INT_MAX): Provide fallback.
83683         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
83684
83685         * lib/safe-read.h (SAFE_READ_ERROR): Define.
83686
83687 2002-12-02  Bruno Haible  <bruno@clisp.org>
83688
83689         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
83690         Define, taken from safe-read.c.
83691         (INT_MAX): Provide fallback.
83692         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
83693         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
83694
83695         * lib/safe-read.c (EINTR): Remove definition.
83696         (safe_read): Don't use EINTR if it is absent.
83697
83698 2002-12-01  Jim Meyering  <jim@meyering.net>
83699
83700         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
83701         zero.
83702         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
83703
83704 2002-11-27  Paul Eggert  <eggert@twinsun.com>
83705
83706         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
83707         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
83708         with `if (! (value < limit)) abort ();', for readability.
83709
83710 2002-11-26  Karl Berry  <karl@gnu.org>
83711
83712         * lib/strdup.c: copy from libc again, with jim's ok.
83713         * lib/.cppi-disable: re-add strdup.c
83714
83715 2002-11-25  Karl Berry  <karl@gnu.org>
83716
83717         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
83718         instead of "strtol.c".
83719
83720 2002-11-25  Karl Berry  <karl@gnu.org>
83721
83722         * config/install-sh: update from automake for variable quoting, $0 in
83723         error msgs, etc.
83724
83725         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
83726         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
83727         entry.
83728
83729 2002-11-25  Jim Meyering  <jim@meyering.net>
83730
83731         * lib/mktime.c: Sync from libc, now that it has the latest fix.
83732
83733 2002-11-24  Karl Berry  <karl@gnu.org>
83734
83735         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
83736         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
83737
83738 2002-11-24  Jim Meyering  <jim@meyering.net>
83739
83740         Update from coreutils:
83741
83742         * lib/mktime.c: Merge in changes from libc.
83743
83744         Avoid a link-time failure on some Linux systems.
83745         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
83746         (otherwise).
83747         (__mon_yday): Declare with the STATIC attribute.
83748         (__mktime_internal): Likewise.
83749         Based on a report from Greg Schafer.
83750
83751 2002-11-23  Jim Meyering  <jim@meyering.net>
83752
83753         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
83754         Use `unsigned', not `int', as type of index.
83755
83756         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
83757
83758         * lib/fsusage.c: Remove unneeded parentheses around operands of
83759         `defined'.
83760
83761 2002-11-22  Paul Eggert  <eggert@twinsun.com>
83762
83763         * lib/quotearg.h: Allow multiple inclusion by surrounding with
83764         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
83765         so that we can be included first.
83766         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
83767         * lib/quotearg.c: Include quotearg.h immediately after config.h.
83768         No need to include stddef.h or sys/types.h any more.
83769         Surround local include files with "", not "<>".
83770         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
83771         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
83772         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
83773         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
83774         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
83775         (ISPRINT): Remove; no longer needed now that we assume C89.
83776
83777         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
83778         Preserve errno.
83779
83780         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
83781         quotearg_char): Use SIZE_MAX rather than
83782         (size_t) -1 when we are talking about "infinity".
83783
83784         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
83785
83786 2002-11-22  Paul Eggert  <eggert@twinsun.com>
83787
83788         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
83789         hint that one should use `if (! x) abort ();' rather than `assert
83790         (x);', and anyway it's one less thing to worry about configuring.
83791         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
83792         hash_rehash, hash_insert): Use abort rather than assert.
83793
83794 2002-11-22  Bruno Haible  <bruno@clisp.org>
83795
83796         * lib/safe-read.h: Assume C89. Add comments.
83797         (safe_read): Change return type to size_t.
83798         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
83799         byte counts > SSIZE_MAX correctly.
83800         * lib/safe-write.h: New file.
83801         * lib/safe-write.c: New file.
83802         * lib/full-read.h: New file.
83803         * lib/full-read.c: New file.
83804         * lib/full-write.h: Assume C89. Add comments.
83805         * lib/full-write.c: Include safe-write.h.
83806         (full_write): Rewritten to use safe_write.
83807         Suggested by Jim Meyering and Paul Eggert.
83808
83809 2002-11-21  Jim Meyering  <jim@meyering.net>
83810
83811         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
83812
83813         Merge in changes from the coreutils.
83814
83815         2002-09-25  Paul Eggert  <eggert@twinsun.com>
83816         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
83817         <stdint.h>.
83818         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
83819         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
83820         int.  Work more efficiently if X is the same width as uintmax_t.
83821         Do not compare X to -1, to avoid bogus compiler warning.
83822         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
83823         Don't assume that f_frsize and f_bsize are the same type.
83824
83825         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
83826         warning on FreeBSD.
83827
83828         * lib/makepath.c (make_path): Restore umask *before* creating the final
83829         component.
83830         (make_path): Minor reformatting.
83831
83832         * lib/xmalloc.c: Adjust to work with new autoconf macros,
83833         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
83834         HAVE_MALLOC/HAVE_REALLOC.
83835
83836         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
83837         dummy ones.  At least on GNU/Linux systems, `auto' means something
83838         else.
83839         From Michael Stone.
83840
83841 2002-11-21  Bruno Haible  <bruno@clisp.org>
83842
83843         Remove case insensitive option matching.
83844         * lib/argmatch.h (argcasematch): Remove declaration.
83845         (ARGCASEMATCH): Remove macro.
83846         (__xargmatch_internal): Remove case_sensitive argument.
83847         (XARGMATCH): Update.
83848         (XARGCASEMATCH): Remove macro.
83849         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
83850         case_sensitive argument.
83851         (argcasematch): Remove function.
83852         (__xargmatch_internal): Remove case_sensitive argument.
83853         (main): Use XARGMATCH instead of XARGCASEMATCH.
83854
83855         * lib/xmalloc.c: Change compile-time error message. Add comment about
83856         required autoconf version.
83857
83858 2002-11-20  Paul Eggert  <eggert@twinsun.com>
83859
83860         Merge argmatch cleanups from Bison.  Assume C89.
83861
83862         * lib/argmatch.c: Include config.h here, not in argmatch.h.
83863         Include stdlib.h, for EXIT_FAILURE.
83864         Always include <string.h>, since we assume C89.
83865         (EXIT_FAILURE): Remove pre-C89 bug workaround.
83866         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
83867         Include <stddef.h> instead, since it's all we need for size_t.
83868         (PARAMS): Remove.  All uses removed.
83869         (ARRAY_CARDINALITY): Do not bother to #undef.
83870         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
83871         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
83872         Remove unnecessary parentheses.
83873         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
83874         Insert necessary parentheses.
83875         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
83876         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
83877
83878 2002-11-19  Bruno Haible  <bruno@clisp.org>
83879
83880         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
83881         * lib/mbswidth.h: Include <stddef.h>, for size_t.
83882
83883         * lib/mbswidth.h (PARAMS): Remove macro.
83884         (mbswidth, mbsnwidth): Use ANSI C function declarations.
83885         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
83886
83887         * lib/gcd.h (PARAMS): Remove macro.
83888         (gcd): Use ANSI C function declarations.
83889         * lib/gcd.c (gcd): Likewise.
83890
83891 2002-11-15  Bruno Haible  <bruno@clisp.org>
83892
83893         * lib/strcspn.c: Include <stddef.h>.
83894         (strcspn): Use ANSI C function declaration. Change return type to
83895         size_t. Use NULL.
83896         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
83897         (strpbrk): Use NULL.
83898         * lib/strpbrk.h (PARAMS): Remove macro.
83899         (strpbrk): Use ANSI C function declaration.
83900         * lib/strstr.c: Don't include <sys/types.h>.
83901         * lib/strstr.h (PARAMS): Remove macro.
83902         (strstr): Use ANSI C function declarations.
83903
83904 2002-11-14  Karl Berry  <karl@gnu.org>
83905
83906         * config/mkinstalldirs: `do' on separate line, instead of
83907         `for var; do'.
83908
83909 2002-11-06  Bruno Haible  <bruno@clisp.org>
83910
83911         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
83912         * lib/gcd.c (gcd): Likewise.
83913
83914 2002-11-05  Bruno Haible  <bruno@clisp.org>
83915
83916         * lib/gcd.h: New file, from gettext-0.11.5.
83917         * lib/gcd.c: New file, from gettext-0.11.5.
83918
83919 2002-11-05  Bruno Haible  <bruno@clisp.org>
83920
83921         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
83922         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
83923         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
83924         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
83925
83926         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
83927         <libintl.h>.
83928         * lib/makepath.c: Include gettext.h instead of <locale.h> and
83929         <libintl.h>.
83930
83931         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
83932         * lib/human.c: Include gettext.h instead of <libintl.h>.
83933         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
83934         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
83935         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
83936         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
83937         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
83938         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
83939         (textdomain): Remove definition.
83940         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
83941
83942         * lib/long-options.c: Remove include of <libintl.h> and definition of
83943         _.
83944         * lib/same.c: Remove include of <libintl.h> and definition of _.
83945
83946 2002-11-04  Owen Taylor  <otaylor@redhat.com>
83947
83948         * lib/config.charset: A few additions for Solaris.
83949
83950 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
83951
83952         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
83953         * lib/localcharset.c (locale_charset): Declare as extern "C".
83954
83955 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
83956
83957         * lib/config.charset: msdos in uk_UA uses CP1125.
83958
83959 2002-11-04  Bruno Haible  <bruno@clisp.org>
83960
83961         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
83962         * lib/strcase.h: New file, from GNU gettext-0.11.5.
83963         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
83964         * lib/strstr.h: New file, from GNU gettext-0.11.5.
83965         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
83966
83967 2002-11-04  Bruno Haible  <bruno@clisp.org>
83968
83969         * lib/localcharset.c (locale_charset): Don't return an empty string.
83970
83971 2002-11-04  Bruno Haible  <bruno@clisp.org>
83972
83973         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
83974         aliases.
83975
83976 2002-11-04  Bruno Haible  <bruno@clisp.org>
83977
83978         * lib/config.charset: Update for newest glibc. Add canonical names
83979         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
83980
83981 2002-11-04  Bruno Haible  <bruno@clisp.org>
83982
83983         * lib/config.charset: Add support for NetBSD.
83984
83985 2002-11-04  Bruno Haible  <bruno@clisp.org>
83986
83987         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
83988
83989 2002-11-01  Bruno Haible  <bruno@clisp.org>
83990
83991         * configure.in: Add AC_CONFIG_AUX_DIR call.
83992         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
83993         test/Makefile.
83994         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
83995
83996 2002-09-28  Karl Berry  <karl@gnu.org>
83997
83998         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
83999         installed automake until the next release, since changes have been
84000         made.
84001
84002 2002-09-25  Karl Berry  <karl@gnu.org>
84003
84004         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
84005         * lib/getopt*: copy from libc/posix.
84006         * lib/gettext.h: copy from gettext.
84007         * lib/.cppi-disable: add strdup.c, gettext.h.
84008
84009 2002-09-25  Karl Berry  <karl@gnu.org>
84010
84011         * config/srclist.txt: enable gettext.h check.
84012         * config/config.{guess,sub}: update from prep.
84013         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
84014                 from automake 1.6.3.
84015         See srclist*.
84016
84017 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
84018
84019         * regex.c (PATFETCH): Remove the translating fetch.
84020         (PATFETCH_RAW): Rename to PATFETCH.
84021         (set_image_of_range): New fun.
84022         (SET_RANGE_TABLE_WORK_AREA): Use it.
84023         (regex_compile): Don't translate the pattern chars so eagerly.
84024         Only do it when inserting an `exactn' bytecode or when handling
84025         a char-range.
84026         (mutually_exclusive_p): Avoid empty statement.
84027
84028 2002-07-06  Jim Meyering  <meyering@lucent.com>
84029
84030         * m4/README: Don't mention Makefile.am.in.
84031         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
84032
84033 2002-07-01  Jim Meyering  <meyering@lucent.com>
84034
84035         * lib/c-stack.c: Include sys/time.h.
84036         From Volker Borchert.
84037
84038 2002-06-26  Paul Eggert  <eggert@twinsun.com>
84039
84040         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
84041
84042 2002-06-26  Paul Eggert  <eggert@twinsun.com>
84043
84044         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
84045         New macro.  Use it uniformly instead of
84046         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
84047         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
84048         reported by Vin Shelton.
84049
84050 2002-06-22  Paul Eggert  <eggert@twinsun.com>
84051
84052         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
84053         Do not assume SA_SIGINFO behavior.
84054         Bug reported by Jim Meyering on NetBSD 1.5.2.
84055
84056 2002-06-22  Jim Meyering  <meyering@lucent.com>
84057
84058         * m4/c-stack.m4: New file, from diffutils-2.8.2.
84059         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
84060
84061         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
84062         now that configure.ac uses AC_GNU_SOURCE.
84063         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
84064         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
84065
84066         Update to latest tools.  Suggestions from Paul Eggert.
84067         * m4/stdbool.m4: New file, from diffutils-2.8.2.
84068         * m4/gnu-source.m4: Update from diffutils-2.8.2.
84069         * m4/fnmatch.m4: Likewise.
84070         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
84071         to AC_HEADER_STDBOOL
84072
84073 2002-06-22  Jim Meyering  <meyering@lucent.com>
84074
84075         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
84076         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
84077
84078 2002-06-22  Jim Meyering  <meyering@lucent.com>
84079
84080         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
84081
84082         * lib/exitfail.c, exitfail.h: Likewise.
84083         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
84084
84085         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
84086         of fnmatch.h.
84087         (EXTRA_DIST): Add fnmatch_loop.c.
84088         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
84089
84090         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
84091         * lib/fnmatch.c: Update from diffutils-2.8.2.
84092         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
84093         * lib/fnmatch.h: Remove file.
84094
84095 2002-06-21  Jim Meyering  <meyering@lucent.com>
84096
84097         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
84098         * m4/mbrtowc.m4: Likewise.
84099
84100         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
84101         * m4/mbswidth.m4: Reflect name change:
84102         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
84103         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
84104
84105         * m4/lib-link.m4: Update from gettext-0.11.2.
84106         * m4/gettext.m4: Likewise.
84107
84108         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
84109         From Alfred M. Szmidt.
84110
84111 2002-06-18  Paul Eggert  <eggert@twinsun.com>
84112
84113         * lib/file-type.h: Report an error if neither S_ISREG nor
84114         S_IFREG is defined, instead of using a test specific to glibc
84115         2.2.  This should be safe, since POSIX requires S_ISREG and
84116         Unix Version 7 had S_IFREG.  We don't need to check for
84117         <sys/types.h> since we don't use any symbols that it defines.
84118
84119 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
84120
84121         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
84122         $@-t, so that each temporary file name is unique and valid in the first
84123         8 characters, for operation under DOS.
84124
84125 2002-06-15  Paul Eggert  <eggert@twinsun.com>
84126
84127         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
84128
84129 2002-06-15  Jim Meyering  <meyering@lucent.com>
84130
84131         Work even with DJGPP 2.03, which lacks support for symlinks.
84132         From Richard Dawe.
84133         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
84134         is defined.
84135         * lib/lchown.c (S_ISLNK): Likewise.
84136
84137 2002-06-15  Jim Meyering  <meyering@lucent.com>
84138
84139         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
84140         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
84141         have been included before this file.
84142
84143 2002-06-14  Jim Meyering  <meyering@lucent.com>
84144
84145         * lib/file-type.h: Use the version from diffutils-2.8.2.
84146         * lib/file-type.c: Likewise.
84147
84148 2002-06-07  Jim Meyering  <meyering@lucent.com>
84149
84150         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
84151         They're needed at least for NetBSD 1.5.2.
84152         ($statxfs_includes): Include those same headers.
84153         ($statxfs_includes): Include sys/vfs.h if available.
84154         ($statxfs_includes): Likewise for sys/statvfs.h.
84155         Check for the following members in both structs statfs and statvfs:
84156         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
84157
84158 2002-06-01  Jim Meyering  <meyering@lucent.com>
84159
84160         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
84161         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
84162
84163 2002-05-28  Jim Meyering  <meyering@lucent.com>
84164
84165         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
84166         Reported by Volker Borchert.
84167
84168 2002-05-27  Jim Meyering  <meyering@lucent.com>
84169
84170         Fix a problem seen only on nonconforming systems whereby ls.c's
84171         use of localtime, and then of gettimeofday would cause trouble:
84172         the localtime call used to initialize rpl_gettimeofday's save
84173         mechanism would clobber ls's current local time information so
84174         that in any long listing the first file would always be listed
84175         with date 1970-01-01.  Analysis by Volker Borchert.
84176
84177         * lib/gettimeofday.c (localtime): Undefine.
84178         (rpl_localtime): New function.
84179
84180 2002-05-27  Jim Meyering  <meyering@lucent.com>
84181
84182         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
84183         localtime.
84184
84185         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
84186         use the replacement function; it wouldn't resolve at link time.
84187         Reported by Volker Borchert.
84188
84189 2002-05-22  Jim Meyering  <meyering@lucent.com>
84190
84191         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
84192         file-type.h.
84193         * lib/file-type.h: New file.
84194         * lib/file-type.c (file_type): New file/function.  Extracted from
84195         diffutils.
84196
84197 2002-04-30  Jim Meyering  <meyering@lucent.com>
84198
84199         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
84200
84201 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84202
84203         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
84204
84205 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84206
84207         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
84208         Do not check for alloca.h (no longer used) or stdbool.h (was never
84209         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
84210
84211 2002-04-29  Paul Eggert  <eggert@twinsun.com>
84212
84213         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
84214
84215 2002-04-29  Jim Meyering  <meyering@lucent.com>
84216
84217         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
84218         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
84219         Use AC_FUNC_STRNLEN here instead.
84220
84221         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
84222         With autoconf-2.53a, it's part of AC_PROG_CC.
84223
84224 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84225
84226         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
84227         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
84228
84229 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84230
84231         * lib/sig2str.h, lib/sig2str.c: New files.
84232         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
84233
84234 2002-04-28  Paul Eggert  <eggert@twinsun.com>
84235
84236         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
84237         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
84238         of 127, since 64 is the largest conceivable number for ancient
84239         nonstandard hosts.
84240         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
84241
84242 2002-04-28  Jim Meyering  <meyering@lucent.com>
84243
84244         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
84245
84246 2002-04-24  Jim Meyering  <meyering@lucent.com>
84247
84248         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
84249         (jm_PREREQ): Use it.
84250
84251         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
84252         mach/mach.h fcntl.h.
84253         Check for this function: setlocale.
84254
84255 2002-04-24  Jim Meyering  <meyering@lucent.com>
84256
84257         * lib/gettext.h: New file, from Gettext.
84258         * lib/Makefile.am (INCLUDES): Remove -I../intl.
84259         (libfetish_a_SOURCES): Add gettext.h.
84260
84261 2002-04-16  Jim Meyering  <meyering@lucent.com>
84262
84263         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
84264         ut_pid, ut_id, ut_exit.
84265
84266 2002-04-16  Jim Meyering  <meyering@lucent.com>
84267
84268         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
84269         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
84270         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
84271
84272 2002-04-12  Jim Meyering  <meyering@lucent.com>
84273
84274         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
84275         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
84276         existence of the getmntinfo function.  Needed for Darwin 5.3.
84277
84278         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
84279         This is necessary at least on Darwin 5.3.
84280
84281         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
84282         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
84283         strnlen.o in the library, and that makes some versions of ranlib
84284         object.
84285
84286 2002-04-12  Jim Meyering  <meyering@lucent.com>
84287
84288         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
84289
84290 2002-04-09  Jim Meyering  <meyering@lucent.com>
84291
84292         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
84293         to be more precise.  Rather than saying we're checking whether the
84294         function `works', say what we're testing.
84295         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
84296         Reported by Bruno Haible.
84297
84298 2002-03-10  Jim Meyering  <meyering@lucent.com>
84299
84300         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
84301         Suggestion from Santiago Vila.
84302
84303 2002-03-08  Jim Meyering  <meyering@lucent.com>
84304
84305         * lib/rename.c: Mention that this wrapper is needed also on
84306         mips-dec-ultrix4.4 systems.
84307
84308 2002-03-02  Jim Meyering  <meyering@lucent.com>
84309
84310         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
84311         not HAVE_CLOCK_SETTIME.
84312
84313 2002-02-27  Paul Eggert  <eggert@twinsun.com>
84314
84315         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
84316         Check for clock_settime.
84317
84318 2002-02-27  Paul Eggert  <eggert@twinsun.com>
84319
84320         * lib/nanosleep.h: Rename to....
84321         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
84322
84323         * lib/gettime.c: New file.
84324         * lib/settime.c: New file.
84325         * lib/stime.c: Remove.
84326
84327         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
84328         timespec.h.  Remove nanosleep.h.
84329
84330 2002-02-25  Paul Eggert  <eggert@twinsun.com>
84331
84332         * m4/acl.m4: New file.
84333         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
84334         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
84335
84336 2002-02-25  Paul Eggert  <eggert@twinsun.com>
84337
84338         * lib/acl.c, lib/acl.h: New files.
84339         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
84340
84341 2002-02-24  Jim Meyering  <meyering@lucent.com>
84342
84343         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
84344         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
84345         cause trouble.  Reported by Nelson Beebe.
84346
84347 2002-02-23  Paul Eggert  <eggert@twinsun.com>
84348
84349         * lib/path-concat.c (xpath_concat): Reorder code to pacify
84350         compilers that don't know that xalloc_die never returns.
84351
84352 2002-02-20  Jim Meyering  <meyering@lucent.com>
84353
84354         * lib/getdate.c: Regenerate using bison-1.33.
84355
84356 2002-02-17  Jim Meyering  <meyering@lucent.com>
84357
84358         * config/config.guess (main): Don't use `head -1'; it's no longer
84359         portable. Use `sed 1q' instead.
84360
84361 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
84362
84363         * m4/codeset.m4: Upgrade to gettext-0.11.
84364         * m4/gettext.m4: Upgrade to gettext-0.11.
84365         * m4/glibc21.m4: Upgrade to gettext-0.11.
84366         * m4/iconv.m4: Upgrade to gettext-0.11.
84367         * m4/isc-posix.m4: Upgrade to gettext-0.11.
84368         * m4/lcmessage.m4: Upgrade to gettext-0.11.
84369         * m4/lib-ld.m4: New file, from gettext-0.11.
84370         * m4/lib-link.m4: New file, from gettext-0.11.
84371         * m4/lib-prefix.m4: New file, from gettext-0.11.
84372         * m4/progtest.m4: Upgrade to gettext-0.11.
84373
84374 2002-02-15  Paul Eggert  <eggert@twinsun.com>
84375
84376         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
84377         (jm_PREREQ): Use it.
84378
84379 2002-02-15  Paul Eggert  <eggert@twinsun.com>
84380
84381         * lib/posixver.c, lib/posixver.h: New files.
84382         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
84383
84384 2002-02-02  Paul Eggert  <eggert@twinsun.com>
84385             Bruno Haible  <bruno@clisp.org>
84386
84387         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
84388         (fwrite_success_callback): New declaration.
84389         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
84390         print_unicode_char. Call failure callback instead of error.
84391         (fwrite_success_callback): New function.
84392         (exit_failure_callback): New function.
84393         (fallback_failure_callback): New function.
84394         (print_unicode_char): Call unicode_to_mb.
84395
84396 2002-01-26  Jim Meyering  <meyering@lucent.com>
84397
84398         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
84399         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
84400
84401 2002-01-26  Jim Meyering  <meyering@lucent.com>
84402
84403         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
84404
84405 2002-01-22  Paul Eggert  <eggert@twinsun.com>
84406
84407         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
84408
84409 2002-01-22  Jim Meyering  <meyering@lucent.com>
84410
84411         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
84412         Otherwise, some versions of automake would omit the rule that makes
84413         Makefile from Makefile.in.
84414
84415 2002-01-21  Paul Eggert  <eggert@twinsun.com>
84416
84417         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
84418         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
84419         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
84420         (memcoll): Set errno to zero if there is no error.
84421
84422         * lib/quotearg.c (quotearg_buffer_restyled):
84423         Fix bug with quoting buffers containing NUL when backslashing escapes.
84424         This bug was exposed by the other changes in this patch.
84425         (quotearg_n_options): New arg ARGSIZE.
84426         All callers changed.
84427         (quoting_options_from_style): New function.
84428         (quotearg_n_style): Use it.
84429         (quotearg_n_style_mem): New function.
84430
84431         * lib/quotearg.h (quotearg_n_style_mem): New function.
84432
84433 2002-01-19  Jim Meyering  <meyering@lucent.com>
84434
84435         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
84436         Remove useless quotes: DF_PROG="df".
84437         * m4/strnlen.m4: New file.
84438
84439 2002-01-16  Paul Eggert  <eggert@twinsun.com>
84440
84441         * lib/backupfile.c (ISDIGIT): Comment fix.
84442         * lib/getdate.y (ISDIGIT): Likewise.
84443         * lib/posixtm.c (ISDIGIT, year): Likewise.
84444         * lib/strverscmp.c (ISDIGIT): Likewise.
84445         * lib/userspec.c (ISDIGIT): Likewise.
84446
84447 2002-01-16  Jim Meyering  <meyering@lucent.com>
84448
84449         * lib/getdate.y: Add three semicolons, each just before a closing
84450         brace. Bison (as of version 1.31) no longer papers over that mistake.
84451
84452 2002-01-05  Jim Meyering  <meyering@lucent.com>
84453
84454         * lib/version-etc.c (version_etc_copyright): Update copyright year.
84455
84456 2001-12-19  Paul Eggert  <eggert@twinsun.com>
84457
84458         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
84459         not silently exit merely because the output buffer happens to
84460         have nothing pending.
84461
84462 2001-12-18  Paul Eggert  <eggert@twinsun.com>
84463
84464         See the big note in ../ChangeLog.
84465         * lib/human.c (suffixes): Prefer K to k for 1024.
84466         (generate_suffix_backwards): New function.
84467         (human_readable_inexact): Use it.
84468         * lib/xstrtol.c (__xstrtol): If there is no number but there
84469         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
84470         Accept 'K' as well as 'k'.
84471
84472 2001-12-15  Jim Meyering  <meyering@lucent.com>
84473
84474         * lib/regex.h (__restrict_arr): Update from libc.
84475
84476         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
84477         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
84478         (STREQ): Define.
84479
84480 2001-12-14  Jim Meyering  <meyering@lucent.com>
84481
84482         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
84483         Suggestion from Bruno Haible.
84484
84485 2001-12-10  Jim Meyering  <meyering@lucent.com>
84486
84487         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
84488         xrealloc, Instead, include "xalloc.h".
84489         (initbuffer): Don't cast xmalloc return value to char*.
84490         (readline): Reword comment.
84491         Don't cast xrealloc return value to char*
84492         Return NULL, not 0.
84493
84494 2001-12-09  Jim Meyering  <meyering@lucent.com>
84495
84496         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
84497         about `signed and unsigned type in conditional expression'.
84498         * lib/posixtm.c (posix_time_parse): Likewise.
84499
84500         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
84501
84502         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
84503         to avoid a pedantic warning.
84504
84505         * lib/getstr.c: Don't include assert.h.
84506         (getstr): Remove warning-evoking assertions.
84507         Return -1 if offset parameter is out of bounds.
84508         Change the type of a local from int to size_t.
84509
84510         * lib/strftime.c (my_strftime_localtime_r): Include this function
84511         definition in the `#if ! HAVE_TM_GMTOFF' block.
84512
84513         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
84514         Include xalloc.h instead.
84515
84516 2001-12-02  Jim Meyering  <meyering@lucent.com>
84517
84518         * lib/tempname.c: Don't declare getenv, thus reverting the change of
84519         2001-11-18.  It's no longer necessary, now that stdlib.h is always
84520         included.
84521
84522         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
84523         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
84524
84525 2001-11-30  Akim Demaille  <akim@epita.fr>
84526
84527         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
84528         before being defined.
84529
84530 2001-11-27  Paul Eggert  <eggert@twinsun.com>
84531
84532         * lib/quotearg.h (quotearg_n, quotearg_n_style):
84533         First arg is int, not unsigned.
84534         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
84535         (SIZE_MAX, UINT_MAX): New macros.
84536         (quotearg_n_options): Abort if N is negative.
84537         Avoid overflow check on hosts where size_t is 64 bits and int
84538         is 32 bits, as overflow is impossible there.
84539         Fix off-by-one typo that caused unnecessary reallocation.
84540
84541 2001-11-27  Jim Meyering  <meyering@lucent.com>
84542
84543         * lib/tempname.c: Merge with version from libc.
84544         * lib/regex.c: Likewise.
84545
84546         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
84547         systems for which STDC_HEADERS is 0, it was not included, resulting in
84548         a warning about an integer-to-pointer conversion problem with getenv.
84549         Reported by Volker Borchert.
84550
84551 2001-11-26  Jim Meyering  <meyering@lucent.com>
84552
84553         * lib/gtod.h: Remove file.
84554         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
84555         * lib/gettimeofday.c: Don't include gtod.h.
84556         (GTOD_init): Remove function.
84557         (rpl_gettimeofday): Do its job here instead, rather than aborting.
84558         Suggestion from Volker Borchert.
84559
84560 2001-11-23  Jim Meyering  <meyering@lucent.com>
84561
84562         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
84563         it.
84564         * lib/hash.c (struct hash_table): Define it here instead.
84565
84566 2001-11-22  Jim Meyering  <meyering@lucent.com>
84567
84568         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
84569
84570 2001-11-20  Jim Meyering  <meyering@lucent.com>
84571
84572         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
84573         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
84574
84575 2001-11-19  Jim Meyering  <meyering@lucent.com>
84576
84577         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
84578         directory.  Use "conftestXXXXXX" as the template.
84579         Suggestion from Paul Eggert.
84580
84581         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
84582         immediately, so the test doesn't mistakenly hit the max-open-files
84583         limit.
84584
84585 2001-11-18  Paul Eggert  <eggert@twinsun.com>
84586
84587         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
84588         (TEMPORARIES): New macro.
84589         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
84590         removes an artificial limitation (e.g. HP-UX 10.20, where
84591         TMP_MAX is 17576).
84592
84593 2001-11-18  Jim Meyering  <meyering@lucent.com>
84594
84595         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
84596
84597 2001-11-18  Jim Meyering  <meyering@lucent.com>
84598
84599         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
84600         on SunOS 4.
84601
84602         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
84603         files will be created before anything else.
84604
84605 2001-11-17  Paul Eggert  <eggert@twinsun.com>
84606
84607         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
84608         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
84609
84610 2001-11-17  Jim Meyering  <meyering@lucent.com>
84611
84612         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
84613         Prompted by a report from Bob Proulx.
84614
84615         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
84616         Instead, require UTILS_FUNC_MKSTEMP.
84617
84618 2001-11-17  Jim Meyering  <meyering@lucent.com>
84619
84620         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
84621         Now, that's done as part of AC_FUNC_STRTOD.
84622
84623 2001-11-17  Jim Meyering  <meyering@lucent.com>
84624
84625         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
84626         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
84627         rather than group writable.  Patch by Juan F. Codagnone.
84628
84629         * lib/readtokens.c: Remove explicit declarations of xmalloc and
84630         xrealloc, Instead, include "xalloc.h".
84631
84632         * lib/mountlist.c: Include unlocked-io.h after all system headers.
84633         Remove explicit declarations of xmalloc, xrealloc,
84634         and xstrdup.  Instead, include "xalloc.h".
84635
84636         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
84637         unlocked-io.h.
84638         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
84639         Likewise.
84640         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
84641
84642         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
84643         Reported by Padraig Brady.
84644
84645         * lib/mkstemp.c: #undef mkstemp.
84646         Include config.h.
84647         (rpl_mkstemp): Rename from mkstemp.
84648         Protoize.
84649
84650 2001-11-16  Jim Meyering  <meyering@lucent.com>
84651
84652         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
84653         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
84654         determine the amount of total physical memory, use pstat_getstatic.
84655         HPUX-11 doesn't define _SC_PHYS_PAGES.
84656         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
84657         If sysconf couldn't be used to determine the amount of available
84658         physical memory, use both pstat_getstatic and pstat_getdynamic.
84659         Based on a patch from Bob Proulx.
84660
84661 2001-11-10  Jim Meyering  <meyering@lucent.com>
84662
84663         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
84664         (jm_PREREQ): Use it.
84665
84666 2001-11-09  Jim Meyering  <meyering@lucent.com>
84667
84668         * m4/jm-macros.m4: Require autoconf-2.52f.
84669         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
84670         Use these AC_-prefixed names, not the AM_-prefixed ones.
84671
84672         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
84673
84674 2001-11-05  Jim Meyering  <meyering@lucent.com>
84675
84676         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
84677
84678 2001-11-04  Jim Meyering  <meyering@lucent.com>
84679
84680         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
84681         $DEFS.
84682
84683 2001-11-03  Jim Meyering  <meyering@lucent.com>
84684
84685         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
84686         of AC_DEFUN.
84687
84688         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
84689         know the name of the variable in the macro definition.
84690
84691 2001-11-03  Jim Meyering  <meyering@lucent.com>
84692
84693         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
84694         in argmatch_to_argument call.
84695
84696         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
84697         argument.
84698
84699         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
84700         e.g., a fault due to an attempt to free a NULL pointer.
84701
84702 2001-11-01  Jim Meyering  <meyering@lucent.com>
84703
84704         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
84705         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
84706
84707 2001-11-01  Jim Meyering  <meyering@lucent.com>
84708
84709         * lib/dirfd.c, lib/dirfd.h: New files.
84710         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
84711
84712         * lib/hash.c (hash_print) [TESTING]: Clean up.
84713
84714 2001-10-22  Paul Eggert  <eggert@twinsun.com>
84715
84716         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
84717         to avoid a warning if -Wall.
84718
84719 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
84720
84721         * README: New file
84722         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
84723         (per RMS's instructions, this is now the canonical source)
84724         * lgpl/, gpl/: New directories.
84725
84726 2001-10-21  Paul Eggert  <eggert@twinsun.com>
84727
84728         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
84729
84730 2001-10-21  Jim Meyering  <meyering@lucent.com>
84731
84732         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
84733         this code would end up calling gettext even in packages built
84734         with --disable-nls.
84735         * lib/getopt.c (_): Likewise.
84736         * lib/regex.c (_): Likewise.
84737
84738 2001-10-20  Paul Eggert  <eggert@twinsun.com>
84739
84740         * m4/error.m4 (jm_PREREQ_ERROR):
84741         Do not invoke AC_CHECK_FUNCS with strerror_r, as
84742         AC_FUNC_STRERROR_R does that.
84743         Check for strerror declaration.
84744
84745         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
84746         are supposed to have them these days.
84747         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
84748         Merge changes from latest Autoconf CVS.
84749         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
84750         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
84751         POSIX decided to standardize on the int flavor of strerror_r.
84752
84753 2001-10-20  Paul Eggert  <eggert@twinsun.com>
84754
84755         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
84756         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
84757         Use strerror_r that is only a macro, even if it is not a function.
84758         (strerror): Check for HAVE_DECL_STRERROR before declaring.
84759         (private_strerror): Use prototypes, not old-style function definition.
84760         (print_errno_message): New function.
84761         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
84762         char*-flavored one.
84763         (error_tail, error, error_at_line): Use it.
84764
84765 2001-10-11  Jim Meyering  <meyering@lucent.com>
84766
84767         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
84768         and quote_n (1, ... to avoid clobbering a buffer.
84769
84770 2001-10-05  Jim Meyering  <meyering@lucent.com>
84771
84772         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
84773         hash-pjw.h.
84774         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
84775         * lib/hash-pjw.h: New file.
84776
84777 2001-09-30  Jim Meyering  <meyering@lucent.com>
84778
84779         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
84780         `struct fsstat' has the `f_fstypename' member.
84781         Use that to define FS_TYPE, which is now used to make
84782         the getfsstat link test tighter.
84783
84784 2001-09-30  Jim Meyering  <meyering@lucent.com>
84785
84786         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
84787         Include <sys/ucred.h>, for Apple Darwin.
84788         Include sys/mount.h and sys/fs_types.h only if available.
84789         (FS_TYPE): Define.
84790         (read_filesystem_list): Use FS_TYPE.
84791
84792 2001-09-29  Paul Eggert  <eggert@twinsun.com>
84793
84794         * lib/exclude.c (excluded_filename): 0 -> false, since it's
84795         a boolean context.
84796
84797 2001-09-29  Jim Meyering  <meyering@lucent.com>
84798
84799         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
84800         [one-argument getmntent function]): Include stdio.h before mntent.h.
84801         SunOS 4.1.x needs it for the declaration of `FILE'.
84802         Patch by Volker Borchert.
84803
84804         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
84805         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
84806         sys/fs_types.h, and make the link-test for getfsstat guard #include
84807         directives with appropriate #if HAVE_*_H tests so that we can
84808         detect getfsstat on Apple Darwin1.3.7 systems.
84809         Reported by Nelson Beebe.
84810         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
84811
84812 2001-09-28  Paul Eggert  <eggert@twinsun.com>
84813
84814         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
84815         #defines strtoimax.  Also treat the other strto* functions
84816         like strtoimax.
84817
84818         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
84819         Check for strtoul and strtoumax,
84820         as those declarations are made even in the signed case.
84821         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
84822         Likewise, for strtol and strtoimax.
84823
84824 2001-09-28  Paul Eggert  <eggert@twinsun.com>
84825
84826         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
84827         #defines strtoimax.  Also treat the other strto* functions
84828         like strtoimax.
84829
84830         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
84831         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
84832         (strtoimax, strtoumax): Do not declare if already defined as a macro.
84833
84834 2001-09-26  Jim Meyering  <meyering@lucent.com>
84835
84836         Most macros in unlocked-io.h had the wrong number of arguments.
84837         * lib/gen-uio: New script.
84838         (USE_UNLOCKED_IO): Define to 1 if not already defined.
84839         * lib/unlocked-io.hin: Remove file.
84840         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
84841         rather than trying to embed it here.
84842         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
84843         Reported by Padraig Brady.
84844
84845 2001-09-25  Volker Borchert  <bt@teknon.de>
84846
84847         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
84848         `result'.
84849
84850 2001-09-24  Jim Meyering  <meyering@lucent.com>
84851
84852         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
84853
84854 2001-09-23  Jim Meyering  <meyering@lucent.com>
84855
84856         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
84857         instead of the mere test for existence of mntent.h.  The latter
84858         would get a false-positive on AIX 3.4 systems.
84859         In the outer getmntent if-block, don't die if neither of the getmntent
84860         tests succeeds.  Instead, just fall through and continue with the
84861         remaining tests.
84862
84863 2001-09-23  Jim Meyering  <meyering@lucent.com>
84864
84865         * lib/mountlist.c: Remove useless parentheses in #if directives.
84866         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
84867         the deprecated MOUNTED symbol is no longer defined in mntent.h.
84868
84869 2001-09-22  Jim Meyering  <meyering@lucent.com>
84870
84871         * m4/gettext.m4: New file.  From gettext.
84872         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
84873         * m4/progtest.m4: Likewise
84874         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
84875         * m4/glibc21.m4: Likewise.
84876
84877         * m4/libintl.m4: Remove.  No longer used.
84878
84879 2001-09-22  Jim Meyering  <meyering@lucent.com>
84880
84881         * lib/localcharset.c: Update from latest gettext.
84882         * lib/config.charset: Likewise.
84883
84884 2001-09-20  Jim Meyering  <meyering@lucent.com>
84885
84886         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
84887         strtoimax.
84888         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
84889         strtoumax.
84890
84891 2001-09-20  Jim Meyering  <meyering@lucent.com>
84892
84893         * lib/xstrtol.c (strtoimax): Guard declaration with
84894         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
84895         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
84896         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
84897         (strtoumax): Likewise, for completeness (it wasn't necessary).
84898
84899 2001-09-17  Paul Eggert  <eggert@twinsun.com>
84900
84901         * lib/strtoimax.c (HAVE_LONG_LONG):
84902         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
84903         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
84904         to work around bug in IBM C compiler.
84905
84906 2001-09-17  Jim Meyering  <meyering@lucent.com>
84907
84908         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
84909         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
84910         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
84911         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
84912         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
84913         whenever the right hand side need not be expanded by the shell.
84914
84915 2001-09-16  Paul Eggert  <eggert@twinsun.com>
84916
84917         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
84918         library.  It's not correct, as some older glibcs are buggy.
84919         fnmatch wasn't fixed until glibc 2.2.
84920
84921         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
84922         special shell magic here.
84923
84924 2001-09-16  Jim Meyering  <meyering@lucent.com>
84925
84926         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
84927         * m4/jm-macros.m4: Require it.
84928
84929 2001-09-16  Jim Meyering  <meyering@lucent.com>
84930
84931         * lib/mkdir.c: New file.
84932
84933 2001-09-15  Jim Meyering  <meyering@lucent.com>
84934
84935         * m4/jm-macros.m4: Check for help2man.
84936
84937 2001-09-11  Jim Meyering  <meyering@lucent.com>
84938
84939         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
84940         The body, by Paul Eggert, was moved here from configure.in.
84941         * m4/jm-macros.m4: Require UTILS_HOST_OS.
84942
84943 2001-09-04  Paul Eggert  <eggert@twinsun.com>
84944
84945         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
84946         (jm_PREREQ): Use it.
84947
84948 2001-09-04  Paul Eggert  <eggert@twinsun.com>
84949
84950         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
84951         Use ssize_t, not int, to store result of readlink.
84952         Check for ssize_t overflow as well as size_t overflow,
84953         as POSIX says the result of readlink is implementation-defined
84954         when ssize_t overflows.
84955         Remove unnecessary cast to char*.
84956         Use free+malloc instead of realloc, as the storage doesn't need
84957         to be preserved and it's clearer and can be more efficient that way.
84958         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
84959         * lib/xreadlink.h (xreadlink): Update prototype.
84960
84961 2001-09-04  Paul Eggert  <eggert@twinsun.com>
84962
84963         * lib/xgetcwd.c: Revert some of the previous change; intead,
84964         fix the HAVE_GETCWD_NULL code to behave more like the
84965         !HAVE_GETCWD_NULL code used to.
84966
84967         Include "xalloc.h".
84968         (xgetcwd): Do not return NULL when memory is exhausted; instead,
84969         invoke xalloc_die.
84970
84971 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84972
84973         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
84974         sys/param.h, as pathmax.h includes them.
84975
84976 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84977
84978         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
84979         (jm_PREREQ_XGETCWD): New macro.
84980
84981         * m4/getcwd.m4: New file.
84982
84983 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84984
84985         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
84986         like the HAVE_GETCWD_NULL code.
84987         Include pathmax.h if not HAVE_GETCWD.
84988         Do not include xalloc.h.
84989         (INITIAL_BUFFER_SIZE): New symbol.
84990         Do not use xmalloc / xrealloc, since the caller is responsible for
84991         handling errors.  Preserve errno around `free' during failure.
84992         Do not overrun buffer when using getwd.
84993
84994 2001-09-03  Paul Eggert  <eggert@twinsun.com>
84995
84996         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
84997         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
84998         getcwd (NULL, 0).
84999
85000 2001-09-03  Paul Eggert  <eggert@twinsun.com>
85001
85002         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
85003         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
85004         spotted by Jim Meyering.
85005
85006 2001-09-03  Jim Meyering  <meyering@lucent.com>
85007
85008         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
85009         failure.
85010
85011 2001-09-02  Jim Meyering  <meyering@lucent.com>
85012
85013         * lib/error.c: Update from GNU libc.
85014
85015 2001-09-01  Jim Meyering  <meyering@lucent.com>
85016
85017         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
85018         Used by df.
85019
85020 2001-09-01  Jim Meyering  <meyering@lucent.com>
85021
85022         * lib/xreadlink.c: New file.
85023         * lib/xreadlink.h: New file.
85024         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
85025         xreadlink.h.
85026
85027         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
85028         doesn't conflict with sparc Solaris 7's definition in
85029         /usr/include/sys/int_types.h.
85030
85031         * lib/exclude.c: Use `""', not `<>' to #include non-system header
85032         files.
85033         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
85034         and strncasecmp as r-values.  Unixware didn't have declarations.
85035
85036 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85037
85038         * lib/xstrtol.h: Add copyright notice.
85039         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
85040         LONGINT_INVALID_SUFFIX_CHAR.
85041
85042 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85043
85044         * lib/xstrtol.c (strtoimax): New decl.
85045
85046 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85047
85048         * lib/xgetcwd.c: Don't include pathmax.h.
85049         Include stdlib.h and unistd.h if available.
85050         Include xalloc.h.
85051         (xmalloc, xstrdup, free): Remove decls.
85052         (xgetcwd): Don't assume sizes fit in unsigned.
85053         Check for overflow when computing sizes.
85054         Simplify reallocation code.
85055
85056 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85057
85058         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
85059         a directory's st_size can have an arbitrary value, so the old
85060         usage could waste an arbitrary amount of memory.  All uses
85061         changed.
85062         * lib/savedir.h: Update prototype.
85063
85064 2001-08-31  Paul Eggert  <eggert@twinsun.com>
85065
85066         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
85067
85068         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
85069         old strtoimax.c.
85070
85071         Also, make the following further changes to make this file's
85072         configuration more similar to that of strtol.c:
85073         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
85074         (strtoumax, uintmax_t, strtoull, strtol): Remove.
85075         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
85076         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
85077         changed to signed values.
85078
85079         And make the following changes as well:
85080         Fix copyright notice, as 1999 was missing.
85081         (verify): New macro.
85082         (strtoimax): Check sizes at compile-time, not run-time.
85083         Prefer strtol to strtoll if both work.
85084         (main): Remove; it was not that useful and was a pain to maintain.
85085
85086         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
85087
85088 2001-08-31  Jim Meyering  <meyering@lucent.com>
85089
85090         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
85091         Use an initial, malloc'd, buffer of length 128 rather than
85092         a statically allocated one of length 1024.
85093
85094 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85095
85096         Simplify code, partly by assuming autoconf 2.52 semantics.
85097
85098         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
85099
85100         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
85101         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
85102         All uses removed.
85103         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
85104         Move AC_REQUIRE to next-to-top level, to avoid confusion.
85105         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
85106         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
85107         jm_AC_HEADER_INTTYPES_H.
85108         * m4/jm-macros.m4 (jm_MACROS): Likewise.
85109
85110         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
85111
85112         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
85113         Quote first arg of AC_DEFUN.
85114         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
85115         since they are needed to parse the include file even if we need
85116         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
85117         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
85118         but with opposite signedness.
85119
85120 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85121
85122         Merge 'exclude' changes from tar 1.13.22.
85123         This fixes one or two unlikely storage allocation overflow bugs,
85124         but doesn't change user-visible behavior otherwise.
85125
85126 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85127
85128         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
85129         (jm_PREREQ_EXCLUDE): New macro.
85130
85131 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85132
85133         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
85134         tm to be declared.
85135
85136 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85137
85138         * lib/hash.c: Remove '2001' from copyright notice.
85139
85140 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85141
85142         * lib/full-write.h: New file.
85143         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
85144         * lib/full-write.c: Correct credits, as cccp.c no longer
85145         exists and anyway it was so heavily changed from the old cccp
85146         code as to be unrecognizable.  Include full-write.h.
85147         (full_write): Return size_t, with short writes meaning failure.
85148         All callers changed.  This fixes a bug with large buffers
85149         on 64-bit hosts.
85150         * lib/utime.c: Include full-write.h.
85151
85152 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85153
85154         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
85155         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
85156         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
85157         Include if available.
85158         (<xalloc.h>): Include
85159         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
85160         (verify): New macro.  Use it to verify that EXCLUDE macros do not
85161         collide with FNM macros.
85162         (struct patopts): New struct.
85163         (struct exclude): Use it, as exclude patterns now come with options.
85164         (new_exclude): Support above changes.
85165         (new_exclude, add_exclude_file):
85166         Initial size must now be a power of two to simplify overflow checking.
85167         (free_exclude, fnmatch_no_wildcards): New function.
85168         (excluded_filename): No longer requires options arg, as the options
85169         are determined by add_exclude.  Now returns bool, not int.
85170         (excluded_filename, add_exclude):
85171         Add support for the fancy new exclusion options.
85172         (add_exclude, add_exclude_file): Now takes int options arg.
85173         Check for arithmetic overflow when computing sizes.
85174         (add_exclude_file): xrealloc might modify errno, so don't
85175         realloc until after errno might be used.
85176
85177         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
85178         New macros.
85179         (free_exclude): New decl.
85180         (add_exclude, add_exclude_file): Now takes int options arg.
85181         (excluded_filename): No longer requires options arg, as the options
85182         are determined by add_exclude.  Now returns bool, not int.
85183
85184 2001-08-30  Paul Eggert  <eggert@twinsun.com>
85185
85186         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
85187
85188 2001-08-27  Jim Meyering  <meyering@lucent.com>
85189
85190         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
85191
85192         * lib/version-etc.c (N_): Remove definition.
85193         Revert most of last change.
85194         Instead, simply don't mark the `Copyright...' string for translation.
85195         Based on advice from Paul Eggert.
85196
85197         * lib/strtoxmax.c: Tweak comment.
85198
85199 2001-08-26  Jim Meyering  <meyering@lucent.com>
85200
85201         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
85202
85203         * m4/xstrtoimax.m4: New file.
85204         * m4/xstrtoumax.m4: Add comments explaining why we
85205         AC_REPLACE_FUNCS(strtol).
85206
85207 2001-08-26  Jim Meyering  <meyering@lucent.com>
85208
85209         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
85210         of copyright with `%s' so translators don't get an untranslated
85211         message in 2002.
85212         (COPYRIGHT_YEAR): Define.
85213         (version_etc): Use fprintf rather than fputs.
85214         Suggestion from Ulrich Drepper.
85215
85216         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
85217
85218         * lib/strtoll.c: New file, from GNU libc.
85219         * lib/xstrtoimax.c: New file.
85220
85221         * lib/xstrtol.h: Add xstrtoimax.
85222         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
85223         * lib/strtoimax.c: New file.  Likewise, but first define
85224         STRTOUXMAX_SIGNED.
85225
85226         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
85227         ...
85228         * lib/strtoxmax.c: ... then renamed to this.
85229
85230 2001-08-18  Paul Eggert  <eggert@twinsun.com>
85231
85232         * m4/inttypes.m4: Add AC_PREREQ(2.13).
85233         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
85234         (jm_AC_TYPE_INTMAX_T): New macro.
85235         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
85236
85237         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
85238
85239         * m4/longlong.m4: Renamed from ulonglong.m4.
85240         * m4/inttypes.m4: Renamed from inttypes_h.m4.
85241         * m4/uintmax_t.m4: Removed.
85242
85243 2001-08-13  Paul Eggert  <eggert@twinsun.com>
85244
85245         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
85246         Port to Solaris 8, where 'sed' requires a space after the 'r'
85247         command, and where sh dislikes "$/".  Clean up the spacing a bit.
85248         Redirect output to $tmp just once.
85249
85250 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
85251
85252         * lib/addext.c (<errno.h>): Include.
85253         (errno): Declare if not defined.
85254         (addext): Work correctly when pathconf returns -1 and leaves
85255         errno alone because there is no limit.  Also, work even if
85256         pathconf returns a value greater than SIZE_MAX.
85257
85258 2001-08-12  Jim Meyering  <meyering@lucent.com>
85259
85260         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
85261         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
85262         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
85263         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
85264         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
85265         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
85266         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
85267         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
85268         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
85269         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
85270         utime.m4, utimes.m4, xstrtoumax.m4:
85271         Quote the first argument in each use of AC_DEFUN.
85272
85273 2001-08-12  Jim Meyering  <meyering@lucent.com>
85274
85275         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
85276         Simply `return getcwd (NULL, 0);'.
85277         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
85278         Use 1300 as initial value for length, not PATH_MAX.
85279
85280         * lib/pathmax.h: Clean up cpp syntax.
85281
85282 2001-08-12  Jim Meyering  <meyering@lucent.com>
85283
85284         * lib/gettimeofday.c: New file.
85285         * lib/gtod.h: New file.
85286         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
85287
85288 2001-08-05  Jim Meyering  <meyering@lucent.com>
85289
85290         * m4/jm-macros.m4: Require autoconf-2.52.
85291
85292 2001-08-04  Jim Meyering  <meyering@lucent.com>
85293
85294         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
85295         stmt, to get in sync with glibc.
85296
85297 2001-08-03  Paul Eggert  <eggert@twinsun.com>
85298
85299         The following changes are from gettext 0.10.39 as maintained by
85300         Bruno Haible.
85301
85302         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
85303         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
85304         with inverted sense.  All uses changed.
85305
85306         * lib/mbswidth.c: Don't include <limits.h>.
85307         Include <stdlib.h> and <string.h> unconditionally.
85308         (iswcntrl, mbsinit, ISCNTRL): New macros.
85309         (mbsnwidth): Use K&R style function declarations.
85310         Don't bother checking for MB_LEN_MAX == 1, since the compiler
85311         can optimize it when MB_CUR_MAX == 1.
85312         The width of control characters is zero, not 1.
85313
85314 2001-08-03  Paul Eggert  <eggert@twinsun.com>
85315
85316         The following changes are from gettext 0.10.39 as maintained by
85317         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
85318
85319         * m4/codeset.m4: Upgrade to serial AM1.
85320         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
85321         all uses changed.  Quote first arg of AC_DEFUN.
85322         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
85323
85324         * m4/iconv.m4: Upgrade to serial AM2.
85325         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
85326         Add --with-libconv-prefix.
85327         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
85328         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
85329         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
85330         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
85331         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
85332
85333         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
85334         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
85335         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
85336         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
85337         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
85338         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
85339         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
85340         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
85341         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
85342
85343         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
85344         string.h any more.
85345
85346         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
85347         not the default value.
85348
85349         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
85350         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
85351         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
85352         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
85353         Also check for iswcntrl, used for wcwidth fallback.
85354         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
85355         to Autoconf 2.13.
85356
85357 2001-08-03  Jim Meyering  <meyering@lucent.com>
85358
85359         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
85360         as it was in the original.  Reported by Paul Eggert.
85361
85362 2001-07-16  Jim Meyering  <meyering@lucent.com>
85363
85364         * m4/gettimeofday.m4: New file.
85365         Prompted by a report from Bernhard Baehr.
85366
85367 2001-07-15  Jim Meyering  <meyering@lucent.com>
85368
85369         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
85370         stuff. Now it's in ../Makefile.cfg.
85371
85372 2001-07-15  Jim Meyering  <meyering@lucent.com>
85373
85374         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
85375         (BUILT_SOURCES): Add unlocked-io.h.
85376         (io_functions): Define.
85377         (unlocked-io.h): New rule.
85378         (DISTCLEANFILES): Add unlocked-io.h.
85379         (all-local): Depend on unlocked-io.h, to ensure it is created.
85380
85381         * lib/unlocked-io.hin: New file
85382
85383         * lib/regex.c: Update from glibc.
85384
85385 2001-07-05  Jim Meyering  <meyering@lucent.com>
85386
85387         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
85388         recommendation.
85389         (libfetish_a_SOURCES): Put all .h files here instead.
85390         Remove a thus-exposed (better checks in automake) duplicate and
85391         two unnecessary .h files.
85392
85393 2001-07-04  Jim Meyering  <meyering@lucent.com>
85394
85395         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
85396         that generates jm-glibc-io.m4 so that it doesn't trigger any make
85397         distcheck failure.
85398
85399 2001-07-02  Jim Meyering  <meyering@lucent.com>
85400
85401         The following changes were prompted by suggestions from Bruno Haible.
85402
85403         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
85404         is now generated.
85405         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
85406         definition of EXTRA_DIST.
85407         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
85408         ensure that the generated file is created/updated whenever the list
85409         of $(unlocked_functions) is changed.
85410         (jm-glibc-io.m4): New rule.
85411         (unlocked-io.h): New rule -- currently unused.
85412
85413 2001-06-24  Jim Meyering  <meyering@lucent.com>
85414
85415         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
85416         unmatched right bracket, rather than kludging it with an extra,
85417         falsely-matching quote in a comment.  Patch by Akim Demaille.
85418
85419 2001-06-11  Jim Meyering  <meyering@lucent.com>
85420
85421         * lib/regex.c: Update from GNU libc.
85422
85423 2001-05-27  Jim Meyering  <meyering@lucent.com>
85424
85425         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
85426         Check for ut_type in struct utmp.
85427
85428 2001-05-27  Jim Meyering  <meyering@lucent.com>
85429
85430         * lib/readutmp.h (UT_TYPE): Define.
85431
85432 2001-05-24  Jim Meyering  <meyering@lucent.com>
85433
85434         * lib/argmatch.c: Include "quote.h".
85435         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
85436         quote function.  Reported by Göran Uddeborg.
85437
85438 2001-05-22  Jim Meyering  <meyering@lucent.com>
85439
85440         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
85441         now that we use the package-supplied version unconditionally.
85442         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
85443
85444 2001-05-21  Jim Meyering  <meyering@lucent.com>
85445
85446         * m4/regex.m4: Change a couple backticks to single quotes to avoid
85447         shell syntax errors.
85448
85449 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
85450
85451         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
85452
85453 2001-05-20  Paul Eggert  <eggert@twinsun.com>
85454
85455         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
85456         Don't bother to check library strftime, since
85457         we'll be using our own my_strftime function anyway.
85458         Define my_strftime instead of strftime.
85459
85460 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
85461
85462         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
85463         which is not yet declared.
85464
85465 2001-05-15  Jim Meyering  <meyering@lucent.com>
85466
85467         * m4/regex.m4: Use proper quoting so brackets appear in the test
85468         program.
85469         Reported by, and with help from, Bruno Haible.
85470
85471 2001-05-13  Jim Meyering  <meyering@lucent.com>
85472
85473         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
85474         undefined.
85475
85476 2001-05-11  Paul Eggert  <eggert@twinsun.com>
85477
85478         dirname code cleanup.  base_name now behaves more compatibly
85479         with POSIX basename when given file names that have trailing
85480         slashes, and similarly for dir_name.  Add new primitives
85481         base_len and dir_len.  Put the directory-name-related decls
85482         into dirname.h.
85483
85484         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
85485         * lib/backupfile.c (base_name): Likewise.
85486         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
85487         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
85488         * lib/makepath.c (strip_trailing_slashes): Likewise.
85489         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
85490         ISSLASH): Likewise.
85491         * lib/rename.c (strip_trailing_slashes): Likewise.
85492         * lib/same.c (base_name): Likewise.
85493         * lib/stripslash.c (ISSLASH): Likewise.
85494
85495         * lib/addext.c: Include <dirname.h> after size_t is defined.
85496         * lib/backupfile.c: Likewise.
85497
85498         * lib/addext.c (addext): Use base_len to trim redundant
85499         trailing slashes instead of doing it ourselves.
85500         But do not trim the last slash if it is not redundant.
85501
85502         * lib/backupfile.c (find_backup_file_name,
85503         max_backup_version): Use base_len instead of rolling it ourselves.
85504         Handle the case of "" and (on DOS) "C:" correctly.
85505
85506         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
85507         needed. Include <string.h>, <dirname.h>.
85508         (base_name): Allow file names ending in slashes, other than names
85509         that are all slashes.  In this case, return the basename followed
85510         by the slashes.  This is more general, and can be used in places
85511         where the original base_name purposely had an assertion failure.
85512         (base_len): New function.
85513
85514         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
85515         Do not include <assert.h>; no longer needed.
85516         Include xalloc.h.
85517         (memrchr): Remove decl.
85518         (dir_name_r): Remove.
85519         (dir_len): Renamed from dirlen.  All callers changed.
85520         Rewrite in terms of base_name, for simplicity and consistency.
85521         (dir_name): Never return NULL.  All callers changed.
85522         Do not include <stdlib.h> in test program; no longer needed.
85523         return 0; is fine for test program.
85524
85525         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
85526         New macros.
85527         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
85528
85529         * lib/path-concat.c (path_concat): Use base_len to compute
85530         base length, not strlen; this means we cannot rely on memcpy
85531         to null-terminate.
85532
85533         * lib/same.c (STREQ): Remove.
85534         (same_name): Handle the case where the basename ends in trailing '/'.
85535
85536         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
85537         a slash was stripped.  Do not strip the last slash after a
85538         file system prefix.
85539
85540 2001-05-11  Paul Eggert  <eggert@twinsun.com>
85541
85542         * lib/Makefile.am (libfetish_a_SOURCES):
85543         Add strftime.c, since we now compile it on all hosts.
85544
85545         * lib/strftime.c (my_strftime):
85546         Define to nstrftime if emacs, but only if my_strftime is not defined.
85547         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
85548         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
85549         Add one more extra argument: a nanoseconds value.
85550         All uses changed.
85551         (ns): New macro.
85552         (my_strftime function): Add %N format.
85553         (emacs_strftimeu): Renamed from emacs_strftime,
85554         with extra ut argument.
85555
85556 2001-05-09  Paul Eggert  <eggert@twinsun.com>
85557
85558         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
85559
85560 2001-04-21  Jim Meyering  <meyering@lucent.com>
85561
85562         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
85563         doesn't interfere.
85564
85565 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
85566
85567         * m4/ftruncate.m4: Check for chsize.
85568         Link with ftruncate.o unconditionally if ftruncate is missing.
85569         This was required when cross-compiling to i586-mingw32msvc.
85570
85571 2001-04-08  Jim Meyering  <meyering@lucent.com>
85572
85573         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
85574         recomputed; that's necessary when the offset spans a DST transition.
85575         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
85576
85577 2001-04-02  Jim Meyering  <meyering@lucent.com>
85578
85579         * lib/regex.h, regex.c: Update from GNU libc.
85580
85581 2001-03-24  Jim Meyering  <meyering@lucent.com>
85582
85583         * m4/jm-macros.m4: Require autoconf-2.49d.
85584
85585 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
85586
85587         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
85588
85589 2001-03-19  Paul Eggert  <eggert@twinsun.com>
85590
85591         * lib/version-etc.c (version_etc_copyright): Update to 2001.
85592
85593 2001-03-17  Jim Meyering  <meyering@lucent.com>
85594
85595         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
85596         now that the version in autoconf is equivalent.
85597         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
85598
85599         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
85600         Suggestion from Akim Demaille.
85601
85602         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
85603         (jm_PREREQ_TEMPNAME): New function.
85604
85605 2001-03-16  Paul Eggert  <eggert@twinsun.com>
85606
85607         * lib/tempname.c (uint64_t): Define to uintmax_t if
85608         not defined, and if UINT64_MAX is not defined.
85609         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
85610         Reported by John David Anglin.
85611
85612 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
85613
85614         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
85615         resolve alias if codeset is empty.
85616         * lib/config.charset (BeOS): Use wildcard syntax.
85617
85618 2001-03-13  Jim Meyering  <meyering@lucent.com>
85619
85620         * lib/path-concat.c (path_concat)
85621         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
85622         concatenating e.g., `C:' and `foo'.
85623         From Bruno Haible.
85624
85625 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
85626
85627         * lib/localcharset.c (locale_charset): Don't use
85628         setlocale(LC_CTYPE,NULL). Don't return NULL.
85629         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
85630
85631 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
85632
85633         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
85634         support for DOS/DJGPP.
85635
85636 2001-03-01  Paul Eggert  <eggert@twinsun.com>
85637
85638         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
85639         lacks mkstemp.  Compile our own tempname.c if we compile our own
85640         mkstemp.c, as mkstemp relies on tempname.
85641
85642 2001-03-01  Jim Meyering  <meyering@lucent.com>
85643
85644         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
85645         AH_VERBATIM really does output its argument verbatim.
85646
85647 2001-02-28  Paul Eggert  <eggert@twinsun.com>
85648
85649         * lib/Makefile.am (libfetish_a_SOURCES):
85650         Add dup-safer.c, fopen-safer.c.
85651         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
85652
85653         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
85654         * lib/unistd-safer.h: New files.
85655
85656 2001-02-25  Paul Eggert  <eggert@twinsun.com>
85657
85658         The mkstemp replacement is taken from glibc 2.2.2, with some
85659         portability fixes for use outside glibc, as follows:
85660
85661         * lib/tempname.c (struct_stat64): New macro.
85662         (direxists, __gen_tempname): Use it.
85663         This avoids a portability problem with Solaris 8.
85664
85665         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
85666         (<stddef.h>, <stdint.h>, <string.h>):
85667         Include only if STDC_HEADERS || _LIBC.
85668         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
85669         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
85670         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
85671         (__set_errno): Define this macro if <errno.h> doesn't.
85672         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
85673         Define these macros if <stdio.h> doesn't.
85674         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
85675         Define these macros if <sys/stat.h>
85676         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
85677         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
85678         __xstat64): Define if not _LIBC.
85679         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
85680         (__gen_tempname): Invoke gettimeofday only if
85681         HAVE_GETTIMEOFDAY || _LIBC;
85682         otherwise, fall back on plain "time".
85683         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
85684
85685         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
85686
85687         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
85688
85689 2001-02-18  Paul Eggert  <eggert@twinsun.com>
85690
85691         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
85692
85693 2001-02-17  Paul Eggert  <eggert@twinsun.com>
85694
85695         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
85696         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
85697         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
85698         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
85699
85700 2001-02-17  Paul Eggert  <eggert@twinsun.com>
85701
85702         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
85703         Remove workaround macros for hosts that have mbrtowc but not
85704         mbstate_t, as we now insist on proper declarations for both
85705         before using mbrtowc.
85706
85707 2001-02-17  Jim Meyering  <meyering@lucent.com>
85708
85709         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
85710         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
85711         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
85712         UnixWare 7.1.1.
85713
85714         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
85715         rather than AC_CACHE_VAL.
85716
85717 2001-02-17  Jim Meyering  <meyering@lucent.com>
85718
85719         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
85720         around included file name.
85721
85722         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
85723
85724         * lib/strftime.c: Update from GNU libc (the only changes were to
85725         comments).
85726
85727 2001-02-17  Jim Meyering  <meyering@lucent.com>
85728
85729         * lib/regex.c: Update from libc.
85730
85731 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
85732
85733         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
85734         clash.
85735
85736 2001-02-16  Paul Eggert  <eggert@twinsun.com>
85737
85738         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
85739         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
85740         Reported by Mark Hounschell via Paul Eggert.
85741
85742 2001-02-07  Jim Meyering  <meyering@lucent.com>
85743
85744         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
85745
85746 2001-02-05  Jim Meyering  <meyering@lucent.com>
85747
85748         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
85749         it includes the patch required for `large file' support with at least
85750         HP-UX's 10.20 /bin/cc.
85751
85752 2001-02-03  Jim Meyering  <meyering@lucent.com>
85753
85754         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
85755         AS_IF, now that it works once again (mysteriously).
85756         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
85757
85758 2001-01-30  Jim Meyering  <meyering@lucent.com>
85759
85760         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
85761         * m4/chown.m4: Rename conftestchown to conftest.chown.
85762         * m4/rename.m4: s/conftestdir/conftest.d1/ and
85763         s/conftestdir2/conftest.d2/.
85764         * m4/utimes.m4: s/conftestdata/conftest.data/
85765         Inspired by Pavel Roskin's change in autoconf.
85766
85767 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
85768
85769         * lib/config.charset: Update for FreeBSD 4.2.
85770
85771 2001-01-27  Jim Meyering  <meyering@lucent.com>
85772
85773         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
85774         a use of AS_IF.
85775         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
85776
85777 2001-01-26  Jim Meyering  <meyering@lucent.com>
85778
85779         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
85780         quotearg.c includes it.
85781
85782 2001-01-26  Jim Meyering  <meyering@lucent.com>
85783
85784         * lib/quotearg.c: Include stddef.h.
85785         * lib/quote.c: Include stddef.h.
85786         Reported by Axel Kittenberger.
85787
85788         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
85789         line in double quotes so that it evokes a better diagnostic.
85790         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
85791         Reported by Axel Kittenberger.
85792
85793 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
85794
85795         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
85796         as if it was a `charset'.
85797
85798 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
85799
85800         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
85801         has const.
85802
85803 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
85804
85805         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
85806         to avoid a warning.  Add back 'const' to inptr.
85807
85808 2001-01-20  Jim Meyering  <meyering@lucent.com>
85809
85810         Be sure that headers are checked before used in code compiled
85811         for the type checks.
85812         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
85813         In place of that, invoke jm_CHECK_ALL_TYPES.
85814         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
85815         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
85816         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
85817         The check for ssize_t was mistakenly run before the test for unistd.h.
85818
85819         The configure-time check for stdbool.h was missing.
85820         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
85821         (jm_PREREQ_HASH): New function.
85822
85823 2001-01-17  Jim Meyering  <meyering@lucent.com>
85824
85825         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
85826         for autoconf-2.49c.
85827         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
85828
85829 2001-01-16  Jim Meyering  <meyering@lucent.com>
85830
85831         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
85832         From Bruno Haible.
85833
85834 2001-01-14  Jim Meyering  <meyering@lucent.com>
85835
85836         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
85837         foo and bar.  Create conftestdir/ in the script, not in the C code.
85838         Remove directories in the script, not in the C code.
85839         Remove conftestdir{,2} before trying to create the directory.
85840         Make the entire configure script fail if the mkdir fails.
85841
85842 2001-01-14  Jim Meyering  <meyering@lucent.com>
85843
85844         * lib/rename.c: New file.  From Volker Borchert.
85845         Include stdlib.h, string.h or strings.h, and xalloc.h.
85846         Use strip_trailing_slashes rather than open-coding it.
85847
85848 2001-01-03  Paul Eggert  <eggert@twinsun.com>
85849
85850         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
85851
85852 2001-01-03  Jim Meyering  <meyering@lucent.com>
85853
85854         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
85855         of local `inptr' to avoid warning with some system declarations of
85856         iconv.
85857
85858 2001-01-02  Volker Borchert  <bt@teknon.de>
85859
85860         * m4/rename.m4: New file.
85861         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
85862
85863 2001-01-01  Jim Meyering  <meyering@lucent.com>
85864
85865         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
85866         even on systems with utmpx.h.  It's necessary for the declaration of
85867         utmp's ut_user member.  Reported by Andreas Jaeger.
85868
85869         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
85870         available. They are required for the declarations of getgrgid and
85871         getpwuid resp.
85872         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
85873         Reported by Andreas Jaeger.
85874
85875 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
85876
85877         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
85878         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
85879         so `make install' also works in VPATH builds.
85880
85881 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
85882
85883         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
85884         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
85885         can be used in subdirectories.
85886
85887 2000-12-29  Paul Eggert  <eggert@twinsun.com>
85888
85889         * lib/modechange.c: Do not assume that mode_t uses the
85890         traditional octal encoding.  E.g. "chmod 1 FOO" should set
85891         the other-execute bit of FOO even if S_IXOTH != 1.
85892
85893         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
85894         WOTH, XOTH, ALLM): New macros.
85895         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
85896          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
85897         Use them.
85898         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
85899         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
85900         (mode_compile):
85901         No need to use uintmax_t; unsigned long is long enough.
85902         Don't bother to get suffix since we don't use it.
85903
85904 2000-12-26  Jim Meyering  <meyering@lucent.com>
85905
85906         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
85907         better with autoheader.
85908
85909 2000-12-24  Jim Meyering  <meyering@lucent.com>
85910
85911         * lib/hash.c (is_prime): Return explicit boolean values.
85912         (hash_get_first): Return NULL to appease Irix5.6's 89.
85913         Reported by Nelson Beebe.
85914
85915 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
85916
85917         * lib/localcharset.c (locale_charset): Add support for Win32.
85918
85919 2000-12-18  Paul Eggert  <eggert@twinsun.com>
85920
85921         * lib/physmem.h, lib/physmem.c: New files.
85922
85923         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
85924         (noinst_HEADERS): Add physmem.h.
85925
85926         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
85927         't' for compatibility with Solaris 8 sort.
85928
85929 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
85930
85931         * lib/config.charset: Add support for BeOS.
85932
85933 2000-12-17  Jim Meyering  <meyering@lucent.com>
85934
85935         * m4/dos.m4 (jm_AC_DOS): New file and macro.
85936         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
85937
85938 2000-12-16  Jim Meyering  <meyering@lucent.com>
85939
85940         This bug had a serious impact on chown: `chown N:M FILE' (for integer
85941         N and M) would have treated it like `chown N:N FILE'.
85942
85943         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
85944
85945 2000-12-16  Jim Meyering  <meyering@lucent.com>
85946
85947         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
85948         SHELLS_FILE to a file name that's useful on djgpp systems.
85949         Include stdlib.h.
85950         (ADDITIONAL_DEFAULT_SHELLS): Define.
85951         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
85952         Based mostly on a patch from Prashant TR.
85953
85954 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
85955
85956         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
85957         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
85958         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
85959
85960 2000-12-08  Andreas Schwab  <schwab@suse.de>
85961
85962         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
85963         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
85964
85965 2000-12-07  Jim Meyering  <meyering@lucent.com>
85966
85967         * lib/stripslash.c (ISSLASH): Define.
85968         (strip_trailing_slashes): Use ISSLASH rather than comparing against
85969         `/'.
85970         From Prashant TR.
85971
85972         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
85973         (dir_name_r): Declare this function as static.
85974         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
85975         manifest itself on a name containing a mix of slashes and
85976         backslashes.
85977         Make this function work with names starting with a DOS-style
85978         drive letter and colon prefix.
85979         (dir_name): Append `.' if necessary.
85980         Based mostly on patches from Prashant TR and Eli Zaretskii.
85981
85982         * lib/dirname.h (dir_name_r): Remove prototype.
85983
85984 2000-12-06  Paul Eggert  <eggert@twinsun.com>
85985
85986         * m4/off_t-format.m4: Remove this file.
85987         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
85988
85989 2000-12-06  Jim Meyering  <meyering@lucent.com>
85990
85991         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
85992         replacement strtoull, we may well need the replacement strtoul, too.
85993         Check for declarations of strtoul and strtoull.
85994         Check for strtol.  Mainly as a cue to cause automake to include
85995         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
85996         Check for limits.h -- strtol.c needs it.
85997
85998 2000-12-05  Jim Meyering  <meyering@lucent.com>
85999
86000         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
86001
86002 2000-12-04  Jim Meyering  <meyering@lucent.com>
86003
86004         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
86005         Also include memory.h, stdlib.h, unistd.h if appropriate.
86006         Reported by Andreas Jaeger (conflicting declaration of malloc).
86007
86008 2000-12-02  Jim Meyering  <meyering@lucent.com>
86009
86010         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
86011         * m4/jm-macros.m4 (jm_MACROS): require it.
86012
86013 2000-12-02  Jim Meyering  <meyering@lucent.com>
86014
86015         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
86016
86017 2000-12-01  Paul Eggert  <eggert@twinsun.com>
86018
86019         * lib/memrchr.c: Include <config.h> before any system include file.
86020
86021 2000-11-30  Jim Meyering  <meyering@lucent.com>
86022
86023         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
86024
86025 2000-11-30  Jim Meyering  <meyering@lucent.com>
86026
86027         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
86028
86029 2000-11-29  Paul Eggert  <eggert@twinsun.com>
86030
86031         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
86032
86033 2000-11-26  Jim Meyering  <meyering@lucent.com>
86034
86035         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
86036
86037 2000-11-22  Paul Eggert  <eggert@twinsun.com>
86038
86039         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
86040         size of (size_t) -1; it's not portable.
86041
86042 2000-11-17  Jim Meyering  <meyering@lucent.com>
86043
86044         * lib/strstr.c: Update from GNU libc.
86045
86046 2000-11-17  Akim Demaille  <akim@epita.fr>
86047
86048         * lib/obstack.h: Formatting changes.
86049         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
86050         prevent type checking.
86051         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
86052         cast the value to (void *): assigning a `foo *' to a `void *'
86053         variable is valid.
86054         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
86055
86056 2000-11-16  Jim Meyering  <meyering@lucent.com>
86057
86058         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
86059
86060 2000-11-11  Jim Meyering  <meyering@lucent.com>
86061
86062         * lib/error.c: Add a couple #includes, merging from GNU libc version.
86063
86064 2000-11-10  Jim Meyering  <meyering@lucent.com>
86065
86066         * lib/obstack.h: Update from GNU libc.
86067         * lib/obstack.c: Likewise.
86068
86069 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
86070
86071         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
86072
86073 2000-11-06  Paul Eggert  <eggert@twinsun.com>
86074
86075         * lib/getusershell.c (setusershell): Use rewind rather than
86076         fseek/fseeko, to avoid configuration hassles with fseeko.
86077         Don't bother opening SHELLS_FILE if shellstream is NULL;
86078         it's not necessary.
86079
86080 2000-11-05  Jim Meyering  <meyering@lucent.com>
86081
86082         * lib/makepath.h (make_dir): Declare.
86083         * lib/makepath.c (make_dir): Remove `static' attribute.
86084         Tweak a comment.
86085
86086 2000-11-04  Jim Meyering  <meyering@lucent.com>
86087
86088         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
86089
86090 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
86091
86092         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
86093         last one in a bucket, advance to the next bucket.
86094
86095 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
86096
86097         * lib/fnmatch.c: Do not comment out all the code if we are using
86098         the GNU C library, because in some cases we are replacing buggy
86099         code in the GNU C library itself.
86100
86101 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
86102
86103         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
86104         (regex_compile): Catch bogus \(\1\).
86105
86106 2000-10-30  Paul Eggert  <eggert@twinsun.com>
86107
86108         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
86109         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
86110         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
86111
86112 2000-10-30  Paul Eggert  <eggert@twinsun.com>
86113
86114         * lib/error.h, getline.h, modechange.h:
86115         Remove "2000" from Copyright line, as the file hasn't been
86116         changed this year other than in the copyright notice.
86117
86118         * lib/xalloc.h: Add "2000" to Copyright line, as this file
86119         was changed this year.
86120
86121 2000-10-29  Jim Meyering  <meyering@lucent.com>
86122
86123         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
86124         renaming.
86125         * m4/ls-mntd-fs.m4: Likewise
86126
86127 2000-10-29  Jim Meyering  <meyering@lucent.com>
86128
86129         * lib/xstat.in: Fix grammar in comment.
86130
86131 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
86132
86133         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
86134         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
86135         doesn't define __restrict_arr.
86136
86137 2000-10-28  Jim Meyering  <meyering@lucent.com>
86138
86139         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
86140         (jm_PREREQ_MEMCHR): New function.
86141
86142 2000-10-28  Jim Meyering  <meyering@lucent.com>
86143
86144         * lib/memchr.c: Update from libc.
86145         Adjust for portability:
86146         [HAVE_STDLIB_H]: Include stdlib.h.
86147         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
86148         Undef __memchr, too.
86149         [!weak_alias]: Define __memchr to memchr.
86150
86151         * lib/regex.c: Update from libc.
86152         * lib/regex.h: Likewise.
86153         * lib/getopt1.c: Likewise.
86154         * lib/memcmp.c: Likewise.
86155
86156         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
86157         Avoid using fseek, when possible -- it's broken by design.
86158         Patch by Ulrich Drepper.
86159
86160 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
86161
86162         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
86163         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
86164         Giving in to popular pressure to shut up the compiler with casts.
86165
86166 2000-10-26  Jim Meyering  <meyering@lucent.com>
86167
86168         * lib/strftime.c: Update from libc.
86169
86170 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
86171
86172         * regex.c: More `unsigned char' -> `re_char' changes.
86173         Also change several `int' into `re_wchar_t'.
86174         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
86175         (PUSH_FAILURE_POINTER): Don't cast any more.
86176         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
86177         We want GCC to complain, since this piece of code makes
86178         re_match non-reentrant, which *should* be fixed.
86179         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
86180         (EXTEND_BUFFER): Use RETALLOC.
86181         (SET_LIST_BIT): Don't cast.
86182         (re_wchar_t): New type.
86183         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
86184         that those two functions will always properly return.
86185         (IMMEDIATE_QUIT_CHECK): Cast to void.
86186         (analyse_first): Use recursion rather than an explicit stack.
86187         (re_compile_fastmap): Can't fail anymore.
86188         (re_search_2): Don't check re_compile_fastmap for failure.
86189         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
86190         Now also sets the new value (passed in a new argument).
86191         (re_match_2_internal): Use it.
86192         Also, use a new var `reg' of type size_t when looping through regs
86193         rather than reuse the inappropriate `mcnt'.
86194
86195 2000-10-25  Jim Meyering  <meyering@lucent.com>
86196
86197         * lib/obstack.c: Update from libc.
86198
86199 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
86200
86201         * regex.c (regex_compile): Change the way of handling a range from
86202         a char less than 256 to a char not less than 256.
86203
86204 2000-10-24  Andrew Innes  <andrewi@gnu.org>
86205
86206         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
86207         NT-Emacs only.
86208         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
86209         so that re_search functions only quit when callers expect them to.
86210
86211 2000-10-23  Jim Meyering  <meyering@lucent.com>
86212
86213         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
86214         wrong.  That set_locale call must not have any side effects.
86215         From Paul Eggert.
86216
86217 2000-10-22  Jim Meyering  <meyering@lucent.com>
86218
86219         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
86220         [CYCLIC]: Remove now-unused definition.
86221
86222         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
86223         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
86224         Suggestion from Ulrich Drepper.
86225
86226 2000-10-21  Jim Meyering  <meyering@lucent.com>
86227
86228         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
86229         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
86230         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
86231
86232 2000-10-21  Jim Meyering  <meyering@lucent.com>
86233
86234         * lib/dirname.c (memrchr): Declare if necessary.
86235         (dir_name): Remove the restriction that there be no
86236         trailing slashes.  Now, this code skips past them, effectively
86237         ignoring them.
86238         [TEST_DIRNAME] (main): New unit tests.
86239
86240         * lib/memrchr.c: New file from GNU libc.
86241         Undef __memrchr, too.
86242         [!weak_alias]: Define __memrchr to memrchr.
86243         Guard weak_alias use with `#ifdef weak_alias'.
86244
86245 2000-10-21  Jim Meyering  <meyering@lucent.com>
86246
86247         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
86248         (dir_name): Use dir_name_r.
86249         * lib/dirname.h (dir_name_r): Declare it.
86250
86251 2000-10-17  Jim Meyering  <meyering@lucent.com>
86252
86253         * lib/quote.h (PARAMS): Define and use.
86254         Reported by Akim Demaille.
86255
86256         * lib/getopt.c: Update from libc.
86257
86258 2000-10-16  Jim Meyering  <meyering@lucent.com>
86259
86260         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
86261         setlocale.
86262         From Jan Fedak.
86263
86264 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
86265
86266         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
86267
86268 2000-09-25  Jim Meyering  <meyering@lucent.com>
86269
86270         * lib/md5.h (rol): Define (from GnuPG).
86271
86272         * lib/sha.c: Give credit (GnuPG) where due.
86273         (M): Use rol rather than open-coding it.
86274         Add a FIXME comment.
86275
86276 2000-09-21  Jim Meyering  <meyering@lucent.com>
86277
86278         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
86279         Reported by Michael Stone.
86280
86281 2000-09-20  Jim Meyering  <meyering@lucent.com>
86282
86283         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
86284         (noinst_HEADERS): Add sha.h.
86285         Based on code from Scott G. Miller and from GnuPG.
86286
86287 2000-09-18  Jim Meyering  <meyering@lucent.com>
86288
86289         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
86290         LIBS. Otherwise, everyone ends up linking with -lelf for some
86291         configurations.
86292         Reported by Mike Stone.
86293
86294 2000-09-15  Jim Meyering  <meyering@lucent.com>
86295
86296         * lib/regex.c: Update from libc.
86297
86298 2000-09-10  Jim Meyering  <meyering@lucent.com>
86299
86300         * lib/getopt.c (_getopt_internal): Update from glibc.
86301
86302 2000-09-09  Jim Meyering  <meyering@lucent.com>
86303
86304         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
86305         think it should be used as a general replacement for isascii.
86306         * lib/fnmatch.c: Likewise.
86307         * lib/mbswidth.c: Likewise
86308         * lib/regex.c: Likewise.
86309
86310         Don't use atoi.
86311         * lib/userspec.c: Include sys/param.h and limits.h.
86312         Include xstrtol.h.
86313         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
86314         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
86315         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
86316         UID, GID.  Check range.
86317
86318 2000-09-06  Jim Meyering  <meyering@lucent.com>
86319
86320         * lib/getopt.c (_getopt_internal): Update from glibc.
86321
86322 2000-08-30  Jim Meyering  <meyering@lucent.com>
86323
86324         * lib/strftime.c: Merge in changes from GNU libc.
86325
86326 2000-08-26  Jim Meyering  <meyering@lucent.com>
86327
86328         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
86329         * m4/fpending.m4: New file.
86330
86331 2000-08-26  Jim Meyering  <meyering@lucent.com>
86332
86333         * lib/closeout.c: Include "__fpending.h".
86334         (close_stdout_status): Return right away if there's nothing to flush.
86335
86336         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
86337         * lib/__fpending.c: New file.
86338         * lib/__fpending.h: New file.
86339
86340 2000-08-20  Jim Meyering  <meyering@lucent.com>
86341
86342         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
86343         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
86344         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
86345
86346 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
86347
86348         Improve fileutils installation on systems where running
86349         programs (like install) can't be unlinked.
86350         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
86351         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
86352
86353 2000-08-07  Paul Eggert  <eggert@twinsun.com>
86354
86355         Standardize on "memory exhausted" instead of "Memory exhausted"
86356         or "virtual memory exhausted".
86357         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
86358         "virtual memory exhausted".
86359         * lib/same.c (same_name): Invoke xalloc_die instead of printing
86360         our own message.
86361         * lib/userspec.c (parse_user_spec): Likewise.
86362         * lib/bumpalloc.h: comment fix
86363         * lib/same.c, userspec.c: Include xalloc.h.
86364
86365         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
86366         not char *const and pointing to a constant array.
86367         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
86368         (xrealloc): Comment fix.
86369
86370         * lib/userspec.c (parse_user_spec):
86371         Don't translate a message until just before returning,
86372         to avoid unnecessary translation.
86373
86374 2000-08-07  Jim Meyering  <meyering@lucent.com>
86375
86376         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
86377         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
86378         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
86379         getgroups.c, gethostname.c, getopt.h, group-member.c,
86380         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
86381         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
86382         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
86383         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
86384         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
86385         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
86386         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
86387         yesno.c: Back out Copyright date changes for each file with no change
86388         this year.  This eases coordination with other programs using the same
86389         source code modules.  From Paul Eggert.
86390
86391 2000-08-06  Paul Eggert  <eggert@twinsun.com>
86392
86393         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
86394         not char, for compatibility with glibc 2.1.3 strftime.c.
86395
86396 2000-08-03  Greg McGary  <greg@mcgary.org>
86397
86398         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
86399         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
86400         (EXTEND_BUFFER): Use them.
86401
86402 2000-08-01  Jim Meyering  <meyering@lucent.com>
86403
86404         * lib/dirname.c (ISSLASH): Define.
86405         (BACKSLASH_IS_PATH_SEPARATOR): Define.
86406         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
86407         both `\' and `/' may be use as path separators.
86408         Based on a patch from Prashant TR.
86409
86410 2000-07-31  Paul Eggert  <eggert@twinsun.com>
86411
86412         * lib/quotearg.c (quotearg_n_options): Don't make the initial
86413         slot vector a constant, since it might get modified.
86414
86415 2000-07-31  Jim Meyering  <meyering@lucent.com>
86416
86417         * lib/xmalloc.c: Use `virtual memory exhausted', not
86418         `Memory exhausted'.
86419         * lib/obstack.c (print_and_abort): Likewise.
86420
86421 2000-07-30  Paul Eggert  <eggert@twinsun.com>
86422
86423         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
86424         buffer, so that the caller can always quote one small
86425         component of a "memory exhausted" message in slot 0.
86426         From a suggestion by Jim Meyering.
86427
86428 2000-07-30  Jim Meyering  <meyering@lucent.com>
86429
86430         * lib/makepath.c (make_path): Quote the other instance, too.
86431
86432         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
86433         (STATIC_BUF_SIZE): Define.
86434         (quotearg_n_options): Use only statically allocated storage when
86435         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
86436         than STATIC_BUF_SIZE.
86437
86438 2000-07-29  Jim Meyering  <meyering@lucent.com>
86439
86440         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
86441         * lib/dirname.c (dir_name): Likewise.
86442
86443         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
86444         `/'.
86445
86446         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
86447         (dir_name): Assert that there are no trailing slashes.
86448
86449 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
86450
86451         * lib/mbswidth.h (mbswidth): Add a flags argument.
86452         (mbswidth): New declaration.
86453         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
86454         * lib/mbswidth.c (mbswidth): Add a flags argument.
86455         (mbsnwidth): New function.
86456
86457 2000-07-24  Jim Meyering  <meyering@lucent.com>
86458
86459         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
86460
86461 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86462
86463         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
86464
86465 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86466
86467         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
86468         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
86469         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
86470         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
86471         invoke multibyte primitives.
86472
86473 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86474
86475         * lib/quotearg.c:
86476         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
86477         so that mbstate_t is always defined.
86478
86479         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
86480         be 1 in at least one GCC installation, and this configuration
86481         error is likely to be common.  Ignoring MB_LEN_MAX hurts
86482         performance on hosts that have mbrtowc but have only unibyte
86483         locales, but I assume these hosts are rare.
86484
86485 2000-07-23  Paul Eggert  <eggert@twinsun.com>
86486
86487         * lib/mbswidth.c (_XOPEN_SOURCE):
86488         Don't define; this causes problems on Solaris 7.
86489         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
86490
86491 2000-07-23  Jim Meyering  <meyering@lucent.com>
86492
86493         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
86494         too: getgrgid, getpwuid, getuid.
86495
86496 2000-07-23  Jim Meyering  <meyering@lucent.com>
86497
86498         * lib/basename.c (base_name): Add an assertion.
86499
86500 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
86501
86502         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
86503         shadow its mbsinit function.
86504
86505 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
86506
86507         * lib/mbswidth.h: New file.
86508         * lib/mbswidth.c: New file.
86509         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
86510         (noinst_HEADERS): Add mbswidth.h.
86511
86512 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
86513
86514         * lib/config.charset: Add support for FreeBSD. Improve support for
86515         HP-UX and IRIX 6.
86516
86517 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
86518
86519         * m4/mbswidth.m4: New file.
86520         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
86521
86522 2000-07-15  Jim Meyering  <meyering@lucent.com>
86523
86524         * lib/makepath.c: Include quote.h.
86525         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
86526         corresponding argument in a `quote (...)' call.
86527         Give better diagnostics.
86528
86529         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
86530         (noinst_HEADERS): Add quote.h.
86531
86532         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
86533         from tar's src/misc.c.
86534         * lib/quote.h: New file.  Prototypes for same.
86535
86536 2000-07-14  Paul Eggert  <eggert@twinsun.com>
86537
86538         From a suggestion by Bruno Haible.
86539         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
86540         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
86541         to decide whether to define the BeOS workaround macro;
86542         this adjusts to the change to AC_MBSTATE_T.
86543
86544 2000-07-14  Jim Meyering  <meyering@lucent.com>
86545
86546         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
86547         jm_AC_TYPE_UINTMAX_T.
86548
86549 2000-07-13  Paul Eggert  <eggert@twinsun.com>
86550
86551         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
86552
86553         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
86554         quotearg_buffer_restyled): Add support for
86555         clocale_quoting_style.  Undo previous change to
86556         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
86557         and "{RIGHT QUOTATION MARK}" msgids.
86558
86559 2000-07-10  Paul Eggert  <eggert@twinsun.com>
86560
86561         From a suggestion by Bruno Haible.
86562         * m4/mbstate_t.m4 (AC_MBSTATE_T):
86563         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
86564         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
86565         and mbstate_t, to a single-part test that simply defines mbstate_t.
86566         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
86567         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
86568
86569 2000-07-10  Jim Meyering  <meyering@lucent.com>
86570
86571         * m4/strerror_r.m4: Mirror the correction made in autoconf.
86572
86573         * m4/gnu-source.m4: Output to confdefs.h directly.
86574         Suggestion from Akim Demaille.
86575
86576 2000-07-09  Paul Eggert  <eggert@twinsun.com>
86577
86578         The old behavior of quoting `like this' doesn't look good with
86579         newer, ISO-style fonts.  See:
86580         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
86581
86582         Instead, quote "like this" by default.  Let the translator
86583         tailor the locale-specific quoting behavior by providing
86584         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
86585
86586         * lib/quotearg.c (N_): New macro.
86587         (gettext_default): New function.
86588         (quotearg_buffer_restyled): Use
86589         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
86590         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
86591
86592 2000-07-09  Jim Meyering  <meyering@lucent.com>
86593
86594         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
86595         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
86596
86597         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
86598         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
86599
86600 2000-07-09  Jim Meyering  <meyering@lucent.com>
86601
86602         * lib/Most files: Update copyright dates to include 2000.
86603
86604 2000-07-08  Jim Meyering  <meyering@lucent.com>
86605
86606         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
86607         if not defined.
86608         (xgethostname): Remove now-unnecessary #ifdef.
86609         Move declaration of `err' into loop where it's used.
86610
86611 2000-07-05  Paul Eggert  <eggert@twinsun.com>
86612         and Bruno Haible  <haible@clisp.cons.org>
86613
86614         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
86615         only if the test for an object-type mbstate_t fails.  This
86616         prevents us from mistakenly reporting that mbstate_t is a
86617         system object type after we "#define mbstate_t int" to work
86618         around its lack.
86619
86620 2000-07-05  Paul Eggert  <eggert@twinsun.com>
86621         and Bruno Haible  <haible@clisp.cons.org>
86622
86623         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
86624
86625 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
86626
86627         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
86628         to strerror_r.
86629         Include <ctype.h> for use of isalpha.
86630
86631 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
86632
86633         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
86634         by allocating a larger buffer. Test the gethostname return value for
86635         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
86636         returns an error and ENAMETOOLONG isn't defined.
86637
86638 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
86639
86640         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
86641         dimension.
86642
86643 2000-07-04  Jim Meyering  <meyering@lucent.com>
86644
86645         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
86646         of the deprecated AC_CHECKING.
86647
86648 2000-07-04  Jim Meyering  <meyering@lucent.com>
86649
86650         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
86651         Reported by Bruno Haible.
86652
86653 2000-07-04  Jim Meyering  <meyering@lucent.com>
86654
86655         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
86656         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
86657         lacks mbrtowc.
86658
86659 2000-07-03  Paul Eggert  <eggert@twinsun.com>
86660
86661         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
86662         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
86663
86664 2000-07-03  Paul Eggert  <eggert@twinsun.com>
86665         and Bruno Haible  <haible@clisp.cons.org>
86666
86667         * lib/quotearg.c (mbrtowc):
86668         Assign to *pwc, and return 1 only if result is nonzero.
86669         (iswprint): Use ISPRINT when substituting our own mbrtowc.
86670
86671 2000-07-03  Jim Meyering  <meyering@lucent.com>
86672
86673         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
86674
86675 2000-07-03  Jim Meyering  <meyering@lucent.com>
86676
86677         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
86678         This is necessary to get a definition of e.g., UTMP_FILE on
86679         HP-UX 10.20.
86680         From Bob Proulx.
86681
86682 2000-07-02  Jim Meyering  <meyering@lucent.com>
86683
86684         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
86685
86686         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
86687         AC_LIBOBJ(function_name).
86688         * m4/chown.m4: Likewise.
86689         * m4/fnmatch.m4: Likewise.
86690         * m4/ftruncate.m4: Likewise.
86691         * m4/getgroups.m4: Likewise.
86692         * m4/getline.m4: Likewise.
86693         * m4/group-member.m4: Likewise.
86694         * m4/jm-macros.m4: Likewise.
86695         * m4/lstat.m4: Likewise.
86696         * m4/malloc.m4: Likewise.
86697         * m4/memcmp.m4: Likewise.
86698         * m4/nanosleep.m4: Likewise.
86699         * m4/putenv.m4: Likewise.
86700         * m4/realloc.m4: Likewise.
86701         * m4/regex.m4: Likewise.
86702         * m4/stat.m4: Likewise.
86703         * m4/strftime.m4: Likewise.
86704
86705 2000-07-02  Jim Meyering  <meyering@lucent.com>
86706
86707         * lib/quotearg.c (mbstate_t): Don't define here.
86708
86709 2000-07-02  Jim Meyering  <meyering@lucent.com>
86710
86711         * lib/nanosleep.c (SIGCONT): Define if not already defined.
86712
86713 2000-07-01  Jim Meyering  <meyering@lucent.com>
86714
86715         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
86716
86717 2000-07-01  Jim Meyering  <meyering@lucent.com>
86718
86719         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
86720         problem.
86721
86722 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
86723
86724         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
86725         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
86726
86727 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
86728
86729         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
86730         per change in ../m4/ls-mntd-fs.m4.
86731         (read_filesystem_list): Ignore symbolic links.
86732
86733 2000-06-29  Jim Meyering  <meyering@lucent.com>
86734
86735         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
86736         for declaration of strcmp.
86737
86738         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
86739
86740         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
86741         Avoid warning by casting result to `char *' to remove `const'.
86742
86743 2000-06-28  Jim Meyering  <meyering@lucent.com>
86744
86745         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
86746         included by quotearg.c, for which we perform this test.  From
86747         Bruno Haible.
86748
86749 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
86750
86751         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
86752         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
86753         <utmpx.h> exists, put readutmp.o into LIBOBJS.
86754
86755 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
86756
86757         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
86758
86759 2000-06-26  Paul Eggert  <eggert@twinsun.com>
86760
86761         savedir now sets errno on failure and invokes xmalloc to get memory.
86762         Fix a couple of other minor bugs while we're at it.
86763
86764         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
86765         (NAMLEN): Remove macro.
86766         (malloc, realloc): Remove decls.
86767         (stpcpy): Likewise.
86768         ("xalloc.h"): Include.
86769         (NAME_SIZE_DEFAULT): New macro.
86770         (savedir): Use xmalloc / xrealloc to allocate memory.
86771         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
86772         Skip "" directory entries.
86773         Use strlen to calculate directory entry length, since the old method
86774         is rarely used these days and isn't worth supporting.
86775         Don't use a pointer after freeing it.
86776         Check for integer overflow when calculating allocation size.
86777         Use memcpy to copy entries, instead of stpcpy.
86778         Set errno properly when returning NULL.
86779         Check for readdir error.
86780
86781 2000-06-26  Jim Meyering  <meyering@lucent.com>
86782
86783         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
86784
86785 2000-06-25  Jim Meyering  <meyering@lucent.com>
86786
86787         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
86788         Linux header bug when _XOPEN_SOURCE is defined to 500.
86789
86790 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
86791
86792         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
86793         deficiency.
86794
86795 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
86796
86797         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
86798         Include xalloc.h.
86799         Don't include <stdlib.h>.  Don't declare malloc, realloc.
86800
86801 2000-06-24  Jim Meyering  <meyering@lucent.com>
86802
86803         * m4/strerror_r.m4: Revive this file -- to try out an experimental
86804         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
86805         for which strerror does return char*, but which lacks a conveniently
86806         accessible declaration of the function.  If the compile-test says
86807         strerror_r doesn't work, then resort to a `run'-test that works on
86808         BeOS and segfaults on DEC Unix.
86809
86810 2000-06-24  Jim Meyering  <meyering@lucent.com>
86811
86812         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
86813
86814 2000-06-23  Paul Eggert  <eggert@twinsun.com>
86815
86816         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
86817         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
86818
86819 2000-06-23  Paul Eggert  <eggert@twinsun.com>
86820
86821         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
86822         (mbrtowc, mbstate_t): Define substitutes if
86823         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
86824         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
86825         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
86826
86827 2000-06-23  Jim Meyering  <meyering@lucent.com>
86828
86829         * m4/afs.m4: Add missing AC_MSG_RESULT.
86830         Reported by Bruno Haible.
86831
86832         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
86833         Suggestion from Bruno Haible.
86834
86835 2000-06-23  Jim Meyering  <meyering@lucent.com>
86836
86837         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
86838
86839 2000-06-21  Jim Meyering  <meyering@lucent.com>
86840
86841         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
86842
86843 2000-06-21  Jim Meyering  <meyering@lucent.com>
86844
86845         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
86846         (noinst_HEADERS): Add getstr.h.
86847
86848         * lib/getline.c (getstr): Move into a separate file.
86849         * lib/getstr.c (getstr): New file, extracted from getline.c, with
86850         the following changes: new parameter, delim2; both delim[12]
86851         parameters have type `int', not `char'.  The latter would lose
86852         with 8-bit delimiters.
86853         * lib/getstr.h: New file.
86854
86855 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
86856
86857         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
86858         than 1024, return a memory chunk of least possible size, instead
86859         of size PATH_MAX + 2. In the loop, increment the size proportionally.
86860         Use free/xmalloc instead of xrealloc to avoid copying for very long
86861         paths.
86862
86863 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
86864
86865         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
86866         the empty string.
86867
86868 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
86869
86870         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
86871         address, not strdup.  Include <stdlib.h> and don't declare free().
86872
86873 2000-06-19  Jim Meyering  <meyering@lucent.com>
86874
86875         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
86876
86877 2000-06-18  Jim Meyering  <meyering@lucent.com>
86878
86879         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
86880
86881         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
86882         `checking whether...' message to be consistent with that of the
86883         lstat test.
86884
86885 2000-06-18  Jim Meyering  <meyering@lucent.com>
86886
86887         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
86888         Besides, these days every porting target provides a mkdir function.
86889
86890         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
86891         needed. (this snippet comes from src/system.h).
86892
86893 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
86894
86895         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
86896
86897 2000-06-15  Paul Eggert  <eggert@twinsun.com>
86898
86899         * lib/human.c (adjust_value): New function.
86900         (human_readable_inexact): Apply rounding style even when
86901         printing approximate values.
86902
86903 2000-06-14  Paul Eggert  <eggert@twinsun.com>
86904
86905         * lib/human.c (human_readable_inexact): Allow an input block
86906         size that is not a multiple of the output block size, and vice versa.
86907         Reported by Piergiorgio Sartor.
86908
86909 2000-06-14  Paul Eggert  <eggert@twinsun.com>
86910
86911         * lib/getdate.y (get_date): Apply relative times after time
86912         zone indicator, not before.  Reported by Todd A. Jacobs.
86913
86914 2000-06-13  Jim Meyering  <meyering@lucent.com>
86915
86916         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
86917
86918         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
86919
86920 2000-06-12  Paul Eggert  <eggert@twinsun.com>
86921
86922         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
86923
86924 2000-06-12  Jim Meyering  <meyering@lucent.com>
86925
86926         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
86927         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
86928         optional argument.
86929         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
86930         the optional argument, `lib'.
86931
86932 2000-06-08  Jim Meyering  <meyering@lucent.com>
86933
86934         * m4/largefile.m4: Remove file (now that it's part of autoconf).
86935
86936 2000-06-04  Paul Eggert  <eggert@twinsun.com>
86937
86938         Rewrite largefile configuration so that we don't need to run
86939         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
86940         AC_CANONICAL_HOST in configure.in -- jmm]
86941
86942         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
86943         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
86944         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
86945         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
86946         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
86947         All uses changed.
86948         Instead of inspecting the output of getconf, try to compile the
86949         test program without and with the macro definition.
86950         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
86951         for getconf.  Instead, check for the needed flags by compiling
86952         test programs.
86953
86954 2000-06-04  Paul Eggert  <eggert@twinsun.com>
86955
86956         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
86957
86958 2000-06-04  Jim Meyering  <meyering@lucent.com>
86959
86960         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
86961         SunOS 4.1.4 for which gid_t is an unsigned type.
86962
86963 2000-06-03  Jim Meyering  <meyering@lucent.com>
86964
86965         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
86966         now that autoconf requires that.
86967
86968         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
86969         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
86970         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
86971
86972 2000-06-03  Jim Meyering  <meyering@lucent.com>
86973
86974         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
86975
86976 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
86977
86978         * m4/glibc21.m4: New file.
86979         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
86980
86981 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
86982
86983         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
86984         newer, don't install charset.alias.
86985         * lib/config.charset: Change the Linux/glibc rules so they become empty
86986         on glibc-2.1 or newer.
86987
86988 2000-06-02  Jim Meyering  <meyering@lucent.com>
86989
86990         * lib/mountlist.c: Back out last change.  Instead, do this...
86991         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
86992         me_dummy member using the same `ignore'-testing code.
86993         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
86994         fs_type strings.
86995         From Mark D. Roth.
86996
86997 2000-05-29  Jim Meyering  <meyering@lucent.com>
86998
86999         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
87000         mounts with the `ignore' attribute.  Based on a patch from
87001         Mark D. Roth.
87002
87003 2000-05-28  Jim Meyering  <meyering@lucent.com>
87004
87005         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
87006         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87007         * m4/stat.m4: Likewise.
87008         * m4/lstat.m4: Likewise.
87009         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
87010
87011         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
87012         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
87013
87014 2000-05-26  Jim Meyering  <meyering@lucent.com>
87015
87016         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
87017
87018 2000-05-24  Jim Meyering  <meyering@lucent.com>
87019
87020         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
87021         autoconf requires that.
87022         * m4/lib-check.m4: Likewise.
87023         * m4/jm-macros.m4: Likewise.
87024         * m4/strftime.m4: Likewise.
87025
87026         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
87027         AC_CHECK_DECLS, now that autoconf requires that.
87028
87029 2000-05-22  Jim Meyering  <meyering@lucent.com>
87030
87031         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87032         * m4/lstat.m4: Likewise.
87033
87034 2000-05-22  Jim Meyering  <meyering@lucent.com>
87035
87036         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
87037
87038 2000-05-20  Jim Meyering  <meyering@lucent.com>
87039
87040         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
87041         (jm_PREREQ): Use it.
87042
87043 2000-05-18  Jim Meyering  <meyering@lucent.com>
87044
87045         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
87046         back, too, since it may have been modified by allocate_entry.
87047         (hash_delete): Rewrite to use neither the assignment operator
87048         nor the comma operator in an if-expression.
87049
87050 2000-05-15  Paul Eggert  <eggert@twinsun.com>
87051
87052         * lib/closeout.c:
87053         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
87054         Remove; no longer needed.
87055         "quotearg.h": Add include.
87056         (file_name): Do not bother to explicitly initialize to NULL; it's less
87057         efficient on some hosts.
87058         (close_stdout_status): Remove test as to whether stdout was already
87059         closed; it breaks for the case "echo x | sort >&-".
87060         Quote file name colons.
87061         Do not assume that _("write error") lacks format strings.
87062
87063 2000-05-15  Jim Meyering  <meyering@lucent.com>
87064
87065         * lib/version-etc.c (version_etc_copyright): Update the copyright
87066         string used in all --version output.
87067
87068 2000-05-14  Jim Meyering  <meyering@lucent.com>
87069
87070         * lib/closeout.c (close_stdout_set_file_name): New function.
87071         (close_stdout_status): Use new file-scoped global.
87072         Return right away if fstat says the stdout file descriptor is invalid.
87073         * lib/closeout.h (close_stdout_set_file_name): Declare.
87074
87075 2000-05-10  Jim Meyering  <meyering@lucent.com>
87076
87077         * lib/closeout.c [default_exit_status]: New file-scoped variable.
87078         (close_stdout_set_status): New function.
87079         * lib/closeout.h (close_stdout_set_status): Declare.
87080
87081 2000-05-09  Jim Meyering  <meyering@lucent.com>
87082
87083         * m4/gettext.m4: Rename this...
87084         * m4/libintl.m4: ...to this.
87085
87086 2000-05-08  Jim Meyering  <meyering@lucent.com>
87087
87088         * lib/long-options.c: Don't include closeout.h.
87089         (parse_long_options): Don't call close_stdout for --version.
87090
87091 2000-05-06  Paul Eggert  <eggert@twinsun.com>
87092
87093         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
87094         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
87095         2.1.3 bug.  This avoids a clash when files like regex.c define
87096         _GNU_SOURCE.
87097
87098 2000-05-06  Jim Meyering  <meyering@lucent.com>
87099
87100         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
87101         (AC_REPLACE_FUNCS): Add strnlen.
87102
87103         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
87104         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
87105
87106         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
87107         AC_SEARCH_LIBS call for nanosleep.
87108         (LIB_NANOSLEEP): Set and AC_SUBST.
87109
87110 2000-05-06  Jim Meyering  <meyering@lucent.com>
87111
87112         * lib/strnlen.c: Undefine __strnlen and strnlen.
87113         [!weak_alias]: Define __strnlen to strnlen.
87114
87115         * lib/atexit.c: New file, from libiberty.
87116
87117 2000-05-06  Jim Meyering  <meyering@lucent.com>
87118
87119         * lib/closeout.c (close_stdout_status): Also check for errors on the
87120         stderr stream.
87121
87122 2000-05-05  Jim Meyering  <meyering@lucent.com>
87123
87124         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
87125         AC_SEARCH_LIBS call for clock_gettime.
87126         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
87127
87128         * m4/search-libs.m4: Update from autoconf.
87129
87130         su doesn't work on Solaris 2.6.
87131         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
87132         <shadow.h>.  Reported by Dragos Harabor.
87133
87134 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
87135
87136         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
87137         memcpy instead of xmalloc, xrealloc, path_concat.
87138         (locale_charset): Treat empty environment variables as absent.
87139         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
87140
87141 2000-05-04  Jim Meyering  <meyering@lucent.com>
87142
87143         * lib/getopt.c: Update from glibc.
87144         * lib/obstack.c: Likewise.
87145         * lib/obstack.h: Likewise.
87146         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
87147         file
87148
87149         * lib/regex.h: Likewise.
87150         * lib/strndup.c: Likewise.
87151         * lib/strnlen.c: New file, from glibc.
87152
87153 2000-05-03  Jim Meyering  <meyering@lucent.com>
87154
87155         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
87156
87157 2000-05-02  Paul Eggert  <eggert@twinsun.com>
87158
87159         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
87160         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
87161         compile-time test, rather than inspecting host and OS, to
87162         decide whether to define _LARGEFILE_SOURCE.
87163
87164 2000-05-01  Jim Meyering  <meyering@lucent.com>
87165
87166         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
87167
87168         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
87169         Based on a patch from Bruno Haible.
87170
87171 2000-05-01  Jim Meyering  <meyering@lucent.com>
87172
87173         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
87174
87175 2000-04-29  Jim Meyering  <meyering@lucent.com>
87176
87177         * lib/path-concat.c: Declare strdup only if it's not defined.
87178         * lib/canon-host.c: Likewise.
87179
87180 2000-04-28  Jim Meyering  <meyering@lucent.com>
87181
87182         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
87183         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
87184         is included first, then limits.h is included by locale.h by libintl.h.
87185         From John David Anglin.
87186
87187 2000-04-25  Jim Meyering  <meyering@lucent.com>
87188
87189         * lib/makepath.c (S_IRWXUGO): Define.
87190         (make_path): Always perform explicit chmod if MODE specifies any
87191         of the `special' permission bits.  Prompted by a bug report against
87192         install from Mate Wierdl and Joost van Baal.
87193
87194 2000-04-18  Jim Meyering  <meyering@lucent.com>
87195
87196         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
87197         (jm_PREREQ): Use it.
87198
87199 2000-04-18  Jim Meyering  <meyering@lucent.com>
87200
87201         * lib/README: New file.
87202
87203         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
87204         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
87205
87206 2000-04-17  Jim Meyering  <meyering@lucent.com>
87207
87208         Get it right :-)
87209         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
87210         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
87211         Suggestion from Akim Demaille.
87212
87213 2000-04-17  Jim Meyering  <meyering@lucent.com>
87214
87215         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
87216         the definition of it to rpl_strftime also defined-away the system's
87217         declaration.
87218
87219 2000-04-15  Jim Meyering  <meyering@lucent.com>
87220
87221         Use `C' to denote so-called `contiguous' files, the same way
87222         that tar does.
87223         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
87224         (ftypelet): Use S_ISCTG.
87225         From Michael Deutschmann.
87226
87227 2000-04-14  Jim Meyering  <meyering@lucent.com>
87228
87229         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
87230         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
87231         clobbered.
87232
87233 2000-04-14  Jim Meyering  <meyering@lucent.com>
87234
87235         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
87236
87237 2000-04-13  Jim Meyering  <meyering@lucent.com>
87238
87239         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
87240         AH_VERBATIM to insert required #ifndef into config.h.in.
87241         Suggestion from Akim Demaille.
87242
87243 2000-04-12  Jim Meyering  <meyering@lucent.com>
87244
87245         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
87246         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
87247         Christian Krackowizer.
87248
87249         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
87250         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
87251         (AC_SYS_LARGEFILE): Require.
87252         (AM_C_PROTOTYPES): Require.
87253
87254 2000-04-08  Jim Meyering  <meyering@lucent.com>
87255
87256         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
87257         names don't conflict.  Reported by Eli Zaretskii.
87258
87259 2000-04-07  Jim Meyering  <meyering@lucent.com>
87260
87261         * lib/putenv.c: Move inclusion of errno.h so it follows that of
87262         sys/types.h, to work around system header problems on AIX 3.2.5.
87263         From Bruno Haible.
87264
87265 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
87266
87267         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
87268         bug.  Deal with the different error behavior of Irix iconv.
87269
87270 2000-04-05  Paul Eggert  <eggert@twinsun.com>
87271
87272         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
87273         IRIX if the installer said otherwise.
87274
87275 2000-04-05  Jim Meyering  <meyering@lucent.com>
87276
87277         Portability tweaks required for ultrix4.3.
87278         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
87279         (jm_CHECK_DECLS): Add getutent to the list of functions.
87280         (_jm_DECL_HEADERS): Add utmpx.h.
87281         From John David Anglin.
87282
87283         * m4/strftime.m4: Back out the 2000-04-02 change.
87284         Instead of that change, simply undefine putenv in the test program.
87285
87286 2000-04-05  Jim Meyering  <meyering@lucent.com>
87287
87288         Portability tweaks required for ultrix4.3.
87289         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
87290         getutent.
87291         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
87292         * lib/canon-host.c: Declare strdup.
87293         * lib/path-concat.c: Likewise.
87294         From John David Anglin.
87295
87296 2000-04-04  Jim Meyering  <meyering@lucent.com>
87297
87298         Be more DOS 8.3-friendly.
87299         * lib/ref-add.sin: Renamed from ref-add.sed.in.
87300         * lib/ref-del.sin: Renamed from ref-del.sed.in.
87301         * lib/Makefile.am: Reflect renaming.
87302         Reported by Eli Zaretskii.
87303
87304         Use a temporary file name that won't clash with `charset.alias'
87305         in the DOS 8.3 name space.
87306         * lib/Makefile.am (charset_tmp): Define.
87307         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
87308         (uninstall-local): Likewise.
87309         Reported by Eli Zaretskii.
87310
87311 2000-04-03  Jim Meyering  <meyering@lucent.com>
87312
87313         * m4/gettext.m4: Fix typo in comment.
87314
87315         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
87316         textutils/configure.in).  Suggestion from Paul Eggert.
87317         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
87318
87319 2000-04-02  Paul Eggert  <eggert@twinsun.com>
87320
87321         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
87322         variable in the shell rather than using putenv, which isn't
87323         portable.  This avoids the configure-time inter-test dependency
87324         on the potentially-renamed putenv function.
87325
87326 2000-03-30  Paul Eggert  <eggert@twinsun.com>
87327
87328         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
87329         before checking struct stat.st_blksize, so that
87330         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
87331
87332 2000-03-29  Paul Eggert  <eggert@twinsun.com>
87333
87334         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
87335         since strftime.c uses HAVE_STRFTIME to decide whether to use
87336         the underlying strftime.
87337
87338 2000-03-29  Paul Eggert  <eggert@twinsun.com>
87339
87340         * lib/time/strftime.c (my_strftime): Make sure we call the system
87341         strftime, not ourselves, when invoking the underlying strftime.
87342
87343 2000-03-24  Jim Meyering  <meyering@lucent.com>
87344
87345         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
87346         (charset_alias): Define.
87347         (install-exec-local): Factor out common code.
87348         (uninstall-local): Split lines longer than 80.
87349         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
87350         (SUFFIXES): Define.
87351         (.sed.in.sed): New rule.  Don't redirect directly to $@.
87352         (CLEANFILES): Add ref-add.sed and ref-del.sed.
87353
87354 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
87355
87356         * lib/config.charset: Output a line containing "Packages using this
87357         file".
87358         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
87359         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
87360         ref-del.sed): New rules.
87361
87362 2000-03-17  Jim Meyering  <meyering@lucent.com>
87363
87364         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
87365         Otherwise, include <strings.h>
87366
87367 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
87368
87369         * lib/unicodeio.c (utf8_wctomb): New function.
87370         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
87371         format instead of in UCS-4 with platform dependent endianness.
87372
87373 2000-03-10  Jim Meyering  <meyering@lucent.com>
87374
87375         * m4/lib-check.m4: Look for getspnam in -lgen, too.
87376         From Marco Franzen.
87377
87378 2000-03-07  Paul Eggert  <eggert@twinsun.com>
87379
87380         * lib/savedir.c (savedir): Work even if directory size is
87381         negative; this can happen with some screwy NFS configurations.
87382
87383 2000-03-06  Jim Meyering  <meyering@lucent.com>
87384
87385         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
87386         if it's NULL (because we ran out of memory).  From Bruno Haible.
87387
87388 2000-03-05  Jim Meyering  <meyering@lucent.com>
87389
87390         * lib/localcharset.c ("path-concat.h"): Include.
87391         (get_charset_aliases): Use path_concat instead of ANSI string
87392         concatenation.
87393
87394         * lib/unicodeio.h (PARAMS): Define.
87395         Use it to guard prototype.
87396
87397 2000-03-04  Jim Meyering  <meyering@lucent.com>
87398
87399         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
87400         for lib/localcharset.c.
87401
87402 2000-03-04  Jim Meyering  <meyering@lucent.com>
87403
87404         * lib/Makefile.am (install-exec-local): Create $(libdir) before
87405         installing into it.
87406         (uninstall-local): Uncomment this rule so `make distcheck' works
87407         once again.
87408
87409         * lib/unicodeio.c (<errno.h>): Include it.
87410         (errno): Declare if not defined.
87411
87412         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
87413
87414         * lib/config.charset: New version, incorporating remarks from a linux
87415         i18n mailing list.  From Bruno Haible.
87416
87417 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
87418
87419         * m4/codeset.m4: New file.
87420         * m4/iconv.m4: New file.
87421         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
87422
87423 2000-03-03  Jim Meyering  <meyering@lucent.com>
87424
87425         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
87426
87427 2000-03-02  Jim Meyering  <meyering@lucent.com>
87428
87429         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
87430         the messages come out on separate lines.
87431
87432         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
87433         rather than jm_CHECK_DECLARATIONS.
87434         * m4/decl.m4: Remove now-unused file.
87435
87436         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
87437         geteuid.
87438
87439 2000-03-02  Jim Meyering  <meyering@lucent.com>
87440
87441         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
87442
87443 2000-03-01  Jim Meyering  <meyering@lucent.com>
87444
87445         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
87446         * lib/unicodeio.c: Likewise.
87447
87448 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
87449
87450         * lib/config.charset: New file.
87451         * lib/localcharset.c: New file.
87452         * lib/unicodeio.h, lib/unicodeio.c: New files.
87453         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
87454         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
87455         (noinst_HEADERS): Add unicodeio.h.
87456         (all-local, install-exec-local, charset.alias): New targets.
87457
87458 2000-02-28  Paul Eggert  <eggert@twinsun.com>
87459
87460         * lib/quotearg.c (ALERT_CHAR): New macro.
87461         (quotearg_buffer_restyled): Use it.
87462
87463 2000-02-27  Jim Meyering  <meyering@lucent.com>
87464
87465         * m4/check-decl.m4: Add getenv to the list.
87466
87467 2000-02-27  Jim Meyering  <meyering@lucent.com>
87468
87469         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
87470         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
87471
87472         * lib/backupfile.c: Guard inclusion of stdlib.h with
87473         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
87474         Declare malloc if needed.
87475
87476         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
87477         `#ifndef HAVE_DECL..'
87478         now that autoconf always defines the HAVE_DECL_ symbols.
87479         * lib/human.c: Likewise.
87480         * lib/same.c: Likewise.
87481         * lib/strtoumax.c: Likewise.
87482
87483         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
87484         declaration check was not run.
87485         * lib/hash.c: Likewise.
87486         * lib/human.c: Likewise.
87487         * lib/same.c: Likewise.
87488         * lib/strtoumax.c: Likewise.
87489
87490         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
87491         `.', then first look up the entire `.'-containing string as a login
87492         name.
87493
87494 2000-02-23  Jim Meyering  <meyering@lucent.com>
87495
87496         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
87497         in place of my hack.
87498
87499 2000-02-18  Paul Eggert  <eggert@twinsun.com>
87500
87501         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
87502         (textint): New typedef.
87503         (parser_control): Member year changed from int to textint.
87504         All uses changed.
87505         (YYSTYPE): Removed; replaced by %union with int and textint members.
87506         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
87507         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
87508         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
87509         (tSNUMBER, tUNUMBER): Now of type <textintval>.
87510         (date, number, to_year): Use width of number in digits, not its value,
87511         to determine whether it's a 2-digit year, or a 2-digit time.
87512         (yylex): Store number of digits of numeric tokens.
87513         Reported by John Kendall.
87514
87515         (parser_control): Changed from struct parser_control to typedef (for
87516         consistency).  All uses changed.
87517
87518         (tID): Removed; not used.
87519         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
87520
87521 2000-02-14  Paul Eggert  <eggert@twinsun.com>
87522
87523         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
87524         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
87525
87526 2000-02-12  Jim Meyering  <meyering@lucent.com>
87527
87528         * lib/userspec.c (ISDIGIT): Define it.
87529         (isdigit): Remove definition.
87530         (is_number): Use ISDIGIT, not isdigit.
87531         <libintl.h>: Include.
87532         (_ and N_): Define.
87533         (parse_user_spec): Mark translatable strings.
87534
87535 2000-02-10  Jim Meyering  <meyering@lucent.com>
87536
87537         With these changes, nanosleep.[ch] are finally enough like the other
87538         lib/* replacement files to compile on a few more losing systems.
87539
87540         * lib/nanosleep.h: Don't include config.h.
87541         Remove prototype from declaration of nanosleep.
87542         (PARAMS): Remove now-unneeded definition.
87543         * lib/nanosleep.c: #undef nanosleep.
87544         (rpl_nanosleep): Rename from nanosleep.
87545
87546 2000-02-10  Jim Meyering  <meyering@lucent.com>
87547
87548         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
87549         gnu_nanosleep to rpl_nanosleep.
87550
87551 2000-02-09  Jim Meyering  <meyering@lucent.com>
87552
87553         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
87554         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
87555
87556 2000-02-08  Akim Demaille  <akim@epita.fr>
87557
87558         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
87559         `[' and `]' and remove uses of `changequote'.
87560         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
87561         (AC_SYS_LARGEFILE): Likewise.
87562         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
87563         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
87564         of changequote.
87565         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
87566         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
87567         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
87568         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
87569
87570 2000-02-05  Jim Meyering  <meyering@lucent.com>
87571
87572         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
87573         Remove explicit use of AC_HEADER_TIME.  It is required by
87574         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
87575         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
87576         in autoconf whereby the expansion of the latter ended up preceding
87577         the expansion of its prerequisite, AC_HEADER_TIME.
87578         Reported by Volker Borchert.
87579
87580 2000-02-03  Jim Meyering  <meyering@lucent.com>
87581
87582         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
87583
87584 2000-02-03  Jim Meyering  <meyering@lucent.com>
87585
87586         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
87587         rather than with `#if HAVE_UTMPNAME'.
87588
87589 2000-02-02  Jim Meyering  <meyering@lucent.com>
87590
87591         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
87592         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
87593         Reported by Eli Zaretskii.
87594
87595 2000-02-01  Jim Meyering  <meyering@lucent.com>
87596
87597         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
87598
87599 2000-01-31  Jim Meyering  <meyering@lucent.com>
87600
87601         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
87602         functions.  Add the time.h and sys/time.h headers along with the
87603         AC_REQUIRE'ment of AC_HEADER_TIME.
87604
87605 2000-01-31  Jim Meyering  <meyering@lucent.com>
87606
87607         * lib/nanosleep.h (nanosleep): Guard declaration with
87608         `#if ! HAVE_DECL_NANOSLEEP'.
87609         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
87610         the declaration in that vendor's sys/timers.h.
87611         Reported by Christian Krackowizer.
87612
87613         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
87614         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
87615         (ISPRINT): Likewise.
87616         Reported by Tom Tromey.
87617
87618 2000-01-30  Jim Meyering  <meyering@lucent.com>
87619
87620         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
87621
87622         * m4/prereq.m4 (utmp_includes): Define.
87623         Check for ut_user and ut_name members in both struct utmpx
87624         and struct utmp.
87625
87626 2000-01-30  Jim Meyering  <meyering@lucent.com>
87627
87628         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
87629         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
87630         header files where only utmpx.ut_user is declared.
87631
87632         * lib/readutmp.h (UT_USER): Define.
87633
87634 2000-01-29  Jim Meyering  <meyering@lucent.com>
87635
87636         * m4/lib-check.m4: New file containing library-related checks from
87637         fileutils and sh-utils (textutils had none).
87638
87639 2000-01-28  Jim Meyering  <meyering@lucent.com>
87640
87641         * m4/perl.m4: Change format of warning message to look more like that
87642         from the missing script.  Suggestion from François Pinard.
87643
87644 2000-01-25  Jim Meyering  <meyering@lucent.com>
87645
87646         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
87647         well as time.h in the compile check.
87648         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
87649         Fix typo in cross-compiling case: s/yes/no/.
87650
87651 2000-01-23  Jim Meyering  <meyering@lucent.com>
87652
87653         * m4/jm-macros.m4: Move df-related tests here from
87654         fileutils/configure.in
87655
87656         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
87657         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
87658
87659         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
87660         s/space/ac_fsusage_space/.
87661         (jm_FILE_SYSTEM_USAGE): Take two parameters.
87662
87663         * m4/ftruncate.m4: New file (derived from part of
87664         fileutils/configure.in).
87665         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
87666         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
87667
87668         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
87669         AC_SUBST these here, rather than just in sh-util/configure.in, so
87670         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
87671         all the same.
87672         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
87673         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
87674         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
87675         (AC_SUBST(POW_LIBM)): Likewise.
87676         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
87677
87678 2000-01-23  Jim Meyering  <meyering@lucent.com>
87679
87680         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
87681         obstack.c.
87682
87683 2000-01-22  Jim Meyering  <meyering@lucent.com>
87684
87685         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
87686
87687         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
87688
87689         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
87690         configure.in
87691         (AC_CHECK_HEADERS): Likewise for sh-utils.
87692         (AC_CHECK_HEADERS): Likewise for textutils.
87693         Merge the three lists of headers.
87694
87695         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
87696         from fileutils' configure.in.
87697
87698         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
87699         code. Moved tests into their own function (_jm_DECL_HEADERS) in
87700         check-decl.m4.
87701
87702         * m4/check-decl.m4: Use #if rather than #ifdef.
87703         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
87704         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
87705         (_jm_DECL_HEADERS): Define new function.
87706         (jm_CHECK_DECLARATIONS): Require it.
87707
87708 2000-01-22  Jim Meyering  <meyering@lucent.com>
87709
87710         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
87711         [! HAVE_DECL_STRTOULL]: Declare strtoull.
87712         Required for some AIX systems.  Reported by Christian Krackowizer.
87713         [TESTING] (main): New function.
87714
87715         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
87716         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
87717         letters.
87718
87719         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
87720         iswprint.
87721
87722         * lib/strverscmp.c (ISDIGIT): Define.
87723         (strverscmp): Use ISDIGIT, not isdigit.
87724
87725 2000-01-19  Jim Meyering  <meyering@lucent.com>
87726
87727         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
87728         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
87729         defines `struct timespec' in <sys/time.h>
87730
87731         * m4/c-bs-a.m4: Remove uses of changequote altogether.
87732         Thanks to Akim for explaining.
87733
87734 2000-01-17  Paul Eggert  <eggert@twinsun.com>
87735
87736         * lib/nanosleep.c (nanosleep):
87737         Don't use SA_INTERRUPT to decide whether to call sigaction, as
87738         POSIX.1 doesn't require SA_INTERRUPT and some systems
87739         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
87740         it's been part of POSIX.1 since day 1 (in 1988).
87741
87742 2000-01-17  Jim Meyering  <meyering@lucent.com>
87743
87744         * lib/interlock: Remove unused file.  Reported by François Pinard.
87745
87746 2000-01-16  Paul Eggert  <eggert@twinsun.com>
87747
87748         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
87749         alert, backslash, formfeed, and vertical tab unnecessarily in
87750         shell quoting style.
87751
87752 2000-01-16  Jim Meyering  <meyering@lucent.com>
87753
87754         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
87755         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
87756         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
87757         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
87758
87759 2000-01-16  Jim Meyering  <meyering@lucent.com>
87760
87761         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
87762         because the latter didn't work.
87763
87764 2000-01-15  Jim Meyering  <meyering@lucent.com>
87765
87766         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
87767         (AC_REPLACE_FUNCS): Add memcpy and memset.
87768         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
87769         Add strpbrk.
87770         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
87771
87772 2000-01-12  Jim Meyering  <meyering@lucent.com>
87773
87774         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
87775         (jm_PREREQ): Use it.
87776         (jm_PREREQ_READUTMP): New macro.
87777         (jm_PREREQ): Use it.
87778
87779 2000-01-11  Paul Eggert  <eggert@twinsun.com>
87780
87781         Quote multibyte characters correctly.
87782         * m4/c-bs-a.m4: New file.
87783         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
87784         (jm_PREREQ): Use it.
87785
87786 2000-01-11  Paul Eggert  <eggert@twinsun.com>
87787
87788         * m4/uintmax_t.m4: Port to autoconf 2.13.
87789
87790 2000-01-08  Jim Meyering  <meyering@ascend.com>
87791
87792         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
87793         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
87794
87795 2000-01-04  Jim Meyering  <meyering@ascend.com>
87796
87797         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
87798         jm_STRUCT_DIRENT_D_TYPE.
87799         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
87800         jm_STRUCT_DIRENT_D_INO.
87801         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
87802         jm_STRUCT_UTIMBUF.
87803         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
87804         renamings.
87805         * m4/utime.m4: Likewise.
87806
87807         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
87808         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
87809
87810 2000-01-03  Paul Eggert  <eggert@twinsun.com>
87811
87812         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
87813         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
87814
87815 2000-01-02  Jim Meyering  <meyering@ascend.com>
87816
87817         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
87818         remember if this is necessary.
87819
87820 1999-12-26  Jim Meyering  <meyering@ascend.com>
87821
87822         * m4/jm-macros.m4: Use it here.
87823         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
87824
87825 1999-12-23  Jim Meyering  <meyering@ascend.com>
87826
87827         * m4/jm-macros.m4: Check for clock_gettime (moved from
87828         fileutils/configure.in)
87829         Check for gettimeofday.
87830
87831 1999-12-20  Jim Meyering  <meyering@ascend.com>
87832
87833         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
87834         autoconf-2.14a-1999-12-20.
87835
87836 1999-12-19  Jim Meyering  <meyering@ascend.com>
87837
87838         * m4/lstat-slash.m4: New file.
87839         * m4/jm-macros.m4: Use the new macro:
87840         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87841
87842 1999-12-07  Jim Meyering  <meyering@ascend.com>
87843
87844         * m4/perl.m4: Require that File::Compare be available, too.
87845         Too many systems seem to lack it.
87846
87847         * m4/strftime.m4: Add checks for most of the cpp macros tested in
87848         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
87849
87850 1999-11-18  Paul Eggert  <eggert@twinsun.com>
87851
87852         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
87853         problem with the QNX 4.25 shell, which doesn't propagate exit
87854         status of failed commands inside shell assignments.
87855
87856 1999-11-17  Jim Meyering  <meyering@ascend.com>
87857
87858         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
87859
87860 1999-11-07  Jim Meyering  <meyering@ascend.com>
87861
87862         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
87863
87864 1999-11-06  Jim Meyering  <meyering@ascend.com>
87865
87866         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
87867         * m4/jm-macros.m4 (jm_MACROS): Use it here.
87868
87869 1999-11-05  Jim Meyering  <meyering@ascend.com>
87870
87871         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
87872         configure.in of textutils, fileutils, and sh-utils into this one
87873         (shared between those packages) file.
87874         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
87875         AC_STRUCT_ST_BLKSIZE.
87876
87877 1999-11-03  Jim Meyering  <meyering@ascend.com>
87878
87879         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
87880         of AC_CHECK_TYPE checks includes unistd.h.
87881         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
87882         Suggestion from Akim Demaille.
87883
87884 1999-10-30  Jim Meyering  <meyering@ascend.com>
87885
87886         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
87887         m4-quoted string.
87888         * m4/ls-mntd-fs.m4: Likewise.
87889         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
87890         * m4/jm-winsz1.m4: Likewise.
87891
87892         * m4/const.m4: Remove file, since the fix made it into the experimental
87893         version of autoconf.
87894         * m4/mktime.m4: Likewise.
87895
87896         * m4/check-type.m4: Remove file, now that the latest version of
87897         AC_CHECK_TYPE takes a third arg to specify additional #includes.
87898
87899         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
87900         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
87901         AC_CHECK_TYPE.
87902
87903 1999-10-04  Jim Meyering  <meyering@ascend.com>
87904
87905         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
87906
87907 1999-09-22  Paul Eggert  <eggert@twinsun.com>
87908
87909         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
87910         2.95.1 bug with HP-UX 10.20.
87911
87912 1999-09-17  Jim Meyering  <meyering@ascend.com>
87913
87914         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
87915         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
87916         due to missing strdup (against sh-utils-2.0).
87917
87918 1999-08-29  Jim Meyering  <meyering@ascend.com>
87919
87920         * m4/jm-macros.m4: Require jm_BISON.
87921         * m4/bison.m4: New file.
87922
87923 1999-08-17  Paul Eggert  <eggert@twinsun.com>
87924
87925         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
87926         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
87927
87928 1999-08-05  Jim Meyering  <meyering@ascend.com>
87929
87930         * m4/getline.m4: Rename test file from conftestdata to conftest.data
87931         to avoid conflicts with `conftest' on 8+3 filesystems.
87932         Suggestion from Eli Zaretskii.
87933
87934 1999-08-04  Jim Meyering  <meyering@ascend.com>
87935
87936         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
87937         fileutils and sh-utils (textutils's getline test was inadequate).
87938         (AM_FUNC_GETLINE): Run this test.
87939         (AC_CHECK_FUNCS): Check for getdelim.
87940         Reported by Bob Proulx.
87941
87942 1999-08-02  Jim Meyering  <meyering@ascend.com>
87943
87944         * m4/jm-macros.m4: Add a comment.
87945
87946 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87947
87948         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
87949         <inttypes.h> defines strtoumax as a macro (and not as a
87950         function).
87951
87952 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87953
87954         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
87955         that we can shift, multiply and divide unsigned long long
87956         values; Ultrix cc can't do it.
87957
87958 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87959
87960         * m4/mktime.m4: New file, which is a preview of what should appear
87961         in the next public autoconf release.
87962
87963 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87964
87965         * m4/lfs.m4: Remove this file.
87966         * m4/largefile.m4: New file.  It contains the old contents of
87967         lfs.m4, except that all names with prefix AC_LFS have been
87968         changed to use the prefix AC_SYS_LARGEFILE instead, to be
87969         compatible with future autoconf versions.  Also, some minor m4
87970         quoting problems have been fixed.
87971
87972 1999-08-01  Paul Eggert  <eggert@twinsun.com>
87973
87974         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
87975         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
87976         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
87977         and simplify the shell code.
87978
87979 1999-08-01  Jim Meyering  <meyering@ascend.com>
87980
87981         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
87982         m4.
87983
87984 1999-07-20  Jim Meyering  <meyering@ascend.com>
87985
87986         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
87987
87988 1999-07-15  Jim Meyering  <meyering@ascend.com>
87989
87990         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
87991
87992 1999-05-22  Jim Meyering  <meyering@ascend.com>
87993
87994         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
87995
87996 1999-05-20  Jim Meyering  <meyering@ascend.com>
87997
87998         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
87999         Add a colon after each `then' in case $4 is empty.
88000
88001 1999-05-16  Jim Meyering  <meyering@ascend.com>
88002
88003         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
88004
88005 1999-05-10  Jim Meyering  <meyering@ascend.com>
88006
88007         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
88008
88009         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
88010         AC_FUNC_MKTIME.
88011
88012 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
88013
88014         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
88015
88016 1999-05-04  Paul Eggert  <eggert@twinsun.com>
88017
88018         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
88019         not CPPFLAGS, so that linking works correctly in IRIX.
88020
88021 1999-04-30  Paul Eggert  <eggert@twinsun.com>
88022
88023         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
88024
88025 1999-04-20  Paul Eggert  <eggert@twinsun.com>
88026
88027         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
88028         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
88029         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
88030         jm_AC_TYPE_UNSIGNED_LONG_LONG.
88031         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
88032
88033         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
88034
88035 1999-04-20  Jim Meyering  <meyering@ascend.com>
88036
88037         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
88038         AC_REPLACE xstroull if necessary.  From Paul Eggert.
88039         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
88040
88041 1999-04-18  Jim Meyering  <meyering@ascend.com>
88042
88043         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
88044         * m4/jm-macros.m4: Use it.
88045
88046 1999-04-06  Jim Meyering  <meyering@ascend.com>
88047
88048         * m4/strftime.m4: Remove test for %f.
88049
88050 1999-03-29  Jim Meyering  <meyering@ascend.com>
88051
88052         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
88053         superset of the AC_TYPE_* checks in the textutils, fileutils,
88054         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
88055         AC_TYPE_PID_T.
88056
88057 1999-03-28  Jim Meyering  <meyering@ascend.com>
88058
88059         * m4/jm-macros.m4: Define GNU_PACKAGE here.
88060         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
88061         replaced e.g., in the *.sh files of the sh-utils.
88062
88063 1999-03-20  Jim Meyering  <meyering@ascend.com>
88064
88065         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
88066         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
88067         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
88068
88069 1999-03-19  Jim Meyering  <meyering@ascend.com>
88070
88071         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
88072
88073 1999-03-12  Jim Meyering  <meyering@ascend.com>
88074
88075         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
88076
88077 1999-03-07  Jim Meyering  <meyering@ascend.com>
88078
88079         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
88080         declared.
88081
88082 1999-02-17  Jim Meyering  <meyering@ascend.com>
88083
88084         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
88085         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
88086
88087 1999-02-07  Jim Meyering  <meyering@ascend.com>
88088
88089         * m4/group-member.m4: New file -- extracted from sh-utils'
88090         configure.in.
88091
88092         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
88093         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
88094
88095 1999-02-06  Jim Meyering  <meyering@ascend.com>
88096
88097         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
88098         * m4/fnmatch.m4: Likewise.
88099         * m4/getgroups.m4: Likewise.
88100         * m4/lstat.m4: Likewise.
88101         * m4/malloc.m4: Likewise.
88102         * m4/putenv.m4: Likewise.
88103         * m4/realloc.m4: Likewise.
88104         * m4/regex.m4: Likewise.
88105         * m4/stat.m4: Likewise.
88106         * m4/strftime.m4: Likewise.
88107         Suggestion from Alain Magloire.
88108
88109         * m4/chown.m4: Use `.$ac_objext', not `.o'.
88110         * m4/fnmatch.m4: Likewise.
88111         * m4/getgroups.m4: Likewise.
88112         * m4/getline.m4: Likewise.
88113         * m4/lstat.m4: Likewise.
88114         * m4/malloc.m4: Likewise.
88115         * m4/memcmp.m4: Likewise.
88116         * m4/putenv.m4: Likewise.
88117         * m4/realloc.m4: Likewise.
88118         * m4/regex.m4: Likewise.
88119         * m4/stat.m4: Likewise.
88120         * m4/strftime.m4: Likewise.
88121         Suggestion from Alain Magloire.
88122
88123         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
88124         an argument.
88125
88126         * m4/regex.m4: Add a run-time Test for proper operation of
88127         re_compile_pattern.
88128
88129 1999-01-31  Jim Meyering  <meyering@ascend.com>
88130
88131         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
88132
88133 1999-01-30  Jim Meyering  <meyering@ascend.com>
88134
88135         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
88136
88137         * m4/jm-mktime.m4: Make this a wrapper around the official
88138         AM_FUNC_MKTIME rather than my private copy, now that the official one
88139         is up to date.
88140         * m4/mktime.m4: Remove file.
88141
88142         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
88143         * m4/uptime.m4: Likewise.
88144         * m4/uintmax_t.m4: Likewise.
88145
88146 1999-01-28  Jim Meyering  <meyering@ascend.com>
88147
88148         * m4/jm-macros.m4: Use jm_AFS.
88149         * m4/afs.m4: New file (from fileutils' configure.in).
88150
88151         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
88152         * m4/chown.m4: Likewise.
88153         * m4/d-ino.m4: Likewise.
88154         * m4/d-type.m4: Likewise.
88155         * m4/fnmatch.m4: Likewise.
88156         * m4/getgroups.m4: Likewise.
88157         * m4/gettext.m4: Likewise.
88158         * m4/jm-mktime.m4: Likewise.
88159         * m4/jm-winsz2.m4: Likewise.
88160         * m4/lcmessage.m4: Likewise.
88161         * m4/ls-mntd-fs.m4: Likewise.
88162         * m4/malloc.m4: Likewise.
88163         * m4/memcmp.m4: Likewise.
88164         * m4/putenv.m4: Likewise.
88165         * m4/realloc.m4: Likewise.
88166         * m4/st_mtim.m4: Likewise.
88167         * m4/strftime.m4: Likewise.
88168
88169 1999-01-16  Jim Meyering  <meyering@ascend.com>
88170
88171         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
88172         (ARGMATCH_DIE_DECL): Define.
88173
88174 1999-01-12  Jim Meyering  <meyering@ascend.com>
88175
88176         * m4/Makefile.am.in: Rewrite to avoid using fmt.
88177         Reported by Lars Hecking.
88178
88179 1999-01-10  Jim Meyering  <meyering@ascend.com>
88180
88181         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
88182         gross kludge.
88183         * m4/inttypes_h.m4: Likewise.
88184         * m4/lstat.m4: Likewise.
88185         * m4/malloc.m4: Likewise.
88186         * m4/readdir.m4: Likewise.
88187         * m4/realloc.m4: Likewise.
88188         * m4/st_dm_mode.m4: Likewise.
88189         * m4/stat.m4: Likewise.
88190         * m4/utimbuf.m4: Likewise.
88191         * m4/utimes.m4: Likewise.
88192
88193         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
88194         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
88195         comments in config.h.in are meaningful.
88196
88197         * m4/jm-macros.m4: Require autoconf-2.13 here.
88198
88199         * m4/regex.m4: By default, don't use the included regex.c on systems
88200         with glibc 2.  Suggestion from Uli Drepper.
88201
88202 1999-01-02  Jim Meyering  <meyering@ascend.com>
88203
88204         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
88205
88206 1998-12-18  Jim Meyering  <meyering@ascend.com>
88207
88208         * m4/Makefile.am.in (Makefile.am): Simplify rule.
88209         Based on a suggestion from Lars Hecking.
88210
88211 1998-11-16  Paul Eggert  <eggert@twinsun.com>
88212
88213         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
88214
88215 1998-11-16  Jim Meyering  <meyering@ascend.com>
88216
88217         * m4/lfs.m4: Double-quote the `uname...` expression.
88218
88219 1998-11-14  Jim Meyering  <meyering@ascend.com>
88220
88221         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
88222         * m4/stat.m4: Likewise.
88223
88224 1998-11-03  Jim Meyering  <meyering@ascend.com>
88225
88226         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
88227         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
88228
88229 1998-10-18  Jim Meyering  <meyering@ascend.com>
88230
88231         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
88232
88233 1998-10-17  Jim Meyering  <meyering@ascend.com>
88234
88235         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
88236         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
88237         calls for those previously hard-coded headers.  Instead, take a new
88238         parameter.
88239         (jm_CHECK_DECLARATIONS): Reflect interface change.
88240         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
88241         (jm_CHECK_DECL_LOCALTIME_R): New macro.
88242
88243         * m4/mktime.m4: Test for spring-forward gap before long-running test.
88244
88245 1998-10-14  Jim Meyering  <meyering@ascend.com>
88246
88247         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
88248         instead of "TZ=America/Vancouver".  From Paul Eggert.
88249
88250 1998-10-11  Jim Meyering  <meyering@ascend.com>
88251
88252         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
88253         This adds a test for a recently added compatibility fix for mktime.c.
88254         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
88255
88256 1998-09-27  Jim Meyering  <meyering@ascend.com>
88257
88258         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
88259
88260         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
88261         ../configure.in, including a change from Gordon Matzigkeit to allow
88262         cross-compiling for the Hurd.
88263
88264         * m4/glibc.m4: New file/macro to test for the GNU C Library
88265         versions 1 and 2.  From Gordon Matzigkeit.
88266         Indent.
88267
88268 1998-09-21  Jim Meyering  <meyering@ascend.com>
88269
88270         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
88271
88272 1998-08-18  Paul Eggert  <eggert@twinsun.com>
88273
88274         Port nanosecond-resolution times to UnixWare 2.1.2 and
88275         pedantic Solaris 2.6.
88276
88277         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
88278         AC_STRUCT_ST_MTIM.
88279         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
88280         Generate name of ns member, instead of just 1 or undef.
88281         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
88282
88283 1998-08-15  Jim Meyering  <meyering@ascend.com>
88284
88285         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
88286         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
88287         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
88288         instead of jm_TYPE_SSIZE_T.
88289
88290 1998-08-12  Jim Meyering  <meyering@ascend.com>
88291
88292         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
88293
88294 1998-08-02  Jim Meyering  <meyering@ascend.com>
88295
88296         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
88297         in acconfig.h manually.
88298
88299 1998-07-31  Paul Eggert  <eggert@twinsun.com>
88300
88301         * m4/st_mtim.m4: New file.
88302
88303 1998-07-28  Jim Meyering  <meyering@ascend.com>
88304
88305         * m4/utimes.m4: Undef stat.
88306
88307 1998-07-25  Jim Meyering  <meyering@ascend.com>
88308
88309         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
88310         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
88311
88312 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
88313
88314         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
88315         uid and gid actually remain unchanged.
88316
88317 1998-07-07  Jim Meyering  <meyering@ascend.com>
88318
88319         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
88320
88321 1998-07-04  Jim Meyering  <meyering@ascend.com>
88322
88323         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
88324         to prove that this macro can be used in packages without regex.c.
88325
88326 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
88327
88328         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
88329         is to be used.
88330
88331 1998-07-03  Jim Meyering  <meyering@ascend.com>
88332
88333         * m4/gettext.m4: Add -lintl if it's found to be necessary.
88334
88335         * m4/gettext.m4: New file -- from gettext-0.10.35.
88336         * m4/lcmessage.m4: Likewise.
88337         * m4/progtest.m4: Likewise.
88338
88339         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
88340         * m4/jm-macros.m4: Require the new macro.
88341
88342 1998-06-29  Jim Meyering  <meyering@ascend.com>
88343
88344         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
88345         for the definition of NGROUPS (used in a system header included
88346         by sys/mount.h).
88347
88348 1998-06-28  Jim Meyering  <meyering@ascend.com>
88349
88350         * m4/ls-mntd-fs.m4: New file.
88351         * m4/fstypename.m4: New file.
88352
88353         * m4/jm-macros.m4: Require the new macro.
88354         * m4/jm-glibc-io.m4: New file.
88355
88356 1998-05-19  Jim Meyering  <meyering@ascend.com>
88357
88358         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
88359         * m4/lchown.m4: New file.
88360
88361         * m4/Makefile.am.in: New file.
88362         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
88363
88364 1998-05-14  Jim Meyering  <meyering@ascend.com>
88365
88366         * m4/Makefile.am (EXTRA_DIST): Add them.
88367         * m4/jm-macros.m4: New file.
88368         * m4/utimbuf.m4: New file.
88369
88370 1998-05-12  Jim Meyering  <meyering@ascend.com>
88371
88372         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
88373
88374 1998-05-11  Jim Meyering  <meyering@ascend.com>
88375
88376         * m4/isc-posix.m4: New file.
88377
88378 1998-05-10  Jim Meyering  <meyering@ascend.com>
88379
88380         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
88381
88382 1998-05-09  Jim Meyering  <meyering@ascend.com>
88383
88384         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
88385         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
88386         with automake.
88387
88388         * m4/ssize_t.m4: New file.
88389         * m4/mktime.m4: Remove file -- the new automake has this now.
88390
88391 1998-04-26  Jim Meyering  <meyering@ascend.com>
88392
88393         * m4/assert.m4: New file.
88394         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
88395
88396 1998-04-05  Jim Meyering  <meyering@ascend.com>
88397
88398         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
88399         (jm_PREREQ): Use it here.
88400
88401 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
88402
88403         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
88404         in acconfig.h.
88405
88406 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
88407
88408         * m4/prereq.m4: New file.
88409         * m4/error.m4: New file.
88410         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
88411
88412 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
88413
88414         * m4/getline.m4: Don't set am_cv_func_working_getline before the
88415         cache-check for the same variable -- that defeated the purpose of
88416         the test; the test program was never run.  This was a problem only
88417         on systems with losing getline functions -- HP-UX 10.20 is one.
88418         Reported by Bjorn Helgaas.
88419
88420 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
88421
88422         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
88423
88424 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
88425
88426         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
88427
88428         * m4/const.m4: New file.  Use an initializer in this declaration
88429         typedef int charset[2]; const charset x;
88430         Reported by Bob Glickstein.
88431
88432 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
88433
88434         * m4/chown.m4: Fix reversed types on -1 args to chown.
88435         From Kaveh Ghazi.
88436
88437 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
88438
88439         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
88440         Add lseek and memchr.
88441
88442         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
88443         T.E.Dickey <dickey@clark.net> said that some older preprocessors
88444         have a 20-character limit on names.
88445
88446 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
88447
88448         * m4/inttypes_h.m4: New file.
88449         * m4/uintmax_t.m4: New file.
88450         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
88451
88452
88453         -----
88454
88455         Local Variables:
88456         coding: utf-8
88457         End:
88458
88459         Copyright (C) 1997-2011 Free Software Foundation, Inc.
88460
88461         Copying and distribution of this file, with or without
88462         modification, are permitted provided the copyright notice
88463         and this notice are preserved.